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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CommonRequestParams.BuilderImplements
CommonRequestParamsOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CommonRequestParams.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CommonRequestParams.Builder |
build()
public CommonRequestParams build()
Type | Description |
CommonRequestParams |
buildPartial()
public CommonRequestParams buildPartial()
Type | Description |
CommonRequestParams |
clear()
public CommonRequestParams.Builder clear()
Type | Description |
CommonRequestParams.Builder |
clearField(Descriptors.FieldDescriptor field)
public CommonRequestParams.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CommonRequestParams.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CommonRequestParams.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CommonRequestParams.Builder |
clearUserProject()
public CommonRequestParams.Builder clearUserProject()
Required. Required when using buckets with Requestor Pays feature enabled.
Example: projects/123456
.
string user_project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
CommonRequestParams.Builder | This builder for chaining. |
clone()
public CommonRequestParams.Builder clone()
Type | Description |
CommonRequestParams.Builder |
getDefaultInstanceForType()
public CommonRequestParams getDefaultInstanceForType()
Type | Description |
CommonRequestParams |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getUserProject()
public String getUserProject()
Required. Required when using buckets with Requestor Pays feature enabled.
Example: projects/123456
.
string user_project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The userProject. |
getUserProjectBytes()
public ByteString getUserProjectBytes()
Required. Required when using buckets with Requestor Pays feature enabled.
Example: projects/123456
.
string user_project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for userProject. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CommonRequestParams.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CommonRequestParams.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CommonRequestParams.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CommonRequestParams.Builder |
mergeFrom(CommonRequestParams other)
public CommonRequestParams.Builder mergeFrom(CommonRequestParams other)
Name | Description |
other | CommonRequestParams |
Type | Description |
CommonRequestParams.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CommonRequestParams.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CommonRequestParams.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CommonRequestParams.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CommonRequestParams.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CommonRequestParams.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CommonRequestParams.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CommonRequestParams.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CommonRequestParams.Builder |
setUserProject(String value)
public CommonRequestParams.Builder setUserProject(String value)
Required. Required when using buckets with Requestor Pays feature enabled.
Example: projects/123456
.
string user_project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | String The userProject to set. |
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.
Example: projects/123456
.
string user_project = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for userProject to set. |
Type | Description |
CommonRequestParams.Builder | This builder for chaining. |