public final class EntityAnnotation extends GeneratedMessageV3 implements EntityAnnotationOrBuilder
Set of detected entity features.
Protobuf type google.cloud.vision.v1p3beta1.EntityAnnotation
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
BOUNDING_POLY_FIELD_NUMBER
public static final int BOUNDING_POLY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LOCALE_FIELD_NUMBER
public static final int LOCALE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LOCATIONS_FIELD_NUMBER
public static final int LOCATIONS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
MID_FIELD_NUMBER
public static final int MID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PROPERTIES_FIELD_NUMBER
public static final int PROPERTIES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
TOPICALITY_FIELD_NUMBER
public static final int TOPICALITY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static EntityAnnotation getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static EntityAnnotation.Builder newBuilder()
newBuilder(EntityAnnotation prototype)
public static EntityAnnotation.Builder newBuilder(EntityAnnotation prototype)
public static EntityAnnotation parseDelimitedFrom(InputStream input)
public static EntityAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static EntityAnnotation parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static EntityAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static EntityAnnotation parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EntityAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EntityAnnotation parseFrom(CodedInputStream input)
public static EntityAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static EntityAnnotation parseFrom(InputStream input)
public static EntityAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static EntityAnnotation parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static EntityAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<EntityAnnotation> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getBoundingPoly()
public BoundingPoly getBoundingPoly()
Image region to which this entity belongs. Not produced
for LABEL_DETECTION
features.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;
getBoundingPolyOrBuilder()
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
Image region to which this entity belongs. Not produced
for LABEL_DETECTION
features.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;
getConfidence()
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;
Returns |
---|
Type | Description |
float | The confidence.
|
getDefaultInstanceForType()
public EntityAnnotation getDefaultInstanceForType()
getDescription()
public String getDescription()
Entity textual description, expressed in its locale
language.
string description = 3;
Returns |
---|
Type | Description |
String | The description.
|
getDescriptionBytes()
public ByteString getDescriptionBytes()
Entity textual description, expressed in its locale
language.
string description = 3;
Returns |
---|
Type | Description |
ByteString | The bytes for description.
|
getLocale()
public String getLocale()
The language code for the locale in which the entity textual
description
is expressed.
string locale = 2;
Returns |
---|
Type | Description |
String | The locale.
|
getLocaleBytes()
public ByteString getLocaleBytes()
The language code for the locale in which the entity textual
description
is expressed.
string locale = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for locale.
|
getLocations(int index)
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.v1p3beta1.LocationInfo locations = 8;
Parameter |
---|
Name | Description |
index | int
|
getLocationsCount()
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.v1p3beta1.LocationInfo locations = 8;
Returns |
---|
Type | Description |
int | |
getLocationsList()
public 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.v1p3beta1.LocationInfo locations = 8;
getLocationsOrBuilder(int index)
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.v1p3beta1.LocationInfo locations = 8;
Parameter |
---|
Name | Description |
index | int
|
getLocationsOrBuilderList()
public 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.v1p3beta1.LocationInfo locations = 8;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.vision.v1p3beta1.LocationInfoOrBuilder> | |
getMid()
Returns |
---|
Type | Description |
String | The mid.
|
getMidBytes()
public ByteString getMidBytes()
Returns |
---|
Type | Description |
ByteString | The bytes for mid.
|
getParserForType()
public Parser<EntityAnnotation> getParserForType()
Overrides
getProperties(int index)
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.v1p3beta1.Property properties = 9;
Parameter |
---|
Name | Description |
index | int
|
getPropertiesCount()
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.v1p3beta1.Property properties = 9;
Returns |
---|
Type | Description |
int | |
getPropertiesList()
public 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.v1p3beta1.Property properties = 9;
getPropertiesOrBuilder(int index)
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.v1p3beta1.Property properties = 9;
Parameter |
---|
Name | Description |
index | int
|
getPropertiesOrBuilderList()
public 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.v1p3beta1.Property properties = 9;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.vision.v1p3beta1.PropertyOrBuilder> | |
getScore()
Overall score of the result. Range [0, 1].
float score = 4;
Returns |
---|
Type | Description |
float | The score.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getTopicality()
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;
Returns |
---|
Type | Description |
float | The topicality.
|
hasBoundingPoly()
public boolean hasBoundingPoly()
Image region to which this entity belongs. Not produced
for LABEL_DETECTION
features.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;
Returns |
---|
Type | Description |
boolean | Whether the boundingPoly field is set.
|
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public EntityAnnotation.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected EntityAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public EntityAnnotation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides