public abstract class ResumableUploadSessionRepresents the session metadata returned after starting a resumable upload.
Static Methods
newBuilder()
public static ResumableUploadSession.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
ResumableUploadSession.Builder |
|
Constructors
ResumableUploadSession()
public ResumableUploadSession()Methods
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 | |
|---|---|
| Type | Description |
long |
the chunk granularity in bytes |
getUploadUrl()
public abstract String getUploadUrl()Returns the server-provided URL to which data uploads are directed.
| Returns | |
|---|---|
| Type | Description |
String |
|
toBuilder()
public abstract ResumableUploadSession.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
ResumableUploadSession.Builder |
|