Class Bucket.Encryption.Builder (2.2.3)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Encryption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Bucket.Encryption.Builder
Overrides

build()

public Bucket.Encryption build()
Returns
Type Description
Bucket.Encryption

buildPartial()

public Bucket.Encryption buildPartial()
Returns
Type Description
Bucket.Encryption

clear()

public Bucket.Encryption.Builder clear()
Returns
Type Description
Bucket.Encryption.Builder
Overrides

clearDefaultKmsKey()

public Bucket.Encryption.Builder clearDefaultKmsKey()

A 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
Bucket.Encryption.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Bucket.Encryption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Bucket.Encryption.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Bucket.Encryption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Bucket.Encryption.Builder
Overrides

clone()

public Bucket.Encryption.Builder clone()
Returns
Type Description
Bucket.Encryption.Builder
Overrides

getDefaultInstanceForType()

public Bucket.Encryption getDefaultInstanceForType()
Returns
Type Description
Bucket.Encryption

getDefaultKmsKey()

public String getDefaultKmsKey()

A 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()

A 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.

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Bucket.Encryption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Bucket.Encryption.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public Bucket.Encryption.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Bucket.Encryption.Builder
Overrides

mergeFrom(Bucket.Encryption other)

public Bucket.Encryption.Builder mergeFrom(Bucket.Encryption other)
Parameter
Name Description
other Bucket.Encryption
Returns
Type Description
Bucket.Encryption.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Encryption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Bucket.Encryption.Builder
Overrides

setDefaultKmsKey(String value)

public Bucket.Encryption.Builder setDefaultKmsKey(String value)

A 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
Type Description
Bucket.Encryption.Builder

This builder for chaining.

setDefaultKmsKeyBytes(ByteString value)

public Bucket.Encryption.Builder setDefaultKmsKeyBytes(ByteString value)

A 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
Type Description
Bucket.Encryption.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Encryption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Bucket.Encryption.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Bucket.Encryption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Bucket.Encryption.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Encryption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Bucket.Encryption.Builder
Overrides