@@ -221,7 +221,7 @@ message Conversation {
221221
222222 // Enumeration of the different conversation stages a conversation can be in.
223223 // Reference:
224- // https://cloud.google.com/dialogflow/priv/ docs/contact-center/ basics#stages
224+ // https://cloud.google.com/agent-assist/ docs/basics#conversation_stages
225225 enum ConversationStage {
226226 // Unknown. Should never be used after a conversation is successfully
227227 // created.
@@ -236,6 +236,43 @@ message Conversation {
236236 HUMAN_ASSIST_STAGE = 2 ;
237237 }
238238
239+ // The information about phone calls connected via phone gateway to the
240+ // conversation.
241+ message TelephonyConnectionInfo {
242+ // The SIP headers from the initial SIP INVITE.
243+ message SipHeader {
244+ // Optional. The name of the header.
245+ string name = 1 [(google.api.field_behavior ) = OPTIONAL ];
246+
247+ // Optional. The value of the header.
248+ string value = 2 [(google.api.field_behavior ) = OPTIONAL ];
249+ }
250+
251+ // The mime content from the initial SIP INVITE.
252+ message MimeContent {
253+ // Optional. The mime type of the content.
254+ string mime_type = 1 [(google.api.field_behavior ) = OPTIONAL ];
255+
256+ // Optional. The content payload.
257+ bytes content = 2 [(google.api.field_behavior ) = OPTIONAL ];
258+ }
259+
260+ // Output only. The number dialed to connect this call in E.164 format.
261+ string dialed_number = 2 [(google.api.field_behavior ) = OUTPUT_ONLY ];
262+
263+ // Optional. SDP of the call. It's initially the SDP answer to the endpoint,
264+ // but maybe later updated for the purpose of making the link active, etc.
265+ string sdp = 5 [(google.api.field_behavior ) = OPTIONAL ];
266+
267+ // Output only. The SIP headers from the initial SIP INVITE.
268+ repeated SipHeader sip_headers = 12
269+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
270+
271+ // Output only. The mime content from the initial SIP INVITE.
272+ repeated MimeContent extra_mime_contents = 13
273+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
274+ }
275+
239276 // Output only. Identifier. The unique identifier of this conversation.
240277 // Format: `projects/<Project ID>/locations/<Location
241278 // ID>/conversations/<Conversation ID>`.
@@ -290,6 +327,10 @@ message Conversation {
290327 // [ConversationStage.HUMAN_ASSIST_STAGE][google.cloud.dialogflow.v2.Conversation.ConversationStage.HUMAN_ASSIST_STAGE].
291328 ConversationStage conversation_stage = 7
292329 [(google.api.field_behavior ) = OPTIONAL ];
330+
331+ // Output only. The telephony connection information.
332+ TelephonyConnectionInfo telephony_connection_info = 10
333+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
293334}
294335
295336// The request message for
@@ -437,6 +478,9 @@ message ListMessagesResponse {
437478// Represents a phone number for telephony integration. It allows for connecting
438479// a particular conversation over telephony.
439480message ConversationPhoneNumber {
481+ // Output only. Desired country code for the phone number.
482+ int32 country_code = 2 [(google.api.field_behavior ) = OUTPUT_ONLY ];
483+
440484 // Output only. The phone number to connect to this conversation.
441485 string phone_number = 3 [(google.api.field_behavior ) = OUTPUT_ONLY ];
442486}
@@ -723,7 +767,20 @@ message SearchKnowledgeRequest {
723767 // The control points used to define the curve. The curve defined
724768 // through these control points can only be monotonically increasing
725769 // or decreasing(constant values are acceptable).
726- message ControlPoint {}
770+ message ControlPoint {
771+ // Optional. Can be one of:
772+ // 1. The numerical field value.
773+ // 2. The duration spec for freshness:
774+ // The value must be formatted as an XSD `dayTimeDuration` value
775+ // (a restricted subset of an ISO 8601 duration value). The
776+ // pattern for this is: `[nD][T[nH][nM][nS]]`.
777+ string attribute_value = 1
778+ [(google.api.field_behavior ) = OPTIONAL ];
779+
780+ // Optional. The value between -1 to 1 by which to boost the score
781+ // if the attribute_value evaluates to the value specified above.
782+ float boost_amount = 2 [(google.api.field_behavior ) = OPTIONAL ];
783+ }
727784
728785 // Optional. The name of the field whose value will be used to
729786 // determine the boost amount.
@@ -787,7 +844,7 @@ message SearchKnowledgeRequest {
787844 }
788845
789846 // Optional. Condition boost specifications. If a document matches
790- // multiple conditions in the specifictions , boost scores from these
847+ // multiple conditions in the specifications , boost scores from these
791848 // specifications are all applied and combined in a non-linear way.
792849 // Maximum number of specifications is 20.
793850 repeated ConditionBoostSpec condition_boost_specs = 1
@@ -824,10 +881,19 @@ message SearchKnowledgeRequest {
824881 }
825882
826883 // Optional. Boost specifications for data stores.
884+ //
885+ // Maps from datastore name to their boost configuration. Do not specify
886+ // more than one BoostSpecs for each datastore name. If multiple BoostSpecs
887+ // are provided for the same datastore name, the behavior is undefined.
827888 repeated BoostSpecs boost_specs = 1
828889 [(google.api.field_behavior ) = OPTIONAL ];
829890
830891 // Optional. Filter specification for data store queries.
892+ //
893+ // TMaps from datastore name to the filter expression for that datastore. Do
894+ // not specify more than one FilterSpecs for each datastore name. If
895+ // multiple FilterSpecs are provided for the same datastore name, the
896+ // behavior is undefined.
831897 repeated FilterSpecs filter_specs = 2
832898 [(google.api.field_behavior ) = OPTIONAL ];
833899 }
@@ -966,5 +1032,7 @@ message SearchKnowledgeAnswer {
9661032 // The name of the answer record.
9671033 // Format: `projects/<Project ID>/locations/<location ID>/answer
9681034 // Records/<Answer Record ID>`
969- string answer_record = 5 ;
1035+ string answer_record = 5 [(google.api.resource_reference ) = {
1036+ type : "dialogflow.googleapis.com/AnswerRecord"
1037+ }];
9701038}
0 commit comments