public final class ReadObjectResponse extends GeneratedMessageV3 implements ReadObjectResponseOrBuilder
Response message for ReadObject.
Protobuf type google.storage.v2.ReadObjectResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
CHECKSUMMED_DATA_FIELD_NUMBER
public static final int CHECKSUMMED_DATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CONTENT_RANGE_FIELD_NUMBER
public static final int CONTENT_RANGE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
public static final int METADATA_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
OBJECT_CHECKSUMS_FIELD_NUMBER
public static final int OBJECT_CHECKSUMS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static ReadObjectResponse getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static ReadObjectResponse.Builder newBuilder()
newBuilder(ReadObjectResponse prototype)
public static ReadObjectResponse.Builder newBuilder(ReadObjectResponse prototype)
public static ReadObjectResponse parseDelimitedFrom(InputStream input)
public static ReadObjectResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static ReadObjectResponse parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ReadObjectResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static ReadObjectResponse parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ReadObjectResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ReadObjectResponse parseFrom(CodedInputStream input)
public static ReadObjectResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ReadObjectResponse parseFrom(InputStream input)
public static ReadObjectResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static ReadObjectResponse parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ReadObjectResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<ReadObjectResponse> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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;
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;
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;
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;
getDefaultInstanceForType()
public ReadObjectResponse getDefaultInstanceForType()
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;
getObjectChecksums()
public ObjectChecksums getObjectChecksums()
The checksums of the complete object. If the object is downloaded in full,
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;
getObjectChecksumsOrBuilder()
public ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder()
The checksums of the complete object. If the object is downloaded in full,
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;
getParserForType()
public Parser<ReadObjectResponse> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
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. If the object is downloaded in full,
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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public ReadObjectResponse.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ReadObjectResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public ReadObjectResponse.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides