Package com.google.api.gax.resumable
Class ResumableUploadSession
java.lang.Object
com.google.api.gax.resumable.ResumableUploadSession
Represents the session metadata returned after starting a resumable upload.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract longReturns the server-mandated chunk granularity in bytes.abstract StringReturns the server-provided URL to which data uploads are directed.abstract ResumableUploadSession.Builder
-
Constructor Details
-
ResumableUploadSession
public ResumableUploadSession()
-
-
Method Details
-
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
-
newBuilder
-