8000 fix: remove unused proto InputText, InputAudio by yoshi-automation · Pull Request #273 · googleapis/python-dialogflow · GitHub
[go: up one dir, main page]

Skip to content
< 8000 div hidden="hidden" data-view-component="true" class="js-stale-session-flash stale-session-flash flash flash-warn flash-full"> Dismiss alert
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

fix: remove unused proto InputText, InputAudio #273

Merged
merged 9 commits into from
Apr 13, 2021
Merged
4 changes: 2 additions & 2 deletions google/cloud/dialogflow_v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,6 @@
"BatchUpdateIntentsResponse",
"CompleteConversationRequest",
"Context",
"ContextsClient",
"Conversation",
"ConversationEvent",
"ConversationPhoneNumber",
Expand Down Expand Up @@ -269,6 +268,7 @@
"IntentView",
"IntentsClient",
"KnowledgeBase",
"KnowledgeBasesClient",
"KnowledgeOperationMetadata",
"ListAnswerRecordsRequest",
"ListAnswerRecordsResponse",
Expand Down Expand Up @@ -349,5 +349,5 @@
"VoiceSelectionParams",
"WebhookRequest",
"WebhookResponse",
"KnowledgeBasesClient",
"ContextsClient",
)
8 changes: 2 additions & 6 deletions google/cloud/dialogflow_v2beta1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@
from .types.participant import DtmfParameters
from .types.participant import FaqAnswer
from .types.participant import GetParticipantRequest
from .types.participant import InputAudio
from .types.participant import InputText
from .types.participant import ListParticipantsRequest
from .types.participant import ListParticipantsResponse
from .types.participant import ListSuggestionsRequest
Expand Down Expand Up @@ -237,7 +235,6 @@
"CompileSuggestionResponse",
"CompleteConversationRequest",
"Context",
"ContextsClient",
"Conversation",
"ConversationEvent",
"ConversationPhoneNumber",
Expand Down Expand Up @@ -298,15 +295,14 @@
"ImportDocumentTemplate",
"ImportDocumentsRequest",
"ImportDocumentsResponse",
"InputAudio",
"InputAudioConfig",
"InputText",
"Intent",
"IntentBatch",
"IntentView",
"IntentsClient",
"KnowledgeAnswers",
"KnowledgeBase",
"KnowledgeBasesClient",
"KnowledgeOperationMetadata",
"ListAnswerRecordsRequest",
"ListAnswerRecordsResponse",
Expand Down Expand Up @@ -397,5 +393,5 @@
"VoiceSelectionParams",
"WebhookRequest",
"WebhookResponse",
"KnowledgeBasesClient",
"ContextsClient",
)
23 changes: 0 additions & 23 deletions google/cloud/dialogflow_v2beta1/proto/participant.proto
Original file line number Diff line number Diff line change
Expand Up @@ -373,29 +373,6 @@ message UpdateParticipantRequest {
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
}

// Represents the natural language text to be processed.
message InputText {
// Required. The UTF-8 encoded natural language text to be processed.
// Text length must not exceed 256 bytes.
string text = 1;

// Required. The language of this conversational query. See [Language
// Support](https://cloud.google.com/dialogflow/docs/reference/language)
// for a list of the currently supported language codes.
string language_code = 2;
}

// Represents the natural language speech audio to be processed.
message InputAudio {
// Required. Instructs the speech recognizer how to process the speech audio.
InputAudioConfig config = 1;

// Required. The natural language speech audio to be processed.
// A single request can contain up to 1 minute of speech audio data.
// The transcribed text cannot contain more than 256 bytes.
bytes audio = 2;
}

// Represents the natural language speech audio to be played to the end user.
message OutputAudio {
// Required. Instructs the speech synthesizer how to generate the speech
Expand Down
4 changes: 0 additions & 4 deletions google/cloud/dialogflow_v2beta1/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@
DtmfParameters,
FaqAnswer,
GetParticipantRequest,
InputAudio,
InputText,
ListParticipantsRequest,
ListParticipantsResponse,
ListSuggestionsRequest,
Expand Down Expand Up @@ -357,8 +355,6 @@
"DtmfParameters",
"FaqAnswer",
"GetParticipantRequest",
"InputAudio",
"InputText",
"ListParticipantsRequest",
"ListParticipantsResponse",
"ListSuggestionsRequest",
Expand Down
44 changes: 0 additions & 44 deletions google/cloud/dialogflow_v2beta1/types/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
"ListParticipantsRequest",
"ListParticipantsResponse",
"UpdateParticipantRequest",
"InputText",
"InputAudio",
"OutputAudio",
"AutomatedAgentReply",
"SuggestionFeature",
Expand Down Expand Up @@ -280,48 +278,6 @@ class UpdateParticipantRequest(proto.Message):
update_mask = proto.Field(proto.MESSAGE, number=2, message=field_mask.FieldMask,)


class InputText(proto.Message):
r"""Represents the natural language text to be processed.

Attributes:
text (str):
Required. The UTF-8 encoded natural language
text to be processed. Text length must not
exceed 256 bytes.
language_code (str):
Required. The language of this conversational query. See
`Language
Support <https://cloud.google.com/dialogflow/docs/reference/language>`__
for a list of the currently supported language codes.
"""

text = proto.Field(proto.STRING, number=1)

language_code = proto.Field(proto.STRING, number=2)


class InputAudio(proto.Message):
r"""Represents the natural language speech audio to be processed.

Attributes:
config (google.cloud.dialogflow_v2beta1.types.InputAudioConfig):
Required. Instructs the speech recognizer how
to process the speech audio.
audio (bytes):
Required. The natural language speech audio
to be processed. A single request can contain up
to 1 minute of speech audio data. The
transcribed text cannot contain more than 256
bytes.
"""

config = proto.Field(
proto.MESSAGE, number=1, message=audio_config.InputAudioConfig,
)

audio = proto.Field(proto.BYTES, number=2)


class OutputAudio(proto.Message):
r"""Represents the natural language speech audio to be played to
the end user.
Expand Down
Loading
0