Class ResumableUploadSession

java.lang.Object
com.google.api.gax.resumable.ResumableUploadSession

@NullMarked @BetaApi @InternalApi public abstract class ResumableUploadSession extends Object
Represents the session metadata returned after starting a resumable upload.
  • Constructor Details

    • ResumableUploadSession

      public ResumableUploadSession()
  • Method Details

    • getUploadUrl

      public abstract String getUploadUrl()
      Returns the server-provided URL to which data uploads are directed.
    • getChunkGranularity

      public abstract long getChunkGranularity()
      Returns the server-mandated chunk granularity in bytes.

      When specified by the server (via X-Goog-Upload-Chunk-Granularity), intermediate upload chunks must have a size and offset that are an exact multiple of this value (the final chunk may be smaller). If not specified by the server, this defaults to 1 byte, indicating no alignment or granularity requirements apply.

      Returns:
      the chunk granularity in bytes
    • toBuilder

      public abstract ResumableUploadSession.Builder toBuilder()
    • newBuilder

      public static ResumableUploadSession.Builder newBuilder()