public final class Annotation extends com.google.protobuf.GeneratedMessageV3 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.Annotation| Modifier and Type | Class and Description |
|---|---|
static class |
Annotation.Builder
Annotation for Example.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATION_METADATA_FIELD_NUMBER |
static int |
ANNOTATION_SENTIMENT_FIELD_NUMBER |
static int |
ANNOTATION_SOURCE_FIELD_NUMBER |
static int |
ANNOTATION_VALUE_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
AnnotationMetadata |
getAnnotationMetadata()
Output only.
|
AnnotationMetadataOrBuilder |
getAnnotationMetadataOrBuilder()
Output only.
|
AnnotationSentiment |
getAnnotationSentiment()
Output only.
|
int |
getAnnotationSentimentValue()
Output only.
|
AnnotationSource |
getAnnotationSource()
Output only.
|
int |
getAnnotationSourceValue()
Output only.
|
AnnotationValue |
getAnnotationValue()
Output only.
|
AnnotationValueOrBuilder |
getAnnotationValueOrBuilder()
Output only.
|
static Annotation |
getDefaultInstance() |
Annotation |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getName()
Output only.
|
com.google.protobuf.ByteString |
getNameBytes()
Output only.
|
com.google.protobuf.Parser<Annotation> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasAnnotationMetadata()
Output only.
|
boolean |
hasAnnotationValue()
Output only.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Annotation.Builder |
newBuilder() |
static Annotation.Builder |
newBuilder(Annotation prototype) |
Annotation.Builder |
newBuilderForType() |
protected Annotation.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Annotation |
parseDelimitedFrom(InputStream input) |
static Annotation |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Annotation |
parseFrom(byte[] data) |
static Annotation |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Annotation |
parseFrom(ByteBuffer data) |
static Annotation |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Annotation |
parseFrom(com.google.protobuf.ByteString data) |
static Annotation |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Annotation |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Annotation |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Annotation |
parseFrom(InputStream input) |
static Annotation |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Annotation> |
parser() |
Annotation.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int ANNOTATION_SOURCE_FIELD_NUMBER
public static final int ANNOTATION_VALUE_FIELD_NUMBER
public static final int ANNOTATION_METADATA_FIELD_NUMBER
public static final int ANNOTATION_SENTIMENT_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 int getAnnotationSourceValue()
Output only. The source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2;getAnnotationSourceValue in interface AnnotationOrBuilderpublic AnnotationSource getAnnotationSource()
Output only. The source of the annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSource annotation_source = 2;getAnnotationSource in interface AnnotationOrBuilderpublic 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 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 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 AnnotationSentiment getAnnotationSentiment()
Output only. Sentiment for this annotation.
.google.cloud.datalabeling.v1beta1.AnnotationSentiment annotation_sentiment = 6;getAnnotationSentiment in interface AnnotationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Annotation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Annotation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Annotation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Annotation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Annotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Annotation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Annotation parseFrom(InputStream input) throws IOException
IOExceptionpublic static Annotation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Annotation parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Annotation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Annotation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Annotation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Annotation.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Annotation.Builder newBuilder()
public static Annotation.Builder newBuilder(Annotation prototype)
public Annotation.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Annotation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Annotation getDefaultInstance()
public static com.google.protobuf.Parser<Annotation> parser()
public com.google.protobuf.Parser<Annotation> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Annotation getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.