All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.dialogflow.cx.v3.SecuritySettings Maven / Gradle / Ivy

There is a newer version: 0.66.0
Show newest version
/*
 * 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/dialogflow/cx/v3/security_settings.proto

package com.google.cloud.dialogflow.cx.v3;

/**
 *
 *
 * 
 * Represents the settings related to security issues, such as data redaction
 * and data retention. It may take hours for updates on the settings to
 * propagate to all the related components and take effect.
 * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.SecuritySettings} */ public final class SecuritySettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.SecuritySettings) SecuritySettingsOrBuilder { private static final long serialVersionUID = 0L; // Use SecuritySettings.newBuilder() to construct. private SecuritySettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SecuritySettings() { name_ = ""; displayName_ = ""; redactionStrategy_ = 0; redactionScope_ = 0; inspectTemplate_ = ""; deidentifyTemplate_ = ""; purgeDataTypes_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SecuritySettings(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SecuritySettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); displayName_ = s; break; } case 24: { int rawValue = input.readEnum(); redactionStrategy_ = rawValue; break; } case 32: { int rawValue = input.readEnum(); redactionScope_ = rawValue; break; } case 48: { dataRetentionCase_ = 6; dataRetention_ = input.readInt32(); break; } case 64: { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { purgeDataTypes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } purgeDataTypes_.add(rawValue); break; } case 66: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while (input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { purgeDataTypes_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } purgeDataTypes_.add(rawValue); } input.popLimit(oldLimit); break; } case 74: { java.lang.String s = input.readStringRequireUtf8(); inspectTemplate_ = s; break; } case 106: { com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.Builder subBuilder = null; if (insightsExportSettings_ != null) { subBuilder = insightsExportSettings_.toBuilder(); } insightsExportSettings_ = input.readMessage( com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings .parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(insightsExportSettings_); insightsExportSettings_ = subBuilder.buildPartial(); } break; } case 138: { java.lang.String s = input.readStringRequireUtf8(); deidentifyTemplate_ = s; break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { purgeDataTypes_ = java.util.Collections.unmodifiableList(purgeDataTypes_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.SecuritySettingsProto .internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.SecuritySettingsProto .internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.SecuritySettings.class, com.google.cloud.dialogflow.cx.v3.SecuritySettings.Builder.class); } /** * * *
   * Defines how we redact data.
   * 
* * Protobuf enum {@code google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy} */ public enum RedactionStrategy implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Do not redact.
     * 
* * REDACTION_STRATEGY_UNSPECIFIED = 0; */ REDACTION_STRATEGY_UNSPECIFIED(0), /** * * *
     * Call redaction service to clean up the data to be persisted.
     * 
* * REDACT_WITH_SERVICE = 1; */ REDACT_WITH_SERVICE(1), UNRECOGNIZED(-1), ; /** * * *
     * Do not redact.
     * 
* * REDACTION_STRATEGY_UNSPECIFIED = 0; */ public static final int REDACTION_STRATEGY_UNSPECIFIED_VALUE = 0; /** * * *
     * Call redaction service to clean up the data to be persisted.
     * 
* * REDACT_WITH_SERVICE = 1; */ public static final int REDACT_WITH_SERVICE_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RedactionStrategy valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static RedactionStrategy forNumber(int value) { switch (value) { case 0: return REDACTION_STRATEGY_UNSPECIFIED; case 1: return REDACT_WITH_SERVICE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RedactionStrategy findValueByNumber(int number) { return RedactionStrategy.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.SecuritySettings.getDescriptor() .getEnumTypes() .get(0); } private static final RedactionStrategy[] VALUES = values(); public static RedactionStrategy valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private RedactionStrategy(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy) } /** * * *
   * Defines what types of data to redact.
   * 
* * Protobuf enum {@code google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope} */ public enum RedactionScope implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Don't redact any kind of data.
     * 
* * REDACTION_SCOPE_UNSPECIFIED = 0; */ REDACTION_SCOPE_UNSPECIFIED(0), /** * * *
     * On data to be written to disk or similar devices that are capable of
     * holding data even if power is disconnected. This includes data that are
     * temporarily saved on disk.
     * 
* * REDACT_DISK_STORAGE = 2; */ REDACT_DISK_STORAGE(2), UNRECOGNIZED(-1), ; /** * * *
     * Don't redact any kind of data.
     * 
* * REDACTION_SCOPE_UNSPECIFIED = 0; */ public static final int REDACTION_SCOPE_UNSPECIFIED_VALUE = 0; /** * * *
     * On data to be written to disk or similar devices that are capable of
     * holding data even if power is disconnected. This includes data that are
     * temporarily saved on disk.
     * 
* * REDACT_DISK_STORAGE = 2; */ public static final int REDACT_DISK_STORAGE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RedactionScope valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static RedactionScope forNumber(int value) { switch (value) { case 0: return REDACTION_SCOPE_UNSPECIFIED; case 2: return REDACT_DISK_STORAGE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public RedactionScope findValueByNumber(int number) { return RedactionScope.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.SecuritySettings.getDescriptor() .getEnumTypes() .get(1); } private static final RedactionScope[] VALUES = values(); public static RedactionScope valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private RedactionScope(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope) } /** * * *
   * Type of data we purge after retention settings triggers purge.
   * 
* * Protobuf enum {@code google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType} */ public enum PurgeDataType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
     * Unspecified. Do not use.
     * 
* * PURGE_DATA_TYPE_UNSPECIFIED = 0; */ PURGE_DATA_TYPE_UNSPECIFIED(0), /** * * *
     * Dialogflow history. This does not include Cloud logging, which is
     * owned by the user - not Dialogflow.
     * 
* * DIALOGFLOW_HISTORY = 1; */ DIALOGFLOW_HISTORY(1), UNRECOGNIZED(-1), ; /** * * *
     * Unspecified. Do not use.
     * 
* * PURGE_DATA_TYPE_UNSPECIFIED = 0; */ public static final int PURGE_DATA_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
     * Dialogflow history. This does not include Cloud logging, which is
     * owned by the user - not Dialogflow.
     * 
* * DIALOGFLOW_HISTORY = 1; */ public static final int DIALOGFLOW_HISTORY_VALUE = 1; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static PurgeDataType valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static PurgeDataType forNumber(int value) { switch (value) { case 0: return PURGE_DATA_TYPE_UNSPECIFIED; case 1: return DIALOGFLOW_HISTORY; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PurgeDataType findValueByNumber(int number) { return PurgeDataType.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.SecuritySettings.getDescriptor() .getEnumTypes() .get(2); } private static final PurgeDataType[] VALUES = values(); public static PurgeDataType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private PurgeDataType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType) } public interface InsightsExportSettingsOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) com.google.protobuf.MessageOrBuilder { /** * * *
     * If enabled, we will automatically exports
     * conversations to Insights and Insights runs its analyzers.
     * 
* * bool enable_insights_export = 1; * * @return The enableInsightsExport. */ boolean getEnableInsightsExport(); } /** * * *
   * Settings for exporting conversations to
   * [Insights](https://cloud.google.com/dialogflow/priv/docs/insights).
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} */ public static final class InsightsExportSettings extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) InsightsExportSettingsOrBuilder { private static final long serialVersionUID = 0L; // Use InsightsExportSettings.newBuilder() to construct. private InsightsExportSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InsightsExportSettings() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new InsightsExportSettings(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InsightsExportSettings( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { enableInsightsExport_ = input.readBool(); break; } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.SecuritySettingsProto .internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_InsightsExportSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.SecuritySettingsProto .internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_InsightsExportSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.class, com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.Builder .class); } public static final int ENABLE_INSIGHTS_EXPORT_FIELD_NUMBER = 1; private boolean enableInsightsExport_; /** * * *
     * If enabled, we will automatically exports
     * conversations to Insights and Insights runs its analyzers.
     * 
* * bool enable_insights_export = 1; * * @return The enableInsightsExport. */ @java.lang.Override public boolean getEnableInsightsExport() { return enableInsightsExport_; } 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 (enableInsightsExport_ != false) { output.writeBool(1, enableInsightsExport_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (enableInsightsExport_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableInsightsExport_); } size += unknownFields.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.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings other = (com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) obj; if (getEnableInsightsExport() != other.getEnableInsightsExport()) return false; if (!unknownFields.equals(other.unknownFields)) 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) + ENABLE_INSIGHTS_EXPORT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableInsightsExport()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings 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.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings 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.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings 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.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings 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.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings 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.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings 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; } /** * * *
     * Settings for exporting conversations to
     * [Insights](https://cloud.google.com/dialogflow/priv/docs/insights).
     * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.SecuritySettingsProto .internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_InsightsExportSettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.SecuritySettingsProto .internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_InsightsExportSettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.class, com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.Builder .class); } // Construct using // com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); enableInsightsExport_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.SecuritySettingsProto .internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_InsightsExportSettings_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings .getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings build() { com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings buildPartial() { com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings result = new com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings(this); result.enableInsightsExport_ = enableInsightsExport_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) { return mergeFrom( (com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom( com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings other) { if (other == com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings .getDefaultInstance()) return this; if (other.getEnableInsightsExport() != false) { setEnableInsightsExport(other.getEnableInsightsExport()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private boolean enableInsightsExport_; /** * * *
       * If enabled, we will automatically exports
       * conversations to Insights and Insights runs its analyzers.
       * 
* * bool enable_insights_export = 1; * * @return The enableInsightsExport. */ @java.lang.Override public boolean getEnableInsightsExport() { return enableInsightsExport_; } /** * * *
       * If enabled, we will automatically exports
       * conversations to Insights and Insights runs its analyzers.
       * 
* * bool enable_insights_export = 1; * * @param value The enableInsightsExport to set. * @return This builder for chaining. */ public Builder setEnableInsightsExport(boolean value) { enableInsightsExport_ = value; onChanged(); return this; } /** * * *
       * If enabled, we will automatically exports
       * conversations to Insights and Insights runs its analyzers.
       * 
* * bool enable_insights_export = 1; * * @return This builder for chaining. */ public Builder clearEnableInsightsExport() { enableInsightsExport_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings) private static final com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings(); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InsightsExportSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InsightsExportSettings(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int dataRetentionCase_ = 0; private java.lang.Object dataRetention_; public enum DataRetentionCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RETENTION_WINDOW_DAYS(6), DATARETENTION_NOT_SET(0); private final int value; private DataRetentionCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DataRetentionCase valueOf(int value) { return forNumber(value); } public static DataRetentionCase forNumber(int value) { switch (value) { case 6: return RETENTION_WINDOW_DAYS; case 0: return DATARETENTION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public DataRetentionCase getDataRetentionCase() { return DataRetentionCase.forNumber(dataRetentionCase_); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * * *
   * Required. Resource name of the settings.
   * Format: `projects/<Project ID>/locations/<Location
   * ID>/securitySettings/<Security Settings ID>`.
   * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** * * *
   * Required. Resource name of the settings.
   * Format: `projects/<Project ID>/locations/<Location
   * ID>/securitySettings/<Security Settings ID>`.
   * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPLAY_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object displayName_; /** * * *
   * Required. The human-readable name of the security settings, unique within the
   * location.
   * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; } } /** * * *
   * Required. The human-readable name of the security settings, unique within the
   * location.
   * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REDACTION_STRATEGY_FIELD_NUMBER = 3; private int redactionStrategy_; /** * * *
   * Strategy that defines how we do redaction.
   * 
* * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy redaction_strategy = 3; * * * @return The enum numeric value on the wire for redactionStrategy. */ @java.lang.Override public int getRedactionStrategyValue() { return redactionStrategy_; } /** * * *
   * Strategy that defines how we do redaction.
   * 
* * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy redaction_strategy = 3; * * * @return The redactionStrategy. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy getRedactionStrategy() { @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy result = com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.valueOf( redactionStrategy_); return result == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.UNRECOGNIZED : result; } public static final int REDACTION_SCOPE_FIELD_NUMBER = 4; private int redactionScope_; /** * * *
   * Defines the data for which Dialogflow applies redaction. Dialogflow does
   * not redact data that it does not have access to – for example, Cloud
   * logging.
   * 
* * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope redaction_scope = 4; * * * @return The enum numeric value on the wire for redactionScope. */ @java.lang.Override public int getRedactionScopeValue() { return redactionScope_; } /** * * *
   * Defines the data for which Dialogflow applies redaction. Dialogflow does
   * not redact data that it does not have access to – for example, Cloud
   * logging.
   * 
* * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope redaction_scope = 4; * * * @return The redactionScope. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope getRedactionScope() { @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope result = com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.valueOf(redactionScope_); return result == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.UNRECOGNIZED : result; } public static final int INSPECT_TEMPLATE_FIELD_NUMBER = 9; private volatile java.lang.Object inspectTemplate_; /** * * *
   * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
   * template to define inspect base settings.
   * If empty, we use the default DLP inspect config.
   * The template name will have one of the following formats:
   * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
   * ID>` OR `organizations/<Organization ID>/locations/<Location
   * ID>/inspectTemplates/<Template ID>`
   * Note: `inspect_template` must be located in the same region as the
   * `SecuritySettings`.
   * 
* * string inspect_template = 9 [(.google.api.resource_reference) = { ... } * * @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; } } /** * * *
   * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
   * template to define inspect base settings.
   * If empty, we use the default DLP inspect config.
   * The template name will have one of the following formats:
   * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
   * ID>` OR `organizations/<Organization ID>/locations/<Location
   * ID>/inspectTemplates/<Template ID>`
   * Note: `inspect_template` must be located in the same region as the
   * `SecuritySettings`.
   * 
* * string inspect_template = 9 [(.google.api.resource_reference) = { ... } * * @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; } } public static final int DEIDENTIFY_TEMPLATE_FIELD_NUMBER = 17; private volatile java.lang.Object deidentifyTemplate_; /** * * *
   * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
   * template to define de-identification configuration for the content.
   * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
   * The template name will have one of the following formats:
   * `projects/<Project ID>/locations/<Location
   * ID>/deidentifyTemplates/<Template ID>` OR `organizations/<Organization
   * ID>/locations/<Location ID>/deidentifyTemplates/<Template ID>`
   * Note: `deidentify_template` must be located in the same region as the
   * `SecuritySettings`.
   * 
* * string deidentify_template = 17 [(.google.api.resource_reference) = { ... } * * @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; } } /** * * *
   * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
   * template to define de-identification configuration for the content.
   * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
   * The template name will have one of the following formats:
   * `projects/<Project ID>/locations/<Location
   * ID>/deidentifyTemplates/<Template ID>` OR `organizations/<Organization
   * ID>/locations/<Location ID>/deidentifyTemplates/<Template ID>`
   * Note: `deidentify_template` must be located in the same region as the
   * `SecuritySettings`.
   * 
* * string deidentify_template = 17 [(.google.api.resource_reference) = { ... } * * @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 RETENTION_WINDOW_DAYS_FIELD_NUMBER = 6; /** * * *
   * Retains data in interaction logging for the specified number of days.
   * This does not apply to Cloud logging, which is owned by the user - not
   * Dialogflow.
   * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
   * value higher than that has no effect.
   * A missing value or setting to 0 also means we use Dialogflow's default
   * TTL.
   * Note: Interaction logging is a limited access feature. Talk to your
   * Google representative to check availability for you.
   * 
* * int32 retention_window_days = 6; * * @return Whether the retentionWindowDays field is set. */ @java.lang.Override public boolean hasRetentionWindowDays() { return dataRetentionCase_ == 6; } /** * * *
   * Retains data in interaction logging for the specified number of days.
   * This does not apply to Cloud logging, which is owned by the user - not
   * Dialogflow.
   * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
   * value higher than that has no effect.
   * A missing value or setting to 0 also means we use Dialogflow's default
   * TTL.
   * Note: Interaction logging is a limited access feature. Talk to your
   * Google representative to check availability for you.
   * 
* * int32 retention_window_days = 6; * * @return The retentionWindowDays. */ @java.lang.Override public int getRetentionWindowDays() { if (dataRetentionCase_ == 6) { return (java.lang.Integer) dataRetention_; } return 0; } public static final int PURGE_DATA_TYPES_FIELD_NUMBER = 8; private java.util.List purgeDataTypes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType> purgeDataTypes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType>() { public com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType convert( java.lang.Integer from) { @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType result = com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType.valueOf(from); return result == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType.UNRECOGNIZED : result; } }; /** * * *
   * List of types of data to remove when retention settings triggers purge.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @return A list containing the purgeDataTypes. */ @java.lang.Override public java.util.List getPurgeDataTypesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType>( purgeDataTypes_, purgeDataTypes_converter_); } /** * * *
   * List of types of data to remove when retention settings triggers purge.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @return The count of purgeDataTypes. */ @java.lang.Override public int getPurgeDataTypesCount() { return purgeDataTypes_.size(); } /** * * *
   * List of types of data to remove when retention settings triggers purge.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @param index The index of the element to return. * @return The purgeDataTypes at the given index. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType getPurgeDataTypes( int index) { return purgeDataTypes_converter_.convert(purgeDataTypes_.get(index)); } /** * * *
   * List of types of data to remove when retention settings triggers purge.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @return A list containing the enum numeric values on the wire for purgeDataTypes. */ @java.lang.Override public java.util.List getPurgeDataTypesValueList() { return purgeDataTypes_; } /** * * *
   * List of types of data to remove when retention settings triggers purge.
   * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @param index The index of the value to return. * @return The enum numeric value on the wire of purgeDataTypes at the given index. */ @java.lang.Override public int getPurgeDataTypesValue(int index) { return purgeDataTypes_.get(index); } private int purgeDataTypesMemoizedSerializedSize; public static final int INSIGHTS_EXPORT_SETTINGS_FIELD_NUMBER = 13; private com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insightsExportSettings_; /** * * *
   * Controls conversation exporting settings to Insights after conversation is
   * completed.
   * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
   * Insights export is disabled no matter what you configure here.
   * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insights_export_settings = 13; * * * @return Whether the insightsExportSettings field is set. */ @java.lang.Override public boolean hasInsightsExportSettings() { return insightsExportSettings_ != null; } /** * * *
   * Controls conversation exporting settings to Insights after conversation is
   * completed.
   * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
   * Insights export is disabled no matter what you configure here.
   * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insights_export_settings = 13; * * * @return The insightsExportSettings. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings getInsightsExportSettings() { return insightsExportSettings_ == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings .getDefaultInstance() : insightsExportSettings_; } /** * * *
   * Controls conversation exporting settings to Insights after conversation is
   * completed.
   * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
   * Insights export is disabled no matter what you configure here.
   * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insights_export_settings = 13; * */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettingsOrBuilder getInsightsExportSettingsOrBuilder() { return getInsightsExportSettings(); } 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 { getSerializedSize(); if (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (!getDisplayNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } if (redactionStrategy_ != com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy .REDACTION_STRATEGY_UNSPECIFIED .getNumber()) { output.writeEnum(3, redactionStrategy_); } if (redactionScope_ != com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope .REDACTION_SCOPE_UNSPECIFIED .getNumber()) { output.writeEnum(4, redactionScope_); } if (dataRetentionCase_ == 6) { output.writeInt32(6, (int) ((java.lang.Integer) dataRetention_)); } if (getPurgeDataTypesList().size() > 0) { output.writeUInt32NoTag(66); output.writeUInt32NoTag(purgeDataTypesMemoizedSerializedSize); } for (int i = 0; i < purgeDataTypes_.size(); i++) { output.writeEnumNoTag(purgeDataTypes_.get(i)); } if (!getInspectTemplateBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, inspectTemplate_); } if (insightsExportSettings_ != null) { output.writeMessage(13, getInsightsExportSettings()); } if (!getDeidentifyTemplateBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, deidentifyTemplate_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (!getDisplayNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } if (redactionStrategy_ != com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy .REDACTION_STRATEGY_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, redactionStrategy_); } if (redactionScope_ != com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope .REDACTION_SCOPE_UNSPECIFIED .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, redactionScope_); } if (dataRetentionCase_ == 6) { size += com.google.protobuf.CodedOutputStream.computeInt32Size( 6, (int) ((java.lang.Integer) dataRetention_)); } { int dataSize = 0; for (int i = 0; i < purgeDataTypes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(purgeDataTypes_.get(i)); } size += dataSize; if (!getPurgeDataTypesList().isEmpty()) { size += 1; size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); } purgeDataTypesMemoizedSerializedSize = dataSize; } if (!getInspectTemplateBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, inspectTemplate_); } if (insightsExportSettings_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getInsightsExportSettings()); } if (!getDeidentifyTemplateBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, deidentifyTemplate_); } size += unknownFields.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.dialogflow.cx.v3.SecuritySettings)) { return super.equals(obj); } com.google.cloud.dialogflow.cx.v3.SecuritySettings other = (com.google.cloud.dialogflow.cx.v3.SecuritySettings) obj; if (!getName().equals(other.getName())) return false; if (!getDisplayName().equals(other.getDisplayName())) return false; if (redactionStrategy_ != other.redactionStrategy_) return false; if (redactionScope_ != other.redactionScope_) return false; if (!getInspectTemplate().equals(other.getInspectTemplate())) return false; if (!getDeidentifyTemplate().equals(other.getDeidentifyTemplate())) return false; if (!purgeDataTypes_.equals(other.purgeDataTypes_)) return false; if (hasInsightsExportSettings() != other.hasInsightsExportSettings()) return false; if (hasInsightsExportSettings()) { if (!getInsightsExportSettings().equals(other.getInsightsExportSettings())) return false; } if (!getDataRetentionCase().equals(other.getDataRetentionCase())) return false; switch (dataRetentionCase_) { case 6: if (getRetentionWindowDays() != other.getRetentionWindowDays()) return false; break; case 0: default: } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); hash = (37 * hash) + REDACTION_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + redactionStrategy_; hash = (37 * hash) + REDACTION_SCOPE_FIELD_NUMBER; hash = (53 * hash) + redactionScope_; hash = (37 * hash) + INSPECT_TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getInspectTemplate().hashCode(); hash = (37 * hash) + DEIDENTIFY_TEMPLATE_FIELD_NUMBER; hash = (53 * hash) + getDeidentifyTemplate().hashCode(); if (getPurgeDataTypesCount() > 0) { hash = (37 * hash) + PURGE_DATA_TYPES_FIELD_NUMBER; hash = (53 * hash) + purgeDataTypes_.hashCode(); } if (hasInsightsExportSettings()) { hash = (37 * hash) + INSIGHTS_EXPORT_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getInsightsExportSettings().hashCode(); } switch (dataRetentionCase_) { case 6: hash = (37 * hash) + RETENTION_WINDOW_DAYS_FIELD_NUMBER; hash = (53 * hash) + getRetentionWindowDays(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings 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.dialogflow.cx.v3.SecuritySettings parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings 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.dialogflow.cx.v3.SecuritySettings parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings 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.dialogflow.cx.v3.SecuritySettings parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings 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.dialogflow.cx.v3.SecuritySettings parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings 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.dialogflow.cx.v3.SecuritySettings 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; } /** * * *
   * Represents the settings related to security issues, such as data redaction
   * and data retention. It may take hours for updates on the settings to
   * propagate to all the related components and take effect.
   * 
* * Protobuf type {@code google.cloud.dialogflow.cx.v3.SecuritySettings} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.dialogflow.cx.v3.SecuritySettings) com.google.cloud.dialogflow.cx.v3.SecuritySettingsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.dialogflow.cx.v3.SecuritySettingsProto .internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.dialogflow.cx.v3.SecuritySettingsProto .internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.cloud.dialogflow.cx.v3.SecuritySettings.class, com.google.cloud.dialogflow.cx.v3.SecuritySettings.Builder.class); } // Construct using com.google.cloud.dialogflow.cx.v3.SecuritySettings.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; displayName_ = ""; redactionStrategy_ = 0; redactionScope_ = 0; inspectTemplate_ = ""; deidentifyTemplate_ = ""; purgeDataTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); if (insightsExportSettingsBuilder_ == null) { insightsExportSettings_ = null; } else { insightsExportSettings_ = null; insightsExportSettingsBuilder_ = null; } dataRetentionCase_ = 0; dataRetention_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.dialogflow.cx.v3.SecuritySettingsProto .internal_static_google_cloud_dialogflow_cx_v3_SecuritySettings_descriptor; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings getDefaultInstanceForType() { return com.google.cloud.dialogflow.cx.v3.SecuritySettings.getDefaultInstance(); } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings build() { com.google.cloud.dialogflow.cx.v3.SecuritySettings result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings buildPartial() { com.google.cloud.dialogflow.cx.v3.SecuritySettings result = new com.google.cloud.dialogflow.cx.v3.SecuritySettings(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.displayName_ = displayName_; result.redactionStrategy_ = redactionStrategy_; result.redactionScope_ = redactionScope_; result.inspectTemplate_ = inspectTemplate_; result.deidentifyTemplate_ = deidentifyTemplate_; if (dataRetentionCase_ == 6) { result.dataRetention_ = dataRetention_; } if (((bitField0_ & 0x00000001) != 0)) { purgeDataTypes_ = java.util.Collections.unmodifiableList(purgeDataTypes_); bitField0_ = (bitField0_ & ~0x00000001); } result.purgeDataTypes_ = purgeDataTypes_; if (insightsExportSettingsBuilder_ == null) { result.insightsExportSettings_ = insightsExportSettings_; } else { result.insightsExportSettings_ = insightsExportSettingsBuilder_.build(); } result.dataRetentionCase_ = dataRetentionCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.dialogflow.cx.v3.SecuritySettings) { return mergeFrom((com.google.cloud.dialogflow.cx.v3.SecuritySettings) other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.google.cloud.dialogflow.cx.v3.SecuritySettings other) { if (other == com.google.cloud.dialogflow.cx.v3.SecuritySettings.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; onChanged(); } if (other.redactionStrategy_ != 0) { setRedactionStrategyValue(other.getRedactionStrategyValue()); } if (other.redactionScope_ != 0) { setRedactionScopeValue(other.getRedactionScopeValue()); } if (!other.getInspectTemplate().isEmpty()) { inspectTemplate_ = other.inspectTemplate_; onChanged(); } if (!other.getDeidentifyTemplate().isEmpty()) { deidentifyTemplate_ = other.deidentifyTemplate_; onChanged(); } if (!other.purgeDataTypes_.isEmpty()) { if (purgeDataTypes_.isEmpty()) { purgeDataTypes_ = other.purgeDataTypes_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePurgeDataTypesIsMutable(); purgeDataTypes_.addAll(other.purgeDataTypes_); } onChanged(); } if (other.hasInsightsExportSettings()) { mergeInsightsExportSettings(other.getInsightsExportSettings()); } switch (other.getDataRetentionCase()) { case RETENTION_WINDOW_DAYS: { setRetentionWindowDays(other.getRetentionWindowDays()); break; } case DATARETENTION_NOT_SET: { break; } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.cloud.dialogflow.cx.v3.SecuritySettings parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (com.google.cloud.dialogflow.cx.v3.SecuritySettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int dataRetentionCase_ = 0; private java.lang.Object dataRetention_; public DataRetentionCase getDataRetentionCase() { return DataRetentionCase.forNumber(dataRetentionCase_); } public Builder clearDataRetention() { dataRetentionCase_ = 0; dataRetention_ = null; onChanged(); return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * * *
     * Required. Resource name of the settings.
     * Format: `projects/<Project ID>/locations/<Location
     * ID>/securitySettings/<Security Settings ID>`.
     * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. Resource name of the settings.
     * Format: `projects/<Project ID>/locations/<Location
     * ID>/securitySettings/<Security Settings ID>`.
     * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. Resource name of the settings.
     * Format: `projects/<Project ID>/locations/<Location
     * ID>/securitySettings/<Security Settings ID>`.
     * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The name to set. * @return This builder for chaining. */ public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * * *
     * Required. Resource name of the settings.
     * Format: `projects/<Project ID>/locations/<Location
     * ID>/securitySettings/<Security Settings ID>`.
     * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * * *
     * Required. Resource name of the settings.
     * Format: `projects/<Project ID>/locations/<Location
     * ID>/securitySettings/<Security Settings ID>`.
     * 
* * string name = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** * * *
     * Required. The human-readable name of the security settings, unique within the
     * location.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); displayName_ = s; return s; } else { return (java.lang.String) ref; } } /** * * *
     * Required. The human-readable name of the security settings, unique within the
     * location.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * * *
     * Required. The human-readable name of the security settings, unique within the
     * location.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } displayName_ = value; onChanged(); return this; } /** * * *
     * Required. The human-readable name of the security settings, unique within the
     * location.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** * * *
     * Required. The human-readable name of the security settings, unique within the
     * location.
     * 
* * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for displayName to set. * @return This builder for chaining. */ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; onChanged(); return this; } private int redactionStrategy_ = 0; /** * * *
     * Strategy that defines how we do redaction.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy redaction_strategy = 3; * * * @return The enum numeric value on the wire for redactionStrategy. */ @java.lang.Override public int getRedactionStrategyValue() { return redactionStrategy_; } /** * * *
     * Strategy that defines how we do redaction.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy redaction_strategy = 3; * * * @param value The enum numeric value on the wire for redactionStrategy to set. * @return This builder for chaining. */ public Builder setRedactionStrategyValue(int value) { redactionStrategy_ = value; onChanged(); return this; } /** * * *
     * Strategy that defines how we do redaction.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy redaction_strategy = 3; * * * @return The redactionStrategy. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy getRedactionStrategy() { @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy result = com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.valueOf( redactionStrategy_); return result == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy.UNRECOGNIZED : result; } /** * * *
     * Strategy that defines how we do redaction.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy redaction_strategy = 3; * * * @param value The redactionStrategy to set. * @return This builder for chaining. */ public Builder setRedactionStrategy( com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy value) { if (value == null) { throw new NullPointerException(); } redactionStrategy_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Strategy that defines how we do redaction.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy redaction_strategy = 3; * * * @return This builder for chaining. */ public Builder clearRedactionStrategy() { redactionStrategy_ = 0; onChanged(); return this; } private int redactionScope_ = 0; /** * * *
     * Defines the data for which Dialogflow applies redaction. Dialogflow does
     * not redact data that it does not have access to – for example, Cloud
     * logging.
     * 
* * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope redaction_scope = 4; * * * @return The enum numeric value on the wire for redactionScope. */ @java.lang.Override public int getRedactionScopeValue() { return redactionScope_; } /** * * *
     * Defines the data for which Dialogflow applies redaction. Dialogflow does
     * not redact data that it does not have access to – for example, Cloud
     * logging.
     * 
* * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope redaction_scope = 4; * * * @param value The enum numeric value on the wire for redactionScope to set. * @return This builder for chaining. */ public Builder setRedactionScopeValue(int value) { redactionScope_ = value; onChanged(); return this; } /** * * *
     * Defines the data for which Dialogflow applies redaction. Dialogflow does
     * not redact data that it does not have access to – for example, Cloud
     * logging.
     * 
* * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope redaction_scope = 4; * * * @return The redactionScope. */ @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope getRedactionScope() { @SuppressWarnings("deprecation") com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope result = com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.valueOf( redactionScope_); return result == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope.UNRECOGNIZED : result; } /** * * *
     * Defines the data for which Dialogflow applies redaction. Dialogflow does
     * not redact data that it does not have access to – for example, Cloud
     * logging.
     * 
* * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope redaction_scope = 4; * * * @param value The redactionScope to set. * @return This builder for chaining. */ public Builder setRedactionScope( com.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope value) { if (value == null) { throw new NullPointerException(); } redactionScope_ = value.getNumber(); onChanged(); return this; } /** * * *
     * Defines the data for which Dialogflow applies redaction. Dialogflow does
     * not redact data that it does not have access to – for example, Cloud
     * logging.
     * 
* * .google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope redaction_scope = 4; * * * @return This builder for chaining. */ public Builder clearRedactionScope() { redactionScope_ = 0; onChanged(); return this; } private java.lang.Object inspectTemplate_ = ""; /** * * *
     * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
     * template to define inspect base settings.
     * If empty, we use the default DLP inspect config.
     * The template name will have one of the following formats:
     * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
     * ID>` OR `organizations/<Organization ID>/locations/<Location
     * ID>/inspectTemplates/<Template ID>`
     * Note: `inspect_template` must be located in the same region as the
     * `SecuritySettings`.
     * 
* * string inspect_template = 9 [(.google.api.resource_reference) = { ... } * * @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; } } /** * * *
     * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
     * template to define inspect base settings.
     * If empty, we use the default DLP inspect config.
     * The template name will have one of the following formats:
     * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
     * ID>` OR `organizations/<Organization ID>/locations/<Location
     * ID>/inspectTemplates/<Template ID>`
     * Note: `inspect_template` must be located in the same region as the
     * `SecuritySettings`.
     * 
* * string inspect_template = 9 [(.google.api.resource_reference) = { ... } * * @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; } } /** * * *
     * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
     * template to define inspect base settings.
     * If empty, we use the default DLP inspect config.
     * The template name will have one of the following formats:
     * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
     * ID>` OR `organizations/<Organization ID>/locations/<Location
     * ID>/inspectTemplates/<Template ID>`
     * Note: `inspect_template` must be located in the same region as the
     * `SecuritySettings`.
     * 
* * string inspect_template = 9 [(.google.api.resource_reference) = { ... } * * @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; onChanged(); return this; } /** * * *
     * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
     * template to define inspect base settings.
     * If empty, we use the default DLP inspect config.
     * The template name will have one of the following formats:
     * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
     * ID>` OR `organizations/<Organization ID>/locations/<Location
     * ID>/inspectTemplates/<Template ID>`
     * Note: `inspect_template` must be located in the same region as the
     * `SecuritySettings`.
     * 
* * string inspect_template = 9 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearInspectTemplate() { inspectTemplate_ = getDefaultInstance().getInspectTemplate(); onChanged(); return this; } /** * * *
     * [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
     * template to define inspect base settings.
     * If empty, we use the default DLP inspect config.
     * The template name will have one of the following formats:
     * `projects/<Project ID>/locations/<Location ID>/inspectTemplates/<Template
     * ID>` OR `organizations/<Organization ID>/locations/<Location
     * ID>/inspectTemplates/<Template ID>`
     * Note: `inspect_template` must be located in the same region as the
     * `SecuritySettings`.
     * 
* * string inspect_template = 9 [(.google.api.resource_reference) = { ... } * * @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; onChanged(); return this; } private java.lang.Object deidentifyTemplate_ = ""; /** * * *
     * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
     * template to define de-identification configuration for the content.
     * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
     * The template name will have one of the following formats:
     * `projects/<Project ID>/locations/<Location
     * ID>/deidentifyTemplates/<Template ID>` OR `organizations/<Organization
     * ID>/locations/<Location ID>/deidentifyTemplates/<Template ID>`
     * Note: `deidentify_template` must be located in the same region as the
     * `SecuritySettings`.
     * 
* * string deidentify_template = 17 [(.google.api.resource_reference) = { ... } * * @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; } } /** * * *
     * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
     * template to define de-identification configuration for the content.
     * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
     * The template name will have one of the following formats:
     * `projects/<Project ID>/locations/<Location
     * ID>/deidentifyTemplates/<Template ID>` OR `organizations/<Organization
     * ID>/locations/<Location ID>/deidentifyTemplates/<Template ID>`
     * Note: `deidentify_template` must be located in the same region as the
     * `SecuritySettings`.
     * 
* * string deidentify_template = 17 [(.google.api.resource_reference) = { ... } * * @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; } } /** * * *
     * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
     * template to define de-identification configuration for the content.
     * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
     * The template name will have one of the following formats:
     * `projects/<Project ID>/locations/<Location
     * ID>/deidentifyTemplates/<Template ID>` OR `organizations/<Organization
     * ID>/locations/<Location ID>/deidentifyTemplates/<Template ID>`
     * Note: `deidentify_template` must be located in the same region as the
     * `SecuritySettings`.
     * 
* * string deidentify_template = 17 [(.google.api.resource_reference) = { ... } * * @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; onChanged(); return this; } /** * * *
     * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
     * template to define de-identification configuration for the content.
     * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
     * The template name will have one of the following formats:
     * `projects/<Project ID>/locations/<Location
     * ID>/deidentifyTemplates/<Template ID>` OR `organizations/<Organization
     * ID>/locations/<Location ID>/deidentifyTemplates/<Template ID>`
     * Note: `deidentify_template` must be located in the same region as the
     * `SecuritySettings`.
     * 
* * string deidentify_template = 17 [(.google.api.resource_reference) = { ... } * * @return This builder for chaining. */ public Builder clearDeidentifyTemplate() { deidentifyTemplate_ = getDefaultInstance().getDeidentifyTemplate(); onChanged(); return this; } /** * * *
     * [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
     * template to define de-identification configuration for the content.
     * If empty, Dialogflow replaces sensitive info with `[redacted]` text.
     * The template name will have one of the following formats:
     * `projects/<Project ID>/locations/<Location
     * ID>/deidentifyTemplates/<Template ID>` OR `organizations/<Organization
     * ID>/locations/<Location ID>/deidentifyTemplates/<Template ID>`
     * Note: `deidentify_template` must be located in the same region as the
     * `SecuritySettings`.
     * 
* * string deidentify_template = 17 [(.google.api.resource_reference) = { ... } * * @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; onChanged(); return this; } /** * * *
     * Retains data in interaction logging for the specified number of days.
     * This does not apply to Cloud logging, which is owned by the user - not
     * Dialogflow.
     * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
     * value higher than that has no effect.
     * A missing value or setting to 0 also means we use Dialogflow's default
     * TTL.
     * Note: Interaction logging is a limited access feature. Talk to your
     * Google representative to check availability for you.
     * 
* * int32 retention_window_days = 6; * * @return Whether the retentionWindowDays field is set. */ public boolean hasRetentionWindowDays() { return dataRetentionCase_ == 6; } /** * * *
     * Retains data in interaction logging for the specified number of days.
     * This does not apply to Cloud logging, which is owned by the user - not
     * Dialogflow.
     * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
     * value higher than that has no effect.
     * A missing value or setting to 0 also means we use Dialogflow's default
     * TTL.
     * Note: Interaction logging is a limited access feature. Talk to your
     * Google representative to check availability for you.
     * 
* * int32 retention_window_days = 6; * * @return The retentionWindowDays. */ public int getRetentionWindowDays() { if (dataRetentionCase_ == 6) { return (java.lang.Integer) dataRetention_; } return 0; } /** * * *
     * Retains data in interaction logging for the specified number of days.
     * This does not apply to Cloud logging, which is owned by the user - not
     * Dialogflow.
     * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
     * value higher than that has no effect.
     * A missing value or setting to 0 also means we use Dialogflow's default
     * TTL.
     * Note: Interaction logging is a limited access feature. Talk to your
     * Google representative to check availability for you.
     * 
* * int32 retention_window_days = 6; * * @param value The retentionWindowDays to set. * @return This builder for chaining. */ public Builder setRetentionWindowDays(int value) { dataRetentionCase_ = 6; dataRetention_ = value; onChanged(); return this; } /** * * *
     * Retains data in interaction logging for the specified number of days.
     * This does not apply to Cloud logging, which is owned by the user - not
     * Dialogflow.
     * User must Set a value lower than Dialogflow's default 30d TTL. Setting a
     * value higher than that has no effect.
     * A missing value or setting to 0 also means we use Dialogflow's default
     * TTL.
     * Note: Interaction logging is a limited access feature. Talk to your
     * Google representative to check availability for you.
     * 
* * int32 retention_window_days = 6; * * @return This builder for chaining. */ public Builder clearRetentionWindowDays() { if (dataRetentionCase_ == 6) { dataRetentionCase_ = 0; dataRetention_ = null; onChanged(); } return this; } private java.util.List purgeDataTypes_ = java.util.Collections.emptyList(); private void ensurePurgeDataTypesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { purgeDataTypes_ = new java.util.ArrayList(purgeDataTypes_); bitField0_ |= 0x00000001; } } /** * * *
     * List of types of data to remove when retention settings triggers purge.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @return A list containing the purgeDataTypes. */ public java.util.List getPurgeDataTypesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType>( purgeDataTypes_, purgeDataTypes_converter_); } /** * * *
     * List of types of data to remove when retention settings triggers purge.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @return The count of purgeDataTypes. */ public int getPurgeDataTypesCount() { return purgeDataTypes_.size(); } /** * * *
     * List of types of data to remove when retention settings triggers purge.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @param index The index of the element to return. * @return The purgeDataTypes at the given index. */ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType getPurgeDataTypes( int index) { return purgeDataTypes_converter_.convert(purgeDataTypes_.get(index)); } /** * * *
     * List of types of data to remove when retention settings triggers purge.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @param index The index to set the value at. * @param value The purgeDataTypes to set. * @return This builder for chaining. */ public Builder setPurgeDataTypes( int index, com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType value) { if (value == null) { throw new NullPointerException(); } ensurePurgeDataTypesIsMutable(); purgeDataTypes_.set(index, value.getNumber()); onChanged(); return this; } /** * * *
     * List of types of data to remove when retention settings triggers purge.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @param value The purgeDataTypes to add. * @return This builder for chaining. */ public Builder addPurgeDataTypes( com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType value) { if (value == null) { throw new NullPointerException(); } ensurePurgeDataTypesIsMutable(); purgeDataTypes_.add(value.getNumber()); onChanged(); return this; } /** * * *
     * List of types of data to remove when retention settings triggers purge.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @param values The purgeDataTypes to add. * @return This builder for chaining. */ public Builder addAllPurgeDataTypes( java.lang.Iterable< ? extends com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType> values) { ensurePurgeDataTypesIsMutable(); for (com.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType value : values) { purgeDataTypes_.add(value.getNumber()); } onChanged(); return this; } /** * * *
     * List of types of data to remove when retention settings triggers purge.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @return This builder for chaining. */ public Builder clearPurgeDataTypes() { purgeDataTypes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** * * *
     * List of types of data to remove when retention settings triggers purge.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @return A list containing the enum numeric values on the wire for purgeDataTypes. */ public java.util.List getPurgeDataTypesValueList() { return java.util.Collections.unmodifiableList(purgeDataTypes_); } /** * * *
     * List of types of data to remove when retention settings triggers purge.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @param index The index of the value to return. * @return The enum numeric value on the wire of purgeDataTypes at the given index. */ public int getPurgeDataTypesValue(int index) { return purgeDataTypes_.get(index); } /** * * *
     * List of types of data to remove when retention settings triggers purge.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @param index The index of the value to return. * @return The enum numeric value on the wire of purgeDataTypes at the given index. * @return This builder for chaining. */ public Builder setPurgeDataTypesValue(int index, int value) { ensurePurgeDataTypesIsMutable(); purgeDataTypes_.set(index, value); onChanged(); return this; } /** * * *
     * List of types of data to remove when retention settings triggers purge.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @param value The enum numeric value on the wire for purgeDataTypes to add. * @return This builder for chaining. */ public Builder addPurgeDataTypesValue(int value) { ensurePurgeDataTypesIsMutable(); purgeDataTypes_.add(value); onChanged(); return this; } /** * * *
     * List of types of data to remove when retention settings triggers purge.
     * 
* * * repeated .google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType purge_data_types = 8; * * * @param values The enum numeric values on the wire for purgeDataTypes to add. * @return This builder for chaining. */ public Builder addAllPurgeDataTypesValue(java.lang.Iterable values) { ensurePurgeDataTypesIsMutable(); for (int value : values) { purgeDataTypes_.add(value); } onChanged(); return this; } private com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insightsExportSettings_; private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings, com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.Builder, com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettingsOrBuilder> insightsExportSettingsBuilder_; /** * * *
     * Controls conversation exporting settings to Insights after conversation is
     * completed.
     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
     * Insights export is disabled no matter what you configure here.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insights_export_settings = 13; * * * @return Whether the insightsExportSettings field is set. */ public boolean hasInsightsExportSettings() { return insightsExportSettingsBuilder_ != null || insightsExportSettings_ != null; } /** * * *
     * Controls conversation exporting settings to Insights after conversation is
     * completed.
     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
     * Insights export is disabled no matter what you configure here.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insights_export_settings = 13; * * * @return The insightsExportSettings. */ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings getInsightsExportSettings() { if (insightsExportSettingsBuilder_ == null) { return insightsExportSettings_ == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings .getDefaultInstance() : insightsExportSettings_; } else { return insightsExportSettingsBuilder_.getMessage(); } } /** * * *
     * Controls conversation exporting settings to Insights after conversation is
     * completed.
     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
     * Insights export is disabled no matter what you configure here.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insights_export_settings = 13; * */ public Builder setInsightsExportSettings( com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings value) { if (insightsExportSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } insightsExportSettings_ = value; onChanged(); } else { insightsExportSettingsBuilder_.setMessage(value); } return this; } /** * * *
     * Controls conversation exporting settings to Insights after conversation is
     * completed.
     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
     * Insights export is disabled no matter what you configure here.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insights_export_settings = 13; * */ public Builder setInsightsExportSettings( com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.Builder builderForValue) { if (insightsExportSettingsBuilder_ == null) { insightsExportSettings_ = builderForValue.build(); onChanged(); } else { insightsExportSettingsBuilder_.setMessage(builderForValue.build()); } return this; } /** * * *
     * Controls conversation exporting settings to Insights after conversation is
     * completed.
     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
     * Insights export is disabled no matter what you configure here.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insights_export_settings = 13; * */ public Builder mergeInsightsExportSettings( com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings value) { if (insightsExportSettingsBuilder_ == null) { if (insightsExportSettings_ != null) { insightsExportSettings_ = com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.newBuilder( insightsExportSettings_) .mergeFrom(value) .buildPartial(); } else { insightsExportSettings_ = value; } onChanged(); } else { insightsExportSettingsBuilder_.mergeFrom(value); } return this; } /** * * *
     * Controls conversation exporting settings to Insights after conversation is
     * completed.
     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
     * Insights export is disabled no matter what you configure here.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insights_export_settings = 13; * */ public Builder clearInsightsExportSettings() { if (insightsExportSettingsBuilder_ == null) { insightsExportSettings_ = null; onChanged(); } else { insightsExportSettings_ = null; insightsExportSettingsBuilder_ = null; } return this; } /** * * *
     * Controls conversation exporting settings to Insights after conversation is
     * completed.
     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
     * Insights export is disabled no matter what you configure here.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insights_export_settings = 13; * */ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.Builder getInsightsExportSettingsBuilder() { onChanged(); return getInsightsExportSettingsFieldBuilder().getBuilder(); } /** * * *
     * Controls conversation exporting settings to Insights after conversation is
     * completed.
     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
     * Insights export is disabled no matter what you configure here.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insights_export_settings = 13; * */ public com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettingsOrBuilder getInsightsExportSettingsOrBuilder() { if (insightsExportSettingsBuilder_ != null) { return insightsExportSettingsBuilder_.getMessageOrBuilder(); } else { return insightsExportSettings_ == null ? com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings .getDefaultInstance() : insightsExportSettings_; } } /** * * *
     * Controls conversation exporting settings to Insights after conversation is
     * completed.
     * If [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy] is set to REMOVE_AFTER_CONVERSATION,
     * Insights export is disabled no matter what you configure here.
     * 
* * * .google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings insights_export_settings = 13; * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings, com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.Builder, com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettingsOrBuilder> getInsightsExportSettingsFieldBuilder() { if (insightsExportSettingsBuilder_ == null) { insightsExportSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings, com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings.Builder, com.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettingsOrBuilder>( getInsightsExportSettings(), getParentForChildren(), isClean()); insightsExportSettings_ = null; } return insightsExportSettingsBuilder_; } @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.dialogflow.cx.v3.SecuritySettings) } // @@protoc_insertion_point(class_scope:google.cloud.dialogflow.cx.v3.SecuritySettings) private static final com.google.cloud.dialogflow.cx.v3.SecuritySettings DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.dialogflow.cx.v3.SecuritySettings(); } public static com.google.cloud.dialogflow.cx.v3.SecuritySettings getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SecuritySettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SecuritySettings(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public com.google.cloud.dialogflow.cx.v3.SecuritySettings getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy