Interface EntityAnnotationOrBuilder (3.1.0)

Stay organized with collections Save and categorize content based on your preferences.
public interface EntityAnnotationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBoundingPoly()

public abstract BoundingPoly getBoundingPoly()

Image region to which this entity belongs. Not produced for LABEL_DETECTION features.

.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;

Returns
TypeDescription
BoundingPoly

The boundingPoly.

getBoundingPolyOrBuilder()

public abstract BoundingPolyOrBuilder getBoundingPolyOrBuilder()

Image region to which this entity belongs. Not produced for LABEL_DETECTION features.

.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;

Returns
TypeDescription
BoundingPolyOrBuilder

getConfidence() (deprecated)

public abstract float getConfidence()

Deprecated. google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See google/cloud/vision/v1/image_annotator.proto;l=505

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
TypeDescription
float

The confidence.

getDescription()

public abstract String getDescription()

Entity textual description, expressed in its locale language.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

Entity textual description, expressed in its locale language.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getLocale()

public abstract String getLocale()

The language code for the locale in which the entity textual description is expressed.

string locale = 2;

Returns
TypeDescription
String

The locale.

getLocaleBytes()

public abstract ByteString getLocaleBytes()

The language code for the locale in which the entity textual description is expressed.

string locale = 2;

Returns
TypeDescription
ByteString

The bytes for locale.

getLocations(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocationInfo

getLocationsCount()

public abstract 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;

Returns
TypeDescription
int

getLocationsList()

public abstract 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;

Returns
TypeDescription
List<LocationInfo>

getLocationsOrBuilder(int index)

public abstract 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;

Parameter
NameDescription
indexint
Returns
TypeDescription
LocationInfoOrBuilder

getLocationsOrBuilderList()

public abstract 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;

Returns
TypeDescription