Class EncryptionConfig.Builder (1.61.0)

public static final class EncryptionConfig.Builder extends GeneratedMessageV3.Builder<EncryptionConfig.Builder> implements EncryptionConfigOrBuilder

A Resource designed to manage encryption configurations for customers to support Customer Managed Encryption Keys (CMEK).

Protobuf type google.cloud.dataplex.v1.EncryptionConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public EncryptionConfig build()
Returns
Type Description
EncryptionConfig

buildPartial()

public EncryptionConfig buildPartial()
Returns
Type Description
EncryptionConfig

clear()

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

clearCreateTime()

public EncryptionConfig.Builder clearCreateTime()

Output only. The time when the Encryption configuration was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EncryptionConfig.Builder

clearEncryptionState()

public EncryptionConfig.Builder clearEncryptionState()

Output only. The state of encryption of the databases.

.google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EncryptionConfig.Builder

This builder for chaining.

clearEtag()

public EncryptionConfig.Builder clearEtag()

Etag of the EncryptionConfig. This is a strong etag.

string etag = 6;

Returns
Type Description
EncryptionConfig.Builder

This builder for chaining.

clearFailureDetails()

public EncryptionConfig.Builder clearFailureDetails()

Output only. Details of the failure if anything related to Cmek db fails.

.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EncryptionConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public EncryptionConfig.Builder clearKey()

Optional. If a key is chosen, it means that the customer is using CMEK. If a key is not chosen, it means that the customer is using Google managed encryption.

string key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EncryptionConfig.Builder

This builder for chaining.

clearName()

public EncryptionConfig.Builder clearName()

Identifier. The resource name of the EncryptionConfig. Format: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} Global location is not supported.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Returns
Type Description
EncryptionConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public EncryptionConfig.Builder clearUpdateTime()

Output only. The time when the Encryption configuration was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EncryptionConfig.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time when the Encryption configuration was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time when the Encryption configuration was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the Encryption configuration was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public EncryptionConfig getDefaultInstanceForType()
Returns
Type Description
EncryptionConfig

getDescriptorForType()

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

getEncryptionState()

public EncryptionConfig.EncryptionState getEncryptionState()

Output only. The state of encryption of the databases.

.google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EncryptionConfig.EncryptionState

The encryptionState.

getEncryptionStateValue()

public int getEncryptionStateValue()

Output only. The state of encryption of the databases.

.google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for encryptionState.

getEtag()

public String getEtag()

Etag of the EncryptionConfig. This is a strong etag.

string etag = 6;

Returns
Type Description
String

The etag.

getEtagBytes()

public ByteString getEtagBytes()

Etag of the EncryptionConfig. This is a strong etag.

string etag = 6;

Returns
Type Description
ByteString

The bytes for etag.

getFailureDetails()

public EncryptionConfig.FailureDetails getFailureDetails()

Output only. Details of the failure if anything related to Cmek db fails.

.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EncryptionConfig.FailureDetails

The failureDetails.

getFailureDetailsBuilder()

public EncryptionConfig.FailureDetails.Builder getFailureDetailsBuilder()

Output only. Details of the failure if anything related to Cmek db fails.

.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EncryptionConfig.FailureDetails.Builder

getFailureDetailsOrBuilder()

public EncryptionConfig.FailureDetailsOrBuilder getFailureDetailsOrBuilder()

Output only. Details of the failure if anything related to Cmek db fails.

.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EncryptionConfig.FailureDetailsOrBuilder

getKey()

public String getKey()

Optional. If a key is chosen, it means that the customer is using CMEK. If a key is not chosen, it means that the customer is using Google managed encryption.

string key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Optional. If a key is chosen, it means that the customer is using CMEK. If a key is not chosen, it means that the customer is using Google managed encryption.

string key = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for key.

getName()

public String getName()

Identifier. The resource name of the EncryptionConfig. Format: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} Global location is not supported.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of the EncryptionConfig. Format: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} Global location is not supported.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time when the Encryption configuration was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time when the Encryption configuration was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the Encryption configuration was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time when the Encryption configuration was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasFailureDetails()

public boolean hasFailureDetails()

Output only. Details of the failure if anything related to Cmek db fails.

.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the failureDetails field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time when the Encryption configuration was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public EncryptionConfig.Builder mergeCreateTime(Timestamp value)

