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
CONTENT_RANGE_FIELD_NUMBER
public static final int CONTENT_RANGE_FIELD_NUMBER
Field Value
public static final int METADATA_FIELD_NUMBER
Field Value
OBJECT_CHECKSUMS_FIELD_NUMBER
public static final int OBJECT_CHECKSUMS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ReadObjectResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ReadObjectResponse.Builder newBuilder()
Returns
newBuilder(ReadObjectResponse prototype)
public static ReadObjectResponse.Builder newBuilder(ReadObjectResponse prototype)
Parameter
Returns
public static ReadObjectResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ReadObjectResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ReadObjectResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ReadObjectResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ReadObjectResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ReadObjectResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ReadObjectResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ReadObjectResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ReadObjectResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ReadObjectResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ReadObjectResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ReadObjectResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ReadObjectResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
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
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
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
getDefaultInstanceForType()
public ReadObjectResponse getDefaultInstanceForType()
Returns
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
Type | Description |
Object | The metadata.
|
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
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
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
getParserForType()
public Parser<ReadObjectResponse> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
Type | Description |
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
Type | Description |
boolean | Whether the contentRange field is set.
|
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
Type | Description |
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
Type | Description |
boolean | Whether the objectChecksums field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ReadObjectResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ReadObjectResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ReadObjectResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions