Class BidiBlobWriteSessionConfig

java.lang.Object
com.google.cloud.storage.BlobWriteSessionConfig
com.google.cloud.storage.BidiBlobWriteSessionConfig
All Implemented Interfaces:
Serializable

@Immutable @BetaApi @TransportCompatibility(GRPC) public final class BidiBlobWriteSessionConfig extends BlobWriteSessionConfig
Perform a resumable upload, uploading at most bufferSize bytes each flush.

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

Since:
2.34.0 This new api is in preview and is subject to breaking changes.
See Also:
  • Method Details

    • getBufferSize

      public int getBufferSize()
      The number of bytes to hold in the buffer before each flush

      Default: 16777216 (16 MiB)

      Since:
      2.34.0 This new api is in preview and is subject to breaking changes.
      See Also:
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in class BlobWriteSessionConfig
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class BlobWriteSessionConfig
    • withBufferSize

      @BetaApi public BidiBlobWriteSessionConfig withBufferSize(int bufferSize)
      Create a new instance with the bufferSize set to the specified value.

      Default: 16777216 (16 MiB)

      Parameters:
      bufferSize - The number of bytes to hold in the buffer before each flush. Must be >= 262144 (256 KiB)
      Returns:
      The new instance
      Since:
      2.34.0 This new api is in preview and is subject to breaking changes.
      See Also: