#[repr(i32)]pub enum UploadOperation {
Unspecified = 0,
Create = 1,
Update = 2,
Merge = 3,
Finalize = 4,
}
Expand description
The operation for the request (e.g. Create(), Update(), etc.)
Variants§
Unspecified = 0
Unspecified
Create = 1
Create the given resources except Invocation. For more information, check the Create APIs.
Update = 2
Applies a standard update to the resource identified by the given proto’s name. For more information, see the Update APIs. UploadBatch does not support arbitrary field masks. The list of allowed field masks can be found below.
Merge = 3
Applies an merge update to the resource identified by the given proto’s name. For more information, see the Merge APIs. UploadBatch does not support arbitrary field masks. The list of allowed field masks can be found below.
Finalize = 4
Declares the resource with the given name as finalized and immutable by the uploader. Only supported for Invocation, Target, ConfiguredTarget. There must be no operation on child resources after parent resource is Finalized. If there is a Finalize of Invocation, it must be the final UploadRequest. For more information, see the Finalize APIs. An empty resource should be provided below.
Implementations§
source§impl UploadOperation
impl UploadOperation
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for UploadOperation
impl Clone for UploadOperation
source§fn clone(&self) -> UploadOperation
fn clone(&self) -> UploadOperation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for UploadOperation
impl Debug for UploadOperation
source§impl Default for UploadOperation
impl Default for UploadOperation
source§fn default() -> UploadOperation
fn default() -> UploadOperation
source§impl From<UploadOperation> for i32
impl From<UploadOperation> for i32
source§fn from(value: UploadOperation) -> i32
fn from(value: UploadOperation) -> i32
source§impl Hash for UploadOperation
impl Hash for UploadOperation
source§impl Ord for UploadOperation
impl Ord for UploadOperation
source§fn cmp(&self, other: &UploadOperation) -> Ordering
fn cmp(&self, other: &UploadOperation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for UploadOperation
impl PartialEq for UploadOperation
source§fn eq(&self, other: &UploadOperation) -> bool
fn eq(&self, other: &UploadOperation) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for UploadOperation
impl PartialOrd for UploadOperation
source§fn partial_cmp(&self, other: &UploadOperation) -> Option<Ordering>
fn partial_cmp(&self, other: &UploadOperation) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for UploadOperation
impl TryFrom<i32> for UploadOperation
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<UploadOperation, UnknownEnumValue>
fn try_from(value: i32) -> Result<UploadOperation, UnknownEnumValue>
impl Copy for UploadOperation
impl Eq for UploadOperation
impl StructuralPartialEq for UploadOperation
Auto Trait Implementations§
impl Freeze for UploadOperation
impl RefUnwindSafe for UploadOperation
impl Send for UploadOperation
impl Sync for UploadOperation
impl Unpin for UploadOperation
impl UnwindSafe for UploadOperation
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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