Skip to content

Commit 64582e8

Browse files
authored
chore: librarian generate pull request: 20260325T142734Z (#16167)
PR created by the Librarian CLI to generate Cloud Client Libraries code from protos. BEGIN_COMMIT BEGIN_NESTED_COMMIT feat: updated v3 dialogflow client libraries with `dtmf_pattern` and `trace_blocks` PiperOrigin-RevId: 888886398 Library-IDs: google-cloud-dialogflow-cx Source-link: [googleapis/googleapis@59d5f2b4](googleapis/googleapis@59d5f2b4) END_NESTED_COMMIT BEGIN_NESTED_COMMIT feat: updated v3beta1 dialogflow client libraries with `dtmf_pattern` and `trace_blocks` PiperOrigin-RevId: 887053734 Library-IDs: google-cloud-dialogflow-cx Source-link: [googleapis/googleapis@7e8511aa](googleapis/googleapis@7e8511aa) END_NESTED_COMMIT END_COMMIT This pull request is generated with proto changes between [googleapis/googleapis@256b575f](googleapis/googleapis@256b575) (exclusive) and [googleapis/googleapis@59d5f2b4](googleapis/googleapis@59d5f2b) (inclusive). Librarian Version: v1.0.2-0.20260309131826-42ac5c451239 Language Image: us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:c5699d10addd7c32f45569a3eddc624bf68731095922cf9db0fda5352f849bf5
1 parent 397ae53 commit 64582e8

File tree

16 files changed

+446
-1
lines changed

16 files changed

+446
-1
lines changed

.librarian/state.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,7 @@ libraries:
15511551
tag_format: '{id}-v{version}'
15521552
- id: google-cloud-dialogflow-cx
15531553
version: 2.4.0
1554-
last_generated_commit: 256b575f6915282b20795c13414b21f2c0af65db
1554+
last_generated_commit: 59d5f2b46924714af627ac29ea6de78641a00835
15551555
apis:
15561556
- path: google/cloud/dialogflow/cx/v3
15571557
service_config: dialogflow_v3.yaml

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,17 @@
408408
Action,
409409
AgentUtterance,
410410
FlowInvocation,
411+
FlowTraceMetadata,
411412
FlowTransition,
412413
OutputState,
413414
PlaybookInput,
414415
PlaybookInvocation,
415416
PlaybookOutput,
417+
PlaybookTraceMetadata,
416418
PlaybookTransition,
419+
SpeechProcessingMetadata,
417420
ToolUse,
421+
TraceBlock,
418422
UserUtterance,
419423
)
420424
from google.cloud.dialogflowcx_v3.types.transition_route_group import (
@@ -770,12 +774,16 @@
770774
"Action",
771775
"AgentUtterance",
772776
"FlowInvocation",
777+
"FlowTraceMetadata",
773778
"FlowTransition",
774779
"PlaybookInput",
775780
"PlaybookInvocation",
776781
"PlaybookOutput",
782+
"PlaybookTraceMetadata",
777783
"PlaybookTransition",
784+
"SpeechProcessingMetadata",
778785
"ToolUse",
786+
"TraceBlock",
779787
"UserUtterance",
780788
"OutputState",
781789
"CreateTransitionRouteGroupRequest",

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,13 +367,17 @@
367367
Action,
368368
AgentUtterance,
369369
FlowInvocation,
370+
FlowTraceMetadata,
370371
FlowTransition,
371372
OutputState,
372373
PlaybookInput,
373374
PlaybookInvocation,
374375
PlaybookOutput,
376+
PlaybookTraceMetadata,
375377
PlaybookTransition,
378+
SpeechProcessingMetadata,
376379
ToolUse,
380+
TraceBlock,
377381
UserUtterance,
378382
)
379383
from .types.transition_route_group import (
@@ -636,6 +640,7 @@ def _get_version(dependency_name):
636640
"Flow",
637641
"FlowImportStrategy",
638642
"FlowInvocation",
643+
"FlowTraceMetadata",
639644
"FlowTransition",
640645
"FlowValidationResult",
641646
"FlowsClient",
@@ -765,6 +770,7 @@ def _get_version(dependency_name):
765770
"PlaybookInput",
766771
"PlaybookInvocation",
767772
"PlaybookOutput",
773+
"PlaybookTraceMetadata",
768774
"PlaybookTransition",
769775
"PlaybookVersion",
770776
"PlaybooksClient",
@@ -796,6 +802,7 @@ def _get_version(dependency_name):
796802
"SessionInfo",
797803
"SessionsClient",
798804
"SpeechModelVariant",
805+
"SpeechProcessingMetadata",
799806
"SpeechToTextSettings",
800807
"SpeechWordInfo",
801808
"SsmlVoiceGender",
@@ -822,6 +829,7 @@ def _get_version(dependency_name):
822829
"ToolUse",
823830
"ToolVersion",
824831
"ToolsClient",
832+
"TraceBlock",
825833
"TrainFlowRequest",
826834
"TransitionCoverage",
827835
"TransitionRoute",

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/types/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,13 +345,17 @@
345345
Action,
346346
AgentUtterance,
347347
FlowInvocation,
348+
FlowTraceMetadata,
348349
FlowTransition,
349350
OutputState,
350351
PlaybookInput,
351352
PlaybookInvocation,
352353
PlaybookOutput,
354+
PlaybookTraceMetadata,
353355
PlaybookTransition,
356+
SpeechProcessingMetadata,
354357
ToolUse,
358+
TraceBlock,
355359
UserUtterance,
356360
)
357361
from .transition_route_group import (
@@ -667,12 +671,16 @@
667671
"Action",
668672
"AgentUtterance",
669673
"FlowInvocation",
674+
"FlowTraceMetadata",
670675
"FlowTransition",
671676
"PlaybookInput",
672677
"PlaybookInvocation",
673678
"PlaybookOutput",
679+
"PlaybookTraceMetadata",
674680
"PlaybookTransition",
681+
"SpeechProcessingMetadata",
675682
"ToolUse",
683+
"TraceBlock",
676684
"UserUtterance",
677685
"OutputState",
678686
"CreateTransitionRouteGroupRequest",

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/types/intent.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ class Intent(proto.Message):
127127
understanding an intent like its scope, content,
128128
result etc. Maximum character limit: 140
129129
characters.
130+
dtmf_pattern (str):
131+
Optional. Matching DTMF pattern for the
132+
intent.
130133
"""
131134

132135
class TrainingPhrase(proto.Message):
@@ -286,6 +289,10 @@ class Parameter(proto.Message):
286289
proto.STRING,
287290
number=8,
288291
)
292+
dtmf_pattern: str = proto.Field(
293+
proto.STRING,
294+
number=16,
295+
)
289296

290297

291298
class ListIntentsRequest(proto.Message):

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/types/session.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
response_message,
3737
session_entity_type,
3838
tool_call,
39+
trace,
3940
)
4041
from google.cloud.dialogflowcx_v3.types import intent as gcdc_intent
4142

@@ -1639,6 +1640,13 @@ class QueryResult(proto.Message):
16391640
Optional. Data store connection feature
16401641
output signals. Filled only when data stores are
16411642
involved in serving the query.
1643+
trace_blocks (MutableSequence[google.cloud.dialogflowcx_v3.types.TraceBlock]):
1644+
Optional. Contains the sequence of trace
1645+
blocks from the current conversation turn. Trace
1646+
blocks are ordered chronologically and contain
1647+
detailed traces of runtime behavior such as tool
1648+
calls, LLM calls, flow and playbook invocations,
1649+
agent utterances and user utterances.
16421650
"""
16431651

16441652
text: str = proto.Field(
@@ -1743,6 +1751,11 @@ class QueryResult(proto.Message):
17431751
message=data_store_connection.DataStoreConnectionSignals,
17441752
)
17451753
)
1754+
trace_blocks: MutableSequence[trace.TraceBlock] = proto.RepeatedField(
1755+
proto.MESSAGE,
1756+
number=37,
1757+
message=trace.TraceBlock,
1758+
)
17461759

17471760

17481761
class TextInput(proto.Message):

packages/google-cloud-dialogflow-cx/google/cloud/dialogflowcx_v3/types/trace.py

Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,17 @@
1818
from typing import MutableMapping, MutableSequence
1919

2020
import google.protobuf.struct_pb2 as struct_pb2 # type: ignore
21+
import google.protobuf.timestamp_pb2 as timestamp_pb2 # type: ignore
2122
import proto # type: ignore
2223

2324
__protobuf__ = proto.module(
2425
package="google.cloud.dialogflow.cx.v3",
2526
manifest={
2627
"OutputState",
28+
"TraceBlock",
29+
"SpeechProcessingMetadata",
30+
"PlaybookTraceMetadata",
31+
"FlowTraceMetadata",
2732
"PlaybookInput",
2833
"PlaybookOutput",
2934
"Action",
@@ -64,6 +69,159 @@ class OutputState(proto.Enum):
6469
OUTPUT_STATE_PENDING = 5
6570

6671

72+
class TraceBlock(proto.Message):
73+
r"""The trace block tracks a sequence of actions taken by the
74+
agent in a flow or a playbook.
75+
76+
This message has `oneof`_ fields (mutually exclusive fields).
77+
For each oneof, at most one member field can be set at the same time.
78+
Setting any member of the oneof automatically clears all other
79+
members.
80+
81+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
82+
83+
Attributes:
84+
playbook_trace_metadata (google.cloud.dialogflowcx_v3.types.PlaybookTraceMetadata):
85+
Metadata of the playbook trace.
86+
87+
This field is a member of `oneof`_ ``trace_metadata``.
88+
flow_trace_metadata (google.cloud.dialogflowcx_v3.types.FlowTraceMetadata):
89+
Metadata of the flow trace.
90+
91+
This field is a member of `oneof`_ ``trace_metadata``.
92+
speech_processing_metadata (google.cloud.dialogflowcx_v3.types.SpeechProcessingMetadata):
93+
Metadata of the speech-to-text and
94+
speech-to-text processing.
95+
96+
This field is a member of `oneof`_ ``trace_metadata``.
97+
actions (MutableSequence[google.cloud.dialogflowcx_v3.types.Action]):
98+
The actions performed by the agent and the
99+
user during this session.
100+
start_time (google.protobuf.timestamp_pb2.Timestamp):
101+
Output only. Timestamp of the start of the
102+
trace block.
103+
complete_time (google.protobuf.timestamp_pb2.Timestamp):
104+
Output only. Timestamp of the end of the
105+
trace block.
106+
input_parameters (google.protobuf.struct_pb2.Struct):
107+
Optional. A list of input parameters of the
108+
trace block.
109+
output_parameters (google.protobuf.struct_pb2.Struct):
110+
Optional. A list of output parameters of the
111+
trace block.
112+
end_state (google.cloud.dialogflowcx_v3.types.OutputState):
113+
Optional. Output only. The end state of the
114+
trace block.
115+
"""
116+
117+
playbook_trace_metadata: "PlaybookTraceMetadata" = proto.Field(
118+
proto.MESSAGE,
119+
number=1,
120+
oneof="trace_metadata",
121+
message="PlaybookTraceMetadata",
122+
)
123+
flow_trace_metadata: "FlowTraceMetadata" = proto.Field(
124+
proto.MESSAGE,
125+
number=2,
126+
oneof="trace_metadata",
127+
message="FlowTraceMetadata",
128+
)
129+
speech_processing_metadata: "SpeechProcessingMetadata" = proto.Field(
130+
proto.MESSAGE,
131+
number=8,
132+
oneof="trace_metadata",
133+
message="SpeechProcessingMetadata",
134+
)
135+
actions: MutableSequence["Action"] = proto.RepeatedField(
136+
proto.MESSAGE,
137+
number=3,
138+
message="Action",
139+
)
140+
start_time: timestamp_pb2.Timestamp = proto.Field(
141+
proto.MESSAGE,
142+
number=4,
143+
message=timestamp_pb2.Timestamp,
144+
)
145+
complete_time: timestamp_pb2.Timestamp = proto.Field(
146+
proto.MESSAGE,
147+
number=5,
148+
message=timestamp_pb2.Timestamp,
149+
)
150+
input_parameters: struct_pb2.Struct = proto.Field(
151+
proto.MESSAGE,
152+
number=9,
153+
message=struct_pb2.Struct,
154+
)
155+
output_parameters: struct_pb2.Struct = proto.Field(
156+
proto.MESSAGE,
157+
number=6,
158+
message=struct_pb2.Struct,
159+
)
160+
end_state: "OutputState" = proto.Field(
161+
proto.ENUM,
162+
number=7,
163+
enum="OutputState",
164+
)
165+
166+
167+
class SpeechProcessingMetadata(proto.Message):
168+
r"""Metadata of the speech-to-text and text-to-speech processing.
169+
170+
Attributes:
171+
display_name (str):
172+
Output only. The display name of the speech
173+
processing.
174+
"""
175+
176+
display_name: str = proto.Field(
177+
proto.STRING,
178+
number=1,
179+
)
180+
181+
182+
class PlaybookTraceMetadata(proto.Message):
183+
r"""Metadata of the playbook trace.
184+
185+
Attributes:
186+
playbook (str):
187+
Required. The unique identifier of the playbook. Format:
188+
``projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>``.
189+
display_name (str):
190+
Output only. The display name of the
191+
playbook.
192+
"""
193+
194+
playbook: str = proto.Field(
195+
proto.STRING,
196+
number=1,
197+
)
198+
display_name: str = proto.Field(
199+
proto.STRING,
200+
number=2,
201+
)
202+
203+
204+
class FlowTraceMetadata(proto.Message):
205+
r"""Metadata of the flow trace.
206+
207+
Attributes:
208+
flow (str):
209+
Required. The unique identifier of the flow. Format:
210+
``projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>``.
211+
display_name (str):
212+
Output only. The display name of the flow.
213+
"""
214+
215+
flow: str = proto.Field(
216+
proto.STRING,
217+
number=1,
218+
)
219+
display_name: str = proto.Field(
220+
proto.STRING,
221+
number=2,
222+
)
223+
224+
67225
class PlaybookInput(proto.Message):
68226
r"""Input of the playbook.
69227

0 commit comments

Comments
 (0)