Class QueryWriteStatusResponse (2.22.0)

public final class QueryWriteStatusResponse extends GeneratedMessageV3 implements QueryWriteStatusResponseOrBuilder

Response object for QueryWriteStatus.

Protobuf type google.storage.v2.QueryWriteStatusResponse

Static Fields

PERSISTED_SIZE_FIELD_NUMBER

public static final int PERSISTED_SIZE_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static QueryWriteStatusResponse getDefaultInstance()
Returns
TypeDescription
QueryWriteStatusResponse

getDescriptor()

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

newBuilder()

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

newBuilder(QueryWriteStatusResponse prototype)

public static QueryWriteStatusResponse.Builder newBuilder(QueryWriteStatusResponse prototype)
Parameter
NameDescription
prototypeQueryWriteStatusResponse
Returns
TypeDescription
QueryWriteStatusResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public QueryWriteStatusResponse getDefaultInstanceForType()
Returns
TypeDescription
QueryWriteStatusResponse

getParserForType()

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

getPersistedSize()

public long getPersistedSize()

The total number of bytes that have been processed for the given object from all WriteObject calls. This is the correct value for the 'write_offset' field to use when resuming the WriteObject operation. Only set if the upload has not finalized.

int64 persisted_size = 1;

Returns
TypeDescription
long

The persistedSize.

getResource()

public Object getResource()

A resource containing the metadata for the uploaded object. Only set if the upload has finalized.

.google.storage.v2.Object resource = 2;

Returns
TypeDescription
Object

The resource.

getResourceOrBuilder()

public ObjectOrBuilder getResourceOrBuilder()

A resource containing the metadata for the uploaded object. Only set if the upload has finalized.

.google.storage.v2.Object resource = 2;

Returns
TypeDescription
ObjectOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getWriteStatusCase()

public QueryWriteStatusResponse.WriteStatusCase getWriteStatusCase()
Returns
TypeDescription
QueryWriteStatusResponse.WriteStatusCase

hasPersistedSize()

public boolean hasPersistedSize()

The total number of bytes that have been processed for the given object from all WriteObject calls. This is the correct value for the 'write_offset' field to use when resuming the WriteObject operation. Only set if the upload has not finalized.

int64 persisted_size = 1;

Returns
TypeDescription
boolean

Whether the persistedSize field is set.

hasResource()

public boolean hasResource()

A resource containing the metadata for the uploaded object. Only set if the upload has finalized.

.google.storage.v2.Object resource = 2;

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 QueryWriteStatusResponse.Builder newBuilderForType()
Returns
TypeDescription
QueryWriteStatusResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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