Package com.google.api.gax.resumable
Class QueryStatusResponse<ResponseT>
java.lang.Object
com.google.api.gax.resumable.QueryStatusResponse<ResponseT>
- Type Parameters:
ResponseT- response type of the upload operation
@NullMarked
@BetaApi
@InternalApi
public abstract class QueryStatusResponse<ResponseT>
extends Object
Response value object representing the status and committed offset of a resumable upload session.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract @Nullable LongThe total number of bytes successfully received and committed by the server so far, ornullif the server did not return a committed offset (e.g. if the upload is already finalized).abstract @Nullable ResponseTThe response object returned by the server upon final completion (e.g. metadata of the uploaded resource), ornullif the upload is still in progress.abstract booleanWhether the resumable upload session has finalized and completed on the server.static <ResponseT>
QueryStatusResponse.Builder<ResponseT>abstract QueryStatusResponse.Builder<ResponseT>
-
Constructor Details
-
QueryStatusResponse
public QueryStatusResponse()
-
-
Method Details
-
getCommittedOffset
The total number of bytes successfully received and committed by the server so far, ornullif the server did not return a committed offset (e.g. if the upload is already finalized).When
isComplete()isfalse, this value is guaranteed to be non-null and represents the starting offset for resuming the upload. -
isComplete
public abstract boolean isComplete()Whether the resumable upload session has finalized and completed on the server. -
getResponse
The response object returned by the server upon final completion (e.g. metadata of the uploaded resource), ornullif the upload is still in progress. -
toBuilder
-
newBuilder
-