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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<EncryptionConfig.Builder>
    • clear

      public EncryptionConfig.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<EncryptionConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<EncryptionConfig.Builder>
    • getDefaultInstanceForType

      public EncryptionConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public EncryptionConfig build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public EncryptionConfig buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public EncryptionConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EncryptionConfig.Builder>
    • mergeFrom

      public EncryptionConfig.Builder mergeFrom(EncryptionConfig other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<EncryptionConfig.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getName in interface EncryptionConfigOrBuilder
      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:
      getNameBytes in interface EncryptionConfigOrBuilder
      Returns:
      The bytes for name.
    • setName

      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) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      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:
      This builder for chaining.
    • setNameBytes

      public EncryptionConfig.Builder setNameBytes(com.google.protobuf.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) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getKey in interface EncryptionConfigOrBuilder
      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:
      getKeyBytes in interface EncryptionConfigOrBuilder
      Returns:
      The bytes for key.
    • setKey

      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];
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setKeyBytes

      public EncryptionConfig.Builder setKeyBytes(com.google.protobuf.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];
      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:
      hasCreateTime in interface EncryptionConfigOrBuilder
      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:
      getCreateTime in interface EncryptionConfigOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public EncryptionConfig.Builder setCreateTime(com.google.protobuf.Timestamp value)
       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

      public EncryptionConfig.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. The time when the Encryption configuration was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • 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];
    • 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:
      getCreateTimeOrBuilder in interface EncryptionConfigOrBuilder
    • 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:
      hasUpdateTime in interface EncryptionConfigOrBuilder
      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:
      getUpdateTime in interface EncryptionConfigOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public EncryptionConfig.Builder setUpdateTime(com.google.protobuf.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];
    • 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

      public EncryptionConfig.Builder mergeUpdateTime(com.google.protobuf.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];
    • 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];
    • 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:
      getUpdateTimeOrBuilder in interface EncryptionConfigOrBuilder
    • 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:
      getEncryptionStateValue in interface EncryptionConfigOrBuilder
      Returns:
      The enum numeric value on the wire for encryptionState.
    • setEncryptionStateValue

      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];
      Parameters:
      value - The enum numeric value on the wire for encryptionState to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getEncryptionState in interface EncryptionConfigOrBuilder
      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

      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:
      This builder for chaining.
    • getEtag

      public String getEtag()
       Etag of the EncryptionConfig. This is a strong etag.
       
      string etag = 6;
      Specified by:
      getEtag in interface EncryptionConfigOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Etag of the EncryptionConfig. This is a strong etag.
       
      string etag = 6;
      Specified by:
      getEtagBytes in interface EncryptionConfigOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public EncryptionConfig.Builder setEtag(String value)
       Etag of the EncryptionConfig. This is a strong etag.
       
      string etag = 6;
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public EncryptionConfig.Builder clearEtag()
       Etag of the EncryptionConfig. This is a strong etag.
       
      string etag = 6;
      Returns:
      This builder for chaining.
    • setEtagBytes

      public EncryptionConfig.Builder setEtagBytes(com.google.protobuf.ByteString value)
       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:
      hasFailureDetails in interface EncryptionConfigOrBuilder
      Returns:
      Whether the failureDetails field is set.
    • 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];
      Specified by:
      getFailureDetails in interface EncryptionConfigOrBuilder
      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

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getFailureDetailsOrBuilder in interface EncryptionConfigOrBuilder
    • 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:
      getEnableMetastoreEncryption in interface EncryptionConfigOrBuilder
      Returns:
      The enableMetastoreEncryption.
    • setEnableMetastoreEncryption

      public EncryptionConfig.Builder setEnableMetastoreEncryption(boolean value)
       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

      public EncryptionConfig.Builder 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.