public static final class Annotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder> implements AnnotationOrBuilder
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.Protobuf type
google.cloud.datalabeling.v1beta1.AnnotationgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>public Annotation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Annotation build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Annotation buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Annotation.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Annotation.Builder>public Annotation.Builder mergeFrom(Annotation other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>public Annotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Annotation.Builder>IOExceptionpublic 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;getName in interface AnnotationOrBuilderpublic 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;getNameBytes in interface AnnotationOrBuilderpublic Annotation.Builder setName(String value)
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;public Annotation.Builder clearName()
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;public Annotation.Builder setNameBytes(com.google.protobuf.ByteString value)
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;public int getAnnotationSourceValue()
Output only. The source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2;getAnnotationSourceValue in interface AnnotationOrBuilderpublic Annotation.Builder setAnnotationSourceValue(int value)
Output only. The source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2;public AnnotationSource getAnnotationSource()
Output only. The source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2;getAnnotationSource in interface AnnotationOrBuilderpublic Annotation.Builder setAnnotationSource(AnnotationSource value)
Output only. The source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2;public Annotation.Builder clearAnnotationSource()
Output only. The source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2;public 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;hasAnnotationValue in interface AnnotationOrBuilderpublic 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;getAnnotationValue in interface AnnotationOrBuilderpublic Annotation.Builder setAnnotationValue(AnnotationValue value)
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;public Annotation.Builder setAnnotationValue(AnnotationValue.Builder builderForValue)
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;public Annotation.Builder mergeAnnotationValue(AnnotationValue value)
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;public Annotation.Builder clearAnnotationValue()
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;public AnnotationValue.Builder getAnnotationValueBuilder()
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;public 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;getAnnotationValueOrBuilder in interface AnnotationOrBuilderpublic boolean hasAnnotationMetadata()
Output only. Annotation metadata, including information like votes for labels.
.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;hasAnnotationMetadata in interface AnnotationOrBuilderpublic AnnotationMetadata getAnnotationMetadata()
Output only. Annotation metadata, including information like votes for labels.
.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;getAnnotationMetadata in interface AnnotationOrBuilderpublic Annotation.Builder setAnnotationMetadata(AnnotationMetadata value)
Output only. Annotation metadata, including information like votes for labels.
.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;public Annotation.Builder setAnnotationMetadata(AnnotationMetadata.Builder builderForValue)
Output only. Annotation metadata, including information like votes for labels.
.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;public Annotation.Builder mergeAnnotationMetadata(AnnotationMetadata value)
Output only. Annotation metadata, including information like votes for labels.
.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;public Annotation.Builder clearAnnotationMetadata()
Output only. Annotation metadata, including information like votes for labels.
.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;public AnnotationMetadata.Builder getAnnotationMetadataBuilder()
Output only. Annotation metadata, including information like votes for labels.
.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;public AnnotationMetadataOrBuilder getAnnotationMetadataOrBuilder()
Output only. Annotation metadata, including information like votes for labels.
.google.cloud.datalabeling.v1beta1.AnnotationMetadata annotation_metadata = 4;getAnnotationMetadataOrBuilder in interface AnnotationOrBuilderpublic int getAnnotationSentimentValue()
Output only. Sentiment for this annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6;getAnnotationSentimentValue in interface AnnotationOrBuilderpublic Annotation.Builder setAnnotationSentimentValue(int value)
Output only. Sentiment for this annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6;public AnnotationSentiment getAnnotationSentiment()
Output only. Sentiment for this annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6;getAnnotationSentiment in interface AnnotationOrBuilderpublic Annotation.Builder setAnnotationSentiment(AnnotationSentiment value)
Output only. Sentiment for this annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6;public Annotation.Builder clearAnnotationSentiment()
Output only. Sentiment for this annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6;public final Annotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>public final Annotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Annotation.Builder>Copyright © 2019 Google LLC. All rights reserved.