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

Commit 56efd10

Browse files
feat(v2): removed OPTIONAL for speech model variant (#447)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 416079722 Source-Link: googleapis/googleapis@14b7a25 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e1b0be15a7cd3466c46f0865835e714d1e9309fb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTFiMGJlMTVhN2NkMzQ2NmM0NmYwODY1ODM1ZTcxNGQxZTkzMDlmYiJ9 docs: added more docs for speech model variant and improved docs format for participant
1 parent c3dabb1 commit 56efd10

File tree

4 files changed

+23
-12
lines changed

4 files changed

+23
-12
lines changed

google/cloud/dialogflow_v2/services/participants/async_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ async def list_participants(
361361
Returns:
362362
google.cloud.dialogflow_v2.services.participants.pagers.ListParticipantsAsyncPager:
363363
The response message for
364-
[Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
364+
[Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
365365
366366
Iterating over this object will yield results and
367367
resolve additional pages automatically.
@@ -542,7 +542,7 @@ async def analyze_content(
542542
Returns:
543543
google.cloud.dialogflow_v2.types.AnalyzeContentResponse:
544544
The response message for
545-
[Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
545+
[Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
546546
547547
"""
548548
# Create or coerce a protobuf request object.
@@ -630,7 +630,7 @@ async def suggest_articles(
630630
Returns:
631631
google.cloud.dialogflow_v2.types.SuggestArticlesResponse:
632632
The response message for
633-
[Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
633+
[Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
634634
635635
"""
636636
# Create or coerce a protobuf request object.
@@ -703,7 +703,7 @@ async def suggest_faq_answers(
703703
Returns:
704704
google.cloud.dialogflow_v2.types.SuggestFaqAnswersResponse:
705705
The request message for
706-
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
706+
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
707707
708708
"""
709709
# Create or coerce a protobuf request object.

google/cloud/dialogflow_v2/services/participants/client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def list_participants(
606606
Returns:
607607
google.cloud.dialogflow_v2.services.participants.pagers.ListParticipantsPager:
608608
The response message for
609-
[Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
609+
[Participants.ListParticipants][google.cloud.dialogflow.v2.Participants.ListParticipants].
610610
611611
Iterating over this object will yield results and
612612
resolve additional pages automatically.
@@ -787,7 +787,7 @@ def analyze_content(
787787
Returns:
788788
google.cloud.dialogflow_v2.types.AnalyzeContentResponse:
789789
The response message for
790-
[Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
790+
[Participants.AnalyzeContent][google.cloud.dialogflow.v2.Participants.AnalyzeContent].
791791
792792
"""
793793
# Create or coerce a protobuf request object.
@@ -866,7 +866,7 @@ def suggest_articles(
866866
Returns:
867867
google.cloud.dialogflow_v2.types.SuggestArticlesResponse:
868868
The response message for
869-
[Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
869+
[Participants.SuggestArticles][google.cloud.dialogflow.v2.Participants.SuggestArticles].
870870
871871
"""
872872
# Create or coerce a protobuf request object.
@@ -939,7 +939,7 @@ def suggest_faq_answers(
939939
Returns:
940940
google.cloud.dialogflow_v2.types.SuggestFaqAnswersResponse:
941941
The request message for
942-
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
942+
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2.Participants.SuggestFaqAnswers].
943943
944944
"""
945945
# Create or coerce a protobuf request object.

google/cloud/dialogflow_v2/types/audio_config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,13 +364,15 @@ class SpeechToTextConfig(proto.Message):
364364
365365
Attributes:
366366
speech_model_variant (google.cloud.dialogflow_v2.types.SpeechModelVariant):
367-
Optional. The speech model used in speech to text.
367+
The speech model used in speech to text.
368368
``SPEECH_MODEL_VARIANT_UNSPECIFIED``, ``USE_BEST_AVAILABLE``
369369
will be treated as ``USE_ENHANCED``. It can be overridden in
370370
[AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest]
371371
and
372372
[StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest]
373-
request.
373+
request. If enhanced model variant is specified and an
374+
enhanced version of the specified model for the language
375+
does not exist, then it would emit an error.
374376
"""
375377

376378
speech_model_variant = proto.Field(proto.ENUM, number=1, enum="SpeechModelVariant",)

google/cloud/dialogflow_v2/types/participant.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,17 @@ class AssistQueryParameters(proto.Message):
729729
comma. For example, filters to match all documents that have
730730
'US' or 'CA' in their market metadata values and 'agent' in
731731
their user metadata values will be
732-
documents_metadata_filters { key: "market" value: "US,CA" }
733-
documents_metadata_filters { key: "user" value: "agent" }
732+
733+
::
734+
735+
documents_metadata_filters {
736+
key: "market"
737+
value: "US,CA"
738+
}
739+
documents_metadata_filters {
740+
key: "user"
741+
value: "agent"
742+
}
734743
"""
735744

736745
documents_metadata_filters = proto.MapField(proto.STRING, proto.STRING, number=1,)

0 commit comments

Comments
 (0)