public static final class Bucket.Encryption.Builder extends GeneratedMessageV3.Builder<Bucket.Encryption.Builder> implements Bucket.EncryptionOrBuilder
Encryption properties of a bucket.
Protobuf type google.storage.v2.Bucket.Encryption
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Bucket.Encryption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Bucket.Encryption build()
Returns
buildPartial()
public Bucket.Encryption buildPartial()
Returns
clear()
public Bucket.Encryption.Builder clear()
Returns
Overrides
clearDefaultKmsKey()
public Bucket.Encryption.Builder clearDefaultKmsKey()
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
clearField(Descriptors.FieldDescriptor field)
public Bucket.Encryption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Bucket.Encryption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Bucket.Encryption.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Bucket.Encryption getDefaultInstanceForType()
Returns
getDefaultKmsKey()
public 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
Type |
Description |
String |
The defaultKmsKey.
|
getDefaultKmsKeyBytes()
public 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
Type |
Description |
ByteString |
The bytes for defaultKmsKey.
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public Bucket.Encryption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Bucket.Encryption.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(Bucket.Encryption other)
public Bucket.Encryption.Builder mergeFrom(Bucket.Encryption other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.Encryption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setDefaultKmsKey(String value)
public Bucket.Encryption.Builder setDefaultKmsKey(String value)
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) = { ... }
Parameter
Name |
Description |
value |
String
The defaultKmsKey to set.
|
Returns
setDefaultKmsKeyBytes(ByteString value)
public Bucket.Encryption.Builder setDefaultKmsKeyBytes(ByteString value)
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) = { ... }
Parameter
Name |
Description |
value |
ByteString
The bytes for defaultKmsKey to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Bucket.Encryption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Bucket.Encryption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Bucket.Encryption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides