Struct google_api_proto::google::cloud::datalabeling::v1beta1::InputConfig
source · pub struct InputConfig {
pub data_type: i32,
pub annotation_type: i32,
pub classification_metadata: Option<ClassificationMetadata>,
pub data_type_metadata: Option<DataTypeMetadata>,
pub source: Option<Source>,
}
Expand description
The configuration of input data, including data type, location, etc.
Fields§
§data_type: i32
Required. Data type must be specifed when user tries to import data.
annotation_type: i32
Optional. The type of annotation to be performed on this data. You must specify this field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
classification_metadata: Option<ClassificationMetadata>
Optional. Metadata about annotations for the input. You must specify this field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a model version that performs classification.
data_type_metadata: Option<DataTypeMetadata>
Optional. The metadata associated with each data type.
source: Option<Source>
Required. Where the data is from.
Implementations§
source§impl InputConfig
impl InputConfig
sourcepub fn data_type(&self) -> DataType
pub fn data_type(&self) -> DataType
Returns the enum value of data_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_data_type(&mut self, value: DataType)
pub fn set_data_type(&mut self, value: DataType)
Sets data_type
to the provided enum value.
sourcepub fn annotation_type(&self) -> AnnotationType
pub fn annotation_type(&self) -> AnnotationType
Returns the enum value of annotation_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_annotation_type(&mut self, value: AnnotationType)
pub fn set_annotation_type(&mut self, value: AnnotationType)
Sets annotation_type
to the provided enum value.
Trait Implementations§
source§impl Clone for InputConfig
impl Clone for InputConfig
source§fn clone(&self) -> InputConfig
fn clone(&self) -> InputConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for InputConfig
impl Debug for InputConfig
source§impl Default for InputConfig
impl Default for InputConfig
source§impl Message for InputConfig
impl Message for InputConfig
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 InputConfig
impl PartialEq for InputConfig
source§fn eq(&self, other: &InputConfig) -> bool
fn eq(&self, other: &InputConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for InputConfig
Auto Trait Implementations§
impl Freeze for InputConfig
impl RefUnwindSafe for InputConfig
impl Send for InputConfig
impl Sync for InputConfig
impl Unpin for InputConfig
impl UnwindSafe for InputConfig
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