Package com.google.storage.v2
Interface Bucket.EncryptionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Bucket.Encryption,Bucket.Encryption.Builder
- Enclosing class:
- Bucket
public static interface Bucket.EncryptionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionOptional.Optional.Optional.Optional.Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.booleanOptional.booleanOptional.booleanOptional.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDefaultKmsKey
String getDefaultKmsKey()Optional. The name of the Cloud KMS key that will be 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) = { ... }- Returns:
- The defaultKmsKey.
-
getDefaultKmsKeyBytes
com.google.protobuf.ByteString getDefaultKmsKeyBytes()Optional. The name of the Cloud KMS key that will be 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) = { ... }- Returns:
- The bytes for defaultKmsKey.
-
hasGoogleManagedEncryptionEnforcementConfig
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];- Returns:
- Whether the googleManagedEncryptionEnforcementConfig field is set.
-
getGoogleManagedEncryptionEnforcementConfig
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];- Returns:
- The googleManagedEncryptionEnforcementConfig.
-
getGoogleManagedEncryptionEnforcementConfigOrBuilder
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]; -
hasCustomerManagedEncryptionEnforcementConfig
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];- Returns:
- Whether the customerManagedEncryptionEnforcementConfig field is set.
-
getCustomerManagedEncryptionEnforcementConfig
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];- Returns:
- The customerManagedEncryptionEnforcementConfig.
-
getCustomerManagedEncryptionEnforcementConfigOrBuilder
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]; -
hasCustomerSuppliedEncryptionEnforcementConfig
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];- Returns:
- Whether the customerSuppliedEncryptionEnforcementConfig field is set.
-
getCustomerSuppliedEncryptionEnforcementConfig
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];- Returns:
- The customerSuppliedEncryptionEnforcementConfig.
-
getCustomerSuppliedEncryptionEnforcementConfigOrBuilder
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];
-