Class RewriteResponse (2.45.0)

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
Type Description
int

OBJECT_SIZE_FIELD_NUMBER

public static final int OBJECT_SIZE_FIELD_NUMBER
Field Value
Type Description
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

REWRITE_TOKEN_FIELD_NUMBER

public static final int REWRITE_TOKEN_FIELD_NUMBER
Field Value
Type Description
int

TOTAL_BYTES_REWRITTEN_FIELD_NUMBER

public static final int TOTAL_BYTES_REWRITTEN_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RewriteResponse getDefaultInstance()
Returns
Type Description
RewriteResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static RewriteResponse.Builder newBuilder()
Returns
Type Description
RewriteResponse.Builder

newBuilder(RewriteResponse prototype)

public static RewriteResponse.Builder newBuilder(RewriteResponse prototype)
Parameter
Name Description
prototype RewriteResponse
Returns
Type Description
RewriteResponse.Builder

parseDelimitedFrom(InputStream input)

public static RewriteResponse parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RewriteResponse
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RewriteResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RewriteResponse
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RewriteResponse parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RewriteResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RewriteResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RewriteResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RewriteResponse parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RewriteResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RewriteResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RewriteResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RewriteResponse parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RewriteResponse
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RewriteResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RewriteResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RewriteResponse parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RewriteResponse
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RewriteResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RewriteResponse
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RewriteResponse parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RewriteResponse
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RewriteResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RewriteResponse
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RewriteResponse> parser()
Returns
Type Description
Parser<RewriteResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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

Returns
Type Description
long

The objectSize.

getParserForType()

public Parser<RewriteResponse> getParserForType()
Returns
Type Description
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
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;

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

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

Returns
Type Description
ByteString

The bytes for rewriteToken.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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
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;

Returns
Type Description
boolean

Whether the resource field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RewriteResponse.Builder newBuilderForType()
Returns
Type Description
RewriteResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RewriteResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RewriteResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RewriteResponse.Builder toBuilder()
Returns
Type Description
RewriteResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException