@@ -19,6 +19,7 @@ package google.cloud.dialogflow.cx.v3;
1919import "google/api/field_behavior.proto" ;
2020import "google/api/resource.proto" ;
2121import "google/protobuf/struct.proto" ;
22+ import "google/protobuf/timestamp.proto" ;
2223
2324option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3" ;
2425option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb" ;
@@ -28,6 +29,83 @@ option java_package = "com.google.cloud.dialogflow.cx.v3";
2829option objc_class_prefix = "DF" ;
2930option ruby_package = "Google::Cloud::Dialogflow::CX::V3" ;
3031
32+ // The trace block tracks a sequence of actions taken by the agent in a flow or
33+ // a playbook.
34+ message TraceBlock {
35+ // Metadata of the trace.
36+ oneof trace_metadata {
37+ // Metadata of the playbook trace.
38+ PlaybookTraceMetadata playbook_trace_metadata = 1 ;
39+
40+ // Metadata of the flow trace.
41+ FlowTraceMetadata flow_trace_metadata = 2 ;
42+
43+ // Metadata of the speech-to-text and speech-to-text processing.
44+ SpeechProcessingMetadata speech_processing_metadata = 8 ;
45+ }
46+
47+ // The actions performed by the agent and the user during this session.
48+ repeated Action actions = 3 ;
49+
50+ // Output only. Timestamp of the start of the trace block.
51+ google.protobuf.Timestamp start_time = 4
52+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
53+
54+ // Output only. Timestamp of the end of the trace block.
55+ google.protobuf.Timestamp complete_time = 5
56+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
57+
58+ // Optional. A list of input parameters of the trace block.
59+ google.protobuf.Struct input_parameters = 9
60+ [(google.api.field_behavior ) = OPTIONAL ];
61+
62+ // Optional. A list of output parameters of the trace block.
63+ google.protobuf.Struct output_parameters = 6
64+ [(google.api.field_behavior ) = OPTIONAL ];
65+
66+ // Optional. Output only. The end state of the trace block.
67+ OutputState end_state = 7 [
68+ (google.api.field_behavior ) = OUTPUT_ONLY ,
69+ (google.api.field_behavior ) = OPTIONAL
70+ ];
71+ }
72+
73+ // Metadata of the speech-to-text and text-to-speech processing.
74+ message SpeechProcessingMetadata {
75+ // Output only. The display name of the speech processing.
76+ string display_name = 1 [(google.api.field_behavior ) = OUTPUT_ONLY ];
77+ }
78+
79+ // Metadata of the playbook trace.
80+ message PlaybookTraceMetadata {
81+ // Required. The unique identifier of the playbook.
82+ // Format:
83+ // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`.
84+ string playbook = 1 [
85+ (google.api.field_behavior ) = REQUIRED ,
86+ (google.api.resource_reference ) = {
87+ type : "dialogflow.googleapis.com/Playbook"
88+ }
89+ ];
90+
91+ // Output only. The display name of the playbook.
92+ string display_name = 2 [(google.api.field_behavior ) = OUTPUT_ONLY ];
93+ }
94+
95+ // Metadata of the flow trace.
96+ message FlowTraceMetadata {
97+ // Required. The unique identifier of the flow.
98+ // Format:
99+ // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.
100+ string flow = 1 [
101+ (google.api.field_behavior ) = REQUIRED ,
102+ (google.api.resource_reference ) = { type : "dialogflow.googleapis.com/Flow" }
103+ ];
104+
105+ // Output only. The display name of the flow.
106+ string display_name = 2 [(google.api.field_behavior ) = OUTPUT_ONLY ];
107+ }
108+
31109// Input of the playbook.
32110message PlaybookInput {
33111 // Optional. Summary string of the preceding conversation for the child
0 commit comments