public interface BatchJobUploadBodyProvider
Modifier and Type | Method and Description |
---|---|
com.google.api.client.http.ByteArrayContent |
getHttpContent(BatchJobMutateRequestInterface request,
boolean isFirstRequest,
boolean isLastRequest)
Returns the batch job upload operations as
ByteArrayContent . |
com.google.api.client.http.ByteArrayContent getHttpContent(BatchJobMutateRequestInterface request, boolean isFirstRequest, boolean isLastRequest) throws BatchJobException
ByteArrayContent
. The return type
is ByteArrayContent
to allow utilities to get the content length or log
the contents without consuming the stream.request
- the mutate requestisFirstRequest
- if this is the first request (for resumable uploads)isLastRequest
- if this is the last request (for resumable uploads)ByteArrayContent
BatchJobException
Copyright © 2018. All Rights Reserved.