diff --git a/google/cloud/dialogflow_v2beta1/services/participants/async_client.py b/google/cloud/dialogflow_v2beta1/services/participants/async_client.py index 213eae8dc..8f175cf5e 100644 --- a/google/cloud/dialogflow_v2beta1/services/participants/async_client.py +++ b/google/cloud/dialogflow_v2beta1/services/participants/async_client.py @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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( diff --git a/google/cloud/dialogflow_v2beta1/services/participants/client.py b/google/cloud/dialogflow_v2beta1/services/participants/client.py index e24c2f407..ba6083695 100644 --- a/google/cloud/dialogflow_v2beta1/services/participants/client.py +++ b/google/cloud/dialogflow_v2beta1/services/participants/client.py @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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( diff --git a/google/cloud/dialogflow_v2beta1/types/audio_config.py b/google/cloud/dialogflow_v2beta1/types/audio_config.py index e0d0e772e..32e1fd710 100644 --- a/google/cloud/dialogflow_v2beta1/types/audio_config.py +++ b/google/cloud/dialogflow_v2beta1/types/audio_config.py @@ -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",) diff --git a/google/cloud/dialogflow_v2beta1/types/document.py b/google/cloud/dialogflow_v2beta1/types/document.py index e4edae621..89aae8027 100644 --- a/google/cloud/dialogflow_v2beta1/types/document.py +++ b/google/cloud/dialogflow_v2beta1/types/document.py @@ -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): @@ -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): diff --git a/google/cloud/dialogflow_v2beta1/types/participant.py b/google/cloud/dialogflow_v2beta1/types/participant.py index b6cdefe6b..dfb147c9d 100644 --- a/google/cloud/dialogflow_v2beta1/types/participant.py +++ b/google/cloud/dialogflow_v2beta1/types/participant.py @@ -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): @@ -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,)