public static final class RewriteResponse.Builder extends GeneratedMessageV3.Builder<RewriteResponse.Builder> implements RewriteResponseOrBuilder
A 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()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RewriteResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
RewriteResponse.Builder |
build()
public RewriteResponse build()
Type | Description |
RewriteResponse |
buildPartial()
public RewriteResponse buildPartial()
Type | Description |
RewriteResponse |
clear()
public RewriteResponse.Builder clear()
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;
Type | Description |
RewriteResponse.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public RewriteResponse.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
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;
Type | Description |
RewriteResponse.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public RewriteResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
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;
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;
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;
Type | Description |
RewriteResponse.Builder | This builder for chaining. |
clone()
public RewriteResponse.Builder clone()
Type | Description |
RewriteResponse.Builder |
getDefaultInstanceForType()
public RewriteResponse getDefaultInstanceForType()
Type | Description |
RewriteResponse |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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;
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;
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;
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;
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;
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;
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;
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;
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;
Type | Description |
boolean | Whether the resource field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RewriteResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RewriteResponse.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public RewriteResponse.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
RewriteResponse.Builder |
mergeFrom(RewriteResponse other)
public RewriteResponse.Builder mergeFrom(RewriteResponse other)
Name | Description |
other | RewriteResponse |
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;
Name | Description |
value | Object |
Type | Description |
RewriteResponse.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RewriteResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
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;
Name | Description |
value | boolean The done to set. |
Type | Description |
RewriteResponse.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public RewriteResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
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;
Name | Description |
value | long The objectSize to set. |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
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;
Name | Description |
value | Object |
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;
Name | Description |
builderForValue | Object.Builder |
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;
Name | Description |
value | String The rewriteToken to set. |
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;
Name | Description |
value | ByteString The bytes for rewriteToken to set. |
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;
Name | Description |
value | long The totalBytesRewritten to set. |
Type | Description |
RewriteResponse.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final RewriteResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
RewriteResponse.Builder |