Class ReadObjectResponse.Builder (2.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReadObjectResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReadObjectResponse.Builder
Overrides

build()

public ReadObjectResponse build()
Returns
TypeDescription
ReadObjectResponse

buildPartial()

public ReadObjectResponse buildPartial()
Returns
TypeDescription
ReadObjectResponse

clear()

public ReadObjectResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReadObjectResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ReadObjectResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReadObjectResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ReadObjectResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ReadObjectResponse.Builder
Overrides

clone()

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

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
TypeDescription
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
TypeDescription
ContentRangeOrBuilder

getDefaultInstanceForType()

public ReadObjectResponse getDefaultInstanceForType()
Returns
TypeDescription
ReadObjectResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
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.

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueChecksummedData
Returns
TypeDescription
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
NameDescription
valueContentRange
Returns
TypeDescription
ReadObjectResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReadObjectResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReadObjectResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ReadObjectResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ReadObjectResponse.Builder
Overrides

mergeFrom(ReadObjectResponse other)

public ReadObjectResponse.Builder mergeFrom(ReadObjectResponse other)
Parameter
NameDescription
otherReadObjectResponse
Returns
TypeDescription
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
NameDescription
valueObject
Returns
TypeDescription
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
NameDescription
valueObjectChecksums
Returns
TypeDescription
ReadObjectResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReadObjectResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueChecksummedData
Returns
TypeDescription
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
NameDescription
builderForValueChecksummedData.Builder
Returns
TypeDescription
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
NameDescription
valueContentRange
Returns
TypeDescription
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
NameDescription
builderForValueContentRange.Builder
Returns
TypeDescription
ReadObjectResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ReadObjectResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueObject
Returns
TypeDescription
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
NameDescription
builderForValueObject.Builder
Returns
TypeDescription
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
NameDescription
valueObjectChecksums
Returns
TypeDescription
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
NameDescription
builderForValueObjectChecksums.Builder
Returns
TypeDescription
ReadObjectResponse.Builder

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

public ReadObjectResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ReadObjectResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ReadObjectResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReadObjectResponse.Builder
Overrides