Interface EntityAnnotationOrBuilder (3.78.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 3.78.0 (latest)
- 3.76.0
- 3.74.0
- 3.73.0
- 3.72.0
- 3.71.0
- 3.70.0
- 3.68.0
- 3.66.0
- 3.65.0
- 3.62.0
- 3.61.0
- 3.60.0
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.54.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.3
- 2.1.4
- 2.0.29
publicinterface EntityAnnotationOrBuilderextendsMessageOrBuilderImplements
MessageOrBuilderMethods
getBoundingPoly()
publicabstractBoundingPolygetBoundingPoly() Image region to which this entity belongs. Not produced
for LABEL_DETECTION features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
| Returns | |
|---|---|
| Type | Description |
BoundingPoly |
The boundingPoly. |
getBoundingPolyOrBuilder()
publicabstractBoundingPolyOrBuildergetBoundingPolyOrBuilder() Image region to which this entity belongs. Not produced
for LABEL_DETECTION features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
| Returns | |
|---|---|
| Type | Description |
BoundingPolyOrBuilder |
|
getConfidence() (deprecated)
publicabstractfloatgetConfidence()Deprecated. google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See google/cloud/vision/v1/image_annotator.proto;l=510
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 [deprecated = true];
| Returns | |
|---|---|
| Type | Description |
float |
The confidence. |
getDescription()
publicabstractStringgetDescription() Entity textual description, expressed in its locale language.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
publicabstractByteStringgetDescriptionBytes() Entity textual description, expressed in its locale language.
string description = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getLocale()
publicabstractStringgetLocale() The language code for the locale in which the entity textual
description is expressed.
string locale = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The locale. |
getLocaleBytes()
publicabstractByteStringgetLocaleBytes() 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)
publicabstractLocationInfogetLocations(intindex) 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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
LocationInfo |
|
getLocationsCount()
publicabstractintgetLocationsCount() 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;
| Returns | |
|---|---|
| Type | Description |
int |
|
getLocationsList()
publicabstractList<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;
| Returns | |
|---|---|
| Type | Description |
List<LocationInfo> |
|
getLocationsOrBuilder(int index)
publicabstractLocationInfoOrBuildergetLocationsOrBuilder(intindex) 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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
LocationInfoOrBuilder |
|
getLocationsOrBuilderList()
publicabstractList<?extendsLocationInfoOrBuilder>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;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.vision.v1.LocationInfoOrBuilder> |
|
getMid()
publicabstractStringgetMid()Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.
string mid = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The mid. |
getMidBytes()
publicabstractByteStringgetMidBytes()Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.
string mid = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for mid. |
getProperties(int index)
publicabstractPropertygetProperties(intindex) 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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Property |
|
getPropertiesCount()
publicabstractintgetPropertiesCount() 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;
| Returns | |
|---|---|
| Type | Description |
int |
|
getPropertiesList()
publicabstractList<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;
| Returns | |
|---|---|
| Type | Description |
List<Property> |
|
getPropertiesOrBuilder(int index)
publicabstractPropertyOrBuildergetPropertiesOrBuilder(intindex) 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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
PropertyOrBuilder |
|
getPropertiesOrBuilderList()
publicabstractList<?extendsPropertyOrBuilder>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;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.vision.v1.PropertyOrBuilder> |
|
getScore()
publicabstractfloatgetScore()Overall score of the result. Range [0, 1].
float score = 4;
| Returns | |
|---|---|
| Type | Description |
float |
The score. |
getTopicality()
publicabstractfloatgetTopicality()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()
publicabstractbooleanhasBoundingPoly() Image region to which this entity belongs. Not produced
for LABEL_DETECTION features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the boundingPoly field is set. |