public static final class RewriteResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder> implements RewriteResponseOrBuilder
A rewrite response.Protobuf type
google.storage.v2.RewriteResponse
Modifier and Type | Method and Description |
---|---|
RewriteResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RewriteResponse |
build() |
RewriteResponse |
buildPartial() |
RewriteResponse.Builder |
clear() |
RewriteResponse.Builder |
clearDone()
`true` if the copy is finished; otherwise, `false` if
the copy is in progress.
|
RewriteResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RewriteResponse.Builder |
clearObjectSize()
The total size of the object being copied in bytes.
|
RewriteResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RewriteResponse.Builder |
clearResource()
A resource containing the metadata for the copied-to object.
|
RewriteResponse.Builder |
clearRewriteToken()
A token to use in subsequent requests to continue copying data.
|
RewriteResponse.Builder |
clearTotalBytesRewritten()
The total bytes written so far, which can be used to provide a waiting user
with a progress indicator.
|
RewriteResponse.Builder |
clone() |
RewriteResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDone()
`true` if the copy is finished; otherwise, `false` if
the copy is in progress.
|
long |
getObjectSize()
The total size of the object being copied in bytes.
|
Object |
getResource()
A resource containing the metadata for the copied-to object.
|
Object.Builder |
getResourceBuilder()
A resource containing the metadata for the copied-to object.
|
ObjectOrBuilder |
getResourceOrBuilder()
A resource containing the metadata for the copied-to object.
|
String |
getRewriteToken()
A token to use in subsequent requests to continue copying data.
|
com.google.protobuf.ByteString |
getRewriteTokenBytes()
A token to use in subsequent requests to continue copying data.
|
long |
getTotalBytesRewritten()
The total bytes written so far, which can be used to provide a waiting user
with a progress indicator.
|
boolean |
hasResource()
A resource containing the metadata for the copied-to object.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RewriteResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RewriteResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
RewriteResponse.Builder |
mergeFrom(RewriteResponse other) |
RewriteResponse.Builder |
mergeResource(Object value)
A resource containing the metadata for the copied-to object.
|
RewriteResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RewriteResponse.Builder |
setDone(boolean value)
`true` if the copy is finished; otherwise, `false` if
the copy is in progress.
|
RewriteResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RewriteResponse.Builder |
setObjectSize(long value)
The total size of the object being copied in bytes.
|
RewriteResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RewriteResponse.Builder |
setResource(Object.Builder builderForValue)
A resource containing the metadata for the copied-to object.
|
RewriteResponse.Builder |
setResource(Object value)
A resource containing the metadata for the copied-to object.
|
RewriteResponse.Builder |
setRewriteToken(String value)
A token to use in subsequent requests to continue copying data.
|
RewriteResponse.Builder |
setRewriteTokenBytes(com.google.protobuf.ByteString value)
A token to use in subsequent requests to continue copying data.
|
RewriteResponse.Builder |
setTotalBytesRewritten(long value)
The total bytes written so far, which can be used to provide a waiting user
with a progress indicator.
|
RewriteResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder>
public RewriteResponse.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder>
public RewriteResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public RewriteResponse build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public RewriteResponse buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public RewriteResponse.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder>
public RewriteResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder>
public RewriteResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder>
public RewriteResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder>
public RewriteResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder>
public RewriteResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder>
public RewriteResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RewriteResponse.Builder>
public RewriteResponse.Builder mergeFrom(RewriteResponse other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder>
public RewriteResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<RewriteResponse.Builder>
IOException
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;
getTotalBytesRewritten
in interface RewriteResponseOrBuilder
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;
value
- The totalBytesRewritten to set.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;
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;
getObjectSize
in interface RewriteResponseOrBuilder
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;
value
- The objectSize to set.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;
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;
getDone
in interface RewriteResponseOrBuilder
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;
value
- The done to set.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;
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;
getRewriteToken
in interface RewriteResponseOrBuilder
public com.google.protobuf.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;
getRewriteTokenBytes
in interface RewriteResponseOrBuilder
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;
value
- The rewriteToken to set.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;
public RewriteResponse.Builder setRewriteTokenBytes(com.google.protobuf.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;
value
- The bytes for rewriteToken to set.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;
hasResource
in interface RewriteResponseOrBuilder
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;
getResource
in interface RewriteResponseOrBuilder
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;
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;
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;
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;
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;
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;
getResourceOrBuilder
in interface RewriteResponseOrBuilder
public final RewriteResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder>
public final RewriteResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<RewriteResponse.Builder>
Copyright © 2023 Google LLC. All rights reserved.