Class ChunkUploadRequest (2.87.0)
Stay organized with collections
Save and categorize content based on your preferences.
public abstract class ChunkUploadRequest
Request value object for uploading a chunk to an active resumable upload session.
Static Methods
newBuilder()
public static ChunkUploadRequest.Builder newBuilder()
Constructors
ChunkUploadRequest()
public ChunkUploadRequest()
Methods
getOffset()
public abstract long getOffset()
The byte offset of this chunk in the overall stream.
| Returns |
| Type |
Description |
long |
|
getPayload()
public abstract byte[] getPayload()
The binary chunk payload to upload.
| Returns |
| Type |
Description |
byte[] |
|
getUploadUrl()
public abstract String getUploadUrl()
The upload session URL returned during session initialization.
| Returns |
| Type |
Description |
String |
|
isFinal()
public abstract boolean isFinal()
Whether this is the final chunk in the stream.
toBuilder()
public abstract ChunkUploadRequest.Builder toBuilder()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-10-05 UTC.
[null,null,["Last updated 2026-10-05 UTC."],[],[]]