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

feat(v2): removed OPTIONAL for speech model variant #447

Merged
merged 2 commits into from
Dec 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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