public final class RewriteResponse extends GeneratedMessageV3 implements RewriteResponseOrBuilder
A rewrite response.
Protobuf type google.storage.v2.RewriteResponse
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > RewriteResponseImplements
RewriteResponseOrBuilderStatic Fields
DONE_FIELD_NUMBER
public static final int DONE_FIELD_NUMBER
Type | Description |
int |
OBJECT_SIZE_FIELD_NUMBER
public static final int OBJECT_SIZE_FIELD_NUMBER
Type | Description |
int |
RESOURCE_FIELD_NUMBER
public static final int RESOURCE_FIELD_NUMBER
Type | Description |
int |
REWRITE_TOKEN_FIELD_NUMBER
public static final int REWRITE_TOKEN_FIELD_NUMBER
Type | Description |
int |
TOTAL_BYTES_REWRITTEN_FIELD_NUMBER
public static final int TOTAL_BYTES_REWRITTEN_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static RewriteResponse getDefaultInstance()
Type | Description |
RewriteResponse |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static RewriteResponse.Builder newBuilder()
Type | Description |
RewriteResponse.Builder |
newBuilder(RewriteResponse prototype)
public static RewriteResponse.Builder newBuilder(RewriteResponse prototype)
Name | Description |
prototype | RewriteResponse |
Type | Description |
RewriteResponse.Builder |
parseDelimitedFrom(InputStream input)
public static RewriteResponse parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
RewriteResponse |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RewriteResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RewriteResponse |
Type | Description |
IOException |
parseFrom(byte[] data)
public static RewriteResponse parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
RewriteResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static RewriteResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RewriteResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static RewriteResponse parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
RewriteResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static RewriteResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RewriteResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static RewriteResponse parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
RewriteResponse |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static RewriteResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RewriteResponse |
Type | Description |
IOException |
parseFrom(InputStream input)
public static RewriteResponse parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
RewriteResponse |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static RewriteResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RewriteResponse |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static RewriteResponse parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
RewriteResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static RewriteResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
RewriteResponse |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<RewriteResponse> parser()
Type | Description |
Parser<RewriteResponse> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public RewriteResponse getDefaultInstanceForType()
Type | Description |
RewriteResponse |
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. |
getParserForType()
public Parser<RewriteResponse> getParserForType()
Type | Description |
Parser<RewriteResponse> |
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. |
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. |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
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. |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public RewriteResponse.Builder newBuilderForType()
Type | Description |
RewriteResponse.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected RewriteResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
RewriteResponse.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public RewriteResponse.Builder toBuilder()
Type | Description |
RewriteResponse.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |