Skip to content

Commit c2c997b

Browse files
feat: [google-cloud-dialogflow] added text sections to the submitted summary (googleapis#12441)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: added text sections to the submitted summary feat: added conformer model migration opt out flag docs: clarified wording around END_OF_SINGLE_UTTERANCE END_COMMIT_OVERRIDE PiperOrigin-RevId: 614805668 Source-Link: googleapis/googleapis@14d09ef Source-Link: https://github.com/googleapis/googleapis-gen/commit/e60ad0b5cd964482218af0810802f8bfa2ec64d2 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6ImU2MGFkMGI1Y2Q5NjQ0ODIyMThhZjA4MTA4MDJmOGJmYTJlYzY0ZDIifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 96c2696 commit c2c997b

4 files changed

Lines changed: 29 additions & 9 deletions

File tree

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -381,6 +381,9 @@ class SummarizationFeedback(proto.Message):
381381
Timestamp when the summary was submitted.
382382
summary_text (str):
383383
Text of actual submitted summary.
384+
text_sections (MutableMapping[str, str]):
385+
Optional. Actual text sections of submitted
386+
summary.
384387
"""
385388

386389
start_time: timestamp_pb2.Timestamp = proto.Field(
@@ -397,6 +400,11 @@ class SummarizationFeedback(proto.Message):
397400
proto.STRING,
398401
number=3,
399402
)
403+
text_sections: MutableMapping[str, str] = proto.MapField(
404+
proto.STRING,
405+
proto.STRING,
406+
number=4,
407+
)
400408

401409
class KnowledgeSearchFeedback(proto.Message):
402410
r"""Feedback for knowledge search.

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,12 @@ class InputAudioConfig(proto.Message):
437437
enable_automatic_punctuation (bool):
438438
Enable automatic punctuation option at the
439439
speech backend.
440+
opt_out_conformer_model_migration (bool):
441+
If ``true``, the request will opt out for STT conformer
442+
model migration. This field will be deprecated once force
443+
migration takes place in June 2024. Please refer to
444+
`Dialogflow ES Speech model
445+
migration <https://cloud.google.com/dialogflow/es/docs/speech-model-migration>`__.
440446
"""
441447

442448
audio_encoding: "AudioEncoding" = proto.Field(
@@ -486,6 +492,10 @@ class InputAudioConfig(proto.Message):
486492
proto.BOOL,
487493
number=17,
488494
)
495+
opt_out_conformer_model_migration: bool = proto.Field(
496+
proto.BOOL,
497+
number=26,
498+
)
489499

490500

491501
class VoiceSelectionParams(proto.Message):

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,15 +1021,16 @@ class MessageType(proto.Enum):
10211021
Message contains a (possibly partial)
10221022
transcript.
10231023
END_OF_SINGLE_UTTERANCE (2):
1024-
Event indicates that the server has detected the end of the
1025-
user's speech utterance and expects no additional inputs.
1026-
Therefore, the server will not process additional audio
1027-
(although it may subsequently return additional results).
1028-
The client should stop sending additional audio data,
1029-
half-close the gRPC connection, and wait for any additional
1030-
results until the server closes the gRPC connection. This
1031-
message is only sent if ``single_utterance`` was set to
1032-
``true``, and is not used otherwise.
1024+
This event indicates that the server has detected the end of
1025+
the user's speech utterance and expects no additional
1026+
inputs. Therefore, the server will not process additional
1027+
audio (although it may subsequently return additional
1028+
results). The client should stop sending additional audio
1029+
data, half-close the gRPC connection, and wait for any
1030+
additional results until the server closes the gRPC
1031+
connection. This message is only sent if
1032+
``single_utterance`` was set to ``true``, and is not used
1033+
otherwise.
10331034
"""
10341035
MESSAGE_TYPE_UNSPECIFIED = 0
10351036
TRANSCRIPT = 1

packages/google-cloud-dialogflow/tests/unit/gapic/dialogflow_v2/test_answer_records.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,6 +2189,7 @@ def test_update_answer_record_rest(request_type):
21892189
"start_time": {"seconds": 751, "nanos": 543},
21902190
"submit_time": {},
21912191
"summary_text": "summary_text_value",
2192+
"text_sections": {},
21922193
},
21932194
"knowledge_search_feedback": {
21942195
"answer_copied": True,

0 commit comments

Comments
 (0)