Skip to content

Commit cfed8e6

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add IngestConversationsStats
docs: Reformat some lines of code PiperOrigin-RevId: 506985378
1 parent e493453 commit cfed8e6

3 files changed

Lines changed: 196 additions & 115 deletions

File tree

google/cloud/contactcenterinsights/v1/contact_center_insights.proto

Lines changed: 106 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,17 @@ option ruby_package = "Google::Cloud::ContactCenterInsights::V1";
3939
// An API that lets users analyze and explore their business conversation data.
4040
service ContactCenterInsights {
4141
option (google.api.default_host) = "contactcenterinsights.googleapis.com";
42-
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
42+
option (google.api.oauth_scopes) =
43+
"https://www.googleapis.com/auth/cloud-platform";
4344

4445
// Creates a conversation.
4546
rpc CreateConversation(CreateConversationRequest) returns (Conversation) {
4647
option (google.api.http) = {
4748
post: "/v1/{parent=projects/*/locations/*}/conversations"
4849
body: "conversation"
4950
};
50-
option (google.api.method_signature) = "parent,conversation,conversation_id";
51+
option (google.api.method_signature) =
52+
"parent,conversation,conversation_id";
5153
}
5254

5355
// Updates a conversation.
@@ -68,15 +70,17 @@ service ContactCenterInsights {
6870
}
6971

7072
// Lists conversations.
71-
rpc ListConversations(ListConversationsRequest) returns (ListConversationsResponse) {
73+
rpc ListConversations(ListConversationsRequest)
74+
returns (ListConversationsResponse) {
7275
option (google.api.http) = {
7376
get: "/v1/{parent=projects/*/locations/*}/conversations"
7477
};
7578
option (google.api.method_signature) = "parent";
7679
}
7780

7881
// Deletes a conversation.
79-
rpc DeleteConversation(DeleteConversationRequest) returns (google.protobuf.Empty) {
82+
rpc DeleteConversation(DeleteConversationRequest)
83+
returns (google.protobuf.Empty) {
8084
option (google.api.http) = {
8185
delete: "/v1/{name=projects/*/locations/*/conversations/*}"
8286
};
@@ -85,7 +89,8 @@ service ContactCenterInsights {
8589

8690
// Creates an analysis. The long running operation is done when the analysis
8791
// has completed.
88-
rpc CreateAnalysis(CreateAnalysisRequest) returns (google.longrunning.Operation) {
92+
rpc CreateAnalysis(CreateAnalysisRequest)
93+
returns (google.longrunning.Operation) {
8994
option (google.api.http) = {
9095
post: "/v1/{parent=projects/*/locations/*/conversations/*}/analyses"
9196
body: "analysis"
@@ -122,7 +127,8 @@ service ContactCenterInsights {
122127
}
123128

124129
// Analyzes multiple conversations in a single request.
125-
rpc BulkAnalyzeConversations(BulkAnalyzeConversationsRequest) returns (google.longrunning.Operation) {
130+
rpc BulkAnalyzeConversations(BulkAnalyzeConversationsRequest)
131+
returns (google.longrunning.Operation) {
126132
option (google.api.http) = {
127133
post: "/v1/{parent=projects/*/locations/*}/conversations:bulkAnalyze"
128134
body: "*"
@@ -136,7 +142,8 @@ service ContactCenterInsights {
136142

137143
// Imports conversations and processes them according to the user's
138144
// configuration.
139-
rpc IngestConversations(IngestConversationsRequest) returns (google.longrunning.Operation) {
145+
rpc IngestConversations(IngestConversationsRequest)
146+
returns (google.longrunning.Operation) {
140147
option (google.api.http) = {
141148
post: "/v1/{parent=projects/*/locations/*}/conversations:ingest"
142149
body: "*"
@@ -149,7 +156,8 @@ service ContactCenterInsights {
149156
}
150157

151158
// Export insights data to a destination defined in the request body.
152-
rpc ExportInsightsData(ExportInsightsDataRequest) returns (google.longrunning.Operation) {
159+
rpc ExportInsightsData(ExportInsightsDataRequest)
160+
returns (google.longrunning.Operation) {
153161
option (google.api.http) = {
154162
post: "/v1/{parent=projects/*/locations/*}/insightsdata:export"
155163
body: "*"
@@ -162,7 +170,8 @@ service ContactCenterInsights {
162170
}
163171

164172
// Creates an issue model.
165-
rpc CreateIssueModel(CreateIssueModelRequest) returns (google.longrunning.Operation) {
173+
rpc CreateIssueModel(CreateIssueModelRequest)
174+
returns (google.longrunning.Operation) {
166175
option (google.api.http) = {
167176
post: "/v1/{parent=projects/*/locations/*}/issueModels"
168177
body: "issue_model"
@@ -192,15 +201,17 @@ service ContactCenterInsights {
192201
}
193202

194203
// Lists issue models.
195-
rpc ListIssueModels(ListIssueModelsRequest) returns (ListIssueModelsResponse) {
204+
rpc ListIssueModels(ListIssueModelsRequest)
205+
returns (ListIssueModelsResponse) {
196206
option (google.api.http) = {
197207
get: "/v1/{parent=projects/*/locations/*}/issueModels"
198208
};
199209
option (google.api.method_signature) = "parent";
200210
}
201211

202212
// Deletes an issue model.
203-
rpc DeleteIssueModel(DeleteIssueModelRequest) returns (google.longrunning.Operation) {
213+
rpc DeleteIssueModel(DeleteIssueModelRequest)
214+
returns (google.longrunning.Operation) {
204215
option (google.api.http) = {
205216
delete: "/v1/{name=projects/*/locations/*/issueModels/*}"
206217
};
@@ -213,7 +224,8 @@ service ContactCenterInsights {
213224

214225
// Deploys an issue model. Returns an error if a model is already deployed.
215226
// An issue model can only be used in analysis after it has been deployed.
216-
rpc DeployIssueModel(DeployIssueModelRequest) returns (google.longrunning.Operation) {
227+
rpc DeployIssueModel(DeployIssueModelRequest)
228+
returns (google.longrunning.Operation) {
217229
option (google.api.http) = {
218230
post: "/v1/{name=projects/*/locations/*/issueModels/*}:deploy"
219231
body: "*"
@@ -227,7 +239,8 @@ service ContactCenterInsights {
227239

228240
// Undeploys an issue model.
229241
// An issue model can not be used in analysis after it has been undeployed.
230-
rpc UndeployIssueModel(UndeployIssueModelRequest) returns (google.longrunning.Operation) {
242+
rpc UndeployIssueModel(UndeployIssueModelRequest)
243+
returns (google.longrunning.Operation) {
231244
option (google.api.http) = {
232245
post: "/v1/{name=projects/*/locations/*/issueModels/*}:undeploy"
233246
body: "*"
@@ -273,7 +286,8 @@ service ContactCenterInsights {
273286
}
274287

275288
// Gets an issue model's statistics.
276-
rpc CalculateIssueModelStats(CalculateIssueModelStatsRequest) returns (CalculateIssueModelStatsResponse) {
289+
rpc CalculateIssueModelStats(CalculateIssueModelStatsRequest)
290+
returns (CalculateIssueModelStatsResponse) {
277291
option (google.api.http) = {
278292
get: "/v1/{issue_model=projects/*/locations/*/issueModels/*}:calculateIssueModelStats"
279293
};
@@ -298,15 +312,17 @@ service ContactCenterInsights {
298312
}
299313

300314
// Lists phrase matchers.
301-
rpc ListPhraseMatchers(ListPhraseMatchersRequest) returns (ListPhraseMatchersResponse) {
315+
rpc ListPhraseMatchers(ListPhraseMatchersRequest)
316+
returns (ListPhraseMatchersResponse) {
302317
option (google.api.http) = {
303318
get: "/v1/{parent=projects/*/locations/*}/phraseMatchers"
304319
};
305320
option (google.api.method_signature) = "parent";
306321
}
307322

308323
// Deletes a phrase matcher.
309-
rpc DeletePhraseMatcher(DeletePhraseMatcherRequest) returns (google.protobuf.Empty) {
324+
rpc DeletePhraseMatcher(DeletePhraseMatcherRequest)
325+
returns (google.protobuf.Empty) {
310326
option (google.api.http) = {
311327
delete: "/v1/{name=projects/*/locations/*/phraseMatchers/*}"
312328
};
@@ -479,10 +495,12 @@ message CalculateStatsResponse {
479495
// Metadata for a create analysis operation.
480496
message CreateAnalysisOperationMetadata {
481497
// Output only. The time the operation was created.
482-
google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
498+
google.protobuf.Timestamp create_time = 1
499+
[(google.api.field_behavior) = OUTPUT_ONLY];
483500

484501
// Output only. The time the operation finished running.
485-
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
502+
google.protobuf.Timestamp end_time = 2
503+
[(google.api.field_behavior) = OUTPUT_ONLY];
486504

487505
// Output only. The Conversation that this Analysis Operation belongs to.
488506
string conversation = 3 [
@@ -493,7 +511,8 @@ message CreateAnalysisOperationMetadata {
493511
];
494512

495513
// Output only. The annotator selector used for the analysis (if any).
496-
AnnotatorSelector annotator_selector = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
514+
AnnotatorSelector annotator_selector = 4
515+
[(google.api.field_behavior) = OUTPUT_ONLY];
497516
}
498517

499518
// Request to create a conversation.
@@ -645,24 +664,51 @@ message IngestConversationsRequest {
645664

646665
// The metadata for an IngestConversations operation.
647666
message IngestConversationsMetadata {
667+
// Statistics for IngestConversations operation.
668+
message IngestConversationsStats {
669+
// Output only. The number of objects processed during the ingest operation.
670+
int32 processed_object_count = 1
671+
[(google.api.field_behavior) = OUTPUT_ONLY];
672+
673+
// Output only. The number of objects skipped because another conversation
674+
// with the same transcript uri had already been ingested.
675+
int32 duplicates_skipped_count = 2
676+
[(google.api.field_behavior) = OUTPUT_ONLY];
677+
678+
// Output only. The number of new conversations added during this ingest
679+
// operation.
680+
int32 successful_ingest_count = 3
681+
[(google.api.field_behavior) = OUTPUT_ONLY];
682+
683+
// Output only. The number of objects which were unable to be ingested due
684+
// to errors. The errors are populated in the partial_errors field.
685+
int32 failed_ingest_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
686+
}
687+
648688
// Output only. The time the operation was created.
649-
google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
689+
google.protobuf.Timestamp create_time = 1
690+
[(google.api.field_behavior) = OUTPUT_ONLY];
650691

651692
// Output only. The time the operation finished running.
652-
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
693+
google.protobuf.Timestamp end_time = 2
694+
[(google.api.field_behavior) = OUTPUT_ONLY];
653695

654696
// Output only. The original request for ingest.
655-
IngestConversationsRequest request = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
697+
IngestConversationsRequest request = 3
698+
[(google.api.field_behavior) = OUTPUT_ONLY];
656699

657-
// Output only. Partial errors during ingest operation that might cause the operation
658-
// output to be incomplete.
659-
repeated google.rpc.Status partial_errors = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
700+
// Output only. Partial errors during ingest operation that might cause the
701+
// operation output to be incomplete.
702+
repeated google.rpc.Status partial_errors = 4
703+
[(google.api.field_behavior) = OUTPUT_ONLY];
704+
705+
// Output only. Statistics for IngestConversations operation.
706+
IngestConversationsStats ingest_conversations_stats = 5
707+
[(google.api.field_behavior) = OUTPUT_ONLY];
660708
}
661709

662710
// The response to an IngestConversations operation.
663-
message IngestConversationsResponse {
664-
665-
}
711+
message IngestConversationsResponse {}
666712

667713
// The request to create an analysis.
668714
message CreateAnalysisRequest {
@@ -798,9 +844,9 @@ message ExportInsightsDataRequest {
798844
// the resource project will be used.
799845
string project_id = 3;
800846

801-
// Required. The name of the BigQuery dataset that the snapshot result should be
802-
// exported to. If this dataset does not exist, the export call returns an
803-
// INVALID_ARGUMENT error.
847+
// Required. The name of the BigQuery dataset that the snapshot result
848+
// should be exported to. If this dataset does not exist, the export call
849+
// returns an INVALID_ARGUMENT error.
804850
string dataset = 1 [(google.api.field_behavior) = REQUIRED];
805851

806852
// The BigQuery table name to which the insights data should be written.
@@ -852,10 +898,12 @@ message ExportInsightsDataRequest {
852898
// Metadata for an export insights operation.
853899
message ExportInsightsDataMetadata {
854900
// Output only. The time the operation was created.
855-
google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
901+
google.protobuf.Timestamp create_time = 1
902+
[(google.api.field_behavior) = OUTPUT_ONLY];
856903

857904
// Output only. The time the operation finished running.
858-
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
905+
google.protobuf.Timestamp end_time = 2
906+
[(google.api.field_behavior) = OUTPUT_ONLY];
859907

860908
// The original request for export.
861909
ExportInsightsDataRequest request = 3;
@@ -866,9 +914,7 @@ message ExportInsightsDataMetadata {
866914
}
867915

868916
// Response for an export insights operation.
869-
message ExportInsightsDataResponse {
870-
871-
}
917+
message ExportInsightsDataResponse {}
872918

873919
// The request to create an issue model.
874920
message CreateIssueModelRequest {
@@ -887,10 +933,12 @@ message CreateIssueModelRequest {
887933
// Metadata for creating an issue model.
888934
message CreateIssueModelMetadata {
889935
// Output only. The time the operation was created.
890-
google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
936+
google.protobuf.Timestamp create_time = 1
937+
[(google.api.field_behavior) = OUTPUT_ONLY];
891938

892939
// Output only. The time the operation finished running.
893-
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
940+
google.protobuf.Timestamp end_time = 2
941+
[(google.api.field_behavior) = OUTPUT_ONLY];
894942

895943
// The original request for creation.
896944
CreateIssueModelRequest request = 3;
@@ -947,10 +995,12 @@ message DeleteIssueModelRequest {
947995
// Metadata for deleting an issue model.
948996
message DeleteIssueModelMetadata {
949997
// Output only. The time the operation was created.
950-
google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
998+
google.protobuf.Timestamp create_time = 1
999+
[(google.api.field_behavior) = OUTPUT_ONLY];
9511000

9521001
// Output only. The time the operation finished running.
953-
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
1002+
google.protobuf.Timestamp end_time = 2
1003+
[(google.api.field_behavior) = OUTPUT_ONLY];
9541004

9551005
// The original request for deletion.
9561006
DeleteIssueModelRequest request = 3;
@@ -968,17 +1018,17 @@ message DeployIssueModelRequest {
9681018
}
9691019

9701020
// The response to deploy an issue model.
971-
message DeployIssueModelResponse {
972-
973-
}
1021+
message DeployIssueModelResponse {}
9741022

9751023
// Metadata for deploying an issue model.
9761024
message DeployIssueModelMetadata {
9771025
// Output only. The time the operation was created.
978-
google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
1026+
google.protobuf.Timestamp create_time = 1
1027+
[(google.api.field_behavior) = OUTPUT_ONLY];
9791028

9801029
// Output only. The time the operation finished running.
981-
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
1030+
google.protobuf.Timestamp end_time = 2
1031+
[(google.api.field_behavior) = OUTPUT_ONLY];
9821032

9831033
// The original request for deployment.
9841034
DeployIssueModelRequest request = 3;
@@ -996,17 +1046,17 @@ message UndeployIssueModelRequest {
9961046
}
9971047

9981048
// The response to undeploy an issue model.
999-
message UndeployIssueModelResponse {
1000-
1001-
}
1049+
message UndeployIssueModelResponse {}
10021050

10031051
// Metadata for undeploying an issue model.
10041052
message UndeployIssueModelMetadata {
10051053
// Output only. The time the operation was created.
1006-
google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
1054+
google.protobuf.Timestamp create_time = 1
1055+
[(google.api.field_behavior) = OUTPUT_ONLY];
10071056

10081057
// Output only. The time the operation finished running.
1009-
google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
1058+
google.protobuf.Timestamp end_time = 2
1059+
[(google.api.field_behavior) = OUTPUT_ONLY];
10101060

10111061
// The original request for undeployment.
10121062
UndeployIssueModelRequest request = 3;
@@ -1080,10 +1130,10 @@ message CalculateIssueModelStatsResponse {
10801130

10811131
// Request to create a phrase matcher.
10821132
message CreatePhraseMatcherRequest {
1083-
// Required. The parent resource of the phrase matcher. Required. The location to create
1084-
// a phrase matcher for.
1085-
// Format: `projects/<Project ID>/locations/<Location ID>` or
1086-
// `projects/<Project Number>/locations/<Location ID>`
1133+
// Required. The parent resource of the phrase matcher. Required. The location
1134+
// to create a phrase matcher for. Format: `projects/<Project
1135+
// ID>/locations/<Location ID>` or `projects/<Project
1136+
// Number>/locations/<Location ID>`
10871137
string parent = 1 [
10881138
(google.api.field_behavior) = REQUIRED,
10891139
(google.api.resource_reference) = {
@@ -1179,7 +1229,8 @@ message UpdateSettingsRequest {
11791229
Settings settings = 1 [(google.api.field_behavior) = REQUIRED];
11801230

11811231
// Required. The list of fields to be updated.
1182-
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
1232+
google.protobuf.FieldMask update_mask = 2
1233+
[(google.api.field_behavior) = REQUIRED];
11831234
}
11841235

11851236
// The request to create a view.

google/cloud/contactcenterinsights/v1/contactcenterinsights_v1.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,10 @@ authentication:
4444
4545
publishing:
4646
organization: CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED
47+
new_issue_uri: ''
48+
documentation_uri: ''
49+
api_short_name: ''
50+
github_label: ''
51+
doc_tag_prefix: ''
52+
codeowner_github_teams:
53+
library_settings:

0 commit comments

Comments
 (0)