Class Database.EncryptionConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.firestore.admin.v1.Database.EncryptionConfig
All Implemented Interfaces:
Database.EncryptionConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
Database

public static final class Database.EncryptionConfig extends com.google.protobuf.GeneratedMessage implements Database.EncryptionConfigOrBuilder
 Encryption configuration for a new database being created from another
 source.

 The source could be a [Backup][google.firestore.admin.v1.Backup] or a
 [PitrSnapshot][google.firestore.admin.v1.PitrSnapshot].
 
Protobuf type google.firestore.admin.v1.Database.EncryptionConfig
See Also:
  • Field Details

    • GOOGLE_DEFAULT_ENCRYPTION_FIELD_NUMBER

      public static final int GOOGLE_DEFAULT_ENCRYPTION_FIELD_NUMBER
      See Also:
    • USE_SOURCE_ENCRYPTION_FIELD_NUMBER

      public static final int USE_SOURCE_ENCRYPTION_FIELD_NUMBER
      See Also:
    • CUSTOMER_MANAGED_ENCRYPTION_FIELD_NUMBER

      public static final int CUSTOMER_MANAGED_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
    • getEncryptionTypeCase

      public Database.EncryptionConfig.EncryptionTypeCase getEncryptionTypeCase()
      Specified by:
      getEncryptionTypeCase in interface Database.EncryptionConfigOrBuilder
    • hasGoogleDefaultEncryption

      public boolean hasGoogleDefaultEncryption()
       Use Google default encryption.
       
      .google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions google_default_encryption = 1;
      Specified by:
      hasGoogleDefaultEncryption in interface Database.EncryptionConfigOrBuilder
      Returns:
      Whether the googleDefaultEncryption field is set.
    • getGoogleDefaultEncryption

      public Database.EncryptionConfig.GoogleDefaultEncryptionOptions getGoogleDefaultEncryption()
       Use Google default encryption.
       
      .google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions google_default_encryption = 1;
      Specified by:
      getGoogleDefaultEncryption in interface Database.EncryptionConfigOrBuilder
      Returns:
      The googleDefaultEncryption.
    • getGoogleDefaultEncryptionOrBuilder

      public Database.EncryptionConfig.GoogleDefaultEncryptionOptionsOrBuilder getGoogleDefaultEncryptionOrBuilder()
       Use Google default encryption.
       
      .google.firestore.admin.v1.Database.EncryptionConfig.GoogleDefaultEncryptionOptions google_default_encryption = 1;
      Specified by:
      getGoogleDefaultEncryptionOrBuilder in interface Database.EncryptionConfigOrBuilder
    • hasUseSourceEncryption

      public boolean hasUseSourceEncryption()
       The database will use the same encryption configuration as the source.
       
      .google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions use_source_encryption = 2;
      Specified by:
      hasUseSourceEncryption in interface Database.EncryptionConfigOrBuilder
      Returns:
      Whether the useSourceEncryption field is set.
    • getUseSourceEncryption

      public Database.EncryptionConfig.SourceEncryptionOptions getUseSourceEncryption()
       The database will use the same encryption configuration as the source.
       
      .google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions use_source_encryption = 2;
      Specified by:
      getUseSourceEncryption in interface Database.EncryptionConfigOrBuilder
      Returns:
      The useSourceEncryption.
    • getUseSourceEncryptionOrBuilder

      public Database.EncryptionConfig.SourceEncryptionOptionsOrBuilder getUseSourceEncryptionOrBuilder()
       The database will use the same encryption configuration as the source.
       
      .google.firestore.admin.v1.Database.EncryptionConfig.SourceEncryptionOptions use_source_encryption = 2;
      Specified by:
      getUseSourceEncryptionOrBuilder in interface Database.EncryptionConfigOrBuilder
    • hasCustomerManagedEncryption

      public boolean hasCustomerManagedEncryption()
       Use Customer Managed Encryption Keys (CMEK) for encryption.
       
      .google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions customer_managed_encryption = 3;
      Specified by:
      hasCustomerManagedEncryption in interface Database.EncryptionConfigOrBuilder
      Returns:
      Whether the customerManagedEncryption field is set.
    • getCustomerManagedEncryption

      public Database.EncryptionConfig.CustomerManagedEncryptionOptions getCustomerManagedEncryption()
       Use Customer Managed Encryption Keys (CMEK) for encryption.
       
      .google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions customer_managed_encryption = 3;
      Specified by:
      getCustomerManagedEncryption in interface Database.EncryptionConfigOrBuilder
      Returns:
      The customerManagedEncryption.
    • getCustomerManagedEncryptionOrBuilder

      public Database.EncryptionConfig.CustomerManagedEncryptionOptionsOrBuilder getCustomerManagedEncryptionOrBuilder()
       Use Customer Managed Encryption Keys (CMEK) for encryption.
       
      .google.firestore.admin.v1.Database.EncryptionConfig.CustomerManagedEncryptionOptions customer_managed_encryption = 3;
      Specified by:
      getCustomerManagedEncryptionOrBuilder in interface Database.EncryptionConfigOrBuilder
    • 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 Database.EncryptionConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static Database.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 Database.EncryptionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

      public static Database.EncryptionConfig.Builder newBuilder()
    • newBuilder

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

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static Database.EncryptionConfig getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<Database.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 Database.EncryptionConfig getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder