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
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+ */ + 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. + * + *future = + * contactCenterInsightsClient.uploadConversationOperationCallable().futureCall(request); + * // Do something. + * Conversation response = future.get(); + * } + * }
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+ */ + public final UnaryCallablefuture = + * contactCenterInsightsClient.uploadConversationCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
+ * 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
+ * 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
+ * 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
+ * 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
+ * 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+ * 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
+ * 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+ * 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
+ * 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+ * 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