Output only. The time when the Encryption configuration was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EncryptionConfig.Builder

mergeFailureDetails(EncryptionConfig.FailureDetails value)

public EncryptionConfig.Builder mergeFailureDetails(EncryptionConfig.FailureDetails value)

Output only. Details of the failure if anything related to Cmek db fails.

.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EncryptionConfig.FailureDetails
Returns
Type Description
EncryptionConfig.Builder

mergeFrom(EncryptionConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public EncryptionConfig.Builder mergeUpdateTime(Timestamp value)

Output only. The time when the Encryption configuration was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EncryptionConfig.Builder

setCreateTime(Timestamp value)

public EncryptionConfig.Builder setCreateTime(Timestamp value)

Output only. The time when the Encryption configuration was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EncryptionConfig.Builder

setCreateTime(Timestamp.Builder builderForValue)

public EncryptionConfig.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time when the Encryption configuration was created.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EncryptionConfig.Builder

setEncryptionState(EncryptionConfig.EncryptionState value)

public EncryptionConfig.Builder setEncryptionState(EncryptionConfig.EncryptionState value)

Output only. The state of encryption of the databases.

.google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EncryptionConfig.EncryptionState

The encryptionState to set.

Returns
Type Description
EncryptionConfig.Builder

This builder for chaining.

setEncryptionStateValue(int value)

public EncryptionConfig.Builder setEncryptionStateValue(int value)

Output only. The state of encryption of the databases.

.google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for encryptionState to set.

Returns
Type Description
EncryptionConfig.Builder

This builder for chaining.

setEtag(String value)

public EncryptionConfig.Builder setEtag(String value)

Etag of the EncryptionConfig. This is a strong etag.

string etag = 6;

Parameter
Name Description
value String

The etag to set.

Returns
Type Description
EncryptionConfig.Builder

This builder for chaining.

setEtagBytes(ByteString value)

public EncryptionConfig.Builder setEtagBytes(ByteString value)

Etag of the EncryptionConfig. This is a strong etag.

string etag = 6;

Parameter
Name Description
value ByteString

The bytes for etag to set.

Returns
Type Description
EncryptionConfig.Builder

This builder for chaining.

setFailureDetails(EncryptionConfig.FailureDetails value)

public EncryptionConfig.Builder setFailureDetails(EncryptionConfig.FailureDetails value)

Output only. Details of the failure if anything related to Cmek db fails.

.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EncryptionConfig.FailureDetails
Returns
Type Description
EncryptionConfig.Builder

setFailureDetails(EncryptionConfig.FailureDetails.Builder builderForValue)

public EncryptionConfig.Builder setFailureDetails(EncryptionConfig.FailureDetails.Builder builderForValue)

Output only. Details of the failure if anything related to Cmek db fails.

.google.cloud.dataplex.v1.EncryptionConfig.FailureDetails failure_details = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue EncryptionConfig.FailureDetails.Builder
Returns
Type Description
EncryptionConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public EncryptionConfig.Builder setKey(String value)

Optional. If a key is chosen, it means that the customer is using CMEK. If a key is not chosen, it means that the customer is using Google managed encryption.

string key = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The key to set.

Returns
Type Description
EncryptionConfig.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public EncryptionConfig.Builder setKeyBytes(ByteString value)

Optional. If a key is chosen, it means that the customer is using CMEK. If a key is not chosen, it means that the customer is using Google managed encryption.

string key = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
EncryptionConfig.Builder

This builder for chaining.

setName(String value)

public EncryptionConfig.Builder setName(String value)

Identifier. The resource name of the EncryptionConfig. Format: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} Global location is not supported.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
EncryptionConfig.Builder

This builder for chaining.

setNameBytes(ByteString value)

public EncryptionConfig.Builder setNameBytes(ByteString value)

Identifier. The resource name of the EncryptionConfig. Format: organizations/{organization}/locations/{location}/encryptionConfigs/{encryption_config} Global location is not supported.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
EncryptionConfig.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public EncryptionConfig.Builder setUpdateTime(Timestamp value)

Output only. The time when the Encryption configuration was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
EncryptionConfig.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public EncryptionConfig.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time when the Encryption configuration was last updated.

.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
EncryptionConfig.Builder