Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

Commit 787d064

Browse files
fix: remove unused proto InputText, InputAudio (#273)
1 parent 9322e7a commit 787d064

File tree

6 files changed

+436
-83
lines changed

6 files changed

+436
-83
lines changed

google/cloud/dialogflow_v2/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@
209209
"BatchUpdateIntentsResponse",
210210
"CompleteConversationRequest",
211211
"Context",
212-
"ContextsClient",
213212
"Conversation",
214213
"ConversationEvent",
215214
"ConversationPhoneNumber",
@@ -269,6 +268,7 @@
269268
"IntentView",
270269
"IntentsClient",
271270
"KnowledgeBase",
271+
"KnowledgeBasesClient",
272272
"KnowledgeOperationMetadata",
273273
"ListAnswerRecordsRequest",
274274
"ListAnswerRecordsResponse",
@@ -349,5 +349,5 @@
349349
"VoiceSelectionParams",
350350
"WebhookRequest",
351351
"WebhookResponse",
352-
"KnowledgeBasesClient",
352+
"ContextsClient",
353353
)

google/cloud/dialogflow_v2beta1/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,6 @@
157157
from .types.participant import DtmfParameters
158158
from .types.participant import FaqAnswer
159159
from .types.participant import GetParticipantRequest
160-
from .types.participant import InputAudio
161-
from .types.participant import InputText
162160
from .types.participant import ListParticipantsRequest
163161
from .types.participant import ListParticipantsResponse
164162
from .types.participant import ListSuggestionsRequest
@@ -237,7 +235,6 @@
237235
"CompileSuggestionResponse",
238236
"CompleteConversationRequest",
239237
"Context",
240-
"ContextsClient",
241238
"Conversation",
242239
"ConversationEvent",
243240
"ConversationPhoneNumber",
@@ -298,15 +295,14 @@
298295
"ImportDocumentTemplate",
299296
"ImportDocumentsRequest",
300297
"ImportDocumentsResponse",
301-
"InputAudio",
302298
"InputAudioConfig",
303-
"InputText",
304299
"Intent",
305300
"IntentBatch",
306301
"IntentView",
307302
"IntentsClient",
308303
"KnowledgeAnswers",
309304
"KnowledgeBase",
305+
"KnowledgeBasesClient",
310306
"KnowledgeOperationMetadata",
311307
"ListAnswerRecordsRequest",
312308
"ListAnswerRecordsResponse",
@@ -397,5 +393,5 @@
397393
"VoiceSelectionParams",
398394
"WebhookRequest",
399395
"WebhookResponse",
400-
"KnowledgeBasesClient",
396+
"ContextsClient",
401397
)

google/cloud/dialogflow_v2beta1/proto/participant.proto

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -373,29 +373,6 @@ message UpdateParticipantRequest {
373373
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
374374
}
375375

376-
// Represents the natural language text to be processed.
377-
message InputText {
378-
// Required. The UTF-8 encoded natural language text to be processed.
379-
// Text length must not exceed 256 bytes.
380-
string text = 1;
381-
382-
// Required. The language of this conversational query. See [Language
383-
// Support](https://cloud.google.com/dialogflow/docs/reference/language)
384-
// for a list of the currently supported language codes.
385-
string language_code = 2;
386-
}
387-
388-
// Represents the natural language speech audio to be processed.
389-
message InputAudio {
390-
// Required. Instructs the speech recognizer how to process the speech audio.
391-
InputAudioConfig config = 1;
392-
393-
// Required. The natural language speech audio to be processed.
394-
// A single request can contain up to 1 minute of speech audio data.
395-
// The transcribed text cannot contain more than 256 bytes.
396-
bytes audio = 2;
397-
}
398-
399376
// Represents the natural language speech audio to be played to the end user.
400377
message OutputAudio {
401378
// Required. Instructs the speech synthesizer how to generate the speech

google/cloud/dialogflow_v2beta1/types/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,6 @@
169169
DtmfParameters,
170170
FaqAnswer,
171171
GetParticipantRequest,
172-
InputAudio,
173-
InputText,
174172
ListParticipantsRequest,
175173
ListParticipantsResponse,
176174
ListSuggestionsRequest,
@@ -357,8 +355,6 @@
357355
"DtmfParameters",
358356
"FaqAnswer",
359357
"GetParticipantRequest",
360-
"InputAudio",
361-
"InputText",
362358
"ListParticipantsRequest",
363359
"ListParticipantsResponse",
364360
"ListSuggestionsRequest",

google/cloud/dialogflow_v2beta1/types/participant.py

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@
3636
"ListParticipantsRequest",
3737
"ListParticipantsResponse",
3838
"UpdateParticipantRequest",
39-
"InputText",
40-
"InputAudio",
4139
"OutputAudio",
4240
"AutomatedAgentReply",
4341
"SuggestionFeature",
@@ -280,48 +278,6 @@ class UpdateParticipantRequest(proto.Message):
280278
update_mask = proto.Field(proto.MESSAGE, number=2, message=field_mask.FieldMask,)
281279

282280

283-
class InputText(proto.Message):
284-
r"""Represents the natural language text to be processed.
285-
286-
Attributes:
287-
text (str):
288-
Required. The UTF-8 encoded natural language
289-
text to be processed. Text length must not
290-
exceed 256 bytes.
291-
language_code (str):
292-
Required. The language of this conversational query. See
293-
`Language
294-
Support <https://cloud.google.com/dialogflow/docs/reference/language>`__
295-
for a list of the currently supported language codes.
296-
"""
297-
298-
text = proto.Field(proto.STRING, number=1)
299-
300-
language_code = proto.Field(proto.STRING, number=2)
301-
302-
303-
class InputAudio(proto.Message):
304-
r"""Represents the natural language speech audio to be processed.
305-
306-
Attributes:
307-
config (google.cloud.dialogflow_v2beta1.types.InputAudioConfig):
308-
Required. Instructs the speech recognizer how
309-
to process the speech audio.
310-
audio (bytes):
311-
Required. The natural language speech audio
312-
to be processed. A single request can contain up
313-
to 1 minute of speech audio data. The
314-
transcribed text cannot contain more than 256
315-
bytes.
316-
"""
317-
318-
config = proto.Field(
319-
proto.MESSAGE, number=1, message=audio_config.InputAudioConfig,
320-
)
321-
322-
audio = proto.Field(proto.BYTES, number=2)
323-
324-
325281
class OutputAudio(proto.Message):
326282
r"""Represents the natural language speech audio to be played to
327283
the end user.

0 commit comments

Comments
 (0)