Class RewriteResponse (2.22.3)

public final class RewriteResponse extends GeneratedMessageV3 implements RewriteResponseOrBuilder

A rewrite response.

Protobuf type google.storage.v2.RewriteResponse

Static Fields

DONE_FIELD_NUMBER

public static final int DONE_FIELD_NUMBER
Field Value
TypeDescription
int

OBJECT_SIZE_FIELD_NUMBER

public static final int OBJECT_SIZE_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

REWRITE_TOKEN_FIELD_NUMBER

public static final int REWRITE_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int

TOTAL_BYTES_REWRITTEN_FIELD_NUMBER

public static final int TOTAL_BYTES_REWRITTEN_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RewriteResponse getDefaultInstance()
Returns
TypeDescription
RewriteResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RewriteResponse.Builder newBuilder()
Returns
TypeDescription
RewriteResponse.Builder

newBuilder(RewriteResponse prototype)

public static RewriteResponse.Builder newBuilder(RewriteResponse prototype)
Parameter
NameDescription
prototypeRewriteResponse
Returns
TypeDescription
RewriteResponse.Builder

parseDelimitedFrom(InputStream input)

public static RewriteResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RewriteResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RewriteResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RewriteResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RewriteResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RewriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RewriteResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RewriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RewriteResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RewriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RewriteResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RewriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RewriteResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RewriteResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RewriteResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RewriteResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RewriteResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RewriteResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RewriteResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RewriteResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RewriteResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RewriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RewriteResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RewriteResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RewriteResponse> parser()
Returns
TypeDescription
Parser<RewriteResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RewriteResponse getDefaultInstanceForType()
Returns
TypeDescription
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;

Returns
TypeDescription
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
TypeDescription
long

The objectSize.

getParserForType()

public Parser<RewriteResponse> getParserForType()
Returns
TypeDescription
Parser<RewriteResponse>
Overrides

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
TypeDescription
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;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for rewriteToken.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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
TypeDescription
long

The totalBytesRewritten.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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
TypeDescription
boolean

Whether the resource field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RewriteResponse.Builder newBuilderForType()
Returns
TypeDescription
RewriteResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RewriteResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RewriteResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RewriteResponse.Builder toBuilder()
Returns
TypeDescription
RewriteResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException