- 2.58.1 (latest)
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.3
- 2.52.3
- 2.50.0
- 2.49.0
- 2.48.2
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.1
- 2.43.2
- 2.42.0
- 2.41.0
- 2.40.1
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.1
- 2.34.0
- 2.33.0
- 2.32.1
- 2.30.1
- 2.29.1
- 2.28.0
- 2.27.1
- 2.24.0
- 2.23.0
- 2.22.6
- 2.21.0
- 2.20.2
- 2.19.0
- 2.18.0
- 2.17.2
- 2.16.0
- 2.15.1
- 2.14.0
- 2.13.1
- 2.12.0
- 2.11.3
- 2.10.0
- 2.9.3
- 2.8.1
- 2.7.1
- 2.6.1
- 2.5.1
- 2.4.5
- 2.3.0
- 2.2.3
- 2.1.10
public static final class RewriteResponse.Builder extends GeneratedMessageV3.Builder<RewriteResponse.Builder> implements RewriteResponseOrBuilderA rewrite response.
Protobuf type google.storage.v2.RewriteResponse
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RewriteResponse.BuilderImplements
RewriteResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RewriteResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
build()
public RewriteResponse build()| Returns | |
|---|---|
| Type | Description |
RewriteResponse |
|
buildPartial()
public RewriteResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
RewriteResponse |
|
clear()
public RewriteResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
clearDone()
public RewriteResponse.Builder clearDone() true if the copy is finished; otherwise, false if
the copy is in progress. This property is always present in the response.
bool done = 3;
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public RewriteResponse.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
clearObjectSize()
public RewriteResponse.Builder clearObjectSize()The total size of the object being copied in bytes. This property is always present in the response.
int64 object_size = 2;
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public RewriteResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
clearResource()
public RewriteResponse.Builder clearResource()A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes.
.google.storage.v2.Object resource = 5;
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
clearRewriteToken()
public RewriteResponse.Builder clearRewriteToken()A token to use in subsequent requests to continue copying data. This token is present in the response only when there is more data to copy.
string rewrite_token = 4;
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
This builder for chaining. |
clearTotalBytesRewritten()
public RewriteResponse.Builder clearTotalBytesRewritten()The total bytes written so far, which can be used to provide a waiting user with a progress indicator. This property is always present in the response.
int64 total_bytes_rewritten = 1;
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
This builder for chaining. |
clone()
public RewriteResponse.Builder clone()| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
getDefaultInstanceForType()
public RewriteResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RewriteResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDone()
public boolean getDone() true if the copy is finished; otherwise, false if
the copy is in progress. This property is always present in the response.
bool done = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
The done. |
getObjectSize()
public long getObjectSize()The total size of the object being copied in bytes. This property is always present in the response.
int64 object_size = 2;
| Returns | |
|---|---|
| Type | Description |
long |
The objectSize. |
getResource()
public Object getResource()A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes.
.google.storage.v2.Object resource = 5;
| Returns | |
|---|---|
| Type | Description |
Object |
The resource. |
getResourceBuilder()
public Object.Builder getResourceBuilder()A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes.
.google.storage.v2.Object resource = 5;
| Returns | |
|---|---|
| Type | Description |
Object.Builder |
|
getResourceOrBuilder()
public ObjectOrBuilder getResourceOrBuilder()A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes.
.google.storage.v2.Object resource = 5;
| Returns | |
|---|---|
| Type | Description |
ObjectOrBuilder |
|
getRewriteToken()
public String getRewriteToken()A token to use in subsequent requests to continue copying data. This token is present in the response only when there is more data to copy.
string rewrite_token = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The rewriteToken. |
getRewriteTokenBytes()
public ByteString getRewriteTokenBytes()A token to use in subsequent requests to continue copying data. This token is present in the response only when there is more data to copy.
string rewrite_token = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for rewriteToken. |
getTotalBytesRewritten()
public long getTotalBytesRewritten()The total bytes written so far, which can be used to provide a waiting user with a progress indicator. This property is always present in the response.
int64 total_bytes_rewritten = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The totalBytesRewritten. |
hasResource()
public boolean hasResource()A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes.
.google.storage.v2.Object resource = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the resource field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RewriteResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RewriteResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
mergeFrom(RewriteResponse other)
public RewriteResponse.Builder mergeFrom(RewriteResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
RewriteResponse |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
mergeResource(Object value)
public RewriteResponse.Builder mergeResource(Object value)A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes.
.google.storage.v2.Object resource = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RewriteResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
setDone(boolean value)
public RewriteResponse.Builder setDone(boolean value) true if the copy is finished; otherwise, false if
the copy is in progress. This property is always present in the response.
bool done = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe done to set. |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public RewriteResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
setObjectSize(long value)
public RewriteResponse.Builder setObjectSize(long value)The total size of the object being copied in bytes. This property is always present in the response.
int64 object_size = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe objectSize to set. |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RewriteResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
setResource(Object value)
public RewriteResponse.Builder setResource(Object value)A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes.
.google.storage.v2.Object resource = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
setResource(Object.Builder builderForValue)
public RewriteResponse.Builder setResource(Object.Builder builderForValue)A resource containing the metadata for the copied-to object. This property is present in the response only when copying completes.
.google.storage.v2.Object resource = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Object.Builder |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|
setRewriteToken(String value)
public RewriteResponse.Builder setRewriteToken(String value)A token to use in subsequent requests to continue copying data. This token is present in the response only when there is more data to copy.
string rewrite_token = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe rewriteToken to set. |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
This builder for chaining. |
setRewriteTokenBytes(ByteString value)
public RewriteResponse.Builder setRewriteTokenBytes(ByteString value)A token to use in subsequent requests to continue copying data. This token is present in the response only when there is more data to copy.
string rewrite_token = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for rewriteToken to set. |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
This builder for chaining. |
setTotalBytesRewritten(long value)
public RewriteResponse.Builder setTotalBytesRewritten(long value)The total bytes written so far, which can be used to provide a waiting user with a progress indicator. This property is always present in the response.
int64 total_bytes_rewritten = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe totalBytesRewritten to set. |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final RewriteResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
RewriteResponse.Builder |
|