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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CommonRequestParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CommonRequestParams build()
Returns
buildPartial()
public CommonRequestParams buildPartial()
Returns
clear()
public CommonRequestParams.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public CommonRequestParams.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CommonRequestParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public CommonRequestParams.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public CommonRequestParams getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public CommonRequestParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CommonRequestParams.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(CommonRequestParams other)
public CommonRequestParams.Builder mergeFrom(CommonRequestParams other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CommonRequestParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public CommonRequestParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CommonRequestParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CommonRequestParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
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