Class CustomerEncryption.Builder (2.22.0)

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

Describes the Customer-Supplied Encryption Key mechanism used to store an Object's data at rest.

Protobuf type google.storage.v2.CustomerEncryption

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CustomerEncryption build()
Returns
TypeDescription
CustomerEncryption

buildPartial()

public CustomerEncryption buildPartial()
Returns
TypeDescription
CustomerEncryption

clear()

public CustomerEncryption.Builder clear()
Returns
TypeDescription
CustomerEncryption.Builder
Overrides

clearEncryptionAlgorithm()

public CustomerEncryption.Builder clearEncryptionAlgorithm()

The encryption algorithm.

string encryption_algorithm = 1;

Returns
TypeDescription
CustomerEncryption.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearKeySha256Bytes()

public CustomerEncryption.Builder clearKeySha256Bytes()

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

bytes key_sha256_bytes = 3;

Returns
TypeDescription
CustomerEncryption.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public CustomerEncryption.Builder clone()
Returns
TypeDescription
CustomerEncryption.Builder
Overrides

getDefaultInstanceForType()

public CustomerEncryption getDefaultInstanceForType()
Returns
TypeDescription
CustomerEncryption

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEncryptionAlgorithm()

public String getEncryptionAlgorithm()

The encryption algorithm.

string encryption_algorithm = 1;

Returns
TypeDescription
String

The encryptionAlgorithm.

getEncryptionAlgorithmBytes()

public ByteString getEncryptionAlgorithmBytes()

The encryption algorithm.

string encryption_algorithm = 1;

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

The keySha256Bytes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CustomerEncryption other)

public CustomerEncryption.Builder mergeFrom(CustomerEncryption other)
Parameter
NameDescription
otherCustomerEncryption
Returns
TypeDescription
CustomerEncryption.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomerEncryption.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CustomerEncryption.Builder
Overrides

setEncryptionAlgorithm(String value)

public CustomerEncryption.Builder setEncryptionAlgorithm(String value)

The encryption algorithm.

string encryption_algorithm = 1;

Parameter
NameDescription
valueString

The encryptionAlgorithm to set.

Returns
TypeDescription
CustomerEncryption.Builder

This builder for chaining.

setEncryptionAlgorithmBytes(ByteString value)

public CustomerEncryption.Builder setEncryptionAlgorithmBytes(ByteString value)

The encryption algorithm.

string encryption_algorithm = 1;

Parameter
NameDescription
valueByteString

The bytes for encryptionAlgorithm to set.

Returns
TypeDescription
CustomerEncryption.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CustomerEncryption.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CustomerEncryption.Builder
Overrides

setKeySha256Bytes(ByteString value)

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

The keySha256Bytes to set.

Returns
TypeDescription
CustomerEncryption.Builder

This builder for chaining.

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

public CustomerEncryption.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CustomerEncryption.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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