pub struct Processor {Show 14 fields
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub display_name: String,
pub description: String,
pub processor_type: i32,
pub model_type: i32,
pub custom_processor_source_info: Option<CustomProcessorSourceInfo>,
pub state: i32,
pub processor_io_spec: Option<ProcessorIoSpec>,
pub configuration_typeurl: String,
pub supported_annotation_types: Vec<i32>,
pub supports_post_processing: bool,
}
Expand description
Message describing Processor object. Next ID: 18
Fields§
§name: String
name of resource.
create_time: Option<Timestamp>
Output only. [Output only] Create timestamp.
update_time: Option<Timestamp>
Output only. [Output only] Update timestamp.
labels: BTreeMap<String, String>
Labels as key value pairs.
display_name: String
Required. A user friendly display name for the processor.
description: String
Illustrative sentences for describing the functionality of the processor.
processor_type: i32
Output only. Processor Type.
model_type: i32
Model Type.
custom_processor_source_info: Option<CustomProcessorSourceInfo>
Source info for customer created processor.
state: i32
Output only. State of the Processor.
processor_io_spec: Option<ProcessorIoSpec>
Output only. [Output only] The input / output specifications of a processor, each type of processor has fixed input / output specs which cannot be altered by customer.
configuration_typeurl: String
Output only. The corresponding configuration can be used in the Application to customize the behavior of the processor.
supported_annotation_types: Vec<i32>
§supports_post_processing: bool
Indicates if the processor supports post processing.
Implementations§
source§impl Processor
impl Processor
sourcepub fn processor_type(&self) -> ProcessorType
pub fn processor_type(&self) -> ProcessorType
Returns the enum value of processor_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_processor_type(&mut self, value: ProcessorType)
pub fn set_processor_type(&mut self, value: ProcessorType)
Sets processor_type
to the provided enum value.
sourcepub fn state(&self) -> ProcessorState
pub fn state(&self) -> ProcessorState
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn set_state(&mut self, value: ProcessorState)
pub fn set_state(&mut self, value: ProcessorState)
Sets state
to the provided enum value.
sourcepub fn model_type(&self) -> ModelType
pub fn model_type(&self) -> ModelType
Returns the enum value of model_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_model_type(&mut self, value: ModelType)
pub fn set_model_type(&mut self, value: ModelType)
Sets model_type
to the provided enum value.
sourcepub fn supported_annotation_types(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<StreamAnnotationType>>
pub fn supported_annotation_types( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<StreamAnnotationType>>
Returns an iterator which yields the valid enum values contained in supported_annotation_types
.
sourcepub fn push_supported_annotation_types(&mut self, value: StreamAnnotationType)
pub fn push_supported_annotation_types(&mut self, value: StreamAnnotationType)
Appends the provided enum value to supported_annotation_types
.
Trait Implementations§
source§impl Message for Processor
impl Message for Processor
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 Processor
impl PartialEq for Processor
impl StructuralPartialEq for Processor
Auto Trait Implementations§
impl Freeze for Processor
impl RefUnwindSafe for Processor
impl Send for Processor
impl Sync for Processor
impl Unpin for Processor
impl UnwindSafe for Processor
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