diff --git a/packages/google-cloud-dialogflow/google/cloud/dialogflow/gapic_version.py b/packages/google-cloud-dialogflow/google/cloud/dialogflow/gapic_version.py index 6a68aba63ac5..558c8aab67c5 100644 --- a/packages/google-cloud-dialogflow/google/cloud/dialogflow/gapic_version.py +++ b/packages/google-cloud-dialogflow/google/cloud/dialogflow/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.29.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/gapic_version.py b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/gapic_version.py index 6a68aba63ac5..558c8aab67c5 100644 --- a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/gapic_version.py +++ b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.29.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/gapic_version.py b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/gapic_version.py index 6a68aba63ac5..558c8aab67c5 100644 --- a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/gapic_version.py +++ b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/gapic_version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. # -__version__ = "2.29.0" # {x-release-please-version} +__version__ = "0.0.0" # {x-release-please-version} diff --git a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/answer_record.py b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/answer_record.py index ef220bf86737..7c6029f02eea 100644 --- a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/answer_record.py +++ b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/answer_record.py @@ -327,6 +327,9 @@ class SummarizationFeedback(proto.Message): Timestamp when the summary was submitted. summary_text (str): Text of actual submitted summary. + text_sections (MutableMapping[str, str]): + Optional. Actual text sections of submitted + summary. """ start_timestamp: timestamp_pb2.Timestamp = proto.Field( @@ -343,6 +346,11 @@ class SummarizationFeedback(proto.Message): proto.STRING, number=3, ) + text_sections: MutableMapping[str, str] = proto.MapField( + proto.STRING, + proto.STRING, + number=4, + ) class KnowledgeSearchFeedback(proto.Message): r"""Feedback for knowledge search. diff --git a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/audio_config.py b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/audio_config.py index 98486676304d..552a5cb7e4ca 100644 --- a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/audio_config.py +++ b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/audio_config.py @@ -385,7 +385,7 @@ class BargeInConfig(proto.Message): The client provides this configuration in terms of the durations of those two phases. The durations are measured in terms of the audio - length fromt the the start of the input audio. + length from the start of the input audio. The flow goes like below: @@ -502,6 +502,12 @@ class InputAudioConfig(proto.Message): enable_automatic_punctuation (bool): Enable automatic punctuation option at the speech backend. + opt_out_conformer_model_migration (bool): + If ``true``, the request will opt out for STT conformer + model migration. This field will be deprecated once force + migration takes place in June 2024. Please refer to + `Dialogflow ES Speech model + migration `__. """ audio_encoding: "AudioEncoding" = proto.Field( @@ -556,6 +562,10 @@ class InputAudioConfig(proto.Message): proto.BOOL, number=17, ) + opt_out_conformer_model_migration: bool = proto.Field( + proto.BOOL, + number=26, + ) class VoiceSelectionParams(proto.Message): diff --git a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/participant.py b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/participant.py index bf83ac5f64f0..fa9a0f5ad1a5 100644 --- a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/participant.py +++ b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/participant.py @@ -773,6 +773,10 @@ class AnalyzeContentRequest(proto.Message): An input representing the selection of a suggestion. + This field is a member of `oneof`_ ``input``. + intent_input (google.cloud.dialogflow_v2beta1.types.IntentInput): + The intent to be triggered on V3 agent. + This field is a member of `oneof`_ ``input``. reply_audio_config (google.cloud.dialogflow_v2beta1.types.OutputAudioConfig): Speech synthesis configuration. @@ -860,6 +864,12 @@ class AnalyzeContentRequest(proto.Message): oneof="input", message="SuggestionInput", ) + intent_input: "IntentInput" = proto.Field( + proto.MESSAGE, + number=13, + oneof="input", + message="IntentInput", + ) reply_audio_config: gcd_audio_config.OutputAudioConfig = proto.Field( proto.MESSAGE, number=5, @@ -1120,6 +1130,17 @@ class StreamingAnalyzeContentRequest(proto.Message): This input is ignored if the previous response indicated that DTMF input is not accepted. + This field is a member of `oneof`_ ``input``. + input_intent (str): + The intent to be triggered on V3 agent. Format: + ``projects//locations//locations/ /agents//intents/``. + + This field is a member of `oneof`_ ``input``. + input_event (str): + The input event name. + This can only be sent once and would cancel the + ongoing speech recognition if any. + This field is a member of `oneof`_ ``input``. query_params (google.cloud.dialogflow_v2beta1.types.QueryParameters): Parameters for a Dialogflow virtual-agent @@ -1217,6 +1238,16 @@ class StreamingAnalyzeContentRequest(proto.Message): oneof="input", message=gcd_audio_config.TelephonyDtmfEvents, ) + input_intent: str = proto.Field( + proto.STRING, + number=17, + oneof="input", + ) + input_event: str = proto.Field( + proto.STRING, + number=20, + oneof="input", + ) query_params: session.QueryParameters = proto.Field( proto.MESSAGE, number=7, diff --git a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/session.py b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/session.py index ce6e91a08f79..35c0f1612720 100644 --- a/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/session.py +++ b/packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/types/session.py @@ -1215,15 +1215,16 @@ class MessageType(proto.Enum): DTMF_DIGITS (3): Message contains DTMF digits. END_OF_SINGLE_UTTERANCE (2): - Event indicates that the server has detected the end of the - user's speech utterance and expects no additional speech. - Therefore, the server will not process additional audio - (although it may subsequently return additional results). - The client should stop sending additional audio data, - half-close the gRPC connection, and wait for any additional - results until the server closes the gRPC connection. This - message is only sent if ``single_utterance`` was set to - ``true``, and is not used otherwise. + This event indicates that the server has detected the end of + the user's speech utterance and expects no additional + speech. Therefore, the server will not process additional + audio (although it may subsequently return additional + results). The client should stop sending additional audio + data, half-close the gRPC connection, and wait for any + additional results until the server closes the gRPC + connection. This message is only sent if + ``single_utterance`` was set to ``true``, and is not used + otherwise. PARTIAL_DTMF_DIGITS (4): Message contains DTMF digits. Before a message with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may diff --git a/packages/google-cloud-dialogflow/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.v2.json b/packages/google-cloud-dialogflow/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.v2.json index 603c3b759430..15f4b2c8fa69 100644 --- a/packages/google-cloud-dialogflow/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.v2.json +++ b/packages/google-cloud-dialogflow/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.v2.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-dialogflow", - "version": "2.29.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-dialogflow/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.v2beta1.json b/packages/google-cloud-dialogflow/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.v2beta1.json index 5ad5e5212f4b..11feb40f02d8 100644 --- a/packages/google-cloud-dialogflow/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.v2beta1.json +++ b/packages/google-cloud-dialogflow/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.v2beta1.json @@ -8,7 +8,7 @@ ], "language": "PYTHON", "name": "google-cloud-dialogflow", - "version": "2.29.0" + "version": "0.1.0" }, "snippets": [ { diff --git a/packages/google-cloud-dialogflow/scripts/fixup_dialogflow_v2beta1_keywords.py b/packages/google-cloud-dialogflow/scripts/fixup_dialogflow_v2beta1_keywords.py index 54977e019ced..e80fc9aac02d 100644 --- a/packages/google-cloud-dialogflow/scripts/fixup_dialogflow_v2beta1_keywords.py +++ b/packages/google-cloud-dialogflow/scripts/fixup_dialogflow_v2beta1_keywords.py @@ -39,7 +39,7 @@ def partition( class dialogflowCallTransformer(cst.CSTTransformer): CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata') METHOD_TO_PARAMS: Dict[str, Tuple[str]] = { - 'analyze_content': ('participant', 'text_input', 'audio_input', 'event_input', 'suggestion_input', 'reply_audio_config', 'query_params', 'assist_query_params', 'cx_parameters', 'cx_current_page', 'message_send_time', 'request_id', ), + 'analyze_content': ('participant', 'text_input', 'audio_input', 'event_input', 'suggestion_input', 'intent_input', 'reply_audio_config', 'query_params', 'assist_query_params', 'cx_parameters', 'cx_current_page', 'message_send_time', 'request_id', ), 'batch_create_entities': ('parent', 'entities', 'language_code', ), 'batch_create_messages': ('parent', 'requests', ), 'batch_delete_entities': ('parent', 'entity_values', 'language_code', ), @@ -114,7 +114,7 @@ class dialogflowCallTransformer(cst.CSTTransformer): 'search_knowledge': ('query', 'conversation_profile', 'parent', 'session_id', 'conversation', 'latest_message', ), 'set_agent': ('agent', 'update_mask', ), 'set_suggestion_feature_config': ('conversation_profile', 'participant_role', 'suggestion_feature_config', ), - 'streaming_analyze_content': ('participant', 'audio_config', 'text_config', 'reply_audio_config', 'input_audio', 'input_text', 'input_dtmf', 'query_params', 'assist_query_params', 'cx_parameters', 'cx_current_page', 'enable_extended_streaming', 'enable_partial_automated_agent_reply', 'enable_debugging_info', ), + 'streaming_analyze_content': ('participant', 'audio_config', 'text_config', 'reply_audio_config', 'input_audio', 'input_text', 'input_dtmf', 'input_intent', 'input_event', 'query_params', 'assist_query_params', 'cx_parameters', 'cx_current_page', 'enable_extended_streaming', 'enable_partial_automated_agent_reply', 'enable_debugging_info', ), 'streaming_detect_intent': ('session', 'query_input', 'query_params', 'single_utterance', 'output_audio_config', 'output_audio_config_mask', 'input_audio', 'enable_debugging_info', ), 'suggest_articles': ('parent', 'latest_message', 'context_size', 'assist_query_params', ), 'suggest_conversation_summary': ('conversation', 'latest_message', 'context_size', 'assist_query_params', ), diff --git a/packages/google-cloud-dialogflow/tests/unit/gapic/dialogflow_v2beta1/test_answer_records.py b/packages/google-cloud-dialogflow/tests/unit/gapic/dialogflow_v2beta1/test_answer_records.py index bbf7c776d416..bafe4b1ac116 100644 --- a/packages/google-cloud-dialogflow/tests/unit/gapic/dialogflow_v2beta1/test_answer_records.py +++ b/packages/google-cloud-dialogflow/tests/unit/gapic/dialogflow_v2beta1/test_answer_records.py @@ -2377,6 +2377,7 @@ def test_update_answer_record_rest(request_type): "start_timestamp": {"seconds": 751, "nanos": 543}, "submit_timestamp": {}, "summary_text": "summary_text_value", + "text_sections": {}, }, "knowledge_search_feedback": { "answer_copied": True,