Class EncryptionConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dataplex.v1.EncryptionConfig
All Implemented Interfaces:
EncryptionConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class EncryptionConfig extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • KEY_FIELD_NUMBER

      public static final int KEY_FIELD_NUMBER
      See Also:
    • CREATE_TIME_FIELD_NUMBER

      public static final int CREATE_TIME_FIELD_NUMBER
      See Also:
    • UPDATE_TIME_FIELD_NUMBER

      public static final int UPDATE_TIME_FIELD_NUMBER
      See Also:
    • ENCRYPTION_STATE_FIELD_NUMBER

      public static final int ENCRYPTION_STATE_FIELD_NUMBER
      See Also:
    • ETAG_FIELD_NUMBER

      public static final int ETAG_FIELD_NUMBER
      See Also:
    • FAILURE_DETAILS_FIELD_NUMBER

      public static final int FAILURE_DETAILS_FIELD_NUMBER
      See Also:
    • ENABLE_METASTORE_ENCRYPTION_FIELD_NUMBER

      public static final int ENABLE_METASTORE_ENCRYPTION_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static EncryptionConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EncryptionConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EncryptionConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EncryptionConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EncryptionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EncryptionConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static EncryptionConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EncryptionConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EncryptionConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static EncryptionConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EncryptionConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static EncryptionConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static EncryptionConfig.Builder newBuilder()
    • newBuilder

      public static EncryptionConfig.Builder newBuilder(EncryptionConfig prototype)
    • toBuilder

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

      protected EncryptionConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static EncryptionConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<EncryptionConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<EncryptionConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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