public final class EntityAnnotation extends GeneratedMessageV3 implements EntityAnnotationOrBuilder
Set of detected entity features.Protobuf type
google.cloud.vision.v1.EntityAnnotation| Modifier and Type | Class and Description |
|---|---|
static class |
EntityAnnotation.Builder
Set of detected entity features.
|
GeneratedMessageV3.BuilderParent, GeneratedMessageV3.ExtendableBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage,BuilderType extends GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageV3.ExtendableMessage<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageV3.ExtendableMessage>, GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
BOUNDING_POLY_FIELD_NUMBER |
static int |
CONFIDENCE_FIELD_NUMBER |
static int |
DESCRIPTION_FIELD_NUMBER |
static int |
LOCALE_FIELD_NUMBER |
static int |
LOCATIONS_FIELD_NUMBER |
static int |
MID_FIELD_NUMBER |
static int |
PROPERTIES_FIELD_NUMBER |
static int |
SCORE_FIELD_NUMBER |
static int |
TOPICALITY_FIELD_NUMBER |
alwaysUseFieldBuilders, unknownFieldsmemoizedSizememoizedHashCode| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
BoundingPoly |
getBoundingPoly()
Image region to which this entity belongs.
|
BoundingPolyOrBuilder |
getBoundingPolyOrBuilder()
Image region to which this entity belongs.
|
float |
getConfidence()
**Deprecated.
|
static EntityAnnotation |
getDefaultInstance() |
EntityAnnotation |
getDefaultInstanceForType() |
java.lang.String |
getDescription()
Entity textual description, expressed in its `locale` language.
|
ByteString |
getDescriptionBytes()
Entity textual description, expressed in its `locale` language.
|
static Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getLocale()
The language code for the locale in which the entity textual
`description` is expressed.
|
ByteString |
getLocaleBytes()
The language code for the locale in which the entity textual
`description` is expressed.
|
LocationInfo |
getLocations(int index)
The location information for the detected entity.
|
int |
getLocationsCount()
The location information for the detected entity.
|
java.util.List<LocationInfo> |
getLocationsList()
The location information for the detected entity.
|
LocationInfoOrBuilder |
getLocationsOrBuilder(int index)
The location information for the detected entity.
|
java.util.List<? extends LocationInfoOrBuilder> |
getLocationsOrBuilderList()
The location information for the detected entity.
|
java.lang.String |
getMid()
Opaque entity ID.
|
ByteString |
getMidBytes()
Opaque entity ID.
|
Parser<EntityAnnotation> |
getParserForType() |
Property |
getProperties(int index)
Some entities may have optional user-supplied `Property` (name/value)
fields, such a score or string that qualifies the entity.
|
int |
getPropertiesCount()
Some entities may have optional user-supplied `Property` (name/value)
fields, such a score or string that qualifies the entity.
|
java.util.List<Property> |
getPropertiesList()
Some entities may have optional user-supplied `Property` (name/value)
fields, such a score or string that qualifies the entity.
|
PropertyOrBuilder |
getPropertiesOrBuilder(int index)
Some entities may have optional user-supplied `Property` (name/value)
fields, such a score or string that qualifies the entity.
|
java.util.List<? extends PropertyOrBuilder> |
getPropertiesOrBuilderList()
Some entities may have optional user-supplied `Property` (name/value)
fields, such a score or string that qualifies the entity.
|
float |
getScore()
Overall score of the result.
|
int |
getSerializedSize() |
float |
getTopicality()
The relevancy of the ICA (Image Content Annotation) label to the
image.
|
UnknownFieldSet |
getUnknownFields() |
boolean |
hasBoundingPoly()
Image region to which this entity belongs.
|
int |
hashCode() |
protected GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static EntityAnnotation.Builder |
newBuilder() |
static EntityAnnotation.Builder |
newBuilder(EntityAnnotation prototype) |
EntityAnnotation.Builder |
newBuilderForType() |
protected EntityAnnotation.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent) |
static EntityAnnotation |
parseDelimitedFrom(java.io.InputStream input) |
static EntityAnnotation |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static EntityAnnotation |
parseFrom(byte[] data) |
static EntityAnnotation |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static EntityAnnotation |
parseFrom(java.nio.ByteBuffer data) |
static EntityAnnotation |
parseFrom(java.nio.ByteBuffer data,
ExtensionRegistryLite extensionRegistry) |
static EntityAnnotation |
parseFrom(ByteString data) |
static EntityAnnotation |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static EntityAnnotation |
parseFrom(CodedInputStream input) |
static EntityAnnotation |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static EntityAnnotation |
parseFrom(java.io.InputStream input) |
static EntityAnnotation |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<EntityAnnotation> |
parser() |
EntityAnnotation.Builder |
toBuilder() |
void |
writeTo(CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, 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, waitfindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int MID_FIELD_NUMBER
public static final int LOCALE_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
public static final int TOPICALITY_FIELD_NUMBER
public static final int BOUNDING_POLY_FIELD_NUMBER
public static final int LOCATIONS_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessageV3public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3public java.lang.String getMid()
Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/).
string mid = 1;getMid in interface EntityAnnotationOrBuilderpublic ByteString getMidBytes()
Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/).
string mid = 1;getMidBytes in interface EntityAnnotationOrBuilderpublic java.lang.String getLocale()
The language code for the locale in which the entity textual `description` is expressed.
string locale = 2;getLocale in interface EntityAnnotationOrBuilderpublic ByteString getLocaleBytes()
The language code for the locale in which the entity textual `description` is expressed.
string locale = 2;getLocaleBytes in interface EntityAnnotationOrBuilderpublic java.lang.String getDescription()
Entity textual description, expressed in its `locale` language.
string description = 3;getDescription in interface EntityAnnotationOrBuilderpublic ByteString getDescriptionBytes()
Entity textual description, expressed in its `locale` language.
string description = 3;getDescriptionBytes in interface EntityAnnotationOrBuilderpublic float getScore()
Overall score of the result. Range [0, 1].
float score = 4;getScore in interface EntityAnnotationOrBuilderpublic float getConfidence()
**Deprecated. Use `score` instead.** The accuracy of the entity detection in an image. For example, for an image in which the "Eiffel Tower" entity is detected, this field represents the confidence that there is a tower in the query image. Range [0, 1].
float confidence = 5;getConfidence in interface EntityAnnotationOrBuilderpublic float getTopicality()
The relevancy of the ICA (Image Content Annotation) label to the image. For example, the relevancy of "tower" is likely higher to an image containing the detected "Eiffel Tower" than to an image containing a detected distant towering building, even though the confidence that there is a tower in each image may be the same. Range [0, 1].
float topicality = 6;getTopicality in interface EntityAnnotationOrBuilderpublic boolean hasBoundingPoly()
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;hasBoundingPoly in interface EntityAnnotationOrBuilderpublic BoundingPoly getBoundingPoly()
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;getBoundingPoly in interface EntityAnnotationOrBuilderpublic BoundingPolyOrBuilder getBoundingPolyOrBuilder()
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;getBoundingPolyOrBuilder in interface EntityAnnotationOrBuilderpublic java.util.List<LocationInfo> getLocationsList()
The location information for the detected entity. Multiple `LocationInfo` elements can be present because one location may indicate the location of the scene in the image, and another location may indicate the location of the place where the image was taken. Location information is usually present for landmarks.
repeated .google.cloud.vision.v1.LocationInfo locations = 8;getLocationsList in interface EntityAnnotationOrBuilderpublic java.util.List<? extends LocationInfoOrBuilder> getLocationsOrBuilderList()
The location information for the detected entity. Multiple `LocationInfo` elements can be present because one location may indicate the location of the scene in the image, and another location may indicate the location of the place where the image was taken. Location information is usually present for landmarks.
repeated .google.cloud.vision.v1.LocationInfo locations = 8;getLocationsOrBuilderList in interface EntityAnnotationOrBuilderpublic int getLocationsCount()
The location information for the detected entity. Multiple `LocationInfo` elements can be present because one location may indicate the location of the scene in the image, and another location may indicate the location of the place where the image was taken. Location information is usually present for landmarks.
repeated .google.cloud.vision.v1.LocationInfo locations = 8;getLocationsCount in interface EntityAnnotationOrBuilderpublic LocationInfo getLocations(int index)
The location information for the detected entity. Multiple `LocationInfo` elements can be present because one location may indicate the location of the scene in the image, and another location may indicate the location of the place where the image was taken. Location information is usually present for landmarks.
repeated .google.cloud.vision.v1.LocationInfo locations = 8;getLocations in interface EntityAnnotationOrBuilderpublic LocationInfoOrBuilder getLocationsOrBuilder(int index)
The location information for the detected entity. Multiple `LocationInfo` elements can be present because one location may indicate the location of the scene in the image, and another location may indicate the location of the place where the image was taken. Location information is usually present for landmarks.
repeated .google.cloud.vision.v1.LocationInfo locations = 8;getLocationsOrBuilder in interface EntityAnnotationOrBuilderpublic java.util.List<Property> getPropertiesList()
Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.
repeated .google.cloud.vision.v1.Property properties = 9;getPropertiesList in interface EntityAnnotationOrBuilderpublic java.util.List<? extends PropertyOrBuilder> getPropertiesOrBuilderList()
Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.
repeated .google.cloud.vision.v1.Property properties = 9;getPropertiesOrBuilderList in interface EntityAnnotationOrBuilderpublic int getPropertiesCount()
Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.
repeated .google.cloud.vision.v1.Property properties = 9;getPropertiesCount in interface EntityAnnotationOrBuilderpublic Property getProperties(int index)
Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.
repeated .google.cloud.vision.v1.Property properties = 9;getProperties in interface EntityAnnotationOrBuilderpublic PropertyOrBuilder getPropertiesOrBuilder(int index)
Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.
repeated .google.cloud.vision.v1.Property properties = 9;getPropertiesOrBuilder in interface EntityAnnotationOrBuilderpublic final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo in interface MessageLitewriteTo in class GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface Messageequals in class AbstractMessagepublic int hashCode()
hashCode in interface MessagehashCode in class AbstractMessagepublic static EntityAnnotation parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static EntityAnnotation parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static EntityAnnotation parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static EntityAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static EntityAnnotation parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static EntityAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static EntityAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static EntityAnnotation parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static EntityAnnotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static EntityAnnotation parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static EntityAnnotation parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static EntityAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic EntityAnnotation.Builder newBuilderForType()
newBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static EntityAnnotation.Builder newBuilder()
public static EntityAnnotation.Builder newBuilder(EntityAnnotation prototype)
public EntityAnnotation.Builder toBuilder()
toBuilder in interface MessagetoBuilder in interface MessageLiteprotected EntityAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class GeneratedMessageV3public static EntityAnnotation getDefaultInstance()
public static Parser<EntityAnnotation> parser()
public Parser<EntityAnnotation> getParserForType()
getParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessageV3public EntityAnnotation getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder