Package com.google.cloud.vision.v1
Interface LocalizedObjectAnnotationOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
LocalizedObjectAnnotation,LocalizedObjectAnnotation.Builder
public interface LocalizedObjectAnnotationOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BoundingPolygetBoundingPoly()Image region to which this object belongs.BoundingPolyOrBuildergetBoundingPolyOrBuilder()Image region to which this object belongs.StringgetLanguageCode()The BCP-47 language code, such as "en-US" or "sr-Latn".com.google.protobuf.ByteStringgetLanguageCodeBytes()The BCP-47 language code, such as "en-US" or "sr-Latn".StringgetMid()Object ID that should align with EntityAnnotation mid.com.google.protobuf.ByteStringgetMidBytes()Object ID that should align with EntityAnnotation mid.StringgetName()Object name, expressed in its `language_code` language.com.google.protobuf.ByteStringgetNameBytes()Object name, expressed in its `language_code` language.floatgetScore()Score of the result.booleanhasBoundingPoly()Image region to which this object belongs.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getMid
String getMid()
Object ID that should align with EntityAnnotation mid.
string mid = 1;- Returns:
- The mid.
-
getMidBytes
com.google.protobuf.ByteString getMidBytes()
Object ID that should align with EntityAnnotation mid.
string mid = 1;- Returns:
- The bytes for mid.
-
getLanguageCode
String getLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string language_code = 2;- Returns:
- The languageCode.
-
getLanguageCodeBytes
com.google.protobuf.ByteString getLanguageCodeBytes()
The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
string language_code = 2;- Returns:
- The bytes for languageCode.
-
getName
String getName()
Object name, expressed in its `language_code` language.
string name = 3;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Object name, expressed in its `language_code` language.
string name = 3;- Returns:
- The bytes for name.
-
getScore
float getScore()
Score of the result. Range [0, 1].
float score = 4;- Returns:
- The score.
-
hasBoundingPoly
boolean hasBoundingPoly()
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 5;- Returns:
- Whether the boundingPoly field is set.
-
getBoundingPoly
BoundingPoly getBoundingPoly()
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 5;- Returns:
- The boundingPoly.
-
getBoundingPolyOrBuilder
BoundingPolyOrBuilder getBoundingPolyOrBuilder()
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 5;
-
-