public static final class EncryptionSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder> implements EncryptionSpecOrBuilder
A customer-managed encryption key specification that can be applied to all created resources (e.g. `Conversation`).Protobuf type
google.cloud.contactcenterinsights.v1.EncryptionSpec| Modifier and Type | Method and Description |
|---|---|
EncryptionSpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EncryptionSpec |
build() |
EncryptionSpec |
buildPartial() |
EncryptionSpec.Builder |
clear() |
EncryptionSpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
EncryptionSpec.Builder |
clearKmsKey()
Required.
|
EncryptionSpec.Builder |
clearName()
Immutable.
|
EncryptionSpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
EncryptionSpec.Builder |
clone() |
EncryptionSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getKmsKey()
Required.
|
com.google.protobuf.ByteString |
getKmsKeyBytes()
Required.
|
String |
getName()
Immutable.
|
com.google.protobuf.ByteString |
getNameBytes()
Immutable.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
EncryptionSpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
EncryptionSpec.Builder |
mergeFrom(EncryptionSpec other) |
EncryptionSpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
EncryptionSpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
EncryptionSpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
EncryptionSpec.Builder |
setKmsKey(String value)
Required.
|
EncryptionSpec.Builder |
setKmsKeyBytes(com.google.protobuf.ByteString value)
Required.
|
EncryptionSpec.Builder |
setName(String value)
Immutable.
|
EncryptionSpec.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Immutable.
|
EncryptionSpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
EncryptionSpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder>public EncryptionSpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder>public EncryptionSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic EncryptionSpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic EncryptionSpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic EncryptionSpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder>public EncryptionSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder>public EncryptionSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder>public EncryptionSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder>public EncryptionSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder>public EncryptionSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder>public EncryptionSpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EncryptionSpec.Builder>public EncryptionSpec.Builder mergeFrom(EncryptionSpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder>public EncryptionSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<EncryptionSpec.Builder>IOExceptionpublic String getName()
Immutable. The resource name of the encryption key specification resource.
Format:
projects/{project}/locations/{location}/encryptionSpec
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getName in interface EncryptionSpecOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Immutable. The resource name of the encryption key specification resource.
Format:
projects/{project}/locations/{location}/encryptionSpec
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];getNameBytes in interface EncryptionSpecOrBuilderpublic EncryptionSpec.Builder setName(String value)
Immutable. The resource name of the encryption key specification resource.
Format:
projects/{project}/locations/{location}/encryptionSpec
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];value - The name to set.public EncryptionSpec.Builder clearName()
Immutable. The resource name of the encryption key specification resource.
Format:
projects/{project}/locations/{location}/encryptionSpec
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];public EncryptionSpec.Builder setNameBytes(com.google.protobuf.ByteString value)
Immutable. The resource name of the encryption key specification resource.
Format:
projects/{project}/locations/{location}/encryptionSpec
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];value - The bytes for name to set.public String getKmsKey()
Required. The name of customer-managed encryption key that is used to
secure a resource and its sub-resources. If empty, the resource is secured
by our default encryption key. Only the key in the same location as this
resource is allowed to be used for encryption. Format:
`projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
string kms_key = 2 [(.google.api.field_behavior) = REQUIRED];getKmsKey in interface EncryptionSpecOrBuilderpublic com.google.protobuf.ByteString getKmsKeyBytes()
Required. The name of customer-managed encryption key that is used to
secure a resource and its sub-resources. If empty, the resource is secured
by our default encryption key. Only the key in the same location as this
resource is allowed to be used for encryption. Format:
`projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
string kms_key = 2 [(.google.api.field_behavior) = REQUIRED];getKmsKeyBytes in interface EncryptionSpecOrBuilderpublic EncryptionSpec.Builder setKmsKey(String value)
Required. The name of customer-managed encryption key that is used to
secure a resource and its sub-resources. If empty, the resource is secured
by our default encryption key. Only the key in the same location as this
resource is allowed to be used for encryption. Format:
`projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
string kms_key = 2 [(.google.api.field_behavior) = REQUIRED];value - The kmsKey to set.public EncryptionSpec.Builder clearKmsKey()
Required. The name of customer-managed encryption key that is used to
secure a resource and its sub-resources. If empty, the resource is secured
by our default encryption key. Only the key in the same location as this
resource is allowed to be used for encryption. Format:
`projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
string kms_key = 2 [(.google.api.field_behavior) = REQUIRED];public EncryptionSpec.Builder setKmsKeyBytes(com.google.protobuf.ByteString value)
Required. The name of customer-managed encryption key that is used to
secure a resource and its sub-resources. If empty, the resource is secured
by our default encryption key. Only the key in the same location as this
resource is allowed to be used for encryption. Format:
`projects/{project}/locations/{location}/keyRings/{keyRing}/cryptoKeys/{key}`
string kms_key = 2 [(.google.api.field_behavior) = REQUIRED];value - The bytes for kmsKey to set.public final EncryptionSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder>public final EncryptionSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<EncryptionSpec.Builder>Copyright © 2025 Google LLC. All rights reserved.