Skip to content

Commit

Permalink
fix: remove unused proto InputText, InputAudio (#273)
Browse files Browse the repository at this point in the history
  • Loading branch information
yoshi-automation authored Apr 13, 2021
1 parent d3350bb commit 16ec666
Show file tree
Hide file tree
Showing 6 changed files with 436 additions and 83 deletions.
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",
)
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",
)
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
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
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 comments on commit 16ec666

Please sign in to comment.