Package com.google.cloud.dataplex.v1
Class EncryptionConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<EncryptionConfig.Builder>
com.google.cloud.dataplex.v1.EncryptionConfig.Builder
- All Implemented Interfaces:
EncryptionConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EncryptionConfig
public static final class EncryptionConfig.Builder
extends com.google.protobuf.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Optional.Output only.Etag of the EncryptionConfig.Output only.clearKey()Optional.Identifier.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanOptional.Output only.intOutput only.getEtag()Etag of the EncryptionConfig.com.google.protobuf.ByteStringEtag of the EncryptionConfig.Output only.Output only.Output only.getKey()Optional.com.google.protobuf.ByteStringOptional.getName()Identifier.com.google.protobuf.ByteStringIdentifier.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.Output only.mergeFrom(EncryptionConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setEnableMetastoreEncryption(boolean value) Optional.Output only.setEncryptionStateValue(int value) Output only.Etag of the EncryptionConfig.setEtagBytes(com.google.protobuf.ByteString value) Etag of the EncryptionConfig.Output only.setFailureDetails(EncryptionConfig.FailureDetails.Builder builderForValue) Output only.Optional.setKeyBytes(com.google.protobuf.ByteString value) Optional.Identifier.setNameBytes(com.google.protobuf.ByteString value) Identifier.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<EncryptionConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<EncryptionConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<EncryptionConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EncryptionConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<EncryptionConfig.Builder>
-
mergeFrom
public EncryptionConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EncryptionConfig.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getNamein interfaceEncryptionConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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) = { ... }- Specified by:
getNameBytesin interfaceEncryptionConfigOrBuilder- Returns:
- The bytes for name.
-
setName
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) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getKeyin interfaceEncryptionConfigOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.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];- Specified by:
getKeyBytesin interfaceEncryptionConfigOrBuilder- Returns:
- The bytes for key.
-
setKey
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];- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setKeyBytes
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];- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCreateTimein interfaceEncryptionConfigOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time when the Encryption configuration was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceEncryptionConfigOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. The time when the Encryption configuration was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
public EncryptionConfig.Builder setCreateTime(com.google.protobuf.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]; -
mergeCreateTime
Output only. The time when the Encryption configuration was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. The time when the Encryption configuration was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.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]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time when the Encryption configuration was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceEncryptionConfigOrBuilder
-
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];- Specified by:
hasUpdateTimein interfaceEncryptionConfigOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.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];- Specified by:
getUpdateTimein interfaceEncryptionConfigOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. The time when the Encryption configuration was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
public EncryptionConfig.Builder setUpdateTime(com.google.protobuf.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]; -
mergeUpdateTime
Output only. The time when the Encryption configuration was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. The time when the Encryption configuration was last updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.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]; -
getUpdateTimeOrBuilder
public com.google.protobuf.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];- Specified by:
getUpdateTimeOrBuilderin interfaceEncryptionConfigOrBuilder
-
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];- Specified by:
getEncryptionStateValuein interfaceEncryptionConfigOrBuilder- Returns:
- The enum numeric value on the wire for encryptionState.
-
setEncryptionStateValue
Output only. The state of encryption of the databases.
.google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for encryptionState to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getEncryptionStatein interfaceEncryptionConfigOrBuilder- Returns:
- The encryptionState.
-
setEncryptionState
Output only. The state of encryption of the databases.
.google.cloud.dataplex.v1.EncryptionConfig.EncryptionState encryption_state = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The encryptionState to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getEtag
Etag of the EncryptionConfig. This is a strong etag.
string etag = 6;- Specified by:
getEtagin interfaceEncryptionConfigOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()Etag of the EncryptionConfig. This is a strong etag.
string etag = 6;- Specified by:
getEtagBytesin interfaceEncryptionConfigOrBuilder- Returns:
- The bytes for etag.
-
setEtag
Etag of the EncryptionConfig. This is a strong etag.
string etag = 6;- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
Etag of the EncryptionConfig. This is a strong etag.
string etag = 6;- Returns:
- This builder for chaining.
-
setEtagBytes
Etag of the EncryptionConfig. This is a strong etag.
string etag = 6;- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasFailureDetailsin interfaceEncryptionConfigOrBuilder- Returns:
- Whether the failureDetails field is set.
-
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];- Specified by:
getFailureDetailsin interfaceEncryptionConfigOrBuilder- Returns:
- The failureDetails.
-
setFailureDetails
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]; -
setFailureDetails
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]; -
mergeFailureDetails
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]; -
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]; -
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]; -
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];- Specified by:
getFailureDetailsOrBuilderin interfaceEncryptionConfigOrBuilder
-
getEnableMetastoreEncryption
public boolean getEnableMetastoreEncryption()Optional. Represent the state of CMEK opt-in for metastore.
bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEnableMetastoreEncryptionin interfaceEncryptionConfigOrBuilder- Returns:
- The enableMetastoreEncryption.
-
setEnableMetastoreEncryption
Optional. Represent the state of CMEK opt-in for metastore.
bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enableMetastoreEncryption to set.- Returns:
- This builder for chaining.
-
clearEnableMetastoreEncryption
Optional. Represent the state of CMEK opt-in for metastore.
bool enable_metastore_encryption = 8 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-