Class ReadObjectResponse (2.22.2)

public final class ReadObjectResponse extends GeneratedMessageV3 implements ReadObjectResponseOrBuilder

Response message for ReadObject.

Protobuf type google.storage.v2.ReadObjectResponse

Static Fields

CHECKSUMMED_DATA_FIELD_NUMBER

public static final int CHECKSUMMED_DATA_FIELD_NUMBER
Field Value
TypeDescription
int

CONTENT_RANGE_FIELD_NUMBER

public static final int CONTENT_RANGE_FIELD_NUMBER
Field Value
TypeDescription
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

OBJECT_CHECKSUMS_FIELD_NUMBER

public static final int OBJECT_CHECKSUMS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ReadObjectResponse getDefaultInstance()
Returns
TypeDescription
ReadObjectResponse

getDescriptor()

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

newBuilder()

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

newBuilder(ReadObjectResponse prototype)

public static ReadObjectResponse.Builder newBuilder(ReadObjectResponse prototype)
Parameter
NameDescription
prototypeReadObjectResponse
Returns
TypeDescription
ReadObjectResponse.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getChecksummedData()

public ChecksummedData getChecksummedData()

A portion of the data for the object. The service may leave data empty for any given ReadResponse. This enables the service to inform the client that the request is still live while it is running an operation to generate more data.

.google.storage.v2.ChecksummedData checksummed_data = 1;

Returns
TypeDescription
ChecksummedData

The checksummedData.

getChecksummedDataOrBuilder()

public ChecksummedDataOrBuilder getChecksummedDataOrBuilder()

A portion of the data for the object. The service may leave data empty for any given ReadResponse. This enables the service to inform the client that the request is still live while it is running an operation to generate more data.

.google.storage.v2.ChecksummedData checksummed_data = 1;

Returns
TypeDescription
ChecksummedDataOrBuilder

getContentRange()

public ContentRange getContentRange()

If read_offset and or read_limit was specified on the ReadObjectRequest, ContentRange will be populated on the first ReadObjectResponse message of the read stream.

.google.storage.v2.ContentRange content_range = 3;

Returns
TypeDescription
ContentRange

The contentRange.

getContentRangeOrBuilder()

public ContentRangeOrBuilder getContentRangeOrBuilder()

If read_offset and or read_limit was specified on the ReadObjectRequest, ContentRange will be populated on the first ReadObjectResponse message of the read stream.

.google.storage.v2.ContentRange content_range = 3;

Returns
TypeDescription
ContentRangeOrBuilder

getDefaultInstanceForType()

public ReadObjectResponse getDefaultInstanceForType()
Returns
TypeDescription
ReadObjectResponse

getMetadata()

public Object getMetadata()

Metadata of the object whose media is being returned. Only populated in the first response in the stream.

.google.storage.v2.Object metadata = 4;

Returns
TypeDescription
Object

The metadata.

getMetadataOrBuilder()

public ObjectOrBuilder getMetadataOrBuilder()

Metadata of the object whose media is being returned. Only populated in the first response in the stream.

.google.storage.v2.Object metadata = 4;

Returns
TypeDescription
ObjectOrBuilder

getObjectChecksums()

public ObjectChecksums getObjectChecksums()

The checksums of the complete object. The client should compute one of these checksums over the downloaded object and compare it against the value provided here.

.google.storage.v2.ObjectChecksums object_checksums = 2;

Returns
TypeDescription
ObjectChecksums

The objectChecksums.

getObjectChecksumsOrBuilder()

public ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder()

The checksums of the complete object. The client should compute one of these checksums over the downloaded object and compare it against the value provided here.

.google.storage.v2.ObjectChecksums object_checksums = 2;

Returns
TypeDescription
ObjectChecksumsOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasChecksummedData()

public boolean hasChecksummedData()

A portion of the data for the object. The service may leave data empty for any given ReadResponse. This enables the service to inform the client that the request is still live while it is running an operation to generate more data.

.google.storage.v2.ChecksummedData checksummed_data = 1;

Returns
TypeDescription
boolean

Whether the checksummedData field is set.

hasContentRange()

public boolean hasContentRange()

If read_offset and or read_limit was specified on the ReadObjectRequest, ContentRange will be populated on the first ReadObjectResponse message of the read stream.

.google.storage.v2.ContentRange content_range = 3;

Returns
TypeDescription
boolean

Whether the contentRange field is set.

hasMetadata()

public boolean hasMetadata()

Metadata of the object whose media is being returned. Only populated in the first response in the stream.

.google.storage.v2.Object metadata = 4;

Returns
TypeDescription
boolean

Whether the metadata field is set.

hasObjectChecksums()

public boolean hasObjectChecksums()

The checksums of the complete object. The client should compute one of these checksums over the downloaded object and compare it against the value provided here.

.google.storage.v2.ObjectChecksums object_checksums = 2;

Returns
TypeDescription
boolean

Whether the objectChecksums 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 ReadObjectResponse.Builder newBuilderForType()
Returns
TypeDescription
ReadObjectResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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