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 TypeMethodDescriptionThe name of the Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.com.google.protobuf.ByteStringThe name of the Cloud KMS key that will be used to encrypt objects inserted into this bucket, if no encryption method is specified.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()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.resource_reference) = { ... }- Returns:
- The defaultKmsKey.
-
getDefaultKmsKeyBytes
com.google.protobuf.ByteString getDefaultKmsKeyBytes()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.resource_reference) = { ... }- Returns:
- The bytes for defaultKmsKey.
-