Skip to content

Commit 9ff7c24

Browse files
feat: [google-cloud-dialogflow] added text sections to the submitted summary (googleapis#12451)
BEGIN_COMMIT_OVERRIDE feat: added text sections to the submitted summary feat: added conformer model migration opt out flag feat: added intent input to StreamingAnalyzeContentRequest docs: clarified wording around END_OF_SINGLE_UTTERANCE END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. feat: added conformer model migration opt out flag feat: added intent input to StreamingAnalyzeContentRequest docs: clarified wording around END_OF_SINGLE_UTTERANCE PiperOrigin-RevId: 615454974 Source-Link: googleapis/googleapis@bce5e83 Source-Link: https://github.com/googleapis/googleapis-gen/commit/a1d7a0fbb2820cdeba2f2581e66db7eea6d3c0ce Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6ImExZDdhMGZiYjI4MjBjZGViYTJmMjU4MWU2NmRiN2VlYTZkM2MwY2UifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <omairnaveed@ymail.com>
1 parent 5499d6c commit 9ff7c24

11 files changed

Lines changed: 68 additions & 17 deletions

File tree

packages/google-cloud-dialogflow/google/cloud/dialogflow/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.29.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.29.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dialogflow/google/cloud/dialogflow_v2beta1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.29.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ class SummarizationFeedback(proto.Message):
327327
Timestamp when the summary was submitted.
328328
summary_text (str):
329329
Text of actual submitted summary.
330+
text_sections (MutableMapping[str, str]):
331+
Optional. Actual text sections of submitted
332+
summary.
330333
"""
331334

332335
start_timestamp: timestamp_pb2.Timestamp = proto.Field(
@@ -343,6 +346,11 @@ class SummarizationFeedback(proto.Message):
343346
proto.STRING,
344347
number=3,
345348
)
349+
text_sections: MutableMapping[str, str] = proto.MapField(
350+
proto.STRING,
351+
proto.STRING,
352+
number=4,
353+
)
346354

347355
class KnowledgeSearchFeedback(proto.Message):
348356
r"""Feedback for knowledge search.

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ class BargeInConfig(proto.Message):
385385
386386
The client provides this configuration in terms of the durations of
387387
those two phases. The durations are measured in terms of the audio
388-
length fromt the the start of the input audio.
388+
length from the start of the input audio.
389389
390390
The flow goes like below:
391391
@@ -502,6 +502,12 @@ class InputAudioConfig(proto.Message):
502502
enable_automatic_punctuation (bool):
503503
Enable automatic punctuation option at the
504504
speech backend.
505+
opt_out_conformer_model_migration (bool):
506+
If ``true``, the request will opt out for STT conformer
507+
model migration. This field will be deprecated once force
508+
migration takes place in June 2024. Please refer to
509+
`Dialogflow ES Speech model
510+
migration <https://cloud.google.com/dialogflow/es/docs/speech-model-migration>`__.
505511
"""
506512

507513
audio_encoding: "AudioEncoding" = proto.Field(
@@ -556,6 +562,10 @@ class InputAudioConfig(proto.Message):
556562
proto.BOOL,
557563
number=17,
558564
)
565+
opt_out_conformer_model_migration: bool = proto.Field(
566+
proto.BOOL,
567+
number=26,
568+
)
559569

560570

561571
class VoiceSelectionParams(proto.Message):

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,10 @@ class AnalyzeContentRequest(proto.Message):
773773
An input representing the selection of a
774774
suggestion.
775775
776+
This field is a member of `oneof`_ ``input``.
777+
intent_input (google.cloud.dialogflow_v2beta1.types.IntentInput):
778+
The intent to be triggered on V3 agent.
779+
776780
This field is a member of `oneof`_ ``input``.
777781
reply_audio_config (google.cloud.dialogflow_v2beta1.types.OutputAudioConfig):
778782
Speech synthesis configuration.
@@ -860,6 +864,12 @@ class AnalyzeContentRequest(proto.Message):
860864
oneof="input",
861865
message="SuggestionInput",
862866
)
867+
intent_input: "IntentInput" = proto.Field(
868+
proto.MESSAGE,
869+
number=13,
870+
oneof="input",
871+
message="IntentInput",
872+
)
863873
reply_audio_config: gcd_audio_config.OutputAudioConfig = proto.Field(
864874
proto.MESSAGE,
865875
number=5,
@@ -1120,6 +1130,17 @@ class StreamingAnalyzeContentRequest(proto.Message):
11201130
This input is ignored if the previous response
11211131
indicated that DTMF input is not accepted.
11221132
1133+
This field is a member of `oneof`_ ``input``.
1134+
input_intent (str):
1135+
The intent to be triggered on V3 agent. Format:
1136+
``projects/<Project ID>/locations/<Location ID>/locations/ <Location ID>/agents/<Agent ID>/intents/<Intent ID>``.
1137+
1138+
This field is a member of `oneof`_ ``input``.
1139+
input_event (str):
1140+
The input event name.
1141+
This can only be sent once and would cancel the
1142+
ongoing speech recognition if any.
1143+
11231144
This field is a member of `oneof`_ ``input``.
11241145
query_params (google.cloud.dialogflow_v2beta1.types.QueryParameters):
11251146
Parameters for a Dialogflow virtual-agent
@@ -1217,6 +1238,16 @@ class StreamingAnalyzeContentRequest(proto.Message):
12171238
oneof="input",
12181239
message=gcd_audio_config.TelephonyDtmfEvents,
12191240
)
1241+
input_intent: str = proto.Field(
1242+
proto.STRING,
1243+
number=17,
1244+
oneof="input",
1245+
)
1246+
input_event: str = proto.Field(
1247+
proto.STRING,
1248+
number=20,
1249+
oneof="input",
1250+
)
12201251
query_params: session.QueryParameters = proto.Field(
12211252
proto.MESSAGE,
12221253
number=7,

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,15 +1215,16 @@ class MessageType(proto.Enum):
12151215
DTMF_DIGITS (3):
12161216
Message contains DTMF digits.
12171217
END_OF_SINGLE_UTTERANCE (2):
1218-
Event indicates that the server has detected the end of the
1219-
user's speech utterance and expects no additional speech.
1220-
Therefore, the server will not process additional audio
1221-
(although it may subsequently return additional results).
1222-
The client should stop sending additional audio data,
1223-
half-close the gRPC connection, and wait for any additional
1224-
results until the server closes the gRPC connection. This
1225-
message is only sent if ``single_utterance`` was set to
1226-
``true``, and is not used otherwise.
1218+
This event indicates that the server has detected the end of
1219+
the user's speech utterance and expects no additional
1220+
speech. Therefore, the server will not process additional
1221+
audio (although it may subsequently return additional
1222+
results). The client should stop sending additional audio
1223+
data, half-close the gRPC connection, and wait for any
1224+
additional results until the server closes the gRPC
1225+
connection. This message is only sent if
1226+
``single_utterance`` was set to ``true``, and is not used
1227+
otherwise.
12271228
PARTIAL_DTMF_DIGITS (4):
12281229
Message contains DTMF digits. Before a message with
12291230
DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may

packages/google-cloud-dialogflow/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.v2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-dialogflow",
11-
"version": "2.29.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-dialogflow/samples/generated_samples/snippet_metadata_google.cloud.dialogflow.v2beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-dialogflow",
11-
"version": "2.29.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-dialogflow/scripts/fixup_dialogflow_v2beta1_keywords.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def partition(
3939
class dialogflowCallTransformer(cst.CSTTransformer):
4040
CTRL_PARAMS: Tuple[str] = ('retry', 'timeout', 'metadata')
4141
METHOD_TO_PARAMS: Dict[str, Tuple[str]] = {
42-
'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', ),
42+
'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', ),
4343
'batch_create_entities': ('parent', 'entities', 'language_code', ),
4444
'batch_create_messages': ('parent', 'requests', ),
4545
'batch_delete_entities': ('parent', 'entity_values', 'language_code', ),
@@ -114,7 +114,7 @@ class dialogflowCallTransformer(cst.CSTTransformer):
114114
'search_knowledge': ('query', 'conversation_profile', 'parent', 'session_id', 'conversation', 'latest_message', ),
115115
'set_agent': ('agent', 'update_mask', ),
116116
'set_suggestion_feature_config': ('conversation_profile', 'participant_role', 'suggestion_feature_config', ),
117-
'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', ),
117+
'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', ),
118118
'streaming_detect_intent': ('session', 'query_input', 'query_params', 'single_utterance', 'output_audio_config', 'output_audio_config_mask', 'input_audio', 'enable_debugging_info', ),
119119
'suggest_articles': ('parent', 'latest_message', 'context_size', 'assist_query_params', ),
120120
'suggest_conversation_summary': ('conversation', 'latest_message', 'context_size', 'assist_query_params', ),

0 commit comments

Comments
 (0)