Class CommonObjectRequestParams.Builder (2.62.1)

public static final class CommonObjectRequestParams.Builder extends GeneratedMessage.Builder<CommonObjectRequestParams.Builder> implements CommonObjectRequestParamsOrBuilder

Parameters that can be passed to any object request.

Protobuf type google.storage.v2.CommonObjectRequestParams

Static Methods

getDescriptor()

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

Methods

build()

public CommonObjectRequestParams build()
Returns
Type Description
CommonObjectRequestParams

buildPartial()

public CommonObjectRequestParams buildPartial()
Returns
Type Description
CommonObjectRequestParams

clear()

public CommonObjectRequestParams.Builder clear()
Returns
Type Description
CommonObjectRequestParams.Builder
Overrides

clearEncryptionAlgorithm()

public CommonObjectRequestParams.Builder clearEncryptionAlgorithm()

Optional. Encryption algorithm used with the Customer-Supplied Encryption Keys feature.

string encryption_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CommonObjectRequestParams.Builder

This builder for chaining.

clearEncryptionKeyBytes()

public CommonObjectRequestParams.Builder clearEncryptionKeyBytes()

Optional. Encryption key used with the Customer-Supplied Encryption Keys feature. In raw bytes format (not base64-encoded).

bytes encryption_key_bytes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CommonObjectRequestParams.Builder

This builder for chaining.

clearEncryptionKeySha256Bytes()

public CommonObjectRequestParams.Builder clearEncryptionKeySha256Bytes()

Optional. SHA256 hash of encryption key used with the Customer-supplied encryption keys feature.

bytes encryption_key_sha256_bytes = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CommonObjectRequestParams.Builder

This builder for chaining.

getDefaultInstanceForType()

public CommonObjectRequestParams getDefaultInstanceForType()
Returns
Type Description
CommonObjectRequestParams

getDescriptorForType()

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

getEncryptionAlgorithm()

public String getEncryptionAlgorithm()

Optional. Encryption algorithm used with the Customer-Supplied Encryption Keys feature.

string encryption_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The encryptionAlgorithm.

getEncryptionAlgorithmBytes()

public ByteString getEncryptionAlgorithmBytes()

Optional. Encryption algorithm used with the Customer-Supplied Encryption Keys feature.

string encryption_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for encryptionAlgorithm.

getEncryptionKeyBytes()

public ByteString getEncryptionKeyBytes()

Optional. Encryption key used with the Customer-Supplied Encryption Keys feature. In raw bytes format (not base64-encoded).

bytes encryption_key_bytes = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The encryptionKeyBytes.

getEncryptionKeySha256Bytes()

public ByteString getEncryptionKeySha256Bytes()

Optional. SHA256 hash of encryption key used with the Customer-supplied encryption keys feature.

bytes encryption_key_sha256_bytes = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The encryptionKeySha256Bytes.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CommonObjectRequestParams other)

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

setEncryptionAlgorithm(String value)

public CommonObjectRequestParams.Builder setEncryptionAlgorithm(String value)

Optional. Encryption algorithm used with the Customer-Supplied Encryption Keys feature.

string encryption_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The encryptionAlgorithm to set.

Returns
Type Description
CommonObjectRequestParams.Builder

This builder for chaining.

setEncryptionAlgorithmBytes(ByteString value)

public CommonObjectRequestParams.Builder setEncryptionAlgorithmBytes(ByteString value)

Optional. Encryption algorithm used with the Customer-Supplied Encryption Keys feature.

string encryption_algorithm = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for encryptionAlgorithm to set.

Returns
Type Description
CommonObjectRequestParams.Builder

This builder for chaining.

setEncryptionKeyBytes(ByteString value)

public CommonObjectRequestParams.Builder setEncryptionKeyBytes(ByteString value)

Optional. Encryption key used with the Customer-Supplied Encryption Keys feature. In raw bytes format (not base64-encoded).

bytes encryption_key_bytes = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The encryptionKeyBytes to set.

Returns
Type Description
CommonObjectRequestParams.Builder

This builder for chaining.

setEncryptionKeySha256Bytes(ByteString value)

public CommonObjectRequestParams.Builder setEncryptionKeySha256Bytes(ByteString value)

Optional. SHA256 hash of encryption key used with the Customer-supplied encryption keys feature.

bytes encryption_key_sha256_bytes = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The encryptionKeySha256Bytes to set.

Returns
Type Description
CommonObjectRequestParams.Builder

This builder for chaining.