public final class RewriteResponse extends com.google.protobuf.GeneratedMessageV3 implements RewriteResponseOrBuilder
A rewrite response.Protobuf type
google.storage.v2.RewriteResponse| Modifier and Type | Class and Description |
|---|---|
static class |
RewriteResponse.Builder
A rewrite response.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DONE_FIELD_NUMBER |
static int |
OBJECT_SIZE_FIELD_NUMBER |
static int |
RESOURCE_FIELD_NUMBER |
static int |
REWRITE_TOKEN_FIELD_NUMBER |
static int |
TOTAL_BYTES_REWRITTEN_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static RewriteResponse |
getDefaultInstance() |
RewriteResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<RewriteResponse> |
getParserForType() |
Object |
getResource()
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.
|
int |
getSerializedSize() |
long |
getTotalBytesRewritten()
The total bytes written so far, which can be used to provide a waiting user
with a progress indicator.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasResource()
A resource containing the metadata for the copied-to object.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RewriteResponse.Builder |
newBuilder() |
static RewriteResponse.Builder |
newBuilder(RewriteResponse prototype) |
RewriteResponse.Builder |
newBuilderForType() |
protected RewriteResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RewriteResponse |
parseDelimitedFrom(InputStream input) |
static RewriteResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RewriteResponse |
parseFrom(byte[] data) |
static RewriteResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RewriteResponse |
parseFrom(ByteBuffer data) |
static RewriteResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RewriteResponse |
parseFrom(com.google.protobuf.ByteString data) |
static RewriteResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RewriteResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RewriteResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RewriteResponse |
parseFrom(InputStream input) |
static RewriteResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RewriteResponse> |
parser() |
RewriteResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int TOTAL_BYTES_REWRITTEN_FIELD_NUMBER
public static final int OBJECT_SIZE_FIELD_NUMBER
public static final int DONE_FIELD_NUMBER
public static final int REWRITE_TOKEN_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 RewriteResponseOrBuilderpublic 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 RewriteResponseOrBuilderpublic 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 RewriteResponseOrBuilderpublic 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 RewriteResponseOrBuilderpublic 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 RewriteResponseOrBuilderpublic 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 RewriteResponseOrBuilderpublic 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 RewriteResponseOrBuilderpublic 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 RewriteResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RewriteResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RewriteResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RewriteResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RewriteResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RewriteResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RewriteResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RewriteResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static RewriteResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RewriteResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RewriteResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RewriteResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RewriteResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RewriteResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RewriteResponse.Builder newBuilder()
public static RewriteResponse.Builder newBuilder(RewriteResponse prototype)
public RewriteResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RewriteResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RewriteResponse getDefaultInstance()
public static com.google.protobuf.Parser<RewriteResponse> parser()
public com.google.protobuf.Parser<RewriteResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RewriteResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.