Struct googapis::google::devtools::resultstore::v2::UploadBatchRequest [−][src]
pub struct UploadBatchRequest {
pub parent: String,
pub authorization_token: String,
pub next_resume_token: String,
pub resume_token: String,
pub uploader_state: Vec<u8>,
pub upload_requests: Vec<UploadRequest>,
}
Expand description
Request passed into UploadBatch
Fields
parent: String
Required. The name of the invocation being modified. The name format must be: invocations/${INVOCATION_ID}
Required. A UUID that must match the value provided in CreateInvocationRequest.
next_resume_token: String
Required. The token of this batch, that will be committed in this UploadBatchRequest. If this matches the previously uploaded resume_token, then this request will silently do nothing. See CreateInvocationRequest.initial_resume_token for more information. Must be web safe Base64 encoded bytes.
resume_token: String
Required. The token of the previous batch that was committed in a UploadBatchRequest. This will be checked after next_resume_token match is checked. If this does not match the previously uploaded resume_token, a 409 Conflict (HTTPS) or ABORTED (gRPC ) error code indicating a concurrency failure will be returned, and that the user should call GetInvocationUploadMetadata to fetch the current resume_token to reconstruct the state of the upload to resume it. See CreateInvocationRequest.initial_resume_token for more information. Must be web safe Base64 encoded bytes.
uploader_state: Vec<u8>
Client-specific data used to resume batch upload if an error occurs and retry is needed. This serves a role closely related to resume_token, as both fields may be used to provide state required to restore a Batch Upload, but they differ in two important aspects:
- it is not compared to previous values, and as such does not provide concurrency control;
- it allows for a larger payload, since the contents are never inspected/compared; The size of the message must be within 1 MiB. Too large requests will be rejected.
upload_requests: Vec<UploadRequest>
The individual upload requests for this batch. This field may be empty, allowing this RPC to be used like TouchInvocation.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for UploadBatchRequest
impl Send for UploadBatchRequest
impl Sync for UploadBatchRequest
impl Unpin for UploadBatchRequest
impl UnwindSafe for UploadBatchRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more