Interface AnnotationOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Annotation,Annotation.Builder
public interface AnnotationOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnnotationMetadatagetAnnotationMetadata()Output only.AnnotationMetadataOrBuildergetAnnotationMetadataOrBuilder()Output only.AnnotationSentimentgetAnnotationSentiment()Output only.intgetAnnotationSentimentValue()Output only.AnnotationSourcegetAnnotationSource()Output only.intgetAnnotationSourceValue()Output only.AnnotationValuegetAnnotationValue()Output only.AnnotationValueOrBuildergetAnnotationValueOrBuilder()Output only.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.booleanhasAnnotationMetadata()Output only.booleanhasAnnotationValue()Output only.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
Output only. Unique name of this annotation, format is: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Output only. Unique name of this annotation, format is: projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/{annotated_dataset}/examples/{example_id}/annotations/{annotation_id}string name = 1;- Returns:
- The bytes for name.
-
getAnnotationSourceValue
int getAnnotationSourceValue()
Output only. The source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2;- Returns:
- The enum numeric value on the wire for annotationSource.
-
getAnnotationSource
AnnotationSource getAnnotationSource()
Output only. The source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2;- Returns:
- The annotationSource.
-
hasAnnotationValue
boolean hasAnnotationValue()
Output only. This is the actual annotation value, e.g classification, bounding box values are stored here.
.google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;- Returns:
- Whether the annotationValue field is set.
-
getAnnotationValue
AnnotationValue getAnnotationValue()
Output only. This is the actual annotation value, e.g classification, bounding box values are stored here.
.google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;- Returns:
- The annotationValue.
-
getAnnotationValueOrBuilder
AnnotationValueOrBuilder getAnnotationValueOrBuilder()
Output only. This is the actual annotation value, e.g classification, bounding box values are stored here.
.google.cloud.datalabeling.v1beta1.AnnotationValue annotation_value = 3;
-
hasAnnotationMetadata
boolean hasAnnotationMetadata()
Output only. Annotation metadata, including information like votes for labels.
.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;- Returns:
- Whether the annotationMetadata field is set.
-
getAnnotationMetadata
AnnotationMetadata getAnnotationMetadata()
Output only. Annotation metadata, including information like votes for labels.
.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;- Returns:
- The annotationMetadata.
-
getAnnotationMetadataOrBuilder
AnnotationMetadataOrBuilder getAnnotationMetadataOrBuilder()
Output only. Annotation metadata, including information like votes for labels.
.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;
-
getAnnotationSentimentValue
int getAnnotationSentimentValue()
Output only. Sentiment for this annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6;- Returns:
- The enum numeric value on the wire for annotationSentiment.
-
getAnnotationSentiment
AnnotationSentiment getAnnotationSentiment()
Output only. Sentiment for this annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6;- Returns:
- The annotationSentiment.
-
-