From dbdc8a128dd35a71cd476f03b04e0ae8a809b40d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 3 Nov 2023 11:18:16 -0700 Subject: [PATCH] feat: [contactcenterinsights] Launch BulkDelete API, and bulk audio import via the IngestConversations API (#10039) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: Launch BulkDelete API, and bulk audio import via the IngestConversations API PiperOrigin-RevId: 579178675 Source-Link: https://github.com/googleapis/googleapis/commit/7e33fcb5d4a6d91650f917bf8a91907cb7e94daf Source-Link: https://github.com/googleapis/googleapis-gen/commit/cb25a3fccb79bb35f227b0b1939ff62f056dfbea Copy-Tag: eyJwIjoiamF2YS1jb250YWN0LWNlbnRlci1pbnNpZ2h0cy8uT3dsQm90LnlhbWwiLCJoIjoiY2IyNWEzZmNjYjc5YmIzNWYyMjdiMGIxOTM5ZmY2MmYwNTZkZmJlYSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- java-contact-center-insights/README.md | 4 +- .../v1/ContactCenterInsightsClient.java | 180 ++ .../v1/ContactCenterInsightsSettings.java | 32 + .../v1/gapic_metadata.json | 3 + .../v1/stub/ContactCenterInsightsStub.java | 17 + .../ContactCenterInsightsStubSettings.java | 90 + .../stub/GrpcContactCenterInsightsStub.java | 58 + .../HttpJsonContactCenterInsightsStub.java | 92 + .../reflect-config.json | 63 + ...ntactCenterInsightsClientHttpJsonTest.java | 100 + .../v1/ContactCenterInsightsClientTest.java | 98 + .../v1/MockContactCenterInsightsImpl.java | 21 + .../v1/ContactCenterInsightsGrpc.java | 176 +- .../v1/AnnotatorSelector.java | 4 +- .../v1/BulkAnalyzeConversationsMetadata.java | 557 +++++- ...AnalyzeConversationsMetadataOrBuilder.java | 66 + .../v1/BulkDeleteConversationsMetadata.java | 1772 +++++++++++++++++ ...kDeleteConversationsMetadataOrBuilder.java | 187 ++ .../v1/BulkDeleteConversationsRequest.java | 1050 ++++++++++ ...lkDeleteConversationsRequestOrBuilder.java | 112 ++ .../v1/BulkDeleteConversationsResponse.java | 450 +++++ ...kDeleteConversationsResponseOrBuilder.java | 24 + .../v1/ContactCenterInsightsProto.java | 948 +++++---- .../v1/IngestConversationsRequest.java | 1222 +++++++++++- .../IngestConversationsRequestOrBuilder.java | 88 + .../v1/contact_center_insights.proto | 96 + .../contactcenterinsights/v1/resources.proto | 2 +- .../AsyncBulkDeleteConversations.java | 54 + .../AsyncBulkDeleteConversationsLRO.java | 57 + .../SyncBulkDeleteConversations.java | 51 + ...DeleteConversationsLocationnameString.java | 45 + ...ncBulkDeleteConversationsStringString.java | 45 + .../AsyncIngestConversations.java | 4 + .../AsyncIngestConversationsLRO.java | 4 + .../SyncIngestConversations.java | 4 + 35 files changed, 7302 insertions(+), 474 deletions(-) create mode 100644 java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsMetadata.java create mode 100644 java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsMetadataOrBuilder.java create mode 100644 java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsRequest.java create mode 100644 java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsRequestOrBuilder.java create mode 100644 java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsResponse.java create mode 100644 java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsResponseOrBuilder.java create mode 100644 java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/AsyncBulkDeleteConversations.java create mode 100644 java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/AsyncBulkDeleteConversationsLRO.java create mode 100644 java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/SyncBulkDeleteConversations.java create mode 100644 java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/SyncBulkDeleteConversationsLocationnameString.java create mode 100644 java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/SyncBulkDeleteConversationsStringString.java diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 1e0470e3baab..942ffef343f1 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.23.0 + 26.26.0 pom import @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-contact-center-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.29.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClient.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClient.java index 594d8ad5cdcd..719fd57fcb4f 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClient.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClient.java @@ -1727,6 +1727,180 @@ public final UnaryCallable deleteAnalysisCallable( return stub.bulkAnalyzeConversationsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes multiple conversations in a single request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ContactCenterInsightsClient contactCenterInsightsClient =
+   *     ContactCenterInsightsClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String filter = "filter-1274492040";
+   *   BulkDeleteConversationsResponse response =
+   *       contactCenterInsightsClient.bulkDeleteConversationsAsync(parent, filter).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource to create analyses in. Format: + * projects/{project}/locations/{location} + * @param filter Filter used to select the subset of conversations to analyze. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + bulkDeleteConversationsAsync(LocationName parent, String filter) { + BulkDeleteConversationsRequest request = + BulkDeleteConversationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .build(); + return bulkDeleteConversationsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes multiple conversations in a single request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ContactCenterInsightsClient contactCenterInsightsClient =
+   *     ContactCenterInsightsClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String filter = "filter-1274492040";
+   *   BulkDeleteConversationsResponse response =
+   *       contactCenterInsightsClient.bulkDeleteConversationsAsync(parent, filter).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource to create analyses in. Format: + * projects/{project}/locations/{location} + * @param filter Filter used to select the subset of conversations to analyze. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + bulkDeleteConversationsAsync(String parent, String filter) { + BulkDeleteConversationsRequest request = + BulkDeleteConversationsRequest.newBuilder().setParent(parent).setFilter(filter).build(); + return bulkDeleteConversationsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes multiple conversations in a single request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ContactCenterInsightsClient contactCenterInsightsClient =
+   *     ContactCenterInsightsClient.create()) {
+   *   BulkDeleteConversationsRequest request =
+   *       BulkDeleteConversationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setMaxDeleteCount(1611707510)
+   *           .setForce(true)
+   *           .build();
+   *   BulkDeleteConversationsResponse response =
+   *       contactCenterInsightsClient.bulkDeleteConversationsAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + bulkDeleteConversationsAsync(BulkDeleteConversationsRequest request) { + return bulkDeleteConversationsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes multiple conversations in a single request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ContactCenterInsightsClient contactCenterInsightsClient =
+   *     ContactCenterInsightsClient.create()) {
+   *   BulkDeleteConversationsRequest request =
+   *       BulkDeleteConversationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setMaxDeleteCount(1611707510)
+   *           .setForce(true)
+   *           .build();
+   *   OperationFuture future =
+   *       contactCenterInsightsClient
+   *           .bulkDeleteConversationsOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   BulkDeleteConversationsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BulkDeleteConversationsRequest, + BulkDeleteConversationsResponse, + BulkDeleteConversationsMetadata> + bulkDeleteConversationsOperationCallable() { + return stub.bulkDeleteConversationsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes multiple conversations in a single request. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (ContactCenterInsightsClient contactCenterInsightsClient =
+   *     ContactCenterInsightsClient.create()) {
+   *   BulkDeleteConversationsRequest request =
+   *       BulkDeleteConversationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setMaxDeleteCount(1611707510)
+   *           .setForce(true)
+   *           .build();
+   *   ApiFuture future =
+   *       contactCenterInsightsClient.bulkDeleteConversationsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + bulkDeleteConversationsCallable() { + return stub.bulkDeleteConversationsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Imports conversations and processes them according to the user's configuration. @@ -1808,6 +1982,8 @@ public final UnaryCallable deleteAnalysisCallable( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setConversationConfig( * IngestConversationsRequest.ConversationConfig.newBuilder().build()) + * .setRedactionConfig(RedactionConfig.newBuilder().build()) + * .setSpeechConfig(SpeechConfig.newBuilder().build()) * .build(); * IngestConversationsResponse response = * contactCenterInsightsClient.ingestConversationsAsync(request).get(); @@ -1841,6 +2017,8 @@ public final UnaryCallable deleteAnalysisCallable( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setConversationConfig( * IngestConversationsRequest.ConversationConfig.newBuilder().build()) + * .setRedactionConfig(RedactionConfig.newBuilder().build()) + * .setSpeechConfig(SpeechConfig.newBuilder().build()) * .build(); * OperationFuture future = * contactCenterInsightsClient.ingestConversationsOperationCallable().futureCall(request); @@ -1874,6 +2052,8 @@ public final UnaryCallable deleteAnalysisCallable( * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) * .setConversationConfig( * IngestConversationsRequest.ConversationConfig.newBuilder().build()) + * .setRedactionConfig(RedactionConfig.newBuilder().build()) + * .setSpeechConfig(SpeechConfig.newBuilder().build()) * .build(); * ApiFuture future = * contactCenterInsightsClient.ingestConversationsCallable().futureCall(request); diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsSettings.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsSettings.java index 25dbc9cf9efd..1d53239e2c14 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsSettings.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsSettings.java @@ -167,6 +167,23 @@ public UnaryCallSettings deleteAnalysisSettings() .bulkAnalyzeConversationsOperationSettings(); } + /** Returns the object with the settings used for calls to bulkDeleteConversations. */ + public UnaryCallSettings + bulkDeleteConversationsSettings() { + return ((ContactCenterInsightsStubSettings) getStubSettings()) + .bulkDeleteConversationsSettings(); + } + + /** Returns the object with the settings used for calls to bulkDeleteConversations. */ + public OperationCallSettings< + BulkDeleteConversationsRequest, + BulkDeleteConversationsResponse, + BulkDeleteConversationsMetadata> + bulkDeleteConversationsOperationSettings() { + return ((ContactCenterInsightsStubSettings) getStubSettings()) + .bulkDeleteConversationsOperationSettings(); + } + /** Returns the object with the settings used for calls to ingestConversations. */ public UnaryCallSettings ingestConversationsSettings() { return ((ContactCenterInsightsStubSettings) getStubSettings()).ingestConversationsSettings(); @@ -560,6 +577,21 @@ public UnaryCallSettings.Builder deleteAnalysisSet return getStubSettingsBuilder().bulkAnalyzeConversationsOperationSettings(); } + /** Returns the builder for the settings used for calls to bulkDeleteConversations. */ + public UnaryCallSettings.Builder + bulkDeleteConversationsSettings() { + return getStubSettingsBuilder().bulkDeleteConversationsSettings(); + } + + /** Returns the builder for the settings used for calls to bulkDeleteConversations. */ + public OperationCallSettings.Builder< + BulkDeleteConversationsRequest, + BulkDeleteConversationsResponse, + BulkDeleteConversationsMetadata> + bulkDeleteConversationsOperationSettings() { + return getStubSettingsBuilder().bulkDeleteConversationsOperationSettings(); + } + /** Returns the builder for the settings used for calls to ingestConversations. */ public UnaryCallSettings.Builder ingestConversationsSettings() { diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/gapic_metadata.json b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/gapic_metadata.json index ceb6c6f043bf..a00a2366c2d5 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/gapic_metadata.json +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/gapic_metadata.json @@ -13,6 +13,9 @@ "BulkAnalyzeConversations": { "methods": ["bulkAnalyzeConversationsAsync", "bulkAnalyzeConversationsAsync", "bulkAnalyzeConversationsAsync", "bulkAnalyzeConversationsOperationCallable", "bulkAnalyzeConversationsCallable"] }, + "BulkDeleteConversations": { + "methods": ["bulkDeleteConversationsAsync", "bulkDeleteConversationsAsync", "bulkDeleteConversationsAsync", "bulkDeleteConversationsOperationCallable", "bulkDeleteConversationsCallable"] + }, "CalculateIssueModelStats": { "methods": ["calculateIssueModelStats", "calculateIssueModelStats", "calculateIssueModelStats", "calculateIssueModelStatsCallable"] }, diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStub.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStub.java index d84dcbf0ff0a..af09e98284fd 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStub.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStub.java @@ -28,6 +28,9 @@ import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata; import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest; import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse; import com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest; import com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse; import com.google.cloud.contactcenterinsights.v1.CalculateStatsRequest; @@ -188,6 +191,20 @@ public UnaryCallable deleteAnalysisCallable() { throw new UnsupportedOperationException("Not implemented: bulkAnalyzeConversationsCallable()"); } + public OperationCallable< + BulkDeleteConversationsRequest, + BulkDeleteConversationsResponse, + BulkDeleteConversationsMetadata> + bulkDeleteConversationsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: bulkDeleteConversationsOperationCallable()"); + } + + public UnaryCallable + bulkDeleteConversationsCallable() { + throw new UnsupportedOperationException("Not implemented: bulkDeleteConversationsCallable()"); + } + public OperationCallable< IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> ingestConversationsOperationCallable() { diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStubSettings.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStubSettings.java index 51db193e5de0..a5cd6863b077 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStubSettings.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/ContactCenterInsightsStubSettings.java @@ -54,6 +54,9 @@ import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata; import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest; import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse; import com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest; import com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse; import com.google.cloud.contactcenterinsights.v1.CalculateStatsRequest; @@ -203,6 +206,13 @@ public class ContactCenterInsightsStubSettings BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> bulkAnalyzeConversationsOperationSettings; + private final UnaryCallSettings + bulkDeleteConversationsSettings; + private final OperationCallSettings< + BulkDeleteConversationsRequest, + BulkDeleteConversationsResponse, + BulkDeleteConversationsMetadata> + bulkDeleteConversationsOperationSettings; private final UnaryCallSettings ingestConversationsSettings; private final OperationCallSettings< @@ -564,6 +574,21 @@ public UnaryCallSettings deleteAnalysisSettings() return bulkAnalyzeConversationsOperationSettings; } + /** Returns the object with the settings used for calls to bulkDeleteConversations. */ + public UnaryCallSettings + bulkDeleteConversationsSettings() { + return bulkDeleteConversationsSettings; + } + + /** Returns the object with the settings used for calls to bulkDeleteConversations. */ + public OperationCallSettings< + BulkDeleteConversationsRequest, + BulkDeleteConversationsResponse, + BulkDeleteConversationsMetadata> + bulkDeleteConversationsOperationSettings() { + return bulkDeleteConversationsOperationSettings; + } + /** Returns the object with the settings used for calls to ingestConversations. */ public UnaryCallSettings ingestConversationsSettings() { return ingestConversationsSettings; @@ -868,6 +893,9 @@ protected ContactCenterInsightsStubSettings(Builder settingsBuilder) throws IOEx bulkAnalyzeConversationsSettings = settingsBuilder.bulkAnalyzeConversationsSettings().build(); bulkAnalyzeConversationsOperationSettings = settingsBuilder.bulkAnalyzeConversationsOperationSettings().build(); + bulkDeleteConversationsSettings = settingsBuilder.bulkDeleteConversationsSettings().build(); + bulkDeleteConversationsOperationSettings = + settingsBuilder.bulkDeleteConversationsOperationSettings().build(); ingestConversationsSettings = settingsBuilder.ingestConversationsSettings().build(); ingestConversationsOperationSettings = settingsBuilder.ingestConversationsOperationSettings().build(); @@ -943,6 +971,13 @@ public static class Builder BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> bulkAnalyzeConversationsOperationSettings; + private final UnaryCallSettings.Builder + bulkDeleteConversationsSettings; + private final OperationCallSettings.Builder< + BulkDeleteConversationsRequest, + BulkDeleteConversationsResponse, + BulkDeleteConversationsMetadata> + bulkDeleteConversationsOperationSettings; private final UnaryCallSettings.Builder ingestConversationsSettings; private final OperationCallSettings.Builder< @@ -1060,6 +1095,8 @@ protected Builder(ClientContext clientContext) { deleteAnalysisSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); bulkAnalyzeConversationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); bulkAnalyzeConversationsOperationSettings = OperationCallSettings.newBuilder(); + bulkDeleteConversationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + bulkDeleteConversationsOperationSettings = OperationCallSettings.newBuilder(); ingestConversationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); ingestConversationsOperationSettings = OperationCallSettings.newBuilder(); exportInsightsDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1107,6 +1144,7 @@ protected Builder(ClientContext clientContext) { listAnalysesSettings, deleteAnalysisSettings, bulkAnalyzeConversationsSettings, + bulkDeleteConversationsSettings, ingestConversationsSettings, exportInsightsDataSettings, createIssueModelSettings, @@ -1156,6 +1194,9 @@ protected Builder(ContactCenterInsightsStubSettings settings) { bulkAnalyzeConversationsSettings = settings.bulkAnalyzeConversationsSettings.toBuilder(); bulkAnalyzeConversationsOperationSettings = settings.bulkAnalyzeConversationsOperationSettings.toBuilder(); + bulkDeleteConversationsSettings = settings.bulkDeleteConversationsSettings.toBuilder(); + bulkDeleteConversationsOperationSettings = + settings.bulkDeleteConversationsOperationSettings.toBuilder(); ingestConversationsSettings = settings.ingestConversationsSettings.toBuilder(); ingestConversationsOperationSettings = settings.ingestConversationsOperationSettings.toBuilder(); @@ -1206,6 +1247,7 @@ protected Builder(ContactCenterInsightsStubSettings settings) { listAnalysesSettings, deleteAnalysisSettings, bulkAnalyzeConversationsSettings, + bulkDeleteConversationsSettings, ingestConversationsSettings, exportInsightsDataSettings, createIssueModelSettings, @@ -1317,6 +1359,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .bulkDeleteConversationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .ingestConversationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1528,6 +1575,32 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .bulkDeleteConversationsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + BulkDeleteConversationsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BulkDeleteConversationsMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .ingestConversationsOperationSettings() .setInitialCallSettings( @@ -1790,6 +1863,23 @@ public UnaryCallSettings.Builder deleteAnalysisSet return bulkAnalyzeConversationsOperationSettings; } + /** Returns the builder for the settings used for calls to bulkDeleteConversations. */ + public UnaryCallSettings.Builder + bulkDeleteConversationsSettings() { + return bulkDeleteConversationsSettings; + } + + /** Returns the builder for the settings used for calls to bulkDeleteConversations. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BulkDeleteConversationsRequest, + BulkDeleteConversationsResponse, + BulkDeleteConversationsMetadata> + bulkDeleteConversationsOperationSettings() { + return bulkDeleteConversationsOperationSettings; + } + /** Returns the builder for the settings used for calls to ingestConversations. */ public UnaryCallSettings.Builder ingestConversationsSettings() { diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/GrpcContactCenterInsightsStub.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/GrpcContactCenterInsightsStub.java index e0a080b18aeb..25d0816ffff9 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/GrpcContactCenterInsightsStub.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/GrpcContactCenterInsightsStub.java @@ -33,6 +33,9 @@ import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata; import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest; import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse; import com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest; import com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse; import com.google.cloud.contactcenterinsights.v1.CalculateStatsRequest; @@ -233,6 +236,17 @@ public class GrpcContactCenterInsightsStub extends ContactCenterInsightsStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor + bulkDeleteConversationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.contactcenterinsights.v1.ContactCenterInsights/BulkDeleteConversations") + .setRequestMarshaller( + ProtoUtils.marshaller(BulkDeleteConversationsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor ingestConversationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -543,6 +557,13 @@ public class GrpcContactCenterInsightsStub extends ContactCenterInsightsStub { BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> bulkAnalyzeConversationsOperationCallable; + private final UnaryCallable + bulkDeleteConversationsCallable; + private final OperationCallable< + BulkDeleteConversationsRequest, + BulkDeleteConversationsResponse, + BulkDeleteConversationsMetadata> + bulkDeleteConversationsOperationCallable; private final UnaryCallable ingestConversationsCallable; private final OperationCallable< IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> @@ -752,6 +773,17 @@ protected GrpcContactCenterInsightsStub( return builder.build(); }) .build(); + GrpcCallSettings + bulkDeleteConversationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(bulkDeleteConversationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings ingestConversationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(ingestConversationsMethodDescriptor) @@ -1104,6 +1136,17 @@ protected GrpcContactCenterInsightsStub( settings.bulkAnalyzeConversationsOperationSettings(), clientContext, operationsStub); + this.bulkDeleteConversationsCallable = + callableFactory.createUnaryCallable( + bulkDeleteConversationsTransportSettings, + settings.bulkDeleteConversationsSettings(), + clientContext); + this.bulkDeleteConversationsOperationCallable = + callableFactory.createOperationCallable( + bulkDeleteConversationsTransportSettings, + settings.bulkDeleteConversationsOperationSettings(), + clientContext, + operationsStub); this.ingestConversationsCallable = callableFactory.createUnaryCallable( ingestConversationsTransportSettings, @@ -1343,6 +1386,21 @@ public UnaryCallable deleteAnalysisCallable() { return bulkAnalyzeConversationsOperationCallable; } + @Override + public UnaryCallable + bulkDeleteConversationsCallable() { + return bulkDeleteConversationsCallable; + } + + @Override + public OperationCallable< + BulkDeleteConversationsRequest, + BulkDeleteConversationsResponse, + BulkDeleteConversationsMetadata> + bulkDeleteConversationsOperationCallable() { + return bulkDeleteConversationsOperationCallable; + } + @Override public UnaryCallable ingestConversationsCallable() { return ingestConversationsCallable; diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/HttpJsonContactCenterInsightsStub.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/HttpJsonContactCenterInsightsStub.java index 5d5501a159b6..754e7becc330 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/HttpJsonContactCenterInsightsStub.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/java/com/google/cloud/contactcenterinsights/v1/stub/HttpJsonContactCenterInsightsStub.java @@ -42,6 +42,9 @@ import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata; import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest; import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse; import com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest; import com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse; import com.google.cloud.contactcenterinsights.v1.CalculateStatsRequest; @@ -145,6 +148,8 @@ public class HttpJsonContactCenterInsightsStub extends ContactCenterInsightsStub .add(ExportInsightsDataResponse.getDescriptor()) .add(UndeployIssueModelResponse.getDescriptor()) .add(UndeployIssueModelMetadata.getDescriptor()) + .add(BulkDeleteConversationsMetadata.getDescriptor()) + .add(BulkDeleteConversationsResponse.getDescriptor()) .add(BulkAnalyzeConversationsResponse.getDescriptor()) .build(); @@ -570,6 +575,47 @@ public class HttpJsonContactCenterInsightsStub extends ContactCenterInsightsStub HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + bulkDeleteConversationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.contactcenterinsights.v1.ContactCenterInsights/BulkDeleteConversations") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/conversations:bulkDelete", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (BulkDeleteConversationsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor ingestConversationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1600,6 +1646,13 @@ public class HttpJsonContactCenterInsightsStub extends ContactCenterInsightsStub BulkAnalyzeConversationsResponse, BulkAnalyzeConversationsMetadata> bulkAnalyzeConversationsOperationCallable; + private final UnaryCallable + bulkDeleteConversationsCallable; + private final OperationCallable< + BulkDeleteConversationsRequest, + BulkDeleteConversationsResponse, + BulkDeleteConversationsMetadata> + bulkDeleteConversationsOperationCallable; private final UnaryCallable ingestConversationsCallable; private final OperationCallable< IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> @@ -1845,6 +1898,18 @@ protected HttpJsonContactCenterInsightsStub( return builder.build(); }) .build(); + HttpJsonCallSettings + bulkDeleteConversationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(bulkDeleteConversationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); HttpJsonCallSettings ingestConversationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2225,6 +2290,17 @@ protected HttpJsonContactCenterInsightsStub( settings.bulkAnalyzeConversationsOperationSettings(), clientContext, httpJsonOperationsStub); + this.bulkDeleteConversationsCallable = + callableFactory.createUnaryCallable( + bulkDeleteConversationsTransportSettings, + settings.bulkDeleteConversationsSettings(), + clientContext); + this.bulkDeleteConversationsOperationCallable = + callableFactory.createOperationCallable( + bulkDeleteConversationsTransportSettings, + settings.bulkDeleteConversationsOperationSettings(), + clientContext, + httpJsonOperationsStub); this.ingestConversationsCallable = callableFactory.createUnaryCallable( ingestConversationsTransportSettings, @@ -2385,6 +2461,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listAnalysesMethodDescriptor); methodDescriptors.add(deleteAnalysisMethodDescriptor); methodDescriptors.add(bulkAnalyzeConversationsMethodDescriptor); + methodDescriptors.add(bulkDeleteConversationsMethodDescriptor); methodDescriptors.add(ingestConversationsMethodDescriptor); methodDescriptors.add(exportInsightsDataMethodDescriptor); methodDescriptors.add(createIssueModelMethodDescriptor); @@ -2508,6 +2585,21 @@ public UnaryCallable deleteAnalysisCallable() { return bulkAnalyzeConversationsOperationCallable; } + @Override + public UnaryCallable + bulkDeleteConversationsCallable() { + return bulkDeleteConversationsCallable; + } + + @Override + public OperationCallable< + BulkDeleteConversationsRequest, + BulkDeleteConversationsResponse, + BulkDeleteConversationsMetadata> + bulkDeleteConversationsOperationCallable() { + return bulkDeleteConversationsOperationCallable; + } + @Override public UnaryCallable ingestConversationsCallable() { return ingestConversationsCallable; diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/resources/META-INF/native-image/com.google.cloud.contactcenterinsights.v1/reflect-config.json b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/resources/META-INF/native-image/com.google.cloud.contactcenterinsights.v1/reflect-config.json index 42d022125456..747d6733d885 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/main/resources/META-INF/native-image/com.google.cloud.contactcenterinsights.v1/reflect-config.json +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/main/resources/META-INF/native-image/com.google.cloud.contactcenterinsights.v1/reflect-config.json @@ -593,6 +593,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest", "queryAllDeclaredConstructors": true, @@ -1700,6 +1754,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest$GcsSource$BucketObjectType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest$GcsSource$Builder", "queryAllDeclaredConstructors": true, diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/test/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClientHttpJsonTest.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/test/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClientHttpJsonTest.java index b19c7a0aeb4f..6ffe127c433a 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/test/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClientHttpJsonTest.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/test/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClientHttpJsonTest.java @@ -1198,6 +1198,106 @@ public void bulkAnalyzeConversationsExceptionTest2() throws Exception { } } + @Test + public void bulkDeleteConversationsTest() throws Exception { + BulkDeleteConversationsResponse expectedResponse = + BulkDeleteConversationsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("bulkDeleteConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + + BulkDeleteConversationsResponse actualResponse = + client.bulkDeleteConversationsAsync(parent, filter).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void bulkDeleteConversationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + client.bulkDeleteConversationsAsync(parent, filter).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void bulkDeleteConversationsTest2() throws Exception { + BulkDeleteConversationsResponse expectedResponse = + BulkDeleteConversationsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("bulkDeleteConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String filter = "filter-1274492040"; + + BulkDeleteConversationsResponse actualResponse = + client.bulkDeleteConversationsAsync(parent, filter).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void bulkDeleteConversationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String filter = "filter-1274492040"; + client.bulkDeleteConversationsAsync(parent, filter).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void ingestConversationsTest() throws Exception { IngestConversationsResponse expectedResponse = IngestConversationsResponse.newBuilder().build(); diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/test/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClientTest.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/test/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClientTest.java index c0208d55968f..bc0da8b3ba30 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/test/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClientTest.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/test/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsClientTest.java @@ -1073,6 +1073,104 @@ public void bulkAnalyzeConversationsExceptionTest2() throws Exception { } } + @Test + public void bulkDeleteConversationsTest() throws Exception { + BulkDeleteConversationsResponse expectedResponse = + BulkDeleteConversationsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("bulkDeleteConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockContactCenterInsights.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + + BulkDeleteConversationsResponse actualResponse = + client.bulkDeleteConversationsAsync(parent, filter).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockContactCenterInsights.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BulkDeleteConversationsRequest actualRequest = + ((BulkDeleteConversationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void bulkDeleteConversationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockContactCenterInsights.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + client.bulkDeleteConversationsAsync(parent, filter).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void bulkDeleteConversationsTest2() throws Exception { + BulkDeleteConversationsResponse expectedResponse = + BulkDeleteConversationsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("bulkDeleteConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockContactCenterInsights.addResponse(resultOperation); + + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + + BulkDeleteConversationsResponse actualResponse = + client.bulkDeleteConversationsAsync(parent, filter).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockContactCenterInsights.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BulkDeleteConversationsRequest actualRequest = + ((BulkDeleteConversationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void bulkDeleteConversationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockContactCenterInsights.addException(exception); + + try { + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + client.bulkDeleteConversationsAsync(parent, filter).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void ingestConversationsTest() throws Exception { IngestConversationsResponse expectedResponse = IngestConversationsResponse.newBuilder().build(); diff --git a/java-contact-center-insights/google-cloud-contact-center-insights/src/test/java/com/google/cloud/contactcenterinsights/v1/MockContactCenterInsightsImpl.java b/java-contact-center-insights/google-cloud-contact-center-insights/src/test/java/com/google/cloud/contactcenterinsights/v1/MockContactCenterInsightsImpl.java index 987dfc3adbb9..fb1745f9b39a 100644 --- a/java-contact-center-insights/google-cloud-contact-center-insights/src/test/java/com/google/cloud/contactcenterinsights/v1/MockContactCenterInsightsImpl.java +++ b/java-contact-center-insights/google-cloud-contact-center-insights/src/test/java/com/google/cloud/contactcenterinsights/v1/MockContactCenterInsightsImpl.java @@ -291,6 +291,27 @@ public void bulkAnalyzeConversations( } } + @Override + public void bulkDeleteConversations( + BulkDeleteConversationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method BulkDeleteConversations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void ingestConversations( IngestConversationsRequest request, StreamObserver responseObserver) { diff --git a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsGrpc.java b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsGrpc.java index 20cb154d4a68..80b90d2ace3b 100644 --- a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsGrpc.java +++ b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsGrpc.java @@ -565,6 +565,58 @@ private ContactCenterInsightsGrpc() {} return getBulkAnalyzeConversationsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest, + com.google.longrunning.Operation> + getBulkDeleteConversationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BulkDeleteConversations", + requestType = com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest, + com.google.longrunning.Operation> + getBulkDeleteConversationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest, + com.google.longrunning.Operation> + getBulkDeleteConversationsMethod; + if ((getBulkDeleteConversationsMethod = + ContactCenterInsightsGrpc.getBulkDeleteConversationsMethod) + == null) { + synchronized (ContactCenterInsightsGrpc.class) { + if ((getBulkDeleteConversationsMethod = + ContactCenterInsightsGrpc.getBulkDeleteConversationsMethod) + == null) { + ContactCenterInsightsGrpc.getBulkDeleteConversationsMethod = + getBulkDeleteConversationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BulkDeleteConversations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contactcenterinsights.v1 + .BulkDeleteConversationsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ContactCenterInsightsMethodDescriptorSupplier( + "BulkDeleteConversations")) + .build(); + } + } + } + return getBulkDeleteConversationsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest, com.google.longrunning.Operation> @@ -2060,6 +2112,20 @@ default void bulkAnalyzeConversations( getBulkAnalyzeConversationsMethod(), responseObserver); } + /** + * + * + *
+     * Deletes multiple conversations in a single request.
+     * 
+ */ + default void bulkDeleteConversations( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBulkDeleteConversationsMethod(), responseObserver); + } + /** * * @@ -2678,6 +2744,22 @@ public void bulkAnalyzeConversations( responseObserver); } + /** + * + * + *
+     * Deletes multiple conversations in a single request.
+     * 
+ */ + public void bulkDeleteConversations( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBulkDeleteConversationsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -3288,6 +3370,19 @@ public com.google.longrunning.Operation bulkAnalyzeConversations( getChannel(), getBulkAnalyzeConversationsMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Deletes multiple conversations in a single request.
+     * 
+ */ + public com.google.longrunning.Operation bulkDeleteConversations( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBulkDeleteConversationsMethod(), getCallOptions(), request); + } + /** * * @@ -3823,6 +3918,20 @@ protected ContactCenterInsightsFutureStub build( getChannel().newCall(getBulkAnalyzeConversationsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Deletes multiple conversations in a single request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + bulkDeleteConversations( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBulkDeleteConversationsMethod(), getCallOptions()), request); + } + /** * * @@ -4220,33 +4329,34 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4328,6 +4438,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_BULK_DELETE_CONVERSATIONS: + serviceImpl.bulkDeleteConversations( + (com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_INGEST_CONVERSATIONS: serviceImpl.ingestConversations( (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest) request, @@ -4578,6 +4693,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest, com.google.longrunning.Operation>( service, METHODID_BULK_ANALYZE_CONVERSATIONS))) + .addMethod( + getBulkDeleteConversationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest, + com.google.longrunning.Operation>(service, METHODID_BULK_DELETE_CONVERSATIONS))) .addMethod( getIngestConversationsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4816,6 +4937,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListAnalysesMethod()) .addMethod(getDeleteAnalysisMethod()) .addMethod(getBulkAnalyzeConversationsMethod()) + .addMethod(getBulkDeleteConversationsMethod()) .addMethod(getIngestConversationsMethod()) .addMethod(getExportInsightsDataMethod()) .addMethod(getCreateIssueModelMethod()) diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnnotatorSelector.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnnotatorSelector.java index 1ae124b7bb42..7f1304371140 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnnotatorSelector.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnnotatorSelector.java @@ -228,7 +228,7 @@ public enum SummarizationModel implements com.google.protobuf.ProtocolMessageEnu * * *
-       * The Insights baseline model.
+       * The CCAI baseline model.
        * 
* * BASELINE_MODEL = 1; @@ -251,7 +251,7 @@ public enum SummarizationModel implements com.google.protobuf.ProtocolMessageEnu * * *
-       * The Insights baseline model.
+       * The CCAI baseline model.
        * 
* * BASELINE_MODEL = 1; diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadata.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadata.java index 98e960aa16fd..ae0fa23f201e 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadata.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadata.java @@ -38,7 +38,9 @@ private BulkAnalyzeConversationsMetadata( super(builder); } - private BulkAnalyzeConversationsMetadata() {} + private BulkAnalyzeConversationsMetadata() { + partialErrors_ = java.util.Collections.emptyList(); + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -265,6 +267,91 @@ public int getTotalRequestedAnalysesCount() { return totalRequestedAnalysesCount_; } + public static final int PARTIAL_ERRORS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List partialErrors_; + /** + * + * + *
+   * Output only. Partial errors during bulk analyze operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getPartialErrorsList() { + return partialErrors_; + } + /** + * + * + *
+   * Output only. Partial errors during bulk analyze operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getPartialErrorsOrBuilderList() { + return partialErrors_; + } + /** + * + * + *
+   * Output only. Partial errors during bulk analyze operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPartialErrorsCount() { + return partialErrors_.size(); + } + /** + * + * + *
+   * Output only. Partial errors during bulk analyze operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.Status getPartialErrors(int index) { + return partialErrors_.get(index); + } + /** + * + * + *
+   * Output only. Partial errors during bulk analyze operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) { + return partialErrors_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -297,6 +384,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (totalRequestedAnalysesCount_ != 0) { output.writeInt32(6, totalRequestedAnalysesCount_); } + for (int i = 0; i < partialErrors_.size(); i++) { + output.writeMessage(7, partialErrors_.get(i)); + } getUnknownFields().writeTo(output); } @@ -325,6 +415,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, totalRequestedAnalysesCount_); } + for (int i = 0; i < partialErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, partialErrors_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -357,6 +450,7 @@ public boolean equals(final java.lang.Object obj) { if (getCompletedAnalysesCount() != other.getCompletedAnalysesCount()) return false; if (getFailedAnalysesCount() != other.getFailedAnalysesCount()) return false; if (getTotalRequestedAnalysesCount() != other.getTotalRequestedAnalysesCount()) return false; + if (!getPartialErrorsList().equals(other.getPartialErrorsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -386,6 +480,10 @@ public int hashCode() { hash = (53 * hash) + getFailedAnalysesCount(); hash = (37 * hash) + TOTAL_REQUESTED_ANALYSES_COUNT_FIELD_NUMBER; hash = (53 * hash) + getTotalRequestedAnalysesCount(); + if (getPartialErrorsCount() > 0) { + hash = (37 * hash) + PARTIAL_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getPartialErrorsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -552,6 +650,13 @@ public Builder clear() { completedAnalysesCount_ = 0; failedAnalysesCount_ = 0; totalRequestedAnalysesCount_ = 0; + if (partialErrorsBuilder_ == null) { + partialErrors_ = java.util.Collections.emptyList(); + } else { + partialErrors_ = null; + partialErrorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); return this; } @@ -583,6 +688,7 @@ public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadat buildPartial() { com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata result = new com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -590,6 +696,19 @@ public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadat return result; } + private void buildPartialRepeatedFields( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata result) { + if (partialErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + partialErrors_ = java.util.Collections.unmodifiableList(partialErrors_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.partialErrors_ = partialErrors_; + } else { + result.partialErrors_ = partialErrorsBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata result) { int from_bitField0_ = bitField0_; @@ -681,6 +800,33 @@ public Builder mergeFrom( if (other.getTotalRequestedAnalysesCount() != 0) { setTotalRequestedAnalysesCount(other.getTotalRequestedAnalysesCount()); } + if (partialErrorsBuilder_ == null) { + if (!other.partialErrors_.isEmpty()) { + if (partialErrors_.isEmpty()) { + partialErrors_ = other.partialErrors_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensurePartialErrorsIsMutable(); + partialErrors_.addAll(other.partialErrors_); + } + onChanged(); + } + } else { + if (!other.partialErrors_.isEmpty()) { + if (partialErrorsBuilder_.isEmpty()) { + partialErrorsBuilder_.dispose(); + partialErrorsBuilder_ = null; + partialErrors_ = other.partialErrors_; + bitField0_ = (bitField0_ & ~0x00000040); + partialErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialErrorsFieldBuilder() + : null; + } else { + partialErrorsBuilder_.addAllMessages(other.partialErrors_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -743,6 +889,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000020; break; } // case 48 + case 58: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(m); + } else { + partialErrorsBuilder_.addMessage(m); + } + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1488,6 +1646,403 @@ public Builder clearTotalRequestedAnalysesCount() { return this; } + private java.util.List partialErrors_ = + java.util.Collections.emptyList(); + + private void ensurePartialErrorsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + partialErrors_ = new java.util.ArrayList(partialErrors_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + partialErrorsBuilder_; + + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getPartialErrorsList() { + if (partialErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(partialErrors_); + } else { + return partialErrorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPartialErrorsCount() { + if (partialErrorsBuilder_ == null) { + return partialErrors_.size(); + } else { + return partialErrorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status getPartialErrors(int index) { + if (partialErrorsBuilder_ == null) { + return partialErrors_.get(index); + } else { + return partialErrorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPartialErrors(int index, com.google.rpc.Status value) { + if (partialErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialErrorsIsMutable(); + partialErrors_.set(index, value); + onChanged(); + } else { + partialErrorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + partialErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPartialErrors(com.google.rpc.Status value) { + if (partialErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialErrorsIsMutable(); + partialErrors_.add(value); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPartialErrors(int index, com.google.rpc.Status value) { + if (partialErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialErrorsIsMutable(); + partialErrors_.add(index, value); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPartialErrors(com.google.rpc.Status.Builder builderForValue) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(builderForValue.build()); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(index, builderForValue.build()); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllPartialErrors(java.lang.Iterable values) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialErrors_); + onChanged(); + } else { + partialErrorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPartialErrors() { + if (partialErrorsBuilder_ == null) { + partialErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + partialErrorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removePartialErrors(int index) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.remove(index); + onChanged(); + } else { + partialErrorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder getPartialErrorsBuilder(int index) { + return getPartialErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) { + if (partialErrorsBuilder_ == null) { + return partialErrors_.get(index); + } else { + return partialErrorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getPartialErrorsOrBuilderList() { + if (partialErrorsBuilder_ != null) { + return partialErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(partialErrors_); + } + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addPartialErrorsBuilder() { + return getPartialErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder addPartialErrorsBuilder(int index) { + return getPartialErrorsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
+     * Output only. Partial errors during bulk analyze operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getPartialErrorsBuilderList() { + return getPartialErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialErrorsFieldBuilder() { + if (partialErrorsBuilder_ == null) { + partialErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + partialErrors_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + partialErrors_ = null; + } + return partialErrorsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadataOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadataOrBuilder.java index 14427133034d..9dc0158e0182 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadataOrBuilder.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadataOrBuilder.java @@ -171,4 +171,70 @@ public interface BulkAnalyzeConversationsMetadataOrBuilder * @return The totalRequestedAnalysesCount. */ int getTotalRequestedAnalysesCount(); + + /** + * + * + *
+   * Output only. Partial errors during bulk analyze operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPartialErrorsList(); + /** + * + * + *
+   * Output only. Partial errors during bulk analyze operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.Status getPartialErrors(int index); + /** + * + * + *
+   * Output only. Partial errors during bulk analyze operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPartialErrorsCount(); + /** + * + * + *
+   * Output only. Partial errors during bulk analyze operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPartialErrorsOrBuilderList(); + /** + * + * + *
+   * Output only. Partial errors during bulk analyze operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index); } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsMetadata.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsMetadata.java new file mode 100644 index 000000000000..f39d2cdef50e --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsMetadata.java @@ -0,0 +1,1772 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contactcenterinsights/v1/contact_center_insights.proto + +package com.google.cloud.contactcenterinsights.v1; + +/** + * + * + *
+ * The metadata for a bulk delete conversations operation.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata} + */ +public final class BulkDeleteConversationsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata) + BulkDeleteConversationsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BulkDeleteConversationsMetadata.newBuilder() to construct. + private BulkDeleteConversationsMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BulkDeleteConversationsMetadata() { + partialErrors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BulkDeleteConversationsMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata.class, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata.Builder + .class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int REQUEST_FIELD_NUMBER = 3; + private com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request_; + /** + * + * + *
+   * The original request for bulk delete.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + * @return Whether the request field is set. + */ + @java.lang.Override + public boolean hasRequest() { + return request_ != null; + } + /** + * + * + *
+   * The original request for bulk delete.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + * @return The request. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest getRequest() { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + .getDefaultInstance() + : request_; + } + /** + * + * + *
+   * The original request for bulk delete.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder + getRequestOrBuilder() { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + .getDefaultInstance() + : request_; + } + + public static final int PARTIAL_ERRORS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List partialErrors_; + /** + * + * + *
+   * Partial errors during bulk delete conversations operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + @java.lang.Override + public java.util.List getPartialErrorsList() { + return partialErrors_; + } + /** + * + * + *
+   * Partial errors during bulk delete conversations operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + @java.lang.Override + public java.util.List getPartialErrorsOrBuilderList() { + return partialErrors_; + } + /** + * + * + *
+   * Partial errors during bulk delete conversations operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + @java.lang.Override + public int getPartialErrorsCount() { + return partialErrors_.size(); + } + /** + * + * + *
+   * Partial errors during bulk delete conversations operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + @java.lang.Override + public com.google.rpc.Status getPartialErrors(int index) { + return partialErrors_.get(index); + } + /** + * + * + *
+   * Partial errors during bulk delete conversations operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) { + return partialErrors_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (createTime_ != null) { + output.writeMessage(1, getCreateTime()); + } + if (endTime_ != null) { + output.writeMessage(2, getEndTime()); + } + if (request_ != null) { + output.writeMessage(3, getRequest()); + } + for (int i = 0; i < partialErrors_.size(); i++) { + output.writeMessage(4, partialErrors_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); + } + if (request_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRequest()); + } + for (int i = 0; i < partialErrors_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, partialErrors_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata other = + (com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (hasRequest() != other.hasRequest()) return false; + if (hasRequest()) { + if (!getRequest().equals(other.getRequest())) return false; + } + if (!getPartialErrorsList().equals(other.getPartialErrorsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (hasRequest()) { + hash = (37 * hash) + REQUEST_FIELD_NUMBER; + hash = (53 * hash) + getRequest().hashCode(); + } + if (getPartialErrorsCount() > 0) { + hash = (37 * hash) + PARTIAL_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + getPartialErrorsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The metadata for a bulk delete conversations operation.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata) + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata.class, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + request_ = null; + if (requestBuilder_ != null) { + requestBuilder_.dispose(); + requestBuilder_ = null; + } + if (partialErrorsBuilder_ == null) { + partialErrors_ = java.util.Collections.emptyList(); + } else { + partialErrors_ = null; + partialErrorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata build() { + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata + buildPartial() { + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata result = + new com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata result) { + if (partialErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + partialErrors_ = java.util.Collections.unmodifiableList(partialErrors_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.partialErrors_ = partialErrors_; + } else { + result.partialErrors_ = partialErrorsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata other) { + if (other + == com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata + .getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (partialErrorsBuilder_ == null) { + if (!other.partialErrors_.isEmpty()) { + if (partialErrors_.isEmpty()) { + partialErrors_ = other.partialErrors_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensurePartialErrorsIsMutable(); + partialErrors_.addAll(other.partialErrors_); + } + onChanged(); + } + } else { + if (!other.partialErrors_.isEmpty()) { + if (partialErrorsBuilder_.isEmpty()) { + partialErrorsBuilder_.dispose(); + partialErrorsBuilder_ = null; + partialErrors_ = other.partialErrors_; + bitField0_ = (bitField0_ & ~0x00000008); + partialErrorsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getPartialErrorsFieldBuilder() + : null; + } else { + partialErrorsBuilder_.addAllMessages(other.partialErrors_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.rpc.Status m = + input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(m); + } else { + partialErrorsBuilder_.addMessage(m); + } + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder> + requestBuilder_; + /** + * + * + *
+     * The original request for bulk delete.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + * + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The original request for bulk delete.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + * + * @return The request. + */ + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest getRequest() { + if (requestBuilder_ == null) { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + .getDefaultInstance() + : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The original request for bulk delete.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + */ + public Builder setRequest( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + } else { + requestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The original request for bulk delete.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + */ + public Builder setRequest( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder + builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The original request for bulk delete.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + */ + public Builder mergeRequest( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest value) { + if (requestBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && request_ != null + && request_ + != com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + .getDefaultInstance()) { + getRequestBuilder().mergeFrom(value); + } else { + request_ = value; + } + } else { + requestBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The original request for bulk delete.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + */ + public Builder clearRequest() { + bitField0_ = (bitField0_ & ~0x00000004); + request_ = null; + if (requestBuilder_ != null) { + requestBuilder_.dispose(); + requestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The original request for bulk delete.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + */ + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder + getRequestBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The original request for bulk delete.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + */ + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder + getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + .getDefaultInstance() + : request_; + } + } + /** + * + * + *
+     * The original request for bulk delete.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder>( + getRequest(), getParentForChildren(), isClean()); + request_ = null; + } + return requestBuilder_; + } + + private java.util.List partialErrors_ = + java.util.Collections.emptyList(); + + private void ensurePartialErrorsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + partialErrors_ = new java.util.ArrayList(partialErrors_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + partialErrorsBuilder_; + + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public java.util.List getPartialErrorsList() { + if (partialErrorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(partialErrors_); + } else { + return partialErrorsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public int getPartialErrorsCount() { + if (partialErrorsBuilder_ == null) { + return partialErrors_.size(); + } else { + return partialErrorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public com.google.rpc.Status getPartialErrors(int index) { + if (partialErrorsBuilder_ == null) { + return partialErrors_.get(index); + } else { + return partialErrorsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public Builder setPartialErrors(int index, com.google.rpc.Status value) { + if (partialErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialErrorsIsMutable(); + partialErrors_.set(index, value); + onChanged(); + } else { + partialErrorsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public Builder setPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.set(index, builderForValue.build()); + onChanged(); + } else { + partialErrorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public Builder addPartialErrors(com.google.rpc.Status value) { + if (partialErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialErrorsIsMutable(); + partialErrors_.add(value); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public Builder addPartialErrors(int index, com.google.rpc.Status value) { + if (partialErrorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePartialErrorsIsMutable(); + partialErrors_.add(index, value); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public Builder addPartialErrors(com.google.rpc.Status.Builder builderForValue) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(builderForValue.build()); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public Builder addPartialErrors(int index, com.google.rpc.Status.Builder builderForValue) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.add(index, builderForValue.build()); + onChanged(); + } else { + partialErrorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public Builder addAllPartialErrors(java.lang.Iterable values) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, partialErrors_); + onChanged(); + } else { + partialErrorsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public Builder clearPartialErrors() { + if (partialErrorsBuilder_ == null) { + partialErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + partialErrorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public Builder removePartialErrors(int index) { + if (partialErrorsBuilder_ == null) { + ensurePartialErrorsIsMutable(); + partialErrors_.remove(index); + onChanged(); + } else { + partialErrorsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public com.google.rpc.Status.Builder getPartialErrorsBuilder(int index) { + return getPartialErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index) { + if (partialErrorsBuilder_ == null) { + return partialErrors_.get(index); + } else { + return partialErrorsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public java.util.List + getPartialErrorsOrBuilderList() { + if (partialErrorsBuilder_ != null) { + return partialErrorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(partialErrors_); + } + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public com.google.rpc.Status.Builder addPartialErrorsBuilder() { + return getPartialErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public com.google.rpc.Status.Builder addPartialErrorsBuilder(int index) { + return getPartialErrorsFieldBuilder() + .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); + } + /** + * + * + *
+     * Partial errors during bulk delete conversations operation that might cause
+     * the operation output to be incomplete.
+     * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + public java.util.List getPartialErrorsBuilderList() { + return getPartialErrorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + getPartialErrorsFieldBuilder() { + if (partialErrorsBuilder_ == null) { + partialErrorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>( + partialErrors_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + partialErrors_ = null; + } + return partialErrorsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata) + private static final com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata(); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkDeleteConversationsMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsMetadataOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsMetadataOrBuilder.java new file mode 100644 index 000000000000..5e5253b336dd --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsMetadataOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contactcenterinsights/v1/contact_center_insights.proto + +package com.google.cloud.contactcenterinsights.v1; + +public interface BulkDeleteConversationsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * The original request for bulk delete.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + * + * + *
+   * The original request for bulk delete.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + * + * @return The request. + */ + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest getRequest(); + /** + * + * + *
+   * The original request for bulk delete.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest request = 3; + */ + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder + getRequestOrBuilder(); + + /** + * + * + *
+   * Partial errors during bulk delete conversations operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + java.util.List getPartialErrorsList(); + /** + * + * + *
+   * Partial errors during bulk delete conversations operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + com.google.rpc.Status getPartialErrors(int index); + /** + * + * + *
+   * Partial errors during bulk delete conversations operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + int getPartialErrorsCount(); + /** + * + * + *
+   * Partial errors during bulk delete conversations operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + java.util.List getPartialErrorsOrBuilderList(); + /** + * + * + *
+   * Partial errors during bulk delete conversations operation that might cause
+   * the operation output to be incomplete.
+   * 
+ * + * repeated .google.rpc.Status partial_errors = 4; + */ + com.google.rpc.StatusOrBuilder getPartialErrorsOrBuilder(int index); +} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsRequest.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsRequest.java new file mode 100644 index 000000000000..6b6883dbc1c3 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsRequest.java @@ -0,0 +1,1050 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contactcenterinsights/v1/contact_center_insights.proto + +package com.google.cloud.contactcenterinsights.v1; + +/** + * + * + *
+ * The request to delete conversations in bulk.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest} + */ +public final class BulkDeleteConversationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest) + BulkDeleteConversationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BulkDeleteConversationsRequest.newBuilder() to construct. + private BulkDeleteConversationsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BulkDeleteConversationsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BulkDeleteConversationsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.class, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent resource to create analyses in.
+   * Format:
+   * projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent resource to create analyses in.
+   * Format:
+   * projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + /** + * + * + *
+   * Filter used to select the subset of conversations to analyze.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } + } + /** + * + * + *
+   * Filter used to select the subset of conversations to analyze.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MAX_DELETE_COUNT_FIELD_NUMBER = 3; + private int maxDeleteCount_ = 0; + /** + * + * + *
+   * Maximum number of conversations to delete. The default is 1000. It can be
+   * changed by setting the `max_delete_count` field.
+   * 
+ * + * int32 max_delete_count = 3; + * + * @return The maxDeleteCount. + */ + @java.lang.Override + public int getMaxDeleteCount() { + return maxDeleteCount_; + } + + public static final int FORCE_FIELD_NUMBER = 4; + private boolean force_ = false; + /** + * + * + *
+   * If set to true, all of this conversation's analyses will also be deleted.
+   * Otherwise, the request will only succeed if the conversation has no
+   * analyses.
+   * 
+ * + * bool force = 4; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, filter_); + } + if (maxDeleteCount_ != 0) { + output.writeInt32(3, maxDeleteCount_); + } + if (force_ != false) { + output.writeBool(4, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, filter_); + } + if (maxDeleteCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, maxDeleteCount_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest other = + (com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (getMaxDeleteCount() != other.getMaxDeleteCount()) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + MAX_DELETE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getMaxDeleteCount(); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The request to delete conversations in bulk.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest) + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.class, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + filter_ = ""; + maxDeleteCount_ = 0; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest build() { + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest buildPartial() { + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest result = + new com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.maxDeleteCount_ = maxDeleteCount_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest other) { + if (other + == com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getMaxDeleteCount() != 0) { + setMaxDeleteCount(other.getMaxDeleteCount()); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + maxDeleteCount_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource to create analyses in.
+     * Format:
+     * projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent resource to create analyses in.
+     * Format:
+     * projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent resource to create analyses in.
+     * Format:
+     * projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource to create analyses in.
+     * Format:
+     * projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource to create analyses in.
+     * Format:
+     * projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Filter used to select the subset of conversations to analyze.
+     * 
+ * + * string filter = 2; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Filter used to select the subset of conversations to analyze.
+     * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Filter used to select the subset of conversations to analyze.
+     * 
+ * + * string filter = 2; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Filter used to select the subset of conversations to analyze.
+     * 
+ * + * string filter = 2; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Filter used to select the subset of conversations to analyze.
+     * 
+ * + * string filter = 2; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int maxDeleteCount_; + /** + * + * + *
+     * Maximum number of conversations to delete. The default is 1000. It can be
+     * changed by setting the `max_delete_count` field.
+     * 
+ * + * int32 max_delete_count = 3; + * + * @return The maxDeleteCount. + */ + @java.lang.Override + public int getMaxDeleteCount() { + return maxDeleteCount_; + } + /** + * + * + *
+     * Maximum number of conversations to delete. The default is 1000. It can be
+     * changed by setting the `max_delete_count` field.
+     * 
+ * + * int32 max_delete_count = 3; + * + * @param value The maxDeleteCount to set. + * @return This builder for chaining. + */ + public Builder setMaxDeleteCount(int value) { + + maxDeleteCount_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Maximum number of conversations to delete. The default is 1000. It can be
+     * changed by setting the `max_delete_count` field.
+     * 
+ * + * int32 max_delete_count = 3; + * + * @return This builder for chaining. + */ + public Builder clearMaxDeleteCount() { + bitField0_ = (bitField0_ & ~0x00000004); + maxDeleteCount_ = 0; + onChanged(); + return this; + } + + private boolean force_; + /** + * + * + *
+     * If set to true, all of this conversation's analyses will also be deleted.
+     * Otherwise, the request will only succeed if the conversation has no
+     * analyses.
+     * 
+ * + * bool force = 4; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + /** + * + * + *
+     * If set to true, all of this conversation's analyses will also be deleted.
+     * Otherwise, the request will only succeed if the conversation has no
+     * analyses.
+     * 
+ * + * bool force = 4; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * If set to true, all of this conversation's analyses will also be deleted.
+     * Otherwise, the request will only succeed if the conversation has no
+     * analyses.
+     * 
+ * + * bool force = 4; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000008); + force_ = false; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest) + private static final com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest(); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkDeleteConversationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsRequestOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsRequestOrBuilder.java new file mode 100644 index 000000000000..5b041d8b6ecb --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contactcenterinsights/v1/contact_center_insights.proto + +package com.google.cloud.contactcenterinsights.v1; + +public interface BulkDeleteConversationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource to create analyses in.
+   * Format:
+   * projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource to create analyses in.
+   * Format:
+   * projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Filter used to select the subset of conversations to analyze.
+   * 
+ * + * string filter = 2; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Filter used to select the subset of conversations to analyze.
+   * 
+ * + * string filter = 2; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Maximum number of conversations to delete. The default is 1000. It can be
+   * changed by setting the `max_delete_count` field.
+   * 
+ * + * int32 max_delete_count = 3; + * + * @return The maxDeleteCount. + */ + int getMaxDeleteCount(); + + /** + * + * + *
+   * If set to true, all of this conversation's analyses will also be deleted.
+   * Otherwise, the request will only succeed if the conversation has no
+   * analyses.
+   * 
+ * + * bool force = 4; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsResponse.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsResponse.java new file mode 100644 index 000000000000..a9a1c2c62acc --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsResponse.java @@ -0,0 +1,450 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contactcenterinsights/v1/contact_center_insights.proto + +package com.google.cloud.contactcenterinsights.v1; + +/** + * + * + *
+ * The response for a bulk analyze conversations operation.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse} + */ +public final class BulkDeleteConversationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse) + BulkDeleteConversationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BulkDeleteConversationsResponse.newBuilder() to construct. + private BulkDeleteConversationsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BulkDeleteConversationsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BulkDeleteConversationsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse.class, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse.Builder + .class); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse other = + (com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * The response for a bulk analyze conversations operation.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse) + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse.class, + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse build() { + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse + buildPartial() { + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse result = + new com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse other) { + if (other + == com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse) + private static final com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse(); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkDeleteConversationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsResponseOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsResponseOrBuilder.java new file mode 100644 index 000000000000..e1fe6b4f073a --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkDeleteConversationsResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/contactcenterinsights/v1/contact_center_insights.proto + +package com.google.cloud.contactcenterinsights.v1; + +public interface BulkDeleteConversationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsProto.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsProto.java index 05b7379bf917..f7ef780eae3a 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsProto.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsProto.java @@ -155,6 +155,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -417,7 +429,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\0132\032.google.protobuf.FieldMask\"t\n\031DeleteC" + "onversationRequest\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A" + "3\n1contactcenterinsights.googleapis.com/" - + "Conversation\022\r\n\005force\030\002 \001(\010\"\202\005\n\032IngestCo" + + "Conversation\022\r\n\005force\030\002 \001(\010\"\275\010\n\032IngestCo" + "nversationsRequest\022a\n\ngcs_source\030\002 \001(\0132K" + ".google.cloud.contactcenterinsights.v1.I" + "ngestConversationsRequest.GcsSourceH\000\022|\n" @@ -428,411 +440,442 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "googleapis.com/Location\022q\n\023conversation_" + "config\030\004 \001(\0132T.google.cloud.contactcente" + "rinsights.v1.IngestConversationsRequest." - + "ConversationConfig\032%\n\tGcsSource\022\030\n\nbucke" - + "t_uri\030\001 \001(\tB\004\342A\001\002\032j\n\026TranscriptObjectCon" - + "fig\022P\n\006medium\030\001 \001(\0162:.google.cloud.conta" - + "ctcenterinsights.v1.Conversation.MediumB" - + "\004\342A\001\002\032&\n\022ConversationConfig\022\020\n\010agent_id\030" - + "\001 \001(\tB\010\n\006sourceB\017\n\robject_config\"\321\004\n\033Ing" - + "estConversationsMetadata\0225\n\013create_time\030" - + "\001 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022" - + "2\n\010end_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stampB\004\342A\001\003\022X\n\007request\030\003 \001(\0132A.google.cl" - + "oud.contactcenterinsights.v1.IngestConve" - + "rsationsRequestB\004\342A\001\003\0220\n\016partial_errors\030" - + "\004 \003(\0132\022.google.rpc.StatusB\004\342A\001\003\022\205\001\n\032inge" - + "st_conversations_stats\030\005 \001(\0132[.google.cl" - + "oud.contactcenterinsights.v1.IngestConve" - + "rsationsMetadata.IngestConversationsStat" - + "sB\004\342A\001\003\032\262\001\n\030IngestConversationsStats\022$\n\026" - + "processed_object_count\030\001 \001(\005B\004\342A\001\003\022&\n\030du" - + "plicates_skipped_count\030\002 \001(\005B\004\342A\001\003\022%\n\027su" - + "ccessful_ingest_count\030\003 \001(\005B\004\342A\001\003\022!\n\023fai" - + "led_ingest_count\030\004 \001(\005B\004\342A\001\003\"\035\n\033IngestCo" - + "nversationsResponse\"\254\001\n\025CreateAnalysisRe" - + "quest\022J\n\006parent\030\001 \001(\tB:\342A\001\002\372A3\n1contactc" - + "enterinsights.googleapis.com/Conversatio" - + "n\022G\n\010analysis\030\002 \001(\0132/.google.cloud.conta" - + "ctcenterinsights.v1.AnalysisB\004\342A\001\002\"\230\001\n\023L" - + "istAnalysesRequest\022J\n\006parent\030\001 \001(\tB:\342A\001\002" - + "\372A3\n1contactcenterinsights.googleapis.co" - + "m/Conversation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" - + "e_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"r\n\024ListAna" - + "lysesResponse\022A\n\010analyses\030\001 \003(\0132/.google" - + ".cloud.contactcenterinsights.v1.Analysis" - + "\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\022GetAnalysis" - + "Request\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-contactc" - + "enterinsights.googleapis.com/Analysis\"]\n" - + "\025DeleteAnalysisRequest\022D\n\004name\030\001 \001(\tB6\342A" - + "\001\002\372A/\n-contactcenterinsights.googleapis." - + "com/Analysis\"\354\001\n\037BulkAnalyzeConversation" - + "sRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locat" - + "ions.googleapis.com/Location\022\024\n\006filter\030\002" - + " \001(\tB\004\342A\001\002\022!\n\023analysis_percentage\030\003 \001(\002B" - + "\004\342A\001\002\022T\n\022annotator_selector\030\010 \001(\01328.goog" - + "le.cloud.contactcenterinsights.v1.Annota" - + "torSelector\"\303\002\n BulkAnalyzeConversations" - + "Metadata\022/\n\013create_time\030\001 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022W\n\007request\030\003 \001(\013" - + "2F.google.cloud.contactcenterinsights.v1" - + ".BulkAnalyzeConversationsRequest\022 \n\030comp" - + "leted_analyses_count\030\004 \001(\005\022\035\n\025failed_ana" - + "lyses_count\030\005 \001(\005\022&\n\036total_requested_ana" - + "lyses_count\030\006 \001(\005\"d\n BulkAnalyzeConversa" - + "tionsResponse\022!\n\031successful_analysis_cou" - + "nt\030\001 \001(\005\022\035\n\025failed_analysis_count\030\002 \001(\005\"" - + "\232\004\n\031ExportInsightsDataRequest\022u\n\025big_que" - + "ry_destination\030\002 \001(\0132T.google.cloud.cont" - + "actcenterinsights.v1.ExportInsightsDataR" - + "equest.BigQueryDestinationH\000\022:\n\006parent\030\001" - + " \001(\tB*\342A\001\002\372A#\n!locations.googleapis.com/" - + "Location\022\016\n\006filter\030\003 \001(\t\022\017\n\007kms_key\030\004 \001(" - + "\t\022l\n\021write_disposition\030\005 \001(\0162Q.google.cl" - + "oud.contactcenterinsights.v1.ExportInsig" - + "htsDataRequest.WriteDisposition\032O\n\023BigQu" - + "eryDestination\022\022\n\nproject_id\030\003 \001(\t\022\025\n\007da" - + "taset\030\001 \001(\tB\004\342A\001\002\022\r\n\005table\030\002 \001(\t\"[\n\020Writ" - + "eDisposition\022!\n\035WRITE_DISPOSITION_UNSPEC" - + "IFIED\020\000\022\022\n\016WRITE_TRUNCATE\020\001\022\020\n\014WRITE_APP" - + "END\020\002B\r\n\013destination\"\206\002\n\032ExportInsightsD" - + "ataMetadata\0225\n\013create_time\030\001 \001(\0132\032.googl" - + "e.protobuf.TimestampB\004\342A\001\003\0222\n\010end_time\030\002" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022Q" - + "\n\007request\030\003 \001(\0132@.google.cloud.contactce" - + "nterinsights.v1.ExportInsightsDataReques" - + "t\022*\n\016partial_errors\030\004 \003(\0132\022.google.rpc.S" - + "tatus\"\034\n\032ExportInsightsDataResponse\"\243\001\n\027" - + "CreateIssueModelRequest\022:\n\006parent\030\001 \001(\tB" - + "*\342A\001\002\372A#\n!locations.googleapis.com/Locat" - + "ion\022L\n\013issue_model\030\002 \001(\01321.google.cloud." - + "contactcenterinsights.v1.IssueModelB\004\342A\001" - + "\002\"\326\001\n\030CreateIssueModelMetadata\0225\n\013create" + + "ConversationConfig\022V\n\020redaction_config\030\005" + + " \001(\01326.google.cloud.contactcenterinsight" + + "s.v1.RedactionConfigB\004\342A\001\001\022P\n\rspeech_con" + + "fig\030\006 \001(\01323.google.cloud.contactcenterin" + + "sights.v1.SpeechConfigB\004\342A\001\001\032\370\001\n\tGcsSour" + + "ce\022\030\n\nbucket_uri\030\001 \001(\tB\004\342A\001\002\022~\n\022bucket_o" + + "bject_type\030\002 \001(\0162\\.google.cloud.contactc" + + "enterinsights.v1.IngestConversationsRequ" + + "est.GcsSource.BucketObjectTypeB\004\342A\001\001\"Q\n\020" + + "BucketObjectType\022\"\n\036BUCKET_OBJECT_TYPE_U" + + "NSPECIFIED\020\000\022\016\n\nTRANSCRIPT\020\001\022\t\n\005AUDIO\020\002\032" + + "j\n\026TranscriptObjectConfig\022P\n\006medium\030\001 \001(" + + "\0162:.google.cloud.contactcenterinsights.v" + + "1.Conversation.MediumB\004\342A\001\002\032c\n\022Conversat" + + "ionConfig\022\020\n\010agent_id\030\001 \001(\t\022\033\n\ragent_cha" + + "nnel\030\002 \001(\005B\004\342A\001\001\022\036\n\020customer_channel\030\003 \001" + + "(\005B\004\342A\001\001B\010\n\006sourceB\017\n\robject_config\"\321\004\n\033" + + "IngestConversationsMetadata\0225\n\013create_ti" + + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\004\342A" + + "\001\003\0222\n\010end_time\030\002 \001(\0132\032.google.protobuf.T" + + "imestampB\004\342A\001\003\022X\n\007request\030\003 \001(\0132A.google" + + ".cloud.contactcenterinsights.v1.IngestCo" + + "nversationsRequestB\004\342A\001\003\0220\n\016partial_erro" + + "rs\030\004 \003(\0132\022.google.rpc.StatusB\004\342A\001\003\022\205\001\n\032i" + + "ngest_conversations_stats\030\005 \001(\0132[.google" + + ".cloud.contactcenterinsights.v1.IngestCo" + + "nversationsMetadata.IngestConversationsS" + + "tatsB\004\342A\001\003\032\262\001\n\030IngestConversationsStats\022" + + "$\n\026processed_object_count\030\001 \001(\005B\004\342A\001\003\022&\n" + + "\030duplicates_skipped_count\030\002 \001(\005B\004\342A\001\003\022%\n" + + "\027successful_ingest_count\030\003 \001(\005B\004\342A\001\003\022!\n\023" + + "failed_ingest_count\030\004 \001(\005B\004\342A\001\003\"\035\n\033Inges" + + "tConversationsResponse\"\254\001\n\025CreateAnalysi" + + "sRequest\022J\n\006parent\030\001 \001(\tB:\342A\001\002\372A3\n1conta" + + "ctcenterinsights.googleapis.com/Conversa" + + "tion\022G\n\010analysis\030\002 \001(\0132/.google.cloud.co" + + "ntactcenterinsights.v1.AnalysisB\004\342A\001\002\"\230\001" + + "\n\023ListAnalysesRequest\022J\n\006parent\030\001 \001(\tB:\342" + + "A\001\002\372A3\n1contactcenterinsights.googleapis" + + ".com/Conversation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"r\n\024List" + + "AnalysesResponse\022A\n\010analyses\030\001 \003(\0132/.goo" + + "gle.cloud.contactcenterinsights.v1.Analy" + + "sis\022\027\n\017next_page_token\030\002 \001(\t\"Z\n\022GetAnaly" + + "sisRequest\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-conta" + + "ctcenterinsights.googleapis.com/Analysis" + + "\"]\n\025DeleteAnalysisRequest\022D\n\004name\030\001 \001(\tB" + + "6\342A\001\002\372A/\n-contactcenterinsights.googleap" + + "is.com/Analysis\"\354\001\n\037BulkAnalyzeConversat" + + "ionsRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!lo" + + "cations.googleapis.com/Location\022\024\n\006filte" + + "r\030\002 \001(\tB\004\342A\001\002\022!\n\023analysis_percentage\030\003 \001" + + "(\002B\004\342A\001\002\022T\n\022annotator_selector\030\010 \001(\01328.g" + + "oogle.cloud.contactcenterinsights.v1.Ann" + + "otatorSelector\"\365\002\n BulkAnalyzeConversati" + + "onsMetadata\022/\n\013create_time\030\001 \001(\0132\032.googl" + + "e.protobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032" + + ".google.protobuf.Timestamp\022W\n\007request\030\003 " + + "\001(\0132F.google.cloud.contactcenterinsights" + + ".v1.BulkAnalyzeConversationsRequest\022 \n\030c" + + "ompleted_analyses_count\030\004 \001(\005\022\035\n\025failed_" + + "analyses_count\030\005 \001(\005\022&\n\036total_requested_" + + "analyses_count\030\006 \001(\005\0220\n\016partial_errors\030\007" + + " \003(\0132\022.google.rpc.StatusB\004\342A\001\003\"d\n BulkAn" + + "alyzeConversationsResponse\022!\n\031successful" + + "_analysis_count\030\001 \001(\005\022\035\n\025failed_analysis" + + "_count\030\002 \001(\005\"\225\001\n\036BulkDeleteConversations" + + "Request\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locati" + + "ons.googleapis.com/Location\022\016\n\006filter\030\002 " + + "\001(\t\022\030\n\020max_delete_count\030\003 \001(\005\022\r\n\005force\030\004" + + " \001(\010\"\204\002\n\037BulkDeleteConversationsMetadata" + + "\022/\n\013create_time\030\001 \001(\0132\032.google.protobuf." + + "Timestamp\022,\n\010end_time\030\002 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022V\n\007request\030\003 \001(\0132E.googl" + + "e.cloud.contactcenterinsights.v1.BulkDel" + + "eteConversationsRequest\022*\n\016partial_error" + + "s\030\004 \003(\0132\022.google.rpc.Status\"!\n\037BulkDelet" + + "eConversationsResponse\"\232\004\n\031ExportInsight" + + "sDataRequest\022u\n\025big_query_destination\030\002 " + + "\001(\0132T.google.cloud.contactcenterinsights" + + ".v1.ExportInsightsDataRequest.BigQueryDe" + + "stinationH\000\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!lo" + + "cations.googleapis.com/Location\022\016\n\006filte" + + "r\030\003 \001(\t\022\017\n\007kms_key\030\004 \001(\t\022l\n\021write_dispos" + + "ition\030\005 \001(\0162Q.google.cloud.contactcenter" + + "insights.v1.ExportInsightsDataRequest.Wr" + + "iteDisposition\032O\n\023BigQueryDestination\022\022\n" + + "\nproject_id\030\003 \001(\t\022\025\n\007dataset\030\001 \001(\tB\004\342A\001\002" + + "\022\r\n\005table\030\002 \001(\t\"[\n\020WriteDisposition\022!\n\035W" + + "RITE_DISPOSITION_UNSPECIFIED\020\000\022\022\n\016WRITE_" + + "TRUNCATE\020\001\022\020\n\014WRITE_APPEND\020\002B\r\n\013destinat" + + "ion\"\206\002\n\032ExportInsightsDataMetadata\0225\n\013cr" + + "eate_time\030\001 \001(\0132\032.google.protobuf.Timest" + + "ampB\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\022Q\n\007request\030\003 \001(\0132@" + + ".google.cloud.contactcenterinsights.v1.E" + + "xportInsightsDataRequest\022*\n\016partial_erro" + + "rs\030\004 \003(\0132\022.google.rpc.Status\"\034\n\032ExportIn" + + "sightsDataResponse\"\243\001\n\027CreateIssueModelR" + + "equest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locatio" + + "ns.googleapis.com/Location\022L\n\013issue_mode" + + "l\030\002 \001(\01321.google.cloud.contactcenterinsi" + + "ghts.v1.IssueModelB\004\342A\001\002\"\326\001\n\030CreateIssue" + + "ModelMetadata\0225\n\013create_time\030\001 \001(\0132\032.goo" + + "gle.protobuf.TimestampB\004\342A\001\003\0222\n\010end_time" + + "\030\002 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003" + + "\022O\n\007request\030\003 \001(\0132>.google.cloud.contact" + + "centerinsights.v1.CreateIssueModelReques" + + "t\"\230\001\n\027UpdateIssueModelRequest\022L\n\013issue_m" + + "odel\030\001 \001(\01321.google.cloud.contactcenteri" + + "nsights.v1.IssueModelB\004\342A\001\002\022/\n\013update_ma" + + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"T\n\026" + + "ListIssueModelsRequest\022:\n\006parent\030\001 \001(\tB*" + + "\342A\001\002\372A#\n!locations.googleapis.com/Locati" + + "on\"b\n\027ListIssueModelsResponse\022G\n\014issue_m" + + "odels\030\001 \003(\01321.google.cloud.contactcenter" + + "insights.v1.IssueModel\"^\n\024GetIssueModelR" + + "equest\022F\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/contactce" + + "nterinsights.googleapis.com/IssueModel\"a" + + "\n\027DeleteIssueModelRequest\022F\n\004name\030\001 \001(\tB" + + "8\342A\001\002\372A1\n/contactcenterinsights.googleap" + + "is.com/IssueModel\"\326\001\n\030DeleteIssueModelMe" + + "tadata\0225\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.TimestampB\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\004\342A\001\003\022O\n\007req" + + "uest\030\003 \001(\0132>.google.cloud.contactcenteri" + + "nsights.v1.DeleteIssueModelRequest\"a\n\027De" + + "ployIssueModelRequest\022F\n\004name\030\001 \001(\tB8\342A\001" + + "\002\372A1\n/contactcenterinsights.googleapis.c" + + "om/IssueModel\"\032\n\030DeployIssueModelRespons" + + "e\"\326\001\n\030DeployIssueModelMetadata\0225\n\013create" + "_time\030\001 \001(\0132\032.google.protobuf.TimestampB" + "\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132\032.google.protobu" + "f.TimestampB\004\342A\001\003\022O\n\007request\030\003 \001(\0132>.goo" - + "gle.cloud.contactcenterinsights.v1.Creat" - + "eIssueModelRequest\"\230\001\n\027UpdateIssueModelR" - + "equest\022L\n\013issue_model\030\001 \001(\01321.google.clo" - + "ud.contactcenterinsights.v1.IssueModelB\004" - + "\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMask\"T\n\026ListIssueModelsRequest\022" - + ":\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.goog" - + "leapis.com/Location\"b\n\027ListIssueModelsRe" - + "sponse\022G\n\014issue_models\030\001 \003(\01321.google.cl" - + "oud.contactcenterinsights.v1.IssueModel\"" - + "^\n\024GetIssueModelRequest\022F\n\004name\030\001 \001(\tB8\342" - + "A\001\002\372A1\n/contactcenterinsights.googleapis" - + ".com/IssueModel\"a\n\027DeleteIssueModelReque" - + "st\022F\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/contactcenter" - + "insights.googleapis.com/IssueModel\"\326\001\n\030D" - + "eleteIssueModelMetadata\0225\n\013create_time\030\001" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222" - + "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tampB\004\342A\001\003\022O\n\007request\030\003 \001(\0132>.google.clo" - + "ud.contactcenterinsights.v1.DeleteIssueM" - + "odelRequest\"a\n\027DeployIssueModelRequest\022F" - + "\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/contactcenterinsi" - + "ghts.googleapis.com/IssueModel\"\032\n\030Deploy" - + "IssueModelResponse\"\326\001\n\030DeployIssueModelM" - + "etadata\0225\n\013create_time\030\001 \001(\0132\032.google.pr" - + "otobuf.TimestampB\004\342A\001\003\0222\n\010end_time\030\002 \001(\013" - + "2\032.google.protobuf.TimestampB\004\342A\001\003\022O\n\007re" - + "quest\030\003 \001(\0132>.google.cloud.contactcenter" - + "insights.v1.DeployIssueModelRequest\"c\n\031U" - + "ndeployIssueModelRequest\022F\n\004name\030\001 \001(\tB8" - + "\342A\001\002\372A1\n/contactcenterinsights.googleapi" - + "s.com/IssueModel\"\034\n\032UndeployIssueModelRe" - + "sponse\"\332\001\n\032UndeployIssueModelMetadata\0225\n" - + "\013create_time\030\001 \001(\0132\032.google.protobuf.Tim" - + "estampB\004\342A\001\003\0222\n\010end_time\030\002 \001(\0132\032.google." - + "protobuf.TimestampB\004\342A\001\003\022Q\n\007request\030\003 \001(" - + "\0132@.google.cloud.contactcenterinsights.v" - + "1.UndeployIssueModelRequest\"T\n\017GetIssueR" - + "equest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*contactce" - + "nterinsights.googleapis.com/Issue\"]\n\021Lis" - + "tIssuesRequest\022H\n\006parent\030\001 \001(\tB8\342A\001\002\372A1\n" - + "/contactcenterinsights.googleapis.com/Is" - + "sueModel\"R\n\022ListIssuesResponse\022<\n\006issues" - + "\030\001 \003(\0132,.google.cloud.contactcenterinsig" - + "hts.v1.Issue\"\210\001\n\022UpdateIssueRequest\022A\n\005i" - + "ssue\030\001 \001(\0132,.google.cloud.contactcenteri" - + "nsights.v1.IssueB\004\342A\001\002\022/\n\013update_mask\030\002 " - + "\001(\0132\032.google.protobuf.FieldMask\"W\n\022Delet" - + "eIssueRequest\022A\n\004name\030\001 \001(\tB3\342A\001\002\372A,\n*co" - + "ntactcenterinsights.googleapis.com/Issue" - + "\"p\n\037CalculateIssueModelStatsRequest\022M\n\013i" - + "ssue_model\030\001 \001(\tB8\342A\001\002\372A1\n/contactcenter" - + "insights.googleapis.com/IssueModel\"v\n Ca" - + "lculateIssueModelStatsResponse\022R\n\rcurren" - + "t_stats\030\004 \001(\0132;.google.cloud.contactcent" - + "erinsights.v1.IssueModelLabelStats\"\254\001\n\032C" - + "reatePhraseMatcherRequest\022:\n\006parent\030\001 \001(" - + "\tB*\342A\001\002\372A#\n!locations.googleapis.com/Loc" - + "ation\022R\n\016phrase_matcher\030\002 \001(\01324.google.c" - + "loud.contactcenterinsights.v1.PhraseMatc" - + "herB\004\342A\001\002\"\216\001\n\031ListPhraseMatchersRequest\022" - + ":\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.goog" - + "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" - + "\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\204\001\n\032L" - + "istPhraseMatchersResponse\022M\n\017phrase_matc" - + "hers\030\001 \003(\01324.google.cloud.contactcenteri" - + "nsights.v1.PhraseMatcher\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"d\n\027GetPhraseMatcherRequest\022I\n\004" - + "name\030\001 \001(\tB;\342A\001\002\372A4\n2contactcenterinsigh" - + "ts.googleapis.com/PhraseMatcher\"g\n\032Delet" - + "ePhraseMatcherRequest\022I\n\004name\030\001 \001(\tB;\342A\001" - + "\002\372A4\n2contactcenterinsights.googleapis.c" - + "om/PhraseMatcher\"\241\001\n\032UpdatePhraseMatcher" - + "Request\022R\n\016phrase_matcher\030\001 \001(\01324.google" - + ".cloud.contactcenterinsights.v1.PhraseMa" - + "tcherB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMask\"Z\n\022GetSettingsReque" - + "st\022D\n\004name\030\001 \001(\tB6\342A\001\002\372A/\n-contactcenter" - + "insights.googleapis.com/Settings\"\227\001\n\025Upd" - + "ateSettingsRequest\022G\n\010settings\030\001 \001(\0132/.g" - + "oogle.cloud.contactcenterinsights.v1.Set" - + "tingsB\004\342A\001\002\0225\n\013update_mask\030\002 \001(\0132\032.googl" - + "e.protobuf.FieldMaskB\004\342A\001\002\"\220\001\n\021CreateVie" - + "wRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locat" - + "ions.googleapis.com/Location\022?\n\004view\030\002 \001" - + "(\0132+.google.cloud.contactcenterinsights." - + "v1.ViewB\004\342A\001\002\"R\n\016GetViewRequest\022@\n\004name\030" - + "\001 \001(\tB2\342A\001\002\372A+\n)contactcenterinsights.go" - + "ogleapis.com/View\"u\n\020ListViewsRequest\022:\n" - + "\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locations.google" - + "apis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"h\n\021ListViewsResponse\022:\n" - + "\005views\030\001 \003(\0132+.google.cloud.contactcente" - + "rinsights.v1.View\022\027\n\017next_page_token\030\002 \001" - + "(\t\"\205\001\n\021UpdateViewRequest\022?\n\004view\030\001 \001(\0132+" - + ".google.cloud.contactcenterinsights.v1.V" - + "iewB\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMask\"U\n\021DeleteViewRequest\022" - + "@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)contactcenterins" - + "ights.googleapis.com/View*J\n\020Conversatio" - + "nView\022!\n\035CONVERSATION_VIEW_UNSPECIFIED\020\000" - + "\022\010\n\004FULL\020\002\022\t\n\005BASIC\020\0012\273B\n\025ContactCenterI" - + "nsights\022\372\001\n\022CreateConversation\022@.google." - + "cloud.contactcenterinsights.v1.CreateCon" - + "versationRequest\0323.google.cloud.contactc" - + "enterinsights.v1.Conversation\"m\332A#parent" - + ",conversation,conversation_id\202\323\344\223\002A\"1/v1" + + "gle.cloud.contactcenterinsights.v1.Deplo" + + "yIssueModelRequest\"c\n\031UndeployIssueModel" + + "Request\022F\n\004name\030\001 \001(\tB8\342A\001\002\372A1\n/contactc" + + "enterinsights.googleapis.com/IssueModel\"" + + "\034\n\032UndeployIssueModelResponse\"\332\001\n\032Undepl" + + "oyIssueModelMetadata\0225\n\013create_time\030\001 \001(" + + "\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n\010e" + + "nd_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "pB\004\342A\001\003\022Q\n\007request\030\003 \001(\0132@.google.cloud." + + "contactcenterinsights.v1.UndeployIssueMo" + + "delRequest\"T\n\017GetIssueRequest\022A\n\004name\030\001 " + + "\001(\tB3\342A\001\002\372A,\n*contactcenterinsights.goog" + + "leapis.com/Issue\"]\n\021ListIssuesRequest\022H\n" + + "\006parent\030\001 \001(\tB8\342A\001\002\372A1\n/contactcenterins" + + "ights.googleapis.com/IssueModel\"R\n\022ListI" + + "ssuesResponse\022<\n\006issues\030\001 \003(\0132,.google.c" + + "loud.contactcenterinsights.v1.Issue\"\210\001\n\022" + + "UpdateIssueRequest\022A\n\005issue\030\001 \001(\0132,.goog" + + "le.cloud.contactcenterinsights.v1.IssueB" + + "\004\342A\001\002\022/\n\013update_mask\030\002 \001(\0132\032.google.prot" + + "obuf.FieldMask\"W\n\022DeleteIssueRequest\022A\n\004" + + "name\030\001 \001(\tB3\342A\001\002\372A,\n*contactcenterinsigh" + + "ts.googleapis.com/Issue\"p\n\037CalculateIssu" + + "eModelStatsRequest\022M\n\013issue_model\030\001 \001(\tB" + + "8\342A\001\002\372A1\n/contactcenterinsights.googleap" + + "is.com/IssueModel\"v\n CalculateIssueModel" + + "StatsResponse\022R\n\rcurrent_stats\030\004 \001(\0132;.g" + + "oogle.cloud.contactcenterinsights.v1.Iss" + + "ueModelLabelStats\"\254\001\n\032CreatePhraseMatche" + + "rRequest\022:\n\006parent\030\001 \001(\tB*\342A\001\002\372A#\n!locat" + + "ions.googleapis.com/Location\022R\n\016phrase_m" + + "atcher\030\002 \001(\01324.google.cloud.contactcente" + + "rinsights.v1.PhraseMatcherB\004\342A\001\002\"\216\001\n\031Lis" + + "tPhraseMatchersRequest\022:\n\006parent\030\001 \001(\tB*" + + "\342A\001\002\372A#\n!locations.googleapis.com/Locati" + + "on\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" + + "\t\022\016\n\006filter\030\004 \001(\t\"\204\001\n\032ListPhraseMatchers" + + "Response\022M\n\017phrase_matchers\030\001 \003(\01324.goog" + + "le.cloud.contactcenterinsights.v1.Phrase" + + "Matcher\022\027\n\017next_page_token\030\002 \001(\t\"d\n\027GetP" + + "hraseMatcherRequest\022I\n\004name\030\001 \001(\tB;\342A\001\002\372" + + "A4\n2contactcenterinsights.googleapis.com" + + "/PhraseMatcher\"g\n\032DeletePhraseMatcherReq" + + "uest\022I\n\004name\030\001 \001(\tB;\342A\001\002\372A4\n2contactcent" + + "erinsights.googleapis.com/PhraseMatcher\"" + + "\241\001\n\032UpdatePhraseMatcherRequest\022R\n\016phrase" + + "_matcher\030\001 \001(\01324.google.cloud.contactcen" + + "terinsights.v1.PhraseMatcherB\004\342A\001\002\022/\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "ask\"Z\n\022GetSettingsRequest\022D\n\004name\030\001 \001(\tB" + + "6\342A\001\002\372A/\n-contactcenterinsights.googleap" + + "is.com/Settings\"\227\001\n\025UpdateSettingsReques" + + "t\022G\n\010settings\030\001 \001(\0132/.google.cloud.conta" + + "ctcenterinsights.v1.SettingsB\004\342A\001\002\0225\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\004\342A\001\002\"\220\001\n\021CreateViewRequest\022:\n\006paren" + + "t\030\001 \001(\tB*\342A\001\002\372A#\n!locations.googleapis.c" + + "om/Location\022?\n\004view\030\002 \001(\0132+.google.cloud" + + ".contactcenterinsights.v1.ViewB\004\342A\001\002\"R\n\016" + + "GetViewRequest\022@\n\004name\030\001 \001(\tB2\342A\001\002\372A+\n)c" + + "ontactcenterinsights.googleapis.com/View" + + "\"u\n\020ListViewsRequest\022:\n\006parent\030\001 \001(\tB*\342A" + + "\001\002\372A#\n!locations.googleapis.com/Location" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + + "h\n\021ListViewsResponse\022:\n\005views\030\001 \003(\0132+.go" + + "ogle.cloud.contactcenterinsights.v1.View" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\205\001\n\021UpdateView" + + "Request\022?\n\004view\030\001 \001(\0132+.google.cloud.con" + + "tactcenterinsights.v1.ViewB\004\342A\001\002\022/\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "k\"U\n\021DeleteViewRequest\022@\n\004name\030\001 \001(\tB2\342A" + + "\001\002\372A+\n)contactcenterinsights.googleapis." + + "com/View*J\n\020ConversationView\022!\n\035CONVERSA" + + "TION_VIEW_UNSPECIFIED\020\000\022\010\n\004FULL\020\002\022\t\n\005BAS" + + "IC\020\0012\334D\n\025ContactCenterInsights\022\372\001\n\022Creat" + + "eConversation\022@.google.cloud.contactcent" + + "erinsights.v1.CreateConversationRequest\032" + + "3.google.cloud.contactcenterinsights.v1." + + "Conversation\"m\332A#parent,conversation,con" + + "versation_id\202\323\344\223\002A\"1/v1/{parent=projects" + + "/*/locations/*}/conversations:\014conversat" + + "ion\022\347\001\n\022UploadConversation\022@.google.clou" + + "d.contactcenterinsights.v1.UploadConvers" + + "ationRequest\032\035.google.longrunning.Operat" + + "ion\"p\312A*\n\014Conversation\022\032UploadConversati" + + "onMetadata\202\323\344\223\002=\"8/v1/{parent=projects/*" + + "/locations/*}/conversations:upload:\001*\022\374\001" + + "\n\022UpdateConversation\022@.google.cloud.cont" + + "actcenterinsights.v1.UpdateConversationR" + + "equest\0323.google.cloud.contactcenterinsig" + + "hts.v1.Conversation\"o\332A\030conversation,upd" + + "ate_mask\202\323\344\223\002N2>/v1/{conversation.name=p" + + "rojects/*/locations/*/conversations/*}:\014" + + "conversation\022\307\001\n\017GetConversation\022=.googl" + + "e.cloud.contactcenterinsights.v1.GetConv" + + "ersationRequest\0323.google.cloud.contactce" + + "nterinsights.v1.Conversation\"@\332A\004name\202\323\344" + + "\223\0023\0221/v1/{name=projects/*/locations/*/co" + + "nversations/*}\022\332\001\n\021ListConversations\022?.g" + + "oogle.cloud.contactcenterinsights.v1.Lis" + + "tConversationsRequest\032@.google.cloud.con" + + "tactcenterinsights.v1.ListConversationsR" + + "esponse\"B\332A\006parent\202\323\344\223\0023\0221/v1/{parent=pr" + + "ojects/*/locations/*}/conversations\022\260\001\n\022" + + "DeleteConversation\022@.google.cloud.contac" + + "tcenterinsights.v1.DeleteConversationReq" + + "uest\032\026.google.protobuf.Empty\"@\332A\004name\202\323\344" + + "\223\0023*1/v1/{name=projects/*/locations/*/co" + + "nversations/*}\022\376\001\n\016CreateAnalysis\022<.goog" + + "le.cloud.contactcenterinsights.v1.Create" + + "AnalysisRequest\032\035.google.longrunning.Ope" + + "ration\"\216\001\312A+\n\010Analysis\022\037CreateAnalysisOp" + + "erationMetadata\332A\017parent,analysis\202\323\344\223\002H\"" + + "\022\022*.google.cloud.contactcen" + + "terinsights.v1.CreateIssueModelRequest\032\035" + + ".google.longrunning.Operation\"\202\001\312A&\n\nIss" + + "ueModel\022\030CreateIssueModelMetadata\332A\022pare" + + "nt,issue_model\202\323\344\223\002>\"//v1/{parent=projec" + + "ts/*/locations/*}/issueModels:\013issue_mod" + + "el\022\361\001\n\020UpdateIssueModel\022>.google.cloud.c" + + "ontactcenterinsights.v1.UpdateIssueModel" + + "Request\0321.google.cloud.contactcenterinsi" + + "ghts.v1.IssueModel\"j\332A\027issue_model,updat" + + "e_mask\202\323\344\223\002J2;/v1/{issue_model.name=proj" + + "ects/*/locations/*/issueModels/*}:\013issue" + + "_model\022\277\001\n\rGetIssueModel\022;.google.cloud." + + "contactcenterinsights.v1.GetIssueModelRe" + + "quest\0321.google.cloud.contactcenterinsigh" + + "ts.v1.IssueModel\">\332A\004name\202\323\344\223\0021\022//v1/{na" + + "me=projects/*/locations/*/issueModels/*}" + + "\022\322\001\n\017ListIssueModels\022=.google.cloud.cont" + + "actcenterinsights.v1.ListIssueModelsRequ" + + "est\032>.google.cloud.contactcenterinsights" + + ".v1.ListIssueModelsResponse\"@\332A\006parent\202\323" + + "\344\223\0021\022//v1/{parent=projects/*/locations/*" + + "}/issueModels\022\345\001\n\020DeleteIssueModel\022>.goo" + + "gle.cloud.contactcenterinsights.v1.Delet" + + "eIssueModelRequest\032\035.google.longrunning." + + "Operation\"r\312A1\n\025google.protobuf.Empty\022\030D" + + "eleteIssueModelMetadata\332A\004name\202\323\344\223\0021*//v" + + "1/{name=projects/*/locations/*/issueMode" + + "ls/*}\022\362\001\n\020DeployIssueModel\022>.google.clou" + + "d.contactcenterinsights.v1.DeployIssueMo" + + "delRequest\032\035.google.longrunning.Operatio" + + "n\"\177\312A4\n\030DeployIssueModelResponse\022\030Deploy" + + "IssueModelMetadata\332A\004name\202\323\344\223\002;\"6/v1/{na" + + "me=projects/*/locations/*/issueModels/*}" + + ":deploy:\001*\022\375\001\n\022UndeployIssueModel\022@.goog" + + "le.cloud.contactcenterinsights.v1.Undepl" + + "oyIssueModelRequest\032\035.google.longrunning" + + ".Operation\"\205\001\312A8\n\032UndeployIssueModelResp" + + "onse\022\032UndeployIssueModelMetadata\332A\004name\202" + + "\323\344\223\002=\"8/v1/{name=projects/*/locations/*/" + + "issueModels/*}:undeploy:\001*\022\271\001\n\010GetIssue\022" + + "6.google.cloud.contactcenterinsights.v1." + + "GetIssueRequest\032,.google.cloud.contactce" + + "nterinsights.v1.Issue\"G\332A\004name\202\323\344\223\002:\0228/v" + + "1/{name=projects/*/locations/*/issueMode" + + "ls/*/issues/*}\022\314\001\n\nListIssues\0228.google.c" + + "loud.contactcenterinsights.v1.ListIssues" + + "Request\0329.google.cloud.contactcenterinsi" + + "ghts.v1.ListIssuesResponse\"I\332A\006parent\202\323\344" + + "\223\002:\0228/v1/{parent=projects/*/locations/*/" + + "issueModels/*}/issues\022\331\001\n\013UpdateIssue\0229." + "google.cloud.contactcenterinsights.v1.Up" - + "dateConversationRequest\0323.google.cloud.c" - + "ontactcenterinsights.v1.Conversation\"o\332A" - + "\030conversation,update_mask\202\323\344\223\002N2>/v1/{co" - + "nversation.name=projects/*/locations/*/c" - + "onversations/*}:\014conversation\022\307\001\n\017GetCon" - + "versation\022=.google.cloud.contactcenterin" - + "sights.v1.GetConversationRequest\0323.googl" - + "e.cloud.contactcenterinsights.v1.Convers" - + "ation\"@\332A\004name\202\323\344\223\0023\0221/v1/{name=projects" - + "/*/locations/*/conversations/*}\022\332\001\n\021List" - + "Conversations\022?.google.cloud.contactcent" - + "erinsights.v1.ListConversationsRequest\032@" - + ".google.cloud.contactcenterinsights.v1.L" - + "istConversationsResponse\"B\332A\006parent\202\323\344\223\002" - + "3\0221/v1/{parent=projects/*/locations/*}/c" - + "onversations\022\260\001\n\022DeleteConversation\022@.go" - + "ogle.cloud.contactcenterinsights.v1.Dele" - + "teConversationRequest\032\026.google.protobuf." - + "Empty\"@\332A\004name\202\323\344\223\0023*1/v1/{name=projects" - + "/*/locations/*/conversations/*}\022\376\001\n\016Crea" - + "teAnalysis\022<.google.cloud.contactcenteri" - + "nsights.v1.CreateAnalysisRequest\032\035.googl" - + "e.longrunning.Operation\"\216\001\312A+\n\010Analysis\022" - + "\037CreateAnalysisOperationMetadata\332A\017paren" - + "t,analysis\202\323\344\223\002H\"\022\022*.google.cloud.co" - + "ntactcenterinsights.v1.CreateIssueModelR" - + "equest\032\035.google.longrunning.Operation\"\202\001" - + "\312A&\n\nIssueModel\022\030CreateIssueModelMetadat" - + "a\332A\022parent,issue_model\202\323\344\223\002>\"//v1/{paren" - + "t=projects/*/locations/*}/issueModels:\013i" - + "ssue_model\022\361\001\n\020UpdateIssueModel\022>.google" - + ".cloud.contactcenterinsights.v1.UpdateIs" - + "sueModelRequest\0321.google.cloud.contactce" - + "nterinsights.v1.IssueModel\"j\332A\027issue_mod" - + "el,update_mask\202\323\344\223\002J2;/v1/{issue_model.n" - + "ame=projects/*/locations/*/issueModels/*" - + "}:\013issue_model\022\277\001\n\rGetIssueModel\022;.googl" - + "e.cloud.contactcenterinsights.v1.GetIssu" - + "eModelRequest\0321.google.cloud.contactcent" - + "erinsights.v1.IssueModel\">\332A\004name\202\323\344\223\0021\022" - + "//v1/{name=projects/*/locations/*/issueM" - + "odels/*}\022\322\001\n\017ListIssueModels\022=.google.cl" - + "oud.contactcenterinsights.v1.ListIssueMo" - + "delsRequest\032>.google.cloud.contactcenter" - + "insights.v1.ListIssueModelsResponse\"@\332A\006" - + "parent\202\323\344\223\0021\022//v1/{parent=projects/*/loc" - + "ations/*}/issueModels\022\345\001\n\020DeleteIssueMod" - + "el\022>.google.cloud.contactcenterinsights." - + "v1.DeleteIssueModelRequest\032\035.google.long" - + "running.Operation\"r\312A1\n\025google.protobuf." - + "Empty\022\030DeleteIssueModelMetadata\332A\004name\202\323" - + "\344\223\0021*//v1/{name=projects/*/locations/*/i" - + "ssueModels/*}\022\362\001\n\020DeployIssueModel\022>.goo" - + "gle.cloud.contactcenterinsights.v1.Deplo" - + "yIssueModelRequest\032\035.google.longrunning.", - "Operation\"\177\312A4\n\030DeployIssueModelResponse" - + "\022\030DeployIssueModelMetadata\332A\004name\202\323\344\223\002;\"" - + "6/v1/{name=projects/*/locations/*/issueM" - + "odels/*}:deploy:\001*\022\375\001\n\022UndeployIssueMode" - + "l\022@.google.cloud.contactcenterinsights.v" - + "1.UndeployIssueModelRequest\032\035.google.lon" - + "grunning.Operation\"\205\001\312A8\n\032UndeployIssueM" - + "odelResponse\022\032UndeployIssueModelMetadata" - + "\332A\004name\202\323\344\223\002=\"8/v1/{name=projects/*/loca" - + "tions/*/issueModels/*}:undeploy:\001*\022\271\001\n\010G" - + "etIssue\0226.google.cloud.contactcenterinsi" - + "ghts.v1.GetIssueRequest\032,.google.cloud.c" - + "ontactcenterinsights.v1.Issue\"G\332A\004name\202\323" - + "\344\223\002:\0228/v1/{name=projects/*/locations/*/i" - + "ssueModels/*/issues/*}\022\314\001\n\nListIssues\0228." - + "google.cloud.contactcenterinsights.v1.Li" - + "stIssuesRequest\0329.google.cloud.contactce" - + "nterinsights.v1.ListIssuesResponse\"I\332A\006p" - + "arent\202\323\344\223\002:\0228/v1/{parent=projects/*/loca" - + "tions/*/issueModels/*}/issues\022\331\001\n\013Update" - + "Issue\0229.google.cloud.contactcenterinsigh" - + "ts.v1.UpdateIssueRequest\032,.google.cloud." - + "contactcenterinsights.v1.Issue\"a\332A\021issue" - + ",update_mask\202\323\344\223\002G2>/v1/{issue.name=proj" - + "ects/*/locations/*/issueModels/*/issues/" - + "*}:\005issue\022\251\001\n\013DeleteIssue\0229.google.cloud" - + ".contactcenterinsights.v1.DeleteIssueReq" - + "uest\032\026.google.protobuf.Empty\"G\332A\004name\202\323\344" - + "\223\002:*8/v1/{name=projects/*/locations/*/is" - + "sueModels/*/issues/*}\022\222\002\n\030CalculateIssue" - + "ModelStats\022F.google.cloud.contactcenteri" - + "nsights.v1.CalculateIssueModelStatsReque" - + "st\032G.google.cloud.contactcenterinsights." - + "v1.CalculateIssueModelStatsResponse\"e\332A\013" - + "issue_model\202\323\344\223\002Q\022O/v1/{issue_model=proj" - + "ects/*/locations/*/issueModels/*}:calcul" - + "ateIssueModelStats\022\362\001\n\023CreatePhraseMatch" - + "er\022A.google.cloud.contactcenterinsights." - + "v1.CreatePhraseMatcherRequest\0324.google.c" - + "loud.contactcenterinsights.v1.PhraseMatc" - + "her\"b\332A\025parent,phrase_matcher\202\323\344\223\002D\"2/v1" - + "/{parent=projects/*/locations/*}/phraseM" - + "atchers:\016phrase_matcher\022\313\001\n\020GetPhraseMat" - + "cher\022>.google.cloud.contactcenterinsight" - + "s.v1.GetPhraseMatcherRequest\0324.google.cl" - + "oud.contactcenterinsights.v1.PhraseMatch" - + "er\"A\332A\004name\202\323\344\223\0024\0222/v1/{name=projects/*/" - + "locations/*/phraseMatchers/*}\022\336\001\n\022ListPh" - + "raseMatchers\022@.google.cloud.contactcente" - + "rinsights.v1.ListPhraseMatchersRequest\032A" - + ".google.cloud.contactcenterinsights.v1.L" - + "istPhraseMatchersResponse\"C\332A\006parent\202\323\344\223" - + "\0024\0222/v1/{parent=projects/*/locations/*}/" - + "phraseMatchers\022\263\001\n\023DeletePhraseMatcher\022A" - + ".google.cloud.contactcenterinsights.v1.D" - + "eletePhraseMatcherRequest\032\026.google.proto" - + "buf.Empty\"A\332A\004name\202\323\344\223\0024*2/v1/{name=proj" - + "ects/*/locations/*/phraseMatchers/*}\022\206\002\n" - + "\023UpdatePhraseMatcher\022A.google.cloud.cont" - + "actcenterinsights.v1.UpdatePhraseMatcher" - + "Request\0324.google.cloud.contactcenterinsi" - + "ghts.v1.PhraseMatcher\"v\332A\032phrase_matcher" - + ",update_mask\202\323\344\223\002S2A/v1/{phrase_matcher." - + "name=projects/*/locations/*/phraseMatche" - + "rs/*}:\016phrase_matcher\022\344\001\n\016CalculateStats" - + "\022<.google.cloud.contactcenterinsights.v1" - + ".CalculateStatsRequest\032=.google.cloud.co" - + "ntactcenterinsights.v1.CalculateStatsRes" - + "ponse\"U\332A\010location\202\323\344\223\002D\022B/v1/{location=" - + "projects/*/locations/*}/conversations:ca" - + "lculateStats\022\264\001\n\013GetSettings\0229.google.cl" - + "oud.contactcenterinsights.v1.GetSettings" - + "Request\032/.google.cloud.contactcenterinsi" - + "ghts.v1.Settings\"9\332A\004name\202\323\344\223\002,\022*/v1/{na" - + "me=projects/*/locations/*/settings}\022\335\001\n\016" - + "UpdateSettings\022<.google.cloud.contactcen" - + "terinsights.v1.UpdateSettingsRequest\032/.g" - + "oogle.cloud.contactcenterinsights.v1.Set" - + "tings\"\\\332A\024settings,update_mask\202\323\344\223\002?23/v" - + "1/{settings.name=projects/*/locations/*/" - + "settings}:\010settings\022\272\001\n\nCreateView\0228.goo" + + "dateIssueRequest\032,.google.cloud.contactc" + + "enterinsights.v1.Issue\"a\332A\021issue,update_" + + "mask\202\323\344\223\002G2>/v1/{issue.name=projects/*/l" + + "ocations/*/issueModels/*/issues/*}:\005issu" + + "e\022\251\001\n\013DeleteIssue\0229.google.cloud.contact" + + "centerinsights.v1.DeleteIssueRequest\032\026.g" + + "oogle.protobuf.Empty\"G\332A\004name\202\323\344\223\002:*8/v1" + + "/{name=projects/*/locations/*/issueModel" + + "s/*/issues/*}\022\222\002\n\030CalculateIssueModelSta" + + "ts\022F.google.cloud.contactcenterinsights." + + "v1.CalculateIssueModelStatsRequest\032G.goo" + + "gle.cloud.contactcenterinsights.v1.Calcu" + + "lateIssueModelStatsResponse\"e\332A\013issue_mo" + + "del\202\323\344\223\002Q\022O/v1/{issue_model=projects/*/l" + + "ocations/*/issueModels/*}:calculateIssue" + + "ModelStats\022\362\001\n\023CreatePhraseMatcher\022A.goo" + "gle.cloud.contactcenterinsights.v1.Creat" - + "eViewRequest\032+.google.cloud.contactcente" - + "rinsights.v1.View\"E\332A\013parent,view\202\323\344\223\0021\"" - + ")/v1/{parent=projects/*/locations/*}/vie" - + "ws:\004view\022\247\001\n\007GetView\0225.google.cloud.cont" - + "actcenterinsights.v1.GetViewRequest\032+.go" - + "ogle.cloud.contactcenterinsights.v1.View" - + "\"8\332A\004name\202\323\344\223\002+\022)/v1/{name=projects/*/lo" - + "cations/*/views/*}\022\272\001\n\tListViews\0227.googl" - + "e.cloud.contactcenterinsights.v1.ListVie" - + "wsRequest\0328.google.cloud.contactcenterin" - + "sights.v1.ListViewsResponse\":\332A\006parent\202\323" - + "\344\223\002+\022)/v1/{parent=projects/*/locations/*" - + "}/views\022\304\001\n\nUpdateView\0228.google.cloud.co" - + "ntactcenterinsights.v1.UpdateViewRequest" - + "\032+.google.cloud.contactcenterinsights.v1" - + ".View\"O\332A\020view,update_mask\202\323\344\223\00262./v1/{v" - + "iew.name=projects/*/locations/*/views/*}" - + ":\004view\022\230\001\n\nDeleteView\0228.google.cloud.con" - + "tactcenterinsights.v1.DeleteViewRequest\032" - + "\026.google.protobuf.Empty\"8\332A\004name\202\323\344\223\002+*)" - + "/v1/{name=projects/*/locations/*/views/*" - + "}\032X\312A$contactcenterinsights.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\245\002\n)com.google.cloud.contact" - + "centerinsights.v1B\032ContactCenterInsights" - + "ProtoP\001Z_cloud.google.com/go/contactcent" - + "erinsights/apiv1/contactcenterinsightspb" - + ";contactcenterinsightspb\252\002%Google.Cloud." - + "ContactCenterInsights.V1\312\002%Google\\Cloud\\" - + "ContactCenterInsights\\V1\352\002(Google::Cloud" - + "::ContactCenterInsights::V1b\006proto3" + + "ePhraseMatcherRequest\0324.google.cloud.con" + + "tactcenterinsights.v1.PhraseMatcher\"b\332A\025" + + "parent,phrase_matcher\202\323\344\223\002D\"2/v1/{parent" + + "=projects/*/locations/*}/phraseMatchers:" + + "\016phrase_matcher\022\313\001\n\020GetPhraseMatcher\022>.g" + + "oogle.cloud.contactcenterinsights.v1.Get" + + "PhraseMatcherRequest\0324.google.cloud.cont" + + "actcenterinsights.v1.PhraseMatcher\"A\332A\004n" + + "ame\202\323\344\223\0024\0222/v1/{name=projects/*/location" + + "s/*/phraseMatchers/*}\022\336\001\n\022ListPhraseMatc" + + "hers\022@.google.cloud.contactcenterinsight" + + "s.v1.ListPhraseMatchersRequest\032A.google." + + "cloud.contactcenterinsights.v1.ListPhras" + + "eMatchersResponse\"C\332A\006parent\202\323\344\223\0024\0222/v1/" + + "{parent=projects/*/locations/*}/phraseMa" + + "tchers\022\263\001\n\023DeletePhraseMatcher\022A.google." + + "cloud.contactcenterinsights.v1.DeletePhr" + + "aseMatcherRequest\032\026.google.protobuf.Empt" + + "y\"A\332A\004name\202\323\344\223\0024*2/v1/{name=projects/*/l" + + "ocations/*/phraseMatchers/*}\022\206\002\n\023UpdateP" + + "hraseMatcher\022A.google.cloud.contactcente" + + "rinsights.v1.UpdatePhraseMatcherRequest\032" + + "4.google.cloud.contactcenterinsights.v1." + + "PhraseMatcher\"v\332A\032phrase_matcher,update_" + + "mask\202\323\344\223\002S2A/v1/{phrase_matcher.name=pro" + + "jects/*/locations/*/phraseMatchers/*}:\016p" + + "hrase_matcher\022\344\001\n\016CalculateStats\022<.googl" + + "e.cloud.contactcenterinsights.v1.Calcula" + + "teStatsRequest\032=.google.cloud.contactcen" + + "terinsights.v1.CalculateStatsResponse\"U\332" + + "A\010location\202\323\344\223\002D\022B/v1/{location=projects" + + "/*/locations/*}/conversations:calculateS" + + "tats\022\264\001\n\013GetSettings\0229.google.cloud.cont" + + "actcenterinsights.v1.GetSettingsRequest\032" + + "/.google.cloud.contactcenterinsights.v1." + + "Settings\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=proje" + + "cts/*/locations/*/settings}\022\335\001\n\016UpdateSe" + + "ttings\022<.google.cloud.contactcenterinsig" + + "hts.v1.UpdateSettingsRequest\032/.google.cl" + + "oud.contactcenterinsights.v1.Settings\"\\\332" + + "A\024settings,update_mask\202\323\344\223\002?23/v1/{setti" + + "ngs.name=projects/*/locations/*/settings" + + "}:\010settings\022\272\001\n\nCreateView\0228.google.clou" + + "d.contactcenterinsights.v1.CreateViewReq" + + "uest\032+.google.cloud.contactcenterinsight" + + "s.v1.View\"E\332A\013parent,view\202\323\344\223\0021\")/v1/{pa" + + "rent=projects/*/locations/*}/views:\004view" + + "\022\247\001\n\007GetView\0225.google.cloud.contactcente" + + "rinsights.v1.GetViewRequest\032+.google.clo" + + "ud.contactcenterinsights.v1.View\"8\332A\004nam" + + "e\202\323\344\223\002+\022)/v1/{name=projects/*/locations/" + + "*/views/*}\022\272\001\n\tListViews\0227.google.cloud." + + "contactcenterinsights.v1.ListViewsReques" + + "t\0328.google.cloud.contactcenterinsights.v" + + "1.ListViewsResponse\":\332A\006parent\202\323\344\223\002+\022)/v" + + "1/{parent=projects/*/locations/*}/views\022" + + "\304\001\n\nUpdateView\0228.google.cloud.contactcen" + + "terinsights.v1.UpdateViewRequest\032+.googl" + + "e.cloud.contactcenterinsights.v1.View\"O\332" + + "A\020view,update_mask\202\323\344\223\00262./v1/{view.name" + + "=projects/*/locations/*/views/*}:\004view\022\230" + + "\001\n\nDeleteView\0228.google.cloud.contactcent" + + "erinsights.v1.DeleteViewRequest\032\026.google" + + ".protobuf.Empty\"8\332A\004name\202\323\344\223\002+*)/v1/{nam" + + "e=projects/*/locations/*/views/*}\032X\312A$co" + + "ntactcenterinsights.googleapis.com\322A.htt" + + "ps://www.googleapis.com/auth/cloud-platf" + + "ormB\245\002\n)com.google.cloud.contactcenterin" + + "sights.v1B\032ContactCenterInsightsProtoP\001Z" + + "_cloud.google.com/go/contactcenterinsigh" + + "ts/apiv1/contactcenterinsightspb;contact" + + "centerinsightspb\252\002%Google.Cloud.ContactC" + + "enterInsights.V1\312\002%Google\\Cloud\\ContactC" + + "enterInsights\\V1\352\002(Google::Cloud::Contac" + + "tCenterInsights::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1015,6 +1058,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TranscriptObjectConfig", "Parent", "ConversationConfig", + "RedactionConfig", + "SpeechConfig", "Source", "ObjectConfig", }); @@ -1026,7 +1071,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_descriptor, new java.lang.String[] { - "BucketUri", + "BucketUri", "BucketObjectType", }); internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_descriptor = internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor @@ -1046,7 +1091,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_descriptor, new java.lang.String[] { - "AgentId", + "AgentId", "AgentChannel", "CustomerChannel", }); internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_descriptor = getDescriptor().getMessageTypes().get(12); @@ -1135,6 +1180,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CompletedAnalysesCount", "FailedAnalysesCount", "TotalRequestedAnalysesCount", + "PartialErrors", }); internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_descriptor = getDescriptor().getMessageTypes().get(21); @@ -1144,8 +1190,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "SuccessfulAnalysisCount", "FailedAnalysisCount", }); - internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataRequest_descriptor = + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsRequest_descriptor = getDescriptor().getMessageTypes().get(22); + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "MaxDeleteCount", "Force", + }); + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsMetadata_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "EndTime", "Request", "PartialErrors", + }); + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsResponse_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_BulkDeleteConversationsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataRequest_descriptor = + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataRequest_descriptor, @@ -1168,7 +1236,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Dataset", "Table", }); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataMetadata_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataMetadata_descriptor, @@ -1176,13 +1244,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", "PartialErrors", }); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataResponse_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelRequest_descriptor, @@ -1190,7 +1258,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "IssueModel", }); internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelMetadata_descriptor, @@ -1198,7 +1266,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueModelRequest_descriptor, @@ -1206,7 +1274,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IssueModel", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsRequest_descriptor, @@ -1214,7 +1282,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsResponse_descriptor, @@ -1222,7 +1290,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IssueModels", }); internal_static_google_cloud_contactcenterinsights_v1_GetIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_contactcenterinsights_v1_GetIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetIssueModelRequest_descriptor, @@ -1230,7 +1298,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelRequest_descriptor, @@ -1238,7 +1306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelMetadata_descriptor, @@ -1246,7 +1314,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", }); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelRequest_descriptor, @@ -1254,13 +1322,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelResponse_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelMetadata_descriptor, @@ -1268,7 +1336,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", }); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelRequest_descriptor, @@ -1276,13 +1344,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelResponse_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelMetadata_descriptor, @@ -1290,7 +1358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", }); internal_static_google_cloud_contactcenterinsights_v1_GetIssueRequest_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_contactcenterinsights_v1_GetIssueRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetIssueRequest_descriptor, @@ -1298,7 +1366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_ListIssuesRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_contactcenterinsights_v1_ListIssuesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListIssuesRequest_descriptor, @@ -1306,7 +1374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_cloud_contactcenterinsights_v1_ListIssuesResponse_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_contactcenterinsights_v1_ListIssuesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListIssuesResponse_descriptor, @@ -1314,7 +1382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Issues", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueRequest_descriptor, @@ -1322,7 +1390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Issue", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_descriptor, @@ -1330,7 +1398,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsRequest_descriptor, @@ -1338,7 +1406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IssueModel", }); internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsResponse_descriptor, @@ -1346,7 +1414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CurrentStats", }); internal_static_google_cloud_contactcenterinsights_v1_CreatePhraseMatcherRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_contactcenterinsights_v1_CreatePhraseMatcherRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreatePhraseMatcherRequest_descriptor, @@ -1354,7 +1422,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PhraseMatcher", }); internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersRequest_descriptor, @@ -1362,7 +1430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersResponse_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersResponse_descriptor, @@ -1370,7 +1438,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PhraseMatchers", "NextPageToken", }); internal_static_google_cloud_contactcenterinsights_v1_GetPhraseMatcherRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_contactcenterinsights_v1_GetPhraseMatcherRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetPhraseMatcherRequest_descriptor, @@ -1378,7 +1446,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeletePhraseMatcherRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_contactcenterinsights_v1_DeletePhraseMatcherRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeletePhraseMatcherRequest_descriptor, @@ -1386,7 +1454,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_UpdatePhraseMatcherRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_contactcenterinsights_v1_UpdatePhraseMatcherRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdatePhraseMatcherRequest_descriptor, @@ -1394,7 +1462,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PhraseMatcher", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_GetSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(55); internal_static_google_cloud_contactcenterinsights_v1_GetSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetSettingsRequest_descriptor, @@ -1402,7 +1470,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(56); internal_static_google_cloud_contactcenterinsights_v1_UpdateSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateSettingsRequest_descriptor, @@ -1410,7 +1478,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Settings", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_CreateViewRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(57); internal_static_google_cloud_contactcenterinsights_v1_CreateViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreateViewRequest_descriptor, @@ -1418,7 +1486,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "View", }); internal_static_google_cloud_contactcenterinsights_v1_GetViewRequest_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(58); internal_static_google_cloud_contactcenterinsights_v1_GetViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetViewRequest_descriptor, @@ -1426,7 +1494,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_ListViewsRequest_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(59); internal_static_google_cloud_contactcenterinsights_v1_ListViewsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListViewsRequest_descriptor, @@ -1434,7 +1502,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(60); internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_descriptor, @@ -1442,7 +1510,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Views", "NextPageToken", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateViewRequest_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(61); internal_static_google_cloud_contactcenterinsights_v1_UpdateViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateViewRequest_descriptor, @@ -1450,7 +1518,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "View", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteViewRequest_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(62); internal_static_google_cloud_contactcenterinsights_v1_DeleteViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeleteViewRequest_descriptor, diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequest.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequest.java index ee10505202cd..4312e34c42c8 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequest.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequest.java @@ -91,6 +91,36 @@ public interface GcsSourceOrBuilder * @return The bytes for bucketUri. */ com.google.protobuf.ByteString getBucketUriBytes(); + + /** + * + * + *
+     * Optional. Specifies the type of the objects in `bucket_uri`.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bucketObjectType. + */ + int getBucketObjectTypeValue(); + /** + * + * + *
+     * Optional. Specifies the type of the objects in `bucket_uri`.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bucketObjectType. + */ + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType + getBucketObjectType(); } /** * @@ -114,6 +144,7 @@ private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { private GcsSource() { bucketUri_ = ""; + bucketObjectType_ = 0; } @java.lang.Override @@ -138,6 +169,164 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { .class); } + /** + * Protobuf enum {@code + * google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType} + */ + public enum BucketObjectType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * The object type is unspecified and will default to TRANSCRIPT.
+       * 
+ * + * BUCKET_OBJECT_TYPE_UNSPECIFIED = 0; + */ + BUCKET_OBJECT_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * The object is a transcript.
+       * 
+ * + * TRANSCRIPT = 1; + */ + TRANSCRIPT(1), + /** + * + * + *
+       * The object is an audio file.
+       * 
+ * + * AUDIO = 2; + */ + AUDIO(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+       * The object type is unspecified and will default to TRANSCRIPT.
+       * 
+ * + * BUCKET_OBJECT_TYPE_UNSPECIFIED = 0; + */ + public static final int BUCKET_OBJECT_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+       * The object is a transcript.
+       * 
+ * + * TRANSCRIPT = 1; + */ + public static final int TRANSCRIPT_VALUE = 1; + /** + * + * + *
+       * The object is an audio file.
+       * 
+ * + * AUDIO = 2; + */ + public static final int AUDIO_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static BucketObjectType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static BucketObjectType forNumber(int value) { + switch (value) { + case 0: + return BUCKET_OBJECT_TYPE_UNSPECIFIED; + case 1: + return TRANSCRIPT; + case 2: + return AUDIO; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public BucketObjectType findValueByNumber(int number) { + return BucketObjectType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final BucketObjectType[] VALUES = values(); + + public static BucketObjectType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private BucketObjectType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType) + } + public static final int BUCKET_URI_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -189,6 +378,53 @@ public com.google.protobuf.ByteString getBucketUriBytes() { } } + public static final int BUCKET_OBJECT_TYPE_FIELD_NUMBER = 2; + private int bucketObjectType_ = 0; + /** + * + * + *
+     * Optional. Specifies the type of the objects in `bucket_uri`.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bucketObjectType. + */ + @java.lang.Override + public int getBucketObjectTypeValue() { + return bucketObjectType_; + } + /** + * + * + *
+     * Optional. Specifies the type of the objects in `bucket_uri`.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bucketObjectType. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .BucketObjectType + getBucketObjectType() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .BucketObjectType + result = + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .BucketObjectType.forNumber(bucketObjectType_); + return result == null + ? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .BucketObjectType.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -206,6 +442,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketUri_); } + if (bucketObjectType_ + != com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .BucketObjectType.BUCKET_OBJECT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, bucketObjectType_); + } getUnknownFields().writeTo(output); } @@ -218,6 +460,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bucketUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucketUri_); } + if (bucketObjectType_ + != com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .BucketObjectType.BUCKET_OBJECT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, bucketObjectType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -237,6 +485,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) obj; if (!getBucketUri().equals(other.getBucketUri())) return false; + if (bucketObjectType_ != other.bucketObjectType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -250,6 +499,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BUCKET_URI_FIELD_NUMBER; hash = (53 * hash) + getBucketUri().hashCode(); + hash = (37 * hash) + BUCKET_OBJECT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + bucketObjectType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -403,6 +654,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; bucketUri_ = ""; + bucketObjectType_ = 0; return this; } @@ -449,6 +701,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.bucketUri_ = bucketUri_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.bucketObjectType_ = bucketObjectType_; + } } @java.lang.Override @@ -510,6 +765,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (other.bucketObjectType_ != 0) { + setBucketObjectTypeValue(other.getBucketObjectTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -542,6 +800,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + bucketObjectType_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -667,6 +931,117 @@ public Builder setBucketUriBytes(com.google.protobuf.ByteString value) { return this; } + private int bucketObjectType_ = 0; + /** + * + * + *
+       * Optional. Specifies the type of the objects in `bucket_uri`.
+       * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for bucketObjectType. + */ + @java.lang.Override + public int getBucketObjectTypeValue() { + return bucketObjectType_; + } + /** + * + * + *
+       * Optional. Specifies the type of the objects in `bucket_uri`.
+       * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for bucketObjectType to set. + * @return This builder for chaining. + */ + public Builder setBucketObjectTypeValue(int value) { + bucketObjectType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies the type of the objects in `bucket_uri`.
+       * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The bucketObjectType. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .BucketObjectType + getBucketObjectType() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .BucketObjectType + result = + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .BucketObjectType.forNumber(bucketObjectType_); + return result == null + ? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .BucketObjectType.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Optional. Specifies the type of the objects in `bucket_uri`.
+       * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bucketObjectType to set. + * @return This builder for chaining. + */ + public Builder setBucketObjectType( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .BucketObjectType + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + bucketObjectType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. Specifies the type of the objects in `bucket_uri`.
+       * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.BucketObjectType bucket_object_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearBucketObjectType() { + bitField0_ = (bitField0_ & ~0x00000002); + bucketObjectType_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -1466,6 +1841,36 @@ public interface ConversationConfigOrBuilder * @return The bytes for agentId. */ com.google.protobuf.ByteString getAgentIdBytes(); + + /** + * + * + *
+     * Optional. For audio conversations, this field indicates which of the
+     * channels, 1 or 2, contains the agent. Note that this must be set for
+     * audio conversations to be properly displayed and analyzed.
+     * 
+ * + * int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentChannel. + */ + int getAgentChannel(); + + /** + * + * + *
+     * Optional. For audio conversations, this field indicates which of the
+     * channels, 1 or 2, contains the customer. Note that this must be set for
+     * audio conversations to be properly displayed and analyzed.
+     * 
+ * + * int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customerChannel. + */ + int getCustomerChannel(); } /** * @@ -1567,6 +1972,46 @@ public com.google.protobuf.ByteString getAgentIdBytes() { } } + public static final int AGENT_CHANNEL_FIELD_NUMBER = 2; + private int agentChannel_ = 0; + /** + * + * + *
+     * Optional. For audio conversations, this field indicates which of the
+     * channels, 1 or 2, contains the agent. Note that this must be set for
+     * audio conversations to be properly displayed and analyzed.
+     * 
+ * + * int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentChannel. + */ + @java.lang.Override + public int getAgentChannel() { + return agentChannel_; + } + + public static final int CUSTOMER_CHANNEL_FIELD_NUMBER = 3; + private int customerChannel_ = 0; + /** + * + * + *
+     * Optional. For audio conversations, this field indicates which of the
+     * channels, 1 or 2, contains the customer. Note that this must be set for
+     * audio conversations to be properly displayed and analyzed.
+     * 
+ * + * int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customerChannel. + */ + @java.lang.Override + public int getCustomerChannel() { + return customerChannel_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1584,6 +2029,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agentId_); } + if (agentChannel_ != 0) { + output.writeInt32(2, agentChannel_); + } + if (customerChannel_ != 0) { + output.writeInt32(3, customerChannel_); + } getUnknownFields().writeTo(output); } @@ -1596,7 +2047,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agentId_); } - size += getUnknownFields().getSerializedSize(); + if (agentChannel_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, agentChannel_); + } + if (customerChannel_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, customerChannel_); + } + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1619,6 +2076,8 @@ public boolean equals(final java.lang.Object obj) { obj; if (!getAgentId().equals(other.getAgentId())) return false; + if (getAgentChannel() != other.getAgentChannel()) return false; + if (getCustomerChannel() != other.getCustomerChannel()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1632,6 +2091,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; hash = (53 * hash) + getAgentId().hashCode(); + hash = (37 * hash) + AGENT_CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getAgentChannel(); + hash = (37 * hash) + CUSTOMER_CHANNEL_FIELD_NUMBER; + hash = (53 * hash) + getCustomerChannel(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1799,6 +2262,8 @@ public Builder clear() { super.clear(); bitField0_ = 0; agentId_ = ""; + agentChannel_ = 0; + customerChannel_ = 0; return this; } @@ -1847,6 +2312,12 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.agentId_ = agentId_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentChannel_ = agentChannel_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.customerChannel_ = customerChannel_; + } } @java.lang.Override @@ -1911,6 +2382,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; onChanged(); } + if (other.getAgentChannel() != 0) { + setAgentChannel(other.getAgentChannel()); + } + if (other.getCustomerChannel() != 0) { + setCustomerChannel(other.getCustomerChannel()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1943,6 +2420,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 16: + { + agentChannel_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + customerChannel_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2073,6 +2562,124 @@ public Builder setAgentIdBytes(com.google.protobuf.ByteString value) { return this; } + private int agentChannel_; + /** + * + * + *
+       * Optional. For audio conversations, this field indicates which of the
+       * channels, 1 or 2, contains the agent. Note that this must be set for
+       * audio conversations to be properly displayed and analyzed.
+       * 
+ * + * int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentChannel. + */ + @java.lang.Override + public int getAgentChannel() { + return agentChannel_; + } + /** + * + * + *
+       * Optional. For audio conversations, this field indicates which of the
+       * channels, 1 or 2, contains the agent. Note that this must be set for
+       * audio conversations to be properly displayed and analyzed.
+       * 
+ * + * int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agentChannel to set. + * @return This builder for chaining. + */ + public Builder setAgentChannel(int value) { + + agentChannel_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. For audio conversations, this field indicates which of the
+       * channels, 1 or 2, contains the agent. Note that this must be set for
+       * audio conversations to be properly displayed and analyzed.
+       * 
+ * + * int32 agent_channel = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgentChannel() { + bitField0_ = (bitField0_ & ~0x00000002); + agentChannel_ = 0; + onChanged(); + return this; + } + + private int customerChannel_; + /** + * + * + *
+       * Optional. For audio conversations, this field indicates which of the
+       * channels, 1 or 2, contains the customer. Note that this must be set for
+       * audio conversations to be properly displayed and analyzed.
+       * 
+ * + * int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The customerChannel. + */ + @java.lang.Override + public int getCustomerChannel() { + return customerChannel_; + } + /** + * + * + *
+       * Optional. For audio conversations, this field indicates which of the
+       * channels, 1 or 2, contains the customer. Note that this must be set for
+       * audio conversations to be properly displayed and analyzed.
+       * 
+ * + * int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The customerChannel to set. + * @return This builder for chaining. + */ + public Builder setCustomerChannel(int value) { + + customerChannel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+       * Optional. For audio conversations, this field indicates which of the
+       * channels, 1 or 2, contains the customer. Note that this must be set for
+       * audio conversations to be properly displayed and analyzed.
+       * 
+ * + * int32 customer_channel = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearCustomerChannel() { + bitField0_ = (bitField0_ & ~0x00000004); + customerChannel_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -2485,6 +3092,126 @@ public boolean hasConversationConfig() { : conversationConfig_; } + public static final int REDACTION_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.contactcenterinsights.v1.RedactionConfig redactionConfig_; + /** + * + * + *
+   * Optional. DLP settings for transcript redaction. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the redactionConfig field is set. + */ + @java.lang.Override + public boolean hasRedactionConfig() { + return redactionConfig_ != null; + } + /** + * + * + *
+   * Optional. DLP settings for transcript redaction. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The redactionConfig. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.RedactionConfig getRedactionConfig() { + return redactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } + /** + * + * + *
+   * Optional. DLP settings for transcript redaction. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder + getRedactionConfigOrBuilder() { + return redactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } + + public static final int SPEECH_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.contactcenterinsights.v1.SpeechConfig speechConfig_; + /** + * + * + *
+   * Optional. Default Speech-to-Text configuration. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the speechConfig field is set. + */ + @java.lang.Override + public boolean hasSpeechConfig() { + return speechConfig_ != null; + } + /** + * + * + *
+   * Optional. Default Speech-to-Text configuration. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The speechConfig. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.SpeechConfig getSpeechConfig() { + return speechConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.SpeechConfig.getDefaultInstance() + : speechConfig_; + } + /** + * + * + *
+   * Optional. Default Speech-to-Text configuration. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.SpeechConfigOrBuilder + getSpeechConfigOrBuilder() { + return speechConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.SpeechConfig.getDefaultInstance() + : speechConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2517,6 +3244,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (conversationConfig_ != null) { output.writeMessage(4, getConversationConfig()); } + if (redactionConfig_ != null) { + output.writeMessage(5, getRedactionConfig()); + } + if (speechConfig_ != null) { + output.writeMessage(6, getSpeechConfig()); + } getUnknownFields().writeTo(output); } @@ -2547,6 +3280,12 @@ public int getSerializedSize() { if (conversationConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConversationConfig()); } + if (redactionConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getRedactionConfig()); + } + if (speechConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getSpeechConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2568,6 +3307,14 @@ public boolean equals(final java.lang.Object obj) { if (hasConversationConfig()) { if (!getConversationConfig().equals(other.getConversationConfig())) return false; } + if (hasRedactionConfig() != other.hasRedactionConfig()) return false; + if (hasRedactionConfig()) { + if (!getRedactionConfig().equals(other.getRedactionConfig())) return false; + } + if (hasSpeechConfig() != other.hasSpeechConfig()) return false; + if (hasSpeechConfig()) { + if (!getSpeechConfig().equals(other.getSpeechConfig())) return false; + } if (!getSourceCase().equals(other.getSourceCase())) return false; switch (sourceCase_) { case 2: @@ -2601,6 +3348,14 @@ public int hashCode() { hash = (37 * hash) + CONVERSATION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getConversationConfig().hashCode(); } + if (hasRedactionConfig()) { + hash = (37 * hash) + REDACTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRedactionConfig().hashCode(); + } + if (hasSpeechConfig()) { + hash = (37 * hash) + SPEECH_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSpeechConfig().hashCode(); + } switch (sourceCase_) { case 2: hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; @@ -2771,6 +3526,16 @@ public Builder clear() { conversationConfigBuilder_.dispose(); conversationConfigBuilder_ = null; } + redactionConfig_ = null; + if (redactionConfigBuilder_ != null) { + redactionConfigBuilder_.dispose(); + redactionConfigBuilder_ = null; + } + speechConfig_ = null; + if (speechConfigBuilder_ != null) { + speechConfigBuilder_.dispose(); + speechConfigBuilder_ = null; + } sourceCase_ = 0; source_ = null; objectConfigCase_ = 0; @@ -2824,6 +3589,14 @@ private void buildPartial0( ? conversationConfig_ : conversationConfigBuilder_.build(); } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.redactionConfig_ = + redactionConfigBuilder_ == null ? redactionConfig_ : redactionConfigBuilder_.build(); + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.speechConfig_ = + speechConfigBuilder_ == null ? speechConfig_ : speechConfigBuilder_.build(); + } } private void buildPartialOneofs( @@ -2897,6 +3670,12 @@ public Builder mergeFrom( if (other.hasConversationConfig()) { mergeConversationConfig(other.getConversationConfig()); } + if (other.hasRedactionConfig()) { + mergeRedactionConfig(other.getRedactionConfig()); + } + if (other.hasSpeechConfig()) { + mergeSpeechConfig(other.getSpeechConfig()); + } switch (other.getSourceCase()) { case GCS_SOURCE: { @@ -2971,6 +3750,18 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + input.readMessage(getRedactionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(getSpeechConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3880,6 +4671,435 @@ public Builder clearConversationConfig() { return conversationConfigBuilder_; } + private com.google.cloud.contactcenterinsights.v1.RedactionConfig redactionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.RedactionConfig, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder, + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder> + redactionConfigBuilder_; + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the redactionConfig field is set. + */ + public boolean hasRedactionConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The redactionConfig. + */ + public com.google.cloud.contactcenterinsights.v1.RedactionConfig getRedactionConfig() { + if (redactionConfigBuilder_ == null) { + return redactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } else { + return redactionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRedactionConfig( + com.google.cloud.contactcenterinsights.v1.RedactionConfig value) { + if (redactionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + redactionConfig_ = value; + } else { + redactionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRedactionConfig( + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder builderForValue) { + if (redactionConfigBuilder_ == null) { + redactionConfig_ = builderForValue.build(); + } else { + redactionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRedactionConfig( + com.google.cloud.contactcenterinsights.v1.RedactionConfig value) { + if (redactionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && redactionConfig_ != null + && redactionConfig_ + != com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance()) { + getRedactionConfigBuilder().mergeFrom(value); + } else { + redactionConfig_ = value; + } + } else { + redactionConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRedactionConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + redactionConfig_ = null; + if (redactionConfigBuilder_ != null) { + redactionConfigBuilder_.dispose(); + redactionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder + getRedactionConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getRedactionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder + getRedactionConfigOrBuilder() { + if (redactionConfigBuilder_ != null) { + return redactionConfigBuilder_.getMessageOrBuilder(); + } else { + return redactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.RedactionConfig, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder, + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder> + getRedactionConfigFieldBuilder() { + if (redactionConfigBuilder_ == null) { + redactionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.RedactionConfig, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder, + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder>( + getRedactionConfig(), getParentForChildren(), isClean()); + redactionConfig_ = null; + } + return redactionConfigBuilder_; + } + + private com.google.cloud.contactcenterinsights.v1.SpeechConfig speechConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.SpeechConfig, + com.google.cloud.contactcenterinsights.v1.SpeechConfig.Builder, + com.google.cloud.contactcenterinsights.v1.SpeechConfigOrBuilder> + speechConfigBuilder_; + /** + * + * + *
+     * Optional. Default Speech-to-Text configuration. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the speechConfig field is set. + */ + public boolean hasSpeechConfig() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * + * + *
+     * Optional. Default Speech-to-Text configuration. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The speechConfig. + */ + public com.google.cloud.contactcenterinsights.v1.SpeechConfig getSpeechConfig() { + if (speechConfigBuilder_ == null) { + return speechConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.SpeechConfig.getDefaultInstance() + : speechConfig_; + } else { + return speechConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. Default Speech-to-Text configuration. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpeechConfig(com.google.cloud.contactcenterinsights.v1.SpeechConfig value) { + if (speechConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + speechConfig_ = value; + } else { + speechConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Default Speech-to-Text configuration. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSpeechConfig( + com.google.cloud.contactcenterinsights.v1.SpeechConfig.Builder builderForValue) { + if (speechConfigBuilder_ == null) { + speechConfig_ = builderForValue.build(); + } else { + speechConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Default Speech-to-Text configuration. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSpeechConfig(com.google.cloud.contactcenterinsights.v1.SpeechConfig value) { + if (speechConfigBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && speechConfig_ != null + && speechConfig_ + != com.google.cloud.contactcenterinsights.v1.SpeechConfig.getDefaultInstance()) { + getSpeechConfigBuilder().mergeFrom(value); + } else { + speechConfig_ = value; + } + } else { + speechConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Default Speech-to-Text configuration. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSpeechConfig() { + bitField0_ = (bitField0_ & ~0x00000020); + speechConfig_ = null; + if (speechConfigBuilder_ != null) { + speechConfigBuilder_.dispose(); + speechConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Default Speech-to-Text configuration. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.contactcenterinsights.v1.SpeechConfig.Builder getSpeechConfigBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getSpeechConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. Default Speech-to-Text configuration. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.contactcenterinsights.v1.SpeechConfigOrBuilder + getSpeechConfigOrBuilder() { + if (speechConfigBuilder_ != null) { + return speechConfigBuilder_.getMessageOrBuilder(); + } else { + return speechConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.SpeechConfig.getDefaultInstance() + : speechConfig_; + } + } + /** + * + * + *
+     * Optional. Default Speech-to-Text configuration. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.SpeechConfig, + com.google.cloud.contactcenterinsights.v1.SpeechConfig.Builder, + com.google.cloud.contactcenterinsights.v1.SpeechConfigOrBuilder> + getSpeechConfigFieldBuilder() { + if (speechConfigBuilder_ == null) { + speechConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.SpeechConfig, + com.google.cloud.contactcenterinsights.v1.SpeechConfig.Builder, + com.google.cloud.contactcenterinsights.v1.SpeechConfigOrBuilder>( + getSpeechConfig(), getParentForChildren(), isClean()); + speechConfig_ = null; + } + return speechConfigBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequestOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequestOrBuilder.java index 850e143ab9e9..a9da270648a5 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequestOrBuilder.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequestOrBuilder.java @@ -184,6 +184,94 @@ public interface IngestConversationsRequestOrBuilder com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfigOrBuilder getConversationConfigOrBuilder(); + /** + * + * + *
+   * Optional. DLP settings for transcript redaction. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the redactionConfig field is set. + */ + boolean hasRedactionConfig(); + /** + * + * + *
+   * Optional. DLP settings for transcript redaction. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The redactionConfig. + */ + com.google.cloud.contactcenterinsights.v1.RedactionConfig getRedactionConfig(); + /** + * + * + *
+   * Optional. DLP settings for transcript redaction. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder getRedactionConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Default Speech-to-Text configuration. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the speechConfig field is set. + */ + boolean hasSpeechConfig(); + /** + * + * + *
+   * Optional. Default Speech-to-Text configuration. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The speechConfig. + */ + com.google.cloud.contactcenterinsights.v1.SpeechConfig getSpeechConfig(); + /** + * + * + *
+   * Optional. Default Speech-to-Text configuration. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.SpeechConfig speech_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.contactcenterinsights.v1.SpeechConfigOrBuilder getSpeechConfigOrBuilder(); + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.SourceCase getSourceCase(); com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ObjectConfigCase diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/contact_center_insights.proto b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/contact_center_insights.proto index f2075fa8f786..381e8a122bfd 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/contact_center_insights.proto +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/contact_center_insights.proto @@ -155,6 +155,20 @@ service ContactCenterInsights { }; } + // Deletes multiple conversations in a single request. + rpc BulkDeleteConversations(BulkDeleteConversationsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/conversations:bulkDelete" + body: "*" + }; + option (google.api.method_signature) = "parent,filter"; + option (google.longrunning.operation_info) = { + response_type: "BulkDeleteConversationsResponse" + metadata_type: "BulkDeleteConversationsMetadata" + }; + } + // Imports conversations and processes them according to the user's // configuration. rpc IngestConversations(IngestConversationsRequest) @@ -688,8 +702,23 @@ message DeleteConversationRequest { message IngestConversationsRequest { // Configuration for Cloud Storage bucket sources. message GcsSource { + enum BucketObjectType { + // The object type is unspecified and will default to TRANSCRIPT. + BUCKET_OBJECT_TYPE_UNSPECIFIED = 0; + + // The object is a transcript. + TRANSCRIPT = 1; + + // The object is an audio file. + AUDIO = 2; + } + // Required. The Cloud Storage bucket containing source objects. string bucket_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specifies the type of the objects in `bucket_uri`. + BucketObjectType bucket_object_type = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Configuration for processing transcript objects. @@ -703,6 +732,16 @@ message IngestConversationsRequest { // An opaque, user-specified string representing the human agent who handled // the conversations. string agent_id = 1; + + // Optional. For audio conversations, this field indicates which of the + // channels, 1 or 2, contains the agent. Note that this must be set for + // audio conversations to be properly displayed and analyzed. + int32 agent_channel = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. For audio conversations, this field indicates which of the + // channels, 1 or 2, contains the customer. Note that this must be set for + // audio conversations to be properly displayed and analyzed. + int32 customer_channel = 3 [(google.api.field_behavior) = OPTIONAL]; } // Configuration for an external data store containing objects that will @@ -729,6 +768,14 @@ message IngestConversationsRequest { // Configuration that applies to all conversations. ConversationConfig conversation_config = 4; + + // Optional. DLP settings for transcript redaction. Optional, will default to + // the config specified in Settings. + RedactionConfig redaction_config = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Default Speech-to-Text configuration. Optional, will default to + // the config specified in Settings. + SpeechConfig speech_config = 6 [(google.api.field_behavior) = OPTIONAL]; } // The metadata for an IngestConversations operation. @@ -893,6 +940,11 @@ message BulkAnalyzeConversationsMetadata { // Total number of analyses requested. Computed by the number of conversations // returned by `filter` multiplied by `analysis_percentage` in the request. int32 total_requested_analyses_count = 6; + + // Output only. Partial errors during bulk analyze operation that might cause + // the operation output to be incomplete. + repeated google.rpc.Status partial_errors = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // The response for a bulk analyze conversations operation. @@ -904,6 +956,50 @@ message BulkAnalyzeConversationsResponse { int32 failed_analysis_count = 2; } +// The request to delete conversations in bulk. +message BulkDeleteConversationsRequest { + // Required. The parent resource to create analyses in. + // Format: + // projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Filter used to select the subset of conversations to analyze. + string filter = 2; + + // Maximum number of conversations to delete. The default is 1000. It can be + // changed by setting the `max_delete_count` field. + int32 max_delete_count = 3; + + // If set to true, all of this conversation's analyses will also be deleted. + // Otherwise, the request will only succeed if the conversation has no + // analyses. + bool force = 4; +} + +// The metadata for a bulk delete conversations operation. +message BulkDeleteConversationsMetadata { + // The time the operation was created. + google.protobuf.Timestamp create_time = 1; + + // The time the operation finished running. + google.protobuf.Timestamp end_time = 2; + + // The original request for bulk delete. + BulkDeleteConversationsRequest request = 3; + + // Partial errors during bulk delete conversations operation that might cause + // the operation output to be incomplete. + repeated google.rpc.Status partial_errors = 4; +} + +// The response for a bulk analyze conversations operation. +message BulkDeleteConversationsResponse {} + // The request to export insights. message ExportInsightsDataRequest { // A BigQuery Table Reference. diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/resources.proto b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/resources.proto index 5c5535ce7b71..d5d9233e69df 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/resources.proto +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/proto/google/cloud/contactcenterinsights/v1/resources.proto @@ -1265,7 +1265,7 @@ message AnnotatorSelector { // Unspecified summarization model. SUMMARIZATION_MODEL_UNSPECIFIED = 0; - // The Insights baseline model. + // The CCAI baseline model. BASELINE_MODEL = 1; } diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/AsyncBulkDeleteConversations.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/AsyncBulkDeleteConversations.java new file mode 100644 index 000000000000..949576f6159c --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/AsyncBulkDeleteConversations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.contactcenterinsights.v1.samples; + +// [START contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncBulkDeleteConversations { + + public static void main(String[] args) throws Exception { + asyncBulkDeleteConversations(); + } + + public static void asyncBulkDeleteConversations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ContactCenterInsightsClient contactCenterInsightsClient = + ContactCenterInsightsClient.create()) { + BulkDeleteConversationsRequest request = + BulkDeleteConversationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setMaxDeleteCount(1611707510) + .setForce(true) + .build(); + ApiFuture future = + contactCenterInsightsClient.bulkDeleteConversationsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_async] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/AsyncBulkDeleteConversationsLRO.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/AsyncBulkDeleteConversationsLRO.java new file mode 100644 index 000000000000..55226d28b11b --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/AsyncBulkDeleteConversationsLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.contactcenterinsights.v1.samples; + +// [START contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsMetadata; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.LocationName; + +public class AsyncBulkDeleteConversationsLRO { + + public static void main(String[] args) throws Exception { + asyncBulkDeleteConversationsLRO(); + } + + public static void asyncBulkDeleteConversationsLRO() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ContactCenterInsightsClient contactCenterInsightsClient = + ContactCenterInsightsClient.create()) { + BulkDeleteConversationsRequest request = + BulkDeleteConversationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setMaxDeleteCount(1611707510) + .setForce(true) + .build(); + OperationFuture future = + contactCenterInsightsClient + .bulkDeleteConversationsOperationCallable() + .futureCall(request); + // Do something. + BulkDeleteConversationsResponse response = future.get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_LRO_async] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/SyncBulkDeleteConversations.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/SyncBulkDeleteConversations.java new file mode 100644 index 000000000000..9ebaf36b2267 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/SyncBulkDeleteConversations.java @@ -0,0 +1,51 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.contactcenterinsights.v1.samples; + +// [START contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_sync] +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.LocationName; + +public class SyncBulkDeleteConversations { + + public static void main(String[] args) throws Exception { + syncBulkDeleteConversations(); + } + + public static void syncBulkDeleteConversations() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ContactCenterInsightsClient contactCenterInsightsClient = + ContactCenterInsightsClient.create()) { + BulkDeleteConversationsRequest request = + BulkDeleteConversationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setMaxDeleteCount(1611707510) + .setForce(true) + .build(); + BulkDeleteConversationsResponse response = + contactCenterInsightsClient.bulkDeleteConversationsAsync(request).get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_sync] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/SyncBulkDeleteConversationsLocationnameString.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/SyncBulkDeleteConversationsLocationnameString.java new file mode 100644 index 000000000000..8191892f0d0f --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/SyncBulkDeleteConversationsLocationnameString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.contactcenterinsights.v1.samples; + +// [START contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_LocationnameString_sync] +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.LocationName; + +public class SyncBulkDeleteConversationsLocationnameString { + + public static void main(String[] args) throws Exception { + syncBulkDeleteConversationsLocationnameString(); + } + + public static void syncBulkDeleteConversationsLocationnameString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ContactCenterInsightsClient contactCenterInsightsClient = + ContactCenterInsightsClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + BulkDeleteConversationsResponse response = + contactCenterInsightsClient.bulkDeleteConversationsAsync(parent, filter).get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_LocationnameString_sync] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/SyncBulkDeleteConversationsStringString.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/SyncBulkDeleteConversationsStringString.java new file mode 100644 index 000000000000..0d2ac2e96653 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkdeleteconversations/SyncBulkDeleteConversationsStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2023 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.contactcenterinsights.v1.samples; + +// [START contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_StringString_sync] +import com.google.cloud.contactcenterinsights.v1.BulkDeleteConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.LocationName; + +public class SyncBulkDeleteConversationsStringString { + + public static void main(String[] args) throws Exception { + syncBulkDeleteConversationsStringString(); + } + + public static void syncBulkDeleteConversationsStringString() throws Exception { + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library + try (ContactCenterInsightsClient contactCenterInsightsClient = + ContactCenterInsightsClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String filter = "filter-1274492040"; + BulkDeleteConversationsResponse response = + contactCenterInsightsClient.bulkDeleteConversationsAsync(parent, filter).get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkDeleteConversations_StringString_sync] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/AsyncIngestConversations.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/AsyncIngestConversations.java index b36eeac90c23..39d14c6e72ca 100644 --- a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/AsyncIngestConversations.java +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/AsyncIngestConversations.java @@ -21,6 +21,8 @@ import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; import com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest; import com.google.cloud.contactcenterinsights.v1.LocationName; +import com.google.cloud.contactcenterinsights.v1.RedactionConfig; +import com.google.cloud.contactcenterinsights.v1.SpeechConfig; import com.google.longrunning.Operation; public class AsyncIngestConversations { @@ -42,6 +44,8 @@ public static void asyncIngestConversations() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setConversationConfig( IngestConversationsRequest.ConversationConfig.newBuilder().build()) + .setRedactionConfig(RedactionConfig.newBuilder().build()) + .setSpeechConfig(SpeechConfig.newBuilder().build()) .build(); ApiFuture future = contactCenterInsightsClient.ingestConversationsCallable().futureCall(request); diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/AsyncIngestConversationsLRO.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/AsyncIngestConversationsLRO.java index bb4db58b2d23..54862e759b45 100644 --- a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/AsyncIngestConversationsLRO.java +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/AsyncIngestConversationsLRO.java @@ -23,6 +23,8 @@ import com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest; import com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse; import com.google.cloud.contactcenterinsights.v1.LocationName; +import com.google.cloud.contactcenterinsights.v1.RedactionConfig; +import com.google.cloud.contactcenterinsights.v1.SpeechConfig; public class AsyncIngestConversationsLRO { @@ -43,6 +45,8 @@ public static void asyncIngestConversationsLRO() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setConversationConfig( IngestConversationsRequest.ConversationConfig.newBuilder().build()) + .setRedactionConfig(RedactionConfig.newBuilder().build()) + .setSpeechConfig(SpeechConfig.newBuilder().build()) .build(); OperationFuture future = contactCenterInsightsClient.ingestConversationsOperationCallable().futureCall(request); diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/SyncIngestConversations.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/SyncIngestConversations.java index 8ab2dd289524..6c53aab973c7 100644 --- a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/SyncIngestConversations.java +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/SyncIngestConversations.java @@ -21,6 +21,8 @@ import com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest; import com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse; import com.google.cloud.contactcenterinsights.v1.LocationName; +import com.google.cloud.contactcenterinsights.v1.RedactionConfig; +import com.google.cloud.contactcenterinsights.v1.SpeechConfig; public class SyncIngestConversations { @@ -41,6 +43,8 @@ public static void syncIngestConversations() throws Exception { .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) .setConversationConfig( IngestConversationsRequest.ConversationConfig.newBuilder().build()) + .setRedactionConfig(RedactionConfig.newBuilder().build()) + .setSpeechConfig(SpeechConfig.newBuilder().build()) .build(); IngestConversationsResponse response = contactCenterInsightsClient.ingestConversationsAsync(request).get();