Struct google_api_proto::google::cloud::visionai::v1alpha1::processor_io_spec::GraphInputChannelSpec
source · pub struct GraphInputChannelSpec {
pub name: String,
pub data_type: i32,
pub accepted_data_type_uris: Vec<String>,
pub required: bool,
pub max_connection_allowed: i64,
}
Expand description
Message for input channel specification.
Fields§
§name: String
The name of the current input channel.
data_type: i32
The data types of the current input channel. When this field has more than 1 value, it means this input channel can be connected to either of these different data types.
accepted_data_type_uris: Vec<String>
If specified, only those detailed data types can be connected to the processor. For example, jpeg stream for MEDIA, or PredictionResult proto for PROTO type. If unspecified, then any proto is accepted.
required: bool
Whether the current input channel is required by the processor. For example, for a processor with required video input and optional audio input, if video input is missing, the application will be rejected while the audio input can be missing as long as the video input exists.
max_connection_allowed: i64
How many input edges can be connected to this input channel. 0 means unlimited.
Implementations§
Trait Implementations§
source§impl Clone for GraphInputChannelSpec
impl Clone for GraphInputChannelSpec
source§fn clone(&self) -> GraphInputChannelSpec
fn clone(&self) -> GraphInputChannelSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GraphInputChannelSpec
impl Debug for GraphInputChannelSpec
source§impl Default for GraphInputChannelSpec
impl Default for GraphInputChannelSpec
source§impl Message for GraphInputChannelSpec
impl Message for GraphInputChannelSpec
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 GraphInputChannelSpec
impl PartialEq for GraphInputChannelSpec
source§fn eq(&self, other: &GraphInputChannelSpec) -> bool
fn eq(&self, other: &GraphInputChannelSpec) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GraphInputChannelSpec
Auto Trait Implementations§
impl Freeze for GraphInputChannelSpec
impl RefUnwindSafe for GraphInputChannelSpec
impl Send for GraphInputChannelSpec
impl Sync for GraphInputChannelSpec
impl Unpin for GraphInputChannelSpec
impl UnwindSafe for GraphInputChannelSpec
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