diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index bd23f8d266d1..65fbb5341887 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.11.0 + 26.12.0 pom import 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 012a8ea68aa7..7e017e56e1fc 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 @@ -357,6 +357,108 @@ public final UnaryCallable createConver return stub.createConversationCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a longrunning conversation upload operation. This method differs from CreateConversation + * by allowing audio transcription and optional DLP redaction. + * + *

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()) {
+   *   UploadConversationRequest request =
+   *       UploadConversationRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConversation(Conversation.newBuilder().build())
+   *           .setConversationId("conversationId-1676095234")
+   *           .setRedactionConfig(RedactionConfig.newBuilder().build())
+   *           .build();
+   *   Conversation response = contactCenterInsightsClient.uploadConversationAsync(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 uploadConversationAsync( + UploadConversationRequest request) { + return uploadConversationOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a longrunning conversation upload operation. This method differs from CreateConversation + * by allowing audio transcription and optional DLP redaction. + * + *

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()) {
+   *   UploadConversationRequest request =
+   *       UploadConversationRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConversation(Conversation.newBuilder().build())
+   *           .setConversationId("conversationId-1676095234")
+   *           .setRedactionConfig(RedactionConfig.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       contactCenterInsightsClient.uploadConversationOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Conversation response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + UploadConversationRequest, Conversation, UploadConversationMetadata> + uploadConversationOperationCallable() { + return stub.uploadConversationOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Create a longrunning conversation upload operation. This method differs from CreateConversation + * by allowing audio transcription and optional DLP redaction. + * + *

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()) {
+   *   UploadConversationRequest request =
+   *       UploadConversationRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setConversation(Conversation.newBuilder().build())
+   *           .setConversationId("conversationId-1676095234")
+   *           .setRedactionConfig(RedactionConfig.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       contactCenterInsightsClient.uploadConversationCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable uploadConversationCallable() { + return stub.uploadConversationCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a conversation. 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 81a683925bc7..3e02f5960804 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 @@ -88,6 +88,18 @@ public UnaryCallSettings createConversa return ((ContactCenterInsightsStubSettings) getStubSettings()).createConversationSettings(); } + /** Returns the object with the settings used for calls to uploadConversation. */ + public UnaryCallSettings uploadConversationSettings() { + return ((ContactCenterInsightsStubSettings) getStubSettings()).uploadConversationSettings(); + } + + /** Returns the object with the settings used for calls to uploadConversation. */ + public OperationCallSettings + uploadConversationOperationSettings() { + return ((ContactCenterInsightsStubSettings) getStubSettings()) + .uploadConversationOperationSettings(); + } + /** Returns the object with the settings used for calls to updateConversation. */ public UnaryCallSettings updateConversationSettings() { return ((ContactCenterInsightsStubSettings) getStubSettings()).updateConversationSettings(); @@ -466,6 +478,19 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().createConversationSettings(); } + /** Returns the builder for the settings used for calls to uploadConversation. */ + public UnaryCallSettings.Builder + uploadConversationSettings() { + return getStubSettingsBuilder().uploadConversationSettings(); + } + + /** Returns the builder for the settings used for calls to uploadConversation. */ + public OperationCallSettings.Builder< + UploadConversationRequest, Conversation, UploadConversationMetadata> + uploadConversationOperationSettings() { + return getStubSettingsBuilder().uploadConversationOperationSettings(); + } + /** Returns the builder for the settings used for calls to updateConversation. */ public UnaryCallSettings.Builder updateConversationSettings() { 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 30e623b49890..ceb6c6f043bf 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 @@ -120,6 +120,9 @@ }, "UpdateView": { "methods": ["updateView", "updateView", "updateViewCallable"] + }, + "UploadConversation": { + "methods": ["uploadConversationAsync", "uploadConversationOperationCallable", "uploadConversationCallable"] } } } 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 724110ec2362..e0f859491b6a 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 @@ -88,6 +88,8 @@ import com.google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest; import com.google.cloud.contactcenterinsights.v1.UpdateSettingsRequest; import com.google.cloud.contactcenterinsights.v1.UpdateViewRequest; +import com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata; +import com.google.cloud.contactcenterinsights.v1.UploadConversationRequest; import com.google.cloud.contactcenterinsights.v1.View; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -115,6 +117,16 @@ public UnaryCallable createConversation throw new UnsupportedOperationException("Not implemented: createConversationCallable()"); } + public OperationCallable + uploadConversationOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: uploadConversationOperationCallable()"); + } + + public UnaryCallable uploadConversationCallable() { + throw new UnsupportedOperationException("Not implemented: uploadConversationCallable()"); + } + public UnaryCallable updateConversationCallable() { throw new UnsupportedOperationException("Not implemented: updateConversationCallable()"); } 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 f513d69ff7ed..49420f2bbe33 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 @@ -114,6 +114,8 @@ import com.google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest; import com.google.cloud.contactcenterinsights.v1.UpdateSettingsRequest; import com.google.cloud.contactcenterinsights.v1.UpdateViewRequest; +import com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata; +import com.google.cloud.contactcenterinsights.v1.UploadConversationRequest; import com.google.cloud.contactcenterinsights.v1.View; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -174,6 +176,10 @@ public class ContactCenterInsightsStubSettings private final UnaryCallSettings createConversationSettings; + private final UnaryCallSettings uploadConversationSettings; + private final OperationCallSettings< + UploadConversationRequest, Conversation, UploadConversationMetadata> + uploadConversationOperationSettings; private final UnaryCallSettings updateConversationSettings; private final UnaryCallSettings getConversationSettings; @@ -483,6 +489,17 @@ public UnaryCallSettings createConversa return createConversationSettings; } + /** Returns the object with the settings used for calls to uploadConversation. */ + public UnaryCallSettings uploadConversationSettings() { + return uploadConversationSettings; + } + + /** Returns the object with the settings used for calls to uploadConversation. */ + public OperationCallSettings + uploadConversationOperationSettings() { + return uploadConversationOperationSettings; + } + /** Returns the object with the settings used for calls to updateConversation. */ public UnaryCallSettings updateConversationSettings() { return updateConversationSettings; @@ -836,6 +853,9 @@ protected ContactCenterInsightsStubSettings(Builder settingsBuilder) throws IOEx super(settingsBuilder); createConversationSettings = settingsBuilder.createConversationSettings().build(); + uploadConversationSettings = settingsBuilder.uploadConversationSettings().build(); + uploadConversationOperationSettings = + settingsBuilder.uploadConversationOperationSettings().build(); updateConversationSettings = settingsBuilder.updateConversationSettings().build(); getConversationSettings = settingsBuilder.getConversationSettings().build(); listConversationsSettings = settingsBuilder.listConversationsSettings().build(); @@ -892,6 +912,11 @@ public static class Builder private final ImmutableList> unaryMethodSettingsBuilders; private final UnaryCallSettings.Builder createConversationSettings; + private final UnaryCallSettings.Builder + uploadConversationSettings; + private final OperationCallSettings.Builder< + UploadConversationRequest, Conversation, UploadConversationMetadata> + uploadConversationOperationSettings; private final UnaryCallSettings.Builder updateConversationSettings; private final UnaryCallSettings.Builder @@ -1022,6 +1047,8 @@ protected Builder(ClientContext clientContext) { super(clientContext); createConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + uploadConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + uploadConversationOperationSettings = OperationCallSettings.newBuilder(); updateConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getConversationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listConversationsSettings = PagedCallSettings.newBuilder(LIST_CONVERSATIONS_PAGE_STR_FACT); @@ -1070,6 +1097,7 @@ protected Builder(ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList.>of( createConversationSettings, + uploadConversationSettings, updateConversationSettings, getConversationSettings, listConversationsSettings, @@ -1113,6 +1141,9 @@ protected Builder(ContactCenterInsightsStubSettings settings) { super(settings); createConversationSettings = settings.createConversationSettings.toBuilder(); + uploadConversationSettings = settings.uploadConversationSettings.toBuilder(); + uploadConversationOperationSettings = + settings.uploadConversationOperationSettings.toBuilder(); updateConversationSettings = settings.updateConversationSettings.toBuilder(); getConversationSettings = settings.getConversationSettings.toBuilder(); listConversationsSettings = settings.listConversationsSettings.toBuilder(); @@ -1165,6 +1196,7 @@ protected Builder(ContactCenterInsightsStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( createConversationSettings, + uploadConversationSettings, updateConversationSettings, getConversationSettings, listConversationsSettings, @@ -1235,6 +1267,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 + .uploadConversationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .updateConversationSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1415,6 +1452,31 @@ 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 + .uploadConversationOperationSettings() + .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(Conversation.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UploadConversationMetadata.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 .createAnalysisOperationSettings() .setInitialCallSettings( @@ -1640,6 +1702,21 @@ public Builder applyToAllUnaryMethods( return createConversationSettings; } + /** Returns the builder for the settings used for calls to uploadConversation. */ + public UnaryCallSettings.Builder + uploadConversationSettings() { + return uploadConversationSettings; + } + + /** Returns the builder for the settings used for calls to uploadConversation. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder< + UploadConversationRequest, Conversation, UploadConversationMetadata> + uploadConversationOperationSettings() { + return uploadConversationOperationSettings; + } + /** Returns the builder for the settings used for calls to updateConversation. */ public UnaryCallSettings.Builder updateConversationSettings() { 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 1717f7bcf056..b8a3b72e994a 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 @@ -92,6 +92,8 @@ import com.google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest; import com.google.cloud.contactcenterinsights.v1.UpdateSettingsRequest; import com.google.cloud.contactcenterinsights.v1.UpdateViewRequest; +import com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata; +import com.google.cloud.contactcenterinsights.v1.UploadConversationRequest; import com.google.cloud.contactcenterinsights.v1.View; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -122,6 +124,17 @@ public class GrpcContactCenterInsightsStub extends ContactCenterInsightsStub { .setResponseMarshaller(ProtoUtils.marshaller(Conversation.getDefaultInstance())) .build(); + private static final MethodDescriptor + uploadConversationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.contactcenterinsights.v1.ContactCenterInsights/UploadConversation") + .setRequestMarshaller( + ProtoUtils.marshaller(UploadConversationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor updateConversationMethodDescriptor = MethodDescriptor.newBuilder() @@ -504,6 +517,10 @@ public class GrpcContactCenterInsightsStub extends ContactCenterInsightsStub { .build(); private final UnaryCallable createConversationCallable; + private final UnaryCallable uploadConversationCallable; + private final OperationCallable< + UploadConversationRequest, Conversation, UploadConversationMetadata> + uploadConversationOperationCallable; private final UnaryCallable updateConversationCallable; private final UnaryCallable getConversationCallable; private final UnaryCallable @@ -632,6 +649,16 @@ protected GrpcContactCenterInsightsStub( return params.build(); }) .build(); + GrpcCallSettings uploadConversationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(uploadConversationMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); GrpcCallSettings updateConversationTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateConversationMethodDescriptor) @@ -1010,6 +1037,17 @@ protected GrpcContactCenterInsightsStub( createConversationTransportSettings, settings.createConversationSettings(), clientContext); + this.uploadConversationCallable = + callableFactory.createUnaryCallable( + uploadConversationTransportSettings, + settings.uploadConversationSettings(), + clientContext); + this.uploadConversationOperationCallable = + callableFactory.createOperationCallable( + uploadConversationTransportSettings, + settings.uploadConversationOperationSettings(), + clientContext, + operationsStub); this.updateConversationCallable = callableFactory.createUnaryCallable( updateConversationTransportSettings, @@ -1220,6 +1258,17 @@ public UnaryCallable createConversation return createConversationCallable; } + @Override + public UnaryCallable uploadConversationCallable() { + return uploadConversationCallable; + } + + @Override + public OperationCallable + uploadConversationOperationCallable() { + return uploadConversationOperationCallable; + } + @Override public UnaryCallable updateConversationCallable() { return updateConversationCallable; 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 12b62c997cdf..f1a702c60776 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 @@ -101,6 +101,8 @@ import com.google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest; import com.google.cloud.contactcenterinsights.v1.UpdateSettingsRequest; import com.google.cloud.contactcenterinsights.v1.UpdateViewRequest; +import com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata; +import com.google.cloud.contactcenterinsights.v1.UploadConversationRequest; import com.google.cloud.contactcenterinsights.v1.View; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -129,6 +131,7 @@ public class HttpJsonContactCenterInsightsStub extends ContactCenterInsightsStub .add(Analysis.getDescriptor()) .add(IngestConversationsResponse.getDescriptor()) .add(CreateIssueModelMetadata.getDescriptor()) + .add(UploadConversationMetadata.getDescriptor()) .add(ExportInsightsDataMetadata.getDescriptor()) .add(IssueModel.getDescriptor()) .add(IngestConversationsMetadata.getDescriptor()) @@ -137,6 +140,7 @@ public class HttpJsonContactCenterInsightsStub extends ContactCenterInsightsStub .add(CreateAnalysisOperationMetadata.getDescriptor()) .add(Empty.getDescriptor()) .add(BulkAnalyzeConversationsMetadata.getDescriptor()) + .add(Conversation.getDescriptor()) .add(ExportInsightsDataResponse.getDescriptor()) .add(UndeployIssueModelResponse.getDescriptor()) .add(UndeployIssueModelMetadata.getDescriptor()) @@ -183,6 +187,47 @@ public class HttpJsonContactCenterInsightsStub extends ContactCenterInsightsStub .build()) .build(); + private static final ApiMethodDescriptor + uploadConversationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.contactcenterinsights.v1.ContactCenterInsights/UploadConversation") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/conversations:upload", + 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( + (UploadConversationRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor updateConversationMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1528,6 +1573,10 @@ public class HttpJsonContactCenterInsightsStub extends ContactCenterInsightsStub .build(); private final UnaryCallable createConversationCallable; + private final UnaryCallable uploadConversationCallable; + private final OperationCallable< + UploadConversationRequest, Conversation, UploadConversationMetadata> + uploadConversationOperationCallable; private final UnaryCallable updateConversationCallable; private final UnaryCallable getConversationCallable; private final UnaryCallable @@ -1675,6 +1724,11 @@ protected HttpJsonContactCenterInsightsStub( .setMethodDescriptor(createConversationMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings uploadConversationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(uploadConversationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings updateConversationTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1872,6 +1926,17 @@ protected HttpJsonContactCenterInsightsStub( createConversationTransportSettings, settings.createConversationSettings(), clientContext); + this.uploadConversationCallable = + callableFactory.createUnaryCallable( + uploadConversationTransportSettings, + settings.uploadConversationSettings(), + clientContext); + this.uploadConversationOperationCallable = + callableFactory.createOperationCallable( + uploadConversationTransportSettings, + settings.uploadConversationOperationSettings(), + clientContext, + httpJsonOperationsStub); this.updateConversationCallable = callableFactory.createUnaryCallable( updateConversationTransportSettings, @@ -2077,6 +2142,7 @@ protected HttpJsonContactCenterInsightsStub( public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(createConversationMethodDescriptor); + methodDescriptors.add(uploadConversationMethodDescriptor); methodDescriptors.add(updateConversationMethodDescriptor); methodDescriptors.add(getConversationMethodDescriptor); methodDescriptors.add(listConversationsMethodDescriptor); @@ -2125,6 +2191,17 @@ public UnaryCallable createConversation return createConversationCallable; } + @Override + public UnaryCallable uploadConversationCallable() { + return uploadConversationCallable; + } + + @Override + public OperationCallable + uploadConversationOperationCallable() { + return uploadConversationOperationCallable; + } + @Override public UnaryCallable updateConversationCallable() { return updateConversationCallable; 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 e4fdaecb1b56..1ef410360e00 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 @@ -211,6 +211,81 @@ public void createConversationExceptionTest2() throws Exception { } } + @Test + public void uploadConversationTest() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) + .setDataSource(ConversationDataSource.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .setAgentId("agentId-1060987136") + .putAllLabels(new HashMap()) + .setTranscript(Conversation.Transcript.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setTurnCount(428155597) + .setLatestAnalysis(Analysis.newBuilder().build()) + .addAllRuntimeAnnotations(new ArrayList()) + .putAllDialogflowIntents(new HashMap()) + .setObfuscatedUserId("obfuscatedUserId971552298") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("uploadConversationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + UploadConversationRequest request = + UploadConversationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversation(Conversation.newBuilder().build()) + .setConversationId("conversationId-1676095234") + .setRedactionConfig(RedactionConfig.newBuilder().build()) + .build(); + + Conversation actualResponse = client.uploadConversationAsync(request).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 uploadConversationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UploadConversationRequest request = + UploadConversationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversation(Conversation.newBuilder().build()) + .setConversationId("conversationId-1676095234") + .setRedactionConfig(RedactionConfig.newBuilder().build()) + .build(); + client.uploadConversationAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void updateConversationTest() throws Exception { Conversation expectedResponse = @@ -2941,6 +3016,7 @@ public void getSettingsTest() throws Exception { .setConversationTtl(Duration.newBuilder().build()) .putAllPubsubNotificationSettings(new HashMap()) .setAnalysisConfig(Settings.AnalysisConfig.newBuilder().build()) + .setRedactionConfig(RedactionConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -2991,6 +3067,7 @@ public void getSettingsTest2() throws Exception { .setConversationTtl(Duration.newBuilder().build()) .putAllPubsubNotificationSettings(new HashMap()) .setAnalysisConfig(Settings.AnalysisConfig.newBuilder().build()) + .setRedactionConfig(RedactionConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3041,6 +3118,7 @@ public void updateSettingsTest() throws Exception { .setConversationTtl(Duration.newBuilder().build()) .putAllPubsubNotificationSettings(new HashMap()) .setAnalysisConfig(Settings.AnalysisConfig.newBuilder().build()) + .setRedactionConfig(RedactionConfig.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -3053,6 +3131,7 @@ public void updateSettingsTest() throws Exception { .setConversationTtl(Duration.newBuilder().build()) .putAllPubsubNotificationSettings(new HashMap()) .setAnalysisConfig(Settings.AnalysisConfig.newBuilder().build()) + .setRedactionConfig(RedactionConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -3091,6 +3170,7 @@ public void updateSettingsExceptionTest() throws Exception { .setConversationTtl(Duration.newBuilder().build()) .putAllPubsubNotificationSettings(new HashMap()) .setAnalysisConfig(Settings.AnalysisConfig.newBuilder().build()) + .setRedactionConfig(RedactionConfig.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateSettings(settings, updateMask); 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 a07103cc2758..85d19526c570 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 @@ -208,6 +208,81 @@ public void createConversationExceptionTest2() throws Exception { } } + @Test + public void uploadConversationTest() throws Exception { + Conversation expectedResponse = + Conversation.newBuilder() + .setName(ConversationName.of("[PROJECT]", "[LOCATION]", "[CONVERSATION]").toString()) + .setDataSource(ConversationDataSource.newBuilder().build()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setLanguageCode("languageCode-2092349083") + .setAgentId("agentId-1060987136") + .putAllLabels(new HashMap()) + .setTranscript(Conversation.Transcript.newBuilder().build()) + .setDuration(Duration.newBuilder().build()) + .setTurnCount(428155597) + .setLatestAnalysis(Analysis.newBuilder().build()) + .addAllRuntimeAnnotations(new ArrayList()) + .putAllDialogflowIntents(new HashMap()) + .setObfuscatedUserId("obfuscatedUserId971552298") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("uploadConversationTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockContactCenterInsights.addResponse(resultOperation); + + UploadConversationRequest request = + UploadConversationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversation(Conversation.newBuilder().build()) + .setConversationId("conversationId-1676095234") + .setRedactionConfig(RedactionConfig.newBuilder().build()) + .build(); + + Conversation actualResponse = client.uploadConversationAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockContactCenterInsights.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UploadConversationRequest actualRequest = ((UploadConversationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getParent(), actualRequest.getParent()); + Assert.assertEquals(request.getConversation(), actualRequest.getConversation()); + Assert.assertEquals(request.getConversationId(), actualRequest.getConversationId()); + Assert.assertEquals(request.getRedactionConfig(), actualRequest.getRedactionConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void uploadConversationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockContactCenterInsights.addException(exception); + + try { + UploadConversationRequest request = + UploadConversationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversation(Conversation.newBuilder().build()) + .setConversationId("conversationId-1676095234") + .setRedactionConfig(RedactionConfig.newBuilder().build()) + .build(); + client.uploadConversationAsync(request).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 updateConversationTest() throws Exception { Conversation expectedResponse = @@ -2577,6 +2652,7 @@ public void getSettingsTest() throws Exception { .setConversationTtl(Duration.newBuilder().build()) .putAllPubsubNotificationSettings(new HashMap()) .setAnalysisConfig(Settings.AnalysisConfig.newBuilder().build()) + .setRedactionConfig(RedactionConfig.newBuilder().build()) .build(); mockContactCenterInsights.addResponse(expectedResponse); @@ -2621,6 +2697,7 @@ public void getSettingsTest2() throws Exception { .setConversationTtl(Duration.newBuilder().build()) .putAllPubsubNotificationSettings(new HashMap()) .setAnalysisConfig(Settings.AnalysisConfig.newBuilder().build()) + .setRedactionConfig(RedactionConfig.newBuilder().build()) .build(); mockContactCenterInsights.addResponse(expectedResponse); @@ -2665,6 +2742,7 @@ public void updateSettingsTest() throws Exception { .setConversationTtl(Duration.newBuilder().build()) .putAllPubsubNotificationSettings(new HashMap()) .setAnalysisConfig(Settings.AnalysisConfig.newBuilder().build()) + .setRedactionConfig(RedactionConfig.newBuilder().build()) .build(); mockContactCenterInsights.addResponse(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 798ceac2f54b..4ec047416acd 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 @@ -81,6 +81,27 @@ public void createConversation( } } + @Override + public void uploadConversation( + UploadConversationRequest 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 UploadConversation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void updateConversation( UpdateConversationRequest request, StreamObserver responseObserver) { diff --git a/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsGrpc.java b/java-contact-center-insights/grpc-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/ContactCenterInsightsGrpc.java index d46bd999c2ac..263a843e3b44 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 @@ -85,6 +85,54 @@ private ContactCenterInsightsGrpc() {} return getCreateConversationMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest, + com.google.longrunning.Operation> + getUploadConversationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UploadConversation", + requestType = com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest, + com.google.longrunning.Operation> + getUploadConversationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest, + com.google.longrunning.Operation> + getUploadConversationMethod; + if ((getUploadConversationMethod = ContactCenterInsightsGrpc.getUploadConversationMethod) + == null) { + synchronized (ContactCenterInsightsGrpc.class) { + if ((getUploadConversationMethod = ContactCenterInsightsGrpc.getUploadConversationMethod) + == null) { + ContactCenterInsightsGrpc.getUploadConversationMethod = + getUploadConversationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadConversation")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ContactCenterInsightsMethodDescriptorSupplier("UploadConversation")) + .build(); + } + } + } + return getUploadConversationMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.contactcenterinsights.v1.UpdateConversationRequest, com.google.cloud.contactcenterinsights.v1.Conversation> @@ -1863,6 +1911,22 @@ default void createConversation( getCreateConversationMethod(), responseObserver); } + /** + * + * + *
+     * Create a longrunning conversation upload operation. This method differs
+     * from CreateConversation by allowing audio transcription and optional DLP
+     * redaction.
+     * 
+ */ + default void uploadConversation( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUploadConversationMethod(), responseObserver); + } + /** * * @@ -2445,6 +2509,24 @@ public void createConversation( responseObserver); } + /** + * + * + *
+     * Create a longrunning conversation upload operation. This method differs
+     * from CreateConversation by allowing audio transcription and optional DLP
+     * redaction.
+     * 
+ */ + public void uploadConversation( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUploadConversationMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -3073,6 +3155,21 @@ public com.google.cloud.contactcenterinsights.v1.Conversation createConversation getChannel(), getCreateConversationMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Create a longrunning conversation upload operation. This method differs
+     * from CreateConversation by allowing audio transcription and optional DLP
+     * redaction.
+     * 
+ */ + public com.google.longrunning.Operation uploadConversation( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUploadConversationMethod(), getCallOptions(), request); + } + /** * * @@ -3583,6 +3680,22 @@ protected ContactCenterInsightsFutureStub build( getChannel().newCall(getCreateConversationMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Create a longrunning conversation upload operation. This method differs
+     * from CreateConversation by allowing audio transcription and optional DLP
+     * redaction.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + uploadConversation( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUploadConversationMethod(), getCallOptions()), request); + } + /** * * @@ -4097,42 +4210,43 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4157,6 +4271,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPLOAD_CONVERSATION: + serviceImpl.uploadConversation( + (com.google.cloud.contactcenterinsights.v1.UploadConversationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_UPDATE_CONVERSATION: serviceImpl.updateConversation( (com.google.cloud.contactcenterinsights.v1.UpdateConversationRequest) request, @@ -4393,6 +4512,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.contactcenterinsights.v1.CreateConversationRequest, com.google.cloud.contactcenterinsights.v1.Conversation>( service, METHODID_CREATE_CONVERSATION))) + .addMethod( + getUploadConversationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest, + com.google.longrunning.Operation>(service, METHODID_UPLOAD_CONVERSATION))) .addMethod( getUpdateConversationMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4681,6 +4806,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ContactCenterInsightsFileDescriptorSupplier()) .addMethod(getCreateConversationMethod()) + .addMethod(getUploadConversationMethod()) .addMethod(getUpdateConversationMethod()) .addMethod(getGetConversationMethod()) .addMethod(getListConversationsMethod()) 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 2ae1f57f0c49..fd905d0a7691 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 @@ -67,6 +67,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_contactcenterinsights_v1_CreateConversationRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_contactcenterinsights_v1_CreateConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_UploadConversationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_UploadConversationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_UploadConversationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_UploadConversationMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_contactcenterinsights_v1_ListConversationsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -371,435 +379,456 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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\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\"\310\004\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\022\204\001\n\032ingest_conversations_stats\030\005 \001(" - + "\0132[.google.cloud.contactcenterinsights.v" - + "1.IngestConversationsMetadata.IngestConv" - + "ersationsStatsB\003\340A\003\032\256\001\n\030IngestConversati" - + "onsStats\022#\n\026processed_object_count\030\001 \001(\005" - + "B\003\340A\003\022%\n\030duplicates_skipped_count\030\002 \001(\005B" - + "\003\340A\003\022$\n\027successful_ingest_count\030\003 \001(\005B\003\340" - + "A\003\022 \n\023failed_ingest_count\030\004 \001(\005B\003\340A\003\"\035\n\033" - + "IngestConversationsResponse\"\252\001\n\025CreateAn" - + "alysisRequest\022I\n\006parent\030\001 \001(\tB9\340A\002\372A3\n1c" - + "ontactcenterinsights.googleapis.com/Conv" - + "ersation\022F\n\010analysis\030\002 \001(\0132/.google.clou" - + "d.contactcenterinsights.v1.AnalysisB\003\340A\002" - + "\"\227\001\n\023ListAnalysesRequest\022I\n\006parent\030\001 \001(\t" - + "B9\340A\002\372A3\n1contactcenterinsights.googleap" - + "is.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\024Li" - + "stAnalysesResponse\022A\n\010analyses\030\001 \003(\0132/.g" - + "oogle.cloud.contactcenterinsights.v1.Ana" - + "lysis\022\027\n\017next_page_token\030\002 \001(\t\"Y\n\022GetAna" - + "lysisRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-cont" - + "actcenterinsights.googleapis.com/Analysi" - + "s\"\\\n\025DeleteAnalysisRequest\022C\n\004name\030\001 \001(\t" - + "B5\340A\002\372A/\n-contactcenterinsights.googleap" - + "is.com/Analysis\"\351\001\n\037BulkAnalyzeConversat" - + "ionsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!loc" - + "ations.googleapis.com/Location\022\023\n\006filter" - + "\030\002 \001(\tB\003\340A\002\022 \n\023analysis_percentage\030\003 \001(\002" - + "B\003\340A\002\022T\n\022annotator_selector\030\010 \001(\01328.goog" - + "le.cloud.contactcenterinsights.v1.Annota" - + "torSelector\"\303\002\n BulkAnalyzeConversations" - + "Metadata\022/\n\013create_time\030\001 \001(\0132\032.google.p" - + "rotobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.go" - + "ogle.protobuf.Timestamp\022W\n\007request\030\003 \001(\013" - + "2F.google.cloud.contactcenterinsights.v1" - + ".BulkAnalyzeConversationsRequest\022 \n\030comp" - + "leted_analyses_count\030\004 \001(\005\022\035\n\025failed_ana" - + "lyses_count\030\005 \001(\005\022&\n\036total_requested_ana" - + "lyses_count\030\006 \001(\005\"d\n BulkAnalyzeConversa" - + "tionsResponse\022!\n\031successful_analysis_cou" - + "nt\030\001 \001(\005\022\035\n\025failed_analysis_count\030\002 \001(\005\"" - + "\230\004\n\031ExportInsightsDataRequest\022u\n\025big_que" - + "ry_destination\030\002 \001(\0132T.google.cloud.cont" - + "actcenterinsights.v1.ExportInsightsDataR" - + "equest.BigQueryDestinationH\000\0229\n\006parent\030\001" + + "sation_id\030\003 \001(\t\"\233\002\n\031UploadConversationRe" + + "quest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations" + + ".googleapis.com/Location\022N\n\014conversation" + + "\030\002 \001(\01323.google.cloud.contactcenterinsig" + + "hts.v1.ConversationB\003\340A\002\022\034\n\017conversation" + + "_id\030\003 \001(\tB\003\340A\001\022U\n\020redaction_config\030\004 \001(\013" + + "26.google.cloud.contactcenterinsights.v1" + + ".RedactionConfigB\003\340A\001\"\335\002\n\032UploadConversa" + + "tionMetadata\0224\n\013create_time\030\001 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022V\n" + + "\007request\030\003 \001(\0132@.google.cloud.contactcen" + + "terinsights.v1.UploadConversationRequest" + + "B\003\340A\003\022\037\n\022analysis_operation\030\004 \001(\tB\003\340A\003\022]" + + "\n\030applied_redaction_config\030\005 \001(\01326.googl" + + "e.cloud.contactcenterinsights.v1.Redacti" + + "onConfigB\003\340A\003\"\323\001\n\030ListConversationsReque" + + "st\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.go" + + "ogleapis.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\004" + + "view\030\005 \001(\01627.google.cloud.contactcenteri" + + "nsights.v1.ConversationView\"\200\001\n\031ListConv" + + "ersationsResponse\022J\n\rconversations\030\001 \003(\013" + + "23.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(\tB" + + "9\340A\002\372A3\n1contactcenterinsights.googleapi" + + "s.com/Conversation\022E\n\004view\030\002 \001(\01627.googl" + + "e.cloud.contactcenterinsights.v1.Convers" + + "ationView\"\234\001\n\031UpdateConversationRequest\022" + + "N\n\014conversation\030\001 \001(\01323.google.cloud.con" + + "tactcenterinsights.v1.ConversationB\003\340A\002\022" + + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMask\"s\n\031DeleteConversationRequest\022G\n" + + "\004name\030\001 \001(\tB9\340A\002\372A3\n1contactcenterinsigh" + + "ts.googleapis.com/Conversation\022\r\n\005force\030" + + "\002 \001(\010\"\377\004\n\032IngestConversationsRequest\022a\n\n" + + "gcs_source\030\002 \001(\0132K.google.cloud.contactc" + + "enterinsights.v1.IngestConversationsRequ" + + "est.GcsSourceH\000\022|\n\030transcript_object_con" + + "fig\030\003 \001(\0132X.google.cloud.contactcenterin" + + "sights.v1.IngestConversationsRequest.Tra" + + "nscriptObjectConfigH\001\0229\n\006parent\030\001 \001(\tB)\340" + + "A\002\372A#\n!locations.googleapis.com/Location" + + "\022q\n\023conversation_config\030\004 \001(\0132T.google.c" + + "loud.contactcenterinsights.v1.IngestConv" + + "ersationsRequest.ConversationConfig\032$\n\tG" + + "csSource\022\027\n\nbucket_uri\030\001 \001(\tB\003\340A\002\032i\n\026Tra" + + "nscriptObjectConfig\022O\n\006medium\030\001 \001(\0162:.go" + + "ogle.cloud.contactcenterinsights.v1.Conv" + + "ersation.MediumB\003\340A\002\032&\n\022ConversationConf" + + "ig\022\020\n\010agent_id\030\001 \001(\tB\010\n\006sourceB\017\n\robject" + + "_config\"\310\004\n\033IngestConversationsMetadata\022" + + "4\n\013create_time\030\001 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132\032.google" + + ".protobuf.TimestampB\003\340A\003\022W\n\007request\030\003 \001(" + + "\0132A.google.cloud.contactcenterinsights.v" + + "1.IngestConversationsRequestB\003\340A\003\022/\n\016par" + + "tial_errors\030\004 \003(\0132\022.google.rpc.StatusB\003\340" + + "A\003\022\204\001\n\032ingest_conversations_stats\030\005 \001(\0132" + + "[.google.cloud.contactcenterinsights.v1." + + "IngestConversationsMetadata.IngestConver" + + "sationsStatsB\003\340A\003\032\256\001\n\030IngestConversation" + + "sStats\022#\n\026processed_object_count\030\001 \001(\005B\003" + + "\340A\003\022%\n\030duplicates_skipped_count\030\002 \001(\005B\003\340" + + "A\003\022$\n\027successful_ingest_count\030\003 \001(\005B\003\340A\003" + + "\022 \n\023failed_ingest_count\030\004 \001(\005B\003\340A\003\"\035\n\033In" + + "gestConversationsResponse\"\252\001\n\025CreateAnal" + + "ysisRequest\022I\n\006parent\030\001 \001(\tB9\340A\002\372A3\n1con" + + "tactcenterinsights.googleapis.com/Conver" + + "sation\022F\n\010analysis\030\002 \001(\0132/.google.cloud." + + "contactcenterinsights.v1.AnalysisB\003\340A\002\"\227" + + "\001\n\023ListAnalysesRequest\022I\n\006parent\030\001 \001(\tB9" + + "\340A\002\372A3\n1contactcenterinsights.googleapis" + + ".com/Conversation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\022\016\n\006filter\030\004 \001(\t\"r\n\024List" + + "AnalysesResponse\022A\n\010analyses\030\001 \003(\0132/.goo" + + "gle.cloud.contactcenterinsights.v1.Analy" + + "sis\022\027\n\017next_page_token\030\002 \001(\t\"Y\n\022GetAnaly" + + "sisRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-contac" + + "tcenterinsights.googleapis.com/Analysis\"" + + "\\\n\025DeleteAnalysisRequest\022C\n\004name\030\001 \001(\tB5" + + "\340A\002\372A/\n-contactcenterinsights.googleapis" + + ".com/Analysis\"\351\001\n\037BulkAnalyzeConversatio" + + "nsRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locat" + + "ions.googleapis.com/Location\022\023\n\006filter\030\002" + + " \001(\tB\003\340A\002\022 \n\023analysis_percentage\030\003 \001(\002B\003" + + "\340A\002\022T\n\022annotator_selector\030\010 \001(\01328.google" + + ".cloud.contactcenterinsights.v1.Annotato" + + "rSelector\"\303\002\n BulkAnalyzeConversationsMe" + + "tadata\022/\n\013create_time\030\001 \001(\0132\032.google.pro" + + "tobuf.Timestamp\022,\n\010end_time\030\002 \001(\0132\032.goog" + + "le.protobuf.Timestamp\022W\n\007request\030\003 \001(\0132F" + + ".google.cloud.contactcenterinsights.v1.B" + + "ulkAnalyzeConversationsRequest\022 \n\030comple" + + "ted_analyses_count\030\004 \001(\005\022\035\n\025failed_analy" + + "ses_count\030\005 \001(\005\022&\n\036total_requested_analy" + + "ses_count\030\006 \001(\005\"d\n BulkAnalyzeConversati" + + "onsResponse\022!\n\031successful_analysis_count" + + "\030\001 \001(\005\022\035\n\025failed_analysis_count\030\002 \001(\005\"\230\004" + + "\n\031ExportInsightsDataRequest\022u\n\025big_query" + + "_destination\030\002 \001(\0132T.google.cloud.contac" + + "tcenterinsights.v1.ExportInsightsDataReq" + + "uest.BigQueryDestinationH\000\0229\n\006parent\030\001 \001" + + "(\tB)\340A\002\372A#\n!locations.googleapis.com/Loc" + + "ation\022\016\n\006filter\030\003 \001(\t\022\017\n\007kms_key\030\004 \001(\t\022l" + + "\n\021write_disposition\030\005 \001(\0162Q.google.cloud" + + ".contactcenterinsights.v1.ExportInsights" + + "DataRequest.WriteDisposition\032N\n\023BigQuery" + + "Destination\022\022\n\nproject_id\030\003 \001(\t\022\024\n\007datas" + + "et\030\001 \001(\tB\003\340A\002\022\r\n\005table\030\002 \001(\t\"[\n\020WriteDis" + + "position\022!\n\035WRITE_DISPOSITION_UNSPECIFIE" + + "D\020\000\022\022\n\016WRITE_TRUNCATE\020\001\022\020\n\014WRITE_APPEND\020" + + "\002B\r\n\013destination\"\204\002\n\032ExportInsightsDataM" + + "etadata\0224\n\013create_time\030\001 \001(\0132\032.google.pr" + + "otobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 \001(\0132" + + "\032.google.protobuf.TimestampB\003\340A\003\022Q\n\007requ" + + "est\030\003 \001(\0132@.google.cloud.contactcenterin" + + "sights.v1.ExportInsightsDataRequest\022*\n\016p" + + "artial_errors\030\004 \003(\0132\022.google.rpc.Status\"" + + "\034\n\032ExportInsightsDataResponse\"\241\001\n\027Create" + + "IssueModelRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A" + + "#\n!locations.googleapis.com/Location\022K\n\013" + + "issue_model\030\002 \001(\01321.google.cloud.contact" + + "centerinsights.v1.IssueModelB\003\340A\002\"\324\001\n\030Cr" + + "eateIssueModelMetadata\0224\n\013create_time\030\001 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n\010" + + "end_time\030\002 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022O\n\007request\030\003 \001(\0132>.google.cloud." + + "contactcenterinsights.v1.CreateIssueMode" + + "lRequest\"\227\001\n\027UpdateIssueModelRequest\022K\n\013" + + "issue_model\030\001 \001(\01321.google.cloud.contact" + + "centerinsights.v1.IssueModelB\003\340A\002\022/\n\013upd" + + "ate_mask\030\002 \001(\0132\032.google.protobuf.FieldMa" + + "sk\"S\n\026ListIssueModelsRequest\0229\n\006parent\030\001" + " \001(\tB)\340A\002\372A#\n!locations.googleapis.com/L" - + "ocation\022\016\n\006filter\030\003 \001(\t\022\017\n\007kms_key\030\004 \001(\t" - + "\022l\n\021write_disposition\030\005 \001(\0162Q.google.clo" - + "ud.contactcenterinsights.v1.ExportInsigh" - + "tsDataRequest.WriteDisposition\032N\n\023BigQue" - + "ryDestination\022\022\n\nproject_id\030\003 \001(\t\022\024\n\007dat" - + "aset\030\001 \001(\tB\003\340A\002\022\r\n\005table\030\002 \001(\t\"[\n\020WriteD" - + "isposition\022!\n\035WRITE_DISPOSITION_UNSPECIF" - + "IED\020\000\022\022\n\016WRITE_TRUNCATE\020\001\022\020\n\014WRITE_APPEN" - + "D\020\002B\r\n\013destination\"\204\002\n\032ExportInsightsDat" - + "aMetadata\0224\n\013create_time\030\001 \001(\0132\032.google." + + "ocation\"b\n\027ListIssueModelsResponse\022G\n\014is" + + "sue_models\030\001 \003(\01321.google.cloud.contactc" + + "enterinsights.v1.IssueModel\"]\n\024GetIssueM" + + "odelRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/conta" + + "ctcenterinsights.googleapis.com/IssueMod" + + "el\"`\n\027DeleteIssueModelRequest\022E\n\004name\030\001 " + + "\001(\tB7\340A\002\372A1\n/contactcenterinsights.googl" + + "eapis.com/IssueModel\"\324\001\n\030DeleteIssueMode" + + "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\022Q\n\007re" - + "quest\030\003 \001(\0132@.google.cloud.contactcenter" - + "insights.v1.ExportInsightsDataRequest\022*\n" - + "\016partial_errors\030\004 \003(\0132\022.google.rpc.Statu" - + "s\"\034\n\032ExportInsightsDataResponse\"\241\001\n\027Crea" - + "teIssueModelRequest\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.conta" - + "ctcenterinsights.v1.IssueModelB\003\340A\002\"\324\001\n\030" - + "CreateIssueModelMetadata\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\007request\030\003 \001(\0132>.google.clou" - + "d.contactcenterinsights.v1.CreateIssueMo" - + "delRequest\"\227\001\n\027UpdateIssueModelRequest\022K" - + "\n\013issue_model\030\001 \001(\01321.google.cloud.conta" - + "ctcenterinsights.v1.IssueModelB\003\340A\002\022/\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "Mask\"S\n\026ListIssueModelsRequest\0229\n\006parent" - + "\030\001 \001(\tB)\340A\002\372A#\n!locations.googleapis.com" - + "/Location\"b\n\027ListIssueModelsResponse\022G\n\014" - + "issue_models\030\001 \003(\01321.google.cloud.contac" - + "tcenterinsights.v1.IssueModel\"]\n\024GetIssu" - + "eModelRequest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/con" - + "tactcenterinsights.googleapis.com/IssueM" - + "odel\"`\n\027DeleteIssueModelRequest\022E\n\004name\030" - + "\001 \001(\tB7\340A\002\372A1\n/contactcenterinsights.goo" - + "gleapis.com/IssueModel\"\324\001\n\030DeleteIssueMo" - + "delMetadata\0224\n\013create_time\030\001 \001(\0132\032.googl" - + "e.protobuf.TimestampB\003\340A\003\0221\n\010end_time\030\002 " - + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\022O\n\007" - + "request\030\003 \001(\0132>.google.cloud.contactcent" - + "erinsights.v1.DeleteIssueModelRequest\"`\n" - + "\027DeployIssueModelRequest\022E\n\004name\030\001 \001(\tB7" - + "\340A\002\372A1\n/contactcenterinsights.googleapis" - + ".com/IssueModel\"\032\n\030DeployIssueModelRespo" - + "nse\"\324\001\n\030DeployIssueModelMetadata\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.Deplo" - + "yIssueModelRequest\"b\n\031UndeployIssueModel" - + "Request\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/contactce" - + "nterinsights.googleapis.com/IssueModel\"\034" - + "\n\032UndeployIssueModelResponse\"\330\001\n\032Undeplo" - + "yIssueModelMetadata\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\022Q\n\007request\030\003 \001(\0132@.google.cloud.con" - + "tactcenterinsights.v1.UndeployIssueModel" - + "Request\"S\n\017GetIssueRequest\022@\n\004name\030\001 \001(\t" - + "B2\340A\002\372A,\n*contactcenterinsights.googleap" - + "is.com/Issue\"\\\n\021ListIssuesRequest\022G\n\006par" - + "ent\030\001 \001(\tB7\340A\002\372A1\n/contactcenterinsights" - + ".googleapis.com/IssueModel\"R\n\022ListIssues" - + "Response\022<\n\006issues\030\001 \003(\0132,.google.cloud." - + "contactcenterinsights.v1.Issue\"\207\001\n\022Updat" - + "eIssueRequest\022@\n\005issue\030\001 \001(\0132,.google.cl" - + "oud.contactcenterinsights.v1.IssueB\003\340A\002\022" - + "/\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" - + "ieldMask\"V\n\022DeleteIssueRequest\022@\n\004name\030\001" - + " \001(\tB2\340A\002\372A,\n*contactcenterinsights.goog" - + "leapis.com/Issue\"o\n\037CalculateIssueModelS" - + "tatsRequest\022L\n\013issue_model\030\001 \001(\tB7\340A\002\372A1" - + "\n/contactcenterinsights.googleapis.com/I" - + "ssueModel\"v\n CalculateIssueModelStatsRes" - + "ponse\022R\n\rcurrent_stats\030\004 \001(\0132;.google.cl" - + "oud.contactcenterinsights.v1.IssueModelL" - + "abelStats\"\252\001\n\032CreatePhraseMatcherRequest" - + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" - + "leapis.com/Location\022Q\n\016phrase_matcher\030\002 " - + "\001(\01324.google.cloud.contactcenterinsights" - + ".v1.PhraseMatcherB\003\340A\002\"\215\001\n\031ListPhraseMat" - + "chersRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!lo" - + "cations.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\032ListPhraseMatchersResponse\022M\n" - + "\017phrase_matchers\030\001 \003(\01324.google.cloud.co" - + "ntactcenterinsights.v1.PhraseMatcher\022\027\n\017" - + "next_page_token\030\002 \001(\t\"c\n\027GetPhraseMatche" - + "rRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2contactc" - + "enterinsights.googleapis.com/PhraseMatch" - + "er\"f\n\032DeletePhraseMatcherRequest\022H\n\004name" - + "\030\001 \001(\tB:\340A\002\372A4\n2contactcenterinsights.go" - + "ogleapis.com/PhraseMatcher\"\240\001\n\032UpdatePhr" - + "aseMatcherRequest\022Q\n\016phrase_matcher\030\001 \001(" + + "\0132\032.google.protobuf.TimestampB\003\340A\003\022O\n\007re" + + "quest\030\003 \001(\0132>.google.cloud.contactcenter" + + "insights.v1.DeleteIssueModelRequest\"`\n\027D" + + "eployIssueModelRequest\022E\n\004name\030\001 \001(\tB7\340A" + + "\002\372A1\n/contactcenterinsights.googleapis.c" + + "om/IssueModel\"\032\n\030DeployIssueModelRespons" + + "e\"\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.google.protobuf" + + ".TimestampB\003\340A\003\022O\n\007request\030\003 \001(\0132>.googl" + + "e.cloud.contactcenterinsights.v1.DeployI" + + "ssueModelRequest\"b\n\031UndeployIssueModelRe" + + "quest\022E\n\004name\030\001 \001(\tB7\340A\002\372A1\n/contactcent" + + "erinsights.googleapis.com/IssueModel\"\034\n\032" + + "UndeployIssueModelResponse\"\330\001\n\032UndeployI" + + "ssueModelMetadata\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\022Q\n\007request\030\003 \001(\0132@.google.cloud.conta" + + "ctcenterinsights.v1.UndeployIssueModelRe" + + "quest\"S\n\017GetIssueRequest\022@\n\004name\030\001 \001(\tB2" + + "\340A\002\372A,\n*contactcenterinsights.googleapis" + + ".com/Issue\"\\\n\021ListIssuesRequest\022G\n\006paren" + + "t\030\001 \001(\tB7\340A\002\372A1\n/contactcenterinsights.g" + + "oogleapis.com/IssueModel\"R\n\022ListIssuesRe" + + "sponse\022<\n\006issues\030\001 \003(\0132,.google.cloud.co" + + "ntactcenterinsights.v1.Issue\"\207\001\n\022UpdateI" + + "ssueRequest\022@\n\005issue\030\001 \001(\0132,.google.clou" + + "d.contactcenterinsights.v1.IssueB\003\340A\002\022/\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.Fie" + + "ldMask\"V\n\022DeleteIssueRequest\022@\n\004name\030\001 \001" + + "(\tB2\340A\002\372A,\n*contactcenterinsights.google" + + "apis.com/Issue\"o\n\037CalculateIssueModelSta" + + "tsRequest\022L\n\013issue_model\030\001 \001(\tB7\340A\002\372A1\n/" + + "contactcenterinsights.googleapis.com/Iss" + + "ueModel\"v\n CalculateIssueModelStatsRespo" + + "nse\022R\n\rcurrent_stats\030\004 \001(\0132;.google.clou" + + "d.contactcenterinsights.v1.IssueModelLab" + + "elStats\"\252\001\n\032CreatePhraseMatcherRequest\0229" + + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.google" + + "apis.com/Location\022Q\n\016phrase_matcher\030\002 \001(" + "\01324.google.cloud.contactcenterinsights.v" - + "1.PhraseMatcherB\003\340A\002\022/\n\013update_mask\030\002 \001(" - + "\0132\032.google.protobuf.FieldMask\"Y\n\022GetSett" - + "ingsRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-conta" - + "ctcenterinsights.googleapis.com/Settings" - + "\"\225\001\n\025UpdateSettingsRequest\022F\n\010settings\030\001" - + " \001(\0132/.google.cloud.contactcenterinsight" - + "s.v1.SettingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" - + "\032.google.protobuf.FieldMaskB\003\340A\002\"\216\001\n\021Cre" - + "ateViewRequest\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!" - + "locations.googleapis.com/Location\022>\n\004vie" - + "w\030\002 \001(\0132+.google.cloud.contactcenterinsi" - + "ghts.v1.ViewB\003\340A\002\"Q\n\016GetViewRequest\022?\n\004n" - + "ame\030\001 \001(\tB1\340A\002\372A+\n)contactcenterinsights" - + ".googleapis.com/View\"t\n\020ListViewsRequest" - + "\0229\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.goog" - + "leapis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022" - + "\n\npage_token\030\003 \001(\t\"h\n\021ListViewsResponse\022" - + ":\n\005views\030\001 \003(\0132+.google.cloud.contactcen" - + "terinsights.v1.View\022\027\n\017next_page_token\030\002" - + " \001(\t\"\204\001\n\021UpdateViewRequest\022>\n\004view\030\001 \001(\013" - + "2+.google.cloud.contactcenterinsights.v1" - + ".ViewB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google" - + ".protobuf.FieldMask\"T\n\021DeleteViewRequest" - + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)contactcenterins" - + "ights.googleapis.com/View*J\n\020Conversatio" - + "nView\022!\n\035CONVERSATION_VIEW_UNSPECIFIED\020\000" - + "\022\010\n\004FULL\020\002\022\t\n\005BASIC\020\0012\321@\n\025ContactCenterI" - + "nsights\022\372\001\n\022CreateConversation\022@.google." - + "cloud.contactcenterinsights.v1.CreateCon" - + "versationRequest\0323.google.cloud.contactc" - + "enterinsights.v1.Conversation\"m\202\323\344\223\002A\"1/" - + "v1/{parent=projects/*/locations/*}/conve" - + "rsations:\014conversation\332A#parent,conversa" - + "tion,conversation_id\022\374\001\n\022UpdateConversat" - + "ion\022@.google.cloud.contactcenterinsights" - + ".v1.UpdateConversationRequest\0323.google.c" - + "loud.contactcenterinsights.v1.Conversati" - + "on\"o\202\323\344\223\002N2>/v1/{conversation.name=proje" - + "cts/*/locations/*/conversations/*}:\014conv" - + "ersation\332A\030conversation,update_mask\022\307\001\n\017" - + "GetConversation\022=.google.cloud.contactce" - + "nterinsights.v1.GetConversationRequest\0323" - + ".google.cloud.contactcenterinsights.v1.C" - + "onversation\"@\202\323\344\223\0023\0221/v1/{name=projects/" - + "*/locations/*/conversations/*}\332A\004name\022\332\001" - + "\n\021ListConversations\022?.google.cloud.conta" - + "ctcenterinsights.v1.ListConversationsReq" - + "uest\032@.google.cloud.contactcenterinsight" - + "s.v1.ListConversationsResponse\"B\202\323\344\223\0023\0221" - + "/v1/{parent=projects/*/locations/*}/conv" - + "ersations\332A\006parent\022\260\001\n\022DeleteConversatio" - + "n\022@.google.cloud.contactcenterinsights.v" - + "1.DeleteConversationRequest\032\026.google.pro" - + "tobuf.Empty\"@\202\323\344\223\0023*1/v1/{name=projects/" - + "*/locations/*/conversations/*}\332A\004name\022\376\001" - + "\n\016CreateAnalysis\022<.google.cloud.contactc" - + "enterinsights.v1.CreateAnalysisRequest\032\035" - + ".google.longrunning.Operation\"\216\001\202\323\344\223\002H\"<" - + "/v1/{parent=projects/*/locations/*/conve" - + "rsations/*}/analyses:\010analysis\332A\017parent," - + "analysis\312A+\n\010Analysis\022\037CreateAnalysisOpe" - + "rationMetadata\022\306\001\n\013GetAnalysis\0229.google." - + "cloud.contactcenterinsights.v1.GetAnalys" - + "isRequest\032/.google.cloud.contactcenterin" - + "sights.v1.Analysis\"K\202\323\344\223\002>\022\022*\n\004view\030" + + "\002 \001(\0132+.google.cloud.contactcenterinsigh" + + "ts.v1.ViewB\003\340A\002\"Q\n\016GetViewRequest\022?\n\004nam" + + "e\030\001 \001(\tB1\340A\002\372A+\n)contactcenterinsights.g" + + "oogleapis.com/View\"t\n\020ListViewsRequest\0229" + + "\n\006parent\030\001 \001(\tB)\340A\002\372A#\n!locations.google" + + "apis.com/Location\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"h\n\021ListViewsResponse\022:\n" + + "\005views\030\001 \003(\0132+.google.cloud.contactcente" + + "rinsights.v1.View\022\027\n\017next_page_token\030\002 \001" + + "(\t\"\204\001\n\021UpdateViewRequest\022>\n\004view\030\001 \001(\0132+" + + ".google.cloud.contactcenterinsights.v1.V" + + "iewB\003\340A\002\022/\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMask\"T\n\021DeleteViewRequest\022?" + + "\n\004name\030\001 \001(\tB1\340A\002\372A+\n)contactcenterinsig" + + "hts.googleapis.com/View*J\n\020ConversationV" + + "iew\022!\n\035CONVERSATION_VIEW_UNSPECIFIED\020\000\022\010" + + "\n\004FULL\020\002\022\t\n\005BASIC\020\0012\273B\n\025ContactCenterIns" + + "ights\022\372\001\n\022CreateConversation\022@.google.cl" + + "oud.contactcenterinsights.v1.CreateConve" + + "rsationRequest\0323.google.cloud.contactcen" + + "terinsights.v1.Conversation\"m\202\323\344\223\002A\"1/v1" + "/{parent=projects/*/locations/*}/convers" - + "ations:bulkAnalyze:\001*\332A!parent,filter,an" - + "alysis_percentage\312AD\n BulkAnalyzeConvers" - + "ationsResponse\022 BulkAnalyzeConversations" - + "Metadata\022\203\002\n\023IngestConversations\022A.googl" - + "e.cloud.contactcenterinsights.v1.IngestC" - + "onversationsRequest\032\035.google.longrunning" - + ".Operation\"\211\001\202\323\344\223\002=\"8/v1/{parent=project" - + "s/*/locations/*}/conversations:ingest:\001*" - + "\332A\006parent\312A:\n\033IngestConversationsRespons" - + "e\022\033IngestConversationsMetadata\022\376\001\n\022Expor" - + "tInsightsData\022@.google.cloud.contactcent" - + "erinsights.v1.ExportInsightsDataRequest\032" - + "\035.google.longrunning.Operation\"\206\001\202\323\344\223\002<\"" - + "7/v1/{parent=projects/*/locations/*}/ins" - + "ightsdata:export:\001*\332A\006parent\312A8\n\032ExportI" - + "nsightsDataResponse\022\032ExportInsightsDataM" - + "etadata\022\366\001\n\020CreateIssueModel\022>.google.cl" - + "oud.contactcenterinsights.v1.CreateIssue" - + "ModelRequest\032\035.google.longrunning.Operat" - + "ion\"\202\001\202\323\344\223\002>\"//v1/{parent=projects/*/loc" - + "ations/*}/issueModels:\013issue_model\332A\022par" - + "ent,issue_model\312A&\n\nIssueModel\022\030CreateIs" - + "sueModelMetadata\022\361\001\n\020UpdateIssueModel\022>." - + "google.cloud.contactcenterinsights.v1.Up" - + "dateIssueModelRequest\0321.google.cloud.con" - + "tactcenterinsights.v1.IssueModel\"j\202\323\344\223\002J" - + "2;/v1/{issue_model.name=projects/*/locat" - + "ions/*/issueModels/*}:\013issue_model\332A\027iss" - + "ue_model,update_mask\022\277\001\n\rGetIssueModel\022;" - + ".google.cloud.contactcenterinsights.v1.G" - + "etIssueModelRequest\0321.google.cloud.conta" - + "ctcenterinsights.v1.IssueModel\">\202\323\344\223\0021\022/" - + "/v1/{name=projects/*/locations/*/issueMo" - + "dels/*}\332A\004name\022\322\001\n\017ListIssueModels\022=.goo" - + "gle.cloud.contactcenterinsights.v1.ListI" - + "ssueModelsRequest\032>.google.cloud.contact" - + "centerinsights.v1.ListIssueModelsRespons" - + "e\"@\202\323\344\223\0021\022//v1/{parent=projects/*/locati" - + "ons/*}/issueModels\332A\006parent\022\345\001\n\020DeleteIs" - + "sueModel\022>.google.cloud.contactcenterins" - + "ights.v1.DeleteIssueModelRequest\032\035.googl" - + "e.longrunning.Operation\"r\202\323\344\223\0021*//v1/{na" - + "me=projects/*/locations/*/issueModels/*}" - + "\332A\004name\312A1\n\025google.protobuf.Empty\022\030Delet" - + "eIssueModelMetadata\022\362\001\n\020DeployIssueModel" + + "ations:\014conversation\332A#parent,conversati" + + "on,conversation_id\022\347\001\n\022UploadConversatio" + + "n\022@.google.cloud.contactcenterinsights.v" + + "1.UploadConversationRequest\032\035.google.lon" + + "grunning.Operation\"p\202\323\344\223\002=\"8/v1/{parent=" + + "projects/*/locations/*}/conversations:up" + + "load:\001*\312A*\n\014Conversation\022\032UploadConversa" + + "tionMetadata\022\374\001\n\022UpdateConversation\022@.go" + + "ogle.cloud.contactcenterinsights.v1.Upda" + + "teConversationRequest\0323.google.cloud.con" + + "tactcenterinsights.v1.Conversation\"o\202\323\344\223" + + "\002N2>/v1/{conversation.name=projects/*/lo" + + "cations/*/conversations/*}:\014conversation" + + "\332A\030conversation,update_mask\022\307\001\n\017GetConve" + + "rsation\022=.google.cloud.contactcenterinsi" + + "ghts.v1.GetConversationRequest\0323.google." + + "cloud.contactcenterinsights.v1.Conversat" + + "ion\"@\202\323\344\223\0023\0221/v1/{name=projects/*/locati" + + "ons/*/conversations/*}\332A\004name\022\332\001\n\021ListCo" + + "nversations\022?.google.cloud.contactcenter" + + "insights.v1.ListConversationsRequest\032@.g" + + "oogle.cloud.contactcenterinsights.v1.Lis" + + "tConversationsResponse\"B\202\323\344\223\0023\0221/v1/{par" + + "ent=projects/*/locations/*}/conversation" + + "s\332A\006parent\022\260\001\n\022DeleteConversation\022@.goog" + + "le.cloud.contactcenterinsights.v1.Delete" + + "ConversationRequest\032\026.google.protobuf.Em" + + "pty\"@\202\323\344\223\0023*1/v1/{name=projects/*/locati" + + "ons/*/conversations/*}\332A\004name\022\376\001\n\016Create" + + "Analysis\022<.google.cloud.contactcenterins" + + "ights.v1.CreateAnalysisRequest\032\035.google." + + "longrunning.Operation\"\216\001\202\323\344\223\002H\"\022\022*.google.cloud.cont" + + "actcenterinsights.v1.CreateIssueModelReq" + + "uest\032\035.google.longrunning.Operation\"\202\001\202\323" + + "\344\223\002>\"//v1/{parent=projects/*/locations/*" + + "}/issueModels:\013issue_model\332A\022parent,issu" + + "e_model\312A&\n\nIssueModel\022\030CreateIssueModel" + + "Metadata\022\361\001\n\020UpdateIssueModel\022>.google.c" + + "loud.contactcenterinsights.v1.UpdateIssu" + + "eModelRequest\0321.google.cloud.contactcent" + + "erinsights.v1.IssueModel\"j\202\323\344\223\002J2;/v1/{i" + + "ssue_model.name=projects/*/locations/*/i" + + "ssueModels/*}:\013issue_model\332A\027issue_model" + + ",update_mask\022\277\001\n\rGetIssueModel\022;.google." + + "cloud.contactcenterinsights.v1.GetIssueM" + + "odelRequest\0321.google.cloud.contactcenter" + + "insights.v1.IssueModel\">\202\323\344\223\0021\022//v1/{nam" + + "e=projects/*/locations/*/issueModels/*}\332" + + "A\004name\022\322\001\n\017ListIssueModels\022=.google.clou" + + "d.contactcenterinsights.v1.ListIssueMode" + + "lsRequest\032>.google.cloud.contactcenterin" + + "sights.v1.ListIssueModelsResponse\"@\202\323\344\223\002" + + "1\022//v1/{parent=projects/*/locations/*}/i" + + "ssueModels\332A\006parent\022\345\001\n\020DeleteIssueModel" + "\022>.google.cloud.contactcenterinsights.v1" - + ".DeployIssueModelRequest\032\035.google.longru" - + "nning.Operation\"\177\202\323\344\223\002;\"6/v1/{name=proje" - + "cts/*/locations/*/issueModels/*}:deploy:" - + "\001*\332A\004name\312A4\n\030DeployIssueModelResponse\022\030" - + "DeployIssueModelMetadata\022\375\001\n\022UndeployIss" - + "ueModel\022@.google.cloud.contactcenterinsi" - + "ghts.v1.UndeployIssueModelRequest\032\035.goog" - + "le.longrunning.Operation\"\205\001\202\323\344\223\002=\"8/v1/{" - + "name=projects/*/locations/*/issueModels/" - + "*}:undeploy:\001*\332A\004name\312A8\n\032UndeployIssueM" - + "odelResponse\022\032UndeployIssueModelMetadata" - + "\022\271\001\n\010GetIssue\0226.google.cloud.contactcent" - + "erinsights.v1.GetIssueRequest\032,.google.c" - + "loud.contactcenterinsights.v1.Issue\"G\202\323\344" - + "\223\002:\0228/v1/{name=projects/*/locations/*/is" - + "sueModels/*/issues/*}\332A\004name\022\314\001\n\nListIss" - + "ues\0228.google.cloud.contactcenterinsights" - + ".v1.ListIssuesRequest\0329.google.cloud.con" - + "tactcenterinsights.v1.ListIssuesResponse" - + "\"I\202\323\344\223\002:\0228/v1/{parent=projects/*/locatio" - + "ns/*/issueModels/*}/issues\332A\006parent\022\331\001\n\013" - + "UpdateIssue\0229.google.cloud.contactcenter" - + "insights.v1.UpdateIssueRequest\032,.google." - + "cloud.contactcenterinsights.v1.Issue\"a\202\323" - + "\344\223\002G2>/v1/{issue.name=projects/*/locatio" - + "ns/*/issueModels/*/issues/*}:\005issue\332A\021is" - + "sue,update_mask\022\251\001\n\013DeleteIssue\0229.google", - ".cloud.contactcenterinsights.v1.DeleteIs" - + "sueRequest\032\026.google.protobuf.Empty\"G\202\323\344\223" - + "\002:*8/v1/{name=projects/*/locations/*/iss" - + "ueModels/*/issues/*}\332A\004name\022\222\002\n\030Calculat" - + "eIssueModelStats\022F.google.cloud.contactc" - + "enterinsights.v1.CalculateIssueModelStat" - + "sRequest\032G.google.cloud.contactcenterins" - + "ights.v1.CalculateIssueModelStatsRespons" - + "e\"e\202\323\344\223\002Q\022O/v1/{issue_model=projects/*/l" - + "ocations/*/issueModels/*}:calculateIssue" - + "ModelStats\332A\013issue_model\022\362\001\n\023CreatePhras" - + "eMatcher\022A.google.cloud.contactcenterins" - + "ights.v1.CreatePhraseMatcherRequest\0324.go" - + "ogle.cloud.contactcenterinsights.v1.Phra" - + "seMatcher\"b\202\323\344\223\002D\"2/v1/{parent=projects/" - + "*/locations/*}/phraseMatchers:\016phrase_ma" - + "tcher\332A\025parent,phrase_matcher\022\313\001\n\020GetPhr" - + "aseMatcher\022>.google.cloud.contactcenteri" - + "nsights.v1.GetPhraseMatcherRequest\0324.goo" - + "gle.cloud.contactcenterinsights.v1.Phras" - + "eMatcher\"A\202\323\344\223\0024\0222/v1/{name=projects/*/l" - + "ocations/*/phraseMatchers/*}\332A\004name\022\336\001\n\022" - + "ListPhraseMatchers\022@.google.cloud.contac" - + "tcenterinsights.v1.ListPhraseMatchersReq" - + "uest\032A.google.cloud.contactcenterinsight" - + "s.v1.ListPhraseMatchersResponse\"C\202\323\344\223\0024\022" - + "2/v1/{parent=projects/*/locations/*}/phr" - + "aseMatchers\332A\006parent\022\263\001\n\023DeletePhraseMat" - + "cher\022A.google.cloud.contactcenterinsight" - + "s.v1.DeletePhraseMatcherRequest\032\026.google" - + ".protobuf.Empty\"A\202\323\344\223\0024*2/v1/{name=proje" - + "cts/*/locations/*/phraseMatchers/*}\332A\004na" - + "me\022\206\002\n\023UpdatePhraseMatcher\022A.google.clou" - + "d.contactcenterinsights.v1.UpdatePhraseM" - + "atcherRequest\0324.google.cloud.contactcent" - + "erinsights.v1.PhraseMatcher\"v\202\323\344\223\002S2A/v1" - + "/{phrase_matcher.name=projects/*/locatio" - + "ns/*/phraseMatchers/*}:\016phrase_matcher\332A" - + "\032phrase_matcher,update_mask\022\344\001\n\016Calculat" - + "eStats\022<.google.cloud.contactcenterinsig" - + "hts.v1.CalculateStatsRequest\032=.google.cl" - + "oud.contactcenterinsights.v1.CalculateSt" - + "atsResponse\"U\202\323\344\223\002D\022B/v1/{location=proje" - + "cts/*/locations/*}/conversations:calcula" - + "teStats\332A\010location\022\264\001\n\013GetSettings\0229.goo" - + "gle.cloud.contactcenterinsights.v1.GetSe" - + "ttingsRequest\032/.google.cloud.contactcent" - + "erinsights.v1.Settings\"9\202\323\344\223\002,\022*/v1/{nam" - + "e=projects/*/locations/*/settings}\332A\004nam" - + "e\022\335\001\n\016UpdateSettings\022<.google.cloud.cont" - + "actcenterinsights.v1.UpdateSettingsReque" - + "st\032/.google.cloud.contactcenterinsights." - + "v1.Settings\"\\\202\323\344\223\002?23/v1/{settings.name=" - + "projects/*/locations/*/settings}:\010settin" - + "gs\332A\024settings,update_mask\022\272\001\n\nCreateView" - + "\0228.google.cloud.contactcenterinsights.v1" - + ".CreateViewRequest\032+.google.cloud.contac" - + "tcenterinsights.v1.View\"E\202\323\344\223\0021\")/v1/{pa" - + "rent=projects/*/locations/*}/views:\004view" - + "\332A\013parent,view\022\247\001\n\007GetView\0225.google.clou" - + "d.contactcenterinsights.v1.GetViewReques" - + "t\032+.google.cloud.contactcenterinsights.v" - + "1.View\"8\202\323\344\223\002+\022)/v1/{name=projects/*/loc" - + "ations/*/views/*}\332A\004name\022\272\001\n\tListViews\0227" - + ".google.cloud.contactcenterinsights.v1.L" - + "istViewsRequest\0328.google.cloud.contactce" - + "nterinsights.v1.ListViewsResponse\":\202\323\344\223\002" - + "+\022)/v1/{parent=projects/*/locations/*}/v" - + "iews\332A\006parent\022\304\001\n\nUpdateView\0228.google.cl" - + "oud.contactcenterinsights.v1.UpdateViewR" - + "equest\032+.google.cloud.contactcenterinsig" - + "hts.v1.View\"O\202\323\344\223\00262./v1/{view.name=proj" - + "ects/*/locations/*/views/*}:\004view\332A\020view" - + ",update_mask\022\230\001\n\nDeleteView\0228.google.clo" - + "ud.contactcenterinsights.v1.DeleteViewRe" - + "quest\032\026.google.protobuf.Empty\"8\202\323\344\223\002+*)/" - + "v1/{name=projects/*/locations/*/views/*}" - + "\332A\004name\032X\312A$contactcenterinsights.google" - + "apis.com\322A.https://www.googleapis.com/au" - + "th/cloud-platformB\245\002\n)com.google.cloud.c" - + "ontactcenterinsights.v1B\032ContactCenterIn" - + "sightsProtoP\001Z_cloud.google.com/go/conta" - + "ctcenterinsights/apiv1/contactcenterinsi" - + "ghtspb;contactcenterinsightspb\252\002%Google." - + "Cloud.ContactCenterInsights.V1\312\002%Google\\" - + "Cloud\\ContactCenterInsights\\V1\352\002(Google:" - + ":Cloud::ContactCenterInsights::V1b\006proto" - + "3" + + ".DeleteIssueModelRequest\032\035.google.longru" + + "nning.Operation\"r\202\323\344\223\0021*//v1/{name=proje" + + "cts/*/locations/*/issueModels/*}\332A\004name\312" + + "A1\n\025google.protobuf.Empty\022\030DeleteIssueMo" + + "delMetadata\022\362\001\n\020DeployIssueModel\022>.googl" + + "e.cloud.contactcenterinsights.v1.DeployI" + + "ssueModelRequest\032\035.google.longrunning.Op" + + "eration\"\177\202\323\344\223\002;\"6/v1/{name=projects/*/lo" + + "cations/*/issueModels/*}:deploy:\001*\332A\004nam" + + "e\312A4\n\030DeployIssueModelResponse\022\030DeployIs" + + "sueModelMetadata\022\375\001\n\022UndeployIssueModel\022", + "@.google.cloud.contactcenterinsights.v1." + + "UndeployIssueModelRequest\032\035.google.longr" + + "unning.Operation\"\205\001\202\323\344\223\002=\"8/v1/{name=pro" + + "jects/*/locations/*/issueModels/*}:undep" + + "loy:\001*\332A\004name\312A8\n\032UndeployIssueModelResp" + + "onse\022\032UndeployIssueModelMetadata\022\271\001\n\010Get" + + "Issue\0226.google.cloud.contactcenterinsigh" + + "ts.v1.GetIssueRequest\032,.google.cloud.con" + + "tactcenterinsights.v1.Issue\"G\202\323\344\223\002:\0228/v1" + + "/{name=projects/*/locations/*/issueModel" + + "s/*/issues/*}\332A\004name\022\314\001\n\nListIssues\0228.go" + + "ogle.cloud.contactcenterinsights.v1.List" + + "IssuesRequest\0329.google.cloud.contactcent" + + "erinsights.v1.ListIssuesResponse\"I\202\323\344\223\002:" + + "\0228/v1/{parent=projects/*/locations/*/iss" + + "ueModels/*}/issues\332A\006parent\022\331\001\n\013UpdateIs" + + "sue\0229.google.cloud.contactcenterinsights" + + ".v1.UpdateIssueRequest\032,.google.cloud.co" + + "ntactcenterinsights.v1.Issue\"a\202\323\344\223\002G2>/v" + + "1/{issue.name=projects/*/locations/*/iss" + + "ueModels/*/issues/*}:\005issue\332A\021issue,upda" + + "te_mask\022\251\001\n\013DeleteIssue\0229.google.cloud.c" + + "ontactcenterinsights.v1.DeleteIssueReque" + + "st\032\026.google.protobuf.Empty\"G\202\323\344\223\002:*8/v1/" + + "{name=projects/*/locations/*/issueModels" + + "/*/issues/*}\332A\004name\022\222\002\n\030CalculateIssueMo" + + "delStats\022F.google.cloud.contactcenterins" + + "ights.v1.CalculateIssueModelStatsRequest" + + "\032G.google.cloud.contactcenterinsights.v1" + + ".CalculateIssueModelStatsResponse\"e\202\323\344\223\002" + + "Q\022O/v1/{issue_model=projects/*/locations" + + "/*/issueModels/*}:calculateIssueModelSta" + + "ts\332A\013issue_model\022\362\001\n\023CreatePhraseMatcher" + + "\022A.google.cloud.contactcenterinsights.v1" + + ".CreatePhraseMatcherRequest\0324.google.clo" + + "ud.contactcenterinsights.v1.PhraseMatche" + + "r\"b\202\323\344\223\002D\"2/v1/{parent=projects/*/locati" + + "ons/*}/phraseMatchers:\016phrase_matcher\332A\025" + + "parent,phrase_matcher\022\313\001\n\020GetPhraseMatch" + + "er\022>.google.cloud.contactcenterinsights." + + "v1.GetPhraseMatcherRequest\0324.google.clou" + + "d.contactcenterinsights.v1.PhraseMatcher" + + "\"A\202\323\344\223\0024\0222/v1/{name=projects/*/locations" + + "/*/phraseMatchers/*}\332A\004name\022\336\001\n\022ListPhra" + + "seMatchers\022@.google.cloud.contactcenteri" + + "nsights.v1.ListPhraseMatchersRequest\032A.g" + + "oogle.cloud.contactcenterinsights.v1.Lis" + + "tPhraseMatchersResponse\"C\202\323\344\223\0024\0222/v1/{pa" + + "rent=projects/*/locations/*}/phraseMatch" + + "ers\332A\006parent\022\263\001\n\023DeletePhraseMatcher\022A.g" + + "oogle.cloud.contactcenterinsights.v1.Del" + + "etePhraseMatcherRequest\032\026.google.protobu" + + "f.Empty\"A\202\323\344\223\0024*2/v1/{name=projects/*/lo" + + "cations/*/phraseMatchers/*}\332A\004name\022\206\002\n\023U" + + "pdatePhraseMatcher\022A.google.cloud.contac" + + "tcenterinsights.v1.UpdatePhraseMatcherRe" + + "quest\0324.google.cloud.contactcenterinsigh" + + "ts.v1.PhraseMatcher\"v\202\323\344\223\002S2A/v1/{phrase" + + "_matcher.name=projects/*/locations/*/phr" + + "aseMatchers/*}:\016phrase_matcher\332A\032phrase_" + + "matcher,update_mask\022\344\001\n\016CalculateStats\022<" + + ".google.cloud.contactcenterinsights.v1.C" + + "alculateStatsRequest\032=.google.cloud.cont" + + "actcenterinsights.v1.CalculateStatsRespo" + + "nse\"U\202\323\344\223\002D\022B/v1/{location=projects/*/lo" + + "cations/*}/conversations:calculateStats\332" + + "A\010location\022\264\001\n\013GetSettings\0229.google.clou" + + "d.contactcenterinsights.v1.GetSettingsRe" + + "quest\032/.google.cloud.contactcenterinsigh" + + "ts.v1.Settings\"9\202\323\344\223\002,\022*/v1/{name=projec" + + "ts/*/locations/*/settings}\332A\004name\022\335\001\n\016Up" + + "dateSettings\022<.google.cloud.contactcente" + + "rinsights.v1.UpdateSettingsRequest\032/.goo" + + "gle.cloud.contactcenterinsights.v1.Setti" + + "ngs\"\\\202\323\344\223\002?23/v1/{settings.name=projects" + + "/*/locations/*/settings}:\010settings\332A\024set" + + "tings,update_mask\022\272\001\n\nCreateView\0228.googl" + + "e.cloud.contactcenterinsights.v1.CreateV" + + "iewRequest\032+.google.cloud.contactcenteri" + + "nsights.v1.View\"E\202\323\344\223\0021\")/v1/{parent=pro" + + "jects/*/locations/*}/views:\004view\332A\013paren" + + "t,view\022\247\001\n\007GetView\0225.google.cloud.contac" + + "tcenterinsights.v1.GetViewRequest\032+.goog" + + "le.cloud.contactcenterinsights.v1.View\"8" + + "\202\323\344\223\002+\022)/v1/{name=projects/*/locations/*" + + "/views/*}\332A\004name\022\272\001\n\tListViews\0227.google." + + "cloud.contactcenterinsights.v1.ListViews" + + "Request\0328.google.cloud.contactcenterinsi" + + "ghts.v1.ListViewsResponse\":\202\323\344\223\002+\022)/v1/{" + + "parent=projects/*/locations/*}/views\332A\006p" + + "arent\022\304\001\n\nUpdateView\0228.google.cloud.cont" + + "actcenterinsights.v1.UpdateViewRequest\032+" + + ".google.cloud.contactcenterinsights.v1.V" + + "iew\"O\202\323\344\223\00262./v1/{view.name=projects/*/l" + + "ocations/*/views/*}:\004view\332A\020view,update_" + + "mask\022\230\001\n\nDeleteView\0228.google.cloud.conta" + + "ctcenterinsights.v1.DeleteViewRequest\032\026." + + "google.protobuf.Empty\"8\202\323\344\223\002+*)/v1/{name" + + "=projects/*/locations/*/views/*}\332A\004name\032" + + "X\312A$contactcenterinsights.googleapis.com" + + "\322A.https://www.googleapis.com/auth/cloud" + + "-platformB\245\002\n)com.google.cloud.contactce" + + "nterinsights.v1B\032ContactCenterInsightsPr" + + "otoP\001Z_cloud.google.com/go/contactcenter" + + "insights/apiv1/contactcenterinsightspb;c" + + "ontactcenterinsightspb\252\002%Google.Cloud.Co" + + "ntactCenterInsights.V1\312\002%Google\\Cloud\\Co" + + "ntactCenterInsights\\V1\352\002(Google::Cloud::" + + "ContactCenterInsights::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -916,8 +945,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "Conversation", "ConversationId", }); - internal_static_google_cloud_contactcenterinsights_v1_ListConversationsRequest_descriptor = + internal_static_google_cloud_contactcenterinsights_v1_UploadConversationRequest_descriptor = getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_contactcenterinsights_v1_UploadConversationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_UploadConversationRequest_descriptor, + new java.lang.String[] { + "Parent", "Conversation", "ConversationId", "RedactionConfig", + }); + internal_static_google_cloud_contactcenterinsights_v1_UploadConversationMetadata_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_contactcenterinsights_v1_UploadConversationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_UploadConversationMetadata_descriptor, + new java.lang.String[] { + "CreateTime", "EndTime", "Request", "AnalysisOperation", "AppliedRedactionConfig", + }); + internal_static_google_cloud_contactcenterinsights_v1_ListConversationsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); internal_static_google_cloud_contactcenterinsights_v1_ListConversationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListConversationsRequest_descriptor, @@ -925,7 +970,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "View", }); internal_static_google_cloud_contactcenterinsights_v1_ListConversationsResponse_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_google_cloud_contactcenterinsights_v1_ListConversationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListConversationsResponse_descriptor, @@ -933,7 +978,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Conversations", "NextPageToken", }); internal_static_google_cloud_contactcenterinsights_v1_GetConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_google_cloud_contactcenterinsights_v1_GetConversationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetConversationRequest_descriptor, @@ -941,7 +986,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "View", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_google_cloud_contactcenterinsights_v1_UpdateConversationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateConversationRequest_descriptor, @@ -949,7 +994,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Conversation", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteConversationRequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_google_cloud_contactcenterinsights_v1_DeleteConversationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeleteConversationRequest_descriptor, @@ -957,7 +1002,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsRequest_descriptor, @@ -1000,7 +1045,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AgentId", }); internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsMetadata_descriptor, @@ -1021,13 +1066,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FailedIngestCount", }); internal_static_google_cloud_contactcenterinsights_v1_IngestConversationsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); 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); + getDescriptor().getMessageTypes().get(14); internal_static_google_cloud_contactcenterinsights_v1_CreateAnalysisRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreateAnalysisRequest_descriptor, @@ -1035,7 +1080,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Analysis", }); internal_static_google_cloud_contactcenterinsights_v1_ListAnalysesRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_cloud_contactcenterinsights_v1_ListAnalysesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListAnalysesRequest_descriptor, @@ -1043,7 +1088,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_contactcenterinsights_v1_ListAnalysesResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_cloud_contactcenterinsights_v1_ListAnalysesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListAnalysesResponse_descriptor, @@ -1051,7 +1096,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Analyses", "NextPageToken", }); internal_static_google_cloud_contactcenterinsights_v1_GetAnalysisRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_cloud_contactcenterinsights_v1_GetAnalysisRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetAnalysisRequest_descriptor, @@ -1059,7 +1104,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteAnalysisRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_cloud_contactcenterinsights_v1_DeleteAnalysisRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeleteAnalysisRequest_descriptor, @@ -1067,7 +1112,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsRequest_descriptor, @@ -1075,7 +1120,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "AnalysisPercentage", "AnnotatorSelector", }); internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsMetadata_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsMetadata_descriptor, @@ -1088,7 +1133,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TotalRequestedAnalysesCount", }); internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_BulkAnalyzeConversationsResponse_descriptor, @@ -1096,7 +1141,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SuccessfulAnalysisCount", "FailedAnalysisCount", }); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataRequest_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataRequest_descriptor, @@ -1119,7 +1164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "Dataset", "Table", }); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataMetadata_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataMetadata_descriptor, @@ -1127,13 +1172,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", "PartialErrors", }); internal_static_google_cloud_contactcenterinsights_v1_ExportInsightsDataResponse_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); 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(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelRequest_descriptor, @@ -1141,7 +1186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "IssueModel", }); internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreateIssueModelMetadata_descriptor, @@ -1149,7 +1194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueModelRequest_descriptor, @@ -1157,7 +1202,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IssueModel", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsRequest_descriptor, @@ -1165,7 +1210,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsResponse_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListIssueModelsResponse_descriptor, @@ -1173,7 +1218,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IssueModels", }); internal_static_google_cloud_contactcenterinsights_v1_GetIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_cloud_contactcenterinsights_v1_GetIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetIssueModelRequest_descriptor, @@ -1181,7 +1226,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(29); + getDescriptor().getMessageTypes().get(31); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelRequest_descriptor, @@ -1189,7 +1234,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelMetadata_descriptor = - getDescriptor().getMessageTypes().get(30); + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueModelMetadata_descriptor, @@ -1197,7 +1242,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", }); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(31); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelRequest_descriptor, @@ -1205,13 +1250,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelResponse_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(34); 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(33); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeployIssueModelMetadata_descriptor, @@ -1219,7 +1264,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", }); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelRequest_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelRequest_descriptor, @@ -1227,13 +1272,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelResponse_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(37); 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(36); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UndeployIssueModelMetadata_descriptor, @@ -1241,7 +1286,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "EndTime", "Request", }); internal_static_google_cloud_contactcenterinsights_v1_GetIssueRequest_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_contactcenterinsights_v1_GetIssueRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetIssueRequest_descriptor, @@ -1249,7 +1294,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_ListIssuesRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_contactcenterinsights_v1_ListIssuesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListIssuesRequest_descriptor, @@ -1257,7 +1302,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", }); internal_static_google_cloud_contactcenterinsights_v1_ListIssuesResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_contactcenterinsights_v1_ListIssuesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListIssuesResponse_descriptor, @@ -1265,7 +1310,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Issues", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(42); internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateIssueRequest_descriptor, @@ -1273,7 +1318,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Issue", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(43); internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeleteIssueRequest_descriptor, @@ -1281,7 +1326,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(44); internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsRequest_descriptor, @@ -1289,7 +1334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IssueModel", }); internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsResponse_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(45); internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CalculateIssueModelStatsResponse_descriptor, @@ -1297,7 +1342,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CurrentStats", }); internal_static_google_cloud_contactcenterinsights_v1_CreatePhraseMatcherRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(46); internal_static_google_cloud_contactcenterinsights_v1_CreatePhraseMatcherRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreatePhraseMatcherRequest_descriptor, @@ -1305,7 +1350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PhraseMatcher", }); internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(47); internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersRequest_descriptor, @@ -1313,7 +1358,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", }); internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersResponse_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(48); internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListPhraseMatchersResponse_descriptor, @@ -1321,7 +1366,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PhraseMatchers", "NextPageToken", }); internal_static_google_cloud_contactcenterinsights_v1_GetPhraseMatcherRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(49); internal_static_google_cloud_contactcenterinsights_v1_GetPhraseMatcherRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetPhraseMatcherRequest_descriptor, @@ -1329,7 +1374,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_DeletePhraseMatcherRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(50); internal_static_google_cloud_contactcenterinsights_v1_DeletePhraseMatcherRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DeletePhraseMatcherRequest_descriptor, @@ -1337,7 +1382,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_UpdatePhraseMatcherRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(51); internal_static_google_cloud_contactcenterinsights_v1_UpdatePhraseMatcherRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdatePhraseMatcherRequest_descriptor, @@ -1345,7 +1390,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PhraseMatcher", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_GetSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(52); internal_static_google_cloud_contactcenterinsights_v1_GetSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetSettingsRequest_descriptor, @@ -1353,7 +1398,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(53); internal_static_google_cloud_contactcenterinsights_v1_UpdateSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateSettingsRequest_descriptor, @@ -1361,7 +1406,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Settings", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_CreateViewRequest_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(54); internal_static_google_cloud_contactcenterinsights_v1_CreateViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_CreateViewRequest_descriptor, @@ -1369,7 +1414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "View", }); internal_static_google_cloud_contactcenterinsights_v1_GetViewRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(55); internal_static_google_cloud_contactcenterinsights_v1_GetViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_GetViewRequest_descriptor, @@ -1377,7 +1422,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_contactcenterinsights_v1_ListViewsRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(56); internal_static_google_cloud_contactcenterinsights_v1_ListViewsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListViewsRequest_descriptor, @@ -1385,7 +1430,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(57); internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ListViewsResponse_descriptor, @@ -1393,7 +1438,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Views", "NextPageToken", }); internal_static_google_cloud_contactcenterinsights_v1_UpdateViewRequest_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(58); internal_static_google_cloud_contactcenterinsights_v1_UpdateViewRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_UpdateViewRequest_descriptor, @@ -1401,7 +1446,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "View", "UpdateMask", }); internal_static_google_cloud_contactcenterinsights_v1_DeleteViewRequest_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(59); 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 b097fe8ce45f..8d849fbae8a5 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 @@ -479,7 +479,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=1129 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1146 * @return The dialogflowParticipant. */ @java.lang.Override @@ -508,7 +508,7 @@ public java.lang.String getDialogflowParticipant() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1129 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1146 * @return The bytes for dialogflowParticipant. */ @java.lang.Override @@ -1400,7 +1400,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=1129 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1146 * @return The dialogflowParticipant. */ @java.lang.Deprecated @@ -1428,7 +1428,7 @@ public java.lang.String getDialogflowParticipant() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1129 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1146 * @return The bytes for dialogflowParticipant. */ @java.lang.Deprecated @@ -1456,7 +1456,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=1129 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1146 * @param value The dialogflowParticipant to set. * @return This builder for chaining. */ @@ -1483,7 +1483,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=1129 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1146 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1506,7 +1506,7 @@ public Builder clearDialogflowParticipant() { * * @deprecated * google.cloud.contactcenterinsights.v1.ConversationParticipant.dialogflow_participant is - * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1129 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1146 * @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 fbea3401adee..35219268a6bc 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=1129 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1146 * @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=1129 + * deprecated. See google/cloud/contactcenterinsights/v1/resources.proto;l=1146 * @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/RedactionConfig.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/RedactionConfig.java new file mode 100644 index 000000000000..293cebae4176 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/RedactionConfig.java @@ -0,0 +1,840 @@ +/* + * 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; + +/** + * + * + *
+ * DLP resources used for redaction while ingesting conversations.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.RedactionConfig} + */ +public final class RedactionConfig extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.RedactionConfig) + RedactionConfigOrBuilder { + private static final long serialVersionUID = 0L; + // Use RedactionConfig.newBuilder() to construct. + private RedactionConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RedactionConfig() { + deidentifyTemplate_ = ""; + inspectTemplate_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RedactionConfig(); + } + + @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_RedactionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_RedactionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.RedactionConfig.class, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder.class); + } + + public static final int DEIDENTIFY_TEMPLATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object deidentifyTemplate_ = ""; + /** + * + * + *
+   * The fully-qualified DLP deidentify template resource name.
+   * Format:
+   * `projects/{project}/deidentifyTemplates/{template}`
+   * 
+ * + * string deidentify_template = 1; + * + * @return The deidentifyTemplate. + */ + @java.lang.Override + public java.lang.String getDeidentifyTemplate() { + java.lang.Object ref = deidentifyTemplate_; + 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(); + deidentifyTemplate_ = s; + return s; + } + } + /** + * + * + *
+   * The fully-qualified DLP deidentify template resource name.
+   * Format:
+   * `projects/{project}/deidentifyTemplates/{template}`
+   * 
+ * + * string deidentify_template = 1; + * + * @return The bytes for deidentifyTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeidentifyTemplateBytes() { + java.lang.Object ref = deidentifyTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deidentifyTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSPECT_TEMPLATE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object inspectTemplate_ = ""; + /** + * + * + *
+   * The fully-qualified DLP inspect template resource name.
+   * Format:
+   * `projects/{project}/inspectTemplates/{template}`
+   * 
+ * + * string inspect_template = 2; + * + * @return The inspectTemplate. + */ + @java.lang.Override + public java.lang.String getInspectTemplate() { + java.lang.Object ref = inspectTemplate_; + 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(); + inspectTemplate_ = s; + return s; + } + } + /** + * + * + *
+   * The fully-qualified DLP inspect template resource name.
+   * Format:
+   * `projects/{project}/inspectTemplates/{template}`
+   * 
+ * + * string inspect_template = 2; + * + * @return The bytes for inspectTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInspectTemplateBytes() { + java.lang.Object ref = inspectTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inspectTemplate_ = 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(deidentifyTemplate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deidentifyTemplate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inspectTemplate_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, inspectTemplate_); + } + 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(deidentifyTemplate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deidentifyTemplate_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(inspectTemplate_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, inspectTemplate_); + } + 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.RedactionConfig)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.RedactionConfig other = + (com.google.cloud.contactcenterinsights.v1.RedactionConfig) obj; + + if (!getDeidentifyTemplate().equals(other.getDeidentifyTemplate())) return false; + if (!getInspectTemplate().equals(other.getInspectTemplate())) 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) + DEIDENTIFY_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getDeidentifyTemplate().hashCode(); + hash = (37 * hash) + INSPECT_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getInspectTemplate().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.RedactionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.RedactionConfig 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.RedactionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.RedactionConfig 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.RedactionConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.RedactionConfig 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.RedactionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.RedactionConfig 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.RedactionConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.RedactionConfig 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.RedactionConfig 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.RedactionConfig 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.RedactionConfig 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; + } + /** + * + * + *
+   * DLP resources used for redaction while ingesting conversations.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.RedactionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.RedactionConfig) + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_RedactionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ResourcesProto + .internal_static_google_cloud_contactcenterinsights_v1_RedactionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.RedactionConfig.class, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder.class); + } + + // Construct using com.google.cloud.contactcenterinsights.v1.RedactionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + deidentifyTemplate_ = ""; + inspectTemplate_ = ""; + 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_RedactionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.RedactionConfig getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.RedactionConfig build() { + com.google.cloud.contactcenterinsights.v1.RedactionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.RedactionConfig buildPartial() { + com.google.cloud.contactcenterinsights.v1.RedactionConfig result = + new com.google.cloud.contactcenterinsights.v1.RedactionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.contactcenterinsights.v1.RedactionConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.deidentifyTemplate_ = deidentifyTemplate_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inspectTemplate_ = inspectTemplate_; + } + } + + @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.RedactionConfig) { + return mergeFrom((com.google.cloud.contactcenterinsights.v1.RedactionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.contactcenterinsights.v1.RedactionConfig other) { + if (other == com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance()) + return this; + if (!other.getDeidentifyTemplate().isEmpty()) { + deidentifyTemplate_ = other.deidentifyTemplate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInspectTemplate().isEmpty()) { + inspectTemplate_ = other.inspectTemplate_; + bitField0_ |= 0x00000002; + 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: + { + deidentifyTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + inspectTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object deidentifyTemplate_ = ""; + /** + * + * + *
+     * The fully-qualified DLP deidentify template resource name.
+     * Format:
+     * `projects/{project}/deidentifyTemplates/{template}`
+     * 
+ * + * string deidentify_template = 1; + * + * @return The deidentifyTemplate. + */ + public java.lang.String getDeidentifyTemplate() { + java.lang.Object ref = deidentifyTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deidentifyTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The fully-qualified DLP deidentify template resource name.
+     * Format:
+     * `projects/{project}/deidentifyTemplates/{template}`
+     * 
+ * + * string deidentify_template = 1; + * + * @return The bytes for deidentifyTemplate. + */ + public com.google.protobuf.ByteString getDeidentifyTemplateBytes() { + java.lang.Object ref = deidentifyTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deidentifyTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The fully-qualified DLP deidentify template resource name.
+     * Format:
+     * `projects/{project}/deidentifyTemplates/{template}`
+     * 
+ * + * string deidentify_template = 1; + * + * @param value The deidentifyTemplate to set. + * @return This builder for chaining. + */ + public Builder setDeidentifyTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deidentifyTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The fully-qualified DLP deidentify template resource name.
+     * Format:
+     * `projects/{project}/deidentifyTemplates/{template}`
+     * 
+ * + * string deidentify_template = 1; + * + * @return This builder for chaining. + */ + public Builder clearDeidentifyTemplate() { + deidentifyTemplate_ = getDefaultInstance().getDeidentifyTemplate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The fully-qualified DLP deidentify template resource name.
+     * Format:
+     * `projects/{project}/deidentifyTemplates/{template}`
+     * 
+ * + * string deidentify_template = 1; + * + * @param value The bytes for deidentifyTemplate to set. + * @return This builder for chaining. + */ + public Builder setDeidentifyTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deidentifyTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object inspectTemplate_ = ""; + /** + * + * + *
+     * The fully-qualified DLP inspect template resource name.
+     * Format:
+     * `projects/{project}/inspectTemplates/{template}`
+     * 
+ * + * string inspect_template = 2; + * + * @return The inspectTemplate. + */ + public java.lang.String getInspectTemplate() { + java.lang.Object ref = inspectTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inspectTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The fully-qualified DLP inspect template resource name.
+     * Format:
+     * `projects/{project}/inspectTemplates/{template}`
+     * 
+ * + * string inspect_template = 2; + * + * @return The bytes for inspectTemplate. + */ + public com.google.protobuf.ByteString getInspectTemplateBytes() { + java.lang.Object ref = inspectTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inspectTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The fully-qualified DLP inspect template resource name.
+     * Format:
+     * `projects/{project}/inspectTemplates/{template}`
+     * 
+ * + * string inspect_template = 2; + * + * @param value The inspectTemplate to set. + * @return This builder for chaining. + */ + public Builder setInspectTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inspectTemplate_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * The fully-qualified DLP inspect template resource name.
+     * Format:
+     * `projects/{project}/inspectTemplates/{template}`
+     * 
+ * + * string inspect_template = 2; + * + * @return This builder for chaining. + */ + public Builder clearInspectTemplate() { + inspectTemplate_ = getDefaultInstance().getInspectTemplate(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * The fully-qualified DLP inspect template resource name.
+     * Format:
+     * `projects/{project}/inspectTemplates/{template}`
+     * 
+ * + * string inspect_template = 2; + * + * @param value The bytes for inspectTemplate to set. + * @return This builder for chaining. + */ + public Builder setInspectTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inspectTemplate_ = value; + bitField0_ |= 0x00000002; + 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.RedactionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.RedactionConfig) + private static final com.google.cloud.contactcenterinsights.v1.RedactionConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.contactcenterinsights.v1.RedactionConfig(); + } + + public static com.google.cloud.contactcenterinsights.v1.RedactionConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RedactionConfig 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.RedactionConfig 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/RedactionConfigOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/RedactionConfigOrBuilder.java new file mode 100644 index 000000000000..941312636e4c --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/RedactionConfigOrBuilder.java @@ -0,0 +1,83 @@ +/* + * 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 RedactionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.RedactionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The fully-qualified DLP deidentify template resource name.
+   * Format:
+   * `projects/{project}/deidentifyTemplates/{template}`
+   * 
+ * + * string deidentify_template = 1; + * + * @return The deidentifyTemplate. + */ + java.lang.String getDeidentifyTemplate(); + /** + * + * + *
+   * The fully-qualified DLP deidentify template resource name.
+   * Format:
+   * `projects/{project}/deidentifyTemplates/{template}`
+   * 
+ * + * string deidentify_template = 1; + * + * @return The bytes for deidentifyTemplate. + */ + com.google.protobuf.ByteString getDeidentifyTemplateBytes(); + + /** + * + * + *
+   * The fully-qualified DLP inspect template resource name.
+   * Format:
+   * `projects/{project}/inspectTemplates/{template}`
+   * 
+ * + * string inspect_template = 2; + * + * @return The inspectTemplate. + */ + java.lang.String getInspectTemplate(); + /** + * + * + *
+   * The fully-qualified DLP inspect template resource name.
+   * Format:
+   * `projects/{project}/inspectTemplates/{template}`
+   * 
+ * + * string inspect_template = 2; + * + * @return The bytes for inspectTemplate. + */ + com.google.protobuf.ByteString getInspectTemplateBytes(); +} 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 eedd80316f78..78fbf697dff9 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 @@ -219,6 +219,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_contactcenterinsights_v1_Settings_PubsubNotificationSettingsEntry_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_cloud_contactcenterinsights_v1_Settings_PubsubNotificationSettingsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_contactcenterinsights_v1_RedactionConfig_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_contactcenterinsights_v1_RedactionConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_contactcenterinsights_v1_RuntimeAnnotation_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -536,7 +540,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "onfig\022U\n\022exact_match_config\030\001 \001(\01327.goog" + "le.cloud.contactcenterinsights.v1.ExactM" + "atchConfigH\000B\010\n\006config\"*\n\020ExactMatchConf" - + "ig\022\026\n\016case_sensitive\030\001 \001(\010\"\231\006\n\010Settings\022" + + "ig\022\026\n\016case_sensitive\030\001 \001(\010\"\353\006\n\010Settings\022" + "\021\n\004name\030\001 \001(\tB\003\340A\005\0224\n\013create_time\030\002 \001(\0132" + "\032.google.protobuf.TimestampB\003\340A\003\0224\n\013upda" + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam" @@ -547,109 +551,113 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".Settings.PubsubNotificationSettingsEntr" + "y\022W\n\017analysis_config\030\007 \001(\0132>.google.clou" + "d.contactcenterinsights.v1.Settings.Anal" - + "ysisConfig\032\310\001\n\016AnalysisConfig\022/\n\'runtime" - + "_integration_analysis_percentage\030\001 \001(\001\022/" - + "\n\'upload_conversation_analysis_percentag" - + "e\030\006 \001(\001\022T\n\022annotator_selector\030\005 \001(\01328.go" - + "ogle.cloud.contactcenterinsights.v1.Anno" - + "tatorSelector\032A\n\037PubsubNotificationSetti" - + "ngsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - + ":d\352Aa\n-contactcenterinsights.googleapis." - + "com/Settings\0220projects/{project}/locatio" - + "ns/{location}/settings\"\230\006\n\021RuntimeAnnota" - + "tion\022Z\n\022article_suggestion\030\006 \001(\0132<.googl" - + "e.cloud.contactcenterinsights.v1.Article" - + "SuggestionDataH\000\022J\n\nfaq_answer\030\007 \001(\01324.g" - + "oogle.cloud.contactcenterinsights.v1.Faq" - + "AnswerDataH\000\022L\n\013smart_reply\030\010 \001(\01325.goog" - + "le.cloud.contactcenterinsights.v1.SmartR" - + "eplyDataH\000\022e\n\030smart_compose_suggestion\030\t" - + " \001(\0132A.google.cloud.contactcenterinsight" - + "s.v1.SmartComposeSuggestionDataH\000\022b\n\026dia" - + "logflow_interaction\030\n \001(\0132@.google.cloud" - + ".contactcenterinsights.v1.DialogflowInte" - + "ractionDataH\000\022\025\n\rannotation_id\030\001 \001(\t\022/\n\013" - + "create_time\030\002 \001(\0132\032.google.protobuf.Time" - + "stamp\022Q\n\016start_boundary\030\003 \001(\01329.google.c" - + "loud.contactcenterinsights.v1.Annotation" - + "Boundary\022O\n\014end_boundary\030\004 \001(\01329.google." - + "cloud.contactcenterinsights.v1.Annotatio" - + "nBoundary\022N\n\017answer_feedback\030\005 \001(\01325.goo" - + "gle.cloud.contactcenterinsights.v1.Answe" - + "rFeedbackB\006\n\004data\"\211\002\n\016AnswerFeedback\022a\n\021" - + "correctness_level\030\001 \001(\0162F.google.cloud.c" - + "ontactcenterinsights.v1.AnswerFeedback.C" - + "orrectnessLevel\022\017\n\007clicked\030\002 \001(\010\022\021\n\tdisp" - + "layed\030\003 \001(\010\"p\n\020CorrectnessLevel\022!\n\035CORRE" - + "CTNESS_LEVEL_UNSPECIFIED\020\000\022\017\n\013NOT_CORREC" - + "T\020\001\022\025\n\021PARTIALLY_CORRECT\020\002\022\021\n\rFULLY_CORR" - + "ECT\020\003\"\202\002\n\025ArticleSuggestionData\022\r\n\005title" - + "\030\001 \001(\t\022\013\n\003uri\030\002 \001(\t\022\030\n\020confidence_score\030" - + "\003 \001(\002\022\\\n\010metadata\030\004 \003(\0132J.google.cloud.c" - + "ontactcenterinsights.v1.ArticleSuggestio" - + "nData.MetadataEntry\022\024\n\014query_record\030\005 \001(" - + "\t\022\016\n\006source\030\006 \001(\t\032/\n\rMetadataEntry\022\013\n\003ke" - + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\370\001\n\rFaqAnswer" - + "Data\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.contactcenterinsights." - + "v1.FaqAnswerData.MetadataEntry\022\024\n\014query_" - + "record\030\005 \001(\t\022\016\n\006source\030\006 \001(\t\032/\n\rMetadata" - + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\327\001" - + "\n\016SmartReplyData\022\r\n\005reply\030\001 \001(\t\022\030\n\020confi" - + "dence_score\030\002 \001(\001\022U\n\010metadata\030\003 \003(\0132C.go" - + "ogle.cloud.contactcenterinsights.v1.Smar" - + "tReplyData.MetadataEntry\022\024\n\014query_record" - + "\030\004 \001(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - + "value\030\002 \001(\t:\0028\001\"\364\001\n\032SmartComposeSuggesti" - + "onData\022\022\n\nsuggestion\030\001 \001(\t\022\030\n\020confidence" - + "_score\030\002 \001(\001\022a\n\010metadata\030\003 \003(\0132O.google." - + "cloud.contactcenterinsights.v1.SmartComp" - + "oseSuggestionData.MetadataEntry\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\"M\n\031DialogflowInte" - + "ractionData\022\034\n\024dialogflow_intent_id\030\001 \001(" - + "\t\022\022\n\nconfidence\030\002 \001(\002\"\213\003\n\027ConversationPa" - + "rticipant\022Q\n\033dialogflow_participant_name" - + "\030\005 \001(\tB*\372A\'\n%dialogflow.googleapis.com/P" - + "articipantH\000\022\021\n\007user_id\030\006 \001(\tH\000\022\"\n\026dialo" - + "gflow_participant\030\001 \001(\tB\002\030\001\022#\n\033obfuscate" - + "d_external_user_id\030\003 \001(\t\022Q\n\004role\030\002 \001(\0162C" - + ".google.cloud.contactcenterinsights.v1.C" - + "onversationParticipant.Role\"_\n\004Role\022\024\n\020R" - + "OLE_UNSPECIFIED\020\000\022\017\n\013HUMAN_AGENT\020\001\022\023\n\017AU" - + "TOMATED_AGENT\020\002\022\014\n\010END_USER\020\003\022\r\n\tANY_AGE" - + "NT\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.protobuf.TimestampB\003" - + "\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.protob" - + "uf.TimestampB\003\340A\003\022\r\n\005value\030\005 \001(\t:d\352Aa\n)c" - + "ontactcenterinsights.googleapis.com/View" - + "\0224projects/{project}/locations/{location" - + "}/views/{view}\"\232\003\n\021AnnotatorSelector\022\"\n\032" - + "run_interruption_annotator\030\001 \001(\010\022\035\n\025run_" - + "silence_annotator\030\002 \001(\010\022$\n\034run_phrase_ma" - + "tcher_annotator\030\003 \001(\010\022P\n\017phrase_matchers" - + "\030\004 \003(\tB7\372A4\n2contactcenterinsights.googl" - + "eapis.com/PhraseMatcher\022\037\n\027run_sentiment" - + "_annotator\030\005 \001(\010\022\034\n\024run_entity_annotator" - + "\030\006 \001(\010\022\034\n\024run_intent_annotator\030\007 \001(\010\022!\n\031" - + "run_issue_model_annotator\030\010 \001(\010\022J\n\014issue" - + "_models\030\n \003(\tB4\372A1\n/contactcenterinsight" - + "s.googleapis.com/IssueModelB\361\003\n)com.goog" - + "le.cloud.contactcenterinsights.v1B\016Resou" - + "rcesProtoP\001Z_cloud.google.com/go/contact" - + "centerinsights/apiv1/contactcenterinsigh" - + "tspb;contactcenterinsightspb\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" + + "ysisConfig\022P\n\020redaction_config\030\n \001(\01326.g" + + "oogle.cloud.contactcenterinsights.v1.Red" + + "actionConfig\032\310\001\n\016AnalysisConfig\022/\n\'runti" + + "me_integration_analysis_percentage\030\001 \001(\001" + + "\022/\n\'upload_conversation_analysis_percent" + + "age\030\006 \001(\001\022T\n\022annotator_selector\030\005 \001(\01328." + + "google.cloud.contactcenterinsights.v1.An" + + "notatorSelector\032A\n\037PubsubNotificationSet" + + "tingsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001:d\352Aa\n-contactcenterinsights.googleapi" + + "s.com/Settings\0220projects/{project}/locat" + + "ions/{location}/settings\"H\n\017RedactionCon" + + "fig\022\033\n\023deidentify_template\030\001 \001(\t\022\030\n\020insp" + + "ect_template\030\002 \001(\t\"\230\006\n\021RuntimeAnnotation" + + "\022Z\n\022article_suggestion\030\006 \001(\0132<.google.cl" + + "oud.contactcenterinsights.v1.ArticleSugg" + + "estionDataH\000\022J\n\nfaq_answer\030\007 \001(\01324.googl" + + "e.cloud.contactcenterinsights.v1.FaqAnsw" + + "erDataH\000\022L\n\013smart_reply\030\010 \001(\01325.google.c" + + "loud.contactcenterinsights.v1.SmartReply" + + "DataH\000\022e\n\030smart_compose_suggestion\030\t \001(\013" + + "2A.google.cloud.contactcenterinsights.v1" + + ".SmartComposeSuggestionDataH\000\022b\n\026dialogf" + + "low_interaction\030\n \001(\0132@.google.cloud.con" + + "tactcenterinsights.v1.DialogflowInteract" + + "ionDataH\000\022\025\n\rannotation_id\030\001 \001(\t\022/\n\013crea" + + "te_time\030\002 \001(\0132\032.google.protobuf.Timestam" + + "p\022Q\n\016start_boundary\030\003 \001(\01329.google.cloud" + + ".contactcenterinsights.v1.AnnotationBoun" + + "dary\022O\n\014end_boundary\030\004 \001(\01329.google.clou" + + "d.contactcenterinsights.v1.AnnotationBou" + + "ndary\022N\n\017answer_feedback\030\005 \001(\01325.google." + + "cloud.contactcenterinsights.v1.AnswerFee" + + "dbackB\006\n\004data\"\211\002\n\016AnswerFeedback\022a\n\021corr" + + "ectness_level\030\001 \001(\0162F.google.cloud.conta" + + "ctcenterinsights.v1.AnswerFeedback.Corre" + + "ctnessLevel\022\017\n\007clicked\030\002 \001(\010\022\021\n\tdisplaye" + + "d\030\003 \001(\010\"p\n\020CorrectnessLevel\022!\n\035CORRECTNE" + + "SS_LEVEL_UNSPECIFIED\020\000\022\017\n\013NOT_CORRECT\020\001\022" + + "\025\n\021PARTIALLY_CORRECT\020\002\022\021\n\rFULLY_CORRECT\020" + + "\003\"\202\002\n\025ArticleSuggestionData\022\r\n\005title\030\001 \001" + + "(\t\022\013\n\003uri\030\002 \001(\t\022\030\n\020confidence_score\030\003 \001(" + + "\002\022\\\n\010metadata\030\004 \003(\0132J.google.cloud.conta" + + "ctcenterinsights.v1.ArticleSuggestionDat" + + "a.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\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.contactcenterinsights.v1.F" + + "aqAnswerData.MetadataEntry\022\024\n\014query_reco" + + "rd\030\005 \001(\t\022\016\n\006source\030\006 \001(\t\032/\n\rMetadataEntr" + + "y\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\327\001\n\016Sm" + + "artReplyData\022\r\n\005reply\030\001 \001(\t\022\030\n\020confidenc" + + "e_score\030\002 \001(\001\022U\n\010metadata\030\003 \003(\0132C.google" + + ".cloud.contactcenterinsights.v1.SmartRep" + + "lyData.MetadataEntry\022\024\n\014query_record\030\004 \001" + + "(\t\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"\364\001\n\032SmartComposeSuggestionDa" + + "ta\022\022\n\nsuggestion\030\001 \001(\t\022\030\n\020confidence_sco" + + "re\030\002 \001(\001\022a\n\010metadata\030\003 \003(\0132O.google.clou" + + "d.contactcenterinsights.v1.SmartComposeS" + + "uggestionData.MetadataEntry\022\024\n\014query_rec" + + "ord\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\"M\n\031DialogflowInteract" + + "ionData\022\034\n\024dialogflow_intent_id\030\001 \001(\t\022\022\n" + + "\nconfidence\030\002 \001(\002\"\213\003\n\027ConversationPartic" + + "ipant\022Q\n\033dialogflow_participant_name\030\005 \001" + + "(\tB*\372A\'\n%dialogflow.googleapis.com/Parti" + + "cipantH\000\022\021\n\007user_id\030\006 \001(\tH\000\022\"\n\026dialogflo" + + "w_participant\030\001 \001(\tB\002\030\001\022#\n\033obfuscated_ex" + + "ternal_user_id\030\003 \001(\t\022Q\n\004role\030\002 \001(\0162C.goo" + + "gle.cloud.contactcenterinsights.v1.Conve" + + "rsationParticipant.Role\"_\n\004Role\022\024\n\020ROLE_" + + "UNSPECIFIED\020\000\022\017\n\013HUMAN_AGENT\020\001\022\023\n\017AUTOMA" + + "TED_AGENT\020\002\022\014\n\010END_USER\020\003\022\r\n\tANY_AGENT\020\004" + + "B\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.protobuf.TimestampB\003\340A\003\022" + + "4\n\013update_time\030\004 \001(\0132\032.google.protobuf.T" + + "imestampB\003\340A\003\022\r\n\005value\030\005 \001(\t:d\352Aa\n)conta" + + "ctcenterinsights.googleapis.com/View\0224pr" + + "ojects/{project}/locations/{location}/vi" + + "ews/{view}\"\232\003\n\021AnnotatorSelector\022\"\n\032run_" + + "interruption_annotator\030\001 \001(\010\022\035\n\025run_sile" + + "nce_annotator\030\002 \001(\010\022$\n\034run_phrase_matche" + + "r_annotator\030\003 \001(\010\022P\n\017phrase_matchers\030\004 \003" + + "(\tB7\372A4\n2contactcenterinsights.googleapi" + + "s.com/PhraseMatcher\022\037\n\027run_sentiment_ann" + + "otator\030\005 \001(\010\022\034\n\024run_entity_annotator\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\014issue_mod" + + "els\030\n \003(\tB4\372A1\n/contactcenterinsights.go" + + "ogleapis.com/IssueModelB\361\003\n)com.google.c" + + "loud.contactcenterinsights.v1B\016Resources" + + "ProtoP\001Z_cloud.google.com/go/contactcent" + + "erinsights/apiv1/contactcenterinsightspb" + + ";contactcenterinsightspb\252\002%Google.Cloud." + + "ContactCenterInsights.V1\312\002%Google\\Cloud\\" + + "ContactCenterInsights\\V1\352\002(Google::Cloud" + + "::ContactCenterInsights::V1\352A\324\001\n%dialogf" + + "low.googleapis.com/Participant\022Jprojects" + + "/{project}/conversations/{conversation}/" + + "participants/{participant}\022_projects/{pr" + + "oject}/locations/{location}/conversation" + + "s/{conversation}/participants/{participa" + + "nt}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1118,6 +1126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationTtl", "PubsubNotificationSettings", "AnalysisConfig", + "RedactionConfig", }); internal_static_google_cloud_contactcenterinsights_v1_Settings_AnalysisConfig_descriptor = internal_static_google_cloud_contactcenterinsights_v1_Settings_descriptor @@ -1141,8 +1150,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_contactcenterinsights_v1_RuntimeAnnotation_descriptor = + internal_static_google_cloud_contactcenterinsights_v1_RedactionConfig_descriptor = getDescriptor().getMessageTypes().get(31); + internal_static_google_cloud_contactcenterinsights_v1_RedactionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_contactcenterinsights_v1_RedactionConfig_descriptor, + new java.lang.String[] { + "DeidentifyTemplate", "InspectTemplate", + }); + internal_static_google_cloud_contactcenterinsights_v1_RuntimeAnnotation_descriptor = + getDescriptor().getMessageTypes().get(32); internal_static_google_cloud_contactcenterinsights_v1_RuntimeAnnotation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_RuntimeAnnotation_descriptor, @@ -1160,7 +1177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Data", }); internal_static_google_cloud_contactcenterinsights_v1_AnswerFeedback_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_google_cloud_contactcenterinsights_v1_AnswerFeedback_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_AnswerFeedback_descriptor, @@ -1168,7 +1185,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CorrectnessLevel", "Clicked", "Displayed", }); internal_static_google_cloud_contactcenterinsights_v1_ArticleSuggestionData_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_google_cloud_contactcenterinsights_v1_ArticleSuggestionData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ArticleSuggestionData_descriptor, @@ -1186,7 +1203,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_contactcenterinsights_v1_FaqAnswerData_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_google_cloud_contactcenterinsights_v1_FaqAnswerData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_FaqAnswerData_descriptor, @@ -1204,7 +1221,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_contactcenterinsights_v1_SmartReplyData_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_google_cloud_contactcenterinsights_v1_SmartReplyData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_SmartReplyData_descriptor, @@ -1222,7 +1239,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_contactcenterinsights_v1_SmartComposeSuggestionData_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_google_cloud_contactcenterinsights_v1_SmartComposeSuggestionData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_SmartComposeSuggestionData_descriptor, @@ -1240,7 +1257,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_contactcenterinsights_v1_DialogflowInteractionData_descriptor = - getDescriptor().getMessageTypes().get(37); + getDescriptor().getMessageTypes().get(38); internal_static_google_cloud_contactcenterinsights_v1_DialogflowInteractionData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_DialogflowInteractionData_descriptor, @@ -1248,7 +1265,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DialogflowIntentId", "Confidence", }); internal_static_google_cloud_contactcenterinsights_v1_ConversationParticipant_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(39); internal_static_google_cloud_contactcenterinsights_v1_ConversationParticipant_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_ConversationParticipant_descriptor, @@ -1261,7 +1278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Participant", }); internal_static_google_cloud_contactcenterinsights_v1_View_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(40); internal_static_google_cloud_contactcenterinsights_v1_View_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_View_descriptor, @@ -1269,7 +1286,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "DisplayName", "CreateTime", "UpdateTime", "Value", }); internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(41); internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_cloud_contactcenterinsights_v1_AnnotatorSelector_descriptor, 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 a623bc1572f3..7bc89fc1927d 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 @@ -1573,6 +1573,60 @@ public com.google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig getAnal : analysisConfig_; } + public static final int REDACTION_CONFIG_FIELD_NUMBER = 10; + private com.google.cloud.contactcenterinsights.v1.RedactionConfig redactionConfig_; + /** + * + * + *
+   * Default DLP redaction resources to be applied while ingesting
+   * conversations.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + * + * @return Whether the redactionConfig field is set. + */ + @java.lang.Override + public boolean hasRedactionConfig() { + return redactionConfig_ != null; + } + /** + * + * + *
+   * Default DLP redaction resources to be applied while ingesting
+   * conversations.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + * + * @return The redactionConfig. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.RedactionConfig getRedactionConfig() { + return redactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } + /** + * + * + *
+   * Default DLP redaction resources to be applied while ingesting
+   * conversations.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder + getRedactionConfigOrBuilder() { + return redactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1610,6 +1664,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (analysisConfig_ != null) { output.writeMessage(7, getAnalysisConfig()); } + if (redactionConfig_ != null) { + output.writeMessage(10, getRedactionConfig()); + } getUnknownFields().writeTo(output); } @@ -1649,6 +1706,9 @@ public int getSerializedSize() { if (analysisConfig_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAnalysisConfig()); } + if (redactionConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getRedactionConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1685,6 +1745,10 @@ public boolean equals(final java.lang.Object obj) { if (hasAnalysisConfig()) { if (!getAnalysisConfig().equals(other.getAnalysisConfig())) return false; } + if (hasRedactionConfig() != other.hasRedactionConfig()) return false; + if (hasRedactionConfig()) { + if (!getRedactionConfig().equals(other.getRedactionConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1720,6 +1784,10 @@ public int hashCode() { hash = (37 * hash) + ANALYSIS_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAnalysisConfig().hashCode(); } + if (hasRedactionConfig()) { + hash = (37 * hash) + REDACTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRedactionConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1902,6 +1970,11 @@ public Builder clear() { analysisConfigBuilder_.dispose(); analysisConfigBuilder_ = null; } + redactionConfig_ = null; + if (redactionConfigBuilder_ != null) { + redactionConfigBuilder_.dispose(); + redactionConfigBuilder_ = null; + } return this; } @@ -1962,6 +2035,10 @@ private void buildPartial0(com.google.cloud.contactcenterinsights.v1.Settings re result.analysisConfig_ = analysisConfigBuilder_ == null ? analysisConfig_ : analysisConfigBuilder_.build(); } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.redactionConfig_ = + redactionConfigBuilder_ == null ? redactionConfig_ : redactionConfigBuilder_.build(); + } } @java.lang.Override @@ -2035,6 +2112,9 @@ public Builder mergeFrom(com.google.cloud.contactcenterinsights.v1.Settings othe if (other.hasAnalysisConfig()) { mergeAnalysisConfig(other.getAnalysisConfig()); } + if (other.hasRedactionConfig()) { + mergeRedactionConfig(other.getRedactionConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2113,6 +2193,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 82: + { + input.readMessage(getRedactionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3424,6 +3510,204 @@ public Builder clearAnalysisConfig() { return analysisConfigBuilder_; } + private com.google.cloud.contactcenterinsights.v1.RedactionConfig redactionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.RedactionConfig, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder, + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder> + redactionConfigBuilder_; + /** + * + * + *
+     * Default DLP redaction resources to be applied while ingesting
+     * conversations.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + * + * @return Whether the redactionConfig field is set. + */ + public boolean hasRedactionConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * + * + *
+     * Default DLP redaction resources to be applied while ingesting
+     * conversations.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + * + * @return The redactionConfig. + */ + public com.google.cloud.contactcenterinsights.v1.RedactionConfig getRedactionConfig() { + if (redactionConfigBuilder_ == null) { + return redactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } else { + return redactionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Default DLP redaction resources to be applied while ingesting
+     * conversations.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + */ + public Builder setRedactionConfig( + com.google.cloud.contactcenterinsights.v1.RedactionConfig value) { + if (redactionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + redactionConfig_ = value; + } else { + redactionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Default DLP redaction resources to be applied while ingesting
+     * conversations.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + */ + public Builder setRedactionConfig( + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder builderForValue) { + if (redactionConfigBuilder_ == null) { + redactionConfig_ = builderForValue.build(); + } else { + redactionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Default DLP redaction resources to be applied while ingesting
+     * conversations.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + */ + public Builder mergeRedactionConfig( + com.google.cloud.contactcenterinsights.v1.RedactionConfig value) { + if (redactionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && redactionConfig_ != null + && redactionConfig_ + != com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance()) { + getRedactionConfigBuilder().mergeFrom(value); + } else { + redactionConfig_ = value; + } + } else { + redactionConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * + * + *
+     * Default DLP redaction resources to be applied while ingesting
+     * conversations.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + */ + public Builder clearRedactionConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + redactionConfig_ = null; + if (redactionConfigBuilder_ != null) { + redactionConfigBuilder_.dispose(); + redactionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Default DLP redaction resources to be applied while ingesting
+     * conversations.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + */ + public com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder + getRedactionConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getRedactionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Default DLP redaction resources to be applied while ingesting
+     * conversations.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + */ + public com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder + getRedactionConfigOrBuilder() { + if (redactionConfigBuilder_ != null) { + return redactionConfigBuilder_.getMessageOrBuilder(); + } else { + return redactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } + } + /** + * + * + *
+     * Default DLP redaction resources to be applied while ingesting
+     * conversations.
+     * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.RedactionConfig, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder, + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder> + getRedactionConfigFieldBuilder() { + if (redactionConfigBuilder_ == null) { + redactionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.RedactionConfig, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder, + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder>( + getRedactionConfig(), getParentForChildren(), isClean()); + redactionConfig_ = null; + } + return redactionConfigBuilder_; + } + @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/SettingsOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/SettingsOrBuilder.java index 14884966b302..4bbeaf81d443 100644 --- a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/SettingsOrBuilder.java +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/SettingsOrBuilder.java @@ -352,4 +352,42 @@ java.lang.String getPubsubNotificationSettingsOrDefault( */ com.google.cloud.contactcenterinsights.v1.Settings.AnalysisConfigOrBuilder getAnalysisConfigOrBuilder(); + + /** + * + * + *
+   * Default DLP redaction resources to be applied while ingesting
+   * conversations.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + * + * @return Whether the redactionConfig field is set. + */ + boolean hasRedactionConfig(); + /** + * + * + *
+   * Default DLP redaction resources to be applied while ingesting
+   * conversations.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + * + * @return The redactionConfig. + */ + com.google.cloud.contactcenterinsights.v1.RedactionConfig getRedactionConfig(); + /** + * + * + *
+   * Default DLP redaction resources to be applied while ingesting
+   * conversations.
+   * 
+ * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 10; + */ + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder getRedactionConfigOrBuilder(); } diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/UploadConversationMetadata.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/UploadConversationMetadata.java new file mode 100644 index 000000000000..9a3923bdba89 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/UploadConversationMetadata.java @@ -0,0 +1,1796 @@ +/* + * 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 UploadConversation operation.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.UploadConversationMetadata} + */ +public final class UploadConversationMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.UploadConversationMetadata) + UploadConversationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UploadConversationMetadata.newBuilder() to construct. + private UploadConversationMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UploadConversationMetadata() { + analysisOperation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UploadConversationMetadata(); + } + + @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_UploadConversationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_UploadConversationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata.class, + com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata.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 createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + 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 endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int REQUEST_FIELD_NUMBER = 3; + private com.google.cloud.contactcenterinsights.v1.UploadConversationRequest request_; + /** + * + * + *
+   * Output only. The original request.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest 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.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The request. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.UploadConversationRequest getRequest() { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.getDefaultInstance() + : request_; + } + /** + * + * + *
+   * Output only. The original request.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.UploadConversationRequestOrBuilder + getRequestOrBuilder() { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.getDefaultInstance() + : request_; + } + + public static final int ANALYSIS_OPERATION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object analysisOperation_ = ""; + /** + * + * + *
+   * Output only. The operation name for a successfully created analysis
+   * operation, if any.
+   * 
+ * + * string analysis_operation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The analysisOperation. + */ + @java.lang.Override + public java.lang.String getAnalysisOperation() { + java.lang.Object ref = analysisOperation_; + 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(); + analysisOperation_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The operation name for a successfully created analysis
+   * operation, if any.
+   * 
+ * + * string analysis_operation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for analysisOperation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnalysisOperationBytes() { + java.lang.Object ref = analysisOperation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + analysisOperation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLIED_REDACTION_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.contactcenterinsights.v1.RedactionConfig appliedRedactionConfig_; + /** + * + * + *
+   * Output only. The redaction config applied to the uploaded conversation.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the appliedRedactionConfig field is set. + */ + @java.lang.Override + public boolean hasAppliedRedactionConfig() { + return appliedRedactionConfig_ != null; + } + /** + * + * + *
+   * Output only. The redaction config applied to the uploaded conversation.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedRedactionConfig. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.RedactionConfig getAppliedRedactionConfig() { + return appliedRedactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : appliedRedactionConfig_; + } + /** + * + * + *
+   * Output only. The redaction config applied to the uploaded conversation.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder + getAppliedRedactionConfigOrBuilder() { + return appliedRedactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : appliedRedactionConfig_; + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analysisOperation_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, analysisOperation_); + } + if (appliedRedactionConfig_ != null) { + output.writeMessage(5, getAppliedRedactionConfig()); + } + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analysisOperation_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, analysisOperation_); + } + if (appliedRedactionConfig_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAppliedRedactionConfig()); + } + 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.UploadConversationMetadata)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata other = + (com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata) 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 (!getAnalysisOperation().equals(other.getAnalysisOperation())) return false; + if (hasAppliedRedactionConfig() != other.hasAppliedRedactionConfig()) return false; + if (hasAppliedRedactionConfig()) { + if (!getAppliedRedactionConfig().equals(other.getAppliedRedactionConfig())) 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) + ANALYSIS_OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getAnalysisOperation().hashCode(); + if (hasAppliedRedactionConfig()) { + hash = (37 * hash) + APPLIED_REDACTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAppliedRedactionConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata 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.UploadConversationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata 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.UploadConversationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata 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.UploadConversationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata 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.UploadConversationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata + 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.UploadConversationMetadata 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.UploadConversationMetadata 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.UploadConversationMetadata 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 UploadConversation operation.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.UploadConversationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.UploadConversationMetadata) + com.google.cloud.contactcenterinsights.v1.UploadConversationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_UploadConversationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_UploadConversationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata.class, + com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata.Builder.class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + request_ = null; + if (requestBuilder_ != null) { + requestBuilder_.dispose(); + requestBuilder_ = null; + } + analysisOperation_ = ""; + appliedRedactionConfig_ = null; + if (appliedRedactionConfigBuilder_ != null) { + appliedRedactionConfigBuilder_.dispose(); + appliedRedactionConfigBuilder_ = 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_UploadConversationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata build() { + com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata buildPartial() { + com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata result = + new com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.request_ = requestBuilder_ == null ? request_ : requestBuilder_.build(); + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.analysisOperation_ = analysisOperation_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.appliedRedactionConfig_ = + appliedRedactionConfigBuilder_ == null + ? appliedRedactionConfig_ + : appliedRedactionConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata other) { + if (other + == com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata + .getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (other.hasRequest()) { + mergeRequest(other.getRequest()); + } + if (!other.getAnalysisOperation().isEmpty()) { + analysisOperation_ = other.analysisOperation_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasAppliedRedactionConfig()) { + mergeAppliedRedactionConfig(other.getAppliedRedactionConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getRequestFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + analysisOperation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + getAppliedRedactionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * 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; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + 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(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + 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 (((bitField0_ & 0x00000001) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000001); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000001; + 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 ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * 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; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + 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(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + 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 (((bitField0_ & 0x00000002) != 0) + && endTime_ != null + && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The time the operation finished running.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + 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() { + bitField0_ |= 0x00000002; + 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.UploadConversationRequest request_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest, + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.Builder, + com.google.cloud.contactcenterinsights.v1.UploadConversationRequestOrBuilder> + requestBuilder_; + /** + * + * + *
+     * Output only. The original request.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the request field is set. + */ + public boolean hasRequest() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * Output only. The original request.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The request. + */ + public com.google.cloud.contactcenterinsights.v1.UploadConversationRequest getRequest() { + if (requestBuilder_ == null) { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.UploadConversationRequest + .getDefaultInstance() + : request_; + } else { + return requestBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The original request.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRequest( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest value) { + if (requestBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + request_ = value; + } else { + requestBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The original request.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRequest( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.Builder + builderForValue) { + if (requestBuilder_ == null) { + request_ = builderForValue.build(); + } else { + requestBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The original request.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRequest( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest value) { + if (requestBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && request_ != null + && request_ + != com.google.cloud.contactcenterinsights.v1.UploadConversationRequest + .getDefaultInstance()) { + getRequestBuilder().mergeFrom(value); + } else { + request_ = value; + } + } else { + requestBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The original request.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRequest() { + bitField0_ = (bitField0_ & ~0x00000004); + request_ = null; + if (requestBuilder_ != null) { + requestBuilder_.dispose(); + requestBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The original request.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.Builder + getRequestBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getRequestFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The original request.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.contactcenterinsights.v1.UploadConversationRequestOrBuilder + getRequestOrBuilder() { + if (requestBuilder_ != null) { + return requestBuilder_.getMessageOrBuilder(); + } else { + return request_ == null + ? com.google.cloud.contactcenterinsights.v1.UploadConversationRequest + .getDefaultInstance() + : request_; + } + } + /** + * + * + *
+     * Output only. The original request.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest, + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.Builder, + com.google.cloud.contactcenterinsights.v1.UploadConversationRequestOrBuilder> + getRequestFieldBuilder() { + if (requestBuilder_ == null) { + requestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest, + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.Builder, + com.google.cloud.contactcenterinsights.v1.UploadConversationRequestOrBuilder>( + getRequest(), getParentForChildren(), isClean()); + request_ = null; + } + return requestBuilder_; + } + + private java.lang.Object analysisOperation_ = ""; + /** + * + * + *
+     * Output only. The operation name for a successfully created analysis
+     * operation, if any.
+     * 
+ * + * string analysis_operation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The analysisOperation. + */ + public java.lang.String getAnalysisOperation() { + java.lang.Object ref = analysisOperation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + analysisOperation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The operation name for a successfully created analysis
+     * operation, if any.
+     * 
+ * + * string analysis_operation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for analysisOperation. + */ + public com.google.protobuf.ByteString getAnalysisOperationBytes() { + java.lang.Object ref = analysisOperation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + analysisOperation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The operation name for a successfully created analysis
+     * operation, if any.
+     * 
+ * + * string analysis_operation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The analysisOperation to set. + * @return This builder for chaining. + */ + public Builder setAnalysisOperation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + analysisOperation_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The operation name for a successfully created analysis
+     * operation, if any.
+     * 
+ * + * string analysis_operation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAnalysisOperation() { + analysisOperation_ = getDefaultInstance().getAnalysisOperation(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The operation name for a successfully created analysis
+     * operation, if any.
+     * 
+ * + * string analysis_operation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for analysisOperation to set. + * @return This builder for chaining. + */ + public Builder setAnalysisOperationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + analysisOperation_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.cloud.contactcenterinsights.v1.RedactionConfig appliedRedactionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.RedactionConfig, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder, + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder> + appliedRedactionConfigBuilder_; + /** + * + * + *
+     * Output only. The redaction config applied to the uploaded conversation.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the appliedRedactionConfig field is set. + */ + public boolean hasAppliedRedactionConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * Output only. The redaction config applied to the uploaded conversation.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedRedactionConfig. + */ + public com.google.cloud.contactcenterinsights.v1.RedactionConfig getAppliedRedactionConfig() { + if (appliedRedactionConfigBuilder_ == null) { + return appliedRedactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : appliedRedactionConfig_; + } else { + return appliedRedactionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The redaction config applied to the uploaded conversation.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAppliedRedactionConfig( + com.google.cloud.contactcenterinsights.v1.RedactionConfig value) { + if (appliedRedactionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + appliedRedactionConfig_ = value; + } else { + appliedRedactionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The redaction config applied to the uploaded conversation.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAppliedRedactionConfig( + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder builderForValue) { + if (appliedRedactionConfigBuilder_ == null) { + appliedRedactionConfig_ = builderForValue.build(); + } else { + appliedRedactionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The redaction config applied to the uploaded conversation.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAppliedRedactionConfig( + com.google.cloud.contactcenterinsights.v1.RedactionConfig value) { + if (appliedRedactionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && appliedRedactionConfig_ != null + && appliedRedactionConfig_ + != com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance()) { + getAppliedRedactionConfigBuilder().mergeFrom(value); + } else { + appliedRedactionConfig_ = value; + } + } else { + appliedRedactionConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The redaction config applied to the uploaded conversation.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAppliedRedactionConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + appliedRedactionConfig_ = null; + if (appliedRedactionConfigBuilder_ != null) { + appliedRedactionConfigBuilder_.dispose(); + appliedRedactionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The redaction config applied to the uploaded conversation.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder + getAppliedRedactionConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getAppliedRedactionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The redaction config applied to the uploaded conversation.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder + getAppliedRedactionConfigOrBuilder() { + if (appliedRedactionConfigBuilder_ != null) { + return appliedRedactionConfigBuilder_.getMessageOrBuilder(); + } else { + return appliedRedactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : appliedRedactionConfig_; + } + } + /** + * + * + *
+     * Output only. The redaction config applied to the uploaded conversation.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.RedactionConfig, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder, + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder> + getAppliedRedactionConfigFieldBuilder() { + if (appliedRedactionConfigBuilder_ == null) { + appliedRedactionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.RedactionConfig, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder, + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder>( + getAppliedRedactionConfig(), getParentForChildren(), isClean()); + appliedRedactionConfig_ = null; + } + return appliedRedactionConfigBuilder_; + } + + @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.UploadConversationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.UploadConversationMetadata) + private static final com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata(); + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UploadConversationMetadata 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.UploadConversationMetadata + 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/UploadConversationMetadataOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/UploadConversationMetadataOrBuilder.java new file mode 100644 index 000000000000..41d8ff6f9a75 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/UploadConversationMetadataOrBuilder.java @@ -0,0 +1,212 @@ +/* + * 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 UploadConversationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.UploadConversationMetadata) + 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.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the request field is set. + */ + boolean hasRequest(); + /** + * + * + *
+   * Output only. The original request.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The request. + */ + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest getRequest(); + /** + * + * + *
+   * Output only. The original request.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.UploadConversationRequest request = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.contactcenterinsights.v1.UploadConversationRequestOrBuilder + getRequestOrBuilder(); + + /** + * + * + *
+   * Output only. The operation name for a successfully created analysis
+   * operation, if any.
+   * 
+ * + * string analysis_operation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The analysisOperation. + */ + java.lang.String getAnalysisOperation(); + /** + * + * + *
+   * Output only. The operation name for a successfully created analysis
+   * operation, if any.
+   * 
+ * + * string analysis_operation = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for analysisOperation. + */ + com.google.protobuf.ByteString getAnalysisOperationBytes(); + + /** + * + * + *
+   * Output only. The redaction config applied to the uploaded conversation.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the appliedRedactionConfig field is set. + */ + boolean hasAppliedRedactionConfig(); + /** + * + * + *
+   * Output only. The redaction config applied to the uploaded conversation.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedRedactionConfig. + */ + com.google.cloud.contactcenterinsights.v1.RedactionConfig getAppliedRedactionConfig(); + /** + * + * + *
+   * Output only. The redaction config applied to the uploaded conversation.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig applied_redaction_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder + getAppliedRedactionConfigOrBuilder(); +} diff --git a/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/UploadConversationRequest.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/UploadConversationRequest.java new file mode 100644 index 000000000000..70a0130801a3 --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/UploadConversationRequest.java @@ -0,0 +1,1466 @@ +/* + * 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; + +/** + * + * + *
+ * Request to upload a conversation.
+ * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.UploadConversationRequest} + */ +public final class UploadConversationRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.contactcenterinsights.v1.UploadConversationRequest) + UploadConversationRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UploadConversationRequest.newBuilder() to construct. + private UploadConversationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UploadConversationRequest() { + parent_ = ""; + conversationId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UploadConversationRequest(); + } + + @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_UploadConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_UploadConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.class, + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The parent resource of the conversation.
+   * 
+ * + * + * 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 of the conversation.
+   * 
+ * + * + * 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_FIELD_NUMBER = 2; + private com.google.cloud.contactcenterinsights.v1.Conversation conversation_; + /** + * + * + *
+   * Required. The conversation resource to create.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversation field is set. + */ + @java.lang.Override + public boolean hasConversation() { + return conversation_ != null; + } + /** + * + * + *
+   * Required. The conversation resource to create.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversation. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.Conversation getConversation() { + return conversation_ == null + ? com.google.cloud.contactcenterinsights.v1.Conversation.getDefaultInstance() + : conversation_; + } + /** + * + * + *
+   * Required. The conversation resource to create.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.ConversationOrBuilder + getConversationOrBuilder() { + return conversation_ == null + ? com.google.cloud.contactcenterinsights.v1.Conversation.getDefaultInstance() + : conversation_; + } + + public static final int CONVERSATION_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object conversationId_ = ""; + /** + * + * + *
+   * Optional. A unique ID for the new conversation. This ID will become the
+   * final component of the conversation's resource name. If no ID is specified,
+   * a server-generated ID will be used.
+   * This value should be 4-64 characters and must match the regular
+   * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
+   * 
+ * + * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversationId. + */ + @java.lang.Override + public java.lang.String getConversationId() { + java.lang.Object ref = conversationId_; + 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(); + conversationId_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. A unique ID for the new conversation. This ID will become the
+   * final component of the conversation's resource name. If no ID is specified,
+   * a server-generated ID will be used.
+   * This value should be 4-64 characters and must match the regular
+   * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
+   * 
+ * + * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConversationIdBytes() { + java.lang.Object ref = conversationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REDACTION_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.contactcenterinsights.v1.RedactionConfig redactionConfig_; + /** + * + * + *
+   * Optional. DLP settings for transcript redaction. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the redactionConfig field is set. + */ + @java.lang.Override + public boolean hasRedactionConfig() { + return redactionConfig_ != null; + } + /** + * + * + *
+   * Optional. DLP settings for transcript redaction. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The redactionConfig. + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.RedactionConfig getRedactionConfig() { + return redactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } + /** + * + * + *
+   * Optional. DLP settings for transcript redaction. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder + getRedactionConfigOrBuilder() { + return redactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } + + 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 (conversation_ != null) { + output.writeMessage(2, getConversation()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, conversationId_); + } + if (redactionConfig_ != null) { + output.writeMessage(4, getRedactionConfig()); + } + 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 (conversation_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConversation()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(conversationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, conversationId_); + } + if (redactionConfig_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getRedactionConfig()); + } + 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.UploadConversationRequest)) { + return super.equals(obj); + } + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest other = + (com.google.cloud.contactcenterinsights.v1.UploadConversationRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasConversation() != other.hasConversation()) return false; + if (hasConversation()) { + if (!getConversation().equals(other.getConversation())) return false; + } + if (!getConversationId().equals(other.getConversationId())) return false; + if (hasRedactionConfig() != other.hasRedactionConfig()) return false; + if (hasRedactionConfig()) { + if (!getRedactionConfig().equals(other.getRedactionConfig())) 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(); + if (hasConversation()) { + hash = (37 * hash) + CONVERSATION_FIELD_NUMBER; + hash = (53 * hash) + getConversation().hashCode(); + } + hash = (37 * hash) + CONVERSATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConversationId().hashCode(); + if (hasRedactionConfig()) { + hash = (37 * hash) + REDACTION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getRedactionConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationRequest 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.UploadConversationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationRequest 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.UploadConversationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationRequest 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.UploadConversationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationRequest 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.UploadConversationRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationRequest + 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.UploadConversationRequest 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.UploadConversationRequest 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.UploadConversationRequest 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; + } + /** + * + * + *
+   * Request to upload a conversation.
+   * 
+ * + * Protobuf type {@code google.cloud.contactcenterinsights.v1.UploadConversationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.contactcenterinsights.v1.UploadConversationRequest) + com.google.cloud.contactcenterinsights.v1.UploadConversationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_UploadConversationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsProto + .internal_static_google_cloud_contactcenterinsights_v1_UploadConversationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.class, + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.Builder.class); + } + + // Construct using + // com.google.cloud.contactcenterinsights.v1.UploadConversationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + conversation_ = null; + if (conversationBuilder_ != null) { + conversationBuilder_.dispose(); + conversationBuilder_ = null; + } + conversationId_ = ""; + redactionConfig_ = null; + if (redactionConfigBuilder_ != null) { + redactionConfigBuilder_.dispose(); + redactionConfigBuilder_ = 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_UploadConversationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.UploadConversationRequest + getDefaultInstanceForType() { + return com.google.cloud.contactcenterinsights.v1.UploadConversationRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.UploadConversationRequest build() { + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.contactcenterinsights.v1.UploadConversationRequest buildPartial() { + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest result = + new com.google.cloud.contactcenterinsights.v1.UploadConversationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.conversation_ = + conversationBuilder_ == null ? conversation_ : conversationBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.conversationId_ = conversationId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.redactionConfig_ = + redactionConfigBuilder_ == null ? redactionConfig_ : redactionConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.contactcenterinsights.v1.UploadConversationRequest) { + return mergeFrom( + (com.google.cloud.contactcenterinsights.v1.UploadConversationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.contactcenterinsights.v1.UploadConversationRequest other) { + if (other + == com.google.cloud.contactcenterinsights.v1.UploadConversationRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasConversation()) { + mergeConversation(other.getConversation()); + } + if (!other.getConversationId().isEmpty()) { + conversationId_ = other.conversationId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasRedactionConfig()) { + mergeRedactionConfig(other.getRedactionConfig()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(getConversationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + conversationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getRedactionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + 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 java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource of the conversation.
+     * 
+ * + * + * 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 of the conversation.
+     * 
+ * + * + * 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 of the conversation.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource of the conversation.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource of the conversation.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.contactcenterinsights.v1.Conversation conversation_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.Conversation, + com.google.cloud.contactcenterinsights.v1.Conversation.Builder, + com.google.cloud.contactcenterinsights.v1.ConversationOrBuilder> + conversationBuilder_; + /** + * + * + *
+     * Required. The conversation resource to create.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversation field is set. + */ + public boolean hasConversation() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Required. The conversation resource to create.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversation. + */ + public com.google.cloud.contactcenterinsights.v1.Conversation getConversation() { + if (conversationBuilder_ == null) { + return conversation_ == null + ? com.google.cloud.contactcenterinsights.v1.Conversation.getDefaultInstance() + : conversation_; + } else { + return conversationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The conversation resource to create.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversation(com.google.cloud.contactcenterinsights.v1.Conversation value) { + if (conversationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversation_ = value; + } else { + conversationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversation resource to create.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversation( + com.google.cloud.contactcenterinsights.v1.Conversation.Builder builderForValue) { + if (conversationBuilder_ == null) { + conversation_ = builderForValue.build(); + } else { + conversationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversation resource to create.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConversation(com.google.cloud.contactcenterinsights.v1.Conversation value) { + if (conversationBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && conversation_ != null + && conversation_ + != com.google.cloud.contactcenterinsights.v1.Conversation.getDefaultInstance()) { + getConversationBuilder().mergeFrom(value); + } else { + conversation_ = value; + } + } else { + conversationBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversation resource to create.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConversation() { + bitField0_ = (bitField0_ & ~0x00000002); + conversation_ = null; + if (conversationBuilder_ != null) { + conversationBuilder_.dispose(); + conversationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The conversation resource to create.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.contactcenterinsights.v1.Conversation.Builder getConversationBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getConversationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The conversation resource to create.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.contactcenterinsights.v1.ConversationOrBuilder + getConversationOrBuilder() { + if (conversationBuilder_ != null) { + return conversationBuilder_.getMessageOrBuilder(); + } else { + return conversation_ == null + ? com.google.cloud.contactcenterinsights.v1.Conversation.getDefaultInstance() + : conversation_; + } + } + /** + * + * + *
+     * Required. The conversation resource to create.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.Conversation, + com.google.cloud.contactcenterinsights.v1.Conversation.Builder, + com.google.cloud.contactcenterinsights.v1.ConversationOrBuilder> + getConversationFieldBuilder() { + if (conversationBuilder_ == null) { + conversationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.Conversation, + com.google.cloud.contactcenterinsights.v1.Conversation.Builder, + com.google.cloud.contactcenterinsights.v1.ConversationOrBuilder>( + getConversation(), getParentForChildren(), isClean()); + conversation_ = null; + } + return conversationBuilder_; + } + + private java.lang.Object conversationId_ = ""; + /** + * + * + *
+     * Optional. A unique ID for the new conversation. This ID will become the
+     * final component of the conversation's resource name. If no ID is specified,
+     * a server-generated ID will be used.
+     * This value should be 4-64 characters and must match the regular
+     * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
+     * 
+ * + * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversationId. + */ + public java.lang.String getConversationId() { + java.lang.Object ref = conversationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + conversationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. A unique ID for the new conversation. This ID will become the
+     * final component of the conversation's resource name. If no ID is specified,
+     * a server-generated ID will be used.
+     * This value should be 4-64 characters and must match the regular
+     * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
+     * 
+ * + * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversationId. + */ + public com.google.protobuf.ByteString getConversationIdBytes() { + java.lang.Object ref = conversationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + conversationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. A unique ID for the new conversation. This ID will become the
+     * final component of the conversation's resource name. If no ID is specified,
+     * a server-generated ID will be used.
+     * This value should be 4-64 characters and must match the regular
+     * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
+     * 
+ * + * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The conversationId to set. + * @return This builder for chaining. + */ + public Builder setConversationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + conversationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique ID for the new conversation. This ID will become the
+     * final component of the conversation's resource name. If no ID is specified,
+     * a server-generated ID will be used.
+     * This value should be 4-64 characters and must match the regular
+     * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
+     * 
+ * + * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConversationId() { + conversationId_ = getDefaultInstance().getConversationId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A unique ID for the new conversation. This ID will become the
+     * final component of the conversation's resource name. If no ID is specified,
+     * a server-generated ID will be used.
+     * This value should be 4-64 characters and must match the regular
+     * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
+     * 
+ * + * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for conversationId to set. + * @return This builder for chaining. + */ + public Builder setConversationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + conversationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.cloud.contactcenterinsights.v1.RedactionConfig redactionConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.RedactionConfig, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder, + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder> + redactionConfigBuilder_; + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the redactionConfig field is set. + */ + public boolean hasRedactionConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The redactionConfig. + */ + public com.google.cloud.contactcenterinsights.v1.RedactionConfig getRedactionConfig() { + if (redactionConfigBuilder_ == null) { + return redactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } else { + return redactionConfigBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRedactionConfig( + com.google.cloud.contactcenterinsights.v1.RedactionConfig value) { + if (redactionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + redactionConfig_ = value; + } else { + redactionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRedactionConfig( + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder builderForValue) { + if (redactionConfigBuilder_ == null) { + redactionConfig_ = builderForValue.build(); + } else { + redactionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRedactionConfig( + com.google.cloud.contactcenterinsights.v1.RedactionConfig value) { + if (redactionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && redactionConfig_ != null + && redactionConfig_ + != com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance()) { + getRedactionConfigBuilder().mergeFrom(value); + } else { + redactionConfig_ = value; + } + } else { + redactionConfigBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRedactionConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + redactionConfig_ = null; + if (redactionConfigBuilder_ != null) { + redactionConfigBuilder_.dispose(); + redactionConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder + getRedactionConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getRedactionConfigFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder + getRedactionConfigOrBuilder() { + if (redactionConfigBuilder_ != null) { + return redactionConfigBuilder_.getMessageOrBuilder(); + } else { + return redactionConfig_ == null + ? com.google.cloud.contactcenterinsights.v1.RedactionConfig.getDefaultInstance() + : redactionConfig_; + } + } + /** + * + * + *
+     * Optional. DLP settings for transcript redaction. Optional, will default to
+     * the config specified in Settings.
+     * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.RedactionConfig, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder, + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder> + getRedactionConfigFieldBuilder() { + if (redactionConfigBuilder_ == null) { + redactionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.contactcenterinsights.v1.RedactionConfig, + com.google.cloud.contactcenterinsights.v1.RedactionConfig.Builder, + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder>( + getRedactionConfig(), getParentForChildren(), isClean()); + redactionConfig_ = null; + } + return redactionConfigBuilder_; + } + + @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.UploadConversationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.contactcenterinsights.v1.UploadConversationRequest) + private static final com.google.cloud.contactcenterinsights.v1.UploadConversationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.contactcenterinsights.v1.UploadConversationRequest(); + } + + public static com.google.cloud.contactcenterinsights.v1.UploadConversationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UploadConversationRequest 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.UploadConversationRequest + 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/UploadConversationRequestOrBuilder.java b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/UploadConversationRequestOrBuilder.java new file mode 100644 index 000000000000..52bdcd0b8f5d --- /dev/null +++ b/java-contact-center-insights/proto-google-cloud-contact-center-insights-v1/src/main/java/com/google/cloud/contactcenterinsights/v1/UploadConversationRequestOrBuilder.java @@ -0,0 +1,172 @@ +/* + * 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 UploadConversationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.contactcenterinsights.v1.UploadConversationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource of the conversation.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource of the conversation.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The conversation resource to create.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversation field is set. + */ + boolean hasConversation(); + /** + * + * + *
+   * Required. The conversation resource to create.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversation. + */ + com.google.cloud.contactcenterinsights.v1.Conversation getConversation(); + /** + * + * + *
+   * Required. The conversation resource to create.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.Conversation conversation = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.contactcenterinsights.v1.ConversationOrBuilder getConversationOrBuilder(); + + /** + * + * + *
+   * Optional. A unique ID for the new conversation. This ID will become the
+   * final component of the conversation's resource name. If no ID is specified,
+   * a server-generated ID will be used.
+   * This value should be 4-64 characters and must match the regular
+   * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
+   * 
+ * + * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The conversationId. + */ + java.lang.String getConversationId(); + /** + * + * + *
+   * Optional. A unique ID for the new conversation. This ID will become the
+   * final component of the conversation's resource name. If no ID is specified,
+   * a server-generated ID will be used.
+   * This value should be 4-64 characters and must match the regular
+   * expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
+   * 
+ * + * string conversation_id = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for conversationId. + */ + com.google.protobuf.ByteString getConversationIdBytes(); + + /** + * + * + *
+   * Optional. DLP settings for transcript redaction. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the redactionConfig field is set. + */ + boolean hasRedactionConfig(); + /** + * + * + *
+   * Optional. DLP settings for transcript redaction. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The redactionConfig. + */ + com.google.cloud.contactcenterinsights.v1.RedactionConfig getRedactionConfig(); + /** + * + * + *
+   * Optional. DLP settings for transcript redaction. Optional, will default to
+   * the config specified in Settings.
+   * 
+ * + * + * .google.cloud.contactcenterinsights.v1.RedactionConfig redaction_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.contactcenterinsights.v1.RedactionConfigOrBuilder getRedactionConfigOrBuilder(); +} 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 37108ea731d1..3da19a05c757 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 @@ -52,6 +52,21 @@ service ContactCenterInsights { "parent,conversation,conversation_id"; } + // Create a longrunning conversation upload operation. This method differs + // from CreateConversation by allowing audio transcription and optional DLP + // redaction. + rpc UploadConversation(UploadConversationRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/conversations:upload" + body: "*" + }; + option (google.longrunning.operation_info) = { + response_type: "Conversation" + metadata_type: "UploadConversationMetadata" + }; + } + // Updates a conversation. rpc UpdateConversation(UpdateConversationRequest) returns (Conversation) { option (google.api.http) = { @@ -537,6 +552,55 @@ message CreateConversationRequest { string conversation_id = 3; } +// Request to upload a conversation. +message UploadConversationRequest { + // Required. The parent resource of the conversation. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The conversation resource to create. + Conversation conversation = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique ID for the new conversation. This ID will become the + // final component of the conversation's resource name. If no ID is specified, + // a server-generated ID will be used. + // + // This value should be 4-64 characters and must match the regular + // expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-` + string conversation_id = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. DLP settings for transcript redaction. Optional, will default to + // the config specified in Settings. + RedactionConfig redaction_config = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// The metadata for an UploadConversation operation. +message UploadConversationMetadata { + // 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. + UploadConversationRequest request = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The operation name for a successfully created analysis + // operation, if any. + string analysis_operation = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The redaction config applied to the uploaded conversation. + RedactionConfig applied_redaction_config = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Request to list conversations. message ListConversationsRequest { // Required. The parent resource of the conversation. 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 2a5647091dc9..939b26a7e932 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 @@ -917,6 +917,23 @@ message Settings { // Default analysis settings. AnalysisConfig analysis_config = 7; + + // Default DLP redaction resources to be applied while ingesting + // conversations. + RedactionConfig redaction_config = 10; +} + +// DLP resources used for redaction while ingesting conversations. +message RedactionConfig { + // The fully-qualified DLP deidentify template resource name. + // Format: + // `projects/{project}/deidentifyTemplates/{template}` + string deidentify_template = 1; + + // The fully-qualified DLP inspect template resource name. + // Format: + // `projects/{project}/inspectTemplates/{template}` + string inspect_template = 2; } // An annotation that was generated during the customer and agent interaction. diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/uploadconversation/AsyncUploadConversation.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/uploadconversation/AsyncUploadConversation.java new file mode 100644 index 000000000000..0f0c50cb840f --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/uploadconversation/AsyncUploadConversation.java @@ -0,0 +1,56 @@ +/* + * 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_UploadConversation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.Conversation; +import com.google.cloud.contactcenterinsights.v1.LocationName; +import com.google.cloud.contactcenterinsights.v1.RedactionConfig; +import com.google.cloud.contactcenterinsights.v1.UploadConversationRequest; +import com.google.longrunning.Operation; + +public class AsyncUploadConversation { + + public static void main(String[] args) throws Exception { + asyncUploadConversation(); + } + + public static void asyncUploadConversation() 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()) { + UploadConversationRequest request = + UploadConversationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversation(Conversation.newBuilder().build()) + .setConversationId("conversationId-1676095234") + .setRedactionConfig(RedactionConfig.newBuilder().build()) + .build(); + ApiFuture future = + contactCenterInsightsClient.uploadConversationCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_UploadConversation_async] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/uploadconversation/AsyncUploadConversationLRO.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/uploadconversation/AsyncUploadConversationLRO.java new file mode 100644 index 000000000000..133b7284bf68 --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/uploadconversation/AsyncUploadConversationLRO.java @@ -0,0 +1,56 @@ +/* + * 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_UploadConversation_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.Conversation; +import com.google.cloud.contactcenterinsights.v1.LocationName; +import com.google.cloud.contactcenterinsights.v1.RedactionConfig; +import com.google.cloud.contactcenterinsights.v1.UploadConversationMetadata; +import com.google.cloud.contactcenterinsights.v1.UploadConversationRequest; + +public class AsyncUploadConversationLRO { + + public static void main(String[] args) throws Exception { + asyncUploadConversationLRO(); + } + + public static void asyncUploadConversationLRO() 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()) { + UploadConversationRequest request = + UploadConversationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversation(Conversation.newBuilder().build()) + .setConversationId("conversationId-1676095234") + .setRedactionConfig(RedactionConfig.newBuilder().build()) + .build(); + OperationFuture future = + contactCenterInsightsClient.uploadConversationOperationCallable().futureCall(request); + // Do something. + Conversation response = future.get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_UploadConversation_LRO_async] diff --git a/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/uploadconversation/SyncUploadConversation.java b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/uploadconversation/SyncUploadConversation.java new file mode 100644 index 000000000000..7967e743f37a --- /dev/null +++ b/java-contact-center-insights/samples/snippets/generated/com/google/cloud/contactcenterinsights/v1/contactcenterinsights/uploadconversation/SyncUploadConversation.java @@ -0,0 +1,51 @@ +/* + * 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_UploadConversation_sync] +import com.google.cloud.contactcenterinsights.v1.ContactCenterInsightsClient; +import com.google.cloud.contactcenterinsights.v1.Conversation; +import com.google.cloud.contactcenterinsights.v1.LocationName; +import com.google.cloud.contactcenterinsights.v1.RedactionConfig; +import com.google.cloud.contactcenterinsights.v1.UploadConversationRequest; + +public class SyncUploadConversation { + + public static void main(String[] args) throws Exception { + syncUploadConversation(); + } + + public static void syncUploadConversation() 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()) { + UploadConversationRequest request = + UploadConversationRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setConversation(Conversation.newBuilder().build()) + .setConversationId("conversationId-1676095234") + .setRedactionConfig(RedactionConfig.newBuilder().build()) + .build(); + Conversation response = contactCenterInsightsClient.uploadConversationAsync(request).get(); + } + } +} +// [END contactcenterinsights_v1_generated_ContactCenterInsights_UploadConversation_sync]