Class ReadObjectResponse.Builder (2.12.0)

public static final class ReadObjectResponse.Builder extends GeneratedMessageV3.Builder<ReadObjectResponse.Builder> implements ReadObjectResponseOrBuilder

Response message for ReadObject.

Protobuf type google.storage.v2.ReadObjectResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReadObjectResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReadObjectResponse.Builder
Overrides

build()

public ReadObjectResponse build()
Returns
Type Description
ReadObjectResponse

buildPartial()

public ReadObjectResponse buildPartial()
Returns
Type Description
ReadObjectResponse

clear()

public ReadObjectResponse.Builder clear()
Returns
Type Description
ReadObjectResponse.Builder
Overrides

clearChecksummedData()

public ReadObjectResponse.Builder clearChecksummedData()

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
ReadObjectResponse.Builder

clearContentRange()

public ReadObjectResponse.Builder clearContentRange()

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
ReadObjectResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ReadObjectResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReadObjectResponse.Builder
Overrides

clearMetadata()

public ReadObjectResponse.Builder clearMetadata()

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
ReadObjectResponse.Builder

clearObjectChecksums()

public ReadObjectResponse.Builder clearObjectChecksums()

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
ReadObjectResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ReadObjectResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ReadObjectResponse.Builder
Overrides

clone()

public ReadObjectResponse.Builder clone()
Returns
Type Description
ReadObjectResponse.Builder
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
Type Description
ChecksummedData

The checksummedData.

getChecksummedDataBuilder()

public ChecksummedData.Builder getChecksummedDataBuilder()

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
ChecksummedData.Builder

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
Type Description
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
Type Description
ContentRange

The contentRange.

getContentRangeBuilder()

public ContentRange.Builder getContentRangeBuilder()

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
ContentRange.Builder

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
Type Description
ContentRangeOrBuilder

getDefaultInstanceForType()

public ReadObjectResponse getDefaultInstanceForType()
Returns
Type Description
ReadObjectResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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
Type Description
Object

The metadata.

getMetadataBuilder()

public Object.Builder getMetadataBuilder()

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.Builder

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
Type Description
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
Type Description
ObjectChecksums

The objectChecksums.

getObjectChecksumsBuilder()

public ObjectChecksums.Builder getObjectChecksumsBuilder()

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
ObjectChecksums.Builder

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
Type Description
ObjectChecksumsOrBuilder

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.

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
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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeChecksummedData(ChecksummedData value)

public ReadObjectResponse.Builder mergeChecksummedData(ChecksummedData value)

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;

Parameter
Name Description
value ChecksummedData
Returns
Type Description
ReadObjectResponse.Builder

mergeContentRange(ContentRange value)

public ReadObjectResponse.Builder mergeContentRange(ContentRange value)

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;

Parameter
Name Description
value ContentRange
Returns
Type Description
ReadObjectResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReadObjectResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ReadObjectResponse.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public ReadObjectResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ReadObjectResponse.Builder
Overrides

mergeFrom(ReadObjectResponse other)

public ReadObjectResponse.Builder mergeFrom(ReadObjectResponse other)
Parameter
Name Description
other ReadObjectResponse
Returns
Type Description
ReadObjectResponse.Builder

mergeMetadata(Object value)

public ReadObjectResponse.Builder mergeMetadata(Object value)

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

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

Parameter
Name Description
value Object
Returns
Type Description
ReadObjectResponse.Builder

mergeObjectChecksums(ObjectChecksums value)

public ReadObjectResponse.Builder mergeObjectChecksums(ObjectChecksums value)

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;

Parameter
Name Description
value ObjectChecksums
Returns
Type Description
ReadObjectResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReadObjectResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReadObjectResponse.Builder
Overrides

setChecksummedData(ChecksummedData value)

public ReadObjectResponse.Builder setChecksummedData(ChecksummedData value)

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;

Parameter
Name Description
value ChecksummedData
Returns
Type Description
ReadObjectResponse.Builder

setChecksummedData(ChecksummedData.Builder builderForValue)

public ReadObjectResponse.Builder setChecksummedData(ChecksummedData.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ChecksummedData.Builder
Returns
Type Description
ReadObjectResponse.Builder

setContentRange(ContentRange value)

public ReadObjectResponse.Builder setContentRange(ContentRange value)

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;

Parameter
Name Description
value ContentRange
Returns
Type Description
ReadObjectResponse.Builder

setContentRange(ContentRange.Builder builderForValue)

public ReadObjectResponse.Builder setContentRange(ContentRange.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ContentRange.Builder
Returns
Type Description
ReadObjectResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ReadObjectResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReadObjectResponse.Builder
Overrides

setMetadata(Object value)

public ReadObjectResponse.Builder setMetadata(Object value)

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

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

Parameter
Name Description
value Object
Returns
Type Description
ReadObjectResponse.Builder

setMetadata(Object.Builder builderForValue)

public ReadObjectResponse.Builder setMetadata(Object.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Object.Builder
Returns
Type Description
ReadObjectResponse.Builder

setObjectChecksums(ObjectChecksums value)

public ReadObjectResponse.Builder setObjectChecksums(ObjectChecksums value)

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;

Parameter
Name Description
value ObjectChecksums
Returns
Type Description
ReadObjectResponse.Builder

setObjectChecksums(ObjectChecksums.Builder builderForValue)

public ReadObjectResponse.Builder setObjectChecksums(ObjectChecksums.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ObjectChecksums.Builder
Returns
Type Description
ReadObjectResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ReadObjectResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ReadObjectResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReadObjectResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReadObjectResponse.Builder
Overrides