Class CommonRequestParams.Builder

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CommonRequestParams build()
Returns
TypeDescription
CommonRequestParams

buildPartial()

public CommonRequestParams buildPartial()
Returns
TypeDescription
CommonRequestParams

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CommonRequestParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CommonRequestParams.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CommonRequestParams getDefaultInstanceForType()
Returns
TypeDescription
CommonRequestParams

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for userProject.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CommonRequestParams other)

public CommonRequestParams.Builder mergeFrom(CommonRequestParams other)
Parameter
NameDescription
otherCommonRequestParams
Returns
TypeDescription
CommonRequestParams.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

The userProject to set.

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

The bytes for userProject to set.

Returns
TypeDescription
CommonRequestParams.Builder

This builder for chaining.