Class WriteObjectResponse (2.27.1-SNAPSHOT)

public final class WriteObjectResponse extends GeneratedMessageV3 implements WriteObjectResponseOrBuilder

Response message for WriteObject.

Protobuf type google.storage.v2.WriteObjectResponse

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 WriteObjectResponse getDefaultInstance()
Returns
TypeDescription
WriteObjectResponse

getDescriptor()

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

newBuilder()

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

newBuilder(WriteObjectResponse prototype)

public static WriteObjectResponse.Builder newBuilder(WriteObjectResponse prototype)
Parameter
NameDescription
prototypeWriteObjectResponse
Returns
TypeDescription
WriteObjectResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public WriteObjectResponse getDefaultInstanceForType()
Returns
TypeDescription
WriteObjectResponse

getParserForType()

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

getPersistedSize()

public long getPersistedSize()

The total number of bytes that have been processed for the given object from all WriteObject calls. 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

getWriteStatusCase()

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

hasPersistedSize()

public boolean hasPersistedSize()

The total number of bytes that have been processed for the given object from all WriteObject calls. 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 WriteObjectResponse.Builder newBuilderForType()
Returns
TypeDescription
WriteObjectResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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