Class EntityAnnotation.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
- com.google.cloud.vision.v1p3beta1.EntityAnnotation.Builder
-
- All Implemented Interfaces:
EntityAnnotationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- EntityAnnotation
public static final class EntityAnnotation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder> implements EntityAnnotationOrBuilder
Set of detected entity features.
Protobuf typegoogle.cloud.vision.v1p3beta1.EntityAnnotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description EntityAnnotation.BuilderaddAllLocations(Iterable<? extends LocationInfo> values)The location information for the detected entity.EntityAnnotation.BuilderaddAllProperties(Iterable<? extends Property> values)Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.EntityAnnotation.BuilderaddLocations(int index, LocationInfo value)The location information for the detected entity.EntityAnnotation.BuilderaddLocations(int index, LocationInfo.Builder builderForValue)The location information for the detected entity.EntityAnnotation.BuilderaddLocations(LocationInfo value)The location information for the detected entity.EntityAnnotation.BuilderaddLocations(LocationInfo.Builder builderForValue)The location information for the detected entity.LocationInfo.BuilderaddLocationsBuilder()The location information for the detected entity.LocationInfo.BuilderaddLocationsBuilder(int index)The location information for the detected entity.EntityAnnotation.BuilderaddProperties(int index, Property value)Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.EntityAnnotation.BuilderaddProperties(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.EntityAnnotation.BuilderaddProperties(Property value)Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.EntityAnnotation.BuilderaddProperties(Property.Builder builderForValue)Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.Property.BuilderaddPropertiesBuilder()Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.Property.BuilderaddPropertiesBuilder(int index)Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.EntityAnnotation.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)EntityAnnotationbuild()EntityAnnotationbuildPartial()EntityAnnotation.Builderclear()EntityAnnotation.BuilderclearBoundingPoly()Image region to which this entity belongs.EntityAnnotation.BuilderclearConfidence()**Deprecated.EntityAnnotation.BuilderclearDescription()Entity textual description, expressed in its `locale` language.EntityAnnotation.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)EntityAnnotation.BuilderclearLocale()The language code for the locale in which the entity textual `description` is expressed.EntityAnnotation.BuilderclearLocations()The location information for the detected entity.EntityAnnotation.BuilderclearMid()Opaque entity ID.EntityAnnotation.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)EntityAnnotation.BuilderclearProperties()Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.EntityAnnotation.BuilderclearScore()Overall score of the result.EntityAnnotation.BuilderclearTopicality()The relevancy of the ICA (Image Content Annotation) label to the image.EntityAnnotation.Builderclone()BoundingPolygetBoundingPoly()Image region to which this entity belongs.BoundingPoly.BuildergetBoundingPolyBuilder()Image region to which this entity belongs.BoundingPolyOrBuildergetBoundingPolyOrBuilder()Image region to which this entity belongs.floatgetConfidence()**Deprecated.EntityAnnotationgetDefaultInstanceForType()StringgetDescription()Entity textual description, expressed in its `locale` language.com.google.protobuf.ByteStringgetDescriptionBytes()Entity textual description, expressed in its `locale` language.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetLocale()The language code for the locale in which the entity textual `description` is expressed.com.google.protobuf.ByteStringgetLocaleBytes()The language code for the locale in which the entity textual `description` is expressed.LocationInfogetLocations(int index)The location information for the detected entity.LocationInfo.BuildergetLocationsBuilder(int index)The location information for the detected entity.List<LocationInfo.Builder>getLocationsBuilderList()The location information for the detected entity.intgetLocationsCount()The location information for the detected entity.List<LocationInfo>getLocationsList()The location information for the detected entity.LocationInfoOrBuildergetLocationsOrBuilder(int index)The location information for the detected entity.List<? extends LocationInfoOrBuilder>getLocationsOrBuilderList()The location information for the detected entity.StringgetMid()Opaque entity ID.com.google.protobuf.ByteStringgetMidBytes()Opaque entity ID.PropertygetProperties(int index)Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.Property.BuildergetPropertiesBuilder(int index)Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.List<Property.Builder>getPropertiesBuilderList()Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.intgetPropertiesCount()Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.List<Property>getPropertiesList()Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.PropertyOrBuildergetPropertiesOrBuilder(int index)Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.List<? extends PropertyOrBuilder>getPropertiesOrBuilderList()Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.floatgetScore()Overall score of the result.floatgetTopicality()The relevancy of the ICA (Image Content Annotation) label to the image.booleanhasBoundingPoly()Image region to which this entity belongs.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()EntityAnnotation.BuildermergeBoundingPoly(BoundingPoly value)Image region to which this entity belongs.EntityAnnotation.BuildermergeFrom(EntityAnnotation other)EntityAnnotation.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)EntityAnnotation.BuildermergeFrom(com.google.protobuf.Message other)EntityAnnotation.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)EntityAnnotation.BuilderremoveLocations(int index)The location information for the detected entity.EntityAnnotation.BuilderremoveProperties(int index)Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.EntityAnnotation.BuildersetBoundingPoly(BoundingPoly value)Image region to which this entity belongs.EntityAnnotation.BuildersetBoundingPoly(BoundingPoly.Builder builderForValue)Image region to which this entity belongs.EntityAnnotation.BuildersetConfidence(float value)**Deprecated.EntityAnnotation.BuildersetDescription(String value)Entity textual description, expressed in its `locale` language.EntityAnnotation.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Entity textual description, expressed in its `locale` language.EntityAnnotation.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)EntityAnnotation.BuildersetLocale(String value)The language code for the locale in which the entity textual `description` is expressed.EntityAnnotation.BuildersetLocaleBytes(com.google.protobuf.ByteString value)The language code for the locale in which the entity textual `description` is expressed.EntityAnnotation.BuildersetLocations(int index, LocationInfo value)The location information for the detected entity.EntityAnnotation.BuildersetLocations(int index, LocationInfo.Builder builderForValue)The location information for the detected entity.EntityAnnotation.BuildersetMid(String value)Opaque entity ID.EntityAnnotation.BuildersetMidBytes(com.google.protobuf.ByteString value)Opaque entity ID.EntityAnnotation.BuildersetProperties(int index, Property value)Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.EntityAnnotation.BuildersetProperties(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.EntityAnnotation.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)EntityAnnotation.BuildersetScore(float value)Overall score of the result.EntityAnnotation.BuildersetTopicality(float value)The relevancy of the ICA (Image Content Annotation) label to the image.EntityAnnotation.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
clear
public EntityAnnotation.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
getDefaultInstanceForType
public EntityAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public EntityAnnotation build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EntityAnnotation buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EntityAnnotation.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
setField
public EntityAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
clearField
public EntityAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
clearOneof
public EntityAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
setRepeatedField
public EntityAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
addRepeatedField
public EntityAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
mergeFrom
public EntityAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EntityAnnotation.Builder>
-
mergeFrom
public EntityAnnotation.Builder mergeFrom(EntityAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
mergeFrom
public EntityAnnotation.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<EntityAnnotation.Builder>- Throws:
IOException
-
getMid
public String getMid()
Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/).
string mid = 1;- Specified by:
getMidin interfaceEntityAnnotationOrBuilder- Returns:
- The mid.
-
getMidBytes
public com.google.protobuf.ByteString getMidBytes()
Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/).
string mid = 1;- Specified by:
getMidBytesin interfaceEntityAnnotationOrBuilder- Returns:
- The bytes for mid.
-
setMid
public EntityAnnotation.Builder setMid(String value)
Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/).
string mid = 1;- Parameters:
value- The mid to set.- Returns:
- This builder for chaining.
-
clearMid
public EntityAnnotation.Builder clearMid()
Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/).
string mid = 1;- Returns:
- This builder for chaining.
-
setMidBytes
public EntityAnnotation.Builder setMidBytes(com.google.protobuf.ByteString value)
Opaque entity ID. Some IDs may be available in [Google Knowledge Graph Search API](https://developers.google.com/knowledge-graph/).
string mid = 1;- Parameters:
value- The bytes for mid to set.- Returns:
- This builder for chaining.
-
getLocale
public String getLocale()
The language code for the locale in which the entity textual `description` is expressed.
string locale = 2;- Specified by:
getLocalein interfaceEntityAnnotationOrBuilder- Returns:
- The locale.
-
getLocaleBytes
public com.google.protobuf.ByteString getLocaleBytes()
The language code for the locale in which the entity textual `description` is expressed.
string locale = 2;- Specified by:
getLocaleBytesin interfaceEntityAnnotationOrBuilder- Returns:
- The bytes for locale.
-
setLocale
public EntityAnnotation.Builder setLocale(String value)
The language code for the locale in which the entity textual `description` is expressed.
string locale = 2;- Parameters:
value- The locale to set.- Returns:
- This builder for chaining.
-
clearLocale
public EntityAnnotation.Builder clearLocale()
The language code for the locale in which the entity textual `description` is expressed.
string locale = 2;- Returns:
- This builder for chaining.
-
setLocaleBytes
public EntityAnnotation.Builder setLocaleBytes(com.google.protobuf.ByteString value)
The language code for the locale in which the entity textual `description` is expressed.
string locale = 2;- Parameters:
value- The bytes for locale to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
Entity textual description, expressed in its `locale` language.
string description = 3;- Specified by:
getDescriptionin interfaceEntityAnnotationOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Entity textual description, expressed in its `locale` language.
string description = 3;- Specified by:
getDescriptionBytesin interfaceEntityAnnotationOrBuilder- Returns:
- The bytes for description.
-
setDescription
public EntityAnnotation.Builder setDescription(String value)
Entity textual description, expressed in its `locale` language.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public EntityAnnotation.Builder clearDescription()
Entity textual description, expressed in its `locale` language.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public EntityAnnotation.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Entity textual description, expressed in its `locale` language.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getScore
public float getScore()
Overall score of the result. Range [0, 1].
float score = 4;- Specified by:
getScorein interfaceEntityAnnotationOrBuilder- Returns:
- The score.
-
setScore
public EntityAnnotation.Builder setScore(float value)
Overall score of the result. Range [0, 1].
float score = 4;- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
clearScore
public EntityAnnotation.Builder clearScore()
Overall score of the result. Range [0, 1].
float score = 4;- Returns:
- This builder for chaining.
-
getConfidence
public float getConfidence()
**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;- Specified by:
getConfidencein interfaceEntityAnnotationOrBuilder- Returns:
- The confidence.
-
setConfidence
public EntityAnnotation.Builder setConfidence(float value)
**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;- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
public EntityAnnotation.Builder clearConfidence()
**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;- Returns:
- This builder for chaining.
-
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;- Specified by:
getTopicalityin interfaceEntityAnnotationOrBuilder- Returns:
- The topicality.
-
setTopicality
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;- Parameters:
value- The topicality to set.- Returns:
- 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;- Returns:
- This builder for chaining.
-
hasBoundingPoly
public boolean hasBoundingPoly()
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;- Specified by:
hasBoundingPolyin interfaceEntityAnnotationOrBuilder- Returns:
- Whether the boundingPoly field is set.
-
getBoundingPoly
public BoundingPoly getBoundingPoly()
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;- Specified by:
getBoundingPolyin interfaceEntityAnnotationOrBuilder- Returns:
- The boundingPoly.
-
setBoundingPoly
public EntityAnnotation.Builder setBoundingPoly(BoundingPoly value)
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;
-
setBoundingPoly
public EntityAnnotation.Builder setBoundingPoly(BoundingPoly.Builder builderForValue)
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;
-
mergeBoundingPoly
public EntityAnnotation.Builder mergeBoundingPoly(BoundingPoly value)
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;
-
clearBoundingPoly
public EntityAnnotation.Builder clearBoundingPoly()
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;
-
getBoundingPolyBuilder
public BoundingPoly.Builder getBoundingPolyBuilder()
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;
-
getBoundingPolyOrBuilder
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
Image region to which this entity belongs. Not produced for `LABEL_DETECTION` features.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 7;- Specified by:
getBoundingPolyOrBuilderin interfaceEntityAnnotationOrBuilder
-
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.v1p3beta1.LocationInfo locations = 8;- Specified by:
getLocationsListin interfaceEntityAnnotationOrBuilder
-
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.v1p3beta1.LocationInfo locations = 8;- Specified by:
getLocationsCountin interfaceEntityAnnotationOrBuilder
-
getLocations
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.v1p3beta1.LocationInfo locations = 8;- Specified by:
getLocationsin interfaceEntityAnnotationOrBuilder
-
setLocations
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.v1p3beta1.LocationInfo locations = 8;
-
setLocations
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.v1p3beta1.LocationInfo locations = 8;
-
addLocations
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.v1p3beta1.LocationInfo locations = 8;
-
addLocations
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.v1p3beta1.LocationInfo locations = 8;
-
addLocations
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.v1p3beta1.LocationInfo locations = 8;
-
addLocations
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.v1p3beta1.LocationInfo locations = 8;
-
addAllLocations
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.v1p3beta1.LocationInfo locations = 8;
-
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.v1p3beta1.LocationInfo locations = 8;
-
removeLocations
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.v1p3beta1.LocationInfo locations = 8;
-
getLocationsBuilder
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.v1p3beta1.LocationInfo locations = 8;
-
getLocationsOrBuilder
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.v1p3beta1.LocationInfo locations = 8;- Specified by:
getLocationsOrBuilderin interfaceEntityAnnotationOrBuilder
-
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.v1p3beta1.LocationInfo locations = 8;- Specified by:
getLocationsOrBuilderListin interfaceEntityAnnotationOrBuilder
-
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.v1p3beta1.LocationInfo locations = 8;
-
addLocationsBuilder
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.v1p3beta1.LocationInfo locations = 8;
-
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.v1p3beta1.LocationInfo locations = 8;
-
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.v1p3beta1.Property properties = 9;- Specified by:
getPropertiesListin interfaceEntityAnnotationOrBuilder
-
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.v1p3beta1.Property properties = 9;- Specified by:
getPropertiesCountin interfaceEntityAnnotationOrBuilder
-
getProperties
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.v1p3beta1.Property properties = 9;- Specified by:
getPropertiesin interfaceEntityAnnotationOrBuilder
-
setProperties
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.v1p3beta1.Property properties = 9;
-
setProperties
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.v1p3beta1.Property properties = 9;
-
addProperties
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.v1p3beta1.Property properties = 9;
-
addProperties
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.v1p3beta1.Property properties = 9;
-
addProperties
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.v1p3beta1.Property properties = 9;
-
addProperties
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.v1p3beta1.Property properties = 9;
-
addAllProperties
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.v1p3beta1.Property properties = 9;
-
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.v1p3beta1.Property properties = 9;
-
removeProperties
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.v1p3beta1.Property properties = 9;
-
getPropertiesBuilder
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.v1p3beta1.Property properties = 9;
-
getPropertiesOrBuilder
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.v1p3beta1.Property properties = 9;- Specified by:
getPropertiesOrBuilderin interfaceEntityAnnotationOrBuilder
-
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.v1p3beta1.Property properties = 9;- Specified by:
getPropertiesOrBuilderListin interfaceEntityAnnotationOrBuilder
-
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.v1p3beta1.Property properties = 9;
-
addPropertiesBuilder
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.v1p3beta1.Property properties = 9;
-
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.v1p3beta1.Property properties = 9;
-
setUnknownFields
public final EntityAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
mergeUnknownFields
public final EntityAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
-