Class CommonObjectRequestParams.Builder (2.46.0)

public static final class CommonObjectRequestParams.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

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

string encryption_algorithm = 1;

Returns
Type Description
CommonObjectRequestParams.Builder

This builder for chaining.

clearEncryptionKeyBytes()

public CommonObjectRequestParams.Builder clearEncryptionKeyBytes()

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

bytes encryption_key_bytes = 4;

Returns
Type Description
CommonObjectRequestParams.Builder

This builder for chaining.

clearEncryptionKeySha256Bytes()

public CommonObjectRequestParams.Builder clearEncryptionKeySha256Bytes()

SHA256 hash of encryption key used with the Customer-Supplied Encryption Keys feature.

bytes encryption_key_sha256_bytes = 5;

Returns
Type Description
CommonObjectRequestParams.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public CommonObjectRequestParams getDefaultInstanceForType()
Returns
Type Description
CommonObjectRequestParams

getDescriptorForType()

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

getEncryptionAlgorithm()

public String getEncryptionAlgorithm()

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

string encryption_algorithm = 1;

Returns
Type Description
String

The encryptionAlgorithm.

getEncryptionAlgorithmBytes()

public ByteString getEncryptionAlgorithmBytes()

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

string encryption_algorithm = 1;

Returns
Type Description
ByteString

The bytes for encryptionAlgorithm.

getEncryptionKeyBytes()

public ByteString getEncryptionKeyBytes()

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

bytes encryption_key_bytes = 4;

Returns
Type Description
ByteString

The encryptionKeyBytes.

getEncryptionKeySha256Bytes()

public ByteString getEncryptionKeySha256Bytes()

SHA256 hash of encryption key used with the Customer-Supplied Encryption Keys feature.

bytes encryption_key_sha256_bytes = 5;

Returns
Type Description
ByteString

The encryptionKeySha256Bytes.

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEncryptionAlgorithm(String value)

public CommonObjectRequestParams.Builder setEncryptionAlgorithm(String value)

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

string encryption_algorithm = 1;

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)

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

string encryption_algorithm = 1;

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)

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

bytes encryption_key_bytes = 4;

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)

SHA256 hash of encryption key used with the Customer-Supplied Encryption Keys feature.

bytes encryption_key_sha256_bytes = 5;

Parameter
Name Description
value ByteString

The encryptionKeySha256Bytes to set.

Returns
Type Description
CommonObjectRequestParams.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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