@@ -29,6 +29,11 @@ option java_outer_classname = "ResourcesProto";
2929option java_package = "com.google.cloud.contactcenterinsights.v1" ;
3030option php_namespace = "Google\\Cloud\\ContactCenterInsights\\V1" ;
3131option ruby_package = "Google::Cloud::ContactCenterInsights::V1" ;
32+ option (google.api.resource_definition ) = {
33+ type : "dialogflow.googleapis.com/Participant"
34+ pattern : "projects/{project}/conversations/{conversation}/participants/{participant}"
35+ pattern : "projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}"
36+ };
3237
3338// The conversation resource.
3439message Conversation {
@@ -68,31 +73,6 @@ message Conversation {
6873 float confidence = 4 ;
6974 }
7075
71- // The participant of the transcript segment.
72- message Participant {
73- // The role of the participant.
74- enum Role {
75- // Participant's role is not set.
76- ROLE_UNSPECIFIED = 0 ;
77-
78- // Participant is a human agent.
79- HUMAN_AGENT = 1 ;
80-
81- // Participant is an automated agent.
82- AUTOMATED_AGENT = 2 ;
83-
84- // Participant is an end user who conversed with the contact center.
85- END_USER = 3 ;
86- }
87-
88- // The name of the Dialogflow participant. Format:
89- // projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
90- string dialogflow_participant = 1 ;
91-
92- // The role of the participant.
93- Role role = 2 ;
94- }
95-
9676 // The text of this segment.
9777 string text = 1 ;
9878
@@ -115,7 +95,7 @@ message Conversation {
11595 int32 channel_tag = 5 ;
11696
11797 // The participant of this segment.
118- Participant participant = 8 ;
98+ ConversationParticipant segment_participant = 9 ;
11999 }
120100
121101 // A list of sequential transcript segments that comprise the conversation.
@@ -368,11 +348,6 @@ message CallAnnotation {
368348message AnnotationBoundary {
369349 // A detailed boundary, which describes a more specific point.
370350 oneof detailed_boundary {
371- // Deprecated: Use `word_index` for the detailed boundary.
372- // The time offset of this boundary with respect to the start time of the
373- // first word in the transcript piece.
374- google.protobuf.Duration time_offset = 2 [deprecated = true ];
375-
376351 // The word index of this boundary with respect to the first word in the
377352 // transcript piece. This index starts at zero.
378353 int32 word_index = 3 ;
@@ -734,6 +709,11 @@ message PhraseMatcher {
734709
735710 // Output only. The most recent time at which the activation status was updated.
736711 google.protobuf.Timestamp activation_update_time = 9 [(google.api.field_behavior ) = OUTPUT_ONLY ];
712+
713+ // The role whose utterances the phrase matcher should be matched
714+ // against. If the role is ROLE_UNSPECIFIED it will be matched against any
715+ // utterances in the transcript.
716+ ConversationParticipant.Role role_match = 10 ;
737717}
738718
739719// A message representing a rule in the phrase matcher.
@@ -1015,3 +995,31 @@ message DialogflowInteractionData {
1015995 // (completely certain).
1016996 float confidence = 2 ;
1017997}
998+
999+ // The call participant speaking for a given utterance.
1000+ message ConversationParticipant {
1001+ // The role of the participant.
1002+ enum Role {
1003+ // Participant's role is not set.
1004+ ROLE_UNSPECIFIED = 0 ;
1005+
1006+ // Participant is a human agent.
1007+ HUMAN_AGENT = 1 ;
1008+
1009+ // Participant is an automated agent.
1010+ AUTOMATED_AGENT = 2 ;
1011+
1012+ // Participant is an end user who conversed with the contact center.
1013+ END_USER = 3 ;
1014+
1015+ // Participant is either a human or automated agent.
1016+ ANY_AGENT = 4 ;
1017+ }
1018+
1019+ // The name of the Dialogflow participant. Format:
1020+ // projects/{project}/locations/{location}/conversations/{conversation}/participants/{participant}
1021+ string dialogflow_participant = 1 ;
1022+
1023+ // The role of the participant.
1024+ Role role = 2 ;
1025+ }
0 commit comments