Class CommonRequestParams.Builder (2.3.0)

public static final class CommonRequestParams.Builder extends GeneratedMessageV3.Builder<CommonRequestParams.Builder> implements CommonRequestParamsOrBuilder

Parameters that can be passed to any request.

Protobuf type google.storage.v2.CommonRequestParams

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CommonRequestParams build()
Returns
Type Description
CommonRequestParams

buildPartial()

public CommonRequestParams buildPartial()
Returns
Type Description
CommonRequestParams

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUserProject()

public CommonRequestParams.Builder clearUserProject()

Required. Required when using buckets with Requestor Pays feature enabled.

string user_project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CommonRequestParams.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CommonRequestParams getDefaultInstanceForType()
Returns
Type Description
CommonRequestParams

getDescriptorForType()

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

getUserProject()

public String getUserProject()

Required. Required when using buckets with Requestor Pays feature enabled.

string user_project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The userProject.

getUserProjectBytes()

public ByteString getUserProjectBytes()

Required. Required when using buckets with Requestor Pays feature enabled.

string user_project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for userProject.

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

mergeFrom(Message other)

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

mergeFrom(CommonRequestParams other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUserProject(String value)

public CommonRequestParams.Builder setUserProject(String value)

Required. Required when using buckets with Requestor Pays feature enabled.

string user_project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The userProject to set.

Returns
Type Description
CommonRequestParams.Builder

This builder for chaining.

setUserProjectBytes(ByteString value)

public CommonRequestParams.Builder setUserProjectBytes(ByteString value)

Required. Required when using buckets with Requestor Pays feature enabled.

string user_project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for userProject to set.

Returns
Type Description
CommonRequestParams.Builder

This builder for chaining.