Struct gapi_grpc::google::cloud::datalabeling::v1beta1::Annotation[][src]

pub struct Annotation {
    pub name: String,
    pub annotation_source: i32,
    pub annotation_value: Option<AnnotationValue>,
    pub annotation_metadata: Option<AnnotationMetadata>,
    pub annotation_sentiment: i32,
}

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

impl Annotation[src]

pub fn annotation_source(&self) -> AnnotationSource[src]

Returns the enum value of annotation_source, or the default if the field is set to an invalid enum value.

pub fn set_annotation_source(&mut self, value: AnnotationSource)[src]

Sets annotation_source to the provided enum value.

pub fn annotation_sentiment(&self) -> AnnotationSentiment[src]

Returns the enum value of annotation_sentiment, or the default if the field is set to an invalid enum value.

pub fn set_annotation_sentiment(&mut self, value: AnnotationSentiment)[src]

Sets annotation_sentiment to the provided enum value.

Trait Implementations

impl Clone for Annotation[src]

impl Debug for Annotation[src]

impl Default for Annotation[src]

impl Message for Annotation[src]

impl PartialEq<Annotation> for Annotation[src]

impl StructuralPartialEq for Annotation[src]

Auto Trait Implementations

impl RefUnwindSafe for Annotation

impl Send for Annotation

impl Sync for Annotation

impl Unpin for Annotation

impl UnwindSafe for Annotation

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]