diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 1c992fccfe6c..38a967b417de 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-contact-center-insights - 2.6.0 + 2.7.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.6.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.7.0" ``` ## Authentication 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 49630061e9c8..012a8ea68aa7 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 @@ -1435,6 +1435,352 @@ public final UnaryCallable deleteAnalysisCallable( return stub.deleteAnalysisCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Analyzes 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";
+   *   float analysisPercentage = 1609757661;
+   *   BulkAnalyzeConversationsResponse response =
+   *       contactCenterInsightsClient
+   *           .bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource to create analyses in. + * @param filter Required. Filter used to select the subset of conversations to analyze. + * @param analysisPercentage Required. Percentage of selected conversation to analyze, between [0, + * 100]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + bulkAnalyzeConversationsAsync(LocationName parent, String filter, float analysisPercentage) { + BulkAnalyzeConversationsRequest request = + BulkAnalyzeConversationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFilter(filter) + .setAnalysisPercentage(analysisPercentage) + .build(); + return bulkAnalyzeConversationsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Analyzes 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";
+   *   float analysisPercentage = 1609757661;
+   *   BulkAnalyzeConversationsResponse response =
+   *       contactCenterInsightsClient
+   *           .bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource to create analyses in. + * @param filter Required. Filter used to select the subset of conversations to analyze. + * @param analysisPercentage Required. Percentage of selected conversation to analyze, between [0, + * 100]. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + bulkAnalyzeConversationsAsync(String parent, String filter, float analysisPercentage) { + BulkAnalyzeConversationsRequest request = + BulkAnalyzeConversationsRequest.newBuilder() + .setParent(parent) + .setFilter(filter) + .setAnalysisPercentage(analysisPercentage) + .build(); + return bulkAnalyzeConversationsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Analyzes 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()) {
+   *   BulkAnalyzeConversationsRequest request =
+   *       BulkAnalyzeConversationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setAnalysisPercentage(1609757661)
+   *           .setAnnotatorSelector(AnnotatorSelector.newBuilder().build())
+   *           .build();
+   *   BulkAnalyzeConversationsResponse response =
+   *       contactCenterInsightsClient.bulkAnalyzeConversationsAsync(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 + bulkAnalyzeConversationsAsync(BulkAnalyzeConversationsRequest request) { + return bulkAnalyzeConversationsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Analyzes 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()) {
+   *   BulkAnalyzeConversationsRequest request =
+   *       BulkAnalyzeConversationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setAnalysisPercentage(1609757661)
+   *           .setAnnotatorSelector(AnnotatorSelector.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       contactCenterInsightsClient
+   *           .bulkAnalyzeConversationsOperationCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   BulkAnalyzeConversationsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + BulkAnalyzeConversationsRequest, + BulkAnalyzeConversationsResponse, + BulkAnalyzeConversationsMetadata> + bulkAnalyzeConversationsOperationCallable() { + return stub.bulkAnalyzeConversationsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Analyzes 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()) {
+   *   BulkAnalyzeConversationsRequest request =
+   *       BulkAnalyzeConversationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setFilter("filter-1274492040")
+   *           .setAnalysisPercentage(1609757661)
+   *           .setAnnotatorSelector(AnnotatorSelector.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       contactCenterInsightsClient.bulkAnalyzeConversationsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + bulkAnalyzeConversationsCallable() { + return stub.bulkAnalyzeConversationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports conversations and processes them according to the user's configuration. + * + *

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]");
+   *   IngestConversationsResponse response =
+   *       contactCenterInsightsClient.ingestConversationsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource for new conversations. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + ingestConversationsAsync(LocationName parent) { + IngestConversationsRequest request = + IngestConversationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return ingestConversationsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports conversations and processes them according to the user's configuration. + * + *

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();
+   *   IngestConversationsResponse response =
+   *       contactCenterInsightsClient.ingestConversationsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The parent resource for new conversations. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + ingestConversationsAsync(String parent) { + IngestConversationsRequest request = + IngestConversationsRequest.newBuilder().setParent(parent).build(); + return ingestConversationsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports conversations and processes them according to the user's configuration. + * + *

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()) {
+   *   IngestConversationsRequest request =
+   *       IngestConversationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConversationConfig(
+   *               IngestConversationsRequest.ConversationConfig.newBuilder().build())
+   *           .build();
+   *   IngestConversationsResponse response =
+   *       contactCenterInsightsClient.ingestConversationsAsync(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 + ingestConversationsAsync(IngestConversationsRequest request) { + return ingestConversationsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports conversations and processes them according to the user's configuration. + * + *

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()) {
+   *   IngestConversationsRequest request =
+   *       IngestConversationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConversationConfig(
+   *               IngestConversationsRequest.ConversationConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       contactCenterInsightsClient.ingestConversationsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   IngestConversationsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> + ingestConversationsOperationCallable() { + return stub.ingestConversationsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Imports conversations and processes them according to the user's configuration. + * + *

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()) {
+   *   IngestConversationsRequest request =
+   *       IngestConversationsRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConversationConfig(
+   *               IngestConversationsRequest.ConversationConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       contactCenterInsightsClient.ingestConversationsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable ingestConversationsCallable() { + return stub.ingestConversationsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Export insights data to a destination defined in the request body. @@ -2850,6 +3196,121 @@ public final UnaryCallable updateIssueCallable() { return stub.updateIssueCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an issue. + * + *

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()) {
+   *   IssueName name = IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]");
+   *   contactCenterInsightsClient.deleteIssue(name);
+   * }
+   * }
+ * + * @param name Required. The name of the issue to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteIssue(IssueName name) { + DeleteIssueRequest request = + DeleteIssueRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + deleteIssue(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an issue. + * + *

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 name = IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString();
+   *   contactCenterInsightsClient.deleteIssue(name);
+   * }
+   * }
+ * + * @param name Required. The name of the issue to delete. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteIssue(String name) { + DeleteIssueRequest request = DeleteIssueRequest.newBuilder().setName(name).build(); + deleteIssue(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an issue. + * + *

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()) {
+   *   DeleteIssueRequest request =
+   *       DeleteIssueRequest.newBuilder()
+   *           .setName(
+   *               IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString())
+   *           .build();
+   *   contactCenterInsightsClient.deleteIssue(request);
+   * }
+   * }
+ * + * @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 void deleteIssue(DeleteIssueRequest request) { + deleteIssueCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an issue. + * + *

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()) {
+   *   DeleteIssueRequest request =
+   *       DeleteIssueRequest.newBuilder()
+   *           .setName(
+   *               IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       contactCenterInsightsClient.deleteIssueCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteIssueCallable() { + return stub.deleteIssueCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets an issue model's statistics. 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 61d61a9a1ae0..81a683925bc7 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 @@ -138,6 +138,36 @@ public UnaryCallSettings deleteAnalysisSettings() return ((ContactCenterInsightsStubSettings) getStubSettings()).deleteAnalysisSettings(); } + /** Returns the object with the settings used for calls to bulkAnalyzeConversations. */ + public UnaryCallSettings + bulkAnalyzeConversationsSettings() { + return ((ContactCenterInsightsStubSettings) getStubSettings()) + .bulkAnalyzeConversationsSettings(); + } + + /** Returns the object with the settings used for calls to bulkAnalyzeConversations. */ + public OperationCallSettings< + BulkAnalyzeConversationsRequest, + BulkAnalyzeConversationsResponse, + BulkAnalyzeConversationsMetadata> + bulkAnalyzeConversationsOperationSettings() { + return ((ContactCenterInsightsStubSettings) getStubSettings()) + .bulkAnalyzeConversationsOperationSettings(); + } + + /** Returns the object with the settings used for calls to ingestConversations. */ + public UnaryCallSettings ingestConversationsSettings() { + return ((ContactCenterInsightsStubSettings) getStubSettings()).ingestConversationsSettings(); + } + + /** Returns the object with the settings used for calls to ingestConversations. */ + public OperationCallSettings< + IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> + ingestConversationsOperationSettings() { + return ((ContactCenterInsightsStubSettings) getStubSettings()) + .ingestConversationsOperationSettings(); + } + /** Returns the object with the settings used for calls to exportInsightsData. */ public UnaryCallSettings exportInsightsDataSettings() { return ((ContactCenterInsightsStubSettings) getStubSettings()).exportInsightsDataSettings(); @@ -232,6 +262,11 @@ public UnaryCallSettings updateIssueSettings() { return ((ContactCenterInsightsStubSettings) getStubSettings()).updateIssueSettings(); } + /** Returns the object with the settings used for calls to deleteIssue. */ + public UnaryCallSettings deleteIssueSettings() { + return ((ContactCenterInsightsStubSettings) getStubSettings()).deleteIssueSettings(); + } + /** Returns the object with the settings used for calls to calculateIssueModelStats. */ public UnaryCallSettings calculateIssueModelStatsSettings() { @@ -485,6 +520,34 @@ public UnaryCallSettings.Builder deleteAnalysisSet return getStubSettingsBuilder().deleteAnalysisSettings(); } + /** Returns the builder for the settings used for calls to bulkAnalyzeConversations. */ + public UnaryCallSettings.Builder + bulkAnalyzeConversationsSettings() { + return getStubSettingsBuilder().bulkAnalyzeConversationsSettings(); + } + + /** Returns the builder for the settings used for calls to bulkAnalyzeConversations. */ + public OperationCallSettings.Builder< + BulkAnalyzeConversationsRequest, + BulkAnalyzeConversationsResponse, + BulkAnalyzeConversationsMetadata> + bulkAnalyzeConversationsOperationSettings() { + return getStubSettingsBuilder().bulkAnalyzeConversationsOperationSettings(); + } + + /** Returns the builder for the settings used for calls to ingestConversations. */ + public UnaryCallSettings.Builder + ingestConversationsSettings() { + return getStubSettingsBuilder().ingestConversationsSettings(); + } + + /** Returns the builder for the settings used for calls to ingestConversations. */ + public OperationCallSettings.Builder< + IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> + ingestConversationsOperationSettings() { + return getStubSettingsBuilder().ingestConversationsOperationSettings(); + } + /** Returns the builder for the settings used for calls to exportInsightsData. */ public UnaryCallSettings.Builder exportInsightsDataSettings() { @@ -581,6 +644,11 @@ public UnaryCallSettings.Builder updateIssueSettings( return getStubSettingsBuilder().updateIssueSettings(); } + /** Returns the builder for the settings used for calls to deleteIssue. */ + public UnaryCallSettings.Builder deleteIssueSettings() { + return getStubSettingsBuilder().deleteIssueSettings(); + } + /** Returns the builder for the settings used for calls to calculateIssueModelStats. */ public UnaryCallSettings.Builder< CalculateIssueModelStatsRequest, CalculateIssueModelStatsResponse> 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 a10611b59f27..30e623b49890 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 @@ -10,6 +10,9 @@ "grpc": { "libraryClient": "ContactCenterInsightsClient", "rpcs": { + "BulkAnalyzeConversations": { + "methods": ["bulkAnalyzeConversationsAsync", "bulkAnalyzeConversationsAsync", "bulkAnalyzeConversationsAsync", "bulkAnalyzeConversationsOperationCallable", "bulkAnalyzeConversationsCallable"] + }, "CalculateIssueModelStats": { "methods": ["calculateIssueModelStats", "calculateIssueModelStats", "calculateIssueModelStats", "calculateIssueModelStatsCallable"] }, @@ -37,6 +40,9 @@ "DeleteConversation": { "methods": ["deleteConversation", "deleteConversation", "deleteConversation", "deleteConversationCallable"] }, + "DeleteIssue": { + "methods": ["deleteIssue", "deleteIssue", "deleteIssue", "deleteIssueCallable"] + }, "DeleteIssueModel": { "methods": ["deleteIssueModelAsync", "deleteIssueModelAsync", "deleteIssueModelAsync", "deleteIssueModelOperationCallable", "deleteIssueModelCallable"] }, @@ -73,6 +79,9 @@ "GetView": { "methods": ["getView", "getView", "getView", "getViewCallable"] }, + "IngestConversations": { + "methods": ["ingestConversationsAsync", "ingestConversationsAsync", "ingestConversationsAsync", "ingestConversationsOperationCallable", "ingestConversationsCallable"] + }, "ListAnalyses": { "methods": ["listAnalyses", "listAnalyses", "listAnalyses", "listAnalysesPagedCallable", "listAnalysesCallable"] }, 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 f9ae7f57f1b4..724110ec2362 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 @@ -25,6 +25,9 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.contactcenterinsights.v1.Analysis; +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.CalculateIssueModelStatsRequest; import com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse; import com.google.cloud.contactcenterinsights.v1.CalculateStatsRequest; @@ -41,6 +44,7 @@ import com.google.cloud.contactcenterinsights.v1.DeleteConversationRequest; import com.google.cloud.contactcenterinsights.v1.DeleteIssueModelMetadata; import com.google.cloud.contactcenterinsights.v1.DeleteIssueModelRequest; +import com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest; import com.google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest; import com.google.cloud.contactcenterinsights.v1.DeleteViewRequest; import com.google.cloud.contactcenterinsights.v1.DeployIssueModelMetadata; @@ -56,6 +60,9 @@ import com.google.cloud.contactcenterinsights.v1.GetPhraseMatcherRequest; import com.google.cloud.contactcenterinsights.v1.GetSettingsRequest; import com.google.cloud.contactcenterinsights.v1.GetViewRequest; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse; import com.google.cloud.contactcenterinsights.v1.Issue; import com.google.cloud.contactcenterinsights.v1.IssueModel; import com.google.cloud.contactcenterinsights.v1.ListAnalysesRequest; @@ -155,6 +162,31 @@ public UnaryCallable deleteAnalysisCallable() { throw new UnsupportedOperationException("Not implemented: deleteAnalysisCallable()"); } + public OperationCallable< + BulkAnalyzeConversationsRequest, + BulkAnalyzeConversationsResponse, + BulkAnalyzeConversationsMetadata> + bulkAnalyzeConversationsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: bulkAnalyzeConversationsOperationCallable()"); + } + + public UnaryCallable + bulkAnalyzeConversationsCallable() { + throw new UnsupportedOperationException("Not implemented: bulkAnalyzeConversationsCallable()"); + } + + public OperationCallable< + IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> + ingestConversationsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: ingestConversationsOperationCallable()"); + } + + public UnaryCallable ingestConversationsCallable() { + throw new UnsupportedOperationException("Not implemented: ingestConversationsCallable()"); + } + public OperationCallable< ExportInsightsDataRequest, ExportInsightsDataResponse, ExportInsightsDataMetadata> exportInsightsDataOperationCallable() { @@ -229,6 +261,10 @@ public UnaryCallable updateIssueCallable() { throw new UnsupportedOperationException("Not implemented: updateIssueCallable()"); } + public UnaryCallable deleteIssueCallable() { + throw new UnsupportedOperationException("Not implemented: deleteIssueCallable()"); + } + public UnaryCallable calculateIssueModelStatsCallable() { throw new UnsupportedOperationException("Not implemented: calculateIssueModelStatsCallable()"); 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 1ce687d6e1e0..f513d69ff7ed 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 @@ -51,6 +51,9 @@ import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.contactcenterinsights.v1.Analysis; +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.CalculateIssueModelStatsRequest; import com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse; import com.google.cloud.contactcenterinsights.v1.CalculateStatsRequest; @@ -67,6 +70,7 @@ import com.google.cloud.contactcenterinsights.v1.DeleteConversationRequest; import com.google.cloud.contactcenterinsights.v1.DeleteIssueModelMetadata; import com.google.cloud.contactcenterinsights.v1.DeleteIssueModelRequest; +import com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest; import com.google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest; import com.google.cloud.contactcenterinsights.v1.DeleteViewRequest; import com.google.cloud.contactcenterinsights.v1.DeployIssueModelMetadata; @@ -82,6 +86,9 @@ import com.google.cloud.contactcenterinsights.v1.GetPhraseMatcherRequest; import com.google.cloud.contactcenterinsights.v1.GetSettingsRequest; import com.google.cloud.contactcenterinsights.v1.GetViewRequest; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse; import com.google.cloud.contactcenterinsights.v1.Issue; import com.google.cloud.contactcenterinsights.v1.IssueModel; import com.google.cloud.contactcenterinsights.v1.ListAnalysesRequest; @@ -183,6 +190,18 @@ public class ContactCenterInsightsStubSettings ListAnalysesRequest, ListAnalysesResponse, ListAnalysesPagedResponse> listAnalysesSettings; private final UnaryCallSettings deleteAnalysisSettings; + private final UnaryCallSettings + bulkAnalyzeConversationsSettings; + private final OperationCallSettings< + BulkAnalyzeConversationsRequest, + BulkAnalyzeConversationsResponse, + BulkAnalyzeConversationsMetadata> + bulkAnalyzeConversationsOperationSettings; + private final UnaryCallSettings + ingestConversationsSettings; + private final OperationCallSettings< + IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> + ingestConversationsOperationSettings; private final UnaryCallSettings exportInsightsDataSettings; private final OperationCallSettings< ExportInsightsDataRequest, ExportInsightsDataResponse, ExportInsightsDataMetadata> @@ -208,6 +227,7 @@ public class ContactCenterInsightsStubSettings private final UnaryCallSettings getIssueSettings; private final UnaryCallSettings listIssuesSettings; private final UnaryCallSettings updateIssueSettings; + private final UnaryCallSettings deleteIssueSettings; private final UnaryCallSettings calculateIssueModelStatsSettings; private final UnaryCallSettings @@ -512,6 +532,33 @@ public UnaryCallSettings deleteAnalysisSettings() return deleteAnalysisSettings; } + /** Returns the object with the settings used for calls to bulkAnalyzeConversations. */ + public UnaryCallSettings + bulkAnalyzeConversationsSettings() { + return bulkAnalyzeConversationsSettings; + } + + /** Returns the object with the settings used for calls to bulkAnalyzeConversations. */ + public OperationCallSettings< + BulkAnalyzeConversationsRequest, + BulkAnalyzeConversationsResponse, + BulkAnalyzeConversationsMetadata> + bulkAnalyzeConversationsOperationSettings() { + return bulkAnalyzeConversationsOperationSettings; + } + + /** Returns the object with the settings used for calls to ingestConversations. */ + public UnaryCallSettings ingestConversationsSettings() { + return ingestConversationsSettings; + } + + /** Returns the object with the settings used for calls to ingestConversations. */ + public OperationCallSettings< + IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> + ingestConversationsOperationSettings() { + return ingestConversationsOperationSettings; + } + /** Returns the object with the settings used for calls to exportInsightsData. */ public UnaryCallSettings exportInsightsDataSettings() { return exportInsightsDataSettings; @@ -601,6 +648,11 @@ public UnaryCallSettings updateIssueSettings() { return updateIssueSettings; } + /** Returns the object with the settings used for calls to deleteIssue. */ + public UnaryCallSettings deleteIssueSettings() { + return deleteIssueSettings; + } + /** Returns the object with the settings used for calls to calculateIssueModelStats. */ public UnaryCallSettings calculateIssueModelStatsSettings() { @@ -793,6 +845,12 @@ protected ContactCenterInsightsStubSettings(Builder settingsBuilder) throws IOEx getAnalysisSettings = settingsBuilder.getAnalysisSettings().build(); listAnalysesSettings = settingsBuilder.listAnalysesSettings().build(); deleteAnalysisSettings = settingsBuilder.deleteAnalysisSettings().build(); + bulkAnalyzeConversationsSettings = settingsBuilder.bulkAnalyzeConversationsSettings().build(); + bulkAnalyzeConversationsOperationSettings = + settingsBuilder.bulkAnalyzeConversationsOperationSettings().build(); + ingestConversationsSettings = settingsBuilder.ingestConversationsSettings().build(); + ingestConversationsOperationSettings = + settingsBuilder.ingestConversationsOperationSettings().build(); exportInsightsDataSettings = settingsBuilder.exportInsightsDataSettings().build(); exportInsightsDataOperationSettings = settingsBuilder.exportInsightsDataOperationSettings().build(); @@ -811,6 +869,7 @@ protected ContactCenterInsightsStubSettings(Builder settingsBuilder) throws IOEx getIssueSettings = settingsBuilder.getIssueSettings().build(); listIssuesSettings = settingsBuilder.listIssuesSettings().build(); updateIssueSettings = settingsBuilder.updateIssueSettings().build(); + deleteIssueSettings = settingsBuilder.deleteIssueSettings().build(); calculateIssueModelStatsSettings = settingsBuilder.calculateIssueModelStatsSettings().build(); createPhraseMatcherSettings = settingsBuilder.createPhraseMatcherSettings().build(); getPhraseMatcherSettings = settingsBuilder.getPhraseMatcherSettings().build(); @@ -852,6 +911,18 @@ public static class Builder ListAnalysesRequest, ListAnalysesResponse, ListAnalysesPagedResponse> listAnalysesSettings; private final UnaryCallSettings.Builder deleteAnalysisSettings; + private final UnaryCallSettings.Builder + bulkAnalyzeConversationsSettings; + private final OperationCallSettings.Builder< + BulkAnalyzeConversationsRequest, + BulkAnalyzeConversationsResponse, + BulkAnalyzeConversationsMetadata> + bulkAnalyzeConversationsOperationSettings; + private final UnaryCallSettings.Builder + ingestConversationsSettings; + private final OperationCallSettings.Builder< + IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> + ingestConversationsOperationSettings; private final UnaryCallSettings.Builder exportInsightsDataSettings; private final OperationCallSettings.Builder< @@ -886,6 +957,7 @@ public static class Builder private final UnaryCallSettings.Builder listIssuesSettings; private final UnaryCallSettings.Builder updateIssueSettings; + private final UnaryCallSettings.Builder deleteIssueSettings; private final UnaryCallSettings.Builder< CalculateIssueModelStatsRequest, CalculateIssueModelStatsResponse> calculateIssueModelStatsSettings; @@ -959,6 +1031,10 @@ protected Builder(ClientContext clientContext) { getAnalysisSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listAnalysesSettings = PagedCallSettings.newBuilder(LIST_ANALYSES_PAGE_STR_FACT); deleteAnalysisSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + bulkAnalyzeConversationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + bulkAnalyzeConversationsOperationSettings = OperationCallSettings.newBuilder(); + ingestConversationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + ingestConversationsOperationSettings = OperationCallSettings.newBuilder(); exportInsightsDataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); exportInsightsDataOperationSettings = OperationCallSettings.newBuilder(); createIssueModelSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -975,6 +1051,7 @@ protected Builder(ClientContext clientContext) { getIssueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listIssuesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateIssueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteIssueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); calculateIssueModelStatsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createPhraseMatcherSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getPhraseMatcherSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1001,6 +1078,8 @@ protected Builder(ClientContext clientContext) { getAnalysisSettings, listAnalysesSettings, deleteAnalysisSettings, + bulkAnalyzeConversationsSettings, + ingestConversationsSettings, exportInsightsDataSettings, createIssueModelSettings, updateIssueModelSettings, @@ -1012,6 +1091,7 @@ protected Builder(ClientContext clientContext) { getIssueSettings, listIssuesSettings, updateIssueSettings, + deleteIssueSettings, calculateIssueModelStatsSettings, createPhraseMatcherSettings, getPhraseMatcherSettings, @@ -1042,6 +1122,12 @@ protected Builder(ContactCenterInsightsStubSettings settings) { getAnalysisSettings = settings.getAnalysisSettings.toBuilder(); listAnalysesSettings = settings.listAnalysesSettings.toBuilder(); deleteAnalysisSettings = settings.deleteAnalysisSettings.toBuilder(); + bulkAnalyzeConversationsSettings = settings.bulkAnalyzeConversationsSettings.toBuilder(); + bulkAnalyzeConversationsOperationSettings = + settings.bulkAnalyzeConversationsOperationSettings.toBuilder(); + ingestConversationsSettings = settings.ingestConversationsSettings.toBuilder(); + ingestConversationsOperationSettings = + settings.ingestConversationsOperationSettings.toBuilder(); exportInsightsDataSettings = settings.exportInsightsDataSettings.toBuilder(); exportInsightsDataOperationSettings = settings.exportInsightsDataOperationSettings.toBuilder(); @@ -1060,6 +1146,7 @@ protected Builder(ContactCenterInsightsStubSettings settings) { getIssueSettings = settings.getIssueSettings.toBuilder(); listIssuesSettings = settings.listIssuesSettings.toBuilder(); updateIssueSettings = settings.updateIssueSettings.toBuilder(); + deleteIssueSettings = settings.deleteIssueSettings.toBuilder(); calculateIssueModelStatsSettings = settings.calculateIssueModelStatsSettings.toBuilder(); createPhraseMatcherSettings = settings.createPhraseMatcherSettings.toBuilder(); getPhraseMatcherSettings = settings.getPhraseMatcherSettings.toBuilder(); @@ -1086,6 +1173,8 @@ protected Builder(ContactCenterInsightsStubSettings settings) { getAnalysisSettings, listAnalysesSettings, deleteAnalysisSettings, + bulkAnalyzeConversationsSettings, + ingestConversationsSettings, exportInsightsDataSettings, createIssueModelSettings, updateIssueModelSettings, @@ -1097,6 +1186,7 @@ protected Builder(ContactCenterInsightsStubSettings settings) { getIssueSettings, listIssuesSettings, updateIssueSettings, + deleteIssueSettings, calculateIssueModelStatsSettings, createPhraseMatcherSettings, getPhraseMatcherSettings, @@ -1185,6 +1275,16 @@ 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 + .bulkAnalyzeConversationsSettings() + .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")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .exportInsightsDataSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1240,6 +1340,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 + .deleteIssueSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .calculateIssueModelStatsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1335,6 +1440,58 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(300000L)) .build())); + builder + .bulkAnalyzeConversationsOperationSettings() + .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( + BulkAnalyzeConversationsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + BulkAnalyzeConversationsMetadata.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( + 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( + IngestConversationsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + IngestConversationsMetadata.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 .exportInsightsDataOperationSettings() .setInitialCallSettings( @@ -1539,6 +1696,38 @@ public UnaryCallSettings.Builder deleteAnalysisSet return deleteAnalysisSettings; } + /** Returns the builder for the settings used for calls to bulkAnalyzeConversations. */ + public UnaryCallSettings.Builder + bulkAnalyzeConversationsSettings() { + return bulkAnalyzeConversationsSettings; + } + + /** Returns the builder for the settings used for calls to bulkAnalyzeConversations. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + BulkAnalyzeConversationsRequest, + BulkAnalyzeConversationsResponse, + BulkAnalyzeConversationsMetadata> + bulkAnalyzeConversationsOperationSettings() { + return bulkAnalyzeConversationsOperationSettings; + } + + /** Returns the builder for the settings used for calls to ingestConversations. */ + public UnaryCallSettings.Builder + ingestConversationsSettings() { + return ingestConversationsSettings; + } + + /** Returns the builder for the settings used for calls to ingestConversations. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> + ingestConversationsOperationSettings() { + return ingestConversationsOperationSettings; + } + /** Returns the builder for the settings used for calls to exportInsightsData. */ public UnaryCallSettings.Builder exportInsightsDataSettings() { @@ -1645,6 +1834,11 @@ public UnaryCallSettings.Builder updateIssueSettings( return updateIssueSettings; } + /** Returns the builder for the settings used for calls to deleteIssue. */ + public UnaryCallSettings.Builder deleteIssueSettings() { + return deleteIssueSettings; + } + /** Returns the builder for the settings used for calls to calculateIssueModelStats. */ public UnaryCallSettings.Builder< CalculateIssueModelStatsRequest, CalculateIssueModelStatsResponse> 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 eeae3d612368..1717f7bcf056 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 @@ -29,6 +29,9 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.contactcenterinsights.v1.Analysis; +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.CalculateIssueModelStatsRequest; import com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse; import com.google.cloud.contactcenterinsights.v1.CalculateStatsRequest; @@ -45,6 +48,7 @@ import com.google.cloud.contactcenterinsights.v1.DeleteConversationRequest; import com.google.cloud.contactcenterinsights.v1.DeleteIssueModelMetadata; import com.google.cloud.contactcenterinsights.v1.DeleteIssueModelRequest; +import com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest; import com.google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest; import com.google.cloud.contactcenterinsights.v1.DeleteViewRequest; import com.google.cloud.contactcenterinsights.v1.DeployIssueModelMetadata; @@ -60,6 +64,9 @@ import com.google.cloud.contactcenterinsights.v1.GetPhraseMatcherRequest; import com.google.cloud.contactcenterinsights.v1.GetSettingsRequest; import com.google.cloud.contactcenterinsights.v1.GetViewRequest; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse; import com.google.cloud.contactcenterinsights.v1.Issue; import com.google.cloud.contactcenterinsights.v1.IssueModel; import com.google.cloud.contactcenterinsights.v1.ListAnalysesRequest; @@ -202,6 +209,28 @@ public class GrpcContactCenterInsightsStub extends ContactCenterInsightsStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + bulkAnalyzeConversationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.contactcenterinsights.v1.ContactCenterInsights/BulkAnalyzeConversations") + .setRequestMarshaller( + ProtoUtils.marshaller(BulkAnalyzeConversationsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + ingestConversationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.contactcenterinsights.v1.ContactCenterInsights/IngestConversations") + .setRequestMarshaller( + ProtoUtils.marshaller(IngestConversationsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor exportInsightsDataMethodDescriptor = MethodDescriptor.newBuilder() @@ -318,6 +347,15 @@ public class GrpcContactCenterInsightsStub extends ContactCenterInsightsStub { .setResponseMarshaller(ProtoUtils.marshaller(Issue.getDefaultInstance())) .build(); + private static final MethodDescriptor deleteIssueMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.contactcenterinsights.v1.ContactCenterInsights/DeleteIssue") + .setRequestMarshaller(ProtoUtils.marshaller(DeleteIssueRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + private static final MethodDescriptor< CalculateIssueModelStatsRequest, CalculateIssueModelStatsResponse> calculateIssueModelStatsMethodDescriptor = @@ -481,6 +519,17 @@ public class GrpcContactCenterInsightsStub extends ContactCenterInsightsStub { private final UnaryCallable listAnalysesPagedCallable; private final UnaryCallable deleteAnalysisCallable; + private final UnaryCallable + bulkAnalyzeConversationsCallable; + private final OperationCallable< + BulkAnalyzeConversationsRequest, + BulkAnalyzeConversationsResponse, + BulkAnalyzeConversationsMetadata> + bulkAnalyzeConversationsOperationCallable; + private final UnaryCallable ingestConversationsCallable; + private final OperationCallable< + IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> + ingestConversationsOperationCallable; private final UnaryCallable exportInsightsDataCallable; private final OperationCallable< ExportInsightsDataRequest, ExportInsightsDataResponse, ExportInsightsDataMetadata> @@ -506,6 +555,7 @@ public class GrpcContactCenterInsightsStub extends ContactCenterInsightsStub { private final UnaryCallable getIssueCallable; private final UnaryCallable listIssuesCallable; private final UnaryCallable updateIssueCallable; + private final UnaryCallable deleteIssueCallable; private final UnaryCallable calculateIssueModelStatsCallable; private final UnaryCallable @@ -664,6 +714,27 @@ protected GrpcContactCenterInsightsStub( return params.build(); }) .build(); + GrpcCallSettings + bulkAnalyzeConversationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(bulkAnalyzeConversationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings ingestConversationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(ingestConversationsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); GrpcCallSettings exportInsightsDataTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(exportInsightsDataMethodDescriptor) @@ -775,6 +846,16 @@ protected GrpcContactCenterInsightsStub( return params.build(); }) .build(); + GrpcCallSettings deleteIssueTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteIssueMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings calculateIssueModelStatsTransportSettings = GrpcCallSettings @@ -973,6 +1054,28 @@ protected GrpcContactCenterInsightsStub( this.deleteAnalysisCallable = callableFactory.createUnaryCallable( deleteAnalysisTransportSettings, settings.deleteAnalysisSettings(), clientContext); + this.bulkAnalyzeConversationsCallable = + callableFactory.createUnaryCallable( + bulkAnalyzeConversationsTransportSettings, + settings.bulkAnalyzeConversationsSettings(), + clientContext); + this.bulkAnalyzeConversationsOperationCallable = + callableFactory.createOperationCallable( + bulkAnalyzeConversationsTransportSettings, + settings.bulkAnalyzeConversationsOperationSettings(), + clientContext, + operationsStub); + this.ingestConversationsCallable = + callableFactory.createUnaryCallable( + ingestConversationsTransportSettings, + settings.ingestConversationsSettings(), + clientContext); + this.ingestConversationsOperationCallable = + callableFactory.createOperationCallable( + ingestConversationsTransportSettings, + settings.ingestConversationsOperationSettings(), + clientContext, + operationsStub); this.exportInsightsDataCallable = callableFactory.createUnaryCallable( exportInsightsDataTransportSettings, @@ -1040,6 +1143,9 @@ protected GrpcContactCenterInsightsStub( this.updateIssueCallable = callableFactory.createUnaryCallable( updateIssueTransportSettings, settings.updateIssueSettings(), clientContext); + this.deleteIssueCallable = + callableFactory.createUnaryCallable( + deleteIssueTransportSettings, settings.deleteIssueSettings(), clientContext); this.calculateIssueModelStatsCallable = callableFactory.createUnaryCallable( calculateIssueModelStatsTransportSettings, @@ -1172,6 +1278,33 @@ public UnaryCallable deleteAnalysisCallable() { return deleteAnalysisCallable; } + @Override + public UnaryCallable + bulkAnalyzeConversationsCallable() { + return bulkAnalyzeConversationsCallable; + } + + @Override + public OperationCallable< + BulkAnalyzeConversationsRequest, + BulkAnalyzeConversationsResponse, + BulkAnalyzeConversationsMetadata> + bulkAnalyzeConversationsOperationCallable() { + return bulkAnalyzeConversationsOperationCallable; + } + + @Override + public UnaryCallable ingestConversationsCallable() { + return ingestConversationsCallable; + } + + @Override + public OperationCallable< + IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> + ingestConversationsOperationCallable() { + return ingestConversationsOperationCallable; + } + @Override public UnaryCallable exportInsightsDataCallable() { return exportInsightsDataCallable; @@ -1260,6 +1393,11 @@ public UnaryCallable updateIssueCallable() { return updateIssueCallable; } + @Override + public UnaryCallable deleteIssueCallable() { + return deleteIssueCallable; + } + @Override public UnaryCallable calculateIssueModelStatsCallable() { 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 a74924deff5d..aed97cc5b74e 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 @@ -37,6 +37,9 @@ import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.contactcenterinsights.v1.Analysis; +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.CalculateIssueModelStatsRequest; import com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse; import com.google.cloud.contactcenterinsights.v1.CalculateStatsRequest; @@ -53,6 +56,7 @@ import com.google.cloud.contactcenterinsights.v1.DeleteConversationRequest; import com.google.cloud.contactcenterinsights.v1.DeleteIssueModelMetadata; import com.google.cloud.contactcenterinsights.v1.DeleteIssueModelRequest; +import com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest; import com.google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest; import com.google.cloud.contactcenterinsights.v1.DeleteViewRequest; import com.google.cloud.contactcenterinsights.v1.DeployIssueModelMetadata; @@ -68,6 +72,9 @@ import com.google.cloud.contactcenterinsights.v1.GetPhraseMatcherRequest; import com.google.cloud.contactcenterinsights.v1.GetSettingsRequest; import com.google.cloud.contactcenterinsights.v1.GetViewRequest; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse; import com.google.cloud.contactcenterinsights.v1.Issue; import com.google.cloud.contactcenterinsights.v1.IssueModel; import com.google.cloud.contactcenterinsights.v1.ListAnalysesRequest; @@ -116,18 +123,22 @@ public class HttpJsonContactCenterInsightsStub extends ContactCenterInsightsStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() - .add(DeleteIssueModelMetadata.getDescriptor()) .add(DeployIssueModelMetadata.getDescriptor()) - .add(CreateAnalysisOperationMetadata.getDescriptor()) - .add(Empty.getDescriptor()) .add(Analysis.getDescriptor()) - .add(ExportInsightsDataResponse.getDescriptor()) - .add(UndeployIssueModelResponse.getDescriptor()) + .add(IngestConversationsResponse.getDescriptor()) .add(CreateIssueModelMetadata.getDescriptor()) - .add(UndeployIssueModelMetadata.getDescriptor()) .add(ExportInsightsDataMetadata.getDescriptor()) .add(IssueModel.getDescriptor()) + .add(IngestConversationsMetadata.getDescriptor()) .add(DeployIssueModelResponse.getDescriptor()) + .add(DeleteIssueModelMetadata.getDescriptor()) + .add(CreateAnalysisOperationMetadata.getDescriptor()) + .add(Empty.getDescriptor()) + .add(BulkAnalyzeConversationsMetadata.getDescriptor()) + .add(ExportInsightsDataResponse.getDescriptor()) + .add(UndeployIssueModelResponse.getDescriptor()) + .add(UndeployIssueModelMetadata.getDescriptor()) + .add(BulkAnalyzeConversationsResponse.getDescriptor()) .build(); private static final ApiMethodDescriptor @@ -470,6 +481,88 @@ public class HttpJsonContactCenterInsightsStub extends ContactCenterInsightsStub .build()) .build(); + private static final ApiMethodDescriptor + bulkAnalyzeConversationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.contactcenterinsights.v1.ContactCenterInsights/BulkAnalyzeConversations") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/conversations:bulkAnalyze", + 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( + (BulkAnalyzeConversationsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + ingestConversationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.contactcenterinsights.v1.ContactCenterInsights/IngestConversations") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/conversations:ingest", + 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( + (IngestConversationsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor exportInsightsDataMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -887,6 +980,40 @@ public class HttpJsonContactCenterInsightsStub extends ContactCenterInsightsStub .build()) .build(); + private static final ApiMethodDescriptor deleteIssueMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.contactcenterinsights.v1.ContactCenterInsights/DeleteIssue") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/issueModels/*/issues/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor< CalculateIssueModelStatsRequest, CalculateIssueModelStatsResponse> calculateIssueModelStatsMethodDescriptor = @@ -1414,6 +1541,17 @@ public class HttpJsonContactCenterInsightsStub extends ContactCenterInsightsStub private final UnaryCallable listAnalysesPagedCallable; private final UnaryCallable deleteAnalysisCallable; + private final UnaryCallable + bulkAnalyzeConversationsCallable; + private final OperationCallable< + BulkAnalyzeConversationsRequest, + BulkAnalyzeConversationsResponse, + BulkAnalyzeConversationsMetadata> + bulkAnalyzeConversationsOperationCallable; + private final UnaryCallable ingestConversationsCallable; + private final OperationCallable< + IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> + ingestConversationsOperationCallable; private final UnaryCallable exportInsightsDataCallable; private final OperationCallable< ExportInsightsDataRequest, ExportInsightsDataResponse, ExportInsightsDataMetadata> @@ -1439,6 +1577,7 @@ public class HttpJsonContactCenterInsightsStub extends ContactCenterInsightsStub private final UnaryCallable getIssueCallable; private final UnaryCallable listIssuesCallable; private final UnaryCallable updateIssueCallable; + private final UnaryCallable deleteIssueCallable; private final UnaryCallable calculateIssueModelStatsCallable; private final UnaryCallable @@ -1556,6 +1695,18 @@ protected HttpJsonContactCenterInsightsStub( .setMethodDescriptor(deleteAnalysisMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + bulkAnalyzeConversationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(bulkAnalyzeConversationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + ingestConversationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(ingestConversationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings exportInsightsDataTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(exportInsightsDataMethodDescriptor) @@ -1612,6 +1763,11 @@ protected HttpJsonContactCenterInsightsStub( .setMethodDescriptor(updateIssueMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings deleteIssueTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteIssueMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings calculateIssueModelStatsTransportSettings = HttpJsonCallSettings @@ -1738,6 +1894,28 @@ protected HttpJsonContactCenterInsightsStub( this.deleteAnalysisCallable = callableFactory.createUnaryCallable( deleteAnalysisTransportSettings, settings.deleteAnalysisSettings(), clientContext); + this.bulkAnalyzeConversationsCallable = + callableFactory.createUnaryCallable( + bulkAnalyzeConversationsTransportSettings, + settings.bulkAnalyzeConversationsSettings(), + clientContext); + this.bulkAnalyzeConversationsOperationCallable = + callableFactory.createOperationCallable( + bulkAnalyzeConversationsTransportSettings, + settings.bulkAnalyzeConversationsOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.ingestConversationsCallable = + callableFactory.createUnaryCallable( + ingestConversationsTransportSettings, + settings.ingestConversationsSettings(), + clientContext); + this.ingestConversationsOperationCallable = + callableFactory.createOperationCallable( + ingestConversationsTransportSettings, + settings.ingestConversationsOperationSettings(), + clientContext, + httpJsonOperationsStub); this.exportInsightsDataCallable = callableFactory.createUnaryCallable( exportInsightsDataTransportSettings, @@ -1805,6 +1983,9 @@ protected HttpJsonContactCenterInsightsStub( this.updateIssueCallable = callableFactory.createUnaryCallable( updateIssueTransportSettings, settings.updateIssueSettings(), clientContext); + this.deleteIssueCallable = + callableFactory.createUnaryCallable( + deleteIssueTransportSettings, settings.deleteIssueSettings(), clientContext); this.calculateIssueModelStatsCallable = callableFactory.createUnaryCallable( calculateIssueModelStatsTransportSettings, @@ -1882,6 +2063,8 @@ public static List getMethodDescriptors() { methodDescriptors.add(getAnalysisMethodDescriptor); methodDescriptors.add(listAnalysesMethodDescriptor); methodDescriptors.add(deleteAnalysisMethodDescriptor); + methodDescriptors.add(bulkAnalyzeConversationsMethodDescriptor); + methodDescriptors.add(ingestConversationsMethodDescriptor); methodDescriptors.add(exportInsightsDataMethodDescriptor); methodDescriptors.add(createIssueModelMethodDescriptor); methodDescriptors.add(updateIssueModelMethodDescriptor); @@ -1893,6 +2076,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(getIssueMethodDescriptor); methodDescriptors.add(listIssuesMethodDescriptor); methodDescriptors.add(updateIssueMethodDescriptor); + methodDescriptors.add(deleteIssueMethodDescriptor); methodDescriptors.add(calculateIssueModelStatsMethodDescriptor); methodDescriptors.add(createPhraseMatcherMethodDescriptor); methodDescriptors.add(getPhraseMatcherMethodDescriptor); @@ -1977,6 +2161,33 @@ public UnaryCallable deleteAnalysisCallable() { return deleteAnalysisCallable; } + @Override + public UnaryCallable + bulkAnalyzeConversationsCallable() { + return bulkAnalyzeConversationsCallable; + } + + @Override + public OperationCallable< + BulkAnalyzeConversationsRequest, + BulkAnalyzeConversationsResponse, + BulkAnalyzeConversationsMetadata> + bulkAnalyzeConversationsOperationCallable() { + return bulkAnalyzeConversationsOperationCallable; + } + + @Override + public UnaryCallable ingestConversationsCallable() { + return ingestConversationsCallable; + } + + @Override + public OperationCallable< + IngestConversationsRequest, IngestConversationsResponse, IngestConversationsMetadata> + ingestConversationsOperationCallable() { + return ingestConversationsOperationCallable; + } + @Override public UnaryCallable exportInsightsDataCallable() { return exportInsightsDataCallable; @@ -2065,6 +2276,11 @@ public UnaryCallable updateIssueCallable() { return updateIssueCallable; } + @Override + public UnaryCallable deleteIssueCallable() { + return deleteIssueCallable; + } + @Override public UnaryCallable calculateIssueModelStatsCallable() { 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 973ce84fd554..ddd20857230a 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 @@ -611,6 +611,7 @@ public void createAnalysisTest() throws Exception { .setRequestTime(Timestamp.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setAnalysisResult(AnalysisResult.newBuilder().build()) + .setAnnotatorSelector(AnnotatorSelector.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -667,6 +668,7 @@ public void createAnalysisTest2() throws Exception { .setRequestTime(Timestamp.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setAnalysisResult(AnalysisResult.newBuilder().build()) + .setAnnotatorSelector(AnnotatorSelector.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -724,6 +726,7 @@ public void getAnalysisTest() throws Exception { .setRequestTime(Timestamp.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setAnalysisResult(AnalysisResult.newBuilder().build()) + .setAnnotatorSelector(AnnotatorSelector.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -774,6 +777,7 @@ public void getAnalysisTest2() throws Exception { .setRequestTime(Timestamp.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setAnalysisResult(AnalysisResult.newBuilder().build()) + .setAnnotatorSelector(AnnotatorSelector.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -999,6 +1003,208 @@ public void deleteAnalysisExceptionTest2() throws Exception { } } + @Test + public void bulkAnalyzeConversationsTest() throws Exception { + BulkAnalyzeConversationsResponse expectedResponse = + BulkAnalyzeConversationsResponse.newBuilder() + .setSuccessfulAnalysisCount(1153322545) + .setFailedAnalysisCount(1044285998) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("bulkAnalyzeConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + float analysisPercentage = 1609757661; + + BulkAnalyzeConversationsResponse actualResponse = + client.bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage).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 bulkAnalyzeConversationsExceptionTest() 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"; + float analysisPercentage = 1609757661; + client.bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void bulkAnalyzeConversationsTest2() throws Exception { + BulkAnalyzeConversationsResponse expectedResponse = + BulkAnalyzeConversationsResponse.newBuilder() + .setSuccessfulAnalysisCount(1153322545) + .setFailedAnalysisCount(1044285998) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("bulkAnalyzeConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + String filter = "filter-1274492040"; + float analysisPercentage = 1609757661; + + BulkAnalyzeConversationsResponse actualResponse = + client.bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage).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 bulkAnalyzeConversationsExceptionTest2() 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"; + float analysisPercentage = 1609757661; + client.bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void ingestConversationsTest() throws Exception { + IngestConversationsResponse expectedResponse = IngestConversationsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("ingestConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + IngestConversationsResponse actualResponse = client.ingestConversationsAsync(parent).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 ingestConversationsExceptionTest() 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]"); + client.ingestConversationsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void ingestConversationsTest2() throws Exception { + IngestConversationsResponse expectedResponse = IngestConversationsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("ingestConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + + IngestConversationsResponse actualResponse = client.ingestConversationsAsync(parent).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 ingestConversationsExceptionTest2() 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"; + client.ingestConversationsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void exportInsightsDataTest() throws Exception { ExportInsightsDataResponse expectedResponse = ExportInsightsDataResponse.newBuilder().build(); @@ -1734,6 +1940,7 @@ public void getIssueTest() throws Exception { .setDisplayName("displayName1714148973") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSampleUtterances(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1781,6 +1988,7 @@ public void getIssueTest2() throws Exception { .setDisplayName("displayName1714148973") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSampleUtterances(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1914,6 +2122,7 @@ public void updateIssueTest() throws Exception { .setDisplayName("displayName1714148973") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSampleUtterances(new ArrayList()) .build(); mockService.addResponse(expectedResponse); @@ -1923,6 +2132,7 @@ public void updateIssueTest() throws Exception { .setDisplayName("displayName1714148973") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSampleUtterances(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1959,6 +2169,7 @@ public void updateIssueExceptionTest() throws Exception { .setDisplayName("displayName1714148973") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSampleUtterances(new ArrayList()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateIssue(issue, updateMask); @@ -1968,6 +2179,88 @@ public void updateIssueExceptionTest() throws Exception { } } + @Test + public void deleteIssueTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + IssueName name = IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]"); + + client.deleteIssue(name); + + 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 deleteIssueExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + IssueName name = IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]"); + client.deleteIssue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteIssueTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-9867/locations/location-9867/issueModels/issueModel-9867/issues/issue-9867"; + + client.deleteIssue(name); + + 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 deleteIssueExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-9867/locations/location-9867/issueModels/issueModel-9867/issues/issue-9867"; + client.deleteIssue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void calculateIssueModelStatsTest() throws Exception { CalculateIssueModelStatsResponse expectedResponse = 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 e6b30cfa7c9d..26c224580a3d 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 @@ -533,6 +533,7 @@ public void createAnalysisTest() throws Exception { .setRequestTime(Timestamp.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setAnalysisResult(AnalysisResult.newBuilder().build()) + .setAnnotatorSelector(AnnotatorSelector.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -587,6 +588,7 @@ public void createAnalysisTest2() throws Exception { .setRequestTime(Timestamp.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setAnalysisResult(AnalysisResult.newBuilder().build()) + .setAnnotatorSelector(AnnotatorSelector.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -641,6 +643,7 @@ public void getAnalysisTest() throws Exception { .setRequestTime(Timestamp.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setAnalysisResult(AnalysisResult.newBuilder().build()) + .setAnnotatorSelector(AnnotatorSelector.newBuilder().build()) .build(); mockContactCenterInsights.addResponse(expectedResponse); @@ -685,6 +688,7 @@ public void getAnalysisTest2() throws Exception { .setRequestTime(Timestamp.newBuilder().build()) .setCreateTime(Timestamp.newBuilder().build()) .setAnalysisResult(AnalysisResult.newBuilder().build()) + .setAnnotatorSelector(AnnotatorSelector.newBuilder().build()) .build(); mockContactCenterInsights.addResponse(expectedResponse); @@ -875,6 +879,202 @@ public void deleteAnalysisExceptionTest2() throws Exception { } } + @Test + public void bulkAnalyzeConversationsTest() throws Exception { + BulkAnalyzeConversationsResponse expectedResponse = + BulkAnalyzeConversationsResponse.newBuilder() + .setSuccessfulAnalysisCount(1153322545) + .setFailedAnalysisCount(1044285998) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("bulkAnalyzeConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockContactCenterInsights.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String filter = "filter-1274492040"; + float analysisPercentage = 1609757661; + + BulkAnalyzeConversationsResponse actualResponse = + client.bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockContactCenterInsights.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BulkAnalyzeConversationsRequest actualRequest = + ((BulkAnalyzeConversationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertEquals(analysisPercentage, actualRequest.getAnalysisPercentage(), 0.0001f); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void bulkAnalyzeConversationsExceptionTest() 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"; + float analysisPercentage = 1609757661; + client.bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage).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 bulkAnalyzeConversationsTest2() throws Exception { + BulkAnalyzeConversationsResponse expectedResponse = + BulkAnalyzeConversationsResponse.newBuilder() + .setSuccessfulAnalysisCount(1153322545) + .setFailedAnalysisCount(1044285998) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("bulkAnalyzeConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockContactCenterInsights.addResponse(resultOperation); + + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + float analysisPercentage = 1609757661; + + BulkAnalyzeConversationsResponse actualResponse = + client.bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockContactCenterInsights.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + BulkAnalyzeConversationsRequest actualRequest = + ((BulkAnalyzeConversationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(filter, actualRequest.getFilter()); + Assert.assertEquals(analysisPercentage, actualRequest.getAnalysisPercentage(), 0.0001f); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void bulkAnalyzeConversationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockContactCenterInsights.addException(exception); + + try { + String parent = "parent-995424086"; + String filter = "filter-1274492040"; + float analysisPercentage = 1609757661; + client.bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage).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(); + Operation resultOperation = + Operation.newBuilder() + .setName("ingestConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockContactCenterInsights.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + IngestConversationsResponse actualResponse = client.ingestConversationsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockContactCenterInsights.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + IngestConversationsRequest actualRequest = ((IngestConversationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void ingestConversationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockContactCenterInsights.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.ingestConversationsAsync(parent).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 ingestConversationsTest2() throws Exception { + IngestConversationsResponse expectedResponse = IngestConversationsResponse.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("ingestConversationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockContactCenterInsights.addResponse(resultOperation); + + String parent = "parent-995424086"; + + IngestConversationsResponse actualResponse = client.ingestConversationsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockContactCenterInsights.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + IngestConversationsRequest actualRequest = ((IngestConversationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void ingestConversationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockContactCenterInsights.addException(exception); + + try { + String parent = "parent-995424086"; + client.ingestConversationsAsync(parent).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 exportInsightsDataTest() throws Exception { ExportInsightsDataResponse expectedResponse = ExportInsightsDataResponse.newBuilder().build(); @@ -1537,6 +1737,7 @@ public void getIssueTest() throws Exception { .setDisplayName("displayName1714148973") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSampleUtterances(new ArrayList()) .build(); mockContactCenterInsights.addResponse(expectedResponse); @@ -1578,6 +1779,7 @@ public void getIssueTest2() throws Exception { .setDisplayName("displayName1714148973") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSampleUtterances(new ArrayList()) .build(); mockContactCenterInsights.addResponse(expectedResponse); @@ -1691,6 +1893,7 @@ public void updateIssueTest() throws Exception { .setDisplayName("displayName1714148973") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .addAllSampleUtterances(new ArrayList()) .build(); mockContactCenterInsights.addResponse(expectedResponse); @@ -1727,6 +1930,74 @@ public void updateIssueExceptionTest() throws Exception { } } + @Test + public void deleteIssueTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockContactCenterInsights.addResponse(expectedResponse); + + IssueName name = IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]"); + + client.deleteIssue(name); + + List actualRequests = mockContactCenterInsights.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteIssueRequest actualRequest = ((DeleteIssueRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteIssueExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockContactCenterInsights.addException(exception); + + try { + IssueName name = IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]"); + client.deleteIssue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteIssueTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockContactCenterInsights.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteIssue(name); + + List actualRequests = mockContactCenterInsights.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteIssueRequest actualRequest = ((DeleteIssueRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteIssueExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockContactCenterInsights.addException(exception); + + try { + String name = "name3373707"; + client.deleteIssue(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void calculateIssueModelStatsTest() throws Exception { CalculateIssueModelStatsResponse expectedResponse = 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 5311c5e74fdc..798ceac2f54b 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 @@ -249,6 +249,48 @@ public void deleteAnalysis( } } + @Override + public void bulkAnalyzeConversations( + BulkAnalyzeConversationsRequest 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 BulkAnalyzeConversations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void ingestConversations( + IngestConversationsRequest 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 IngestConversations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void exportInsightsData( ExportInsightsDataRequest request, StreamObserver responseObserver) { @@ -478,6 +520,26 @@ public void updateIssue(UpdateIssueRequest request, StreamObserver respon } } + @Override + public void deleteIssue(DeleteIssueRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) 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 DeleteIssue, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + @Override public void calculateIssueModelStats( CalculateIssueModelStatsRequest request, 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 7856bf226056..5d2dbc4899d6 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 @@ -465,6 +465,107 @@ private ContactCenterInsightsGrpc() {} return getDeleteAnalysisMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest, + com.google.longrunning.Operation> + getBulkAnalyzeConversationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "BulkAnalyzeConversations", + requestType = com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest, + com.google.longrunning.Operation> + getBulkAnalyzeConversationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest, + com.google.longrunning.Operation> + getBulkAnalyzeConversationsMethod; + if ((getBulkAnalyzeConversationsMethod = + ContactCenterInsightsGrpc.getBulkAnalyzeConversationsMethod) + == null) { + synchronized (ContactCenterInsightsGrpc.class) { + if ((getBulkAnalyzeConversationsMethod = + ContactCenterInsightsGrpc.getBulkAnalyzeConversationsMethod) + == null) { + ContactCenterInsightsGrpc.getBulkAnalyzeConversationsMethod = + getBulkAnalyzeConversationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "BulkAnalyzeConversations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contactcenterinsights.v1 + .BulkAnalyzeConversationsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ContactCenterInsightsMethodDescriptorSupplier( + "BulkAnalyzeConversations")) + .build(); + } + } + } + return getBulkAnalyzeConversationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest, + com.google.longrunning.Operation> + getIngestConversationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "IngestConversations", + requestType = com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest, + com.google.longrunning.Operation> + getIngestConversationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest, + com.google.longrunning.Operation> + getIngestConversationsMethod; + if ((getIngestConversationsMethod = ContactCenterInsightsGrpc.getIngestConversationsMethod) + == null) { + synchronized (ContactCenterInsightsGrpc.class) { + if ((getIngestConversationsMethod = ContactCenterInsightsGrpc.getIngestConversationsMethod) + == null) { + ContactCenterInsightsGrpc.getIngestConversationsMethod = + getIngestConversationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "IngestConversations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ContactCenterInsightsMethodDescriptorSupplier("IngestConversations")) + .build(); + } + } + } + return getIngestConversationsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest, com.google.longrunning.Operation> @@ -984,6 +1085,49 @@ private ContactCenterInsightsGrpc() {} return getUpdateIssueMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest, com.google.protobuf.Empty> + getDeleteIssueMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteIssue", + requestType = com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest, com.google.protobuf.Empty> + getDeleteIssueMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest, com.google.protobuf.Empty> + getDeleteIssueMethod; + if ((getDeleteIssueMethod = ContactCenterInsightsGrpc.getDeleteIssueMethod) == null) { + synchronized (ContactCenterInsightsGrpc.class) { + if ((getDeleteIssueMethod = ContactCenterInsightsGrpc.getDeleteIssueMethod) == null) { + ContactCenterInsightsGrpc.getDeleteIssueMethod = + getDeleteIssueMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteIssue")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new ContactCenterInsightsMethodDescriptorSupplier("DeleteIssue")) + .build(); + } + } + } + return getDeleteIssueMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest, com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse> @@ -1838,6 +1982,35 @@ public void deleteAnalysis( getDeleteAnalysisMethod(), responseObserver); } + /** + * + * + *
+     * Analyzes multiple conversations in a single request.
+     * 
+ */ + public void bulkAnalyzeConversations( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBulkAnalyzeConversationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Imports conversations and processes them according to the user's
+     * configuration.
+     * 
+ */ + public void ingestConversations( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getIngestConversationsMethod(), responseObserver); + } + /** * * @@ -1999,6 +2172,20 @@ public void updateIssue( getUpdateIssueMethod(), responseObserver); } + /** + * + * + *
+     * Deletes an issue.
+     * 
+ */ + public void deleteIssue( + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteIssueMethod(), responseObserver); + } + /** * * @@ -2268,6 +2455,18 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.cloud.contactcenterinsights.v1.DeleteAnalysisRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_ANALYSIS))) + .addMethod( + getBulkAnalyzeConversationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest, + com.google.longrunning.Operation>(this, METHODID_BULK_ANALYZE_CONVERSATIONS))) + .addMethod( + getIngestConversationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest, + com.google.longrunning.Operation>(this, METHODID_INGEST_CONVERSATIONS))) .addMethod( getExportInsightsDataMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2339,6 +2538,12 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.cloud.contactcenterinsights.v1.UpdateIssueRequest, com.google.cloud.contactcenterinsights.v1.Issue>( this, METHODID_UPDATE_ISSUE))) + .addMethod( + getDeleteIssueMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_ISSUE))) .addMethod( getCalculateIssueModelStatsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2607,6 +2812,39 @@ public void deleteAnalysis( responseObserver); } + /** + * + * + *
+     * Analyzes multiple conversations in a single request.
+     * 
+ */ + public void bulkAnalyzeConversations( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBulkAnalyzeConversationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Imports conversations and processes them according to the user's
+     * configuration.
+     * 
+ */ + public void ingestConversations( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getIngestConversationsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2788,6 +3026,22 @@ public void updateIssue( responseObserver); } + /** + * + * + *
+     * Deletes an issue.
+     * 
+ */ + public void deleteIssue( + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteIssueMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -3156,6 +3410,33 @@ public com.google.protobuf.Empty deleteAnalysis( getChannel(), getDeleteAnalysisMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Analyzes multiple conversations in a single request.
+     * 
+ */ + public com.google.longrunning.Operation bulkAnalyzeConversations( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBulkAnalyzeConversationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Imports conversations and processes them according to the user's
+     * configuration.
+     * 
+ */ + public com.google.longrunning.Operation ingestConversations( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getIngestConversationsMethod(), getCallOptions(), request); + } + /** * * @@ -3301,6 +3582,19 @@ public com.google.cloud.contactcenterinsights.v1.Issue updateIssue( getChannel(), getUpdateIssueMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Deletes an issue.
+     * 
+ */ + public com.google.protobuf.Empty deleteIssue( + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIssueMethod(), getCallOptions(), request); + } + /** * * @@ -3633,6 +3927,35 @@ protected ContactCenterInsightsFutureStub build( getChannel().newCall(getDeleteAnalysisMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Analyzes multiple conversations in a single request.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + bulkAnalyzeConversations( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBulkAnalyzeConversationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Imports conversations and processes them according to the user's
+     * configuration.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + ingestConversations( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getIngestConversationsMethod(), getCallOptions()), request); + } + /** * * @@ -3790,6 +4113,19 @@ protected ContactCenterInsightsFutureStub build( getChannel().newCall(getUpdateIssueMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Deletes an issue.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteIssue(com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteIssueMethod(), getCallOptions()), request); + } + /** * * @@ -4000,31 +4336,34 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4096,6 +4435,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.contactcenterinsights.v1.DeleteAnalysisRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_BULK_ANALYZE_CONVERSATIONS: + serviceImpl.bulkAnalyzeConversations( + (com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_INGEST_CONVERSATIONS: + serviceImpl.ingestConversations( + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_EXPORT_INSIGHTS_DATA: serviceImpl.exportInsightsData( (com.google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest) request, @@ -4159,6 +4508,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_ISSUE: + serviceImpl.deleteIssue( + (com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_CALCULATE_ISSUE_MODEL_STATS: serviceImpl.calculateIssueModelStats( (com.google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest) request, @@ -4318,6 +4672,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetAnalysisMethod()) .addMethod(getListAnalysesMethod()) .addMethod(getDeleteAnalysisMethod()) + .addMethod(getBulkAnalyzeConversationsMethod()) + .addMethod(getIngestConversationsMethod()) .addMethod(getExportInsightsDataMethod()) .addMethod(getCreateIssueModelMethod()) .addMethod(getUpdateIssueModelMethod()) @@ -4329,6 +4685,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetIssueMethod()) .addMethod(getListIssuesMethod()) .addMethod(getUpdateIssueMethod()) + .addMethod(getDeleteIssueMethod()) .addMethod(getCalculateIssueModelStatsMethod()) .addMethod(getCreatePhraseMatcherMethod()) .addMethod(getGetPhraseMatcherMethod()) diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Analysis.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Analysis.java index 1f3d834a1cad..164dc42ad4a9 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Analysis.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Analysis.java @@ -279,6 +279,58 @@ public com.google.cloud.contactcenterinsights.v1.AnalysisResult getAnalysisResul return getAnalysisResult(); } + public static final int ANNOTATOR_SELECTOR_FIELD_NUMBER = 8; + private com.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotatorSelector_; + /** + * + * + *
+   * To select the annotators to run and the phrase matchers to use
+   * (if any). If not specified, all annotators will be run.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * + * @return Whether the annotatorSelector field is set. + */ + @java.lang.Override + public boolean hasAnnotatorSelector() { + return annotatorSelector_ != null; + } + /** + * + * + *
+   * To select the annotators to run and the phrase matchers to use
+   * (if any). If not specified, all annotators will be run.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * + * @return The annotatorSelector. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getAnnotatorSelector() { + return annotatorSelector_ == null + ? com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance() + : annotatorSelector_; + } + /** + * + * + *
+   * To select the annotators to run and the phrase matchers to use
+   * (if any). If not specified, all annotators will be run.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder + getAnnotatorSelectorOrBuilder() { + return getAnnotatorSelector(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -305,6 +357,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (analysisResult_ != null) { output.writeMessage(7, getAnalysisResult()); } + if (annotatorSelector_ != null) { + output.writeMessage(8, getAnnotatorSelector()); + } getUnknownFields().writeTo(output); } @@ -326,6 +381,9 @@ public int getSerializedSize() { if (analysisResult_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAnalysisResult()); } + if (annotatorSelector_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAnnotatorSelector()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -355,6 +413,10 @@ public boolean equals(final java.lang.Object obj) { if (hasAnalysisResult()) { if (!getAnalysisResult().equals(other.getAnalysisResult())) return false; } + if (hasAnnotatorSelector() != other.hasAnnotatorSelector()) return false; + if (hasAnnotatorSelector()) { + if (!getAnnotatorSelector().equals(other.getAnnotatorSelector())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -380,6 +442,10 @@ public int hashCode() { hash = (37 * hash) + ANALYSIS_RESULT_FIELD_NUMBER; hash = (53 * hash) + getAnalysisResult().hashCode(); } + if (hasAnnotatorSelector()) { + hash = (37 * hash) + ANNOTATOR_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getAnnotatorSelector().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -538,6 +604,12 @@ public Builder clear() { analysisResult_ = null; analysisResultBuilder_ = null; } + if (annotatorSelectorBuilder_ == null) { + annotatorSelector_ = null; + } else { + annotatorSelector_ = null; + annotatorSelectorBuilder_ = null; + } return this; } @@ -581,6 +653,11 @@ public com.google.cloud.contactcenterinsights.v1.Analysis buildPartial() { } else { result.analysisResult_ = analysisResultBuilder_.build(); } + if (annotatorSelectorBuilder_ == null) { + result.annotatorSelector_ = annotatorSelector_; + } else { + result.annotatorSelector_ = annotatorSelectorBuilder_.build(); + } onBuilt(); return result; } @@ -644,6 +721,9 @@ public Builder mergeFrom(com.google.cloud.contactcenterinsights.v1.Analysis othe if (other.hasAnalysisResult()) { mergeAnalysisResult(other.getAnalysisResult()); } + if (other.hasAnnotatorSelector()) { + mergeAnnotatorSelector(other.getAnnotatorSelector()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -694,6 +774,13 @@ public Builder mergeFrom( break; } // case 58 + case 66: + { + input.readMessage( + getAnnotatorSelectorFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1457,6 +1544,206 @@ public Builder clearAnalysisResult() { return analysisResultBuilder_; } + private com.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotatorSelector_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder> + annotatorSelectorBuilder_; + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * + * @return Whether the annotatorSelector field is set. + */ + public boolean hasAnnotatorSelector() { + return annotatorSelectorBuilder_ != null || annotatorSelector_ != null; + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * + * @return The annotatorSelector. + */ + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getAnnotatorSelector() { + if (annotatorSelectorBuilder_ == null) { + return annotatorSelector_ == null + ? com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance() + : annotatorSelector_; + } else { + return annotatorSelectorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + public Builder setAnnotatorSelector( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector value) { + if (annotatorSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotatorSelector_ = value; + onChanged(); + } else { + annotatorSelectorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + public Builder setAnnotatorSelector( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder builderForValue) { + if (annotatorSelectorBuilder_ == null) { + annotatorSelector_ = builderForValue.build(); + onChanged(); + } else { + annotatorSelectorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + public Builder mergeAnnotatorSelector( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector value) { + if (annotatorSelectorBuilder_ == null) { + if (annotatorSelector_ != null) { + annotatorSelector_ = + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.newBuilder( + annotatorSelector_) + .mergeFrom(value) + .buildPartial(); + } else { + annotatorSelector_ = value; + } + onChanged(); + } else { + annotatorSelectorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + public Builder clearAnnotatorSelector() { + if (annotatorSelectorBuilder_ == null) { + annotatorSelector_ = null; + onChanged(); + } else { + annotatorSelector_ = null; + annotatorSelectorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder + getAnnotatorSelectorBuilder() { + + onChanged(); + return getAnnotatorSelectorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder + getAnnotatorSelectorOrBuilder() { + if (annotatorSelectorBuilder_ != null) { + return annotatorSelectorBuilder_.getMessageOrBuilder(); + } else { + return annotatorSelector_ == null + ? com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance() + : annotatorSelector_; + } + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder> + getAnnotatorSelectorFieldBuilder() { + if (annotatorSelectorBuilder_ == null) { + annotatorSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder>( + getAnnotatorSelector(), getParentForChildren(), isClean()); + annotatorSelector_ = null; + } + return annotatorSelectorBuilder_; + } + @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/AnalysisOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnalysisOrBuilder.java index d6a4eb430c52..36d6e9e24d20 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnalysisOrBuilder.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnalysisOrBuilder.java @@ -174,4 +174,43 @@ public interface AnalysisOrBuilder * */ com.google.cloud.contactcenterinsights.v1.AnalysisResultOrBuilder getAnalysisResultOrBuilder(); + + /** + * + * + *
+   * To select the annotators to run and the phrase matchers to use
+   * (if any). If not specified, all annotators will be run.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * + * @return Whether the annotatorSelector field is set. + */ + boolean hasAnnotatorSelector(); + /** + * + * + *
+   * To select the annotators to run and the phrase matchers to use
+   * (if any). If not specified, all annotators will be run.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * + * @return The annotatorSelector. + */ + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getAnnotatorSelector(); + /** + * + * + *
+   * To select the annotators to run and the phrase matchers to use
+   * (if any). If not specified, all annotators will be run.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder + getAnnotatorSelectorOrBuilder(); } 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 new file mode 100644 index 000000000000..c5d27c0a9a7c --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnnotatorSelector.java @@ -0,0 +1,1726 @@ +/* + * Copyright 2020 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/resources.proto + +package com.google.cloud.contactcenterinsights.v1; + +/** + * + * + *
+ * Selector of all available annotators and phrase matchers to run.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.AnnotatorSelector} + */ +public final class AnnotatorSelector extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.AnnotatorSelector) + AnnotatorSelectorOrBuilder { + private static final long serialVersionUID = 0L; + // Use AnnotatorSelector.newBuilder() to construct. + private AnnotatorSelector(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private AnnotatorSelector() { + phraseMatchers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + issueModels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AnnotatorSelector(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.class, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder.class); + } + + public static final int RUN_INTERRUPTION_ANNOTATOR_FIELD_NUMBER = 1; + private boolean runInterruptionAnnotator_; + /** + * + * + *
+   * Whether to run the interruption annotator.
+   * 
+ * + * bool run_interruption_annotator = 1; + * + * @return The runInterruptionAnnotator. + */ + @java.lang.Override + public boolean getRunInterruptionAnnotator() { + return runInterruptionAnnotator_; + } + + public static final int RUN_SILENCE_ANNOTATOR_FIELD_NUMBER = 2; + private boolean runSilenceAnnotator_; + /** + * + * + *
+   * Whether to run the silence annotator.
+   * 
+ * + * bool run_silence_annotator = 2; + * + * @return The runSilenceAnnotator. + */ + @java.lang.Override + public boolean getRunSilenceAnnotator() { + return runSilenceAnnotator_; + } + + public static final int RUN_PHRASE_MATCHER_ANNOTATOR_FIELD_NUMBER = 3; + private boolean runPhraseMatcherAnnotator_; + /** + * + * + *
+   * Whether to run the active phrase matcher annotator(s).
+   * 
+ * + * bool run_phrase_matcher_annotator = 3; + * + * @return The runPhraseMatcherAnnotator. + */ + @java.lang.Override + public boolean getRunPhraseMatcherAnnotator() { + return runPhraseMatcherAnnotator_; + } + + public static final int PHRASE_MATCHERS_FIELD_NUMBER = 4; + private com.google.protobuf.LazyStringList phraseMatchers_; + /** + * + * + *
+   * The list of phrase matchers to run. If not provided, all active phrase
+   * matchers will be used. If inactive phrase matchers are provided, they will
+   * not be used. Phrase matchers will be run only if
+   * run_phrase_matcher_annotator is set to true. Format:
+   * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+   * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the phraseMatchers. + */ + public com.google.protobuf.ProtocolStringList getPhraseMatchersList() { + return phraseMatchers_; + } + /** + * + * + *
+   * The list of phrase matchers to run. If not provided, all active phrase
+   * matchers will be used. If inactive phrase matchers are provided, they will
+   * not be used. Phrase matchers will be run only if
+   * run_phrase_matcher_annotator is set to true. Format:
+   * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+   * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @return The count of phraseMatchers. + */ + public int getPhraseMatchersCount() { + return phraseMatchers_.size(); + } + /** + * + * + *
+   * The list of phrase matchers to run. If not provided, all active phrase
+   * matchers will be used. If inactive phrase matchers are provided, they will
+   * not be used. Phrase matchers will be run only if
+   * run_phrase_matcher_annotator is set to true. Format:
+   * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+   * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The phraseMatchers at the given index. + */ + public java.lang.String getPhraseMatchers(int index) { + return phraseMatchers_.get(index); + } + /** + * + * + *
+   * The list of phrase matchers to run. If not provided, all active phrase
+   * matchers will be used. If inactive phrase matchers are provided, they will
+   * not be used. Phrase matchers will be run only if
+   * run_phrase_matcher_annotator is set to true. Format:
+   * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+   * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the phraseMatchers at the given index. + */ + public com.google.protobuf.ByteString getPhraseMatchersBytes(int index) { + return phraseMatchers_.getByteString(index); + } + + public static final int RUN_SENTIMENT_ANNOTATOR_FIELD_NUMBER = 5; + private boolean runSentimentAnnotator_; + /** + * + * + *
+   * Whether to run the sentiment annotator.
+   * 
+ * + * bool run_sentiment_annotator = 5; + * + * @return The runSentimentAnnotator. + */ + @java.lang.Override + public boolean getRunSentimentAnnotator() { + return runSentimentAnnotator_; + } + + public static final int RUN_ENTITY_ANNOTATOR_FIELD_NUMBER = 6; + private boolean runEntityAnnotator_; + /** + * + * + *
+   * Whether to run the entity annotator.
+   * 
+ * + * bool run_entity_annotator = 6; + * + * @return The runEntityAnnotator. + */ + @java.lang.Override + public boolean getRunEntityAnnotator() { + return runEntityAnnotator_; + } + + public static final int RUN_INTENT_ANNOTATOR_FIELD_NUMBER = 7; + private boolean runIntentAnnotator_; + /** + * + * + *
+   * Whether to run the intent annotator.
+   * 
+ * + * bool run_intent_annotator = 7; + * + * @return The runIntentAnnotator. + */ + @java.lang.Override + public boolean getRunIntentAnnotator() { + return runIntentAnnotator_; + } + + public static final int RUN_ISSUE_MODEL_ANNOTATOR_FIELD_NUMBER = 8; + private boolean runIssueModelAnnotator_; + /** + * + * + *
+   * Whether to run the issue model annotator. A model should have already been
+   * deployed for this to take effect.
+   * 
+ * + * bool run_issue_model_annotator = 8; + * + * @return The runIssueModelAnnotator. + */ + @java.lang.Override + public boolean getRunIssueModelAnnotator() { + return runIssueModelAnnotator_; + } + + public static final int ISSUE_MODELS_FIELD_NUMBER = 10; + private com.google.protobuf.LazyStringList issueModels_; + /** + * + * + *
+   * The issue model to run. If not provided, the most recently deployed topic
+   * model will be used. The provided issue model will only be used for
+   * inference if the issue model is deployed and if run_issue_model_annotator
+   * is set to true. If more than one issue model is provided, only the first
+   * provided issue model will be used for inference.
+   * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the issueModels. + */ + public com.google.protobuf.ProtocolStringList getIssueModelsList() { + return issueModels_; + } + /** + * + * + *
+   * The issue model to run. If not provided, the most recently deployed topic
+   * model will be used. The provided issue model will only be used for
+   * inference if the issue model is deployed and if run_issue_model_annotator
+   * is set to true. If more than one issue model is provided, only the first
+   * provided issue model will be used for inference.
+   * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @return The count of issueModels. + */ + public int getIssueModelsCount() { + return issueModels_.size(); + } + /** + * + * + *
+   * The issue model to run. If not provided, the most recently deployed topic
+   * model will be used. The provided issue model will only be used for
+   * inference if the issue model is deployed and if run_issue_model_annotator
+   * is set to true. If more than one issue model is provided, only the first
+   * provided issue model will be used for inference.
+   * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The issueModels at the given index. + */ + public java.lang.String getIssueModels(int index) { + return issueModels_.get(index); + } + /** + * + * + *
+   * The issue model to run. If not provided, the most recently deployed topic
+   * model will be used. The provided issue model will only be used for
+   * inference if the issue model is deployed and if run_issue_model_annotator
+   * is set to true. If more than one issue model is provided, only the first
+   * provided issue model will be used for inference.
+   * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the issueModels at the given index. + */ + public com.google.protobuf.ByteString getIssueModelsBytes(int index) { + return issueModels_.getByteString(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 (runInterruptionAnnotator_ != false) { + output.writeBool(1, runInterruptionAnnotator_); + } + if (runSilenceAnnotator_ != false) { + output.writeBool(2, runSilenceAnnotator_); + } + if (runPhraseMatcherAnnotator_ != false) { + output.writeBool(3, runPhraseMatcherAnnotator_); + } + for (int i = 0; i < phraseMatchers_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, phraseMatchers_.getRaw(i)); + } + if (runSentimentAnnotator_ != false) { + output.writeBool(5, runSentimentAnnotator_); + } + if (runEntityAnnotator_ != false) { + output.writeBool(6, runEntityAnnotator_); + } + if (runIntentAnnotator_ != false) { + output.writeBool(7, runIntentAnnotator_); + } + if (runIssueModelAnnotator_ != false) { + output.writeBool(8, runIssueModelAnnotator_); + } + for (int i = 0; i < issueModels_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, issueModels_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (runInterruptionAnnotator_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, runInterruptionAnnotator_); + } + if (runSilenceAnnotator_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, runSilenceAnnotator_); + } + if (runPhraseMatcherAnnotator_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, runPhraseMatcherAnnotator_); + } + { + int dataSize = 0; + for (int i = 0; i < phraseMatchers_.size(); i++) { + dataSize += computeStringSizeNoTag(phraseMatchers_.getRaw(i)); + } + size += dataSize; + size += 1 * getPhraseMatchersList().size(); + } + if (runSentimentAnnotator_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, runSentimentAnnotator_); + } + if (runEntityAnnotator_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, runEntityAnnotator_); + } + if (runIntentAnnotator_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, runIntentAnnotator_); + } + if (runIssueModelAnnotator_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, runIssueModelAnnotator_); + } + { + int dataSize = 0; + for (int i = 0; i < issueModels_.size(); i++) { + dataSize += computeStringSizeNoTag(issueModels_.getRaw(i)); + } + size += dataSize; + size += 1 * getIssueModelsList().size(); + } + 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.AnnotatorSelector)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector other = + (com.google.cloud.contactcenterinsights.v1.AnnotatorSelector) obj; + + if (getRunInterruptionAnnotator() != other.getRunInterruptionAnnotator()) return false; + if (getRunSilenceAnnotator() != other.getRunSilenceAnnotator()) return false; + if (getRunPhraseMatcherAnnotator() != other.getRunPhraseMatcherAnnotator()) return false; + if (!getPhraseMatchersList().equals(other.getPhraseMatchersList())) return false; + if (getRunSentimentAnnotator() != other.getRunSentimentAnnotator()) return false; + if (getRunEntityAnnotator() != other.getRunEntityAnnotator()) return false; + if (getRunIntentAnnotator() != other.getRunIntentAnnotator()) return false; + if (getRunIssueModelAnnotator() != other.getRunIssueModelAnnotator()) return false; + if (!getIssueModelsList().equals(other.getIssueModelsList())) 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) + RUN_INTERRUPTION_ANNOTATOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRunInterruptionAnnotator()); + hash = (37 * hash) + RUN_SILENCE_ANNOTATOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRunSilenceAnnotator()); + hash = (37 * hash) + RUN_PHRASE_MATCHER_ANNOTATOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRunPhraseMatcherAnnotator()); + if (getPhraseMatchersCount() > 0) { + hash = (37 * hash) + PHRASE_MATCHERS_FIELD_NUMBER; + hash = (53 * hash) + getPhraseMatchersList().hashCode(); + } + hash = (37 * hash) + RUN_SENTIMENT_ANNOTATOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRunSentimentAnnotator()); + hash = (37 * hash) + RUN_ENTITY_ANNOTATOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRunEntityAnnotator()); + hash = (37 * hash) + RUN_INTENT_ANNOTATOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRunIntentAnnotator()); + hash = (37 * hash) + RUN_ISSUE_MODEL_ANNOTATOR_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRunIssueModelAnnotator()); + if (getIssueModelsCount() > 0) { + hash = (37 * hash) + ISSUE_MODELS_FIELD_NUMBER; + hash = (53 * hash) + getIssueModelsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.AnnotatorSelector parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.AnnotatorSelector 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.AnnotatorSelector parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.AnnotatorSelector 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.AnnotatorSelector parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.AnnotatorSelector 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.AnnotatorSelector parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.AnnotatorSelector 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.AnnotatorSelector parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.AnnotatorSelector 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.AnnotatorSelector 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.AnnotatorSelector 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.AnnotatorSelector 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; + } + /** + * + * + *
+   * Selector of all available annotators and phrase matchers to run.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.AnnotatorSelector} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.AnnotatorSelector) + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.class, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder.class); + } + + // Construct using com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + runInterruptionAnnotator_ = false; + + runSilenceAnnotator_ = false; + + runPhraseMatcherAnnotator_ = false; + + phraseMatchers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + runSentimentAnnotator_ = false; + + runEntityAnnotator_ = false; + + runIntentAnnotator_ = false; + + runIssueModelAnnotator_ = false; + + issueModels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector build() { + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector buildPartial() { + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector result = + new com.google.cloud.contactcenterinsights.v1.AnnotatorSelector(this); + int from_bitField0_ = bitField0_; + result.runInterruptionAnnotator_ = runInterruptionAnnotator_; + result.runSilenceAnnotator_ = runSilenceAnnotator_; + result.runPhraseMatcherAnnotator_ = runPhraseMatcherAnnotator_; + if (((bitField0_ & 0x00000001) != 0)) { + phraseMatchers_ = phraseMatchers_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.phraseMatchers_ = phraseMatchers_; + result.runSentimentAnnotator_ = runSentimentAnnotator_; + result.runEntityAnnotator_ = runEntityAnnotator_; + result.runIntentAnnotator_ = runIntentAnnotator_; + result.runIssueModelAnnotator_ = runIssueModelAnnotator_; + if (((bitField0_ & 0x00000002) != 0)) { + issueModels_ = issueModels_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.issueModels_ = issueModels_; + 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.AnnotatorSelector) { + return mergeFrom((com.google.cloud.contactcenterinsights.v1.AnnotatorSelector) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.contactcenterinsights.v1.AnnotatorSelector other) { + if (other == com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance()) + return this; + if (other.getRunInterruptionAnnotator() != false) { + setRunInterruptionAnnotator(other.getRunInterruptionAnnotator()); + } + if (other.getRunSilenceAnnotator() != false) { + setRunSilenceAnnotator(other.getRunSilenceAnnotator()); + } + if (other.getRunPhraseMatcherAnnotator() != false) { + setRunPhraseMatcherAnnotator(other.getRunPhraseMatcherAnnotator()); + } + if (!other.phraseMatchers_.isEmpty()) { + if (phraseMatchers_.isEmpty()) { + phraseMatchers_ = other.phraseMatchers_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePhraseMatchersIsMutable(); + phraseMatchers_.addAll(other.phraseMatchers_); + } + onChanged(); + } + if (other.getRunSentimentAnnotator() != false) { + setRunSentimentAnnotator(other.getRunSentimentAnnotator()); + } + if (other.getRunEntityAnnotator() != false) { + setRunEntityAnnotator(other.getRunEntityAnnotator()); + } + if (other.getRunIntentAnnotator() != false) { + setRunIntentAnnotator(other.getRunIntentAnnotator()); + } + if (other.getRunIssueModelAnnotator() != false) { + setRunIssueModelAnnotator(other.getRunIssueModelAnnotator()); + } + if (!other.issueModels_.isEmpty()) { + if (issueModels_.isEmpty()) { + issueModels_ = other.issueModels_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIssueModelsIsMutable(); + issueModels_.addAll(other.issueModels_); + } + onChanged(); + } + 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 8: + { + runInterruptionAnnotator_ = input.readBool(); + + break; + } // case 8 + case 16: + { + runSilenceAnnotator_ = input.readBool(); + + break; + } // case 16 + case 24: + { + runPhraseMatcherAnnotator_ = input.readBool(); + + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePhraseMatchersIsMutable(); + phraseMatchers_.add(s); + break; + } // case 34 + case 40: + { + runSentimentAnnotator_ = input.readBool(); + + break; + } // case 40 + case 48: + { + runEntityAnnotator_ = input.readBool(); + + break; + } // case 48 + case 56: + { + runIntentAnnotator_ = input.readBool(); + + break; + } // case 56 + case 64: + { + runIssueModelAnnotator_ = input.readBool(); + + break; + } // case 64 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureIssueModelsIsMutable(); + issueModels_.add(s); + break; + } // case 82 + 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 boolean runInterruptionAnnotator_; + /** + * + * + *
+     * Whether to run the interruption annotator.
+     * 
+ * + * bool run_interruption_annotator = 1; + * + * @return The runInterruptionAnnotator. + */ + @java.lang.Override + public boolean getRunInterruptionAnnotator() { + return runInterruptionAnnotator_; + } + /** + * + * + *
+     * Whether to run the interruption annotator.
+     * 
+ * + * bool run_interruption_annotator = 1; + * + * @param value The runInterruptionAnnotator to set. + * @return This builder for chaining. + */ + public Builder setRunInterruptionAnnotator(boolean value) { + + runInterruptionAnnotator_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to run the interruption annotator.
+     * 
+ * + * bool run_interruption_annotator = 1; + * + * @return This builder for chaining. + */ + public Builder clearRunInterruptionAnnotator() { + + runInterruptionAnnotator_ = false; + onChanged(); + return this; + } + + private boolean runSilenceAnnotator_; + /** + * + * + *
+     * Whether to run the silence annotator.
+     * 
+ * + * bool run_silence_annotator = 2; + * + * @return The runSilenceAnnotator. + */ + @java.lang.Override + public boolean getRunSilenceAnnotator() { + return runSilenceAnnotator_; + } + /** + * + * + *
+     * Whether to run the silence annotator.
+     * 
+ * + * bool run_silence_annotator = 2; + * + * @param value The runSilenceAnnotator to set. + * @return This builder for chaining. + */ + public Builder setRunSilenceAnnotator(boolean value) { + + runSilenceAnnotator_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to run the silence annotator.
+     * 
+ * + * bool run_silence_annotator = 2; + * + * @return This builder for chaining. + */ + public Builder clearRunSilenceAnnotator() { + + runSilenceAnnotator_ = false; + onChanged(); + return this; + } + + private boolean runPhraseMatcherAnnotator_; + /** + * + * + *
+     * Whether to run the active phrase matcher annotator(s).
+     * 
+ * + * bool run_phrase_matcher_annotator = 3; + * + * @return The runPhraseMatcherAnnotator. + */ + @java.lang.Override + public boolean getRunPhraseMatcherAnnotator() { + return runPhraseMatcherAnnotator_; + } + /** + * + * + *
+     * Whether to run the active phrase matcher annotator(s).
+     * 
+ * + * bool run_phrase_matcher_annotator = 3; + * + * @param value The runPhraseMatcherAnnotator to set. + * @return This builder for chaining. + */ + public Builder setRunPhraseMatcherAnnotator(boolean value) { + + runPhraseMatcherAnnotator_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to run the active phrase matcher annotator(s).
+     * 
+ * + * bool run_phrase_matcher_annotator = 3; + * + * @return This builder for chaining. + */ + public Builder clearRunPhraseMatcherAnnotator() { + + runPhraseMatcherAnnotator_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList phraseMatchers_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensurePhraseMatchersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + phraseMatchers_ = new com.google.protobuf.LazyStringArrayList(phraseMatchers_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * The list of phrase matchers to run. If not provided, all active phrase
+     * matchers will be used. If inactive phrase matchers are provided, they will
+     * not be used. Phrase matchers will be run only if
+     * run_phrase_matcher_annotator is set to true. Format:
+     * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+     * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the phraseMatchers. + */ + public com.google.protobuf.ProtocolStringList getPhraseMatchersList() { + return phraseMatchers_.getUnmodifiableView(); + } + /** + * + * + *
+     * The list of phrase matchers to run. If not provided, all active phrase
+     * matchers will be used. If inactive phrase matchers are provided, they will
+     * not be used. Phrase matchers will be run only if
+     * run_phrase_matcher_annotator is set to true. Format:
+     * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+     * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @return The count of phraseMatchers. + */ + public int getPhraseMatchersCount() { + return phraseMatchers_.size(); + } + /** + * + * + *
+     * The list of phrase matchers to run. If not provided, all active phrase
+     * matchers will be used. If inactive phrase matchers are provided, they will
+     * not be used. Phrase matchers will be run only if
+     * run_phrase_matcher_annotator is set to true. Format:
+     * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+     * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The phraseMatchers at the given index. + */ + public java.lang.String getPhraseMatchers(int index) { + return phraseMatchers_.get(index); + } + /** + * + * + *
+     * The list of phrase matchers to run. If not provided, all active phrase
+     * matchers will be used. If inactive phrase matchers are provided, they will
+     * not be used. Phrase matchers will be run only if
+     * run_phrase_matcher_annotator is set to true. Format:
+     * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+     * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the phraseMatchers at the given index. + */ + public com.google.protobuf.ByteString getPhraseMatchersBytes(int index) { + return phraseMatchers_.getByteString(index); + } + /** + * + * + *
+     * The list of phrase matchers to run. If not provided, all active phrase
+     * matchers will be used. If inactive phrase matchers are provided, they will
+     * not be used. Phrase matchers will be run only if
+     * run_phrase_matcher_annotator is set to true. Format:
+     * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+     * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The phraseMatchers to set. + * @return This builder for chaining. + */ + public Builder setPhraseMatchers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhraseMatchersIsMutable(); + phraseMatchers_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of phrase matchers to run. If not provided, all active phrase
+     * matchers will be used. If inactive phrase matchers are provided, they will
+     * not be used. Phrase matchers will be run only if
+     * run_phrase_matcher_annotator is set to true. Format:
+     * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+     * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @param value The phraseMatchers to add. + * @return This builder for chaining. + */ + public Builder addPhraseMatchers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePhraseMatchersIsMutable(); + phraseMatchers_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of phrase matchers to run. If not provided, all active phrase
+     * matchers will be used. If inactive phrase matchers are provided, they will
+     * not be used. Phrase matchers will be run only if
+     * run_phrase_matcher_annotator is set to true. Format:
+     * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+     * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @param values The phraseMatchers to add. + * @return This builder for chaining. + */ + public Builder addAllPhraseMatchers(java.lang.Iterable values) { + ensurePhraseMatchersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, phraseMatchers_); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of phrase matchers to run. If not provided, all active phrase
+     * matchers will be used. If inactive phrase matchers are provided, they will
+     * not be used. Phrase matchers will be run only if
+     * run_phrase_matcher_annotator is set to true. Format:
+     * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+     * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearPhraseMatchers() { + phraseMatchers_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The list of phrase matchers to run. If not provided, all active phrase
+     * matchers will be used. If inactive phrase matchers are provided, they will
+     * not be used. Phrase matchers will be run only if
+     * run_phrase_matcher_annotator is set to true. Format:
+     * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+     * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the phraseMatchers to add. + * @return This builder for chaining. + */ + public Builder addPhraseMatchersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePhraseMatchersIsMutable(); + phraseMatchers_.add(value); + onChanged(); + return this; + } + + private boolean runSentimentAnnotator_; + /** + * + * + *
+     * Whether to run the sentiment annotator.
+     * 
+ * + * bool run_sentiment_annotator = 5; + * + * @return The runSentimentAnnotator. + */ + @java.lang.Override + public boolean getRunSentimentAnnotator() { + return runSentimentAnnotator_; + } + /** + * + * + *
+     * Whether to run the sentiment annotator.
+     * 
+ * + * bool run_sentiment_annotator = 5; + * + * @param value The runSentimentAnnotator to set. + * @return This builder for chaining. + */ + public Builder setRunSentimentAnnotator(boolean value) { + + runSentimentAnnotator_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to run the sentiment annotator.
+     * 
+ * + * bool run_sentiment_annotator = 5; + * + * @return This builder for chaining. + */ + public Builder clearRunSentimentAnnotator() { + + runSentimentAnnotator_ = false; + onChanged(); + return this; + } + + private boolean runEntityAnnotator_; + /** + * + * + *
+     * Whether to run the entity annotator.
+     * 
+ * + * bool run_entity_annotator = 6; + * + * @return The runEntityAnnotator. + */ + @java.lang.Override + public boolean getRunEntityAnnotator() { + return runEntityAnnotator_; + } + /** + * + * + *
+     * Whether to run the entity annotator.
+     * 
+ * + * bool run_entity_annotator = 6; + * + * @param value The runEntityAnnotator to set. + * @return This builder for chaining. + */ + public Builder setRunEntityAnnotator(boolean value) { + + runEntityAnnotator_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to run the entity annotator.
+     * 
+ * + * bool run_entity_annotator = 6; + * + * @return This builder for chaining. + */ + public Builder clearRunEntityAnnotator() { + + runEntityAnnotator_ = false; + onChanged(); + return this; + } + + private boolean runIntentAnnotator_; + /** + * + * + *
+     * Whether to run the intent annotator.
+     * 
+ * + * bool run_intent_annotator = 7; + * + * @return The runIntentAnnotator. + */ + @java.lang.Override + public boolean getRunIntentAnnotator() { + return runIntentAnnotator_; + } + /** + * + * + *
+     * Whether to run the intent annotator.
+     * 
+ * + * bool run_intent_annotator = 7; + * + * @param value The runIntentAnnotator to set. + * @return This builder for chaining. + */ + public Builder setRunIntentAnnotator(boolean value) { + + runIntentAnnotator_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to run the intent annotator.
+     * 
+ * + * bool run_intent_annotator = 7; + * + * @return This builder for chaining. + */ + public Builder clearRunIntentAnnotator() { + + runIntentAnnotator_ = false; + onChanged(); + return this; + } + + private boolean runIssueModelAnnotator_; + /** + * + * + *
+     * Whether to run the issue model annotator. A model should have already been
+     * deployed for this to take effect.
+     * 
+ * + * bool run_issue_model_annotator = 8; + * + * @return The runIssueModelAnnotator. + */ + @java.lang.Override + public boolean getRunIssueModelAnnotator() { + return runIssueModelAnnotator_; + } + /** + * + * + *
+     * Whether to run the issue model annotator. A model should have already been
+     * deployed for this to take effect.
+     * 
+ * + * bool run_issue_model_annotator = 8; + * + * @param value The runIssueModelAnnotator to set. + * @return This builder for chaining. + */ + public Builder setRunIssueModelAnnotator(boolean value) { + + runIssueModelAnnotator_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Whether to run the issue model annotator. A model should have already been
+     * deployed for this to take effect.
+     * 
+ * + * bool run_issue_model_annotator = 8; + * + * @return This builder for chaining. + */ + public Builder clearRunIssueModelAnnotator() { + + runIssueModelAnnotator_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList issueModels_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureIssueModelsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + issueModels_ = new com.google.protobuf.LazyStringArrayList(issueModels_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * The issue model to run. If not provided, the most recently deployed topic
+     * model will be used. The provided issue model will only be used for
+     * inference if the issue model is deployed and if run_issue_model_annotator
+     * is set to true. If more than one issue model is provided, only the first
+     * provided issue model will be used for inference.
+     * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the issueModels. + */ + public com.google.protobuf.ProtocolStringList getIssueModelsList() { + return issueModels_.getUnmodifiableView(); + } + /** + * + * + *
+     * The issue model to run. If not provided, the most recently deployed topic
+     * model will be used. The provided issue model will only be used for
+     * inference if the issue model is deployed and if run_issue_model_annotator
+     * is set to true. If more than one issue model is provided, only the first
+     * provided issue model will be used for inference.
+     * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @return The count of issueModels. + */ + public int getIssueModelsCount() { + return issueModels_.size(); + } + /** + * + * + *
+     * The issue model to run. If not provided, the most recently deployed topic
+     * model will be used. The provided issue model will only be used for
+     * inference if the issue model is deployed and if run_issue_model_annotator
+     * is set to true. If more than one issue model is provided, only the first
+     * provided issue model will be used for inference.
+     * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The issueModels at the given index. + */ + public java.lang.String getIssueModels(int index) { + return issueModels_.get(index); + } + /** + * + * + *
+     * The issue model to run. If not provided, the most recently deployed topic
+     * model will be used. The provided issue model will only be used for
+     * inference if the issue model is deployed and if run_issue_model_annotator
+     * is set to true. If more than one issue model is provided, only the first
+     * provided issue model will be used for inference.
+     * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the issueModels at the given index. + */ + public com.google.protobuf.ByteString getIssueModelsBytes(int index) { + return issueModels_.getByteString(index); + } + /** + * + * + *
+     * The issue model to run. If not provided, the most recently deployed topic
+     * model will be used. The provided issue model will only be used for
+     * inference if the issue model is deployed and if run_issue_model_annotator
+     * is set to true. If more than one issue model is provided, only the first
+     * provided issue model will be used for inference.
+     * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @param index The index to set the value at. + * @param value The issueModels to set. + * @return This builder for chaining. + */ + public Builder setIssueModels(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssueModelsIsMutable(); + issueModels_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * The issue model to run. If not provided, the most recently deployed topic
+     * model will be used. The provided issue model will only be used for
+     * inference if the issue model is deployed and if run_issue_model_annotator
+     * is set to true. If more than one issue model is provided, only the first
+     * provided issue model will be used for inference.
+     * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @param value The issueModels to add. + * @return This builder for chaining. + */ + public Builder addIssueModels(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIssueModelsIsMutable(); + issueModels_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * The issue model to run. If not provided, the most recently deployed topic
+     * model will be used. The provided issue model will only be used for
+     * inference if the issue model is deployed and if run_issue_model_annotator
+     * is set to true. If more than one issue model is provided, only the first
+     * provided issue model will be used for inference.
+     * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @param values The issueModels to add. + * @return This builder for chaining. + */ + public Builder addAllIssueModels(java.lang.Iterable values) { + ensureIssueModelsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, issueModels_); + onChanged(); + return this; + } + /** + * + * + *
+     * The issue model to run. If not provided, the most recently deployed topic
+     * model will be used. The provided issue model will only be used for
+     * inference if the issue model is deployed and if run_issue_model_annotator
+     * is set to true. If more than one issue model is provided, only the first
+     * provided issue model will be used for inference.
+     * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearIssueModels() { + issueModels_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The issue model to run. If not provided, the most recently deployed topic
+     * model will be used. The provided issue model will only be used for
+     * inference if the issue model is deployed and if run_issue_model_annotator
+     * is set to true. If more than one issue model is provided, only the first
+     * provided issue model will be used for inference.
+     * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @param value The bytes of the issueModels to add. + * @return This builder for chaining. + */ + public Builder addIssueModelsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIssueModelsIsMutable(); + issueModels_.add(value); + 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.AnnotatorSelector) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.AnnotatorSelector) + private static final com.google.cloud.contactcenterinsights.v1.AnnotatorSelector DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.contactcenterinsights.v1.AnnotatorSelector(); + } + + public static com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AnnotatorSelector 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.AnnotatorSelector 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/AnnotatorSelectorOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnnotatorSelectorOrBuilder.java new file mode 100644 index 000000000000..cbe804deaf12 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/AnnotatorSelectorOrBuilder.java @@ -0,0 +1,251 @@ +/* + * Copyright 2020 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/resources.proto + +package com.google.cloud.contactcenterinsights.v1; + +public interface AnnotatorSelectorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.AnnotatorSelector) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether to run the interruption annotator.
+   * 
+ * + * bool run_interruption_annotator = 1; + * + * @return The runInterruptionAnnotator. + */ + boolean getRunInterruptionAnnotator(); + + /** + * + * + *
+   * Whether to run the silence annotator.
+   * 
+ * + * bool run_silence_annotator = 2; + * + * @return The runSilenceAnnotator. + */ + boolean getRunSilenceAnnotator(); + + /** + * + * + *
+   * Whether to run the active phrase matcher annotator(s).
+   * 
+ * + * bool run_phrase_matcher_annotator = 3; + * + * @return The runPhraseMatcherAnnotator. + */ + boolean getRunPhraseMatcherAnnotator(); + + /** + * + * + *
+   * The list of phrase matchers to run. If not provided, all active phrase
+   * matchers will be used. If inactive phrase matchers are provided, they will
+   * not be used. Phrase matchers will be run only if
+   * run_phrase_matcher_annotator is set to true. Format:
+   * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+   * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the phraseMatchers. + */ + java.util.List getPhraseMatchersList(); + /** + * + * + *
+   * The list of phrase matchers to run. If not provided, all active phrase
+   * matchers will be used. If inactive phrase matchers are provided, they will
+   * not be used. Phrase matchers will be run only if
+   * run_phrase_matcher_annotator is set to true. Format:
+   * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+   * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @return The count of phraseMatchers. + */ + int getPhraseMatchersCount(); + /** + * + * + *
+   * The list of phrase matchers to run. If not provided, all active phrase
+   * matchers will be used. If inactive phrase matchers are provided, they will
+   * not be used. Phrase matchers will be run only if
+   * run_phrase_matcher_annotator is set to true. Format:
+   * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+   * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The phraseMatchers at the given index. + */ + java.lang.String getPhraseMatchers(int index); + /** + * + * + *
+   * The list of phrase matchers to run. If not provided, all active phrase
+   * matchers will be used. If inactive phrase matchers are provided, they will
+   * not be used. Phrase matchers will be run only if
+   * run_phrase_matcher_annotator is set to true. Format:
+   * projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher}
+   * 
+ * + * repeated string phrase_matchers = 4 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the phraseMatchers at the given index. + */ + com.google.protobuf.ByteString getPhraseMatchersBytes(int index); + + /** + * + * + *
+   * Whether to run the sentiment annotator.
+   * 
+ * + * bool run_sentiment_annotator = 5; + * + * @return The runSentimentAnnotator. + */ + boolean getRunSentimentAnnotator(); + + /** + * + * + *
+   * Whether to run the entity annotator.
+   * 
+ * + * bool run_entity_annotator = 6; + * + * @return The runEntityAnnotator. + */ + boolean getRunEntityAnnotator(); + + /** + * + * + *
+   * Whether to run the intent annotator.
+   * 
+ * + * bool run_intent_annotator = 7; + * + * @return The runIntentAnnotator. + */ + boolean getRunIntentAnnotator(); + + /** + * + * + *
+   * Whether to run the issue model annotator. A model should have already been
+   * deployed for this to take effect.
+   * 
+ * + * bool run_issue_model_annotator = 8; + * + * @return The runIssueModelAnnotator. + */ + boolean getRunIssueModelAnnotator(); + + /** + * + * + *
+   * The issue model to run. If not provided, the most recently deployed topic
+   * model will be used. The provided issue model will only be used for
+   * inference if the issue model is deployed and if run_issue_model_annotator
+   * is set to true. If more than one issue model is provided, only the first
+   * provided issue model will be used for inference.
+   * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @return A list containing the issueModels. + */ + java.util.List getIssueModelsList(); + /** + * + * + *
+   * The issue model to run. If not provided, the most recently deployed topic
+   * model will be used. The provided issue model will only be used for
+   * inference if the issue model is deployed and if run_issue_model_annotator
+   * is set to true. If more than one issue model is provided, only the first
+   * provided issue model will be used for inference.
+   * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @return The count of issueModels. + */ + int getIssueModelsCount(); + /** + * + * + *
+   * The issue model to run. If not provided, the most recently deployed topic
+   * model will be used. The provided issue model will only be used for
+   * inference if the issue model is deployed and if run_issue_model_annotator
+   * is set to true. If more than one issue model is provided, only the first
+   * provided issue model will be used for inference.
+   * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the element to return. + * @return The issueModels at the given index. + */ + java.lang.String getIssueModels(int index); + /** + * + * + *
+   * The issue model to run. If not provided, the most recently deployed topic
+   * model will be used. The provided issue model will only be used for
+   * inference if the issue model is deployed and if run_issue_model_annotator
+   * is set to true. If more than one issue model is provided, only the first
+   * provided issue model will be used for inference.
+   * 
+ * + * repeated string issue_models = 10 [(.google.api.resource_reference) = { ... } + * + * @param index The index of the value to return. + * @return The bytes of the issueModels at the given index. + */ + com.google.protobuf.ByteString getIssueModelsBytes(int index); +} 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 new file mode 100644 index 000000000000..7e06bebdc582 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadata.java @@ -0,0 +1,1550 @@ +/* + * Copyright 2020 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 analyze conversations operation.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata} + */ +public final class BulkAnalyzeConversationsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata) + BulkAnalyzeConversationsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use BulkAnalyzeConversationsMetadata.newBuilder() to construct. + private BulkAnalyzeConversationsMetadata( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BulkAnalyzeConversationsMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BulkAnalyzeConversationsMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata.class, + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata.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 getCreateTime(); + } + + 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 getEndTime(); + } + + public static final int REQUEST_FIELD_NUMBER = 3; + private com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request_; + /** + * + * + *
+   * The original request for bulk analyze.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + * + * @return Whether the request field is set. + */ + @java.lang.Override + public boolean hasRequest() { + return request_ != null; + } + /** + * + * + *
+   * The original request for bulk analyze.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + * + * @return The request. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest getRequest() { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest + .getDefaultInstance() + : request_; + } + /** + * + * + *
+   * The original request for bulk analyze.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequestOrBuilder + getRequestOrBuilder() { + return getRequest(); + } + + public static final int COMPLETED_ANALYSES_COUNT_FIELD_NUMBER = 4; + private int completedAnalysesCount_; + /** + * + * + *
+   * The number of requested analyses that have completed successfully so far.
+   * 
+ * + * int32 completed_analyses_count = 4; + * + * @return The completedAnalysesCount. + */ + @java.lang.Override + public int getCompletedAnalysesCount() { + return completedAnalysesCount_; + } + + public static final int FAILED_ANALYSES_COUNT_FIELD_NUMBER = 5; + private int failedAnalysesCount_; + /** + * + * + *
+   * The number of requested analyses that have failed so far.
+   * 
+ * + * int32 failed_analyses_count = 5; + * + * @return The failedAnalysesCount. + */ + @java.lang.Override + public int getFailedAnalysesCount() { + return failedAnalysesCount_; + } + + public static final int TOTAL_REQUESTED_ANALYSES_COUNT_FIELD_NUMBER = 6; + private int totalRequestedAnalysesCount_; + /** + * + * + *
+   * 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; + * + * @return The totalRequestedAnalysesCount. + */ + @java.lang.Override + public int getTotalRequestedAnalysesCount() { + return totalRequestedAnalysesCount_; + } + + 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()); + } + if (completedAnalysesCount_ != 0) { + output.writeInt32(4, completedAnalysesCount_); + } + if (failedAnalysesCount_ != 0) { + output.writeInt32(5, failedAnalysesCount_); + } + if (totalRequestedAnalysesCount_ != 0) { + output.writeInt32(6, totalRequestedAnalysesCount_); + } + 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()); + } + if (completedAnalysesCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, completedAnalysesCount_); + } + if (failedAnalysesCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, failedAnalysesCount_); + } + if (totalRequestedAnalysesCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(6, totalRequestedAnalysesCount_); + } + 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.BulkAnalyzeConversationsMetadata)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata other = + (com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata) 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 (getCompletedAnalysesCount() != other.getCompletedAnalysesCount()) return false; + if (getFailedAnalysesCount() != other.getFailedAnalysesCount()) return false; + if (getTotalRequestedAnalysesCount() != other.getTotalRequestedAnalysesCount()) 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(); + } + hash = (37 * hash) + COMPLETED_ANALYSES_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getCompletedAnalysesCount(); + hash = (37 * hash) + FAILED_ANALYSES_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getFailedAnalysesCount(); + hash = (37 * hash) + TOTAL_REQUESTED_ANALYSES_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getTotalRequestedAnalysesCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + 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.BulkAnalyzeConversationsMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + 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.BulkAnalyzeConversationsMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + 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.BulkAnalyzeConversationsMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + 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.BulkAnalyzeConversationsMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + 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.BulkAnalyzeConversationsMetadata + 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.BulkAnalyzeConversationsMetadata + 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.BulkAnalyzeConversationsMetadata 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 analyze conversations operation.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata) + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata.class, + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + completedAnalysesCount_ = 0; + + failedAnalysesCount_ = 0; + + totalRequestedAnalysesCount_ = 0; + + 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_BulkAnalyzeConversationsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata build() { + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + buildPartial() { + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata result = + new com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata(this); + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + result.completedAnalysesCount_ = completedAnalysesCount_; + result.failedAnalysesCount_ = failedAnalysesCount_; + result.totalRequestedAnalysesCount_ = totalRequestedAnalysesCount_; + 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.BulkAnalyzeConversationsMetadata) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata other) { + if (other + == com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + .getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (other.getCompletedAnalysesCount() != 0) { + setCompletedAnalysesCount(other.getCompletedAnalysesCount()); + } + if (other.getFailedAnalysesCount() != 0) { + setFailedAnalysesCount(other.getFailedAnalysesCount()); + } + if (other.getTotalRequestedAnalysesCount() != 0) { + setTotalRequestedAnalysesCount(other.getTotalRequestedAnalysesCount()); + } + 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); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 32: + { + completedAnalysesCount_ = input.readInt32(); + + break; + } // case 32 + case 40: + { + failedAnalysesCount_ = input.readInt32(); + + break; + } // case 40 + case 48: + { + totalRequestedAnalysesCount_ = input.readInt32(); + + break; + } // case 48 + 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 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 createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + 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 (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time the operation was created.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 1; + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + 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 endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * 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; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + 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(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + 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 (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + 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.BulkAnalyzeConversationsRequest request_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest, + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest.Builder, + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequestOrBuilder> + requestBuilder_; + /** + * + * + *
+     * The original request for bulk analyze.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + * + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * + * + *
+     * The original request for bulk analyze.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + * + * @return The request. + */ + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest getRequest() { + if (requestBuilder_ == null) { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest + .getDefaultInstance() + : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The original request for bulk analyze.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + */ + public Builder setRequest( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The original request for bulk analyze.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + */ + public Builder setRequest( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest.Builder + builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The original request for bulk analyze.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + */ + public Builder mergeRequest( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest.newBuilder( + request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The original request for bulk analyze.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The original request for bulk analyze.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + */ + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest.Builder + getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The original request for bulk analyze.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + */ + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequestOrBuilder + getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest + .getDefaultInstance() + : request_; + } + } + /** + * + * + *
+     * The original request for bulk analyze.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest, + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest.Builder, + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest, + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest.Builder, + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequestOrBuilder>( + getRequest(), getParentForChildren(), isClean()); + request_ = null; + } + return requestBuilder_; + } + + private int completedAnalysesCount_; + /** + * + * + *
+     * The number of requested analyses that have completed successfully so far.
+     * 
+ * + * int32 completed_analyses_count = 4; + * + * @return The completedAnalysesCount. + */ + @java.lang.Override + public int getCompletedAnalysesCount() { + return completedAnalysesCount_; + } + /** + * + * + *
+     * The number of requested analyses that have completed successfully so far.
+     * 
+ * + * int32 completed_analyses_count = 4; + * + * @param value The completedAnalysesCount to set. + * @return This builder for chaining. + */ + public Builder setCompletedAnalysesCount(int value) { + + completedAnalysesCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of requested analyses that have completed successfully so far.
+     * 
+ * + * int32 completed_analyses_count = 4; + * + * @return This builder for chaining. + */ + public Builder clearCompletedAnalysesCount() { + + completedAnalysesCount_ = 0; + onChanged(); + return this; + } + + private int failedAnalysesCount_; + /** + * + * + *
+     * The number of requested analyses that have failed so far.
+     * 
+ * + * int32 failed_analyses_count = 5; + * + * @return The failedAnalysesCount. + */ + @java.lang.Override + public int getFailedAnalysesCount() { + return failedAnalysesCount_; + } + /** + * + * + *
+     * The number of requested analyses that have failed so far.
+     * 
+ * + * int32 failed_analyses_count = 5; + * + * @param value The failedAnalysesCount to set. + * @return This builder for chaining. + */ + public Builder setFailedAnalysesCount(int value) { + + failedAnalysesCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The number of requested analyses that have failed so far.
+     * 
+ * + * int32 failed_analyses_count = 5; + * + * @return This builder for chaining. + */ + public Builder clearFailedAnalysesCount() { + + failedAnalysesCount_ = 0; + onChanged(); + return this; + } + + private int totalRequestedAnalysesCount_; + /** + * + * + *
+     * 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; + * + * @return The totalRequestedAnalysesCount. + */ + @java.lang.Override + public int getTotalRequestedAnalysesCount() { + return totalRequestedAnalysesCount_; + } + /** + * + * + *
+     * 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; + * + * @param value The totalRequestedAnalysesCount to set. + * @return This builder for chaining. + */ + public Builder setTotalRequestedAnalysesCount(int value) { + + totalRequestedAnalysesCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * 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; + * + * @return This builder for chaining. + */ + public Builder clearTotalRequestedAnalysesCount() { + + totalRequestedAnalysesCount_ = 0; + 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.BulkAnalyzeConversationsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata) + private static final com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata(); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkAnalyzeConversationsMetadata 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.BulkAnalyzeConversationsMetadata + 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/BulkAnalyzeConversationsMetadataOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadataOrBuilder.java new file mode 100644 index 000000000000..f0f97e2611e1 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsMetadataOrBuilder.java @@ -0,0 +1,174 @@ +/* + * Copyright 2020 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 BulkAnalyzeConversationsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata) + 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 analyze.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + * + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + * + * + *
+   * The original request for bulk analyze.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + * + * @return The request. + */ + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest getRequest(); + /** + * + * + *
+   * The original request for bulk analyze.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest request = 3; + * + */ + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequestOrBuilder + getRequestOrBuilder(); + + /** + * + * + *
+   * The number of requested analyses that have completed successfully so far.
+   * 
+ * + * int32 completed_analyses_count = 4; + * + * @return The completedAnalysesCount. + */ + int getCompletedAnalysesCount(); + + /** + * + * + *
+   * The number of requested analyses that have failed so far.
+   * 
+ * + * int32 failed_analyses_count = 5; + * + * @return The failedAnalysesCount. + */ + int getFailedAnalysesCount(); + + /** + * + * + *
+   * 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; + * + * @return The totalRequestedAnalysesCount. + */ + int getTotalRequestedAnalysesCount(); +} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsRequest.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsRequest.java new file mode 100644 index 000000000000..e2959b4ae66a --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsRequest.java @@ -0,0 +1,1209 @@ +/* + * Copyright 2020 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 analyze conversations in bulk.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest} + */ +public final class BulkAnalyzeConversationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest) + BulkAnalyzeConversationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use BulkAnalyzeConversationsRequest.newBuilder() to construct. + private BulkAnalyzeConversationsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BulkAnalyzeConversationsRequest() { + parent_ = ""; + filter_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BulkAnalyzeConversationsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest.class, + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent resource to create analyses in.
+   * 
+ * + * + * 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.
+   * 
+ * + * + * 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; + private volatile java.lang.Object filter_; + /** + * + * + *
+   * Required. Filter used to select the subset of conversations to analyze.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+   * Required. Filter used to select the subset of conversations to analyze.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 ANALYSIS_PERCENTAGE_FIELD_NUMBER = 3; + private float analysisPercentage_; + /** + * + * + *
+   * Required. Percentage of selected conversation to analyze, between
+   * [0, 100].
+   * 
+ * + * float analysis_percentage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The analysisPercentage. + */ + @java.lang.Override + public float getAnalysisPercentage() { + return analysisPercentage_; + } + + public static final int ANNOTATOR_SELECTOR_FIELD_NUMBER = 8; + private com.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotatorSelector_; + /** + * + * + *
+   * To select the annotators to run and the phrase matchers to use
+   * (if any). If not specified, all annotators will be run.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * + * @return Whether the annotatorSelector field is set. + */ + @java.lang.Override + public boolean hasAnnotatorSelector() { + return annotatorSelector_ != null; + } + /** + * + * + *
+   * To select the annotators to run and the phrase matchers to use
+   * (if any). If not specified, all annotators will be run.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * + * @return The annotatorSelector. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getAnnotatorSelector() { + return annotatorSelector_ == null + ? com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance() + : annotatorSelector_; + } + /** + * + * + *
+   * To select the annotators to run and the phrase matchers to use
+   * (if any). If not specified, all annotators will be run.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder + getAnnotatorSelectorOrBuilder() { + return getAnnotatorSelector(); + } + + 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 (java.lang.Float.floatToRawIntBits(analysisPercentage_) != 0) { + output.writeFloat(3, analysisPercentage_); + } + if (annotatorSelector_ != null) { + output.writeMessage(8, getAnnotatorSelector()); + } + 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 (java.lang.Float.floatToRawIntBits(analysisPercentage_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, analysisPercentage_); + } + if (annotatorSelector_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getAnnotatorSelector()); + } + 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.BulkAnalyzeConversationsRequest)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest other = + (com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (java.lang.Float.floatToIntBits(getAnalysisPercentage()) + != java.lang.Float.floatToIntBits(other.getAnalysisPercentage())) return false; + if (hasAnnotatorSelector() != other.hasAnnotatorSelector()) return false; + if (hasAnnotatorSelector()) { + if (!getAnnotatorSelector().equals(other.getAnnotatorSelector())) 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) + ANALYSIS_PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getAnalysisPercentage()); + if (hasAnnotatorSelector()) { + hash = (37 * hash) + ANNOTATOR_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getAnnotatorSelector().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest 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.BulkAnalyzeConversationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest 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.BulkAnalyzeConversationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest 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.BulkAnalyzeConversationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest 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.BulkAnalyzeConversationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest + 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.BulkAnalyzeConversationsRequest 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.BulkAnalyzeConversationsRequest 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.BulkAnalyzeConversationsRequest 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 analyze conversations in bulk.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest) + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest.class, + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest.Builder + .class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + filter_ = ""; + + analysisPercentage_ = 0F; + + if (annotatorSelectorBuilder_ == null) { + annotatorSelector_ = null; + } else { + annotatorSelector_ = null; + annotatorSelectorBuilder_ = null; + } + 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_BulkAnalyzeConversationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest build() { + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest + buildPartial() { + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest result = + new com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest(this); + result.parent_ = parent_; + result.filter_ = filter_; + result.analysisPercentage_ = analysisPercentage_; + if (annotatorSelectorBuilder_ == null) { + result.annotatorSelector_ = annotatorSelector_; + } else { + result.annotatorSelector_ = annotatorSelectorBuilder_.build(); + } + 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.BulkAnalyzeConversationsRequest) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest other) { + if (other + == com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + onChanged(); + } + if (other.getAnalysisPercentage() != 0F) { + setAnalysisPercentage(other.getAnalysisPercentage()); + } + if (other.hasAnnotatorSelector()) { + mergeAnnotatorSelector(other.getAnnotatorSelector()); + } + 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(); + + break; + } // case 10 + case 18: + { + filter_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 29: + { + analysisPercentage_ = input.readFloat(); + + break; + } // case 29 + case 66: + { + input.readMessage( + getAnnotatorSelectorFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource to create analyses in.
+     * 
+ * + * + * 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.
+     * 
+ * + * + * 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.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource to create analyses in.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource to create analyses in.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + /** + * + * + *
+     * Required. Filter used to select the subset of conversations to analyze.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. Filter used to select the subset of conversations to analyze.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + /** + * + * + *
+     * Required. Filter used to select the subset of conversations to analyze.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Filter used to select the subset of conversations to analyze.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + + filter_ = getDefaultInstance().getFilter(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Filter used to select the subset of conversations to analyze.
+     * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + onChanged(); + return this; + } + + private float analysisPercentage_; + /** + * + * + *
+     * Required. Percentage of selected conversation to analyze, between
+     * [0, 100].
+     * 
+ * + * float analysis_percentage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The analysisPercentage. + */ + @java.lang.Override + public float getAnalysisPercentage() { + return analysisPercentage_; + } + /** + * + * + *
+     * Required. Percentage of selected conversation to analyze, between
+     * [0, 100].
+     * 
+ * + * float analysis_percentage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The analysisPercentage to set. + * @return This builder for chaining. + */ + public Builder setAnalysisPercentage(float value) { + + analysisPercentage_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Percentage of selected conversation to analyze, between
+     * [0, 100].
+     * 
+ * + * float analysis_percentage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAnalysisPercentage() { + + analysisPercentage_ = 0F; + onChanged(); + return this; + } + + private com.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotatorSelector_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder> + annotatorSelectorBuilder_; + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * + * @return Whether the annotatorSelector field is set. + */ + public boolean hasAnnotatorSelector() { + return annotatorSelectorBuilder_ != null || annotatorSelector_ != null; + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * + * @return The annotatorSelector. + */ + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getAnnotatorSelector() { + if (annotatorSelectorBuilder_ == null) { + return annotatorSelector_ == null + ? com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance() + : annotatorSelector_; + } else { + return annotatorSelectorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + public Builder setAnnotatorSelector( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector value) { + if (annotatorSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotatorSelector_ = value; + onChanged(); + } else { + annotatorSelectorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + public Builder setAnnotatorSelector( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder builderForValue) { + if (annotatorSelectorBuilder_ == null) { + annotatorSelector_ = builderForValue.build(); + onChanged(); + } else { + annotatorSelectorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + public Builder mergeAnnotatorSelector( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector value) { + if (annotatorSelectorBuilder_ == null) { + if (annotatorSelector_ != null) { + annotatorSelector_ = + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.newBuilder( + annotatorSelector_) + .mergeFrom(value) + .buildPartial(); + } else { + annotatorSelector_ = value; + } + onChanged(); + } else { + annotatorSelectorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + public Builder clearAnnotatorSelector() { + if (annotatorSelectorBuilder_ == null) { + annotatorSelector_ = null; + onChanged(); + } else { + annotatorSelector_ = null; + annotatorSelectorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder + getAnnotatorSelectorBuilder() { + + onChanged(); + return getAnnotatorSelectorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder + getAnnotatorSelectorOrBuilder() { + if (annotatorSelectorBuilder_ != null) { + return annotatorSelectorBuilder_.getMessageOrBuilder(); + } else { + return annotatorSelector_ == null + ? com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance() + : annotatorSelector_; + } + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder> + getAnnotatorSelectorFieldBuilder() { + if (annotatorSelectorBuilder_ == null) { + annotatorSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder>( + getAnnotatorSelector(), getParentForChildren(), isClean()); + annotatorSelector_ = null; + } + return annotatorSelectorBuilder_; + } + + @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.BulkAnalyzeConversationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest) + private static final com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest(); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkAnalyzeConversationsRequest 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.BulkAnalyzeConversationsRequest + 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/BulkAnalyzeConversationsRequestOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsRequestOrBuilder.java new file mode 100644 index 000000000000..459a88a6f579 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsRequestOrBuilder.java @@ -0,0 +1,132 @@ +/* + * Copyright 2020 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 BulkAnalyzeConversationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource to create analyses in.
+   * 
+ * + * + * 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.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. Filter used to select the subset of conversations to analyze.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The filter. + */ + java.lang.String getFilter(); + /** + * + * + *
+   * Required. Filter used to select the subset of conversations to analyze.
+   * 
+ * + * string filter = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Required. Percentage of selected conversation to analyze, between
+   * [0, 100].
+   * 
+ * + * float analysis_percentage = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The analysisPercentage. + */ + float getAnalysisPercentage(); + + /** + * + * + *
+   * To select the annotators to run and the phrase matchers to use
+   * (if any). If not specified, all annotators will be run.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * + * @return Whether the annotatorSelector field is set. + */ + boolean hasAnnotatorSelector(); + /** + * + * + *
+   * To select the annotators to run and the phrase matchers to use
+   * (if any). If not specified, all annotators will be run.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + * + * @return The annotatorSelector. + */ + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getAnnotatorSelector(); + /** + * + * + *
+   * To select the annotators to run and the phrase matchers to use
+   * (if any). If not specified, all annotators will be run.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 8; + */ + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder + getAnnotatorSelectorOrBuilder(); +} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsResponse.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsResponse.java new file mode 100644 index 000000000000..ab447a8e9d7b --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsResponse.java @@ -0,0 +1,642 @@ +/* + * Copyright 2020 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.BulkAnalyzeConversationsResponse} + */ +public final class BulkAnalyzeConversationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse) + BulkAnalyzeConversationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use BulkAnalyzeConversationsResponse.newBuilder() to construct. + private BulkAnalyzeConversationsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private BulkAnalyzeConversationsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BulkAnalyzeConversationsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse.class, + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse.Builder + .class); + } + + public static final int SUCCESSFUL_ANALYSIS_COUNT_FIELD_NUMBER = 1; + private int successfulAnalysisCount_; + /** + * + * + *
+   * Count of successful analyses.
+   * 
+ * + * int32 successful_analysis_count = 1; + * + * @return The successfulAnalysisCount. + */ + @java.lang.Override + public int getSuccessfulAnalysisCount() { + return successfulAnalysisCount_; + } + + public static final int FAILED_ANALYSIS_COUNT_FIELD_NUMBER = 2; + private int failedAnalysisCount_; + /** + * + * + *
+   * Count of failed analyses.
+   * 
+ * + * int32 failed_analysis_count = 2; + * + * @return The failedAnalysisCount. + */ + @java.lang.Override + public int getFailedAnalysisCount() { + return failedAnalysisCount_; + } + + 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 (successfulAnalysisCount_ != 0) { + output.writeInt32(1, successfulAnalysisCount_); + } + if (failedAnalysisCount_ != 0) { + output.writeInt32(2, failedAnalysisCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (successfulAnalysisCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, successfulAnalysisCount_); + } + if (failedAnalysisCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, failedAnalysisCount_); + } + 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.BulkAnalyzeConversationsResponse)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse other = + (com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse) obj; + + if (getSuccessfulAnalysisCount() != other.getSuccessfulAnalysisCount()) return false; + if (getFailedAnalysisCount() != other.getFailedAnalysisCount()) 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) + SUCCESSFUL_ANALYSIS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getSuccessfulAnalysisCount(); + hash = (37 * hash) + FAILED_ANALYSIS_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getFailedAnalysisCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + 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.BulkAnalyzeConversationsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + 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.BulkAnalyzeConversationsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + 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.BulkAnalyzeConversationsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + 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.BulkAnalyzeConversationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + 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.BulkAnalyzeConversationsResponse + 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.BulkAnalyzeConversationsResponse + 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.BulkAnalyzeConversationsResponse 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.BulkAnalyzeConversationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse) + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse.class, + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse.Builder + .class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + successfulAnalysisCount_ = 0; + + failedAnalysisCount_ = 0; + + 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_BulkAnalyzeConversationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse build() { + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + buildPartial() { + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse result = + new com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse(this); + result.successfulAnalysisCount_ = successfulAnalysisCount_; + result.failedAnalysisCount_ = failedAnalysisCount_; + 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.BulkAnalyzeConversationsResponse) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse other) { + if (other + == com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + .getDefaultInstance()) return this; + if (other.getSuccessfulAnalysisCount() != 0) { + setSuccessfulAnalysisCount(other.getSuccessfulAnalysisCount()); + } + if (other.getFailedAnalysisCount() != 0) { + setFailedAnalysisCount(other.getFailedAnalysisCount()); + } + 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 8: + { + successfulAnalysisCount_ = input.readInt32(); + + break; + } // case 8 + case 16: + { + failedAnalysisCount_ = input.readInt32(); + + break; + } // case 16 + 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 successfulAnalysisCount_; + /** + * + * + *
+     * Count of successful analyses.
+     * 
+ * + * int32 successful_analysis_count = 1; + * + * @return The successfulAnalysisCount. + */ + @java.lang.Override + public int getSuccessfulAnalysisCount() { + return successfulAnalysisCount_; + } + /** + * + * + *
+     * Count of successful analyses.
+     * 
+ * + * int32 successful_analysis_count = 1; + * + * @param value The successfulAnalysisCount to set. + * @return This builder for chaining. + */ + public Builder setSuccessfulAnalysisCount(int value) { + + successfulAnalysisCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Count of successful analyses.
+     * 
+ * + * int32 successful_analysis_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearSuccessfulAnalysisCount() { + + successfulAnalysisCount_ = 0; + onChanged(); + return this; + } + + private int failedAnalysisCount_; + /** + * + * + *
+     * Count of failed analyses.
+     * 
+ * + * int32 failed_analysis_count = 2; + * + * @return The failedAnalysisCount. + */ + @java.lang.Override + public int getFailedAnalysisCount() { + return failedAnalysisCount_; + } + /** + * + * + *
+     * Count of failed analyses.
+     * 
+ * + * int32 failed_analysis_count = 2; + * + * @param value The failedAnalysisCount to set. + * @return This builder for chaining. + */ + public Builder setFailedAnalysisCount(int value) { + + failedAnalysisCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Count of failed analyses.
+     * 
+ * + * int32 failed_analysis_count = 2; + * + * @return This builder for chaining. + */ + public Builder clearFailedAnalysisCount() { + + failedAnalysisCount_ = 0; + 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.BulkAnalyzeConversationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse) + private static final com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse(); + } + + public static com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BulkAnalyzeConversationsResponse 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.BulkAnalyzeConversationsResponse + 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/BulkAnalyzeConversationsResponseOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsResponseOrBuilder.java new file mode 100644 index 000000000000..9954e79d6224 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/BulkAnalyzeConversationsResponseOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 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 BulkAnalyzeConversationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Count of successful analyses.
+   * 
+ * + * int32 successful_analysis_count = 1; + * + * @return The successfulAnalysisCount. + */ + int getSuccessfulAnalysisCount(); + + /** + * + * + *
+   * Count of failed analyses.
+   * 
+ * + * int32 failed_analysis_count = 2; + * + * @return The failedAnalysisCount. + */ + int getFailedAnalysisCount(); +} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CallAnnotation.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CallAnnotation.java index 4745e8452007..8af0fd961667 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CallAnnotation.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CallAnnotation.java @@ -79,6 +79,7 @@ public enum DataCase ENTITY_MENTION_DATA(15), INTENT_MATCH_DATA(16), PHRASE_MATCH_DATA(17), + ISSUE_MATCH_DATA(18), DATA_NOT_SET(0); private final int value; @@ -111,6 +112,8 @@ public static DataCase forNumber(int value) { return INTENT_MATCH_DATA; case 17: return PHRASE_MATCH_DATA; + case 18: + return ISSUE_MATCH_DATA; case 0: return DATA_NOT_SET; default: @@ -489,6 +492,58 @@ public com.google.cloud.contactcenterinsights.v1.PhraseMatchData getPhraseMatchD return com.google.cloud.contactcenterinsights.v1.PhraseMatchData.getDefaultInstance(); } + public static final int ISSUE_MATCH_DATA_FIELD_NUMBER = 18; + /** + * + * + *
+   * Data specifying an issue match.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + * + * @return Whether the issueMatchData field is set. + */ + @java.lang.Override + public boolean hasIssueMatchData() { + return dataCase_ == 18; + } + /** + * + * + *
+   * Data specifying an issue match.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + * + * @return The issueMatchData. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IssueMatchData getIssueMatchData() { + if (dataCase_ == 18) { + return (com.google.cloud.contactcenterinsights.v1.IssueMatchData) data_; + } + return com.google.cloud.contactcenterinsights.v1.IssueMatchData.getDefaultInstance(); + } + /** + * + * + *
+   * Data specifying an issue match.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IssueMatchDataOrBuilder + getIssueMatchDataOrBuilder() { + if (dataCase_ == 18) { + return (com.google.cloud.contactcenterinsights.v1.IssueMatchData) data_; + } + return com.google.cloud.contactcenterinsights.v1.IssueMatchData.getDefaultInstance(); + } + public static final int CHANNEL_TAG_FIELD_NUMBER = 1; private int channelTag_; /** @@ -656,6 +711,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dataCase_ == 17) { output.writeMessage(17, (com.google.cloud.contactcenterinsights.v1.PhraseMatchData) data_); } + if (dataCase_ == 18) { + output.writeMessage(18, (com.google.cloud.contactcenterinsights.v1.IssueMatchData) data_); + } getUnknownFields().writeTo(output); } @@ -711,6 +769,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 17, (com.google.cloud.contactcenterinsights.v1.PhraseMatchData) data_); } + if (dataCase_ == 18) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 18, (com.google.cloud.contactcenterinsights.v1.IssueMatchData) data_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -759,6 +822,9 @@ public boolean equals(final java.lang.Object obj) { case 17: if (!getPhraseMatchData().equals(other.getPhraseMatchData())) return false; break; + case 18: + if (!getIssueMatchData().equals(other.getIssueMatchData())) return false; + break; case 0: default: } @@ -812,6 +878,10 @@ public int hashCode() { hash = (37 * hash) + PHRASE_MATCH_DATA_FIELD_NUMBER; hash = (53 * hash) + getPhraseMatchData().hashCode(); break; + case 18: + hash = (37 * hash) + ISSUE_MATCH_DATA_FIELD_NUMBER; + hash = (53 * hash) + getIssueMatchData().hashCode(); + break; case 0: default: } @@ -975,6 +1045,9 @@ public Builder clear() { if (phraseMatchDataBuilder_ != null) { phraseMatchDataBuilder_.clear(); } + if (issueMatchDataBuilder_ != null) { + issueMatchDataBuilder_.clear(); + } channelTag_ = 0; if (annotationStartBoundaryBuilder_ == null) { @@ -1067,6 +1140,13 @@ public com.google.cloud.contactcenterinsights.v1.CallAnnotation buildPartial() { result.data_ = phraseMatchDataBuilder_.build(); } } + if (dataCase_ == 18) { + if (issueMatchDataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = issueMatchDataBuilder_.build(); + } + } result.channelTag_ = channelTag_; if (annotationStartBoundaryBuilder_ == null) { result.annotationStartBoundary_ = annotationStartBoundary_; @@ -1174,6 +1254,11 @@ public Builder mergeFrom(com.google.cloud.contactcenterinsights.v1.CallAnnotatio mergePhraseMatchData(other.getPhraseMatchData()); break; } + case ISSUE_MATCH_DATA: + { + mergeIssueMatchData(other.getIssueMatchData()); + break; + } case DATA_NOT_SET: { break; @@ -1269,6 +1354,12 @@ public Builder mergeFrom( dataCase_ = 17; break; } // case 138 + case 146: + { + input.readMessage(getIssueMatchDataFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 18; + break; + } // case 146 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2807,6 +2898,221 @@ public Builder clearPhraseMatchData() { return phraseMatchDataBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IssueMatchData, + com.google.cloud.contactcenterinsights.v1.IssueMatchData.Builder, + com.google.cloud.contactcenterinsights.v1.IssueMatchDataOrBuilder> + issueMatchDataBuilder_; + /** + * + * + *
+     * Data specifying an issue match.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + * + * @return Whether the issueMatchData field is set. + */ + @java.lang.Override + public boolean hasIssueMatchData() { + return dataCase_ == 18; + } + /** + * + * + *
+     * Data specifying an issue match.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + * + * @return The issueMatchData. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IssueMatchData getIssueMatchData() { + if (issueMatchDataBuilder_ == null) { + if (dataCase_ == 18) { + return (com.google.cloud.contactcenterinsights.v1.IssueMatchData) data_; + } + return com.google.cloud.contactcenterinsights.v1.IssueMatchData.getDefaultInstance(); + } else { + if (dataCase_ == 18) { + return issueMatchDataBuilder_.getMessage(); + } + return com.google.cloud.contactcenterinsights.v1.IssueMatchData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specifying an issue match.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + */ + public Builder setIssueMatchData( + com.google.cloud.contactcenterinsights.v1.IssueMatchData value) { + if (issueMatchDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + issueMatchDataBuilder_.setMessage(value); + } + dataCase_ = 18; + return this; + } + /** + * + * + *
+     * Data specifying an issue match.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + */ + public Builder setIssueMatchData( + com.google.cloud.contactcenterinsights.v1.IssueMatchData.Builder builderForValue) { + if (issueMatchDataBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + issueMatchDataBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 18; + return this; + } + /** + * + * + *
+     * Data specifying an issue match.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + */ + public Builder mergeIssueMatchData( + com.google.cloud.contactcenterinsights.v1.IssueMatchData value) { + if (issueMatchDataBuilder_ == null) { + if (dataCase_ == 18 + && data_ + != com.google.cloud.contactcenterinsights.v1.IssueMatchData.getDefaultInstance()) { + data_ = + com.google.cloud.contactcenterinsights.v1.IssueMatchData.newBuilder( + (com.google.cloud.contactcenterinsights.v1.IssueMatchData) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 18) { + issueMatchDataBuilder_.mergeFrom(value); + } else { + issueMatchDataBuilder_.setMessage(value); + } + } + dataCase_ = 18; + return this; + } + /** + * + * + *
+     * Data specifying an issue match.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + */ + public Builder clearIssueMatchData() { + if (issueMatchDataBuilder_ == null) { + if (dataCase_ == 18) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 18) { + dataCase_ = 0; + data_ = null; + } + issueMatchDataBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Data specifying an issue match.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + */ + public com.google.cloud.contactcenterinsights.v1.IssueMatchData.Builder + getIssueMatchDataBuilder() { + return getIssueMatchDataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data specifying an issue match.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IssueMatchDataOrBuilder + getIssueMatchDataOrBuilder() { + if ((dataCase_ == 18) && (issueMatchDataBuilder_ != null)) { + return issueMatchDataBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 18) { + return (com.google.cloud.contactcenterinsights.v1.IssueMatchData) data_; + } + return com.google.cloud.contactcenterinsights.v1.IssueMatchData.getDefaultInstance(); + } + } + /** + * + * + *
+     * Data specifying an issue match.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IssueMatchData, + com.google.cloud.contactcenterinsights.v1.IssueMatchData.Builder, + com.google.cloud.contactcenterinsights.v1.IssueMatchDataOrBuilder> + getIssueMatchDataFieldBuilder() { + if (issueMatchDataBuilder_ == null) { + if (!(dataCase_ == 18)) { + data_ = com.google.cloud.contactcenterinsights.v1.IssueMatchData.getDefaultInstance(); + } + issueMatchDataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IssueMatchData, + com.google.cloud.contactcenterinsights.v1.IssueMatchData.Builder, + com.google.cloud.contactcenterinsights.v1.IssueMatchDataOrBuilder>( + (com.google.cloud.contactcenterinsights.v1.IssueMatchData) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 18; + onChanged(); + ; + return issueMatchDataBuilder_; + } + private int channelTag_; /** * diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CallAnnotationOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CallAnnotationOrBuilder.java index d584c2a65b03..753d4e1bf8de 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CallAnnotationOrBuilder.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CallAnnotationOrBuilder.java @@ -270,6 +270,41 @@ public interface CallAnnotationOrBuilder */ com.google.cloud.contactcenterinsights.v1.PhraseMatchDataOrBuilder getPhraseMatchDataOrBuilder(); + /** + * + * + *
+   * Data specifying an issue match.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + * + * @return Whether the issueMatchData field is set. + */ + boolean hasIssueMatchData(); + /** + * + * + *
+   * Data specifying an issue match.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + * + * @return The issueMatchData. + */ + com.google.cloud.contactcenterinsights.v1.IssueMatchData getIssueMatchData(); + /** + * + * + *
+   * Data specifying an issue match.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueMatchData issue_match_data = 18; + */ + com.google.cloud.contactcenterinsights.v1.IssueMatchDataOrBuilder getIssueMatchDataOrBuilder(); + /** * * 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 862e719fa960..b20b79c305d5 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 @@ -87,6 +87,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_contactcenterinsights_v1_DeleteConversationRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_contactcenterinsights_v1_DeleteConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_contactcenterinsights_v1_CreateAnalysisRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -107,6 +131,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_contactcenterinsights_v1_DeleteAnalysisRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_contactcenterinsights_v1_DeleteAnalysisRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_ExportInsightsDataRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -195,6 +231,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -314,376 +354,440 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\n\005value\030\002 \001(\005:\0028\001\032\200\001\n\026IssueMatchesStatsE" + "ntry\022\013\n\003key\030\001 \001(\t\022U\n\005value\030\002 \001(\0132F.googl" + "e.cloud.contactcenterinsights.v1.IssueMo" - + "delLabelStats.IssueStats:\0028\001\"\333\001\n\037CreateA" + + "delLabelStats.IssueStats:\0028\001\"\266\002\n\037CreateA" + "nalysisOperationMetadata\0224\n\013create_time\030" + "\001 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221" + "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times" + "tampB\003\340A\003\022O\n\014conversation\030\003 \001(\tB9\340A\003\372A3\n" + "1contactcenterinsights.googleapis.com/Co" - + "nversation\"\277\001\n\031CreateConversationRequest" - + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" - + "leapis.com/Location\022N\n\014conversation\030\002 \001(" - + "\01323.google.cloud.contactcenterinsights.v" - + "1.ConversationB\003\340A\002\022\027\n\017conversation_id\030\003" - + " \001(\t\"\323\001\n\030ListConversationsRequest\0229\n\006par" - + "ent\030\001 \001(\tB)\340A\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\022\016\n\006filter\030\004 \001(\t\022E\n\004view\030\005 \001(" - + "\01627.google.cloud.contactcenterinsights.v" - + "1.ConversationView\"\200\001\n\031ListConversations" - + "Response\022J\n\rconversations\030\001 \003(\01323.google" - + ".cloud.contactcenterinsights.v1.Conversa" - + "tion\022\027\n\017next_page_token\030\002 \001(\t\"\250\001\n\026GetCon" - + "versationRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1" - + "contactcenterinsights.googleapis.com/Con" - + "versation\022E\n\004view\030\002 \001(\01627.google.cloud.c" - + "ontactcenterinsights.v1.ConversationView" - + "\"\234\001\n\031UpdateConversationRequest\022N\n\014conver" - + "sation\030\001 \001(\01323.google.cloud.contactcente" - + "rinsights.v1.ConversationB\003\340A\002\022/\n\013update" - + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"" - + "s\n\031DeleteConversationRequest\022G\n\004name\030\001 \001" - + "(\tB9\340A\002\372A3\n1contactcenterinsights.google" - + "apis.com/Conversation\022\r\n\005force\030\002 \001(\010\"\252\001\n" - + "\025CreateAnalysisRequest\022I\n\006parent\030\001 \001(\tB9" - + "\340A\002\372A3\n1contactcenterinsights.googleapis" - + ".com/Conversation\022F\n\010analysis\030\002 \001(\0132/.go" - + "ogle.cloud.contactcenterinsights.v1.Anal" - + "ysisB\003\340A\002\"\227\001\n\023ListAnalysesRequest\022I\n\006par" - + "ent\030\001 \001(\tB9\340A\002\372A3\n1contactcenterinsights" - + ".googleapis.com/Conversation\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022\016\n\006filter\030\004 " - + "\001(\t\"r\n\024ListAnalysesResponse\022A\n\010analyses\030" - + "\001 \003(\0132/.google.cloud.contactcenterinsigh" - + "ts.v1.Analysis\022\027\n\017next_page_token\030\002 \001(\t\"" - + "Y\n\022GetAnalysisRequest\022C\n\004name\030\001 \001(\tB5\340A\002" - + "\372A/\n-contactcenterinsights.googleapis.co" - + "m/Analysis\"\\\n\025DeleteAnalysisRequest\022C\n\004n" - + "ame\030\001 \001(\tB5\340A\002\372A/\n-contactcenterinsights" - + ".googleapis.com/Analysis\"\230\004\n\031ExportInsig" - + "htsDataRequest\022u\n\025big_query_destination\030" - + "\002 \001(\0132T.google.cloud.contactcenterinsigh" - + "ts.v1.ExportInsightsDataRequest.BigQuery" - + "DestinationH\000\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!l" - + "ocations.googleapis.com/Location\022\016\n\006filt" - + "er\030\003 \001(\t\022\017\n\007kms_key\030\004 \001(\t\022l\n\021write_dispo" - + "sition\030\005 \001(\0162Q.google.cloud.contactcente" - + "rinsights.v1.ExportInsightsDataRequest.W" - + "riteDisposition\032N\n\023BigQueryDestination\022\022" - + "\n\nproject_id\030\003 \001(\t\022\024\n\007dataset\030\001 \001(\tB\003\340A\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\"\204\002\n\032ExportInsightsDataMetadata\0224\n\013cr" - + "eate_time\030\001 \001(\0132\032.google.protobuf.Timest" - + "ampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\022Q\n\007request\030\003 \001(\0132@.g" - + "oogle.cloud.contactcenterinsights.v1.Exp" - + "ortInsightsDataRequest\022*\n\016partial_errors" - + "\030\004 \003(\0132\022.google.rpc.Status\"\034\n\032ExportInsi" - + "ghtsDataResponse\"\241\001\n\027CreateIssueModelReq" + + "nversation\022Y\n\022annotator_selector\030\004 \001(\01328" + + ".google.cloud.contactcenterinsights.v1.A" + + "nnotatorSelectorB\003\340A\003\"\277\001\n\031CreateConversa" + + "tionRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" + + "ations.googleapis.com/Location\022N\n\014conver" + + "sation\030\002 \001(\01323.google.cloud.contactcente" + + "rinsights.v1.ConversationB\003\340A\002\022\027\n\017conver" + + "sation_id\030\003 \001(\t\"\323\001\n\030ListConversationsReq" + "uest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations." - + "googleapis.com/Location\022K\n\013issue_model\030\002" - + " \001(\01321.google.cloud.contactcenterinsight" - + "s.v1.IssueModelB\003\340A\002\"\324\001\n\030CreateIssueMode" - + "lMetadata\0224\n\013create_time\030\001 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022O\n\007re" - + "quest\030\003 \001(\0132>.google.cloud.contactcenter" - + "insights.v1.CreateIssueModelRequest\"\227\001\n\027" - + "UpdateIssueModelRequest\022K\n\013issue_model\030\001" - + " \001(\01321.google.cloud.contactcenterinsight" - + "s.v1.IssueModelB\003\340A\002\022/\n\013update_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMask\"S\n\026ListIss" - + "ueModelsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\"b\n\027Li" - + "stIssueModelsResponse\022G\n\014issue_models\030\001 " - + "\003(\01321.google.cloud.contactcenterinsights" - + ".v1.IssueModel\"]\n\024GetIssueModelRequest\022E" - + "\n\004name\030\001 \001(\tB7\340A\002\372A1\n/contactcenterinsig" - + "hts.googleapis.com/IssueModel\"`\n\027DeleteI" - + "ssueModelRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/" - + "contactcenterinsights.googleapis.com/Iss" - + "ueModel\"\324\001\n\030DeleteIssueModelMetadata\0224\n\013" - + "create_time\030\001 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022O\n\007request\030\003 \001(\0132>" - + ".google.cloud.contactcenterinsights.v1.D" - + "eleteIssueModelRequest\"`\n\027DeployIssueMod" - + "elRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/contact" - + "centerinsights.googleapis.com/IssueModel" - + "\"\032\n\030DeployIssueModelResponse\"\324\001\n\030DeployI" - + "ssueModelMetadata\0224\n\013create_time\030\001 \001(\0132\032" + + "googleapis.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\022E" + + "\n\004view\030\005 \001(\01627.google.cloud.contactcente" + + "rinsights.v1.ConversationView\"\200\001\n\031ListCo" + + "nversationsResponse\022J\n\rconversations\030\001 \003" + + "(\01323.google.cloud.contactcenterinsights." + + "v1.Conversation\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\250\001\n\026GetConversationRequest\022G\n\004name\030\001 \001(" + + "\tB9\340A\002\372A3\n1contactcenterinsights.googlea" + + "pis.com/Conversation\022E\n\004view\030\002 \001(\01627.goo" + + "gle.cloud.contactcenterinsights.v1.Conve" + + "rsationView\"\234\001\n\031UpdateConversationReques" + + "t\022N\n\014conversation\030\001 \001(\01323.google.cloud.c" + + "ontactcenterinsights.v1.ConversationB\003\340A" + + "\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMask\"s\n\031DeleteConversationRequest\022" + + "G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1contactcenterinsi" + + "ghts.googleapis.com/Conversation\022\r\n\005forc" + + "e\030\002 \001(\010\"\377\004\n\032IngestConversationsRequest\022a" + + "\n\ngcs_source\030\002 \001(\0132K.google.cloud.contac" + + "tcenterinsights.v1.IngestConversationsRe" + + "quest.GcsSourceH\000\022|\n\030transcript_object_c" + + "onfig\030\003 \001(\0132X.google.cloud.contactcenter" + + "insights.v1.IngestConversationsRequest.T" + + "ranscriptObjectConfigH\001\0229\n\006parent\030\001 \001(\tB" + + ")\340A\002\372A#\n!locations.googleapis.com/Locati" + + "on\022q\n\023conversation_config\030\004 \001(\0132T.google" + + ".cloud.contactcenterinsights.v1.IngestCo" + + "nversationsRequest.ConversationConfig\032$\n" + + "\tGcsSource\022\027\n\nbucket_uri\030\001 \001(\tB\003\340A\002\032i\n\026T" + + "ranscriptObjectConfig\022O\n\006medium\030\001 \001(\0162:." + + "google.cloud.contactcenterinsights.v1.Co" + + "nversation.MediumB\003\340A\002\032&\n\022ConversationCo" + + "nfig\022\020\n\010agent_id\030\001 \001(\tB\010\n\006sourceB\017\n\robje" + + "ct_config\"\220\002\n\033IngestConversationsMetadat" + + "a\0224\n\013create_time\030\001 \001(\0132\032.google.protobuf" + + ".TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022W\n\007request\030\003 " + + "\001(\0132A.google.cloud.contactcenterinsights" + + ".v1.IngestConversationsRequestB\003\340A\003\022/\n\016p" + + "artial_errors\030\004 \003(\0132\022.google.rpc.StatusB" + + "\003\340A\003\"\035\n\033IngestConversationsResponse\"\252\001\n\025" + + "CreateAnalysisRequest\022I\n\006parent\030\001 \001(\tB9\340" + + "A\002\372A3\n1contactcenterinsights.googleapis." + + "com/Conversation\022F\n\010analysis\030\002 \001(\0132/.goo" + + "gle.cloud.contactcenterinsights.v1.Analy" + + "sisB\003\340A\002\"\227\001\n\023ListAnalysesRequest\022I\n\006pare" + + "nt\030\001 \001(\tB9\340A\002\372A3\n1contactcenterinsights." + + "googleapis.com/Conversation\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\"r\n\024ListAnalysesResponse\022A\n\010analyses\030\001" + + " \003(\0132/.google.cloud.contactcenterinsight" + + "s.v1.Analysis\022\027\n\017next_page_token\030\002 \001(\t\"Y" + + "\n\022GetAnalysisRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372" + + "A/\n-contactcenterinsights.googleapis.com" + + "/Analysis\"\\\n\025DeleteAnalysisRequest\022C\n\004na" + + "me\030\001 \001(\tB5\340A\002\372A/\n-contactcenterinsights." + + "googleapis.com/Analysis\"\351\001\n\037BulkAnalyzeC" + + "onversationsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002" + + "\372A#\n!locations.googleapis.com/Location\022\023" + + "\n\006filter\030\002 \001(\tB\003\340A\002\022 \n\023analysis_percenta" + + "ge\030\003 \001(\002B\003\340A\002\022T\n\022annotator_selector\030\010 \001(" + + "\01328.google.cloud.contactcenterinsights.v" + + "1.AnnotatorSelector\"\303\002\n BulkAnalyzeConve" + + "rsationsMetadata\022/\n\013create_time\030\001 \001(\0132\032." + + "google.protobuf.Timestamp\022,\n\010end_time\030\002 " + + "\001(\0132\032.google.protobuf.Timestamp\022W\n\007reque" + + "st\030\003 \001(\0132F.google.cloud.contactcenterins" + + "ights.v1.BulkAnalyzeConversationsRequest" + + "\022 \n\030completed_analyses_count\030\004 \001(\005\022\035\n\025fa" + + "iled_analyses_count\030\005 \001(\005\022&\n\036total_reque" + + "sted_analyses_count\030\006 \001(\005\"d\n BulkAnalyze" + + "ConversationsResponse\022!\n\031successful_anal" + + "ysis_count\030\001 \001(\005\022\035\n\025failed_analysis_coun" + + "t\030\002 \001(\005\"\230\004\n\031ExportInsightsDataRequest\022u\n" + + "\025big_query_destination\030\002 \001(\0132T.google.cl" + + "oud.contactcenterinsights.v1.ExportInsig" + + "htsDataRequest.BigQueryDestinationH\000\0229\n\006" + + "parent\030\001 \001(\tB)\340A\002\372A#\n!locations.googleap" + + "is.com/Location\022\016\n\006filter\030\003 \001(\t\022\017\n\007kms_k" + + "ey\030\004 \001(\t\022l\n\021write_disposition\030\005 \001(\0162Q.go" + + "ogle.cloud.contactcenterinsights.v1.Expo" + + "rtInsightsDataRequest.WriteDisposition\032N" + + "\n\023BigQueryDestination\022\022\n\nproject_id\030\003 \001(" + + "\t\022\024\n\007dataset\030\001 \001(\tB\003\340A\002\022\r\n\005table\030\002 \001(\t\"[" + + "\n\020WriteDisposition\022!\n\035WRITE_DISPOSITION_" + + "UNSPECIFIED\020\000\022\022\n\016WRITE_TRUNCATE\020\001\022\020\n\014WRI" + + "TE_APPEND\020\002B\r\n\013destination\"\204\002\n\032ExportIns" + + "ightsDataMetadata\0224\n\013create_time\030\001 \001(\0132\032" + ".google.protobuf.TimestampB\003\340A\003\0221\n\010end_t" + "ime\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340" - + "A\003\022O\n\007request\030\003 \001(\0132>.google.cloud.conta" - + "ctcenterinsights.v1.DeployIssueModelRequ" - + "est\"b\n\031UndeployIssueModelRequest\022E\n\004name" + + "A\003\022Q\n\007request\030\003 \001(\0132@.google.cloud.conta" + + "ctcenterinsights.v1.ExportInsightsDataRe" + + "quest\022*\n\016partial_errors\030\004 \003(\0132\022.google.r" + + "pc.Status\"\034\n\032ExportInsightsDataResponse\"" + + "\241\001\n\027CreateIssueModelRequest\0229\n\006parent\030\001 " + + "\001(\tB)\340A\002\372A#\n!locations.googleapis.com/Lo" + + "cation\022K\n\013issue_model\030\002 \001(\01321.google.clo" + + "ud.contactcenterinsights.v1.IssueModelB\003" + + "\340A\002\"\324\001\n\030CreateIssueModelMetadata\0224\n\013crea" + + "te_time\030\001 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022O\n\007request\030\003 \001(\0132>.goo" + + "gle.cloud.contactcenterinsights.v1.Creat" + + "eIssueModelRequest\"\227\001\n\027UpdateIssueModelR" + + "equest\022K\n\013issue_model\030\001 \001(\01321.google.clo" + + "ud.contactcenterinsights.v1.IssueModelB\003" + + "\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMask\"S\n\026ListIssueModelsRequest\0229" + + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.google" + + "apis.com/Location\"b\n\027ListIssueModelsResp" + + "onse\022G\n\014issue_models\030\001 \003(\01321.google.clou" + + "d.contactcenterinsights.v1.IssueModel\"]\n" + + "\024GetIssueModelRequest\022E\n\004name\030\001 \001(\tB7\340A\002" + + "\372A1\n/contactcenterinsights.googleapis.co" + + "m/IssueModel\"`\n\027DeleteIssueModelRequest\022" + + "E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/contactcenterinsi" + + "ghts.googleapis.com/IssueModel\"\324\001\n\030Delet" + + "eIssueModelMetadata\0224\n\013create_time\030\001 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003\0221\n\010end" + + "_time\030\002 \001(\0132\032.google.protobuf.TimestampB" + + "\003\340A\003\022O\n\007request\030\003 \001(\0132>.google.cloud.con" + + "tactcenterinsights.v1.DeleteIssueModelRe" + + "quest\"`\n\027DeployIssueModelRequest\022E\n\004name" + "\030\001 \001(\tB7\340A\002\372A1\n/contactcenterinsights.go" - + "ogleapis.com/IssueModel\"\034\n\032UndeployIssue" - + "ModelResponse\"\330\001\n\032UndeployIssueModelMeta" - + "data\0224\n\013create_time\030\001 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022Q\n\007request" - + "\030\003 \001(\0132@.google.cloud.contactcenterinsig" - + "hts.v1.UndeployIssueModelRequest\"S\n\017GetI" - + "ssueRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*conta" - + "ctcenterinsights.googleapis.com/Issue\"\\\n" - + "\021ListIssuesRequest\022G\n\006parent\030\001 \001(\tB7\340A\002\372" - + "A1\n/contactcenterinsights.googleapis.com" - + "/IssueModel\"R\n\022ListIssuesResponse\022<\n\006iss" - + "ues\030\001 \003(\0132,.google.cloud.contactcenterin" - + "sights.v1.Issue\"\207\001\n\022UpdateIssueRequest\022@" - + "\n\005issue\030\001 \001(\0132,.google.cloud.contactcent" - + "erinsights.v1.IssueB\003\340A\002\022/\n\013update_mask\030" - + "\002 \001(\0132\032.google.protobuf.FieldMask\"o\n\037Cal" - + "culateIssueModelStatsRequest\022L\n\013issue_mo" - + "del\030\001 \001(\tB7\340A\002\372A1\n/contactcenterinsights" - + ".googleapis.com/IssueModel\"v\n CalculateI" - + "ssueModelStatsResponse\022R\n\rcurrent_stats\030" - + "\004 \001(\0132;.google.cloud.contactcenterinsigh" - + "ts.v1.IssueModelLabelStats\"\252\001\n\032CreatePhr" - + "aseMatcherRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A" - + "#\n!locations.googleapis.com/Location\022Q\n\016" - + "phrase_matcher\030\002 \001(\01324.google.cloud.cont" - + "actcenterinsights.v1.PhraseMatcherB\003\340A\002\"" - + "\215\001\n\031ListPhraseMatchersRequest\0229\n\006parent\030" - + "\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com/" - + "Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_toke" - + "n\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"\204\001\n\032ListPhraseMa" - + "tchersResponse\022M\n\017phrase_matchers\030\001 \003(\0132" - + "4.google.cloud.contactcenterinsights.v1." - + "PhraseMatcher\022\027\n\017next_page_token\030\002 \001(\t\"c" - + "\n\027GetPhraseMatcherRequest\022H\n\004name\030\001 \001(\tB" - + ":\340A\002\372A4\n2contactcenterinsights.googleapi" - + "s.com/PhraseMatcher\"f\n\032DeletePhraseMatch" - + "erRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2contact" - + "centerinsights.googleapis.com/PhraseMatc" - + "her\"\240\001\n\032UpdatePhraseMatcherRequest\022Q\n\016ph" - + "rase_matcher\030\001 \001(\01324.google.cloud.contac" - + "tcenterinsights.v1.PhraseMatcherB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" - + "ldMask\"Y\n\022GetSettingsRequest\022C\n\004name\030\001 \001" - + "(\tB5\340A\002\372A/\n-contactcenterinsights.google" - + "apis.com/Settings\"\225\001\n\025UpdateSettingsRequ" - + "est\022F\n\010settings\030\001 \001(\0132/.google.cloud.con" - + "tactcenterinsights.v1.SettingsB\003\340A\002\0224\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\"\216\001\n\021CreateViewRequest\0229\n\006paren" - + "t\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.co" - + "m/Location\022>\n\004view\030\002 \001(\0132+.google.cloud." - + "contactcenterinsights.v1.ViewB\003\340A\002\"Q\n\016Ge" - + "tViewRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)cont" - + "actcenterinsights.googleapis.com/View\"t\n" - + "\020ListViewsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A" - + "#\n!locations.googleapis.com/Location\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"h\n\021L" - + "istViewsResponse\022:\n\005views\030\001 \003(\0132+.google" - + ".cloud.contactcenterinsights.v1.View\022\027\n\017" - + "next_page_token\030\002 \001(\t\"\204\001\n\021UpdateViewRequ" - + "est\022>\n\004view\030\001 \001(\0132+.google.cloud.contact" - + "centerinsights.v1.ViewB\003\340A\002\022/\n\013update_ma" - + "sk\030\002 \001(\0132\032.google.protobuf.FieldMask\"T\n\021" - + "DeleteViewRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n" - + ")contactcenterinsights.googleapis.com/Vi" - + "ew*J\n\020ConversationView\022!\n\035CONVERSATION_V" - + "IEW_UNSPECIFIED\020\000\022\010\n\004FULL\020\002\022\t\n\005BASIC\020\0012\345" - + ":\n\025ContactCenterInsights\022\372\001\n\022CreateConve" - + "rsation\022@.google.cloud.contactcenterinsi" - + "ghts.v1.CreateConversationRequest\0323.goog" - + "le.cloud.contactcenterinsights.v1.Conver" - + "sation\"m\202\323\344\223\002A\"1/v1/{parent=projects/*/l" - + "ocations/*}/conversations:\014conversation\332" - + "A#parent,conversation,conversation_id\022\374\001" - + "\n\022UpdateConversation\022@.google.cloud.cont" - + "actcenterinsights.v1.UpdateConversationR" + + "ogleapis.com/IssueModel\"\032\n\030DeployIssueMo" + + "delResponse\"\324\001\n\030DeployIssueModelMetadata" + + "\0224\n\013create_time\030\001 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.googl" + + "e.protobuf.TimestampB\003\340A\003\022O\n\007request\030\003 \001" + + "(\0132>.google.cloud.contactcenterinsights." + + "v1.DeployIssueModelRequest\"b\n\031UndeployIs" + + "sueModelRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/c" + + "ontactcenterinsights.googleapis.com/Issu" + + "eModel\"\034\n\032UndeployIssueModelResponse\"\330\001\n" + + "\032UndeployIssueModelMetadata\0224\n\013create_ti" + + "me\030\001 \001(\0132\032.google.protobuf.TimestampB\003\340A" + + "\003\0221\n\010end_time\030\002 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\022Q\n\007request\030\003 \001(\0132@.google.c" + + "loud.contactcenterinsights.v1.UndeployIs" + + "sueModelRequest\"S\n\017GetIssueRequest\022@\n\004na" + + "me\030\001 \001(\tB2\340A\002\372A,\n*contactcenterinsights." + + "googleapis.com/Issue\"\\\n\021ListIssuesReques" + + "t\022G\n\006parent\030\001 \001(\tB7\340A\002\372A1\n/contactcenter" + + "insights.googleapis.com/IssueModel\"R\n\022Li" + + "stIssuesResponse\022<\n\006issues\030\001 \003(\0132,.googl" + + "e.cloud.contactcenterinsights.v1.Issue\"\207" + + "\001\n\022UpdateIssueRequest\022@\n\005issue\030\001 \001(\0132,.g" + + "oogle.cloud.contactcenterinsights.v1.Iss" + + "ueB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.pr" + + "otobuf.FieldMask\"V\n\022DeleteIssueRequest\022@" + + "\n\004name\030\001 \001(\tB2\340A\002\372A,\n*contactcenterinsig" + + "hts.googleapis.com/Issue\"o\n\037CalculateIss" + + "ueModelStatsRequest\022L\n\013issue_model\030\001 \001(\t" + + "B7\340A\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\"\252\001\n\032CreatePhraseMatche" + + "rRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locati" + + "ons.googleapis.com/Location\022Q\n\016phrase_ma" + + "tcher\030\002 \001(\01324.google.cloud.contactcenter" + + "insights.v1.PhraseMatcherB\003\340A\002\"\215\001\n\031ListP" + + "hraseMatchersRequest\0229\n\006parent\030\001 \001(\tB)\340A" + + "\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\022\016" + + "\n\006filter\030\004 \001(\t\"\204\001\n\032ListPhraseMatchersRes" + + "ponse\022M\n\017phrase_matchers\030\001 \003(\01324.google." + + "cloud.contactcenterinsights.v1.PhraseMat" + + "cher\022\027\n\017next_page_token\030\002 \001(\t\"c\n\027GetPhra" + + "seMatcherRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2" + + "contactcenterinsights.googleapis.com/Phr" + + "aseMatcher\"f\n\032DeletePhraseMatcherRequest" + + "\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2contactcenterins" + + "ights.googleapis.com/PhraseMatcher\"\240\001\n\032U" + + "pdatePhraseMatcherRequest\022Q\n\016phrase_matc" + + "her\030\001 \001(\01324.google.cloud.contactcenterin" + + "sights.v1.PhraseMatcherB\003\340A\002\022/\n\013update_m" + + "ask\030\002 \001(\0132\032.google.protobuf.FieldMask\"Y\n" + + "\022GetSettingsRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A" + + "/\n-contactcenterinsights.googleapis.com/" + + "Settings\"\225\001\n\025UpdateSettingsRequest\022F\n\010se" + + "ttings\030\001 \001(\0132/.google.cloud.contactcente" + + "rinsights.v1.SettingsB\003\340A\002\0224\n\013update_mas" + + "k\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002" + + "\"\216\001\n\021CreateViewRequest\0229\n\006parent\030\001 \001(\tB)" + + "\340A\002\372A#\n!locations.googleapis.com/Locatio" + + "n\022>\n\004view\030\002 \001(\0132+.google.cloud.contactce" + + "nterinsights.v1.ViewB\003\340A\002\"Q\n\016GetViewRequ" + + "est\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)contactcenter" + + "insights.googleapis.com/View\"t\n\020ListView" + + "sRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locati" + + "ons.googleapis.com/Location\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"h\n\021ListViewsR" + + "esponse\022:\n\005views\030\001 \003(\0132+.google.cloud.co" + + "ntactcenterinsights.v1.View\022\027\n\017next_page" + + "_token\030\002 \001(\t\"\204\001\n\021UpdateViewRequest\022>\n\004vi" + + "ew\030\001 \001(\0132+.google.cloud.contactcenterins" + + "ights.v1.ViewB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMask\"T\n\021DeleteVie" + + "wRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)contactc" + + "enterinsights.googleapis.com/View*J\n\020Con" + + "versationView\022!\n\035CONVERSATION_VIEW_UNSPE" + + "CIFIED\020\000\022\010\n\004FULL\020\002\022\t\n\005BASIC\020\0012\321@\n\025Contac" + + "tCenterInsights\022\372\001\n\022CreateConversation\022@" + + ".google.cloud.contactcenterinsights.v1.C" + + "reateConversationRequest\0323.google.cloud." + + "contactcenterinsights.v1.Conversation\"m\202" + + "\323\344\223\002A\"1/v1/{parent=projects/*/locations/" + + "*}/conversations:\014conversation\332A#parent," + + "conversation,conversation_id\022\374\001\n\022UpdateC" + + "onversation\022@.google.cloud.contactcenter" + + "insights.v1.UpdateConversationRequest\0323." + + "google.cloud.contactcenterinsights.v1.Co" + + "nversation\"o\202\323\344\223\002N2>/v1/{conversation.na" + + "me=projects/*/locations/*/conversations/" + + "*}:\014conversation\332A\030conversation,update_m" + + "ask\022\307\001\n\017GetConversation\022=.google.cloud.c" + + "ontactcenterinsights.v1.GetConversationR" + "equest\0323.google.cloud.contactcenterinsig" - + "hts.v1.Conversation\"o\202\323\344\223\002N2>/v1/{conver" - + "sation.name=projects/*/locations/*/conve" - + "rsations/*}:\014conversation\332A\030conversation" - + ",update_mask\022\307\001\n\017GetConversation\022=.googl" - + "e.cloud.contactcenterinsights.v1.GetConv" - + "ersationRequest\0323.google.cloud.contactce" - + "nterinsights.v1.Conversation\"@\202\323\344\223\0023\0221/v" - + "1/{name=projects/*/locations/*/conversat" - + "ions/*}\332A\004name\022\332\001\n\021ListConversations\022?.g" - + "oogle.cloud.contactcenterinsights.v1.Lis" - + "tConversationsRequest\032@.google.cloud.con" - + "tactcenterinsights.v1.ListConversationsR" - + "esponse\"B\202\323\344\223\0023\0221/v1/{parent=projects/*/" - + "locations/*}/conversations\332A\006parent\022\260\001\n\022" - + "DeleteConversation\022@.google.cloud.contac" - + "tcenterinsights.v1.DeleteConversationReq" - + "uest\032\026.google.protobuf.Empty\"@\202\323\344\223\0023*1/v" - + "1/{name=projects/*/locations/*/conversat" - + "ions/*}\332A\004name\022\376\001\n\016CreateAnalysis\022<.goog" - + "le.cloud.contactcenterinsights.v1.Create" - + "AnalysisRequest\032\035.google.longrunning.Ope" - + "ration\"\216\001\202\323\344\223\002H\"\022\022*.google.c" - + "loud.contactcenterinsights.v1.CreateIssu" - + "eModelRequest\032\035.google.longrunning.Opera" - + "tion\"\202\001\202\323\344\223\002>\"//v1/{parent=projects/*/lo" - + "cations/*}/issueModels:\013issue_model\332A\022pa" - + "rent,issue_model\312A&\n\nIssueModel\022\030CreateI" - + "ssueModelMetadata\022\361\001\n\020UpdateIssueModel\022>" - + ".google.cloud.contactcenterinsights.v1.U" - + "pdateIssueModelRequest\0321.google.cloud.co" - + "ntactcenterinsights.v1.IssueModel\"j\202\323\344\223\002" - + "J2;/v1/{issue_model.name=projects/*/loca" - + "tions/*/issueModels/*}:\013issue_model\332A\027is" - + "sue_model,update_mask\022\277\001\n\rGetIssueModel\022" - + ";.google.cloud.contactcenterinsights.v1." - + "GetIssueModelRequest\0321.google.cloud.cont" - + "actcenterinsights.v1.IssueModel\">\202\323\344\223\0021\022" + + "hts.v1.Conversation\"@\202\323\344\223\0023\0221/v1/{name=p" + + "rojects/*/locations/*/conversations/*}\332A" + + "\004name\022\332\001\n\021ListConversations\022?.google.clo" + + "ud.contactcenterinsights.v1.ListConversa" + + "tionsRequest\032@.google.cloud.contactcente" + + "rinsights.v1.ListConversationsResponse\"B" + + "\202\323\344\223\0023\0221/v1/{parent=projects/*/locations" + + "/*}/conversations\332A\006parent\022\260\001\n\022DeleteCon" + + "versation\022@.google.cloud.contactcenterin" + + "sights.v1.DeleteConversationRequest\032\026.go" + + "ogle.protobuf.Empty\"@\202\323\344\223\0023*1/v1/{name=p" + + "rojects/*/locations/*/conversations/*}\332A" + + "\004name\022\376\001\n\016CreateAnalysis\022<.google.cloud." + + "contactcenterinsights.v1.CreateAnalysisR" + + "equest\032\035.google.longrunning.Operation\"\216\001" + + "\202\323\344\223\002H\"\022\022*.g" + + "oogle.cloud.contactcenterinsights.v1.Cre" + + "ateIssueModelRequest\032\035.google.longrunnin" + + "g.Operation\"\202\001\202\323\344\223\002>\"//v1/{parent=projec" + + "ts/*/locations/*}/issueModels:\013issue_mod" + + "el\332A\022parent,issue_model\312A&\n\nIssueModel\022\030" + + "CreateIssueModelMetadata\022\361\001\n\020UpdateIssue" + + "Model\022>.google.cloud.contactcenterinsigh" + + "ts.v1.UpdateIssueModelRequest\0321.google.c" + + "loud.contactcenterinsights.v1.IssueModel" + + "\"j\202\323\344\223\002J2;/v1/{issue_model.name=projects" + + "/*/locations/*/issueModels/*}:\013issue_mod" + + "el\332A\027issue_model,update_mask\022\277\001\n\rGetIssu" + + "eModel\022;.google.cloud.contactcenterinsig" + + "hts.v1.GetIssueModelRequest\0321.google.clo" + + "ud.contactcenterinsights.v1.IssueModel\">" + + "\202\323\344\223\0021\022//v1/{name=projects/*/locations/*" + + "/issueModels/*}\332A\004name\022\322\001\n\017ListIssueMode" + + "ls\022=.google.cloud.contactcenterinsights." + + "v1.ListIssueModelsRequest\032>.google.cloud" + + ".contactcenterinsights.v1.ListIssueModel" + + "sResponse\"@\202\323\344\223\0021\022//v1/{parent=projects/" + + "*/locations/*}/issueModels\332A\006parent\022\345\001\n\020" + + "DeleteIssueModel\022>.google.cloud.contactc" + + "enterinsights.v1.DeleteIssueModelRequest" + + "\032\035.google.longrunning.Operation\"r\202\323\344\223\0021*" + "//v1/{name=projects/*/locations/*/issueM" - + "odels/*}\332A\004name\022\322\001\n\017ListIssueModels\022=.go" - + "ogle.cloud.contactcenterinsights.v1.List" - + "IssueModelsRequest\032>.google.cloud.contac" - + "tcenterinsights.v1.ListIssueModelsRespon" - + "se\"@\202\323\344\223\0021\022//v1/{parent=projects/*/locat" - + "ions/*}/issueModels\332A\006parent\022\345\001\n\020DeleteI" - + "ssueModel\022>.google.cloud.contactcenterin" - + "sights.v1.DeleteIssueModelRequest\032\035.goog" - + "le.longrunning.Operation\"r\202\323\344\223\0021*//v1/{n" - + "ame=projects/*/locations/*/issueModels/*" - + "}\332A\004name\312A1\n\025google.protobuf.Empty\022\030Dele" - + "teIssueModelMetadata\022\362\001\n\020DeployIssueMode" - + "l\022>.google.cloud.contactcenterinsights.v" - + "1.DeployIssueModelRequest\032\035.google.longr" - + "unning.Operation\"\177\202\323\344\223\002;\"6/v1/{name=proj" - + "ects/*/locations/*/issueModels/*}:deploy" - + ":\001*\332A\004name\312A4\n\030DeployIssueModelResponse\022" - + "\030DeployIssueModelMetadata\022\375\001\n\022UndeployIs" - + "sueModel\022@.google.cloud.contactcenterins" - + "ights.v1.UndeployIssueModelRequest\032\035.goo" - + "gle.longrunning.Operation\"\205\001\202\323\344\223\002=\"8/v1/" - + "{name=projects/*/locations/*/issueModels" - + "/*}:undeploy:\001*\332A\004name\312A8\n\032UndeployIssue" - + "ModelResponse\022\032UndeployIssueModelMetadat" - + "a\022\271\001\n\010GetIssue\0226.google.cloud.contactcen" - + "terinsights.v1.GetIssueRequest\032,.google." - + "cloud.contactcenterinsights.v1.Issue\"G\202\323" - + "\344\223\002:\0228/v1/{name=projects/*/locations/*/i" - + "ssueModels/*/issues/*}\332A\004name\022\314\001\n\nListIs" - + "sues\0228.google.cloud.contactcenterinsight" - + "s.v1.ListIssuesRequest\0329.google.cloud.co" - + "ntactcenterinsights.v1.ListIssuesRespons" - + "e\"I\202\323\344\223\002:\0228/v1/{parent=projects/*/locati" - + "ons/*/issueModels/*}/issues\332A\006parent\022\331\001\n" - + "\013UpdateIssue\0229.google.cloud.contactcente" - + "rinsights.v1.UpdateIssueRequest\032,.google" - + ".cloud.contactcenterinsights.v1.Issue\"a\202" - + "\323\344\223\002G2>/v1/{issue.name=projects/*/locati" - + "ons/*/issueModels/*/issues/*}:\005issue\332A\021i" - + "ssue,update_mask\022\222\002\n\030CalculateIssueModel" - + "Stats\022F.google.cloud.contactcenterinsigh" - + "ts.v1.CalculateIssueModelStatsRequest\032G." - + "google.cloud.contactcenterinsights.v1.Ca" - + "lculateIssueModelStatsResponse\"e\202\323\344\223\002Q\022O" - + "/v1/{issue_model=projects/*/locations/*/" - + "issueModels/*}:calculateIssueModelStats\332" - + "A\013issue_model\022\362\001\n\023CreatePhraseMatcher\022A." - + "google.cloud.contactcenterinsights.v1.Cr" - + "eatePhraseMatcherRequest\0324.google.cloud." - + "contactcenterinsights.v1.PhraseMatcher\"b" - + "\202\323\344\223\002D\"2/v1/{parent=projects/*/locations" - + "/*}/phraseMatchers:\016phrase_matcher\332A\025par" - + "ent,phrase_matcher\022\313\001\n\020GetPhraseMatcher\022" - + ">.google.cloud.contactcenterinsights.v1." - + "GetPhraseMatcherRequest\0324.google.cloud.c" - + "ontactcenterinsights.v1.PhraseMatcher\"A\202" - + "\323\344\223\0024\0222/v1/{name=projects/*/locations/*/" - + "phraseMatchers/*}\332A\004name\022\336\001\n\022ListPhraseM" - + "atchers\022@.google.cloud.contactcenterinsi" - + "ghts.v1.ListPhraseMatchersRequest\032A.goog" - + "le.cloud.contactcenterinsights.v1.ListPh" - + "raseMatchersResponse\"C\202\323\344\223\0024\0222/v1/{paren" - + "t=projects/*/locations/*}/phraseMatchers" - + "\332A\006parent\022\263\001\n\023DeletePhraseMatcher\022A.goog" - + "le.cloud.contactcenterinsights.v1.Delete" - + "PhraseMatcherRequest\032\026.google.protobuf.E" - + "mpty\"A\202\323\344\223\0024*2/v1/{name=projects/*/locat" - + "ions/*/phraseMatchers/*}\332A\004name\022\206\002\n\023Upda" - + "tePhraseMatcher\022A.google.cloud.contactce" - + "nterinsights.v1.UpdatePhraseMatcherReque" + + "odels/*}\332A\004name\312A1\n\025google.protobuf.Empt" + + "y\022\030DeleteIssueModelMetadata\022\362\001\n\020DeployIs" + + "sueModel\022>.google.cloud.contactcenterins" + + "ights.v1.DeployIssueModelRequest\032\035.googl" + + "e.longrunning.Operation\"\177\202\323\344\223\002;\"6/v1/{na" + + "me=projects/*/locations/*/issueModels/*}" + + ":deploy:\001*\332A\004name\312A4\n\030DeployIssueModelRe" + + "sponse\022\030DeployIssueModelMetadata\022\375\001\n\022Und" + + "eployIssueModel\022@.google.cloud.contactce" + + "nterinsights.v1.UndeployIssueModelReques" + + "t\032\035.google.longrunning.Operation\"\205\001\202\323\344\223\002" + + "=\"8/v1/{name=projects/*/locations/*/issu" + + "eModels/*}:undeploy:\001*\332A\004name\312A8\n\032Undepl" + + "oyIssueModelResponse\022\032UndeployIssueModel" + + "Metadata\022\271\001\n\010GetIssue\0226.google.cloud.con" + + "tactcenterinsights.v1.GetIssueRequest\032,." + + "google.cloud.contactcenterinsights.v1.Is" + + "sue\"G\202\323\344\223\002:\0228/v1/{name=projects/*/locati" + + "ons/*/issueModels/*/issues/*}\332A\004name\022\314\001\n" + + "\nListIssues\0228.google.cloud.contactcenter" + + "insights.v1.ListIssuesRequest\0329.google.c" + + "loud.contactcenterinsights.v1.ListIssues" + + "Response\"I\202\323\344\223\002:\0228/v1/{parent=projects/*" + + "/locations/*/issueModels/*}/issues\332A\006par" + + "ent\022\331\001\n\013UpdateIssue\0229.google.cloud.conta" + + "ctcenterinsights.v1.UpdateIssueRequest\032," + + ".google.cloud.contactcenterinsights.v1.I" + + "ssue\"a\202\323\344\223\002G2>/v1/{issue.name=projects/*" + + "/locations/*/issueModels/*/issues/*}:\005is" + + "sue\332A\021issue,update_mask\022\251\001\n\013DeleteIssue\022" + + "9.google.cloud.contactcenterinsights.v1." + + "DeleteIssueRequest\032\026.google.protobuf.Emp" + + "ty\"G\202\323\344\223\002:*8/v1/{name=projects/*/locatio" + + "ns/*/issueModels/*/issues/*}\332A\004name\022\222\002\n\030" + + "CalculateIssueModelStats\022F.google.cloud." + + "contactcenterinsights.v1.CalculateIssueM" + + "odelStatsRequest\032G.google.cloud.contactc" + + "enterinsights.v1.CalculateIssueModelStat", + "sResponse\"e\202\323\344\223\002Q\022O/v1/{issue_model=proj" + + "ects/*/locations/*/issueModels/*}:calcul" + + "ateIssueModelStats\332A\013issue_model\022\362\001\n\023Cre" + + "atePhraseMatcher\022A.google.cloud.contactc" + + "enterinsights.v1.CreatePhraseMatcherRequ" + + "est\0324.google.cloud.contactcenterinsights" + + ".v1.PhraseMatcher\"b\202\323\344\223\002D\"2/v1/{parent=p" + + "rojects/*/locations/*}/phraseMatchers:\016p" + + "hrase_matcher\332A\025parent,phrase_matcher\022\313\001" + + "\n\020GetPhraseMatcher\022>.google.cloud.contac" + + "tcenterinsights.v1.GetPhraseMatcherReque" + "st\0324.google.cloud.contactcenterinsights." - + "v1.PhraseMatcher\"v\202\323\344\223\002S2A/v1/{phrase_ma" - + "tcher.name=projects/*/locations/*/phrase" - + "Matchers/*}:\016phrase_matcher\332A\032phrase_mat" - + "cher,update_mask\022\344\001\n\016CalculateStats\022<.go" - + "ogle.cloud.contactcenterinsights.v1.Calc" - + "ulateStatsRequest\032=.google.cloud.contact" - + "centerinsights.v1.CalculateStatsResponse" - + "\"U\202\323\344\223\002D\022B/v1/{location=projects/*/locat" - + "ions/*}/conversations:calculateStats\332A\010l" - + "ocation\022\264\001\n\013GetSettings\0229.google.cloud.c" - + "ontactcenterinsights.v1.GetSettingsReque" - + "st\032/.google.cloud.contactcenterinsights." - + "v1.Settings\"9\202\323\344\223\002,\022*/v1/{name=projects/" - + "*/locations/*/settings}\332A\004name\022\335\001\n\016Updat" - + "eSettings\022<.google.cloud.contactcenterin" - + "sights.v1.UpdateSettingsRequest\032/.google" - + ".cloud.contactcenterinsights.v1.Settings" - + "\"\\\202\323\344\223\002?23/v1/{settings.name=projects/*/" - + "locations/*/settings}:\010settings\332A\024settin" - + "gs,update_mask\022\272\001\n\nCreateView\0228.google.c" - + "loud.contactcenterinsights.v1.CreateView" - + "Request\032+.google.cloud.contactcenterinsi" - + "ghts.v1.View\"E\202\323\344\223\0021\")/v1/{parent=projec" - + "ts/*/locations/*}/views:\004view\332A\013parent,v" - + "iew\022\247\001\n\007GetView\0225.google.cloud.contactce" - + "nterinsights.v1.GetViewRequest\032+.google." - + "cloud.contactcenterinsights.v1.View\"8\202\323\344" - + "\223\002+\022)/v1/{name=projects/*/locations/*/vi" - + "ews/*}\332A\004name\022\272\001\n\tListViews\0227.google.clo" - + "ud.contactcenterinsights.v1.ListViewsReq" - + "uest\0328.google.cloud.contactcenterinsight" - + "s.v1.ListViewsResponse\":\202\323\344\223\002+\022)/v1/{par" - + "ent=projects/*/locations/*}/views\332A\006pare" - + "nt\022\304\001\n\nUpdateView\0228.google.cloud.contact" - + "centerinsights.v1.UpdateViewRequest\032+.go" - + "ogle.cloud.contactcenterinsights.v1.View", - "\"O\202\323\344\223\00262./v1/{view.name=projects/*/loca" - + "tions/*/views/*}:\004view\332A\020view,update_mas" - + "k\022\230\001\n\nDeleteView\0228.google.cloud.contactc" - + "enterinsights.v1.DeleteViewRequest\032\026.goo" - + "gle.protobuf.Empty\"8\202\323\344\223\002+*)/v1/{name=pr" - + "ojects/*/locations/*/views/*}\332A\004name\032X\312A" - + "$contactcenterinsights.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-pl" - + "atformB\240\002\n)com.google.cloud.contactcente" - + "rinsights.v1B\032ContactCenterInsightsProto" - + "P\001ZZgoogle.golang.org/genproto/googleapi" - + "s/cloud/contactcenterinsights/v1;contact" - + "centerinsights\252\002%Google.Cloud.ContactCen" - + "terInsights.V1\312\002%Google\\Cloud\\ContactCen" - + "terInsights\\V1\352\002(Google::Cloud::ContactC" - + "enterInsights::V1b\006proto3" + + "v1.PhraseMatcher\"A\202\323\344\223\0024\0222/v1/{name=proj" + + "ects/*/locations/*/phraseMatchers/*}\332A\004n" + + "ame\022\336\001\n\022ListPhraseMatchers\022@.google.clou" + + "d.contactcenterinsights.v1.ListPhraseMat" + + "chersRequest\032A.google.cloud.contactcente" + + "rinsights.v1.ListPhraseMatchersResponse\"" + + "C\202\323\344\223\0024\0222/v1/{parent=projects/*/location" + + "s/*}/phraseMatchers\332A\006parent\022\263\001\n\023DeleteP" + + "hraseMatcher\022A.google.cloud.contactcente" + + "rinsights.v1.DeletePhraseMatcherRequest\032" + + "\026.google.protobuf.Empty\"A\202\323\344\223\0024*2/v1/{na" + + "me=projects/*/locations/*/phraseMatchers" + + "/*}\332A\004name\022\206\002\n\023UpdatePhraseMatcher\022A.goo" + + "gle.cloud.contactcenterinsights.v1.Updat" + + "ePhraseMatcherRequest\0324.google.cloud.con" + + "tactcenterinsights.v1.PhraseMatcher\"v\202\323\344" + + "\223\002S2A/v1/{phrase_matcher.name=projects/*" + + "/locations/*/phraseMatchers/*}:\016phrase_m" + + "atcher\332A\032phrase_matcher,update_mask\022\344\001\n\016" + + "CalculateStats\022<.google.cloud.contactcen" + + "terinsights.v1.CalculateStatsRequest\032=.g" + + "oogle.cloud.contactcenterinsights.v1.Cal" + + "culateStatsResponse\"U\202\323\344\223\002D\022B/v1/{locati" + + "on=projects/*/locations/*}/conversations" + + ":calculateStats\332A\010location\022\264\001\n\013GetSettin" + + "gs\0229.google.cloud.contactcenterinsights." + + "v1.GetSettingsRequest\032/.google.cloud.con" + + "tactcenterinsights.v1.Settings\"9\202\323\344\223\002,\022*" + + "/v1/{name=projects/*/locations/*/setting" + + "s}\332A\004name\022\335\001\n\016UpdateSettings\022<.google.cl" + + "oud.contactcenterinsights.v1.UpdateSetti" + + "ngsRequest\032/.google.cloud.contactcenteri" + + "nsights.v1.Settings\"\\\202\323\344\223\002?23/v1/{settin" + + "gs.name=projects/*/locations/*/settings}" + + ":\010settings\332A\024settings,update_mask\022\272\001\n\nCr" + + "eateView\0228.google.cloud.contactcenterins" + + "ights.v1.CreateViewRequest\032+.google.clou" + + "d.contactcenterinsights.v1.View\"E\202\323\344\223\0021\"" + + ")/v1/{parent=projects/*/locations/*}/vie" + + "ws:\004view\332A\013parent,view\022\247\001\n\007GetView\0225.goo" + + "gle.cloud.contactcenterinsights.v1.GetVi" + + "ewRequest\032+.google.cloud.contactcenterin" + + "sights.v1.View\"8\202\323\344\223\002+\022)/v1/{name=projec" + + "ts/*/locations/*/views/*}\332A\004name\022\272\001\n\tLis" + + "tViews\0227.google.cloud.contactcenterinsig" + + "hts.v1.ListViewsRequest\0328.google.cloud.c" + + "ontactcenterinsights.v1.ListViewsRespons" + + "e\":\202\323\344\223\002+\022)/v1/{parent=projects/*/locati" + + "ons/*}/views\332A\006parent\022\304\001\n\nUpdateView\0228.g" + + "oogle.cloud.contactcenterinsights.v1.Upd" + + "ateViewRequest\032+.google.cloud.contactcen" + + "terinsights.v1.View\"O\202\323\344\223\00262./v1/{view.n" + + "ame=projects/*/locations/*/views/*}:\004vie" + + "w\332A\020view,update_mask\022\230\001\n\nDeleteView\0228.go" + + "ogle.cloud.contactcenterinsights.v1.Dele" + + "teViewRequest\032\026.google.protobuf.Empty\"8\202" + + "\323\344\223\002+*)/v1/{name=projects/*/locations/*/" + + "views/*}\332A\004name\032X\312A$contactcenterinsight" + + "s.googleapis.com\322A.https://www.googleapi" + + "s.com/auth/cloud-platformB\240\002\n)com.google" + + ".cloud.contactcenterinsights.v1B\032Contact" + + "CenterInsightsProtoP\001ZZgoogle.golang.org" + + "/genproto/googleapis/cloud/contactcenter" + + "insights/v1;contactcenterinsights\252\002%Goog" + + "le.Cloud.ContactCenterInsights.V1\312\002%Goog" + + "le\\Cloud\\ContactCenterInsights\\V1\352\002(Goog" + + "le::Cloud::ContactCenterInsights::V1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -790,7 +894,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreateAnalysisOperationMetadata_descriptor, new java.lang.String[] { - "CreateTime", "EndTime", "Conversation", + "CreateTime", "EndTime", "Conversation", "AnnotatorSelector", }); internal_static_google_cloud_contactcenterinsights_v1_CreateConversationRequest_descriptor = getDescriptor().getMessageTypes().get(3); @@ -840,8 +944,65 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Force", }); - internal_static_google_cloud_contactcenterinsights_v1_CreateAnalysisRequest_descriptor = + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor = getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor, + new java.lang.String[] { + "GcsSource", + "TranscriptObjectConfig", + "Parent", + "ConversationConfig", + "Source", + "ObjectConfig", + }); + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_descriptor = + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_descriptor, + new java.lang.String[] { + "BucketUri", + }); + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_descriptor = + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor + .getNestedTypes() + .get(1); + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_descriptor, + new java.lang.String[] { + "Medium", + }); + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_descriptor = + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor + .getNestedTypes() + .get(2); + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_descriptor, + new java.lang.String[] { + "AgentId", + }); + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "EndTime", "Request", "PartialErrors", + }); + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsResponse_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_contactcenterinsights_v1_CreateAnalysisRequest_descriptor = + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_contactcenterinsights_v1_CreateAnalysisRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreateAnalysisRequest_descriptor, @@ -849,7 +1010,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Analysis", }); internal_static_google_cloud_contactcenterinsights_v1_ListAnalysesRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(13); internal_static_google_cloud_contactcenterinsights_v1_ListAnalysesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListAnalysesRequest_descriptor, @@ -857,7 +1018,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_contactcenterinsights_v1_ListAnalysesResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_contactcenterinsights_v1_ListAnalysesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListAnalysesResponse_descriptor, @@ -865,7 +1026,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Analyses", "NextPageToken", }); internal_static_google_cloud_contactcenterinsights_v1_GetAnalysisRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_contactcenterinsights_v1_GetAnalysisRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetAnalysisRequest_descriptor, @@ -873,15 +1034,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteAnalysisRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_contactcenterinsights_v1_DeleteAnalysisRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeleteAnalysisRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsRequest_descriptor, + new java.lang.String[] { + "Parent", "Filter", "AnalysisPercentage", "AnnotatorSelector", + }); + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsMetadata_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsMetadata_descriptor, + new java.lang.String[] { + "CreateTime", + "EndTime", + "Request", + "CompletedAnalysesCount", + "FailedAnalysesCount", + "TotalRequestedAnalysesCount", + }); + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_descriptor, + new java.lang.String[] { + "SuccessfulAnalysisCount", "FailedAnalysisCount", + }); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataRequest_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataRequest_descriptor, @@ -904,7 +1094,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Dataset", "Table", }); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataMetadata_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataMetadata_descriptor, @@ -912,13 +1102,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", "PartialErrors", }); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataResponse_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(22); 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(17); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelRequest_descriptor, @@ -926,7 +1116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "IssueModel", }); internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelMetadata_descriptor, @@ -934,7 +1124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueModelRequest_descriptor, @@ -942,7 +1132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IssueModel", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsRequest_descriptor, @@ -950,7 +1140,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsResponse_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsResponse_descriptor, @@ -958,7 +1148,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IssueModels", }); internal_static_google_cloud_contactcenterinsights_v1_GetIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_contactcenterinsights_v1_GetIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetIssueModelRequest_descriptor, @@ -966,7 +1156,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelRequest_descriptor, @@ -974,7 +1164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelMetadata_descriptor, @@ -982,7 +1172,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", }); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelRequest_descriptor, @@ -990,13 +1180,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelResponse_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(32); 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(27); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelMetadata_descriptor, @@ -1004,7 +1194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", }); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelRequest_descriptor, @@ -1012,13 +1202,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelResponse_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(35); 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(30); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelMetadata_descriptor, @@ -1026,7 +1216,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", }); internal_static_google_cloud_contactcenterinsights_v1_GetIssueRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_contactcenterinsights_v1_GetIssueRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetIssueRequest_descriptor, @@ -1034,7 +1224,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_ListIssuesRequest_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_contactcenterinsights_v1_ListIssuesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListIssuesRequest_descriptor, @@ -1042,7 +1232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_cloud_contactcenterinsights_v1_ListIssuesResponse_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_contactcenterinsights_v1_ListIssuesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListIssuesResponse_descriptor, @@ -1050,15 +1240,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Issues", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueRequest_descriptor, new java.lang.String[] { "Issue", "UpdateMask", }); + internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsRequest_descriptor, @@ -1066,7 +1264,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IssueModel", }); internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsResponse_descriptor, @@ -1074,7 +1272,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CurrentStats", }); internal_static_google_cloud_contactcenterinsights_v1_CreatePhraseMatcherRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_contactcenterinsights_v1_CreatePhraseMatcherRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreatePhraseMatcherRequest_descriptor, @@ -1082,7 +1280,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PhraseMatcher", }); internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersRequest_descriptor, @@ -1090,7 +1288,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersResponse_descriptor, @@ -1098,7 +1296,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PhraseMatchers", "NextPageToken", }); internal_static_google_cloud_contactcenterinsights_v1_GetPhraseMatcherRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_contactcenterinsights_v1_GetPhraseMatcherRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetPhraseMatcherRequest_descriptor, @@ -1106,7 +1304,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeletePhraseMatcherRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_contactcenterinsights_v1_DeletePhraseMatcherRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeletePhraseMatcherRequest_descriptor, @@ -1114,7 +1312,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_UpdatePhraseMatcherRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_contactcenterinsights_v1_UpdatePhraseMatcherRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdatePhraseMatcherRequest_descriptor, @@ -1122,7 +1320,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PhraseMatcher", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_GetSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_contactcenterinsights_v1_GetSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetSettingsRequest_descriptor, @@ -1130,7 +1328,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_contactcenterinsights_v1_UpdateSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateSettingsRequest_descriptor, @@ -1138,7 +1336,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Settings", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_CreateViewRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_contactcenterinsights_v1_CreateViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreateViewRequest_descriptor, @@ -1146,7 +1344,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "View", }); internal_static_google_cloud_contactcenterinsights_v1_GetViewRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_contactcenterinsights_v1_GetViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetViewRequest_descriptor, @@ -1154,7 +1352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_ListViewsRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_contactcenterinsights_v1_ListViewsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListViewsRequest_descriptor, @@ -1162,7 +1360,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(55); internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_descriptor, @@ -1170,7 +1368,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Views", "NextPageToken", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateViewRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(56); internal_static_google_cloud_contactcenterinsights_v1_UpdateViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateViewRequest_descriptor, @@ -1178,7 +1376,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "View", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteViewRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(57); 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/ConversationParticipant.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipant.java index 45eb6d798c1a..1cf835008eab 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipant.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipant.java @@ -477,7 +477,7 @@ public com.google.protobuf.ByteString getUserIdBytes() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1083 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1104 * @return The dialogflowParticipant. */ @java.lang.Override @@ -506,7 +506,7 @@ public java.lang.String getDialogflowParticipant() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1083 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1104 * @return The bytes for dialogflowParticipant. */ @java.lang.Override @@ -1381,7 +1381,7 @@ public Builder setUserIdBytes(com.google.protobuf.ByteString value) { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1083 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1104 * @return The dialogflowParticipant. */ @java.lang.Deprecated @@ -1409,7 +1409,7 @@ public java.lang.String getDialogflowParticipant() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1083 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1104 * @return The bytes for dialogflowParticipant. */ @java.lang.Deprecated @@ -1437,7 +1437,7 @@ public com.google.protobuf.ByteString getDialogflowParticipantBytes() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1083 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1104 * @param value The dialogflowParticipant to set. * @return This builder for chaining. */ @@ -1464,7 +1464,7 @@ public Builder setDialogflowParticipant(java.lang.String value) { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1083 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1104 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1487,7 +1487,7 @@ public Builder clearDialogflowParticipant() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1083 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1104 * @param value The bytes for dialogflowParticipant to set. * @return This builder for chaining. */ diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipantOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipantOrBuilder.java index a62a540b13fc..4bf600ae5d9f 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipantOrBuilder.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ConversationParticipantOrBuilder.java @@ -113,7 +113,7 @@ public interface ConversationParticipantOrBuilder * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1083 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1104 * @return The dialogflowParticipant. */ @java.lang.Deprecated @@ -131,7 +131,7 @@ public interface ConversationParticipantOrBuilder * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1083 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1104 * @return The bytes for dialogflowParticipant. */ @java.lang.Deprecated diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CreateAnalysisOperationMetadata.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CreateAnalysisOperationMetadata.java index 7bc0925ba742..967c7666cf2f 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CreateAnalysisOperationMetadata.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CreateAnalysisOperationMetadata.java @@ -220,6 +220,61 @@ public com.google.protobuf.ByteString getConversationBytes() { } } + public static final int ANNOTATOR_SELECTOR_FIELD_NUMBER = 4; + private com.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotatorSelector_; + /** + * + * + *
+   * Output only. The annotator selector used for the analysis (if any).
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the annotatorSelector field is set. + */ + @java.lang.Override + public boolean hasAnnotatorSelector() { + return annotatorSelector_ != null; + } + /** + * + * + *
+   * Output only. The annotator selector used for the analysis (if any).
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The annotatorSelector. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getAnnotatorSelector() { + return annotatorSelector_ == null + ? com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance() + : annotatorSelector_; + } + /** + * + * + *
+   * Output only. The annotator selector used for the analysis (if any).
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder + getAnnotatorSelectorOrBuilder() { + return getAnnotatorSelector(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -243,6 +298,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversation_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, conversation_); } + if (annotatorSelector_ != null) { + output.writeMessage(4, getAnnotatorSelector()); + } getUnknownFields().writeTo(output); } @@ -261,6 +319,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversation_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, conversation_); } + if (annotatorSelector_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAnnotatorSelector()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -287,6 +348,10 @@ public boolean equals(final java.lang.Object obj) { if (!getEndTime().equals(other.getEndTime())) return false; } if (!getConversation().equals(other.getConversation())) return false; + if (hasAnnotatorSelector() != other.hasAnnotatorSelector()) return false; + if (hasAnnotatorSelector()) { + if (!getAnnotatorSelector().equals(other.getAnnotatorSelector())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -308,6 +373,10 @@ public int hashCode() { } hash = (37 * hash) + CONVERSATION_FIELD_NUMBER; hash = (53 * hash) + getConversation().hashCode(); + if (hasAnnotatorSelector()) { + hash = (37 * hash) + ANNOTATOR_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getAnnotatorSelector().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -464,6 +533,12 @@ public Builder clear() { } conversation_ = ""; + if (annotatorSelectorBuilder_ == null) { + annotatorSelector_ = null; + } else { + annotatorSelector_ = null; + annotatorSelectorBuilder_ = null; + } return this; } @@ -506,6 +581,11 @@ public com.google.cloud.contactcenterinsights.v1.CreateAnalysisOperationMetadata result.endTime_ = endTimeBuilder_.build(); } result.conversation_ = conversation_; + if (annotatorSelectorBuilder_ == null) { + result.annotatorSelector_ = annotatorSelector_; + } else { + result.annotatorSelector_ = annotatorSelectorBuilder_.build(); + } onBuilt(); return result; } @@ -570,6 +650,9 @@ public Builder mergeFrom( conversation_ = other.conversation_; onChanged(); } + if (other.hasAnnotatorSelector()) { + mergeAnnotatorSelector(other.getAnnotatorSelector()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -614,6 +697,13 @@ public Builder mergeFrom( break; } // case 26 + case 34: + { + input.readMessage( + getAnnotatorSelectorFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1136,6 +1226,215 @@ public Builder setConversationBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotatorSelector_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder> + annotatorSelectorBuilder_; + /** + * + * + *
+     * Output only. The annotator selector used for the analysis (if any).
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the annotatorSelector field is set. + */ + public boolean hasAnnotatorSelector() { + return annotatorSelectorBuilder_ != null || annotatorSelector_ != null; + } + /** + * + * + *
+     * Output only. The annotator selector used for the analysis (if any).
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The annotatorSelector. + */ + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getAnnotatorSelector() { + if (annotatorSelectorBuilder_ == null) { + return annotatorSelector_ == null + ? com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance() + : annotatorSelector_; + } else { + return annotatorSelectorBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The annotator selector used for the analysis (if any).
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnnotatorSelector( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector value) { + if (annotatorSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotatorSelector_ = value; + onChanged(); + } else { + annotatorSelectorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The annotator selector used for the analysis (if any).
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAnnotatorSelector( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder builderForValue) { + if (annotatorSelectorBuilder_ == null) { + annotatorSelector_ = builderForValue.build(); + onChanged(); + } else { + annotatorSelectorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The annotator selector used for the analysis (if any).
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAnnotatorSelector( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector value) { + if (annotatorSelectorBuilder_ == null) { + if (annotatorSelector_ != null) { + annotatorSelector_ = + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.newBuilder( + annotatorSelector_) + .mergeFrom(value) + .buildPartial(); + } else { + annotatorSelector_ = value; + } + onChanged(); + } else { + annotatorSelectorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The annotator selector used for the analysis (if any).
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAnnotatorSelector() { + if (annotatorSelectorBuilder_ == null) { + annotatorSelector_ = null; + onChanged(); + } else { + annotatorSelector_ = null; + annotatorSelectorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The annotator selector used for the analysis (if any).
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder + getAnnotatorSelectorBuilder() { + + onChanged(); + return getAnnotatorSelectorFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The annotator selector used for the analysis (if any).
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder + getAnnotatorSelectorOrBuilder() { + if (annotatorSelectorBuilder_ != null) { + return annotatorSelectorBuilder_.getMessageOrBuilder(); + } else { + return annotatorSelector_ == null + ? com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance() + : annotatorSelector_; + } + } + /** + * + * + *
+     * Output only. The annotator selector used for the analysis (if any).
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder> + getAnnotatorSelectorFieldBuilder() { + if (annotatorSelectorBuilder_ == null) { + annotatorSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder>( + getAnnotatorSelector(), getParentForChildren(), isClean()); + annotatorSelector_ = null; + } + return annotatorSelectorBuilder_; + } + @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/CreateAnalysisOperationMetadataOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CreateAnalysisOperationMetadataOrBuilder.java index 2d0102b6c3d8..6cd2ee7dc103 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CreateAnalysisOperationMetadataOrBuilder.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/CreateAnalysisOperationMetadataOrBuilder.java @@ -127,4 +127,46 @@ public interface CreateAnalysisOperationMetadataOrBuilder * @return The bytes for conversation. */ com.google.protobuf.ByteString getConversationBytes(); + + /** + * + * + *
+   * Output only. The annotator selector used for the analysis (if any).
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the annotatorSelector field is set. + */ + boolean hasAnnotatorSelector(); + /** + * + * + *
+   * Output only. The annotator selector used for the analysis (if any).
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The annotatorSelector. + */ + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getAnnotatorSelector(); + /** + * + * + *
+   * Output only. The annotator selector used for the analysis (if any).
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder + getAnnotatorSelectorOrBuilder(); } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/DeleteIssueRequest.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/DeleteIssueRequest.java new file mode 100644 index 000000000000..71b1d6c039e2 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/DeleteIssueRequest.java @@ -0,0 +1,633 @@ +/* + * Copyright 2020 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 an issue.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.DeleteIssueRequest} + */ +public final class DeleteIssueRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.DeleteIssueRequest) + DeleteIssueRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteIssueRequest.newBuilder() to construct. + private DeleteIssueRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteIssueRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteIssueRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest.class, + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the issue to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + 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(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the issue to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + 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(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + 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.DeleteIssueRequest)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest other = + (com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest) obj; + + if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest 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.DeleteIssueRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest 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.DeleteIssueRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest 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.DeleteIssueRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest 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.DeleteIssueRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest 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.DeleteIssueRequest 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.DeleteIssueRequest 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.DeleteIssueRequest 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 an issue.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.DeleteIssueRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.DeleteIssueRequest) + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest.class, + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest.Builder.class); + } + + // Construct using com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + 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_DeleteIssueRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest build() { + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest buildPartial() { + com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest result = + new com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest(this); + result.name_ = name_; + 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.DeleteIssueRequest) { + return mergeFrom((com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest other) { + if (other + == com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + 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: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + 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 java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the issue to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the issue to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the issue to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the issue to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the issue to delete.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + 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.DeleteIssueRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.DeleteIssueRequest) + private static final com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest(); + } + + public static com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteIssueRequest 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.DeleteIssueRequest 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/DeleteIssueRequestOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/DeleteIssueRequestOrBuilder.java new file mode 100644 index 000000000000..0fef6dd782df --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/DeleteIssueRequestOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 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 DeleteIssueRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.DeleteIssueRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the issue to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the issue to delete.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsMetadata.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsMetadata.java new file mode 100644 index 000000000000..8191f369ca5e --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsMetadata.java @@ -0,0 +1,1854 @@ +/* + * Copyright 2020 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 an IngestConversations operation.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.IngestConversationsMetadata} + */ +public final class IngestConversationsMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.IngestConversationsMetadata) + IngestConversationsMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use IngestConversationsMetadata.newBuilder() to construct. + private IngestConversationsMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IngestConversationsMetadata() { + partialErrors_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IngestConversationsMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.class, + com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + public static final int REQUEST_FIELD_NUMBER = 3; + private com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest request_; + /** + * + * + *
+   * Output only. The original request for ingest.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the request field is set. + */ + @java.lang.Override + public boolean hasRequest() { + return request_ != null; + } + /** + * + * + *
+   * Output only. The original request for ingest.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The request. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest getRequest() { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.getDefaultInstance() + : request_; + } + /** + * + * + *
+   * Output only. The original request for ingest.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequestOrBuilder + getRequestOrBuilder() { + return getRequest(); + } + + public static final int PARTIAL_ERRORS_FIELD_NUMBER = 4; + private java.util.List partialErrors_; + /** + * + * + *
+   * Output only. Partial errors during ingest operation that might cause the operation
+   * output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getPartialErrorsList() { + return partialErrors_; + } + /** + * + * + *
+   * Output only. Partial errors during ingest operation that might cause the operation
+   * output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getPartialErrorsOrBuilderList() { + return partialErrors_; + } + /** + * + * + *
+   * Output only. Partial errors during ingest operation that might cause the operation
+   * output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getPartialErrorsCount() { + return partialErrors_.size(); + } + /** + * + * + *
+   * Output only. Partial errors during ingest operation that might cause the operation
+   * output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+   * output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 + 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.IngestConversationsMetadata)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata other = + (com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata) 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.IngestConversationsMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata 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.IngestConversationsMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata 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.IngestConversationsMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata 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.IngestConversationsMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata 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.IngestConversationsMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata + 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.IngestConversationsMetadata 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.IngestConversationsMetadata 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.IngestConversationsMetadata 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 an IngestConversations operation.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.IngestConversationsMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.IngestConversationsMetadata) + com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.class, + com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + if (requestBuilder_ == null) { + request_ = null; + } else { + request_ = null; + requestBuilder_ = null; + } + if (partialErrorsBuilder_ == null) { + partialErrors_ = java.util.Collections.emptyList(); + } else { + partialErrors_ = null; + partialErrorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + 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_IngestConversationsMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata build() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata buildPartial() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata result = + new com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata(this); + int from_bitField0_ = bitField0_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + if (requestBuilder_ == null) { + result.request_ = request_; + } else { + result.request_ = requestBuilder_.build(); + } + if (partialErrorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + partialErrors_ = java.util.Collections.unmodifiableList(partialErrors_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.partialErrors_ = partialErrors_; + } else { + result.partialErrors_ = partialErrorsBuilder_.build(); + } + 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.IngestConversationsMetadata) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata other) { + if (other + == com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata + .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_ & ~0x00000001); + } else { + ensurePartialErrorsIsMutable(); + partialErrors_.addAll(other.partialErrors_); + } + onChanged(); + } + } else { + if (!other.partialErrors_.isEmpty()) { + if (partialErrorsBuilder_.isEmpty()) { + partialErrorsBuilder_.dispose(); + partialErrorsBuilder_ = null; + partialErrors_ = other.partialErrors_; + bitField0_ = (bitField0_ & ~0x00000001); + 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); + + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry); + + 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_; + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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(); + } + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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_; + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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(); + } + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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.IngestConversationsRequest request_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.Builder, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequestOrBuilder> + requestBuilder_; + /** + * + * + *
+     * Output only. The original request for ingest.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return requestBuilder_ != null || request_ != null; + } + /** + * + * + *
+     * Output only. The original request for ingest.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The request. + */ + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest getRequest() { + if (requestBuilder_ == null) { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .getDefaultInstance() + : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The original request for ingest.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRequest( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + onChanged(); + } else { + requestBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The original request for ingest.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRequest( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.Builder + builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + onChanged(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The original request for ingest.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRequest( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest value) { + if (requestBuilder_ == null) { + if (request_ != null) { + request_ = + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.newBuilder( + request_) + .mergeFrom(value) + .buildPartial(); + } else { + request_ = value; + } + onChanged(); + } else { + requestBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The original request for ingest.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRequest() { + if (requestBuilder_ == null) { + request_ = null; + onChanged(); + } else { + request_ = null; + requestBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The original request for ingest.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.Builder + getRequestBuilder() { + + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The original request for ingest.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequestOrBuilder + getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .getDefaultInstance() + : request_; + } + } + /** + * + * + *
+     * Output only. The original request for ingest.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.Builder, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.Builder, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequestOrBuilder>( + getRequest(), getParentForChildren(), isClean()); + request_ = null; + } + return requestBuilder_; + } + + private java.util.List partialErrors_ = + java.util.Collections.emptyList(); + + private void ensurePartialErrorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + partialErrors_ = new java.util.ArrayList(partialErrors_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + partialErrorsBuilder_; + + /** + * + * + *
+     * Output only. Partial errors during ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getPartialErrorsCount() { + if (partialErrorsBuilder_ == null) { + return partialErrors_.size(); + } else { + return partialErrorsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Output only. Partial errors during ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPartialErrors() { + if (partialErrorsBuilder_ == null) { + partialErrors_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + partialErrorsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Output only. Partial errors during ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.rpc.Status.Builder getPartialErrorsBuilder(int index) { + return getPartialErrorsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Output only. Partial errors during ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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 ingest operation that might cause the operation
+     * output to be incomplete.
+     * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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_ & 0x00000001) != 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.IngestConversationsMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.IngestConversationsMetadata) + private static final com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata(); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestConversationsMetadata 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.IngestConversationsMetadata + 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/IngestConversationsMetadataOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsMetadataOrBuilder.java new file mode 100644 index 000000000000..428b5a217aa2 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsMetadataOrBuilder.java @@ -0,0 +1,209 @@ +/* + * Copyright 2020 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 IngestConversationsMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.IngestConversationsMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. The time the operation was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * Output only. The time the operation finished running.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The original request for ingest.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + * + * + *
+   * Output only. The original request for ingest.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The request. + */ + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest getRequest(); + /** + * + * + *
+   * Output only. The original request for ingest.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequestOrBuilder + getRequestOrBuilder(); + + /** + * + * + *
+   * Output only. Partial errors during ingest operation that might cause the operation
+   * output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPartialErrorsList(); + /** + * + * + *
+   * Output only. Partial errors during ingest operation that might cause the operation
+   * output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.rpc.Status getPartialErrors(int index); + /** + * + * + *
+   * Output only. Partial errors during ingest operation that might cause the operation
+   * output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getPartialErrorsCount(); + /** + * + * + *
+   * Output only. Partial errors during ingest operation that might cause the operation
+   * output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getPartialErrorsOrBuilderList(); + /** + * + * + *
+   * Output only. Partial errors during ingest operation that might cause the operation
+   * output to be incomplete.
+   * 
+ * + * + * repeated .google.rpc.Status partial_errors = 4 [(.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/IngestConversationsRequest.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequest.java new file mode 100644 index 000000000000..e32e8c42a807 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequest.java @@ -0,0 +1,3893 @@ +/* + * Copyright 2020 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 ingest conversations.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.IngestConversationsRequest} + */ +public final class IngestConversationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest) + IngestConversationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use IngestConversationsRequest.newBuilder() to construct. + private IngestConversationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IngestConversationsRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IngestConversationsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.class, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.Builder.class); + } + + public interface GcsSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The Cloud Storage bucket containing source objects.
+     * 
+ * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucketUri. + */ + java.lang.String getBucketUri(); + /** + * + * + *
+     * Required. The Cloud Storage bucket containing source objects.
+     * 
+ * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucketUri. + */ + com.google.protobuf.ByteString getBucketUriBytes(); + } + /** + * + * + *
+   * Configuration for Cloud Storage bucket sources.
+   * 
+ * + * Protobuf type {@code + * google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource} + */ + public static final class GcsSource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) + GcsSourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use GcsSource.newBuilder() to construct. + private GcsSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GcsSource() { + bucketUri_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GcsSource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.class, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.Builder + .class); + } + + public static final int BUCKET_URI_FIELD_NUMBER = 1; + private volatile java.lang.Object bucketUri_; + /** + * + * + *
+     * Required. The Cloud Storage bucket containing source objects.
+     * 
+ * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucketUri. + */ + @java.lang.Override + public java.lang.String getBucketUri() { + java.lang.Object ref = bucketUri_; + 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(); + bucketUri_ = s; + return s; + } + } + /** + * + * + *
+     * Required. The Cloud Storage bucket containing source objects.
+     * 
+ * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucketUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBucketUriBytes() { + java.lang.Object ref = bucketUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucketUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(bucketUri_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bucketUri_); + } + 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(bucketUri_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, bucketUri_); + } + 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.IngestConversationsRequest.GcsSource)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource other = + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) obj; + + if (!getBucketUri().equals(other.getBucketUri())) 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) + BUCKET_URI_FIELD_NUMBER; + hash = (53 * hash) + getBucketUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + 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.IngestConversationsRequest.GcsSource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + 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.IngestConversationsRequest.GcsSource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + 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.IngestConversationsRequest.GcsSource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + 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.IngestConversationsRequest.GcsSource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + 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.IngestConversationsRequest.GcsSource + 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.IngestConversationsRequest.GcsSource + 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.IngestConversationsRequest.GcsSource 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; + } + /** + * + * + *
+     * Configuration for Cloud Storage bucket sources.
+     * 
+ * + * Protobuf type {@code + * google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_GcsSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .class, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .Builder.class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bucketUri_ = ""; + + 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_IngestConversationsRequest_GcsSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + build() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + buildPartial() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource result = + new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource( + this); + result.bucketUri_ = bucketUri_; + 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.IngestConversationsRequest.GcsSource) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource other) { + if (other + == com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .getDefaultInstance()) return this; + if (!other.getBucketUri().isEmpty()) { + bucketUri_ = other.bucketUri_; + onChanged(); + } + 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: + { + bucketUri_ = input.readStringRequireUtf8(); + + break; + } // case 10 + 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 java.lang.Object bucketUri_ = ""; + /** + * + * + *
+       * Required. The Cloud Storage bucket containing source objects.
+       * 
+ * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bucketUri. + */ + public java.lang.String getBucketUri() { + java.lang.Object ref = bucketUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + bucketUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * Required. The Cloud Storage bucket containing source objects.
+       * 
+ * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for bucketUri. + */ + public com.google.protobuf.ByteString getBucketUriBytes() { + java.lang.Object ref = bucketUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + bucketUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * Required. The Cloud Storage bucket containing source objects.
+       * 
+ * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bucketUri to set. + * @return This builder for chaining. + */ + public Builder setBucketUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + bucketUri_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Cloud Storage bucket containing source objects.
+       * 
+ * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBucketUri() { + + bucketUri_ = getDefaultInstance().getBucketUri(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The Cloud Storage bucket containing source objects.
+       * 
+ * + * string bucket_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for bucketUri to set. + * @return This builder for chaining. + */ + public Builder setBucketUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + bucketUri_ = value; + 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.IngestConversationsRequest.GcsSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) + private static final com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .GcsSource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource(); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GcsSource 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.IngestConversationsRequest.GcsSource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TranscriptObjectConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The medium transcript objects represent.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for medium. + */ + int getMediumValue(); + /** + * + * + *
+     * Required. The medium transcript objects represent.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The medium. + */ + com.google.cloud.contactcenterinsights.v1.Conversation.Medium getMedium(); + } + /** + * + * + *
+   * Configuration for processing transcript objects.
+   * 
+ * + * Protobuf type {@code + * google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig} + */ + public static final class TranscriptObjectConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig) + TranscriptObjectConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use TranscriptObjectConfig.newBuilder() to construct. + private TranscriptObjectConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private TranscriptObjectConfig() { + medium_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new TranscriptObjectConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.class, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.Builder.class); + } + + public static final int MEDIUM_FIELD_NUMBER = 1; + private int medium_; + /** + * + * + *
+     * Required. The medium transcript objects represent.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for medium. + */ + @java.lang.Override + public int getMediumValue() { + return medium_; + } + /** + * + * + *
+     * Required. The medium transcript objects represent.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The medium. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.Conversation.Medium getMedium() { + @SuppressWarnings("deprecation") + com.google.cloud.contactcenterinsights.v1.Conversation.Medium result = + com.google.cloud.contactcenterinsights.v1.Conversation.Medium.valueOf(medium_); + return result == null + ? com.google.cloud.contactcenterinsights.v1.Conversation.Medium.UNRECOGNIZED + : result; + } + + 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 (medium_ + != com.google.cloud.contactcenterinsights.v1.Conversation.Medium.MEDIUM_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, medium_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (medium_ + != com.google.cloud.contactcenterinsights.v1.Conversation.Medium.MEDIUM_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, medium_); + } + 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.IngestConversationsRequest + .TranscriptObjectConfig)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig + other = + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig) + obj; + + if (medium_ != other.medium_) 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) + MEDIUM_FIELD_NUMBER; + hash = (53 * hash) + medium_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + 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.IngestConversationsRequest + .TranscriptObjectConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + 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.IngestConversationsRequest + .TranscriptObjectConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + 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.IngestConversationsRequest + .TranscriptObjectConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + 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.IngestConversationsRequest + .TranscriptObjectConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + 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.IngestConversationsRequest + .TranscriptObjectConfig + 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.IngestConversationsRequest + .TranscriptObjectConfig + 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.IngestConversationsRequest.TranscriptObjectConfig + 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; + } + /** + * + * + *
+     * Configuration for processing transcript objects.
+     * 
+ * + * Protobuf type {@code + * google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig) + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_TranscriptObjectConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.class, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.Builder.class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + medium_ = 0; + + 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_IngestConversationsRequest_TranscriptObjectConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + build() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + buildPartial() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig + result = + new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig(this); + result.medium_ = medium_; + 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.IngestConversationsRequest + .TranscriptObjectConfig) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + other) { + if (other + == com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.getDefaultInstance()) return this; + if (other.medium_ != 0) { + setMediumValue(other.getMediumValue()); + } + 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 8: + { + medium_ = input.readEnum(); + + break; + } // case 8 + 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 medium_ = 0; + /** + * + * + *
+       * Required. The medium transcript objects represent.
+       * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for medium. + */ + @java.lang.Override + public int getMediumValue() { + return medium_; + } + /** + * + * + *
+       * Required. The medium transcript objects represent.
+       * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for medium to set. + * @return This builder for chaining. + */ + public Builder setMediumValue(int value) { + + medium_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The medium transcript objects represent.
+       * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The medium. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.Conversation.Medium getMedium() { + @SuppressWarnings("deprecation") + com.google.cloud.contactcenterinsights.v1.Conversation.Medium result = + com.google.cloud.contactcenterinsights.v1.Conversation.Medium.valueOf(medium_); + return result == null + ? com.google.cloud.contactcenterinsights.v1.Conversation.Medium.UNRECOGNIZED + : result; + } + /** + * + * + *
+       * Required. The medium transcript objects represent.
+       * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The medium to set. + * @return This builder for chaining. + */ + public Builder setMedium( + com.google.cloud.contactcenterinsights.v1.Conversation.Medium value) { + if (value == null) { + throw new NullPointerException(); + } + + medium_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+       * Required. The medium transcript objects represent.
+       * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation.Medium medium = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearMedium() { + + medium_ = 0; + 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.IngestConversationsRequest.TranscriptObjectConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig) + private static final com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig(); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TranscriptObjectConfig 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.IngestConversationsRequest + .TranscriptObjectConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConversationConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * An opaque, user-specified string representing the human agent who handled
+     * the conversations.
+     * 
+ * + * string agent_id = 1; + * + * @return The agentId. + */ + java.lang.String getAgentId(); + /** + * + * + *
+     * An opaque, user-specified string representing the human agent who handled
+     * the conversations.
+     * 
+ * + * string agent_id = 1; + * + * @return The bytes for agentId. + */ + com.google.protobuf.ByteString getAgentIdBytes(); + } + /** + * + * + *
+   * Configuration that applies to all conversations.
+   * 
+ * + * Protobuf type {@code + * google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig} + */ + public static final class ConversationConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig) + ConversationConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConversationConfig.newBuilder() to construct. + private ConversationConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversationConfig() { + agentId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversationConfig(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig.class, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig.Builder.class); + } + + public static final int AGENT_ID_FIELD_NUMBER = 1; + private volatile java.lang.Object agentId_; + /** + * + * + *
+     * An opaque, user-specified string representing the human agent who handled
+     * the conversations.
+     * 
+ * + * string agent_id = 1; + * + * @return The agentId. + */ + @java.lang.Override + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + 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(); + agentId_ = s; + return s; + } + } + /** + * + * + *
+     * An opaque, user-specified string representing the human agent who handled
+     * the conversations.
+     * 
+ * + * string agent_id = 1; + * + * @return The bytes for agentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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(agentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agentId_); + } + 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(agentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agentId_); + } + 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.IngestConversationsRequest + .ConversationConfig)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + other = + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig) + obj; + + if (!getAgentId().equals(other.getAgentId())) 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) + AGENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig + 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.IngestConversationsRequest + .ConversationConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig + 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.IngestConversationsRequest + .ConversationConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig + 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.IngestConversationsRequest + .ConversationConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig + 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.IngestConversationsRequest + .ConversationConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig + 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.IngestConversationsRequest + .ConversationConfig + 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.IngestConversationsRequest + .ConversationConfig + 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.IngestConversationsRequest.ConversationConfig + 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; + } + /** + * + * + *
+     * Configuration that applies to all conversations.
+     * 
+ * + * Protobuf type {@code + * google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig) + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_ConversationConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig.class, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig.Builder.class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + agentId_ = ""; + + 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_IngestConversationsRequest_ConversationConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + build() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + buildPartial() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + result = + new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig(this); + result.agentId_ = agentId_; + 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.IngestConversationsRequest + .ConversationConfig) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + other) { + if (other + == com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig.getDefaultInstance()) return this; + if (!other.getAgentId().isEmpty()) { + agentId_ = other.agentId_; + onChanged(); + } + 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: + { + agentId_ = input.readStringRequireUtf8(); + + break; + } // case 10 + 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 java.lang.Object agentId_ = ""; + /** + * + * + *
+       * An opaque, user-specified string representing the human agent who handled
+       * the conversations.
+       * 
+ * + * string agent_id = 1; + * + * @return The agentId. + */ + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+       * An opaque, user-specified string representing the human agent who handled
+       * the conversations.
+       * 
+ * + * string agent_id = 1; + * + * @return The bytes for agentId. + */ + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+       * An opaque, user-specified string representing the human agent who handled
+       * the conversations.
+       * 
+ * + * string agent_id = 1; + * + * @param value The agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + agentId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+       * An opaque, user-specified string representing the human agent who handled
+       * the conversations.
+       * 
+ * + * string agent_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearAgentId() { + + agentId_ = getDefaultInstance().getAgentId(); + onChanged(); + return this; + } + /** + * + * + *
+       * An opaque, user-specified string representing the human agent who handled
+       * the conversations.
+       * 
+ * + * string agent_id = 1; + * + * @param value The bytes for agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + agentId_ = value; + 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.IngestConversationsRequest.ConversationConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig) + private static final com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig(); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationConfig 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.IngestConversationsRequest.ConversationConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int sourceCase_ = 0; + private java.lang.Object source_; + + public enum SourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + GCS_SOURCE(2), + SOURCE_NOT_SET(0); + private final int value; + + private SourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SourceCase valueOf(int value) { + return forNumber(value); + } + + public static SourceCase forNumber(int value) { + switch (value) { + case 2: + return GCS_SOURCE; + case 0: + return SOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + private int objectConfigCase_ = 0; + private java.lang.Object objectConfig_; + + public enum ObjectConfigCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TRANSCRIPT_OBJECT_CONFIG(3), + OBJECTCONFIG_NOT_SET(0); + private final int value; + + private ObjectConfigCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ObjectConfigCase valueOf(int value) { + return forNumber(value); + } + + public static ObjectConfigCase forNumber(int value) { + switch (value) { + case 3: + return TRANSCRIPT_OBJECT_CONFIG; + case 0: + return OBJECTCONFIG_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ObjectConfigCase getObjectConfigCase() { + return ObjectConfigCase.forNumber(objectConfigCase_); + } + + public static final int GCS_SOURCE_FIELD_NUMBER = 2; + /** + * + * + *
+   * A cloud storage bucket source.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 2; + } + /** + * + * + *
+   * A cloud storage bucket source.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + getGcsSource() { + if (sourceCase_ == 2) { + return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) + source_; + } + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .getDefaultInstance(); + } + /** + * + * + *
+   * A cloud storage bucket source.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSourceOrBuilder + getGcsSourceOrBuilder() { + if (sourceCase_ == 2) { + return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) + source_; + } + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .getDefaultInstance(); + } + + public static final int TRANSCRIPT_OBJECT_CONFIG_FIELD_NUMBER = 3; + /** + * + * + *
+   * Configuration for when `source` contains conversation transcripts.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + * + * @return Whether the transcriptObjectConfig field is set. + */ + @java.lang.Override + public boolean hasTranscriptObjectConfig() { + return objectConfigCase_ == 3; + } + /** + * + * + *
+   * Configuration for when `source` contains conversation transcripts.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + * + * @return The transcriptObjectConfig. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig + getTranscriptObjectConfig() { + if (objectConfigCase_ == 3) { + return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig) + objectConfig_; + } + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.getDefaultInstance(); + } + /** + * + * + *
+   * Configuration for when `source` contains conversation transcripts.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfigOrBuilder + getTranscriptObjectConfigOrBuilder() { + if (objectConfigCase_ == 3) { + return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig) + objectConfig_; + } + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.getDefaultInstance(); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent resource for new conversations.
+   * 
+ * + * + * 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 for new conversations.
+   * 
+ * + * + * 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 CONVERSATION_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + conversationConfig_; + /** + * + * + *
+   * Configuration that applies to all conversations.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + * + * @return Whether the conversationConfig field is set. + */ + @java.lang.Override + public boolean hasConversationConfig() { + return conversationConfig_ != null; + } + /** + * + * + *
+   * Configuration that applies to all conversations.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + * + * @return The conversationConfig. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + getConversationConfig() { + return conversationConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + .getDefaultInstance() + : conversationConfig_; + } + /** + * + * + *
+   * Configuration that applies to all conversations.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfigOrBuilder + getConversationConfigOrBuilder() { + return getConversationConfig(); + } + + 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 (sourceCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) source_); + } + if (objectConfigCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig) + objectConfig_); + } + if (conversationConfig_ != null) { + output.writeMessage(4, getConversationConfig()); + } + 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 (sourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) + source_); + } + if (objectConfigCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig) + objectConfig_); + } + if (conversationConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getConversationConfig()); + } + 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.IngestConversationsRequest)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest other = + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasConversationConfig() != other.hasConversationConfig()) return false; + if (hasConversationConfig()) { + if (!getConversationConfig().equals(other.getConversationConfig())) return false; + } + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 2: + if (!getGcsSource().equals(other.getGcsSource())) return false; + break; + case 0: + default: + } + if (!getObjectConfigCase().equals(other.getObjectConfigCase())) return false; + switch (objectConfigCase_) { + case 3: + if (!getTranscriptObjectConfig().equals(other.getTranscriptObjectConfig())) return false; + break; + case 0: + default: + } + 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(); + if (hasConversationConfig()) { + hash = (37 * hash) + CONVERSATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConversationConfig().hashCode(); + } + switch (sourceCase_) { + case 2: + hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getGcsSource().hashCode(); + break; + case 0: + default: + } + switch (objectConfigCase_) { + case 3: + hash = (37 * hash) + TRANSCRIPT_OBJECT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getTranscriptObjectConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest 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.IngestConversationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest 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.IngestConversationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest 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.IngestConversationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest 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.IngestConversationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + 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.IngestConversationsRequest 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.IngestConversationsRequest 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.IngestConversationsRequest 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 ingest conversations.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.IngestConversationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.IngestConversationsRequest) + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.class, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (gcsSourceBuilder_ != null) { + gcsSourceBuilder_.clear(); + } + if (transcriptObjectConfigBuilder_ != null) { + transcriptObjectConfigBuilder_.clear(); + } + parent_ = ""; + + if (conversationConfigBuilder_ == null) { + conversationConfig_ = null; + } else { + conversationConfig_ = null; + conversationConfigBuilder_ = null; + } + sourceCase_ = 0; + source_ = null; + objectConfigCase_ = 0; + objectConfig_ = null; + 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_IngestConversationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest build() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest buildPartial() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest result = + new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest(this); + if (sourceCase_ == 2) { + if (gcsSourceBuilder_ == null) { + result.source_ = source_; + } else { + result.source_ = gcsSourceBuilder_.build(); + } + } + if (objectConfigCase_ == 3) { + if (transcriptObjectConfigBuilder_ == null) { + result.objectConfig_ = objectConfig_; + } else { + result.objectConfig_ = transcriptObjectConfigBuilder_.build(); + } + } + result.parent_ = parent_; + if (conversationConfigBuilder_ == null) { + result.conversationConfig_ = conversationConfig_; + } else { + result.conversationConfig_ = conversationConfigBuilder_.build(); + } + result.sourceCase_ = sourceCase_; + result.objectConfigCase_ = objectConfigCase_; + 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.IngestConversationsRequest) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest other) { + if (other + == com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasConversationConfig()) { + mergeConversationConfig(other.getConversationConfig()); + } + switch (other.getSourceCase()) { + case GCS_SOURCE: + { + mergeGcsSource(other.getGcsSource()); + break; + } + case SOURCE_NOT_SET: + { + break; + } + } + switch (other.getObjectConfigCase()) { + case TRANSCRIPT_OBJECT_CONFIG: + { + mergeTranscriptObjectConfig(other.getTranscriptObjectConfig()); + break; + } + case OBJECTCONFIG_NOT_SET: + { + break; + } + } + 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(); + + break; + } // case 10 + case 18: + { + input.readMessage(getGcsSourceFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + getTranscriptObjectConfigFieldBuilder().getBuilder(), extensionRegistry); + objectConfigCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getConversationConfigFieldBuilder().getBuilder(), extensionRegistry); + + 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 sourceCase_ = 0; + private java.lang.Object source_; + + public SourceCase getSourceCase() { + return SourceCase.forNumber(sourceCase_); + } + + public Builder clearSource() { + sourceCase_ = 0; + source_ = null; + onChanged(); + return this; + } + + private int objectConfigCase_ = 0; + private java.lang.Object objectConfig_; + + public ObjectConfigCase getObjectConfigCase() { + return ObjectConfigCase.forNumber(objectConfigCase_); + } + + public Builder clearObjectConfig() { + objectConfigCase_ = 0; + objectConfig_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.Builder, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSourceOrBuilder> + gcsSourceBuilder_; + /** + * + * + *
+     * A cloud storage bucket source.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + * + * @return Whether the gcsSource field is set. + */ + @java.lang.Override + public boolean hasGcsSource() { + return sourceCase_ == 2; + } + /** + * + * + *
+     * A cloud storage bucket source.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + * + * @return The gcsSource. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + getGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 2) { + return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) + source_; + } + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .getDefaultInstance(); + } else { + if (sourceCase_ == 2) { + return gcsSourceBuilder_.getMessage(); + } + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A cloud storage bucket source.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + */ + public Builder setGcsSource( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + gcsSourceBuilder_.setMessage(value); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
+     * A cloud storage bucket source.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + */ + public Builder setGcsSource( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.Builder + builderForValue) { + if (gcsSourceBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + gcsSourceBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
+     * A cloud storage bucket source.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + */ + public Builder mergeGcsSource( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource value) { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 2 + && source_ + != com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .getDefaultInstance()) { + source_ = + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .newBuilder( + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .GcsSource) + source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 2) { + gcsSourceBuilder_.mergeFrom(value); + } else { + gcsSourceBuilder_.setMessage(value); + } + } + sourceCase_ = 2; + return this; + } + /** + * + * + *
+     * A cloud storage bucket source.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + */ + public Builder clearGcsSource() { + if (gcsSourceBuilder_ == null) { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 2) { + sourceCase_ = 0; + source_ = null; + } + gcsSourceBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A cloud storage bucket source.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + */ + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.Builder + getGcsSourceBuilder() { + return getGcsSourceFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A cloud storage bucket source.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSourceOrBuilder + getGcsSourceOrBuilder() { + if ((sourceCase_ == 2) && (gcsSourceBuilder_ != null)) { + return gcsSourceBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 2) { + return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) + source_; + } + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .getDefaultInstance(); + } + } + /** + * + * + *
+     * A cloud storage bucket source.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource.Builder, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSourceOrBuilder> + getGcsSourceFieldBuilder() { + if (gcsSourceBuilder_ == null) { + if (!(sourceCase_ == 2)) { + source_ = + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .getDefaultInstance(); + } + gcsSourceBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource + .Builder, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .GcsSourceOrBuilder>( + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource) + source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 2; + onChanged(); + ; + return gcsSourceBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.Builder, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfigOrBuilder> + transcriptObjectConfigBuilder_; + /** + * + * + *
+     * Configuration for when `source` contains conversation transcripts.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + * + * @return Whether the transcriptObjectConfig field is set. + */ + @java.lang.Override + public boolean hasTranscriptObjectConfig() { + return objectConfigCase_ == 3; + } + /** + * + * + *
+     * Configuration for when `source` contains conversation transcripts.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + * + * @return The transcriptObjectConfig. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig + getTranscriptObjectConfig() { + if (transcriptObjectConfigBuilder_ == null) { + if (objectConfigCase_ == 3) { + return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig) + objectConfig_; + } + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.getDefaultInstance(); + } else { + if (objectConfigCase_ == 3) { + return transcriptObjectConfigBuilder_.getMessage(); + } + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for when `source` contains conversation transcripts.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + */ + public Builder setTranscriptObjectConfig( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig + value) { + if (transcriptObjectConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + objectConfig_ = value; + onChanged(); + } else { + transcriptObjectConfigBuilder_.setMessage(value); + } + objectConfigCase_ = 3; + return this; + } + /** + * + * + *
+     * Configuration for when `source` contains conversation transcripts.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + */ + public Builder setTranscriptObjectConfig( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig + .Builder + builderForValue) { + if (transcriptObjectConfigBuilder_ == null) { + objectConfig_ = builderForValue.build(); + onChanged(); + } else { + transcriptObjectConfigBuilder_.setMessage(builderForValue.build()); + } + objectConfigCase_ = 3; + return this; + } + /** + * + * + *
+     * Configuration for when `source` contains conversation transcripts.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + */ + public Builder mergeTranscriptObjectConfig( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig + value) { + if (transcriptObjectConfigBuilder_ == null) { + if (objectConfigCase_ == 3 + && objectConfig_ + != com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.getDefaultInstance()) { + objectConfig_ = + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.newBuilder( + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig) + objectConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + objectConfig_ = value; + } + onChanged(); + } else { + if (objectConfigCase_ == 3) { + transcriptObjectConfigBuilder_.mergeFrom(value); + } else { + transcriptObjectConfigBuilder_.setMessage(value); + } + } + objectConfigCase_ = 3; + return this; + } + /** + * + * + *
+     * Configuration for when `source` contains conversation transcripts.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + */ + public Builder clearTranscriptObjectConfig() { + if (transcriptObjectConfigBuilder_ == null) { + if (objectConfigCase_ == 3) { + objectConfigCase_ = 0; + objectConfig_ = null; + onChanged(); + } + } else { + if (objectConfigCase_ == 3) { + objectConfigCase_ = 0; + objectConfig_ = null; + } + transcriptObjectConfigBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Configuration for when `source` contains conversation transcripts.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + */ + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.Builder + getTranscriptObjectConfigBuilder() { + return getTranscriptObjectConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration for when `source` contains conversation transcripts.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfigOrBuilder + getTranscriptObjectConfigOrBuilder() { + if ((objectConfigCase_ == 3) && (transcriptObjectConfigBuilder_ != null)) { + return transcriptObjectConfigBuilder_.getMessageOrBuilder(); + } else { + if (objectConfigCase_ == 3) { + return (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig) + objectConfig_; + } + return com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.getDefaultInstance(); + } + } + /** + * + * + *
+     * Configuration for when `source` contains conversation transcripts.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.Builder, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfigOrBuilder> + getTranscriptObjectConfigFieldBuilder() { + if (transcriptObjectConfigBuilder_ == null) { + if (!(objectConfigCase_ == 3)) { + objectConfig_ = + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.getDefaultInstance(); + } + transcriptObjectConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig.Builder, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfigOrBuilder>( + (com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfig) + objectConfig_, + getParentForChildren(), + isClean()); + objectConfig_ = null; + } + objectConfigCase_ = 3; + onChanged(); + ; + return transcriptObjectConfigBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource for new conversations.
+     * 
+ * + * + * 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 for new conversations.
+     * 
+ * + * + * 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 for new conversations.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource for new conversations.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource for new conversations.
+     * 
+ * + * + * 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; + onChanged(); + return this; + } + + private com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + conversationConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + .Builder, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfigOrBuilder> + conversationConfigBuilder_; + /** + * + * + *
+     * Configuration that applies to all conversations.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + * + * @return Whether the conversationConfig field is set. + */ + public boolean hasConversationConfig() { + return conversationConfigBuilder_ != null || conversationConfig_ != null; + } + /** + * + * + *
+     * Configuration that applies to all conversations.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + * + * @return The conversationConfig. + */ + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + getConversationConfig() { + if (conversationConfigBuilder_ == null) { + return conversationConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig.getDefaultInstance() + : conversationConfig_; + } else { + return conversationConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Configuration that applies to all conversations.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + */ + public Builder setConversationConfig( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + value) { + if (conversationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversationConfig_ = value; + onChanged(); + } else { + conversationConfigBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Configuration that applies to all conversations.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + */ + public Builder setConversationConfig( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + .Builder + builderForValue) { + if (conversationConfigBuilder_ == null) { + conversationConfig_ = builderForValue.build(); + onChanged(); + } else { + conversationConfigBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Configuration that applies to all conversations.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + */ + public Builder mergeConversationConfig( + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + value) { + if (conversationConfigBuilder_ == null) { + if (conversationConfig_ != null) { + conversationConfig_ = + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig.newBuilder(conversationConfig_) + .mergeFrom(value) + .buildPartial(); + } else { + conversationConfig_ = value; + } + onChanged(); + } else { + conversationConfigBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Configuration that applies to all conversations.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + */ + public Builder clearConversationConfig() { + if (conversationConfigBuilder_ == null) { + conversationConfig_ = null; + onChanged(); + } else { + conversationConfig_ = null; + conversationConfigBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Configuration that applies to all conversations.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + */ + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + .Builder + getConversationConfigBuilder() { + + onChanged(); + return getConversationConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Configuration that applies to all conversations.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + */ + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfigOrBuilder + getConversationConfigOrBuilder() { + if (conversationConfigBuilder_ != null) { + return conversationConfigBuilder_.getMessageOrBuilder(); + } else { + return conversationConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig.getDefaultInstance() + : conversationConfig_; + } + } + /** + * + * + *
+     * Configuration that applies to all conversations.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + .Builder, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfigOrBuilder> + getConversationConfigFieldBuilder() { + if (conversationConfigBuilder_ == null) { + conversationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfig.Builder, + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .ConversationConfigOrBuilder>( + getConversationConfig(), getParentForChildren(), isClean()); + conversationConfig_ = null; + } + return conversationConfigBuilder_; + } + + @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.IngestConversationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.IngestConversationsRequest) + private static final com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest(); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestConversationsRequest 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.IngestConversationsRequest + 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/IngestConversationsRequestOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequestOrBuilder.java new file mode 100644 index 000000000000..cdc6e2a96519 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsRequestOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2020 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 IngestConversationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.IngestConversationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A cloud storage bucket source.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + * + * @return Whether the gcsSource field is set. + */ + boolean hasGcsSource(); + /** + * + * + *
+   * A cloud storage bucket source.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + * + * @return The gcsSource. + */ + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource getGcsSource(); + /** + * + * + *
+   * A cloud storage bucket source.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource gcs_source = 2; + * + */ + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSourceOrBuilder + getGcsSourceOrBuilder(); + + /** + * + * + *
+   * Configuration for when `source` contains conversation transcripts.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + * + * @return Whether the transcriptObjectConfig field is set. + */ + boolean hasTranscriptObjectConfig(); + /** + * + * + *
+   * Configuration for when `source` contains conversation transcripts.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + * + * @return The transcriptObjectConfig. + */ + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig + getTranscriptObjectConfig(); + /** + * + * + *
+   * Configuration for when `source` contains conversation transcripts.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig transcript_object_config = 3; + * + */ + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest + .TranscriptObjectConfigOrBuilder + getTranscriptObjectConfigOrBuilder(); + + /** + * + * + *
+   * Required. The parent resource for new conversations.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource for new conversations.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Configuration that applies to all conversations.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + * + * @return Whether the conversationConfig field is set. + */ + boolean hasConversationConfig(); + /** + * + * + *
+   * Configuration that applies to all conversations.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + * + * @return The conversationConfig. + */ + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig + getConversationConfig(); + /** + * + * + *
+   * Configuration that applies to all conversations.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig conversation_config = 4; + * + */ + com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfigOrBuilder + getConversationConfigOrBuilder(); + + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.SourceCase + getSourceCase(); + + public com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ObjectConfigCase + getObjectConfigCase(); +} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsResponse.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsResponse.java new file mode 100644 index 000000000000..e1973012d14f --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsResponse.java @@ -0,0 +1,447 @@ +/* + * Copyright 2020 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 to an IngestConversations operation.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.IngestConversationsResponse} + */ +public final class IngestConversationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.IngestConversationsResponse) + IngestConversationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use IngestConversationsResponse.newBuilder() to construct. + private IngestConversationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IngestConversationsResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IngestConversationsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse.class, + com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse.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.IngestConversationsResponse)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse other = + (com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse) 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.IngestConversationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse 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.IngestConversationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse 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.IngestConversationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse 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.IngestConversationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse 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.IngestConversationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse + 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.IngestConversationsResponse 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.IngestConversationsResponse 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.IngestConversationsResponse 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 to an IngestConversations operation.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.IngestConversationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.IngestConversationsResponse) + com.google.cloud.contactcenterinsights.v1.IngestConversationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse.class, + com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse.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_IngestConversationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse build() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse buildPartial() { + com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse result = + new com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse(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.IngestConversationsResponse) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse other) { + if (other + == com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse + .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.IngestConversationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.IngestConversationsResponse) + private static final com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse(); + } + + public static com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IngestConversationsResponse 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.IngestConversationsResponse + 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/IngestConversationsResponseOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsResponseOrBuilder.java new file mode 100644 index 000000000000..a82f2c5d67cd --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IngestConversationsResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 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 IngestConversationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.IngestConversationsResponse) + 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/Issue.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Issue.java index ed0d88396ecf..b627e13e5ce4 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Issue.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Issue.java @@ -40,6 +40,7 @@ private Issue(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Issue() { name_ = ""; displayName_ = ""; + sampleUtterances_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @@ -268,6 +269,75 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); } + public static final int SAMPLE_UTTERANCES_FIELD_NUMBER = 6; + private com.google.protobuf.LazyStringList sampleUtterances_; + /** + * + * + *
+   * Output only. Resource names of the sample representative utterances that match to this
+   * issue.
+   * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the sampleUtterances. + */ + public com.google.protobuf.ProtocolStringList getSampleUtterancesList() { + return sampleUtterances_; + } + /** + * + * + *
+   * Output only. Resource names of the sample representative utterances that match to this
+   * issue.
+   * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of sampleUtterances. + */ + public int getSampleUtterancesCount() { + return sampleUtterances_.size(); + } + /** + * + * + *
+   * Output only. Resource names of the sample representative utterances that match to this
+   * issue.
+   * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The sampleUtterances at the given index. + */ + public java.lang.String getSampleUtterances(int index) { + return sampleUtterances_.get(index); + } + /** + * + * + *
+   * Output only. Resource names of the sample representative utterances that match to this
+   * issue.
+   * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the sampleUtterances at the given index. + */ + public com.google.protobuf.ByteString getSampleUtterancesBytes(int index) { + return sampleUtterances_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -294,6 +364,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); } + for (int i = 0; i < sampleUtterances_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sampleUtterances_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -315,6 +388,14 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } + { + int dataSize = 0; + for (int i = 0; i < sampleUtterances_.size(); i++) { + dataSize += computeStringSizeNoTag(sampleUtterances_.getRaw(i)); + } + size += dataSize; + size += 1 * getSampleUtterancesList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -341,6 +422,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (!getSampleUtterancesList().equals(other.getSampleUtterancesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,6 +446,10 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + if (getSampleUtterancesCount() > 0) { + hash = (37 * hash) + SAMPLE_UTTERANCES_FIELD_NUMBER; + hash = (53 * hash) + getSampleUtterancesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -518,6 +604,8 @@ public Builder clear() { updateTime_ = null; updateTimeBuilder_ = null; } + sampleUtterances_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -545,6 +633,7 @@ public com.google.cloud.contactcenterinsights.v1.Issue build() { public com.google.cloud.contactcenterinsights.v1.Issue buildPartial() { com.google.cloud.contactcenterinsights.v1.Issue result = new com.google.cloud.contactcenterinsights.v1.Issue(this); + int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; if (createTimeBuilder_ == null) { @@ -557,6 +646,11 @@ public com.google.cloud.contactcenterinsights.v1.Issue buildPartial() { } else { result.updateTime_ = updateTimeBuilder_.build(); } + if (((bitField0_ & 0x00000001) != 0)) { + sampleUtterances_ = sampleUtterances_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.sampleUtterances_ = sampleUtterances_; onBuilt(); return result; } @@ -621,6 +715,16 @@ public Builder mergeFrom(com.google.cloud.contactcenterinsights.v1.Issue other) if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (!other.sampleUtterances_.isEmpty()) { + if (sampleUtterances_.isEmpty()) { + sampleUtterances_ = other.sampleUtterances_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSampleUtterancesIsMutable(); + sampleUtterances_.addAll(other.sampleUtterances_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -671,6 +775,13 @@ public Builder mergeFrom( break; } // case 34 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSampleUtterancesIsMutable(); + sampleUtterances_.add(s); + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -688,6 +799,8 @@ public Builder mergeFrom( return this; } + private int bitField0_; + private java.lang.Object name_ = ""; /** * @@ -1312,6 +1425,192 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private com.google.protobuf.LazyStringList sampleUtterances_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureSampleUtterancesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + sampleUtterances_ = new com.google.protobuf.LazyStringArrayList(sampleUtterances_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Output only. Resource names of the sample representative utterances that match to this
+     * issue.
+     * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the sampleUtterances. + */ + public com.google.protobuf.ProtocolStringList getSampleUtterancesList() { + return sampleUtterances_.getUnmodifiableView(); + } + /** + * + * + *
+     * Output only. Resource names of the sample representative utterances that match to this
+     * issue.
+     * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of sampleUtterances. + */ + public int getSampleUtterancesCount() { + return sampleUtterances_.size(); + } + /** + * + * + *
+     * Output only. Resource names of the sample representative utterances that match to this
+     * issue.
+     * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The sampleUtterances at the given index. + */ + public java.lang.String getSampleUtterances(int index) { + return sampleUtterances_.get(index); + } + /** + * + * + *
+     * Output only. Resource names of the sample representative utterances that match to this
+     * issue.
+     * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the sampleUtterances at the given index. + */ + public com.google.protobuf.ByteString getSampleUtterancesBytes(int index) { + return sampleUtterances_.getByteString(index); + } + /** + * + * + *
+     * Output only. Resource names of the sample representative utterances that match to this
+     * issue.
+     * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The sampleUtterances to set. + * @return This builder for chaining. + */ + public Builder setSampleUtterances(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleUtterancesIsMutable(); + sampleUtterances_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource names of the sample representative utterances that match to this
+     * issue.
+     * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The sampleUtterances to add. + * @return This builder for chaining. + */ + public Builder addSampleUtterances(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSampleUtterancesIsMutable(); + sampleUtterances_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource names of the sample representative utterances that match to this
+     * issue.
+     * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The sampleUtterances to add. + * @return This builder for chaining. + */ + public Builder addAllSampleUtterances(java.lang.Iterable values) { + ensureSampleUtterancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampleUtterances_); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource names of the sample representative utterances that match to this
+     * issue.
+     * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSampleUtterances() { + sampleUtterances_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource names of the sample representative utterances that match to this
+     * issue.
+     * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the sampleUtterances to add. + * @return This builder for chaining. + */ + public Builder addSampleUtterancesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSampleUtterancesIsMutable(); + sampleUtterances_.add(value); + onChanged(); + return this; + } + @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/IssueMatchData.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueMatchData.java new file mode 100644 index 000000000000..1c2c40e66afa --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueMatchData.java @@ -0,0 +1,710 @@ +/* + * Copyright 2020 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/resources.proto + +package com.google.cloud.contactcenterinsights.v1; + +/** + * + * + *
+ * The data for an issue match annotation.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.IssueMatchData} + */ +public final class IssueMatchData extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.IssueMatchData) + IssueMatchDataOrBuilder { + private static final long serialVersionUID = 0L; + // Use IssueMatchData.newBuilder() to construct. + private IssueMatchData(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private IssueMatchData() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new IssueMatchData(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_IssueMatchData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_IssueMatchData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IssueMatchData.class, + com.google.cloud.contactcenterinsights.v1.IssueMatchData.Builder.class); + } + + public static final int ISSUE_ASSIGNMENT_FIELD_NUMBER = 1; + private com.google.cloud.contactcenterinsights.v1.IssueAssignment issueAssignment_; + /** + * + * + *
+   * Information about the issue's assignment.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + * + * @return Whether the issueAssignment field is set. + */ + @java.lang.Override + public boolean hasIssueAssignment() { + return issueAssignment_ != null; + } + /** + * + * + *
+   * Information about the issue's assignment.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + * + * @return The issueAssignment. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IssueAssignment getIssueAssignment() { + return issueAssignment_ == null + ? com.google.cloud.contactcenterinsights.v1.IssueAssignment.getDefaultInstance() + : issueAssignment_; + } + /** + * + * + *
+   * Information about the issue's assignment.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IssueAssignmentOrBuilder + getIssueAssignmentOrBuilder() { + return getIssueAssignment(); + } + + 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 (issueAssignment_ != null) { + output.writeMessage(1, getIssueAssignment()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (issueAssignment_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIssueAssignment()); + } + 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.IssueMatchData)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.IssueMatchData other = + (com.google.cloud.contactcenterinsights.v1.IssueMatchData) obj; + + if (hasIssueAssignment() != other.hasIssueAssignment()) return false; + if (hasIssueAssignment()) { + if (!getIssueAssignment().equals(other.getIssueAssignment())) 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 (hasIssueAssignment()) { + hash = (37 * hash) + ISSUE_ASSIGNMENT_FIELD_NUMBER; + hash = (53 * hash) + getIssueAssignment().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.IssueMatchData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IssueMatchData 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.IssueMatchData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IssueMatchData 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.IssueMatchData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.IssueMatchData 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.IssueMatchData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IssueMatchData 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.IssueMatchData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.IssueMatchData 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.IssueMatchData 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.IssueMatchData 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.IssueMatchData 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 data for an issue match annotation.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.IssueMatchData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.IssueMatchData) + com.google.cloud.contactcenterinsights.v1.IssueMatchDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_IssueMatchData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_IssueMatchData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.IssueMatchData.class, + com.google.cloud.contactcenterinsights.v1.IssueMatchData.Builder.class); + } + + // Construct using com.google.cloud.contactcenterinsights.v1.IssueMatchData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (issueAssignmentBuilder_ == null) { + issueAssignment_ = null; + } else { + issueAssignment_ = null; + issueAssignmentBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_IssueMatchData_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IssueMatchData getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.IssueMatchData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IssueMatchData build() { + com.google.cloud.contactcenterinsights.v1.IssueMatchData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.IssueMatchData buildPartial() { + com.google.cloud.contactcenterinsights.v1.IssueMatchData result = + new com.google.cloud.contactcenterinsights.v1.IssueMatchData(this); + if (issueAssignmentBuilder_ == null) { + result.issueAssignment_ = issueAssignment_; + } else { + result.issueAssignment_ = issueAssignmentBuilder_.build(); + } + 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.IssueMatchData) { + return mergeFrom((com.google.cloud.contactcenterinsights.v1.IssueMatchData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.contactcenterinsights.v1.IssueMatchData other) { + if (other == com.google.cloud.contactcenterinsights.v1.IssueMatchData.getDefaultInstance()) + return this; + if (other.hasIssueAssignment()) { + mergeIssueAssignment(other.getIssueAssignment()); + } + 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(getIssueAssignmentFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + 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 com.google.cloud.contactcenterinsights.v1.IssueAssignment issueAssignment_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IssueAssignment, + com.google.cloud.contactcenterinsights.v1.IssueAssignment.Builder, + com.google.cloud.contactcenterinsights.v1.IssueAssignmentOrBuilder> + issueAssignmentBuilder_; + /** + * + * + *
+     * Information about the issue's assignment.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + * + * @return Whether the issueAssignment field is set. + */ + public boolean hasIssueAssignment() { + return issueAssignmentBuilder_ != null || issueAssignment_ != null; + } + /** + * + * + *
+     * Information about the issue's assignment.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + * + * @return The issueAssignment. + */ + public com.google.cloud.contactcenterinsights.v1.IssueAssignment getIssueAssignment() { + if (issueAssignmentBuilder_ == null) { + return issueAssignment_ == null + ? com.google.cloud.contactcenterinsights.v1.IssueAssignment.getDefaultInstance() + : issueAssignment_; + } else { + return issueAssignmentBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Information about the issue's assignment.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + */ + public Builder setIssueAssignment( + com.google.cloud.contactcenterinsights.v1.IssueAssignment value) { + if (issueAssignmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + issueAssignment_ = value; + onChanged(); + } else { + issueAssignmentBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Information about the issue's assignment.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + */ + public Builder setIssueAssignment( + com.google.cloud.contactcenterinsights.v1.IssueAssignment.Builder builderForValue) { + if (issueAssignmentBuilder_ == null) { + issueAssignment_ = builderForValue.build(); + onChanged(); + } else { + issueAssignmentBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Information about the issue's assignment.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + */ + public Builder mergeIssueAssignment( + com.google.cloud.contactcenterinsights.v1.IssueAssignment value) { + if (issueAssignmentBuilder_ == null) { + if (issueAssignment_ != null) { + issueAssignment_ = + com.google.cloud.contactcenterinsights.v1.IssueAssignment.newBuilder(issueAssignment_) + .mergeFrom(value) + .buildPartial(); + } else { + issueAssignment_ = value; + } + onChanged(); + } else { + issueAssignmentBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Information about the issue's assignment.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + */ + public Builder clearIssueAssignment() { + if (issueAssignmentBuilder_ == null) { + issueAssignment_ = null; + onChanged(); + } else { + issueAssignment_ = null; + issueAssignmentBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Information about the issue's assignment.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + */ + public com.google.cloud.contactcenterinsights.v1.IssueAssignment.Builder + getIssueAssignmentBuilder() { + + onChanged(); + return getIssueAssignmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Information about the issue's assignment.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + */ + public com.google.cloud.contactcenterinsights.v1.IssueAssignmentOrBuilder + getIssueAssignmentOrBuilder() { + if (issueAssignmentBuilder_ != null) { + return issueAssignmentBuilder_.getMessageOrBuilder(); + } else { + return issueAssignment_ == null + ? com.google.cloud.contactcenterinsights.v1.IssueAssignment.getDefaultInstance() + : issueAssignment_; + } + } + /** + * + * + *
+     * Information about the issue's assignment.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IssueAssignment, + com.google.cloud.contactcenterinsights.v1.IssueAssignment.Builder, + com.google.cloud.contactcenterinsights.v1.IssueAssignmentOrBuilder> + getIssueAssignmentFieldBuilder() { + if (issueAssignmentBuilder_ == null) { + issueAssignmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.IssueAssignment, + com.google.cloud.contactcenterinsights.v1.IssueAssignment.Builder, + com.google.cloud.contactcenterinsights.v1.IssueAssignmentOrBuilder>( + getIssueAssignment(), getParentForChildren(), isClean()); + issueAssignment_ = null; + } + return issueAssignmentBuilder_; + } + + @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.IssueMatchData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.IssueMatchData) + private static final com.google.cloud.contactcenterinsights.v1.IssueMatchData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.contactcenterinsights.v1.IssueMatchData(); + } + + public static com.google.cloud.contactcenterinsights.v1.IssueMatchData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public IssueMatchData 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.IssueMatchData 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/IssueMatchDataOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueMatchDataOrBuilder.java new file mode 100644 index 000000000000..f4aeb90d0d05 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueMatchDataOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 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/resources.proto + +package com.google.cloud.contactcenterinsights.v1; + +public interface IssueMatchDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.IssueMatchData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Information about the issue's assignment.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + * + * @return Whether the issueAssignment field is set. + */ + boolean hasIssueAssignment(); + /** + * + * + *
+   * Information about the issue's assignment.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + * + * @return The issueAssignment. + */ + com.google.cloud.contactcenterinsights.v1.IssueAssignment getIssueAssignment(); + /** + * + * + *
+   * Information about the issue's assignment.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.IssueAssignment issue_assignment = 1; + */ + com.google.cloud.contactcenterinsights.v1.IssueAssignmentOrBuilder getIssueAssignmentOrBuilder(); +} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueModel.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueModel.java index 99d238992595..94d2056921f8 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueModel.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueModel.java @@ -315,7 +315,7 @@ public interface InputDataConfigOrBuilder * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=593 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=606 * @return The enum numeric value on the wire for medium. */ @java.lang.Deprecated @@ -334,7 +334,7 @@ public interface InputDataConfigOrBuilder * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=593 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=606 * @return The medium. */ @java.lang.Deprecated @@ -447,7 +447,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=593 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=606 * @return The enum numeric value on the wire for medium. */ @java.lang.Override @@ -469,7 +469,7 @@ public int getMediumValue() { * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=593 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=606 * @return The medium. */ @java.lang.Override @@ -958,7 +958,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=593 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=606 * @return The enum numeric value on the wire for medium. */ @java.lang.Override @@ -980,7 +980,7 @@ public int getMediumValue() { * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=593 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=606 * @param value The enum numeric value on the wire for medium to set. * @return This builder for chaining. */ @@ -1005,7 +1005,7 @@ public Builder setMediumValue(int value) { * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=593 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=606 * @return The medium. */ @java.lang.Override @@ -1032,7 +1032,7 @@ public com.google.cloud.contactcenterinsights.v1.Conversation.Medium getMedium() * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=593 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=606 * @param value The medium to set. * @return This builder for chaining. */ @@ -1061,7 +1061,7 @@ public Builder setMedium( * * * @deprecated google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig.medium is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=593 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=606 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueOrBuilder.java index 86d884d5afa4..b447a380ae42 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueOrBuilder.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/IssueOrBuilder.java @@ -152,4 +152,63 @@ public interface IssueOrBuilder * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Resource names of the sample representative utterances that match to this
+   * issue.
+   * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the sampleUtterances. + */ + java.util.List getSampleUtterancesList(); + /** + * + * + *
+   * Output only. Resource names of the sample representative utterances that match to this
+   * issue.
+   * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of sampleUtterances. + */ + int getSampleUtterancesCount(); + /** + * + * + *
+   * Output only. Resource names of the sample representative utterances that match to this
+   * issue.
+   * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The sampleUtterances at the given index. + */ + java.lang.String getSampleUtterances(int index); + /** + * + * + *
+   * Output only. Resource names of the sample representative utterances that match to this
+   * issue.
+   * 
+ * + * repeated string sample_utterances = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the sampleUtterances at the given index. + */ + com.google.protobuf.ByteString getSampleUtterancesBytes(int index); } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ResourcesProto.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ResourcesProto.java index 62e92f3ff224..5cc5b8dff274 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ResourcesProto.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ResourcesProto.java @@ -159,6 +159,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_contactcenterinsights_v1_SentimentData_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_contactcenterinsights_v1_SentimentData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_IssueMatchData_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_IssueMatchData_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_contactcenterinsights_v1_IssueModel_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -267,6 +271,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_contactcenterinsights_v1_View_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_contactcenterinsights_v1_View_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -343,283 +351,303 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ntactcenterinsights.googleapis.com/Conve" + "rsation\022Dprojects/{project}/locations/{l" + "ocation}/conversations/{conversation}B\n\n" - + "\010metadataB\014\n\nexpiration\"\357\002\n\010Analysis\022\021\n\004" + + "\010metadataB\014\n\nexpiration\"\305\003\n\010Analysis\022\021\n\004" + "name\030\001 \001(\tB\003\340A\005\0225\n\014request_time\030\002 \001(\0132\032." + "google.protobuf.TimestampB\003\340A\003\0224\n\013create" + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + "\003\340A\003\022S\n\017analysis_result\030\007 \001(\01325.google.c" + "loud.contactcenterinsights.v1.AnalysisRe" - + "sultB\003\340A\003:\215\001\352A\211\001\n-contactcenterinsights." - + "googleapis.com/Analysis\022Xprojects/{proje" - + "ct}/locations/{location}/conversations/{" - + "conversation}/analyses/{analysis}\"\300\001\n\026Co" - + "nversationDataSource\022F\n\ngcs_source\030\001 \001(\013" - + "20.google.cloud.contactcenterinsights.v1" - + ".GcsSourceH\000\022T\n\021dialogflow_source\030\003 \001(\0132" - + "7.google.cloud.contactcenterinsights.v1." - + "DialogflowSourceH\000B\010\n\006source\";\n\tGcsSourc" - + "e\022\021\n\taudio_uri\030\001 \001(\t\022\033\n\016transcript_uri\030\002" - + " \001(\tB\003\340A\005\"K\n\020DialogflowSource\022$\n\027dialogf" - + "low_conversation\030\001 \001(\tB\003\340A\003\022\021\n\taudio_uri" - + "\030\003 \001(\t\"\306\010\n\016AnalysisResult\022l\n\026call_analys" - + "is_metadata\030\002 \001(\0132J.google.cloud.contact" - + "centerinsights.v1.AnalysisResult.CallAna" - + "lysisMetadataH\000\022,\n\010end_time\030\001 \001(\0132\032.goog" - + "le.protobuf.Timestamp\032\213\007\n\024CallAnalysisMe" - + "tadata\022J\n\013annotations\030\002 \003(\01325.google.clo" - + "ud.contactcenterinsights.v1.CallAnnotati" - + "on\022j\n\010entities\030\003 \003(\0132X.google.cloud.cont" + + "sultB\003\340A\003\022T\n\022annotator_selector\030\010 \001(\01328." + + "google.cloud.contactcenterinsights.v1.An" + + "notatorSelector:\215\001\352A\211\001\n-contactcenterins" + + "ights.googleapis.com/Analysis\022Xprojects/" + + "{project}/locations/{location}/conversat" + + "ions/{conversation}/analyses/{analysis}\"" + + "\300\001\n\026ConversationDataSource\022F\n\ngcs_source" + + "\030\001 \001(\01320.google.cloud.contactcenterinsig" + + "hts.v1.GcsSourceH\000\022T\n\021dialogflow_source\030" + + "\003 \001(\01327.google.cloud.contactcenterinsigh" + + "ts.v1.DialogflowSourceH\000B\010\n\006source\";\n\tGc" + + "sSource\022\021\n\taudio_uri\030\001 \001(\t\022\033\n\016transcript" + + "_uri\030\002 \001(\tB\003\340A\005\"K\n\020DialogflowSource\022$\n\027d" + + "ialogflow_conversation\030\001 \001(\tB\003\340A\003\022\021\n\taud" + + "io_uri\030\003 \001(\t\"\306\010\n\016AnalysisResult\022l\n\026call_" + + "analysis_metadata\030\002 \001(\0132J.google.cloud.c" + + "ontactcenterinsights.v1.AnalysisResult.C" + + "allAnalysisMetadataH\000\022,\n\010end_time\030\001 \001(\0132" + + "\032.google.protobuf.Timestamp\032\213\007\n\024CallAnal" + + "ysisMetadata\022J\n\013annotations\030\002 \003(\01325.goog" + + "le.cloud.contactcenterinsights.v1.CallAn" + + "notation\022j\n\010entities\030\003 \003(\0132X.google.clou" + + "d.contactcenterinsights.v1.AnalysisResul" + + "t.CallAnalysisMetadata.EntitiesEntry\022U\n\n" + + "sentiments\030\004 \003(\0132A.google.cloud.contactc" + + "enterinsights.v1.ConversationLevelSentim" + + "ent\022h\n\007intents\030\006 \003(\0132W.google.cloud.cont" + "actcenterinsights.v1.AnalysisResult.Call" - + "AnalysisMetadata.EntitiesEntry\022U\n\nsentim" - + "ents\030\004 \003(\0132A.google.cloud.contactcenteri" - + "nsights.v1.ConversationLevelSentiment\022h\n" - + "\007intents\030\006 \003(\0132W.google.cloud.contactcen" + + "AnalysisMetadata.IntentsEntry\022w\n\017phrase_" + + "matchers\030\007 \003(\0132^.google.cloud.contactcen" + "terinsights.v1.AnalysisResult.CallAnalys" - + "isMetadata.IntentsEntry\022w\n\017phrase_matche" - + "rs\030\007 \003(\0132^.google.cloud.contactcenterins" - + "ights.v1.AnalysisResult.CallAnalysisMeta" - + "data.PhraseMatchersEntry\022S\n\022issue_model_" - + "result\030\010 \001(\01327.google.cloud.contactcente" - + "rinsights.v1.IssueModelResult\032^\n\rEntitie" - + "sEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.goo" - + "gle.cloud.contactcenterinsights.v1.Entit" - + "y:\0028\001\032]\n\014IntentsEntry\022\013\n\003key\030\001 \001(\t\022<\n\005va" - + "lue\030\002 \001(\0132-.google.cloud.contactcenterin" - + "sights.v1.Intent:\0028\001\032m\n\023PhraseMatchersEn" - + "try\022\013\n\003key\030\001 \001(\t\022E\n\005value\030\002 \001(\01326.google" - + ".cloud.contactcenterinsights.v1.PhraseMa" - + "tchData:\0028\001B\n\n\010metadata\"\245\001\n\020IssueModelRe" - + "sult\022I\n\013issue_model\030\001 \001(\tB4\372A1\n/contactc" - + "enterinsights.googleapis.com/IssueModel\022" - + "F\n\006issues\030\002 \003(\01326.google.cloud.contactce" - + "nterinsights.v1.IssueAssignment\"\177\n\032Conve" - + "rsationLevelSentiment\022\023\n\013channel_tag\030\001 \001" - + "(\005\022L\n\016sentiment_data\030\002 \001(\01324.google.clou" - + "d.contactcenterinsights.v1.SentimentData" - + "\"J\n\017IssueAssignment\022\r\n\005issue\030\001 \001(\t\022\r\n\005sc" - + "ore\030\002 \001(\001\022\031\n\014display_name\030\003 \001(\tB\003\340A\005\"\242\006\n" - + "\016CallAnnotation\022T\n\021interruption_data\030\n \001" - + "(\01327.google.cloud.contactcenterinsights." - + "v1.InterruptionDataH\000\022N\n\016sentiment_data\030" - + "\013 \001(\01324.google.cloud.contactcenterinsigh" - + "ts.v1.SentimentDataH\000\022J\n\014silence_data\030\014 " - + "\001(\01322.google.cloud.contactcenterinsights" - + ".v1.SilenceDataH\000\022D\n\thold_data\030\r \001(\0132/.g" - + "oogle.cloud.contactcenterinsights.v1.Hol" - + "dDataH\000\022W\n\023entity_mention_data\030\017 \001(\01328.g" - + "oogle.cloud.contactcenterinsights.v1.Ent" - + "ityMentionDataH\000\022S\n\021intent_match_data\030\020 " - + "\001(\01326.google.cloud.contactcenterinsights" - + ".v1.IntentMatchDataH\000\022S\n\021phrase_match_da" - + "ta\030\021 \001(\01326.google.cloud.contactcenterins" - + "ights.v1.PhraseMatchDataH\000\022\023\n\013channel_ta" - + "g\030\001 \001(\005\022\\\n\031annotation_start_boundary\030\004 \001" - + "(\01329.google.cloud.contactcenterinsights." - + "v1.AnnotationBoundary\022Z\n\027annotation_end_" - + "boundary\030\005 \001(\01329.google.cloud.contactcen" - + "terinsights.v1.AnnotationBoundaryB\006\n\004dat" - + "a\"Y\n\022AnnotationBoundary\022\024\n\nword_index\030\003 " - + "\001(\005H\000\022\030\n\020transcript_index\030\001 \001(\005B\023\n\021detai" - + "led_boundary\"\200\004\n\006Entity\022\024\n\014display_name\030" - + "\001 \001(\t\022@\n\004type\030\002 \001(\01622.google.cloud.conta" - + "ctcenterinsights.v1.Entity.Type\022M\n\010metad" - + "ata\030\003 \003(\0132;.google.cloud.contactcenterin" - + "sights.v1.Entity.MetadataEntry\022\020\n\010salien" - + "ce\030\004 \001(\002\022G\n\tsentiment\030\005 \001(\01324.google.clo" - + "ud.contactcenterinsights.v1.SentimentDat" - + "a\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value" - + "\030\002 \001(\t:\0028\001\"\302\001\n\004Type\022\024\n\020TYPE_UNSPECIFIED\020" - + "\000\022\n\n\006PERSON\020\001\022\014\n\010LOCATION\020\002\022\020\n\014ORGANIZAT" - + "ION\020\003\022\t\n\005EVENT\020\004\022\017\n\013WORK_OF_ART\020\005\022\021\n\rCON" - + "SUMER_GOOD\020\006\022\t\n\005OTHER\020\007\022\020\n\014PHONE_NUMBER\020" - + "\t\022\013\n\007ADDRESS\020\n\022\010\n\004DATE\020\013\022\n\n\006NUMBER\020\014\022\t\n\005" - + "PRICE\020\r\"*\n\006Intent\022\n\n\002id\030\001 \001(\t\022\024\n\014display" - + "_name\030\002 \001(\t\"?\n\017PhraseMatchData\022\026\n\016phrase" - + "_matcher\030\001 \001(\t\022\024\n\014display_name\030\002 \001(\t\"(\n\020" - + "DialogflowIntent\022\024\n\014display_name\030\001 \001(\t\"\022" - + "\n\020InterruptionData\"\r\n\013SilenceData\"\n\n\010Hol" - + "dData\"\217\002\n\021EntityMentionData\022\030\n\020entity_un" - + "ique_id\030\001 \001(\t\022R\n\004type\030\002 \001(\0162D.google.clo" - + "ud.contactcenterinsights.v1.EntityMentio" - + "nData.MentionType\022G\n\tsentiment\030\003 \001(\01324.g" + + "isMetadata.PhraseMatchersEntry\022S\n\022issue_" + + "model_result\030\010 \001(\01327.google.cloud.contac" + + "tcenterinsights.v1.IssueModelResult\032^\n\rE" + + "ntitiesEntry\022\013\n\003key\030\001 \001(\t\022<\n\005value\030\002 \001(\013" + + "2-.google.cloud.contactcenterinsights.v1" + + ".Entity:\0028\001\032]\n\014IntentsEntry\022\013\n\003key\030\001 \001(\t" + + "\022<\n\005value\030\002 \001(\0132-.google.cloud.contactce" + + "nterinsights.v1.Intent:\0028\001\032m\n\023PhraseMatc" + + "hersEntry\022\013\n\003key\030\001 \001(\t\022E\n\005value\030\002 \001(\01326." + + "google.cloud.contactcenterinsights.v1.Ph" + + "raseMatchData:\0028\001B\n\n\010metadata\"\245\001\n\020IssueM" + + "odelResult\022I\n\013issue_model\030\001 \001(\tB4\372A1\n/co" + + "ntactcenterinsights.googleapis.com/Issue" + + "Model\022F\n\006issues\030\002 \003(\01326.google.cloud.con" + + "tactcenterinsights.v1.IssueAssignment\"\177\n" + + "\032ConversationLevelSentiment\022\023\n\013channel_t" + + "ag\030\001 \001(\005\022L\n\016sentiment_data\030\002 \001(\01324.googl" + + "e.cloud.contactcenterinsights.v1.Sentime" + + "ntData\"J\n\017IssueAssignment\022\r\n\005issue\030\001 \001(\t" + + "\022\r\n\005score\030\002 \001(\001\022\031\n\014display_name\030\003 \001(\tB\003\340" + + "A\005\"\365\006\n\016CallAnnotation\022T\n\021interruption_da" + + "ta\030\n \001(\01327.google.cloud.contactcenterins" + + "ights.v1.InterruptionDataH\000\022N\n\016sentiment" + + "_data\030\013 \001(\01324.google.cloud.contactcenter" + + "insights.v1.SentimentDataH\000\022J\n\014silence_d" + + "ata\030\014 \001(\01322.google.cloud.contactcenterin" + + "sights.v1.SilenceDataH\000\022D\n\thold_data\030\r \001" + + "(\0132/.google.cloud.contactcenterinsights." + + "v1.HoldDataH\000\022W\n\023entity_mention_data\030\017 \001" + + "(\01328.google.cloud.contactcenterinsights." + + "v1.EntityMentionDataH\000\022S\n\021intent_match_d" + + "ata\030\020 \001(\01326.google.cloud.contactcenterin" + + "sights.v1.IntentMatchDataH\000\022S\n\021phrase_ma" + + "tch_data\030\021 \001(\01326.google.cloud.contactcen" + + "terinsights.v1.PhraseMatchDataH\000\022Q\n\020issu" + + "e_match_data\030\022 \001(\01325.google.cloud.contac" + + "tcenterinsights.v1.IssueMatchDataH\000\022\023\n\013c" + + "hannel_tag\030\001 \001(\005\022\\\n\031annotation_start_bou" + + "ndary\030\004 \001(\01329.google.cloud.contactcenter" + + "insights.v1.AnnotationBoundary\022Z\n\027annota" + + "tion_end_boundary\030\005 \001(\01329.google.cloud.c" + + "ontactcenterinsights.v1.AnnotationBounda" + + "ryB\006\n\004data\"Y\n\022AnnotationBoundary\022\024\n\nword" + + "_index\030\003 \001(\005H\000\022\030\n\020transcript_index\030\001 \001(\005" + + "B\023\n\021detailed_boundary\"\200\004\n\006Entity\022\024\n\014disp" + + "lay_name\030\001 \001(\t\022@\n\004type\030\002 \001(\01622.google.cl" + + "oud.contactcenterinsights.v1.Entity.Type" + + "\022M\n\010metadata\030\003 \003(\0132;.google.cloud.contac" + + "tcenterinsights.v1.Entity.MetadataEntry\022" + + "\020\n\010salience\030\004 \001(\002\022G\n\tsentiment\030\005 \001(\01324.g" + "oogle.cloud.contactcenterinsights.v1.Sen" - + "timentData\"C\n\013MentionType\022\034\n\030MENTION_TYP" - + "E_UNSPECIFIED\020\000\022\n\n\006PROPER\020\001\022\n\n\006COMMON\020\002\"" - + "+\n\017IntentMatchData\022\030\n\020intent_unique_id\030\001" - + " \001(\t\"1\n\rSentimentData\022\021\n\tmagnitude\030\001 \001(\002" - + "\022\r\n\005score\030\002 \001(\002\"\255\006\n\nIssueModel\022\021\n\004name\030\001" + + "timentData\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\302\001\n\004Type\022\024\n\020TYPE_UNS" + + "PECIFIED\020\000\022\n\n\006PERSON\020\001\022\014\n\010LOCATION\020\002\022\020\n\014" + + "ORGANIZATION\020\003\022\t\n\005EVENT\020\004\022\017\n\013WORK_OF_ART" + + "\020\005\022\021\n\rCONSUMER_GOOD\020\006\022\t\n\005OTHER\020\007\022\020\n\014PHON" + + "E_NUMBER\020\t\022\013\n\007ADDRESS\020\n\022\010\n\004DATE\020\013\022\n\n\006NUM" + + "BER\020\014\022\t\n\005PRICE\020\r\"*\n\006Intent\022\n\n\002id\030\001 \001(\t\022\024" + + "\n\014display_name\030\002 \001(\t\"?\n\017PhraseMatchData\022" + + "\026\n\016phrase_matcher\030\001 \001(\t\022\024\n\014display_name\030" + + "\002 \001(\t\"(\n\020DialogflowIntent\022\024\n\014display_nam" + + "e\030\001 \001(\t\"\022\n\020InterruptionData\"\r\n\013SilenceDa" + + "ta\"\n\n\010HoldData\"\217\002\n\021EntityMentionData\022\030\n\020" + + "entity_unique_id\030\001 \001(\t\022R\n\004type\030\002 \001(\0162D.g" + + "oogle.cloud.contactcenterinsights.v1.Ent" + + "ityMentionData.MentionType\022G\n\tsentiment\030" + + "\003 \001(\01324.google.cloud.contactcenterinsigh" + + "ts.v1.SentimentData\"C\n\013MentionType\022\034\n\030ME" + + "NTION_TYPE_UNSPECIFIED\020\000\022\n\n\006PROPER\020\001\022\n\n\006" + + "COMMON\020\002\"+\n\017IntentMatchData\022\030\n\020intent_un" + + "ique_id\030\001 \001(\t\"1\n\rSentimentData\022\021\n\tmagnit" + + "ude\030\001 \001(\002\022\r\n\005score\030\002 \001(\002\"b\n\016IssueMatchDa" + + "ta\022P\n\020issue_assignment\030\001 \001(\01326.google.cl" + + "oud.contactcenterinsights.v1.IssueAssign" + + "ment\"\255\006\n\nIssueModel\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\024" + + "\n\014display_name\030\002 \001(\t\0224\n\013create_time\030\003 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n\013up" + + "date_time\030\004 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\022K\n\005state\030\005 \001(\01627.google.cloud.c" + + "ontactcenterinsights.v1.IssueModel.State" + + "B\003\340A\003\022\\\n\021input_data_config\030\006 \001(\0132A.googl" + + "e.cloud.contactcenterinsights.v1.IssueMo" + + "del.InputDataConfig\022[\n\016training_stats\030\007 " + + "\001(\0132;.google.cloud.contactcenterinsights" + + ".v1.IssueModelLabelStatsB\006\340A\003\340A\005\032\234\001\n\017Inp" + + "utDataConfig\022N\n\006medium\030\001 \001(\0162:.google.cl" + + "oud.contactcenterinsights.v1.Conversatio" + + "n.MediumB\002\030\001\022)\n\034training_conversations_c" + + "ount\030\002 \001(\003B\003\340A\003\022\016\n\006filter\030\003 \001(\t\"j\n\005State" + + "\022\025\n\021STATE_UNSPECIFIED\020\000\022\016\n\nUNDEPLOYED\020\001\022" + + "\r\n\tDEPLOYING\020\002\022\014\n\010DEPLOYED\020\003\022\017\n\013UNDEPLOY" + + "ING\020\004\022\014\n\010DELETING\020\005:w\352At\n/contactcenteri" + + "nsights.googleapis.com/IssueModel\022Aproje" + + "cts/{project}/locations/{location}/issue" + + "Models/{issue_model}\"\300\002\n\005Issue\022\021\n\004name\030\001" + " \001(\tB\003\340A\005\022\024\n\014display_name\030\002 \001(\t\0224\n\013creat" + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" + "B\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.prot" - + "obuf.TimestampB\003\340A\003\022K\n\005state\030\005 \001(\01627.goo" - + "gle.cloud.contactcenterinsights.v1.Issue" - + "Model.StateB\003\340A\003\022\\\n\021input_data_config\030\006 " - + "\001(\0132A.google.cloud.contactcenterinsights" - + ".v1.IssueModel.InputDataConfig\022[\n\016traini" - + "ng_stats\030\007 \001(\0132;.google.cloud.contactcen" - + "terinsights.v1.IssueModelLabelStatsB\006\340A\003" - + "\340A\005\032\234\001\n\017InputDataConfig\022N\n\006medium\030\001 \001(\0162" - + ":.google.cloud.contactcenterinsights.v1." - + "Conversation.MediumB\002\030\001\022)\n\034training_conv" - + "ersations_count\030\002 \001(\003B\003\340A\003\022\016\n\006filter\030\003 \001" - + "(\t\"j\n\005State\022\025\n\021STATE_UNSPECIFIED\020\000\022\016\n\nUN" - + "DEPLOYED\020\001\022\r\n\tDEPLOYING\020\002\022\014\n\010DEPLOYED\020\003\022" - + "\017\n\013UNDEPLOYING\020\004\022\014\n\010DELETING\020\005:w\352At\n/con" - + "tactcenterinsights.googleapis.com/IssueM" - + "odel\022Aprojects/{project}/locations/{loca" - + "tion}/issueModels/{issue_model}\"\240\002\n\005Issu" - + "e\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\024\n\014display_name\030\002 \001" - + "(\t\0224\n\013create_time\030\003 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032." - + "google.protobuf.TimestampB\003\340A\003:\201\001\352A~\n*co" - + "ntactcenterinsights.googleapis.com/Issue" - + "\022Pprojects/{project}/locations/{location" - + "}/issueModels/{issue_model}/issues/{issu" - + "e}\"\233\003\n\024IssueModelLabelStats\022$\n\034analyzed_" - + "conversations_count\030\001 \001(\003\022(\n unclassifie" - + "d_conversations_count\030\002 \001(\003\022`\n\013issue_sta" - + "ts\030\003 \003(\0132K.google.cloud.contactcenterins" - + "ights.v1.IssueModelLabelStats.IssueStats" - + "Entry\032V\n\nIssueStats\022\r\n\005issue\030\001 \001(\t\022#\n\033la" - + "beled_conversations_count\030\002 \001(\003\022\024\n\014displ" - + "ay_name\030\003 \001(\t\032y\n\017IssueStatsEntry\022\013\n\003key\030" - + "\001 \001(\t\022U\n\005value\030\002 \001(\0132F.google.cloud.cont" - + "actcenterinsights.v1.IssueModelLabelStat" - + "s.IssueStats:\0028\001\"\223\006\n\rPhraseMatcher\022\014\n\004na" - + "me\030\001 \001(\t\022\033\n\013revision_id\030\002 \001(\tB\006\340A\005\340A\003\022\023\n" - + "\013version_tag\030\003 \001(\t\022=\n\024revision_create_ti" - + "me\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A" - + "\003\022\024\n\014display_name\030\005 \001(\t\022Y\n\004type\030\006 \001(\0162F." - + "google.cloud.contactcenterinsights.v1.Ph" - + "raseMatcher.PhraseMatcherTypeB\003\340A\002\022\016\n\006ac" - + "tive\030\007 \001(\010\022]\n\030phrase_match_rule_groups\030\010" - + " \003(\0132;.google.cloud.contactcenterinsight" - + "s.v1.PhraseMatchRuleGroup\022?\n\026activation_" - + "update_time\030\t \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\022W\n\nrole_match\030\n \001(\0162C.google." - + "cloud.contactcenterinsights.v1.Conversat" - + "ionParticipant.Role\0224\n\013update_time\030\013 \001(\013" - + "2\032.google.protobuf.TimestampB\003\340A\003\"P\n\021Phr" - + "aseMatcherType\022#\n\037PHRASE_MATCHER_TYPE_UN" - + "SPECIFIED\020\000\022\n\n\006ALL_OF\020\001\022\n\n\006ANY_OF\020\002:\200\001\352A" - + "}\n2contactcenterinsights.googleapis.com/" - + "PhraseMatcher\022Gprojects/{project}/locati" - + "ons/{location}/phraseMatchers/{phrase_ma" - + "tcher}\"\265\002\n\024PhraseMatchRuleGroup\022g\n\004type\030" - + "\001 \001(\0162T.google.cloud.contactcenterinsigh" - + "ts.v1.PhraseMatchRuleGroup.PhraseMatchRu" - + "leGroupTypeB\003\340A\002\022R\n\022phrase_match_rules\030\002" - + " \003(\01326.google.cloud.contactcenterinsight" - + "s.v1.PhraseMatchRule\"`\n\030PhraseMatchRuleG" - + "roupType\022,\n(PHRASE_MATCH_RULE_GROUP_TYPE" - + "_UNSPECIFIED\020\000\022\n\n\006ALL_OF\020\001\022\n\n\006ANY_OF\020\002\"\204" - + "\001\n\017PhraseMatchRule\022\022\n\005query\030\001 \001(\tB\003\340A\002\022\017" - + "\n\007negated\030\002 \001(\010\022L\n\006config\030\003 \001(\0132<.google" - + ".cloud.contactcenterinsights.v1.PhraseMa" - + "tchRuleConfig\"x\n\025PhraseMatchRuleConfig\022U" - + "\n\022exact_match_config\030\001 \001(\01327.google.clou" - + "d.contactcenterinsights.v1.ExactMatchCon" - + "figH\000B\010\n\006config\"*\n\020ExactMatchConfig\022\026\n\016c" - + "ase_sensitive\030\001 \001(\010\"\221\005\n\010Settings\022\021\n\004name" - + "\030\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0224\n\013update_time" - + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "\025\n\rlanguage_code\030\004 \001(\t\0223\n\020conversation_t" - + "tl\030\005 \001(\0132\031.google.protobuf.Duration\022u\n\034p" - + "ubsub_notification_settings\030\006 \003(\0132O.goog" - + "le.cloud.contactcenterinsights.v1.Settin" - + "gs.PubsubNotificationSettingsEntry\022W\n\017an" - + "alysis_config\030\007 \001(\0132>.google.cloud.conta" - + "ctcenterinsights.v1.Settings.AnalysisCon" - + "fig\032A\n\016AnalysisConfig\022/\n\'runtime_integra" - + "tion_analysis_percentage\030\001 \001(\001\032A\n\037Pubsub" - + "NotificationSettingsEntry\022\013\n\003key\030\001 \001(\t\022\r" - + "\n\005value\030\002 \001(\t:\0028\001:d\352Aa\n-contactcenterins" - + "ights.googleapis.com/Settings\0220projects/" - + "{project}/locations/{location}/settings\"" - + "\230\006\n\021RuntimeAnnotation\022Z\n\022article_suggest" - + "ion\030\006 \001(\0132<.google.cloud.contactcenterin" - + "sights.v1.ArticleSuggestionDataH\000\022J\n\nfaq" - + "_answer\030\007 \001(\01324.google.cloud.contactcent" - + "erinsights.v1.FaqAnswerDataH\000\022L\n\013smart_r" - + "eply\030\010 \001(\01325.google.cloud.contactcenteri" - + "nsights.v1.SmartReplyDataH\000\022e\n\030smart_com" - + "pose_suggestion\030\t \001(\0132A.google.cloud.con" - + "tactcenterinsights.v1.SmartComposeSugges" - + "tionDataH\000\022b\n\026dialogflow_interaction\030\n \001" - + "(\0132@.google.cloud.contactcenterinsights." - + "v1.DialogflowInteractionDataH\000\022\025\n\rannota" - + "tion_id\030\001 \001(\t\022/\n\013create_time\030\002 \001(\0132\032.goo" - + "gle.protobuf.Timestamp\022Q\n\016start_boundary" - + "\030\003 \001(\01329.google.cloud.contactcenterinsig" - + "hts.v1.AnnotationBoundary\022O\n\014end_boundar" - + "y\030\004 \001(\01329.google.cloud.contactcenterinsi" - + "ghts.v1.AnnotationBoundary\022N\n\017answer_fee" - + "dback\030\005 \001(\01325.google.cloud.contactcenter" - + "insights.v1.AnswerFeedbackB\006\n\004data\"\211\002\n\016A" - + "nswerFeedback\022a\n\021correctness_level\030\001 \001(\016" - + "2F.google.cloud.contactcenterinsights.v1" - + ".AnswerFeedback.CorrectnessLevel\022\017\n\007clic" - + "ked\030\002 \001(\010\022\021\n\tdisplayed\030\003 \001(\010\"p\n\020Correctn" - + "essLevel\022!\n\035CORRECTNESS_LEVEL_UNSPECIFIE" - + "D\020\000\022\017\n\013NOT_CORRECT\020\001\022\025\n\021PARTIALLY_CORREC" - + "T\020\002\022\021\n\rFULLY_CORRECT\020\003\"\202\002\n\025ArticleSugges" - + "tionData\022\r\n\005title\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\030\n\020" - + "confidence_score\030\003 \001(\002\022\\\n\010metadata\030\004 \003(\013" - + "2J.google.cloud.contactcenterinsights.v1" - + ".ArticleSuggestionData.MetadataEntry\022\024\n\014" - + "query_record\030\005 \001(\t\022\016\n\006source\030\006 \001(\t\032/\n\rMe" - + "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - + "\0028\001\"\370\001\n\rFaqAnswerData\022\016\n\006answer\030\001 \001(\t\022\030\n" - + "\020confidence_score\030\002 \001(\002\022\020\n\010question\030\003 \001(" - + "\t\022T\n\010metadata\030\004 \003(\0132B.google.cloud.conta" - + "ctcenterinsights.v1.FaqAnswerData.Metada" - + "taEntry\022\024\n\014query_record\030\005 \001(\t\022\016\n\006source\030" - + "\006 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" - + "alue\030\002 \001(\t:\0028\001\"\327\001\n\016SmartReplyData\022\r\n\005rep" - + "ly\030\001 \001(\t\022\030\n\020confidence_score\030\002 \001(\001\022U\n\010me" - + "tadata\030\003 \003(\0132C.google.cloud.contactcente" - + "rinsights.v1.SmartReplyData.MetadataEntr" - + "y\022\024\n\014query_record\030\004 \001(\t\032/\n\rMetadataEntry" - + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\364\001\n\032Sma" - + "rtComposeSuggestionData\022\022\n\nsuggestion\030\001 " - + "\001(\t\022\030\n\020confidence_score\030\002 \001(\001\022a\n\010metadat" - + "a\030\003 \003(\0132O.google.cloud.contactcenterinsi" - + "ghts.v1.SmartComposeSuggestionData.Metad" - + "ataEntry\022\024\n\014query_record\030\004 \001(\t\032/\n\rMetada" - + "taEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"" - + "M\n\031DialogflowInteractionData\022\034\n\024dialogfl" - + "ow_intent_id\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\"\213" - + "\003\n\027ConversationParticipant\022Q\n\033dialogflow" - + "_participant_name\030\005 \001(\tB*\372A\'\n%dialogflow" - + ".googleapis.com/ParticipantH\000\022\021\n\007user_id" - + "\030\006 \001(\tH\000\022\"\n\026dialogflow_participant\030\001 \001(\t" - + "B\002\030\001\022#\n\033obfuscated_external_user_id\030\003 \001(" - + "\t\022Q\n\004role\030\002 \001(\0162C.google.cloud.contactce" - + "nterinsights.v1.ConversationParticipant." - + "Role\"_\n\004Role\022\024\n\020ROLE_UNSPECIFIED\020\000\022\017\n\013HU" - + "MAN_AGENT\020\001\022\023\n\017AUTOMATED_AGENT\020\002\022\014\n\010END_" - + "USER\020\003\022\r\n\tANY_AGENT\020\004B\r\n\013participant\"\220\002\n" - + "\004View\022\021\n\004name\030\001 \001(\tB\003\340A\005\022\024\n\014display_name" - + "\030\002 \001(\t\0224\n\013create_time\030\003 \001(\0132\032.google.pro" - + "tobuf.TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\022\r\n\005va" - + "lue\030\005 \001(\t:d\352Aa\n)contactcenterinsights.go" - + "ogleapis.com/View\0224projects/{project}/lo" - + "cations/{location}/views/{view}B\354\003\n)com." - + "google.cloud.contactcenterinsights.v1B\016R" - + "esourcesProtoP\001ZZgoogle.golang.org/genpr" - + "oto/googleapis/cloud/contactcenterinsigh" - + "ts/v1;contactcenterinsights\252\002%Google.Clo" - + "ud.ContactCenterInsights.V1\312\002%Google\\Clo" - + "ud\\ContactCenterInsights\\V1\352\002(Google::Cl" - + "oud::ContactCenterInsights::V1\352A\324\001\n%dial" - + "ogflow.googleapis.com/Participant\022Jproje" - + "cts/{project}/conversations/{conversatio" - + "n}/participants/{participant}\022_projects/" - + "{project}/locations/{location}/conversat" - + "ions/{conversation}/participants/{partic" - + "ipant}b\006proto3" + + "obuf.TimestampB\003\340A\003\022\036\n\021sample_utterances" + + "\030\006 \003(\tB\003\340A\003:\201\001\352A~\n*contactcenterinsights" + + ".googleapis.com/Issue\022Pprojects/{project" + + "}/locations/{location}/issueModels/{issu" + + "e_model}/issues/{issue}\"\233\003\n\024IssueModelLa" + + "belStats\022$\n\034analyzed_conversations_count" + + "\030\001 \001(\003\022(\n unclassified_conversations_cou" + + "nt\030\002 \001(\003\022`\n\013issue_stats\030\003 \003(\0132K.google.c" + + "loud.contactcenterinsights.v1.IssueModel" + + "LabelStats.IssueStatsEntry\032V\n\nIssueStats" + + "\022\r\n\005issue\030\001 \001(\t\022#\n\033labeled_conversations" + + "_count\030\002 \001(\003\022\024\n\014display_name\030\003 \001(\t\032y\n\017Is" + + "sueStatsEntry\022\013\n\003key\030\001 \001(\t\022U\n\005value\030\002 \001(" + + "\0132F.google.cloud.contactcenterinsights.v" + + "1.IssueModelLabelStats.IssueStats:\0028\001\"\223\006" + + "\n\rPhraseMatcher\022\014\n\004name\030\001 \001(\t\022\033\n\013revisio" + + "n_id\030\002 \001(\tB\006\340A\005\340A\003\022\023\n\013version_tag\030\003 \001(\t\022" + + "=\n\024revision_create_time\030\004 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\024\n\014display_name\030\005" + + " \001(\t\022Y\n\004type\030\006 \001(\0162F.google.cloud.contac" + + "tcenterinsights.v1.PhraseMatcher.PhraseM" + + "atcherTypeB\003\340A\002\022\016\n\006active\030\007 \001(\010\022]\n\030phras" + + "e_match_rule_groups\030\010 \003(\0132;.google.cloud" + + ".contactcenterinsights.v1.PhraseMatchRul" + + "eGroup\022?\n\026activation_update_time\030\t \001(\0132\032" + + ".google.protobuf.TimestampB\003\340A\003\022W\n\nrole_" + + "match\030\n \001(\0162C.google.cloud.contactcenter" + + "insights.v1.ConversationParticipant.Role" + + "\0224\n\013update_time\030\013 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003\"P\n\021PhraseMatcherType\022#\n\037P" + + "HRASE_MATCHER_TYPE_UNSPECIFIED\020\000\022\n\n\006ALL_" + + "OF\020\001\022\n\n\006ANY_OF\020\002:\200\001\352A}\n2contactcenterins" + + "ights.googleapis.com/PhraseMatcher\022Gproj" + + "ects/{project}/locations/{location}/phra" + + "seMatchers/{phrase_matcher}\"\265\002\n\024PhraseMa" + + "tchRuleGroup\022g\n\004type\030\001 \001(\0162T.google.clou" + + "d.contactcenterinsights.v1.PhraseMatchRu" + + "leGroup.PhraseMatchRuleGroupTypeB\003\340A\002\022R\n" + + "\022phrase_match_rules\030\002 \003(\01326.google.cloud" + + ".contactcenterinsights.v1.PhraseMatchRul" + + "e\"`\n\030PhraseMatchRuleGroupType\022,\n(PHRASE_" + + "MATCH_RULE_GROUP_TYPE_UNSPECIFIED\020\000\022\n\n\006A" + + "LL_OF\020\001\022\n\n\006ANY_OF\020\002\"\204\001\n\017PhraseMatchRule\022" + + "\022\n\005query\030\001 \001(\tB\003\340A\002\022\017\n\007negated\030\002 \001(\010\022L\n\006" + + "config\030\003 \001(\0132<.google.cloud.contactcente" + + "rinsights.v1.PhraseMatchRuleConfig\"x\n\025Ph" + + "raseMatchRuleConfig\022U\n\022exact_match_confi" + + "g\030\001 \001(\01327.google.cloud.contactcenterinsi" + + "ghts.v1.ExactMatchConfigH\000B\010\n\006config\"*\n\020" + + "ExactMatchConfig\022\026\n\016case_sensitive\030\001 \001(\010" + + "\"\350\005\n\010Settings\022\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013crea" + + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "pB\003\340A\003\0224\n\013update_time\030\003 \001(\0132\032.google.pro" + + "tobuf.TimestampB\003\340A\003\022\025\n\rlanguage_code\030\004 " + + "\001(\t\0223\n\020conversation_ttl\030\005 \001(\0132\031.google.p" + + "rotobuf.Duration\022u\n\034pubsub_notification_" + + "settings\030\006 \003(\0132O.google.cloud.contactcen" + + "terinsights.v1.Settings.PubsubNotificati" + + "onSettingsEntry\022W\n\017analysis_config\030\007 \001(\013" + + "2>.google.cloud.contactcenterinsights.v1" + + ".Settings.AnalysisConfig\032\227\001\n\016AnalysisCon" + + "fig\022/\n\'runtime_integration_analysis_perc" + + "entage\030\001 \001(\001\022T\n\022annotator_selector\030\005 \001(\013" + + "28.google.cloud.contactcenterinsights.v1" + + ".AnnotatorSelector\032A\n\037PubsubNotification" + + "SettingsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" + + "\t:\0028\001:d\352Aa\n-contactcenterinsights.google" + + "apis.com/Settings\0220projects/{project}/lo" + + "cations/{location}/settings\"\230\006\n\021RuntimeA" + + "nnotation\022Z\n\022article_suggestion\030\006 \001(\0132<." + + "google.cloud.contactcenterinsights.v1.Ar" + + "ticleSuggestionDataH\000\022J\n\nfaq_answer\030\007 \001(" + + "\01324.google.cloud.contactcenterinsights.v" + + "1.FaqAnswerDataH\000\022L\n\013smart_reply\030\010 \001(\01325" + + ".google.cloud.contactcenterinsights.v1.S" + + "martReplyDataH\000\022e\n\030smart_compose_suggest" + + "ion\030\t \001(\0132A.google.cloud.contactcenterin" + + "sights.v1.SmartComposeSuggestionDataH\000\022b" + + "\n\026dialogflow_interaction\030\n \001(\0132@.google." + + "cloud.contactcenterinsights.v1.Dialogflo" + + "wInteractionDataH\000\022\025\n\rannotation_id\030\001 \001(" + + "\t\022/\n\013create_time\030\002 \001(\0132\032.google.protobuf" + + ".Timestamp\022Q\n\016start_boundary\030\003 \001(\01329.goo" + + "gle.cloud.contactcenterinsights.v1.Annot" + + "ationBoundary\022O\n\014end_boundary\030\004 \001(\01329.go" + + "ogle.cloud.contactcenterinsights.v1.Anno" + + "tationBoundary\022N\n\017answer_feedback\030\005 \001(\0132" + + "5.google.cloud.contactcenterinsights.v1." + + "AnswerFeedbackB\006\n\004data\"\211\002\n\016AnswerFeedbac" + + "k\022a\n\021correctness_level\030\001 \001(\0162F.google.cl" + + "oud.contactcenterinsights.v1.AnswerFeedb" + + "ack.CorrectnessLevel\022\017\n\007clicked\030\002 \001(\010\022\021\n" + + "\tdisplayed\030\003 \001(\010\"p\n\020CorrectnessLevel\022!\n\035" + + "CORRECTNESS_LEVEL_UNSPECIFIED\020\000\022\017\n\013NOT_C" + + "ORRECT\020\001\022\025\n\021PARTIALLY_CORRECT\020\002\022\021\n\rFULLY" + + "_CORRECT\020\003\"\202\002\n\025ArticleSuggestionData\022\r\n\005" + + "title\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\030\n\020confidence_s" + + "core\030\003 \001(\002\022\\\n\010metadata\030\004 \003(\0132J.google.cl" + + "oud.contactcenterinsights.v1.ArticleSugg" + + "estionData.MetadataEntry\022\024\n\014query_record" + + "\030\005 \001(\t\022\016\n\006source\030\006 \001(\t\032/\n\rMetadataEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\370\001\n\rFaqA" + + "nswerData\022\016\n\006answer\030\001 \001(\t\022\030\n\020confidence_" + + "score\030\002 \001(\002\022\020\n\010question\030\003 \001(\t\022T\n\010metadat" + + "a\030\004 \003(\0132B.google.cloud.contactcenterinsi" + + "ghts.v1.FaqAnswerData.MetadataEntry\022\024\n\014q" + + "uery_record\030\005 \001(\t\022\016\n\006source\030\006 \001(\t\032/\n\rMet" + + "adataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"\327\001\n\016SmartReplyData\022\r\n\005reply\030\001 \001(\t\022\030\n\020" + + "confidence_score\030\002 \001(\001\022U\n\010metadata\030\003 \003(\013" + + "2C.google.cloud.contactcenterinsights.v1" + + ".SmartReplyData.MetadataEntry\022\024\n\014query_r" + + "ecord\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(" + + "\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\364\001\n\032SmartComposeSug" + + "gestionData\022\022\n\nsuggestion\030\001 \001(\t\022\030\n\020confi" + + "dence_score\030\002 \001(\001\022a\n\010metadata\030\003 \003(\0132O.go" + + "ogle.cloud.contactcenterinsights.v1.Smar" + + "tComposeSuggestionData.MetadataEntry\022\024\n\014" + + "query_record\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003k" + + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"M\n\031Dialogflo" + + "wInteractionData\022\034\n\024dialogflow_intent_id" + + "\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\"\213\003\n\027Conversat" + + "ionParticipant\022Q\n\033dialogflow_participant" + + "_name\030\005 \001(\tB*\372A\'\n%dialogflow.googleapis." + + "com/ParticipantH\000\022\021\n\007user_id\030\006 \001(\tH\000\022\"\n\026" + + "dialogflow_participant\030\001 \001(\tB\002\030\001\022#\n\033obfu" + + "scated_external_user_id\030\003 \001(\t\022Q\n\004role\030\002 " + + "\001(\0162C.google.cloud.contactcenterinsights" + + ".v1.ConversationParticipant.Role\"_\n\004Role" + + "\022\024\n\020ROLE_UNSPECIFIED\020\000\022\017\n\013HUMAN_AGENT\020\001\022" + + "\023\n\017AUTOMATED_AGENT\020\002\022\014\n\010END_USER\020\003\022\r\n\tAN" + + "Y_AGENT\020\004B\r\n\013participant\"\220\002\n\004View\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\005\022\024\n\014display_name\030\002 \001(\t\0224\n\013cr" + + "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\r\n\005value\030\005 \001(\t:d\352" + + "Aa\n)contactcenterinsights.googleapis.com" + + "/View\0224projects/{project}/locations/{loc" + + "ation}/views/{view}\"\232\003\n\021AnnotatorSelecto" + + "r\022\"\n\032run_interruption_annotator\030\001 \001(\010\022\035\n" + + "\025run_silence_annotator\030\002 \001(\010\022$\n\034run_phra" + + "se_matcher_annotator\030\003 \001(\010\022P\n\017phrase_mat" + + "chers\030\004 \003(\tB7\372A4\n2contactcenterinsights." + + "googleapis.com/PhraseMatcher\022\037\n\027run_sent" + + "iment_annotator\030\005 \001(\010\022\034\n\024run_entity_anno" + + "tator\030\006 \001(\010\022\034\n\024run_intent_annotator\030\007 \001(" + + "\010\022!\n\031run_issue_model_annotator\030\010 \001(\010\022J\n\014" + + "issue_models\030\n \003(\tB4\372A1\n/contactcenterin" + + "sights.googleapis.com/IssueModelB\354\003\n)com" + + ".google.cloud.contactcenterinsights.v1B\016" + + "ResourcesProtoP\001ZZgoogle.golang.org/genp" + + "roto/googleapis/cloud/contactcenterinsig" + + "hts/v1;contactcenterinsights\252\002%Google.Cl" + + "oud.ContactCenterInsights.V1\312\002%Google\\Cl" + + "oud\\ContactCenterInsights\\V1\352\002(Google::C" + + "loud::ContactCenterInsights::V1\352A\324\001\n%dia" + + "logflow.googleapis.com/Participant\022Jproj" + + "ects/{project}/conversations/{conversati" + + "on}/participants/{participant}\022_projects" + + "/{project}/locations/{location}/conversa" + + "tions/{conversation}/participants/{parti" + + "cipant}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -742,7 +770,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_Analysis_descriptor, new java.lang.String[] { - "Name", "RequestTime", "CreateTime", "AnalysisResult", + "Name", "RequestTime", "CreateTime", "AnalysisResult", "AnnotatorSelector", }); internal_static_google_cloud_contactcenterinsights_v1_ConversationDataSource_descriptor = getDescriptor().getMessageTypes().get(2); @@ -858,6 +886,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EntityMentionData", "IntentMatchData", "PhraseMatchData", + "IssueMatchData", "ChannelTag", "AnnotationStartBoundary", "AnnotationEndBoundary", @@ -955,8 +984,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Magnitude", "Score", }); - internal_static_google_cloud_contactcenterinsights_v1_IssueModel_descriptor = + internal_static_google_cloud_contactcenterinsights_v1_IssueMatchData_descriptor = getDescriptor().getMessageTypes().get(21); + internal_static_google_cloud_contactcenterinsights_v1_IssueMatchData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_IssueMatchData_descriptor, + new java.lang.String[] { + "IssueAssignment", + }); + internal_static_google_cloud_contactcenterinsights_v1_IssueModel_descriptor = + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_contactcenterinsights_v1_IssueModel_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_IssueModel_descriptor, @@ -980,15 +1017,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Medium", "TrainingConversationsCount", "Filter", }); internal_static_google_cloud_contactcenterinsights_v1_Issue_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_contactcenterinsights_v1_Issue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_Issue_descriptor, new java.lang.String[] { - "Name", "DisplayName", "CreateTime", "UpdateTime", + "Name", "DisplayName", "CreateTime", "UpdateTime", "SampleUtterances", }); internal_static_google_cloud_contactcenterinsights_v1_IssueModelLabelStats_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_google_cloud_contactcenterinsights_v1_IssueModelLabelStats_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_IssueModelLabelStats_descriptor, @@ -1016,7 +1053,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_contactcenterinsights_v1_PhraseMatcher_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_contactcenterinsights_v1_PhraseMatcher_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_PhraseMatcher_descriptor, @@ -1034,7 +1071,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateTime", }); internal_static_google_cloud_contactcenterinsights_v1_PhraseMatchRuleGroup_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_contactcenterinsights_v1_PhraseMatchRuleGroup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_PhraseMatchRuleGroup_descriptor, @@ -1042,7 +1079,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "PhraseMatchRules", }); internal_static_google_cloud_contactcenterinsights_v1_PhraseMatchRule_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_contactcenterinsights_v1_PhraseMatchRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_PhraseMatchRule_descriptor, @@ -1050,7 +1087,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Query", "Negated", "Config", }); internal_static_google_cloud_contactcenterinsights_v1_PhraseMatchRuleConfig_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_contactcenterinsights_v1_PhraseMatchRuleConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_PhraseMatchRuleConfig_descriptor, @@ -1058,7 +1095,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExactMatchConfig", "Config", }); internal_static_google_cloud_contactcenterinsights_v1_ExactMatchConfig_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_contactcenterinsights_v1_ExactMatchConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ExactMatchConfig_descriptor, @@ -1066,7 +1103,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CaseSensitive", }); internal_static_google_cloud_contactcenterinsights_v1_Settings_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_contactcenterinsights_v1_Settings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_Settings_descriptor, @@ -1087,7 +1124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_Settings_AnalysisConfig_descriptor, new java.lang.String[] { - "RuntimeIntegrationAnalysisPercentage", + "RuntimeIntegrationAnalysisPercentage", "AnnotatorSelector", }); internal_static_google_cloud_contactcenterinsights_v1_Settings_PubsubNotificationSettingsEntry_descriptor = internal_static_google_cloud_contactcenterinsights_v1_Settings_descriptor @@ -1100,7 +1137,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_contactcenterinsights_v1_RuntimeAnnotation_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_contactcenterinsights_v1_RuntimeAnnotation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_RuntimeAnnotation_descriptor, @@ -1118,7 +1155,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Data", }); internal_static_google_cloud_contactcenterinsights_v1_AnswerFeedback_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_contactcenterinsights_v1_AnswerFeedback_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_AnswerFeedback_descriptor, @@ -1126,7 +1163,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CorrectnessLevel", "Clicked", "Displayed", }); internal_static_google_cloud_contactcenterinsights_v1_ArticleSuggestionData_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_contactcenterinsights_v1_ArticleSuggestionData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ArticleSuggestionData_descriptor, @@ -1144,7 +1181,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_contactcenterinsights_v1_FaqAnswerData_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_contactcenterinsights_v1_FaqAnswerData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_FaqAnswerData_descriptor, @@ -1162,7 +1199,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_contactcenterinsights_v1_SmartReplyData_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_contactcenterinsights_v1_SmartReplyData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_SmartReplyData_descriptor, @@ -1180,7 +1217,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_contactcenterinsights_v1_SmartComposeSuggestionData_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_contactcenterinsights_v1_SmartComposeSuggestionData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_SmartComposeSuggestionData_descriptor, @@ -1198,7 +1235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_contactcenterinsights_v1_DialogflowInteractionData_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_contactcenterinsights_v1_DialogflowInteractionData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DialogflowInteractionData_descriptor, @@ -1206,7 +1243,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DialogflowIntentId", "Confidence", }); internal_static_google_cloud_contactcenterinsights_v1_ConversationParticipant_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_contactcenterinsights_v1_ConversationParticipant_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ConversationParticipant_descriptor, @@ -1219,13 +1256,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Participant", }); internal_static_google_cloud_contactcenterinsights_v1_View_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_contactcenterinsights_v1_View_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_View_descriptor, new java.lang.String[] { "Name", "DisplayName", "CreateTime", "UpdateTime", "Value", }); + internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_descriptor, + new java.lang.String[] { + "RunInterruptionAnnotator", + "RunSilenceAnnotator", + "RunPhraseMatcherAnnotator", + "PhraseMatchers", + "RunSentimentAnnotator", + "RunEntityAnnotator", + "RunIntentAnnotator", + "RunIssueModelAnnotator", + "IssueModels", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Settings.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Settings.java index ecf73d61105b..fe87a27b1dc5 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Settings.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/Settings.java @@ -97,6 +97,45 @@ public interface AnalysisConfigOrBuilder * @return The runtimeIntegrationAnalysisPercentage. */ double getRuntimeIntegrationAnalysisPercentage(); + + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + * @return Whether the annotatorSelector field is set. + */ + boolean hasAnnotatorSelector(); + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + * @return The annotatorSelector. + */ + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getAnnotatorSelector(); + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + */ + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder + getAnnotatorSelectorOrBuilder(); } /** * @@ -164,6 +203,58 @@ public double getRuntimeIntegrationAnalysisPercentage() { return runtimeIntegrationAnalysisPercentage_; } + public static final int ANNOTATOR_SELECTOR_FIELD_NUMBER = 5; + private com.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotatorSelector_; + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + * @return Whether the annotatorSelector field is set. + */ + @java.lang.Override + public boolean hasAnnotatorSelector() { + return annotatorSelector_ != null; + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + * @return The annotatorSelector. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getAnnotatorSelector() { + return annotatorSelector_ == null + ? com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance() + : annotatorSelector_; + } + /** + * + * + *
+     * To select the annotators to run and the phrase matchers to use
+     * (if any). If not specified, all annotators will be run.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder + getAnnotatorSelectorOrBuilder() { + return getAnnotatorSelector(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -181,6 +272,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (java.lang.Double.doubleToRawLongBits(runtimeIntegrationAnalysisPercentage_) != 0) { output.writeDouble(1, runtimeIntegrationAnalysisPercentage_); } + if (annotatorSelector_ != null) { + output.writeMessage(5, getAnnotatorSelector()); + } getUnknownFields().writeTo(output); } @@ -195,6 +289,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeDoubleSize( 1, runtimeIntegrationAnalysisPercentage_); } + if (annotatorSelector_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAnnotatorSelector()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -214,6 +311,10 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Double.doubleToLongBits(getRuntimeIntegrationAnalysisPercentage()) != java.lang.Double.doubleToLongBits(other.getRuntimeIntegrationAnalysisPercentage())) return false; + if (hasAnnotatorSelector() != other.hasAnnotatorSelector()) return false; + if (hasAnnotatorSelector()) { + if (!getAnnotatorSelector().equals(other.getAnnotatorSelector())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -230,6 +331,10 @@ public int hashCode() { (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getRuntimeIntegrationAnalysisPercentage())); + if (hasAnnotatorSelector()) { + hash = (37 * hash) + ANNOTATOR_SELECTOR_FIELD_NUMBER; + hash = (53 * hash) + getAnnotatorSelector().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -375,6 +480,12 @@ public Builder clear() { super.clear(); runtimeIntegrationAnalysisPercentage_ = 0D; + if (annotatorSelectorBuilder_ == null) { + annotatorSelector_ = null; + } else { + annotatorSelector_ = null; + annotatorSelectorBuilder_ = null; + } return this; } @@ -405,6 +516,11 @@ public com.google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig buildPa com.google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig result = new com.google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig(this); result.runtimeIntegrationAnalysisPercentage_ = runtimeIntegrationAnalysisPercentage_; + if (annotatorSelectorBuilder_ == null) { + result.annotatorSelector_ = annotatorSelector_; + } else { + result.annotatorSelector_ = annotatorSelectorBuilder_.build(); + } onBuilt(); return result; } @@ -463,6 +579,9 @@ public Builder mergeFrom( if (other.getRuntimeIntegrationAnalysisPercentage() != 0D) { setRuntimeIntegrationAnalysisPercentage(other.getRuntimeIntegrationAnalysisPercentage()); } + if (other.hasAnnotatorSelector()) { + mergeAnnotatorSelector(other.getAnnotatorSelector()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -495,6 +614,13 @@ public Builder mergeFrom( break; } // case 9 + case 42: + { + input.readMessage( + getAnnotatorSelectorFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -567,6 +693,215 @@ public Builder clearRuntimeIntegrationAnalysisPercentage() { return this; } + private com.google.cloud.contactcenterinsights.v1.AnnotatorSelector annotatorSelector_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder> + annotatorSelectorBuilder_; + /** + * + * + *
+       * To select the annotators to run and the phrase matchers to use
+       * (if any). If not specified, all annotators will be run.
+       * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + * + * @return Whether the annotatorSelector field is set. + */ + public boolean hasAnnotatorSelector() { + return annotatorSelectorBuilder_ != null || annotatorSelector_ != null; + } + /** + * + * + *
+       * To select the annotators to run and the phrase matchers to use
+       * (if any). If not specified, all annotators will be run.
+       * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + * + * @return The annotatorSelector. + */ + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector getAnnotatorSelector() { + if (annotatorSelectorBuilder_ == null) { + return annotatorSelector_ == null + ? com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance() + : annotatorSelector_; + } else { + return annotatorSelectorBuilder_.getMessage(); + } + } + /** + * + * + *
+       * To select the annotators to run and the phrase matchers to use
+       * (if any). If not specified, all annotators will be run.
+       * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + */ + public Builder setAnnotatorSelector( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector value) { + if (annotatorSelectorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + annotatorSelector_ = value; + onChanged(); + } else { + annotatorSelectorBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+       * To select the annotators to run and the phrase matchers to use
+       * (if any). If not specified, all annotators will be run.
+       * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + */ + public Builder setAnnotatorSelector( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder builderForValue) { + if (annotatorSelectorBuilder_ == null) { + annotatorSelector_ = builderForValue.build(); + onChanged(); + } else { + annotatorSelectorBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+       * To select the annotators to run and the phrase matchers to use
+       * (if any). If not specified, all annotators will be run.
+       * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + */ + public Builder mergeAnnotatorSelector( + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector value) { + if (annotatorSelectorBuilder_ == null) { + if (annotatorSelector_ != null) { + annotatorSelector_ = + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.newBuilder( + annotatorSelector_) + .mergeFrom(value) + .buildPartial(); + } else { + annotatorSelector_ = value; + } + onChanged(); + } else { + annotatorSelectorBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+       * To select the annotators to run and the phrase matchers to use
+       * (if any). If not specified, all annotators will be run.
+       * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + */ + public Builder clearAnnotatorSelector() { + if (annotatorSelectorBuilder_ == null) { + annotatorSelector_ = null; + onChanged(); + } else { + annotatorSelector_ = null; + annotatorSelectorBuilder_ = null; + } + + return this; + } + /** + * + * + *
+       * To select the annotators to run and the phrase matchers to use
+       * (if any). If not specified, all annotators will be run.
+       * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + */ + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder + getAnnotatorSelectorBuilder() { + + onChanged(); + return getAnnotatorSelectorFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * To select the annotators to run and the phrase matchers to use
+       * (if any). If not specified, all annotators will be run.
+       * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + */ + public com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder + getAnnotatorSelectorOrBuilder() { + if (annotatorSelectorBuilder_ != null) { + return annotatorSelectorBuilder_.getMessageOrBuilder(); + } else { + return annotatorSelector_ == null + ? com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.getDefaultInstance() + : annotatorSelector_; + } + } + /** + * + * + *
+       * To select the annotators to run and the phrase matchers to use
+       * (if any). If not specified, all annotators will be run.
+       * 
+ * + * .google.cloud.contactcenterinsights.v1.AnnotatorSelector annotator_selector = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder> + getAnnotatorSelectorFieldBuilder() { + if (annotatorSelectorBuilder_ == null) { + annotatorSelectorBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelector.Builder, + com.google.cloud.contactcenterinsights.v1.AnnotatorSelectorOrBuilder>( + getAnnotatorSelector(), getParentForChildren(), isClean()); + annotatorSelector_ = null; + } + return annotatorSelectorBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { 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 c5956b93f162..1ecf43216832 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 @@ -121,6 +121,33 @@ service ContactCenterInsights { option (google.api.method_signature) = "name"; } + // Analyzes multiple conversations in a single request. + rpc BulkAnalyzeConversations(BulkAnalyzeConversationsRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/conversations:bulkAnalyze" + body: "*" + }; + option (google.api.method_signature) = "parent,filter,analysis_percentage"; + option (google.longrunning.operation_info) = { + response_type: "BulkAnalyzeConversationsResponse" + metadata_type: "BulkAnalyzeConversationsMetadata" + }; + } + + // Imports conversations and processes them according to the user's + // configuration. + rpc IngestConversations(IngestConversationsRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/conversations:ingest" + body: "*" + }; + option (google.api.method_signature) = "parent"; + option (google.longrunning.operation_info) = { + response_type: "IngestConversationsResponse" + metadata_type: "IngestConversationsMetadata" + }; + } + // Export insights data to a destination defined in the request body. rpc ExportInsightsData(ExportInsightsDataRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -237,6 +264,14 @@ service ContactCenterInsights { option (google.api.method_signature) = "issue,update_mask"; } + // Deletes an issue. + rpc DeleteIssue(DeleteIssueRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/issueModels/*/issues/*}" + }; + option (google.api.method_signature) = "name"; + } + // Gets an issue model's statistics. rpc CalculateIssueModelStats(CalculateIssueModelStatsRequest) returns (CalculateIssueModelStatsResponse) { option (google.api.http) = { @@ -456,6 +491,9 @@ message CreateAnalysisOperationMetadata { type: "contactcenterinsights.googleapis.com/Conversation" } ]; + + // Output only. The annotator selector used for the analysis (if any). + AnnotatorSelector annotator_selector = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request to create a conversation. @@ -559,6 +597,73 @@ message DeleteConversationRequest { bool force = 2; } +// The request to ingest conversations. +message IngestConversationsRequest { + // Configuration for Cloud Storage bucket sources. + message GcsSource { + // Required. The Cloud Storage bucket containing source objects. + string bucket_uri = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Configuration for processing transcript objects. + message TranscriptObjectConfig { + // Required. The medium transcript objects represent. + Conversation.Medium medium = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Configuration that applies to all conversations. + message ConversationConfig { + // An opaque, user-specified string representing the human agent who handled + // the conversations. + string agent_id = 1; + } + + // Configuration for an external data store containing objects that will + // be converted to conversations. + oneof source { + // A cloud storage bucket source. + GcsSource gcs_source = 2; + } + + // Configuration for converting individual `source` objects to conversations. + oneof object_config { + // Configuration for when `source` contains conversation transcripts. + TranscriptObjectConfig transcript_object_config = 3; + } + + // Required. The parent resource for new conversations. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Configuration that applies to all conversations. + ConversationConfig conversation_config = 4; +} + +// The metadata for an IngestConversations operation. +message IngestConversationsMetadata { + // Output only. The time the operation was created. + google.protobuf.Timestamp create_time = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time the operation finished running. + google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The original request for ingest. + IngestConversationsRequest request = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Partial errors during ingest operation that might cause the operation + // output to be incomplete. + repeated google.rpc.Status partial_errors = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The response to an IngestConversations operation. +message IngestConversationsResponse { + +} + // The request to create an analysis. message CreateAnalysisRequest { // Required. The parent resource of the analysis. @@ -631,6 +736,59 @@ message DeleteAnalysisRequest { ]; } +// The request to analyze conversations in bulk. +message BulkAnalyzeConversationsRequest { + // Required. The parent resource to create analyses in. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. Filter used to select the subset of conversations to analyze. + string filter = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. Percentage of selected conversation to analyze, between + // [0, 100]. + float analysis_percentage = 3 [(google.api.field_behavior) = REQUIRED]; + + // To select the annotators to run and the phrase matchers to use + // (if any). If not specified, all annotators will be run. + AnnotatorSelector annotator_selector = 8; +} + +// The metadata for a bulk analyze conversations operation. +message BulkAnalyzeConversationsMetadata { + // 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 analyze. + BulkAnalyzeConversationsRequest request = 3; + + // The number of requested analyses that have completed successfully so far. + int32 completed_analyses_count = 4; + + // The number of requested analyses that have failed so far. + int32 failed_analyses_count = 5; + + // 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; +} + +// The response for a bulk analyze conversations operation. +message BulkAnalyzeConversationsResponse { + // Count of successful analyses. + int32 successful_analysis_count = 1; + + // Count of failed analyses. + int32 failed_analysis_count = 2; +} + // The request to export insights. message ExportInsightsDataRequest { // A BigQuery Table Reference. @@ -891,6 +1049,17 @@ message UpdateIssueRequest { google.protobuf.FieldMask update_mask = 2; } +// The request to delete an issue. +message DeleteIssueRequest { + // Required. The name of the issue to delete. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "contactcenterinsights.googleapis.com/Issue" + } + ]; +} + // Request to get statistics of an issue model. message CalculateIssueModelStatsRequest { // Required. The resource name of the issue model to query against. 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 bac8515aab50..715eff61177b 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 @@ -227,6 +227,10 @@ message Analysis { // Output only. The result of the analysis, which is populated when the analysis // finishes. AnalysisResult analysis_result = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // To select the annotators to run and the phrase matchers to use + // (if any). If not specified, all annotators will be run. + AnnotatorSelector annotator_selector = 8; } // The conversation source, which is a combination of transcript and audio. @@ -356,6 +360,9 @@ message CallAnnotation { // Data specifying a phrase match. PhraseMatchData phrase_match_data = 17; + + // Data specifying an issue match. + IssueMatchData issue_match_data = 18; } // The channel of the audio where the annotation occurs. For single-channel @@ -579,6 +586,12 @@ message SentimentData { float score = 2; } +// The data for an issue match annotation. +message IssueMatchData { + // Information about the issue's assignment. + IssueAssignment issue_assignment = 1; +} + // The issue model resource. message IssueModel { option (google.api.resource) = { @@ -670,6 +683,10 @@ message Issue { // Output only. The most recent time that this issue was updated. google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Resource names of the sample representative utterances that match to this + // issue. + repeated string sample_utterances = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Aggregated statistics about an issue model. @@ -828,6 +845,10 @@ message Settings { // Percentage of conversations created using Dialogflow runtime integration // to analyze automatically, between [0, 100]. double runtime_integration_analysis_percentage = 1; + + // To select the annotators to run and the phrase matchers to use + // (if any). If not specified, all annotators will be run. + AnnotatorSelector annotator_selector = 5; } // Immutable. The resource name of the settings resource. @@ -1114,3 +1135,46 @@ message View { // String with specific view properties. string value = 5; } + +// Selector of all available annotators and phrase matchers to run. +message AnnotatorSelector { + // Whether to run the interruption annotator. + bool run_interruption_annotator = 1; + + // Whether to run the silence annotator. + bool run_silence_annotator = 2; + + // Whether to run the active phrase matcher annotator(s). + bool run_phrase_matcher_annotator = 3; + + // The list of phrase matchers to run. If not provided, all active phrase + // matchers will be used. If inactive phrase matchers are provided, they will + // not be used. Phrase matchers will be run only if + // run_phrase_matcher_annotator is set to true. Format: + // projects/{project}/locations/{location}/phraseMatchers/{phrase_matcher} + repeated string phrase_matchers = 4 [(google.api.resource_reference) = { + type: "contactcenterinsights.googleapis.com/PhraseMatcher" + }]; + + // Whether to run the sentiment annotator. + bool run_sentiment_annotator = 5; + + // Whether to run the entity annotator. + bool run_entity_annotator = 6; + + // Whether to run the intent annotator. + bool run_intent_annotator = 7; + + // Whether to run the issue model annotator. A model should have already been + // deployed for this to take effect. + bool run_issue_model_annotator = 8; + + // The issue model to run. If not provided, the most recently deployed topic + // model will be used. The provided issue model will only be used for + // inference if the issue model is deployed and if run_issue_model_annotator + // is set to true. If more than one issue model is provided, only the first + // provided issue model will be used for inference. + repeated string issue_models = 10 [(google.api.resource_reference) = { + type: "contactcenterinsights.googleapis.com/IssueModel" + }]; +} diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/AsyncBulkAnalyzeConversations.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/AsyncBulkAnalyzeConversations.java new file mode 100644 index 000000000000..a8ba66289687 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/AsyncBulkAnalyzeConversations.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 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_BulkAnalyzeConversations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.contactcenterinsights.v1.AnnotatorSelector; +import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncBulkAnalyzeConversations { + + public static void main(String[] args) throws Exception { + asyncBulkAnalyzeConversations(); + } + + public static void asyncBulkAnalyzeConversations() 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()) { + BulkAnalyzeConversationsRequest request = + BulkAnalyzeConversationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setAnalysisPercentage(1609757661) + .setAnnotatorSelector(AnnotatorSelector.newBuilder().build()) + .build(); + ApiFuture future = + contactCenterInsightsClient.bulkAnalyzeConversationsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_async] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/AsyncBulkAnalyzeConversationsLRO.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/AsyncBulkAnalyzeConversationsLRO.java new file mode 100644 index 000000000000..c718fa0f93be --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/AsyncBulkAnalyzeConversationsLRO.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 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_BulkAnalyzeConversations_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.contactcenterinsights.v1.AnnotatorSelector; +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.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.LocationName; + +public class AsyncBulkAnalyzeConversationsLRO { + + public static void main(String[] args) throws Exception { + asyncBulkAnalyzeConversationsLRO(); + } + + public static void asyncBulkAnalyzeConversationsLRO() 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()) { + BulkAnalyzeConversationsRequest request = + BulkAnalyzeConversationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setAnalysisPercentage(1609757661) + .setAnnotatorSelector(AnnotatorSelector.newBuilder().build()) + .build(); + OperationFuture future = + contactCenterInsightsClient + .bulkAnalyzeConversationsOperationCallable() + .futureCall(request); + // Do something. + BulkAnalyzeConversationsResponse response = future.get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_LRO_async] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/SyncBulkAnalyzeConversations.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/SyncBulkAnalyzeConversations.java new file mode 100644 index 000000000000..bbcc6bf6d3b0 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/SyncBulkAnalyzeConversations.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 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_BulkAnalyzeConversations_sync] +import com.google.cloud.contactcenterinsights.v1.AnnotatorSelector; +import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.LocationName; + +public class SyncBulkAnalyzeConversations { + + public static void main(String[] args) throws Exception { + syncBulkAnalyzeConversations(); + } + + public static void syncBulkAnalyzeConversations() 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()) { + BulkAnalyzeConversationsRequest request = + BulkAnalyzeConversationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setFilter("filter-1274492040") + .setAnalysisPercentage(1609757661) + .setAnnotatorSelector(AnnotatorSelector.newBuilder().build()) + .build(); + BulkAnalyzeConversationsResponse response = + contactCenterInsightsClient.bulkAnalyzeConversationsAsync(request).get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_sync] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/SyncBulkAnalyzeConversationsLocationnameStringFloat.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/SyncBulkAnalyzeConversationsLocationnameStringFloat.java new file mode 100644 index 000000000000..82bef275ff83 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/SyncBulkAnalyzeConversationsLocationnameStringFloat.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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_BulkAnalyzeConversations_LocationnameStringFloat_sync] +import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.LocationName; + +public class SyncBulkAnalyzeConversationsLocationnameStringFloat { + + public static void main(String[] args) throws Exception { + syncBulkAnalyzeConversationsLocationnameStringFloat(); + } + + public static void syncBulkAnalyzeConversationsLocationnameStringFloat() 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"; + float analysisPercentage = 1609757661; + BulkAnalyzeConversationsResponse response = + contactCenterInsightsClient + .bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage) + .get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_LocationnameStringFloat_sync] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/SyncBulkAnalyzeConversationsStringStringFloat.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/SyncBulkAnalyzeConversationsStringStringFloat.java new file mode 100644 index 000000000000..9d08ba570917 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/bulkanalyzeconversations/SyncBulkAnalyzeConversationsStringStringFloat.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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_BulkAnalyzeConversations_StringStringFloat_sync] +import com.google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.LocationName; + +public class SyncBulkAnalyzeConversationsStringStringFloat { + + public static void main(String[] args) throws Exception { + syncBulkAnalyzeConversationsStringStringFloat(); + } + + public static void syncBulkAnalyzeConversationsStringStringFloat() 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"; + float analysisPercentage = 1609757661; + BulkAnalyzeConversationsResponse response = + contactCenterInsightsClient + .bulkAnalyzeConversationsAsync(parent, filter, analysisPercentage) + .get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_BulkAnalyzeConversations_StringStringFloat_sync] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/deleteissue/AsyncDeleteIssue.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/deleteissue/AsyncDeleteIssue.java new file mode 100644 index 000000000000..27060a8fbc69 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/deleteissue/AsyncDeleteIssue.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 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_DeleteIssue_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest; +import com.google.cloud.contactcenterinsights.v1.IssueName; +import com.google.protobuf.Empty; + +public class AsyncDeleteIssue { + + public static void main(String[] args) throws Exception { + asyncDeleteIssue(); + } + + public static void asyncDeleteIssue() 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()) { + DeleteIssueRequest request = + DeleteIssueRequest.newBuilder() + .setName( + IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString()) + .build(); + ApiFuture future = + contactCenterInsightsClient.deleteIssueCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_async] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/deleteissue/SyncDeleteIssue.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/deleteissue/SyncDeleteIssue.java new file mode 100644 index 000000000000..77c14c32024f --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/deleteissue/SyncDeleteIssue.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 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_DeleteIssue_sync] +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.DeleteIssueRequest; +import com.google.cloud.contactcenterinsights.v1.IssueName; +import com.google.protobuf.Empty; + +public class SyncDeleteIssue { + + public static void main(String[] args) throws Exception { + syncDeleteIssue(); + } + + public static void syncDeleteIssue() 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()) { + DeleteIssueRequest request = + DeleteIssueRequest.newBuilder() + .setName( + IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString()) + .build(); + contactCenterInsightsClient.deleteIssue(request); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_sync] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/deleteissue/SyncDeleteIssueIssuename.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/deleteissue/SyncDeleteIssueIssuename.java new file mode 100644 index 000000000000..2a60e4ecc111 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/deleteissue/SyncDeleteIssueIssuename.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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_DeleteIssue_Issuename_sync] +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.IssueName; +import com.google.protobuf.Empty; + +public class SyncDeleteIssueIssuename { + + public static void main(String[] args) throws Exception { + syncDeleteIssueIssuename(); + } + + public static void syncDeleteIssueIssuename() 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()) { + IssueName name = IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]"); + contactCenterInsightsClient.deleteIssue(name); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_Issuename_sync] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/deleteissue/SyncDeleteIssueString.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/deleteissue/SyncDeleteIssueString.java new file mode 100644 index 000000000000..9d6efa4e4b79 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/deleteissue/SyncDeleteIssueString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 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_DeleteIssue_String_sync] +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.IssueName; +import com.google.protobuf.Empty; + +public class SyncDeleteIssueString { + + public static void main(String[] args) throws Exception { + syncDeleteIssueString(); + } + + public static void syncDeleteIssueString() 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 name = IssueName.of("[PROJECT]", "[LOCATION]", "[ISSUE_MODEL]", "[ISSUE]").toString(); + contactCenterInsightsClient.deleteIssue(name); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_DeleteIssue_String_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 new file mode 100644 index 000000000000..fa33007a9dc2 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/AsyncIngestConversations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 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_IngestConversations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.LocationName; +import com.google.longrunning.Operation; + +public class AsyncIngestConversations { + + public static void main(String[] args) throws Exception { + asyncIngestConversations(); + } + + public static void asyncIngestConversations() 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()) { + IngestConversationsRequest request = + IngestConversationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversationConfig( + IngestConversationsRequest.ConversationConfig.newBuilder().build()) + .build(); + ApiFuture future = + contactCenterInsightsClient.ingestConversationsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_async] 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 new file mode 100644 index 000000000000..fab67638adee --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/AsyncIngestConversationsLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 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_IngestConversations_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsMetadata; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.LocationName; + +public class AsyncIngestConversationsLRO { + + public static void main(String[] args) throws Exception { + asyncIngestConversationsLRO(); + } + + public static void asyncIngestConversationsLRO() 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()) { + IngestConversationsRequest request = + IngestConversationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversationConfig( + IngestConversationsRequest.ConversationConfig.newBuilder().build()) + .build(); + OperationFuture future = + contactCenterInsightsClient.ingestConversationsOperationCallable().futureCall(request); + // Do something. + IngestConversationsResponse response = future.get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_LRO_async] 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 new file mode 100644 index 000000000000..432e1ce4eebe --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/SyncIngestConversations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 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_IngestConversations_sync] +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsRequest; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.LocationName; + +public class SyncIngestConversations { + + public static void main(String[] args) throws Exception { + syncIngestConversations(); + } + + public static void syncIngestConversations() 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()) { + IngestConversationsRequest request = + IngestConversationsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversationConfig( + IngestConversationsRequest.ConversationConfig.newBuilder().build()) + .build(); + IngestConversationsResponse response = + contactCenterInsightsClient.ingestConversationsAsync(request).get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_sync] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/SyncIngestConversationsLocationname.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/SyncIngestConversationsLocationname.java new file mode 100644 index 000000000000..5b269e2400c7 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/SyncIngestConversationsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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_IngestConversations_Locationname_sync] +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.LocationName; + +public class SyncIngestConversationsLocationname { + + public static void main(String[] args) throws Exception { + syncIngestConversationsLocationname(); + } + + public static void syncIngestConversationsLocationname() 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]"); + IngestConversationsResponse response = + contactCenterInsightsClient.ingestConversationsAsync(parent).get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_Locationname_sync] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/SyncIngestConversationsString.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/SyncIngestConversationsString.java new file mode 100644 index 000000000000..9b54fd328131 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/ingestconversations/SyncIngestConversationsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 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_IngestConversations_String_sync] +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.IngestConversationsResponse; +import com.google.cloud.contactcenterinsights.v1.LocationName; + +public class SyncIngestConversationsString { + + public static void main(String[] args) throws Exception { + syncIngestConversationsString(); + } + + public static void syncIngestConversationsString() 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(); + IngestConversationsResponse response = + contactCenterInsightsClient.ingestConversationsAsync(parent).get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_IngestConversations_String_sync] diff --git a/versions.txt b/versions.txt index a7c8d4a2bf0f..26acef5dc131 100644 --- a/versions.txt +++ b/versions.txt @@ -599,4 +599,4 @@ google-cloud-monitoring-metricsscope:0.1.0:0.1.0 proto-google-cloud-monitoring-metricsscope-v1:0.1.0:0.1.0 grpc-google-cloud-monitoring-metricsscope-v1:0.1.0:0.1.0 proto-google-cloud-tpu-v2:2.8.0:2.8.0 -grpc-google-cloud-tpu-v2:2.8.0:2.8.0 \ No newline at end of file +grpc-google-cloud-tpu-v2:2.8.0:2.8.0