- 3.52.0 (latest)
- 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
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
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 |
index | int |
value | LocationInfo |
Type | Description |
EntityAnnotation.Builder |
addLocations(int index, LocationInfo.Builder builderForValue)
public EntityAnnotation.Builder addLocations(int index, 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 |
index | int |
builderForValue | LocationInfo.Builder |
Type | Description |
EntityAnnotation.Builder |
addLocationsBuilder()
public LocationInfo.Builder addLocationsBuilder()
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;
Type | Description |
LocationInfo.Builder |
addLocationsBuilder(int index)
public LocationInfo.Builder addLocationsBuilder(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;
Name | Description |
index | int |
Type | Description |
LocationInfo.Builder |
addProperties(Property value)
public EntityAnnotation.Builder addProperties(Property value)
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 |
value | Property |
Type | Description |
EntityAnnotation.Builder |
addProperties(Property.Builder builderForValue)
public EntityAnnotation.Builder addProperties(Property.Builder builderForValue)
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 |
builderForValue | Property.Builder |
Type | Description |
EntityAnnotation.Builder |
addProperties(int index, Property value)
public EntityAnnotation.Builder addProperties(int index, Property value)
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 |
index | int |
value | Property |
Type | Description |
EntityAnnotation.Builder |
addProperties(int index, Property.Builder builderForValue)
public EntityAnnotation.Builder addProperties(int index, Property.Builder builderForValue)
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 |
index | int |
builderForValue | Property.Builder |
Type | Description |
EntityAnnotation.Builder |
addPropertiesBuilder()
public Property.Builder addPropertiesBuilder()
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;
Type | Description |
Property.Builder |
addPropertiesBuilder(int index)
public Property.Builder addPropertiesBuilder(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.v1.Property properties = 9;
Name | Description |
index | int |
Type | Description |
Property.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public EntityAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
EntityAnnotation.Builder |
build()
public EntityAnnotation build()
Type | Description |
EntityAnnotation |
buildPartial()
public EntityAnnotation buildPartial()
Type | Description |
EntityAnnotation |
clear()
public EntityAnnotation.Builder clear()
Type | Description |
EntityAnnotation.Builder |
clearBoundingPoly()
public EntityAnnotation.Builder clearBoundingPoly()
Image region to which this entity belongs. Not produced
for LABEL_DETECTION
features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
Type | Description |
EntityAnnotation.Builder |
clearConfidence() (deprecated)
public EntityAnnotation.Builder clearConfidence()
Deprecated. google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See google/cloud/vision/v1/image_annotator.proto;l=506
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];
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
clearDescription()
public EntityAnnotation.Builder clearDescription()
Entity textual description, expressed in its locale
language.
string description = 3;
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public EntityAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
EntityAnnotation.Builder |
clearLocale()
public EntityAnnotation.Builder clearLocale()
The language code for the locale in which the entity textual
description
is expressed.
string locale = 2;
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
clearLocations()
public EntityAnnotation.Builder clearLocations()
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;
Type | Description |
EntityAnnotation.Builder |
clearMid()
public EntityAnnotation.Builder clearMid()
Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.
string mid = 1;
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public EntityAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
EntityAnnotation.Builder |
clearProperties()
public EntityAnnotation.Builder clearProperties()
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;
Type | Description |
EntityAnnotation.Builder |
clearScore()
public EntityAnnotation.Builder clearScore()
Overall score of the result. Range [0, 1].
float score = 4;
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
clearTopicality()
public EntityAnnotation.Builder clearTopicality()
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;
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
clone()
public EntityAnnotation.Builder clone()
Type | Description |
EntityAnnotation.Builder |
getBoundingPoly()
public BoundingPoly getBoundingPoly()
Image region to which this entity belongs. Not produced
for LABEL_DETECTION
features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
Type | Description |
BoundingPoly | The boundingPoly. |
getBoundingPolyBuilder()
public BoundingPoly.Builder getBoundingPolyBuilder()
Image region to which this entity belongs. Not produced
for LABEL_DETECTION
features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
Type | Description |
BoundingPoly.Builder |
getBoundingPolyOrBuilder()
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
Image region to which this entity belongs. Not produced
for LABEL_DETECTION
features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
Type | Description |
BoundingPolyOrBuilder |
getConfidence() (deprecated)
public float getConfidence()
Deprecated. google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See google/cloud/vision/v1/image_annotator.proto;l=506
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];
Type | Description |
float | The confidence. |
getDefaultInstanceForType()
public EntityAnnotation getDefaultInstanceForType()
Type | Description |
EntityAnnotation |
getDescription()
public String getDescription()
Entity textual description, expressed in its locale
language.
string description = 3;
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Entity textual description, expressed in its locale
language.
string description = 3;
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLocale()
public String getLocale()
The language code for the locale in which the entity textual
description
is expressed.
string locale = 2;
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;
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.v1.LocationInfo locations = 8;
Name | Description |
index | int |
Type | Description |
LocationInfo |
getLocationsBuilder(int index)
public LocationInfo.Builder getLocationsBuilder(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;
Name | Description |
index | int |
Type | Description |
LocationInfo.Builder |
getLocationsBuilderList()
public List<LocationInfo.Builder> getLocationsBuilderList()
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;
Type | Description |
List<Builder> |
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.v1.LocationInfo locations = 8;
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.v1.LocationInfo locations = 8;
Type | Description |
List<LocationInfo> |
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.v1.LocationInfo locations = 8;
Name | Description |
index | int |
Type | Description |
LocationInfoOrBuilder |
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.v1.LocationInfo locations = 8;
Type | Description |
List<? extends com.google.cloud.vision.v1.LocationInfoOrBuilder> |
getMid()
public String getMid()
Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.
string mid = 1;
Type | Description |
String | The mid. |
getMidBytes()
public ByteString getMidBytes()
Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.
string mid = 1;
Type | Description |
ByteString | The bytes for mid. |
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.v1.Property properties = 9;
Name | Description |
index | int |
Type | Description |
Property |
getPropertiesBuilder(int index)
public Property.Builder getPropertiesBuilder(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.v1.Property properties = 9;
Name | Description |
index | int |
Type | Description |
Property.Builder |
getPropertiesBuilderList()
public List<Property.Builder> getPropertiesBuilderList()
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;
Type | Description |
List<Builder> |
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.v1.Property properties = 9;
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.v1.Property properties = 9;
Type | Description |
List<Property> |
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.v1.Property properties = 9;
Name | Description |
index | int |
Type | Description |
PropertyOrBuilder |
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.v1.Property properties = 9;
Type | Description |
List<? extends com.google.cloud.vision.v1.PropertyOrBuilder> |
getScore()
public float getScore()
Overall score of the result. Range [0, 1].
float score = 4;
Type | Description |
float | The score. |
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;
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.v1.BoundingPoly bounding_poly = 7;
Type | Description |
boolean | Whether the boundingPoly field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeBoundingPoly(BoundingPoly value)
public EntityAnnotation.Builder mergeBoundingPoly(BoundingPoly value)
Image region to which this entity belongs. Not produced
for LABEL_DETECTION
features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
Name | Description |
value | BoundingPoly |
Type | Description |
EntityAnnotation.Builder |
mergeFrom(EntityAnnotation other)
public EntityAnnotation.Builder mergeFrom(EntityAnnotation other)
Name | Description |
other | EntityAnnotation |
Type | Description |
EntityAnnotation.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EntityAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
EntityAnnotation.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public EntityAnnotation.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
EntityAnnotation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final EntityAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
EntityAnnotation.Builder |
removeLocations(int index)
public EntityAnnotation.Builder removeLocations(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;
Name | Description |
index | int |
Type | Description |
EntityAnnotation.Builder |
removeProperties(int index)
public EntityAnnotation.Builder removeProperties(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.v1.Property properties = 9;
Name | Description |
index | int |
Type | Description |
EntityAnnotation.Builder |
setBoundingPoly(BoundingPoly value)
public EntityAnnotation.Builder setBoundingPoly(BoundingPoly value)
Image region to which this entity belongs. Not produced
for LABEL_DETECTION
features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
Name | Description |
value | BoundingPoly |
Type | Description |
EntityAnnotation.Builder |
setBoundingPoly(BoundingPoly.Builder builderForValue)
public EntityAnnotation.Builder setBoundingPoly(BoundingPoly.Builder builderForValue)
Image region to which this entity belongs. Not produced
for LABEL_DETECTION
features.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 7;
Name | Description |
builderForValue | BoundingPoly.Builder |
Type | Description |
EntityAnnotation.Builder |
setConfidence(float value) (deprecated)
public EntityAnnotation.Builder setConfidence(float value)
Deprecated. google.cloud.vision.v1.EntityAnnotation.confidence is deprecated. See google/cloud/vision/v1/image_annotator.proto;l=506
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];
Name | Description |
value | float The confidence to set. |
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
setDescription(String value)
public EntityAnnotation.Builder setDescription(String value)
Entity textual description, expressed in its locale
language.
string description = 3;
Name | Description |
value | String The description to set. |
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public EntityAnnotation.Builder setDescriptionBytes(ByteString value)
Entity textual description, expressed in its locale
language.
string description = 3;
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public EntityAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
EntityAnnotation.Builder |
setLocale(String value)
public EntityAnnotation.Builder setLocale(String value)
The language code for the locale in which the entity textual
description
is expressed.
string locale = 2;
Name | Description |
value | String The locale to set. |
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
setLocaleBytes(ByteString value)
public EntityAnnotation.Builder setLocaleBytes(ByteString value)
The language code for the locale in which the entity textual
description
is expressed.
string locale = 2;
Name | Description |
value | ByteString The bytes for locale to set. |
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
setLocations(int index, LocationInfo value)
public EntityAnnotation.Builder setLocations(int index, 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 |
index | int |
value | LocationInfo |
Type | Description |
EntityAnnotation.Builder |
setLocations(int index, LocationInfo.Builder builderForValue)
public EntityAnnotation.Builder setLocations(int index, 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 |
index | int |
builderForValue | LocationInfo.Builder |
Type | Description |
EntityAnnotation.Builder |
setMid(String value)
public EntityAnnotation.Builder setMid(String value)
Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.
string mid = 1;
Name | Description |
value | String The mid to set. |
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
setMidBytes(ByteString value)
public EntityAnnotation.Builder setMidBytes(ByteString value)
Opaque entity ID. Some IDs may be available in Google Knowledge Graph Search API.
string mid = 1;
Name | Description |
value | ByteString The bytes for mid to set. |
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
setProperties(int index, Property value)
public EntityAnnotation.Builder setProperties(int index, Property value)
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 |
index | int |
value | Property |
Type | Description |
EntityAnnotation.Builder |
setProperties(int index, Property.Builder builderForValue)
public EntityAnnotation.Builder setProperties(int index, Property.Builder builderForValue)
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 |
index | int |
builderForValue | Property.Builder |
Type | Description |
EntityAnnotation.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public EntityAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
EntityAnnotation.Builder |
setScore(float value)
public EntityAnnotation.Builder setScore(float value)
Overall score of the result. Range [0, 1].
float score = 4;
Name | Description |
value | float The score to set. |
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
setTopicality(float value)
public EntityAnnotation.Builder setTopicality(float value)
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;
Name | Description |
value | float The topicality to set. |
Type | Description |
EntityAnnotation.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final EntityAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
EntityAnnotation.Builder |