Class Object.CustomerEncryption.Builder (2.2.3)

public static final class Object.CustomerEncryption.Builder extends GeneratedMessageV3.Builder<Object.CustomerEncryption.Builder> implements Object.CustomerEncryptionOrBuilder

Describes the customer-specified mechanism used to store the data at rest.

Protobuf type google.storage.v2.Object.CustomerEncryption

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Object.CustomerEncryption build()
Returns
Type Description
Object.CustomerEncryption

buildPartial()

public Object.CustomerEncryption buildPartial()
Returns
Type Description
Object.CustomerEncryption

clear()

public Object.CustomerEncryption.Builder clear()
Returns
Type Description
Object.CustomerEncryption.Builder
Overrides

clearEncryptionAlgorithm()

public Object.CustomerEncryption.Builder clearEncryptionAlgorithm()

The encryption algorithm.

string encryption_algorithm = 1;

Returns
Type Description
Object.CustomerEncryption.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Object.CustomerEncryption.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Object.CustomerEncryption.Builder
Overrides

clearKeySha256Bytes()

public Object.CustomerEncryption.Builder clearKeySha256Bytes()

SHA256 hash value of the encryption key. In raw bytes format (not base64-encoded).

bytes key_sha256_bytes = 3;

Returns
Type Description
Object.CustomerEncryption.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Object.CustomerEncryption.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Object.CustomerEncryption.Builder
Overrides

clone()

public Object.CustomerEncryption.Builder clone()
Returns
Type Description
Object.CustomerEncryption.Builder
Overrides

getDefaultInstanceForType()

public Object.CustomerEncryption getDefaultInstanceForType()
Returns
Type Description
Object.CustomerEncryption

getDescriptor()

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

getDescriptorForType()

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

getEncryptionAlgorithm()

public String getEncryptionAlgorithm()

The encryption algorithm.

string encryption_algorithm = 1;

Returns
Type Description
String

The encryptionAlgorithm.

getEncryptionAlgorithmBytes()

public ByteString getEncryptionAlgorithmBytes()

The encryption algorithm.

string encryption_algorithm = 1;

Returns
Type Description
ByteString

The bytes for encryptionAlgorithm.

getKeySha256Bytes()

public ByteString getKeySha256Bytes()

SHA256 hash value of the encryption key. In raw bytes format (not base64-encoded).

bytes key_sha256_bytes = 3;

Returns
Type Description
ByteString

The keySha256Bytes.

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 Object.CustomerEncryption.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Object.CustomerEncryption.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public Object.CustomerEncryption.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Object.CustomerEncryption.Builder
Overrides

mergeFrom(Object.CustomerEncryption other)

public Object.CustomerEncryption.Builder mergeFrom(Object.CustomerEncryption other)
Parameter
Name Description
other Object.CustomerEncryption
Returns
Type Description
Object.CustomerEncryption.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Object.CustomerEncryption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Object.CustomerEncryption.Builder
Overrides

setEncryptionAlgorithm(String value)

public Object.CustomerEncryption.Builder setEncryptionAlgorithm(String value)

The encryption algorithm.

string encryption_algorithm = 1;

Parameter
Name Description
value String

The encryptionAlgorithm to set.

Returns
Type Description
Object.CustomerEncryption.Builder

This builder for chaining.

setEncryptionAlgorithmBytes(ByteString value)

public Object.CustomerEncryption.Builder setEncryptionAlgorithmBytes(ByteString value)

The encryption algorithm.

string encryption_algorithm = 1;

Parameter
Name Description
value ByteString

The bytes for encryptionAlgorithm to set.

Returns
Type Description
Object.CustomerEncryption.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setKeySha256Bytes(ByteString value)

public Object.CustomerEncryption.Builder setKeySha256Bytes(ByteString value)

SHA256 hash value of the encryption key. In raw bytes format (not base64-encoded).

bytes key_sha256_bytes = 3;

Parameter
Name Description
value ByteString

The keySha256Bytes to set.

Returns
Type Description
Object.CustomerEncryption.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final Object.CustomerEncryption.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Object.CustomerEncryption.Builder
Overrides