Class EntityAnnotation.Builder (2.1.4)

public static final class EntityAnnotation.Builder extends GeneratedMessageV3.Builder<EntityAnnotation.Builder> implements EntityAnnotationOrBuilder

Set of detected entity features.

Protobuf type google.cloud.vision.v1p4beta1.EntityAnnotation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllLocations(Iterable<? extends LocationInfo> values)

public EntityAnnotation.Builder addAllLocations(Iterable<? extends LocationInfo> values)

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.v1p4beta1.LocationInfo locations = 8;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p4beta1.LocationInfo>
Returns
TypeDescription
EntityAnnotation.Builder

addAllProperties(Iterable<? extends Property> values)

public EntityAnnotation.Builder addAllProperties(Iterable<? extends Property> values)

Some entities may have optional user-supplied Property (name/value) fields, such a score or string that qualifies the entity.

repeated .google.cloud.vision.v1p4beta1.Property properties = 9;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p4beta1.Property>
Returns
TypeDescription
EntityAnnotation.Builder

addLocations(LocationInfo value)

public EntityAnnotation.Builder addLocations(LocationInfo value)

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.v1p4beta1.LocationInfo locations = 8;

Parameter
NameDescription
valueLocationInfo
Returns
TypeDescription
EntityAnnotation.Builder

addLocations(LocationInfo.Builder builderForValue)

public EntityAnnotation.Builder addLocations(LocationInfo.Builder builderForValue)

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.v1p4beta1.LocationInfo locations = 8;

Parameter
NameDescription
builderForValueLocationInfo.Builder
Returns
TypeDescription
EntityAnnotation.Builder

addLocations(int index, LocationInfo value)