Class Bucket.Encryption.Builder (2.9.1)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Encryption.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Bucket.Encryption.Builder
Overrides

build()

public Bucket.Encryption build()
Returns
TypeDescription
Bucket.Encryption

buildPartial()

public Bucket.Encryption buildPartial()
Returns
TypeDescription
Bucket.Encryption

clear()

public Bucket.Encryption.Builder clear()
Returns
TypeDescription
Bucket.Encryption.Builder
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
TypeDescription
Bucket.Encryption.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Bucket.Encryption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Bucket.Encryption.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Bucket.Encryption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Bucket.Encryption.Builder
Overrides

clone()

public Bucket.Encryption.Builder clone()
Returns
TypeDescription
Bucket.Encryption.Builder
Overrides

getDefaultInstanceForType()

public Bucket.Encryption getDefaultInstanceForType()
Returns
TypeDescription
Bucket.Encryption

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
TypeDescription
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
TypeDescription
ByteString

The bytes for defaultKmsKey.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Bucket.Encryption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Bucket.Encryption.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Bucket.Encryption.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Bucket.Encryption.Builder
Overrides

mergeFrom(Bucket.Encryption other)

public Bucket.Encryption.Builder mergeFrom(Bucket.Encryption other)
Parameter
NameDescription
otherBucket.Encryption
Returns
TypeDescription
Bucket.Encryption.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Encryption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Bucket.Encryption.Builder
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
NameDescription
valueString

The defaultKmsKey to set.

Returns
TypeDescription
Bucket.Encryption.Builder

This builder for chaining.

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
NameDescription
valueByteString

The bytes for defaultKmsKey to set.

Returns
TypeDescription
Bucket.Encryption.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Bucket.Encryption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Bucket.Encryption.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Bucket.Encryption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Bucket.Encryption.Builder
Overrides