Struct google_api_proto::google::cloud::datalabeling::v1beta1::Annotation
source · pub struct Annotation {
pub name: String,
pub annotation_source: i32,
pub annotation_value: Option<AnnotationValue>,
pub annotation_metadata: Option<AnnotationMetadata>,
pub annotation_sentiment: i32,
}
Expand description
Annotation for Example. Each example may have one or more annotations. For example in image classification problem, each image might have one or more labels. We call labels binded with this image an Annotation.
Fields§
§name: String
Output only. Unique name of this annotation, format is:
projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}
annotation_source: i32
Output only. The source of the annotation.
annotation_value: Option<AnnotationValue>
Output only. This is the actual annotation value, e.g classification, bounding box values are stored here.
annotation_metadata: Option<AnnotationMetadata>
Output only. Annotation metadata, including information like votes for labels.
annotation_sentiment: i32
Output only. Sentiment for this annotation.
Implementations§
source§impl Annotation
impl Annotation
sourcepub fn annotation_source(&self) -> AnnotationSource
pub fn annotation_source(&self) -> AnnotationSource
Returns the enum value of annotation_source
, or the default if the field is set to an invalid enum value.
sourcepub fn set_annotation_source(&mut self, value: AnnotationSource)
pub fn set_annotation_source(&mut self, value: AnnotationSource)
Sets annotation_source
to the provided enum value.
sourcepub fn annotation_sentiment(&self) -> AnnotationSentiment
pub fn annotation_sentiment(&self) -> AnnotationSentiment
Returns the enum value of annotation_sentiment
, or the default if the field is set to an invalid enum value.
sourcepub fn set_annotation_sentiment(&mut self, value: AnnotationSentiment)
pub fn set_annotation_sentiment(&mut self, value: AnnotationSentiment)
Sets annotation_sentiment
to the provided enum value.
Trait Implementations§
source§impl Clone for Annotation
impl Clone for Annotation
source§fn clone(&self) -> Annotation
fn clone(&self) -> Annotation
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Annotation
impl Debug for Annotation
source§impl Default for Annotation
impl Default for Annotation
source§impl Message for Annotation
impl Message for Annotation
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 Annotation
impl PartialEq for Annotation
source§fn eq(&self, other: &Annotation) -> bool
fn eq(&self, other: &Annotation) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Annotation
Auto Trait Implementations§
impl !Freeze for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnwindSafe for Annotation
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