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 BoundingPoly
getBoundingPoly()
Image region to which this object belongs.BoundingPolyOrBuilder
getBoundingPolyOrBuilder()
Image region to which this object belongs.String
getLanguageCode()
The BCP-47 language code, such as "en-US" or "sr-Latn".com.google.protobuf.ByteString
getLanguageCodeBytes()
The BCP-47 language code, such as "en-US" or "sr-Latn".String
getMid()
Object ID that should align with EntityAnnotation mid.com.google.protobuf.ByteString
getMidBytes()
Object ID that should align with EntityAnnotation mid.String
getName()
Object name, expressed in its `language_code` language.com.google.protobuf.ByteString
getNameBytes()
Object name, expressed in its `language_code` language.float
getScore()
Score of the result.boolean
hasBoundingPoly()
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.v1p4beta1.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.v1p4beta1.BoundingPoly bounding_poly = 5;
- Returns:
- The boundingPoly.
-
getBoundingPolyOrBuilder
BoundingPolyOrBuilder getBoundingPolyOrBuilder()
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5;
-
-