Class CommonObjectRequestParams.Builder (2.9.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CommonObjectRequestParams build()
Returns
TypeDescription
CommonObjectRequestParams

buildPartial()

public CommonObjectRequestParams buildPartial()
Returns
TypeDescription
CommonObjectRequestParams

clear()

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

clearEncryptionAlgorithm()

public CommonObjectRequestParams.Builder clearEncryptionAlgorithm()

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

string encryption_algorithm = 1;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CommonObjectRequestParams.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public CommonObjectRequestParams getDefaultInstanceForType()
Returns
TypeDescription
CommonObjectRequestParams

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEncryptionAlgorithm()

public String getEncryptionAlgorithm()

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

string encryption_algorithm = 1;

Returns
TypeDescription
String

The encryptionAlgorithm.

getEncryptionAlgorithmBytes()

public ByteString getEncryptionAlgorithmBytes()

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

string encryption_algorithm = 1;

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

The encryptionKeySha256Bytes.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CommonObjectRequestParams other)

public CommonObjectRequestParams.Builder mergeFrom(CommonObjectRequestParams other)
Parameter
NameDescription
otherCommonObjectRequestParams
Returns
TypeDescription
CommonObjectRequestParams.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The encryptionAlgorithm to set.

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

The bytes for encryptionAlgorithm to set.

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

The encryptionKeyBytes to set.

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

The encryptionKeySha256Bytes to set.

Returns
TypeDescription
CommonObjectRequestParams.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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