Class BidiBlobWriteSessionConfig (2.43.1)

public final class BidiBlobWriteSessionConfig extends BlobWriteSessionConfig implements BlobWriteSessionConfig.GrpcCompatible

Perform a resumable upload, uploading at most bufferSize bytes each flush.

Configuration of buffer size can be performed via BidiBlobWriteSessionConfig#withBufferSize(int).

Inheritance

Object > BlobWriteSessionConfig > BidiBlobWriteSessionConfig

Implements

com.google.cloud.storage.BlobWriteSessionConfig.GrpcCompatible

Methods

equals(Object o)

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

getBufferSize()

public int getBufferSize()

The number of bytes to hold in the buffer before each flush

Default: 16777216 (16 MiB) See Also: #withBufferSize(int)

Returns
Type Description
int

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

withBufferSize(int bufferSize)

public BidiBlobWriteSessionConfig withBufferSize(int bufferSize)

Create a new instance with the bufferSize set to the specified value.

Default: 16777216 (16 MiB) See Also: #getBufferSize()

Parameter
Name Description
bufferSize int

The number of bytes to hold in the buffer before each flush. Must be >= 262144 (256 KiB)

Returns
Type Description
BidiBlobWriteSessionConfig

The new instance