Class ReadAsFutureBytes (2.52.2)

public final class ReadAsFutureBytes extends ReadProjectionConfigs.BaseConfig<ApiFuture<byte[]>,BaseObjectReadSessionStreamRead.AccumulatingRead<byte[]>>

Read a range of bytes as an ApiFuture<byte[]>

Instances of this class are immutable and thread safe. See Also: <xref uid="com.google.cloud.storage.BlobReadSession.<Projection>readAs(com.google.cloud.storage.ReadProjectionConfig<Projection>)" data-throw-if-not-resolved="false">BlobReadSession#readAs(ReadProjectionConfig), ReadProjectionConfigs#asFutureBytes()

Inheritance

Object > ReadProjectionConfig<Projection> > com.google.cloud.storage.ReadProjectionConfigs.BaseConfig > ReadAsFutureBytes

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getRange()

public RangeSpec getRange()

The RangeSpec to be used for any read using this instance.

Default: RangeSpec#all()

Returns
Type Description
RangeSpec

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides

withRangeSpec(RangeSpec range)

public ReadAsFutureBytes withRangeSpec(RangeSpec range)

Return an instance with the RangeSpec set to the specified value.

Default: RangeSpec#all() See Also: #getRange()

Parameter
Name Description
range RangeSpec

The RangeSpec to be used for any read using the returned instance. Must be non-null.

Returns
Type Description
ReadAsFutureBytes