public static final class EntityAnnotation.Builder extends GeneratedMessageV3.Builder<EntityAnnotation.Builder> implements EntityAnnotationOrBuilder
Set of detected entity features.
Protobuf type google.cloud.vision.v1.EntityAnnotation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > EntityAnnotation.BuilderImplements
EntityAnnotationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
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.v1.LocationInfo locations = 8;
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1.LocationInfo> |
Type | Description |
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.v1.Property properties = 9;
Name | Description |
values | Iterable<? extends com.google.cloud.vision.v1.Property> |
Type | Description |
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.v1.LocationInfo locations = 8;
Name | Description |
value | LocationInfo |
Type | Description |
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.v1.LocationInfo locations = 8;
Name | Description |
builderForValue | LocationInfo.Builder |
Type | Description |
EntityAnnotation.Builder |
addLocations(int index, LocationInfo value)
public EntityAnnotation.Builder addLocations(int index, LocationInfo value)
The location information for the detected entity. Multiple