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