Package com.google.cloud.vision.v1
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.v1.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.v1.EntityAnnotation
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description EntityAnnotation.Builder
addAllLocations(Iterable<? extends LocationInfo> values)
The location information for the detected entity.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.EntityAnnotation.Builder
addLocations(int index, LocationInfo value)
The location information for the detected entity.EntityAnnotation.Builder
addLocations(int index, LocationInfo.Builder builderForValue)
The location information for the detected entity.EntityAnnotation.Builder
addLocations(LocationInfo value)
The location information for the detected entity.EntityAnnotation.Builder
addLocations(LocationInfo.Builder builderForValue)
The location information for the detected entity.LocationInfo.Builder
addLocationsBuilder()
The location information for the detected entity.LocationInfo.Builder
addLocationsBuilder(int index)
The location information for the detected entity.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.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.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.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.Property.Builder
addPropertiesBuilder()
Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.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.EntityAnnotation.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EntityAnnotation
build()
EntityAnnotation
buildPartial()
EntityAnnotation.Builder
clear()
EntityAnnotation.Builder
clearBoundingPoly()
Image region to which this entity belongs.EntityAnnotation.Builder
clearConfidence()
Deprecated.google.cloud.vision.v1.EntityAnnotation.confidence is deprecated.EntityAnnotation.Builder
clearDescription()
Entity textual description, expressed in its `locale` language.EntityAnnotation.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
EntityAnnotation.Builder
clearLocale()
The language code for the locale in which the entity textual `description` is expressed.EntityAnnotation.Builder
clearLocations()
The location information for the detected entity.EntityAnnotation.Builder
clearMid()
Opaque entity ID.EntityAnnotation.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
EntityAnnotation.Builder
clearProperties()
Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.EntityAnnotation.Builder
clearScore()
Overall score of the result.EntityAnnotation.Builder
clearTopicality()
The relevancy of the ICA (Image Content Annotation) label to the image.EntityAnnotation.Builder
clone()
BoundingPoly
getBoundingPoly()
Image region to which this entity belongs.BoundingPoly.Builder
getBoundingPolyBuilder()
Image region to which this entity belongs.BoundingPolyOrBuilder
getBoundingPolyOrBuilder()
Image region to which this entity belongs.float
getConfidence()
Deprecated.google.cloud.vision.v1.EntityAnnotation.confidence is deprecated.EntityAnnotation
getDefaultInstanceForType()
String
getDescription()
Entity textual description, expressed in its `locale` language.com.google.protobuf.ByteString
getDescriptionBytes()
Entity textual description, expressed in its `locale` language.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getLocale()
The language code for the locale in which the entity textual `description` is expressed.com.google.protobuf.ByteString
getLocaleBytes()
The language code for the locale in which the entity textual `description` is expressed.LocationInfo
getLocations(int index)
The location information for the detected entity.LocationInfo.Builder
getLocationsBuilder(int index)
The location information for the detected entity.List<LocationInfo.Builder>
getLocationsBuilderList()
The location information for the detected entity.int
getLocationsCount()
The location information for the detected entity.List<LocationInfo>
getLocationsList()
The location information for the detected entity.LocationInfoOrBuilder
getLocationsOrBuilder(int index)
The location information for the detected entity.List<? extends LocationInfoOrBuilder>
getLocationsOrBuilderList()
The location information for the detected entity.String
getMid()
Opaque entity ID.com.google.protobuf.ByteString
getMidBytes()
Opaque entity ID.Property
getProperties(int index)
Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.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.List<Property.Builder>
getPropertiesBuilderList()
Some entities may have optional user-supplied `Property` (name/value) fields, such a score or string that qualifies the entity.int
getPropertiesCount()
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.PropertyOrBuilder
getPropertiesOrBuilder(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.float
getScore()
Overall score of the result.float
getTopicality()
The relevancy of the ICA (Image Content Annotation) label to the image.boolean
hasBoundingPoly()
Image region to which this entity belongs.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
EntityAnnotation.Builder
mergeBoundingPoly(BoundingPoly value)
Image region to which this entity belongs.EntityAnnotation.Builder
mergeFrom(EntityAnnotation other)
EntityAnnotation.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
EntityAnnotation.Builder
mergeFrom(com.google.protobuf.Message other)
EntityAnnotation.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
EntityAnnotation.Builder
removeLocations(int index)
The location information for the detected entity.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.EntityAnnotation.Builder
setBoundingPoly(BoundingPoly value)
Image region to which this entity belongs.EntityAnnotation.Builder
setBoundingPoly(BoundingPoly.Builder builderForValue)
Image region to which this entity belongs.EntityAnnotation.Builder
setConfidence(float value)
Deprecated.google.cloud.vision.v1.EntityAnnotation.confidence is deprecated.EntityAnnotation.Builder
setDescription(String value)
Entity textual description, expressed in its `locale` language.EntityAnnotation.Builder
setDescriptionBytes(com.google.protobuf.ByteString value)
Entity textual description, expressed in its `locale` language.EntityAnnotation.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
EntityAnnotation.Builder
setLocale(String value)
The language code for the locale in which the entity textual `description` is expressed.EntityAnnotation.Builder
setLocaleBytes(com.google.protobuf.ByteString value)
The language code for the locale in which the entity textual `description` is expressed.EntityAnnotation.Builder
setLocations(int index, LocationInfo value)
The location information for the detected entity.EntityAnnotation.Builder
setLocations(int index, LocationInfo.Builder builderForValue)
The location information for the detected entity.EntityAnnotation.Builder
setMid(String value)
Opaque entity ID.EntityAnnotation.Builder
setMidBytes(com.google.protobuf.ByteString value)
Opaque entity ID.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.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.EntityAnnotation.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
EntityAnnotation.Builder
setScore(float value)
Overall score of the result.EntityAnnotation.Builder
setTopicality(float value)
The relevancy of the ICA (Image Content Annotation) label to the image.EntityAnnotation.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
clear
public EntityAnnotation.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
getDefaultInstanceForType
public EntityAnnotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public EntityAnnotation build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public EntityAnnotation buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public EntityAnnotation.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
setField
public EntityAnnotation.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
clearField
public EntityAnnotation.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
clearOneof
public EntityAnnotation.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
setRepeatedField
public EntityAnnotation.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
addRepeatedField
public EntityAnnotation.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
mergeFrom
public EntityAnnotation.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<EntityAnnotation.Builder>
-
mergeFrom
public EntityAnnotation.Builder mergeFrom(EntityAnnotation other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getMid
in 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:
getMidBytes
in 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:
getLocale
in 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:
getLocaleBytes
in 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:
getDescription
in interfaceEntityAnnotationOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Entity textual description, expressed in its `locale` language.
string description = 3;
- Specified by:
getDescriptionBytes
in 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:
getScore
in 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
@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];
- Specified by:
getConfidence
in interfaceEntityAnnotationOrBuilder
- Returns:
- The confidence.
-
setConfidence
@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];
- Parameters:
value
- The confidence to set.- Returns:
- This builder for chaining.
-
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];
- 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:
getTopicality
in 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.v1.BoundingPoly bounding_poly = 7;
- Specified by:
hasBoundingPoly
in 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.v1.BoundingPoly bounding_poly = 7;
- Specified by:
getBoundingPoly
in 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.v1.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.v1.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.v1.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.v1.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.v1.BoundingPoly bounding_poly = 7;
-
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;
- Specified by:
getBoundingPolyOrBuilder
in 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.v1.LocationInfo locations = 8;
- Specified by:
getLocationsList
in 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.v1.LocationInfo locations = 8;
- Specified by:
getLocationsCount
in 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.v1.LocationInfo locations = 8;
- Specified by:
getLocations
in 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.LocationInfo locations = 8;
- Specified by:
getLocationsOrBuilder
in 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.v1.LocationInfo locations = 8;
- Specified by:
getLocationsOrBuilderList
in 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.v1.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.v1.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.v1.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.v1.Property properties = 9;
- Specified by:
getPropertiesList
in 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.v1.Property properties = 9;
- Specified by:
getPropertiesCount
in 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.v1.Property properties = 9;
- Specified by:
getProperties
in 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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.Property properties = 9;
- Specified by:
getPropertiesOrBuilder
in 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.v1.Property properties = 9;
- Specified by:
getPropertiesOrBuilderList
in 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.v1.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.v1.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.v1.Property properties = 9;
-
setUnknownFields
public final EntityAnnotation.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
mergeUnknownFields
public final EntityAnnotation.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<EntityAnnotation.Builder>
-
-