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

Commit

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

PiperOrigin-RevId: 416079722

Source-Link: googleapis/googleapis@14b7a25

Source-Link: googleapis/googleapis-gen@e1b0be1
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTFiMGJlMTVhN2NkMzQ2NmM0NmYwODY1ODM1ZTcxNGQxZTkzMDlmYiJ9

docs: added more docs for speech model variant and improved docs format for participant
  • Loading branch information
gcf-owl-bot[bot] authored Dec 20, 2021
1 parent c3dabb1 commit 56efd10
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ async def list_participants(
Returns:
google.cloud.dialogflow_v2.services.participants.pagers.ListParticipantsAsyncPager:
The response message for
[Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
[Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
Iterating over this object will yield results and
resolve additional pages automatically.
Expand Down Expand Up @@ -542,7 +542,7 @@ async def analyze_content(
Returns:
google.cloud.dialogflow_v2.types.AnalyzeContentResponse:
The response message for
[Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
[Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -630,7 +630,7 @@ async def suggest_articles(
Returns:
google.cloud.dialogflow_v2.types.SuggestArticlesResponse:
The response message for
[Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
[Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -703,7 +703,7 @@ async def suggest_faq_answers(
Returns:
google.cloud.dialogflow_v2.types.SuggestFaqAnswersResponse:
The request message for
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
"""
# Create or coerce a protobuf request object.
Expand Down
8 changes: 4 additions & 4 deletions google/cloud/dialogflow_v2/services/participants/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ def list_participants(
Returns:
google.cloud.dialogflow_v2.services.participants.pagers.ListParticipantsPager:
The response message for
[Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
[Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
Iterating over this object will yield results and
resolve additional pages automatically.
Expand Down Expand Up @@ -787,7 +787,7 @@ def analyze_content(
Returns:
google.cloud.dialogflow_v2.types.AnalyzeContentResponse:
The response message for
[Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
[Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -866,7 +866,7 @@ def suggest_articles(
Returns:
google.cloud.dialogflow_v2.types.SuggestArticlesResponse:
The response message for
[Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
[Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -939,7 +939,7 @@ def suggest_faq_answers(
Returns:
google.cloud.dialogflow_v2.types.SuggestFaqAnswersResponse:
The request message for
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
"""
# Create or coerce a protobuf request object.
Expand Down
6 changes: 4 additions & 2 deletions google/cloud/dialogflow_v2/types/audio_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,13 +364,15 @@ class SpeechToTextConfig(proto.Message):
Attributes:
speech_model_variant (google.cloud.dialogflow_v2.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.v2.AnalyzeContentRequest]
and
[StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.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
13 changes: 11 additions & 2 deletions google/cloud/dialogflow_v2/types/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,17 @@ class AssistQueryParameters(proto.Message):
comma. For example, filters to match all documents that have
'US' or 'CA' in their market metadata values and 'agent' in
their user metadata values will be
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 56efd10

Please sign in to comment.