Class InitializeEncryptionSpecRequest.Builder (2.55.0)

public static final class InitializeEncryptionSpecRequest.Builder extends GeneratedMessageV3.Builder<InitializeEncryptionSpecRequest.Builder> implements InitializeEncryptionSpecRequestOrBuilder

The request to initialize a location-level encryption specification.

Protobuf type google.cloud.contactcenterinsights.v1.InitializeEncryptionSpecRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InitializeEncryptionSpecRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InitializeEncryptionSpecRequest.Builder
Overrides

build()

public InitializeEncryptionSpecRequest build()
Returns
Type Description
InitializeEncryptionSpecRequest

buildPartial()

public InitializeEncryptionSpecRequest buildPartial()
Returns
Type Description
InitializeEncryptionSpecRequest

clear()

public InitializeEncryptionSpecRequest.Builder clear()
Returns
Type Description
InitializeEncryptionSpecRequest.Builder
Overrides

clearEncryptionSpec()

public InitializeEncryptionSpecRequest.Builder clearEncryptionSpec()

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name field is left empty, no encryption will be enforced.

.google.cloud.contactcenterinsights.v1.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InitializeEncryptionSpecRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public InitializeEncryptionSpecRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InitializeEncryptionSpecRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public InitializeEncryptionSpecRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InitializeEncryptionSpecRequest.Builder
Overrides

clone()

public InitializeEncryptionSpecRequest.Builder clone()
Returns
Type Description
InitializeEncryptionSpecRequest.Builder
Overrides

getDefaultInstanceForType()

public InitializeEncryptionSpecRequest getDefaultInstanceForType()
Returns
Type Description
InitializeEncryptionSpecRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEncryptionSpec()

public EncryptionSpec getEncryptionSpec()

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name field is left empty, no encryption will be enforced.

.google.cloud.contactcenterinsights.v1.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EncryptionSpec

The encryptionSpec.

getEncryptionSpecBuilder()

public EncryptionSpec.Builder getEncryptionSpecBuilder()

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name field is left empty, no encryption will be enforced.

.google.cloud.contactcenterinsights.v1.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EncryptionSpec.Builder

getEncryptionSpecOrBuilder()

public EncryptionSpecOrBuilder getEncryptionSpecOrBuilder()

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name field is left empty, no encryption will be enforced.

.google.cloud.contactcenterinsights.v1.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
EncryptionSpecOrBuilder

hasEncryptionSpec()

public boolean hasEncryptionSpec()

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name field is left empty, no encryption will be enforced.

.google.cloud.contactcenterinsights.v1.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the encryptionSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEncryptionSpec(EncryptionSpec value)

public InitializeEncryptionSpecRequest.Builder mergeEncryptionSpec(EncryptionSpec value)

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name field is left empty, no encryption will be enforced.

.google.cloud.contactcenterinsights.v1.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value EncryptionSpec
Returns
Type Description
InitializeEncryptionSpecRequest.Builder

mergeFrom(InitializeEncryptionSpecRequest other)

public InitializeEncryptionSpecRequest.Builder mergeFrom(InitializeEncryptionSpecRequest other)
Parameter
Name Description
other InitializeEncryptionSpecRequest
Returns
Type Description
InitializeEncryptionSpecRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InitializeEncryptionSpecRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InitializeEncryptionSpecRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InitializeEncryptionSpecRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InitializeEncryptionSpecRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InitializeEncryptionSpecRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InitializeEncryptionSpecRequest.Builder
Overrides

setEncryptionSpec(EncryptionSpec value)

public InitializeEncryptionSpecRequest.Builder setEncryptionSpec(EncryptionSpec value)

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name field is left empty, no encryption will be enforced.

.google.cloud.contactcenterinsights.v1.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value EncryptionSpec
Returns
Type Description
InitializeEncryptionSpecRequest.Builder

setEncryptionSpec(EncryptionSpec.Builder builderForValue)

public InitializeEncryptionSpecRequest.Builder setEncryptionSpec(EncryptionSpec.Builder builderForValue)

Required. The encryption spec used for CMEK encryption. It is required that the kms key is in the same region as the endpoint. The same key will be used for all provisioned resources, if encryption is available. If the kms_key_name field is left empty, no encryption will be enforced.

.google.cloud.contactcenterinsights.v1.EncryptionSpec encryption_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue EncryptionSpec.Builder
Returns
Type Description
InitializeEncryptionSpecRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public InitializeEncryptionSpecRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InitializeEncryptionSpecRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public InitializeEncryptionSpecRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InitializeEncryptionSpecRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final InitializeEncryptionSpecRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InitializeEncryptionSpecRequest.Builder
Overrides