Class QueryStatusResponse<ResponseT> (2.87.0)

public abstract class QueryStatusResponse<ResponseT>

Response value object representing the status and committed offset of a resumable upload session.

Inheritance

java.lang.Object > QueryStatusResponse<ResponseT>

Type Parameter

Name Description
ResponseT

Static Methods

<ResponseT>newBuilder()

public static QueryStatusResponse.Builder<ResponseT> <ResponseT>newBuilder()
Returns
Type Description
Builder<ResponseT>

Constructors

QueryStatusResponse()

public QueryStatusResponse()

Methods

getCommittedOffset()

public abstract @Nullable Long getCommittedOffset()

The total number of bytes successfully received and committed by the server so far, or null if the server did not return a committed offset (e.g. if the upload is already finalized).

When #getUploadStatus() is ResumableUploadStatus#ACTIVE, this value is guaranteed to be non-null and represents the starting offset for resuming the upload.

Returns
Type Description
@org.jspecify.annotations.Nullable java.lang.Long

getResponse()

public abstract @Nullable ResponseT getResponse()

The response object returned by the server upon final completion (e.g. metadata of the uploaded resource), or null if the upload is still in progress.

Returns
Type Description
@org.jspecify.annotations.Nullable ResponseT

getUploadStatus()

public abstract ResumableUploadStatus getUploadStatus()

Returns the status of the upload session returned by the server.

Returns
Type Description
ResumableUploadStatus

toBuilder()

public abstract QueryStatusResponse.Builder<ResponseT> toBuilder()
Returns
Type Description
Builder<ResponseT>