Class Bucket.Encryption

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.storage.v2.Bucket.Encryption
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Bucket.EncryptionOrBuilder, Serializable
Enclosing class:
Bucket

public static final class Bucket.Encryption extends com.google.protobuf.GeneratedMessage implements Bucket.EncryptionOrBuilder
 Encryption properties of a bucket.
 
Protobuf type google.storage.v2.Bucket.Encryption
See Also:
  • Field Details

    • DEFAULT_KMS_KEY_FIELD_NUMBER

      public static final int DEFAULT_KMS_KEY_FIELD_NUMBER
      See Also:
    • GOOGLE_MANAGED_ENCRYPTION_ENFORCEMENT_CONFIG_FIELD_NUMBER

      public static final int GOOGLE_MANAGED_ENCRYPTION_ENFORCEMENT_CONFIG_FIELD_NUMBER
      See Also:
    • CUSTOMER_MANAGED_ENCRYPTION_ENFORCEMENT_CONFIG_FIELD_NUMBER

      public static final int CUSTOMER_MANAGED_ENCRYPTION_ENFORCEMENT_CONFIG_FIELD_NUMBER
      See Also:
    • CUSTOMER_SUPPLIED_ENCRYPTION_ENFORCEMENT_CONFIG_FIELD_NUMBER

      public static final int CUSTOMER_SUPPLIED_ENCRYPTION_ENFORCEMENT_CONFIG_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
    • getDefaultKmsKey

      public String getDefaultKmsKey()
       Optional. The name of the Cloud KMS key that is used to encrypt objects
       inserted into this bucket, if no encryption method is specified.
       
      string default_kms_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getDefaultKmsKey in interface Bucket.EncryptionOrBuilder
      Returns:
      The defaultKmsKey.
    • getDefaultKmsKeyBytes

      public com.google.protobuf.ByteString getDefaultKmsKeyBytes()
       Optional. The name of the Cloud KMS key that is used to encrypt objects
       inserted into this bucket, if no encryption method is specified.
       
      string default_kms_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getDefaultKmsKeyBytes in interface Bucket.EncryptionOrBuilder
      Returns:
      The bytes for defaultKmsKey.
    • hasGoogleManagedEncryptionEnforcementConfig

      public boolean hasGoogleManagedEncryptionEnforcementConfig()
       Optional. If omitted, then new objects with GMEK encryption-type is
       allowed. If set, then new objects created in this bucket must comply with
       enforcement config. Changing this has no effect on existing objects; it
       applies to new objects only.
       
      optional .google.storage.v2.Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig google_managed_encryption_enforcement_config = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasGoogleManagedEncryptionEnforcementConfig in interface Bucket.EncryptionOrBuilder
      Returns:
      Whether the googleManagedEncryptionEnforcementConfig field is set.
    • getGoogleManagedEncryptionEnforcementConfig

      public Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig getGoogleManagedEncryptionEnforcementConfig()
       Optional. If omitted, then new objects with GMEK encryption-type is
       allowed. If set, then new objects created in this bucket must comply with
       enforcement config. Changing this has no effect on existing objects; it
       applies to new objects only.
       
      optional .google.storage.v2.Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig google_managed_encryption_enforcement_config = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGoogleManagedEncryptionEnforcementConfig in interface Bucket.EncryptionOrBuilder
      Returns:
      The googleManagedEncryptionEnforcementConfig.
    • getGoogleManagedEncryptionEnforcementConfigOrBuilder

      public Bucket.Encryption.GoogleManagedEncryptionEnforcementConfigOrBuilder getGoogleManagedEncryptionEnforcementConfigOrBuilder()
       Optional. If omitted, then new objects with GMEK encryption-type is
       allowed. If set, then new objects created in this bucket must comply with
       enforcement config. Changing this has no effect on existing objects; it
       applies to new objects only.
       
      optional .google.storage.v2.Bucket.Encryption.GoogleManagedEncryptionEnforcementConfig google_managed_encryption_enforcement_config = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGoogleManagedEncryptionEnforcementConfigOrBuilder in interface Bucket.EncryptionOrBuilder
    • hasCustomerManagedEncryptionEnforcementConfig

      public boolean hasCustomerManagedEncryptionEnforcementConfig()
       Optional. If omitted, then new objects with CMEK encryption-type is
       allowed. If set, then new objects created in this bucket must comply with
       enforcement config. Changing this has no effect on existing objects; it
       applies to new objects only.
       
      optional .google.storage.v2.Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig customer_managed_encryption_enforcement_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCustomerManagedEncryptionEnforcementConfig in interface Bucket.EncryptionOrBuilder
      Returns:
      Whether the customerManagedEncryptionEnforcementConfig field is set.
    • getCustomerManagedEncryptionEnforcementConfig

      public Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig getCustomerManagedEncryptionEnforcementConfig()
       Optional. If omitted, then new objects with CMEK encryption-type is
       allowed. If set, then new objects created in this bucket must comply with
       enforcement config. Changing this has no effect on existing objects; it
       applies to new objects only.
       
      optional .google.storage.v2.Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig customer_managed_encryption_enforcement_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomerManagedEncryptionEnforcementConfig in interface Bucket.EncryptionOrBuilder
      Returns:
      The customerManagedEncryptionEnforcementConfig.
    • getCustomerManagedEncryptionEnforcementConfigOrBuilder

      public Bucket.Encryption.CustomerManagedEncryptionEnforcementConfigOrBuilder getCustomerManagedEncryptionEnforcementConfigOrBuilder()
       Optional. If omitted, then new objects with CMEK encryption-type is
       allowed. If set, then new objects created in this bucket must comply with
       enforcement config. Changing this has no effect on existing objects; it
       applies to new objects only.
       
      optional .google.storage.v2.Bucket.Encryption.CustomerManagedEncryptionEnforcementConfig customer_managed_encryption_enforcement_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomerManagedEncryptionEnforcementConfigOrBuilder in interface Bucket.EncryptionOrBuilder
    • hasCustomerSuppliedEncryptionEnforcementConfig

      public boolean hasCustomerSuppliedEncryptionEnforcementConfig()
       Optional. If omitted, then new objects with CSEK encryption-type is
       allowed. If set, then new objects created in this bucket must comply with
       enforcement config. Changing this has no effect on existing objects; it
       applies to new objects only.
       
      optional .google.storage.v2.Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig customer_supplied_encryption_enforcement_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasCustomerSuppliedEncryptionEnforcementConfig in interface Bucket.EncryptionOrBuilder
      Returns:
      Whether the customerSuppliedEncryptionEnforcementConfig field is set.
    • getCustomerSuppliedEncryptionEnforcementConfig

      public Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig getCustomerSuppliedEncryptionEnforcementConfig()
       Optional. If omitted, then new objects with CSEK encryption-type is
       allowed. If set, then new objects created in this bucket must comply with
       enforcement config. Changing this has no effect on existing objects; it
       applies to new objects only.
       
      optional .google.storage.v2.Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig customer_supplied_encryption_enforcement_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomerSuppliedEncryptionEnforcementConfig in interface Bucket.EncryptionOrBuilder
      Returns:
      The customerSuppliedEncryptionEnforcementConfig.
    • getCustomerSuppliedEncryptionEnforcementConfigOrBuilder

      public Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfigOrBuilder getCustomerSuppliedEncryptionEnforcementConfigOrBuilder()
       Optional. If omitted, then new objects with CSEK encryption-type is
       allowed. If set, then new objects created in this bucket must comply with
       enforcement config. Changing this has no effect on existing objects; it
       applies to new objects only.
       
      optional .google.storage.v2.Bucket.Encryption.CustomerSuppliedEncryptionEnforcementConfig customer_supplied_encryption_enforcement_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCustomerSuppliedEncryptionEnforcementConfigOrBuilder in interface Bucket.EncryptionOrBuilder
    • 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 Bucket.Encryption parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static Bucket.Encryption parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Bucket.Encryption parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

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

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

      public static Bucket.Encryption.Builder newBuilder()
    • newBuilder

      public static Bucket.Encryption.Builder newBuilder(Bucket.Encryption prototype)
    • toBuilder

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

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

      public static Bucket.Encryption getDefaultInstance()
    • parser

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

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