Package com.google.api.gax.resumable
Class ChunkUploadResponse<ResponseT>
java.lang.Object
com.google.api.gax.resumable.ChunkUploadResponse<ResponseT>
- Type Parameters:
ResponseT- response type of the upload operation
@NullMarked
@BetaApi
@InternalApi
public abstract class ChunkUploadResponse<ResponseT>
extends Object
Response value object representing the outcome of a chunk upload.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <ResponseT>
ChunkUploadResponse<ResponseT>create(boolean isComplete, @Nullable ResponseT response) 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 overall resumable upload stream has finalized and completed on the server.static <ResponseT>
ChunkUploadResponse.Builder<ResponseT>abstract ChunkUploadResponse.Builder<ResponseT>
-
Constructor Details
-
ChunkUploadResponse
public ChunkUploadResponse()
-
-
Method Details
-
isComplete
public abstract boolean isComplete()Whether the overall resumable upload stream 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
-
create
public static <ResponseT> ChunkUploadResponse<ResponseT> create(boolean isComplete, @Nullable ResponseT response)
-