@@ -52,6 +52,21 @@ service ContactCenterInsights {
5252 "parent,conversation,conversation_id" ;
5353 }
5454
55+ // Create a longrunning conversation upload operation. This method differs
56+ // from CreateConversation by allowing audio transcription and optional DLP
57+ // redaction.
58+ rpc UploadConversation (UploadConversationRequest )
59+ returns (google.longrunning.Operation ) {
60+ option (google.api.http ) = {
61+ post : "/v1/{parent=projects/*/locations/*}/conversations:upload"
62+ body : "*"
63+ };
64+ option (google.longrunning.operation_info ) = {
65+ response_type : "Conversation"
66+ metadata_type : "UploadConversationMetadata"
67+ };
68+ }
69+
5570 // Updates a conversation.
5671 rpc UpdateConversation (UpdateConversationRequest ) returns (Conversation ) {
5772 option (google.api.http ) = {
@@ -537,6 +552,55 @@ message CreateConversationRequest {
537552 string conversation_id = 3 ;
538553}
539554
555+ // Request to upload a conversation.
556+ message UploadConversationRequest {
557+ // Required. The parent resource of the conversation.
558+ string parent = 1 [
559+ (google.api.field_behavior ) = REQUIRED ,
560+ (google.api.resource_reference ) = {
561+ type : "locations.googleapis.com/Location"
562+ }
563+ ];
564+
565+ // Required. The conversation resource to create.
566+ Conversation conversation = 2 [(google.api.field_behavior ) = REQUIRED ];
567+
568+ // Optional. A unique ID for the new conversation. This ID will become the
569+ // final component of the conversation's resource name. If no ID is specified,
570+ // a server-generated ID will be used.
571+ //
572+ // This value should be 4-64 characters and must match the regular
573+ // expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
574+ string conversation_id = 3 [(google.api.field_behavior ) = OPTIONAL ];
575+
576+ // Optional. DLP settings for transcript redaction. Optional, will default to
577+ // the config specified in Settings.
578+ RedactionConfig redaction_config = 4 [(google.api.field_behavior ) = OPTIONAL ];
579+ }
580+
581+ // The metadata for an UploadConversation operation.
582+ message UploadConversationMetadata {
583+ // Output only. The time the operation was created.
584+ google.protobuf.Timestamp create_time = 1
585+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
586+
587+ // Output only. The time the operation finished running.
588+ google.protobuf.Timestamp end_time = 2
589+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
590+
591+ // Output only. The original request.
592+ UploadConversationRequest request = 3
593+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
594+
595+ // Output only. The operation name for a successfully created analysis
596+ // operation, if any.
597+ string analysis_operation = 4 [(google.api.field_behavior ) = OUTPUT_ONLY ];
598+
599+ // Output only. The redaction config applied to the uploaded conversation.
600+ RedactionConfig applied_redaction_config = 5
601+ [(google.api.field_behavior ) = OUTPUT_ONLY ];
602+ }
603+
540604// Request to list conversations.
541605message ListConversationsRequest {
542606 // Required. The parent resource of the conversation.
0 commit comments