Struct google_api_proto::google::devtools::resultstore::v2::UploadRequest
source · pub struct UploadRequest {
pub id: Option<Id>,
pub upload_operation: i32,
pub update_mask: Option<FieldMask>,
pub create_if_not_found: bool,
pub resource: Option<Resource>,
}
Expand description
The individual upload requests for this batch.
Fields§
§id: Option<Id>
The resource ID components that identify the resource being uploaded.
upload_operation: i32
The operation for the request (e.g. Create(), Update(), etc.)
update_mask: Option<FieldMask>
Required for Update and Merge operations. Ignored for Create and Finalize operations. Masks the fields of the resource being uploaded. Provides support for a more granular upload. FieldMasks are limited to certain fields and must match one of the follow patterns, where * means any single field name.
For Update Operations:
Invocation: [, status_attributes., timing., invocation_attributes., workspace_info.]. Target: [, status_attributes., timing.]. Configuration: [, status_attributes.]. ConfiguredTarget: [, status_attributes.]. Action: [, status_attributes., timing., test_action.test_suite, test_action.infrastructure_failure_info]. FileSet: [].
For Merge Operations:
Invocation: [invocation_attributes.labels, workspace_info.command_lines, properties, files, file_processing_errors]. Target: [files]. ConfiguredTarget: [files]. Action: [files, file_processing_errors].
create_if_not_found: bool
If true then the Update, Merge operation will become a Create operation if the resource is NOT_FOUND. Not supported for Invocation resource.
resource: Option<Resource>
The proto of the resource being uploaded.
Implementations§
source§impl UploadRequest
impl UploadRequest
sourcepub fn upload_operation(&self) -> UploadOperation
pub fn upload_operation(&self) -> UploadOperation
Returns the enum value of upload_operation
, or the default if the field is set to an invalid enum value.
sourcepub fn set_upload_operation(&mut self, value: UploadOperation)
pub fn set_upload_operation(&mut self, value: UploadOperation)
Sets upload_operation
to the provided enum value.
Trait Implementations§
source§impl Clone for UploadRequest
impl Clone for UploadRequest
source§fn clone(&self) -> UploadRequest
fn clone(&self) -> UploadRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UploadRequest
impl Debug for UploadRequest
source§impl Default for UploadRequest
impl Default for UploadRequest
source§impl Message for UploadRequest
impl Message for UploadRequest
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 UploadRequest
impl PartialEq for UploadRequest
source§fn eq(&self, other: &UploadRequest) -> bool
fn eq(&self, other: &UploadRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UploadRequest
Auto Trait Implementations§
impl Freeze for UploadRequest
impl RefUnwindSafe for UploadRequest
impl Send for UploadRequest
impl Sync for UploadRequest
impl Unpin for UploadRequest
impl UnwindSafe for UploadRequest
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