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

Commit

Permalink
feat(v2beta1): removed OPTIONAL for speech model variant (#448)
Browse files Browse the repository at this point in the history
- [x] Regenerate this pull request now.

PiperOrigin-RevId: 416079874

Source-Link: googleapis/googleapis@18c59ec

Source-Link: https://github.com/googleapis/googleapis-gen/commit/20123bec36a248ac0e352b11854b85fa6c42d57d
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjAxMjNiZWMzNmEyNDhhYzBlMzUyYjExODU0Yjg1ZmE2YzQyZDU3ZCJ9

feat(v2beta1): add support for knowledge_base in knowledge operation metadata
docs(v2beta1): added more docs for speech model variant and improved docs format for participant
  • Loading branch information
gcf-owl-bot[bot] authored Dec 21, 2021
1 parent 56efd10 commit 0f60629
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ async def list_participants(
Returns:
google.cloud.dialogflow_v2beta1.services.participants.pagers.ListParticipantsAsyncPager:
The response message for
[Participants.ListParticipants][google.cloud.dialogflow.v2beta1.Participants.ListParticipants].
[Participants.ListParticipants][google.cloud.dialogflow.v2beta1.Participants.ListParticipants].
Iterating over this object will yield results and
resolve additional pages automatically.
Expand Down Expand Up @@ -545,7 +545,7 @@ async def analyze_content(
Returns:
google.cloud.dialogflow_v2beta1.types.AnalyzeContentResponse:
The response message for
[Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent].
[Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent].
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -640,7 +640,7 @@ async def suggest_articles(
Returns:
google.cloud.dialogflow_v2beta1.types.SuggestArticlesResponse:
The response message for
[Participants.SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles].
[Participants.SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles].
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -713,7 +713,7 @@ async def suggest_faq_answers(
Returns:
google.cloud.dialogflow_v2beta1.types.SuggestFaqAnswersResponse:
The request message for
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers].
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers].
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -786,7 +786,7 @@ async def suggest_smart_replies(
Returns:
google.cloud.dialogflow_v2beta1.types.SuggestSmartRepliesResponse:
The response message for
[Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies].
[Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies].
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -868,7 +868,7 @@ async def list_suggestions(
Returns:
google.cloud.dialogflow_v2beta1.services.participants.pagers.ListSuggestionsAsyncPager:
The response message for
[Participants.ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions].
[Participants.ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions].
Iterating over this object will yield results and
resolve additional pages automatically.
Expand Down Expand Up @@ -944,7 +944,7 @@ async def compile_suggestion(
Returns:
google.cloud.dialogflow_v2beta1.types.CompileSuggestionResponse:
The response message for
[Participants.CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion].
[Participants.CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion].
"""
warnings.warn(
Expand Down
14 changes: 7 additions & 7 deletions google/cloud/dialogflow_v2beta1/services/participants/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,7 @@ def list_participants(
Returns:
google.cloud.dialogflow_v2beta1.services.participants.pagers.ListParticipantsPager:
The response message for
[Participants.ListParticipants][google.cloud.dialogflow.v2beta1.Participants.ListParticipants].
[Participants.ListParticipants][google.cloud.dialogflow.v2beta1.Participants.ListParticipants].
Iterating over this object will yield results and
resolve additional pages automatically.
Expand Down Expand Up @@ -804,7 +804,7 @@ def analyze_content(
Returns:
google.cloud.dialogflow_v2beta1.types.AnalyzeContentResponse:
The response message for
[Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent].
[Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent].
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -890,7 +890,7 @@ def suggest_articles(
Returns:
google.cloud.dialogflow_v2beta1.types.SuggestArticlesResponse:
The response message for
[Participants.SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles].
[Participants.SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles].
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -963,7 +963,7 @@ def suggest_faq_answers(
Returns:
google.cloud.dialogflow_v2beta1.types.SuggestFaqAnswersResponse:
The request message for
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers].
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers].
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -1036,7 +1036,7 @@ def suggest_smart_replies(
Returns:
google.cloud.dialogflow_v2beta1.types.SuggestSmartRepliesResponse:
The response message for
[Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies].
[Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies].
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -1118,7 +1118,7 @@ def list_suggestions(
Returns:
google.cloud.dialogflow_v2beta1.services.participants.pagers.ListSuggestionsPager:
The response message for
[Participants.ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions].
[Participants.ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions].
Iterating over this object will yield results and
resolve additional pages automatically.
Expand Down Expand Up @@ -1195,7 +1195,7 @@ def compile_suggestion(
Returns:
google.cloud.dialogflow_v2beta1.types.CompileSuggestionResponse:
The response message for
[Participants.CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion].
[Participants.CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion].
"""
warnings.warn(
Expand Down
6 changes: 4 additions & 2 deletions google/cloud/dialogflow_v2beta1/types/audio_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,15 @@ class SpeechToTextConfig(proto.Message):
Attributes:
speech_model_variant (google.cloud.dialogflow_v2beta1.types.SpeechModelVariant):
Optional. The speech model used in speech to text.
The speech model used in speech to text.
``SPEECH_MODEL_VARIANT_UNSPECIFIED``, ``USE_BEST_AVAILABLE``
will be treated as ``USE_ENHANCED``. It can be overridden in
[AnalyzeContentRequest][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest]
and
[StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest]
request.
request. If enhanced model variant is specified and an
enhanced version of the specified model for the language
does not exist, then it would emit an error.
"""

speech_model_variant = proto.Field(proto.ENUM, number=1, enum="SpeechModelVariant",)
Expand Down
4 changes: 4 additions & 0 deletions google/cloud/dialogflow_v2beta1/types/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,9 @@ class KnowledgeOperationMetadata(proto.Message):
state (google.cloud.dialogflow_v2beta1.types.KnowledgeOperationMetadata.State):
Required. Output only. The current state of
this operation.
knowledge_base (str):
The name of the knowledge base interacted
with during the operation.
"""

class State(proto.Enum):
Expand All @@ -395,6 +398,7 @@ class State(proto.Enum):
DONE = 3

state = proto.Field(proto.ENUM, number=1, enum=State,)
knowledge_base = proto.Field(proto.STRING, number=3,)


class ReloadDocumentRequest(proto.Message):
Expand Down
32 changes: 16 additions & 16 deletions google/cloud/dialogflow_v2beta1/types/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ class Participant(proto.Message):
::
documents_metadata_filters {
key: "market"
value: "US,CA"
}
documents_metadata_filters {
key: "user"
value: "agent"
}
documents_metadata_filters {
key: "market"
value: "US,CA"
}
documents_metadata_filters {
key: "user"
value: "agent"
}
"""

class Role(proto.Enum):
Expand Down Expand Up @@ -424,14 +424,14 @@ class AssistQueryParameters(proto.Message):
::
documents_metadata_filters {
key: "market"
value: "US,CA"
}
documents_metadata_filters {
key: "user"
value: "agent"
}
documents_metadata_filters {
key: "market"
value: "US,CA"
}
documents_metadata_filters {
key: "user"
value: "agent"
}
"""

documents_metadata_filters = proto.MapField(proto.STRING, proto.STRING, number=1,)
Expand Down

0 comments on commit 0f60629

Please sign in to comment.