Skip to content

Commit 2af1a01

Browse files
feat(v2beta1): removed OPTIONAL for speech model variant (#448)
- [x] Regenerate this pull request now. PiperOrigin-RevId: 416079874 Source-Link: googleapis/googleapis@18c59ec Source-Link: googleapis/googleapis-gen@20123be 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
1 parent b9adcf3 commit 2af1a01

File tree

5 files changed

+38
-32
lines changed

5 files changed

+38
-32
lines changed

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/services/participants/async_client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ async def list_participants(
364364
Returns:
365365
google.cloud.dialogflow_v2beta1.services.participants.pagers.ListParticipantsAsyncPager:
366366
The response message for
367-
[Participants.ListParticipants][google.cloud.dialogflow.v2beta1.Participants.ListParticipants].
367+
[Participants.ListParticipants][google.cloud.dialogflow.v2beta1.Participants.ListParticipants].
368368
369369
Iterating over this object will yield results and
370370
resolve additional pages automatically.
@@ -545,7 +545,7 @@ async def analyze_content(
545545
Returns:
546546
google.cloud.dialogflow_v2beta1.types.AnalyzeContentResponse:
547547
The response message for
548-
[Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent].
548+
[Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent].
549549
550550
"""
551551
# Create or coerce a protobuf request object.
@@ -640,7 +640,7 @@ async def suggest_articles(
640640
Returns:
641641
google.cloud.dialogflow_v2beta1.types.SuggestArticlesResponse:
642642
The response message for
643-
[Participants.SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles].
643+
[Participants.SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles].
644644
645645
"""
646646
# Create or coerce a protobuf request object.
@@ -713,7 +713,7 @@ async def suggest_faq_answers(
713713
Returns:
714714
google.cloud.dialogflow_v2beta1.types.SuggestFaqAnswersResponse:
715715
The request message for
716-
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers].
716+
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers].
717717
718718
"""
719719
# Create or coerce a protobuf request object.
@@ -786,7 +786,7 @@ async def suggest_smart_replies(
786786
Returns:
787787
google.cloud.dialogflow_v2beta1.types.SuggestSmartRepliesResponse:
788788
The response message for
789-
[Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies].
789+
[Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies].
790790
791791
"""
792792
# Create or coerce a protobuf request object.
@@ -868,7 +868,7 @@ async def list_suggestions(
868868
Returns:
869869
google.cloud.dialogflow_v2beta1.services.participants.pagers.ListSuggestionsAsyncPager:
870870
The response message for
871-
[Participants.ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions].
871+
[Participants.ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions].
872872
873873
Iterating over this object will yield results and
874874
resolve additional pages automatically.
@@ -944,7 +944,7 @@ async def compile_suggestion(
944944
Returns:
945945
google.cloud.dialogflow_v2beta1.types.CompileSuggestionResponse:
946946
The response message for
947-
[Participants.CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion].
947+
[Participants.CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion].
948948
949949
"""
950950
warnings.warn(

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/services/participants/client.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ def list_participants(
623623
Returns:
624624
google.cloud.dialogflow_v2beta1.services.participants.pagers.ListParticipantsPager:
625625
The response message for
626-
[Participants.ListParticipants][google.cloud.dialogflow.v2beta1.Participants.ListParticipants].
626+
[Participants.ListParticipants][google.cloud.dialogflow.v2beta1.Participants.ListParticipants].
627627
628628
Iterating over this object will yield results and
629629
resolve additional pages automatically.
@@ -804,7 +804,7 @@ def analyze_content(
804804
Returns:
805805
google.cloud.dialogflow_v2beta1.types.AnalyzeContentResponse:
806806
The response message for
807-
[Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent].
807+
[Participants.AnalyzeContent][google.cloud.dialogflow.v2beta1.Participants.AnalyzeContent].
808808
809809
"""
810810
# Create or coerce a protobuf request object.
@@ -890,7 +890,7 @@ def suggest_articles(
890890
Returns:
891891
google.cloud.dialogflow_v2beta1.types.SuggestArticlesResponse:
892892
The response message for
893-
[Participants.SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles].
893+
[Participants.SuggestArticles][google.cloud.dialogflow.v2beta1.Participants.SuggestArticles].
894894
895895
"""
896896
# Create or coerce a protobuf request object.
@@ -963,7 +963,7 @@ def suggest_faq_answers(
963963
Returns:
964964
google.cloud.dialogflow_v2beta1.types.SuggestFaqAnswersResponse:
965965
The request message for
966-
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers].
966+
[Participants.SuggestFaqAnswers][google.cloud.dialogflow.v2beta1.Participants.SuggestFaqAnswers].
967967
968968
"""
969969
# Create or coerce a protobuf request object.
@@ -1036,7 +1036,7 @@ def suggest_smart_replies(
10361036
Returns:
10371037
google.cloud.dialogflow_v2beta1.types.SuggestSmartRepliesResponse:
10381038
The response message for
1039-
[Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies].
1039+
[Participants.SuggestSmartReplies][google.cloud.dialogflow.v2beta1.Participants.SuggestSmartReplies].
10401040
10411041
"""
10421042
# Create or coerce a protobuf request object.
@@ -1118,7 +1118,7 @@ def list_suggestions(
11181118
Returns:
11191119
google.cloud.dialogflow_v2beta1.services.participants.pagers.ListSuggestionsPager:
11201120
The response message for
1121-
[Participants.ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions].
1121+
[Participants.ListSuggestions][google.cloud.dialogflow.v2beta1.Participants.ListSuggestions].
11221122
11231123
Iterating over this object will yield results and
11241124
resolve additional pages automatically.
@@ -1195,7 +1195,7 @@ def compile_suggestion(
11951195
Returns:
11961196
google.cloud.dialogflow_v2beta1.types.CompileSuggestionResponse:
11971197
The response message for
1198-
[Participants.CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion].
1198+
[Participants.CompileSuggestion][google.cloud.dialogflow.v2beta1.Participants.CompileSuggestion].
11991199
12001200
"""
12011201
warnings.warn(

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/audio_config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,13 +405,15 @@ class SpeechToTextConfig(proto.Message):
405405
406406
Attributes:
407407
speech_model_variant (google.cloud.dialogflow_v2beta1.types.SpeechModelVariant):
408-
Optional. The speech model used in speech to text.
408+
The speech model used in speech to text.
409409
``SPEECH_MODEL_VARIANT_UNSPECIFIED``, ``USE_BEST_AVAILABLE``
410410
will be treated as ``USE_ENHANCED``. It can be overridden in
411411
[AnalyzeContentRequest][google.cloud.dialogflow.v2beta1.AnalyzeContentRequest]
412412
and
413413
[StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2beta1.StreamingAnalyzeContentRequest]
414-
request.
414+
request. If enhanced model variant is specified and an
415+
enhanced version of the specified model for the language
416+
does not exist, then it would emit an error.
415417
"""
416418

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

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/document.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,9 @@ class KnowledgeOperationMetadata(proto.Message):
385385
state (google.cloud.dialogflow_v2beta1.types.KnowledgeOperationMetadata.State):
386386
Required. Output only. The current state of
387387
this operation.
388+
knowledge_base (str):
389+
The name of the knowledge base interacted
390+
with during the operation.
388391
"""
389392

390393
class State(proto.Enum):
@@ -395,6 +398,7 @@ class State(proto.Enum):
395398
DONE = 3
396399

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

399403

400404
class ReloadDocumentRequest(proto.Message):

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/participant.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ class Participant(proto.Message):
123123
124124
::
125125
126-
documents_metadata_filters {
127-
key: "market"
128-
value: "US,CA"
129-
}
130-
documents_metadata_filters {
131-
key: "user"
132-
value: "agent"
133-
}
126+
documents_metadata_filters {
127+
key: "market"
128+
value: "US,CA"
129+
}
130+
documents_metadata_filters {
131+
key: "user"
132+
value: "agent"
133+
}
134134
"""
135135

136136
class Role(proto.Enum):
@@ -424,14 +424,14 @@ class AssistQueryParameters(proto.Message):
424424
425425
::
426426
427-
documents_metadata_filters {
428-
key: "market"
429-
value: "US,CA"
430-
}
431-
documents_metadata_filters {
432-
key: "user"
433-
value: "agent"
434-
}
427+
documents_metadata_filters {
428+
key: "market"
429+
value: "US,CA"
430+
}
431+
documents_metadata_filters {
432+
key: "user"
433+
value: "agent"
434+
}
435435
"""
436436

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

0 commit comments

Comments
 (0)