Struct google_api_proto::google::devtools::resultstore::v2::UploadBatchRequest
source · pub struct UploadBatchRequest {
pub parent: String,
pub authorization_token: String,
pub next_resume_token: String,
pub resume_token: String,
pub uploader_state: Bytes,
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: Bytes
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§
source§impl Clone for UploadBatchRequest
impl Clone for UploadBatchRequest
source§fn clone(&self) -> UploadBatchRequest
fn clone(&self) -> UploadBatchRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UploadBatchRequest
impl Debug for UploadBatchRequest
source§impl Default for UploadBatchRequest
impl Default for UploadBatchRequest
source§impl Message for UploadBatchRequest
impl Message for UploadBatchRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for UploadBatchRequest
impl PartialEq for UploadBatchRequest
source§fn eq(&self, other: &UploadBatchRequest) -> bool
fn eq(&self, other: &UploadBatchRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UploadBatchRequest
Auto Trait Implementations§
impl !Freeze for UploadBatchRequest
impl RefUnwindSafe for UploadBatchRequest
impl Send for UploadBatchRequest
impl Sync for UploadBatchRequest
impl Unpin for UploadBatchRequest
impl UnwindSafe for UploadBatchRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request