public final class EntityAnnotation extends GeneratedMessageV3 implements EntityAnnotationOrBuilder
Set of detected entity features.Protobuf type
google.cloud.vision.v1p2beta1.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, unknownFields
memoizedSize
memoizedHashCode
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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public 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 MessageOrBuilder
getUnknownFields
in class GeneratedMessageV3
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3
public 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 EntityAnnotationOrBuilder
public 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 EntityAnnotationOrBuilder
public java.lang.String getLocale()
The language code for the locale in which the entity textual `description` is expressed.
string locale = 2;
getLocale
in interface EntityAnnotationOrBuilder
public ByteString getLocaleBytes()
The language code for the locale in which the entity textual `description` is expressed.
string locale = 2;
getLocaleBytes
in interface EntityAnnotationOrBuilder
public java.lang.String getDescription()
Entity textual description, expressed in its `locale` language.
string description = 3;
getDescription
in interface EntityAnnotationOrBuilder
public ByteString getDescriptionBytes()
Entity textual description, expressed in its `locale` language.
string description = 3;
getDescriptionBytes
in interface EntityAnnotationOrBuilder
public float getScore()
Overall score of the result. Range [0, 1].
float score = 4;
getScore
in interface EntityAnnotationOrBuilder
public 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 EntityAnnotationOrBuilder
public 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 EntityAnnotationOrBuilder
public boolean hasBoundingPoly()
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7;
hasBoundingPoly
in interface EntityAnnotationOrBuilder
public BoundingPoly getBoundingPoly()
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7;
getBoundingPoly
in interface EntityAnnotationOrBuilder
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1p2beta1.BoundingPoly bounding_poly = 7;
getBoundingPolyOrBuilder
in interface EntityAnnotationOrBuilder
public 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.v1p2beta1.LocationInfo locations = 8;
getLocationsList
in interface EntityAnnotationOrBuilder
public 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.v1p2beta1.LocationInfo locations = 8;
getLocationsOrBuilderList
in interface EntityAnnotationOrBuilder
public 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.v1p2beta1.LocationInfo locations = 8;
getLocationsCount
in interface EntityAnnotationOrBuilder
public 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.v1p2beta1.LocationInfo locations = 8;
getLocations
in interface EntityAnnotationOrBuilder
public 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.v1p2beta1.LocationInfo locations = 8;
getLocationsOrBuilder
in interface EntityAnnotationOrBuilder
public 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.v1p2beta1.Property properties = 9;
getPropertiesList
in interface EntityAnnotationOrBuilder
public 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.v1p2beta1.Property properties = 9;
getPropertiesOrBuilderList
in interface EntityAnnotationOrBuilder
public 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.v1p2beta1.Property properties = 9;
getPropertiesCount
in interface EntityAnnotationOrBuilder
public 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.v1p2beta1.Property properties = 9;
getProperties
in interface EntityAnnotationOrBuilder
public 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.v1p2beta1.Property properties = 9;
getPropertiesOrBuilder
in interface EntityAnnotationOrBuilder
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3
public void writeTo(CodedOutputStream output) throws java.io.IOException
writeTo
in interface MessageLite
writeTo
in class GeneratedMessageV3
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessageV3
public boolean equals(java.lang.Object obj)
equals
in interface Message
equals
in class AbstractMessage
public int hashCode()
hashCode
in interface Message
hashCode
in class AbstractMessage
public static EntityAnnotation parseFrom(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static EntityAnnotation parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static EntityAnnotation parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static EntityAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static EntityAnnotation parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static EntityAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static EntityAnnotation parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static EntityAnnotation parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static EntityAnnotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static EntityAnnotation parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static EntityAnnotation parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static EntityAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public EntityAnnotation.Builder newBuilderForType()
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static EntityAnnotation.Builder newBuilder()
public static EntityAnnotation.Builder newBuilder(EntityAnnotation prototype)
public EntityAnnotation.Builder toBuilder()
toBuilder
in interface Message
toBuilder
in interface MessageLite
protected EntityAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class GeneratedMessageV3
public static EntityAnnotation getDefaultInstance()
public static Parser<EntityAnnotation> parser()
public Parser<EntityAnnotation> getParserForType()
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessageV3
public EntityAnnotation getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder