Package com.google.cloud.vision.v1
Class LocalizedObjectAnnotation.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LocalizedObjectAnnotation.Builder>
com.google.cloud.vision.v1.LocalizedObjectAnnotation.Builder
- All Implemented Interfaces:
LocalizedObjectAnnotationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LocalizedObjectAnnotation
public static final class LocalizedObjectAnnotation.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LocalizedObjectAnnotation.Builder>
implements LocalizedObjectAnnotationOrBuilder
Set of detected objects with bounding boxes.Protobuf type
google.cloud.vision.v1.LocalizedObjectAnnotation-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Image region to which this object belongs.The BCP-47 language code, such as "en-US" or "sr-Latn".clearMid()Object ID that should align with EntityAnnotation mid.Object name, expressed in its `language_code` language.Score of the result.Image region to which this object belongs.Image region to which this object belongs.Image region to which this object belongs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe BCP-47 language code, such as "en-US" or "sr-Latn".com.google.protobuf.ByteStringThe BCP-47 language code, such as "en-US" or "sr-Latn".getMid()Object ID that should align with EntityAnnotation mid.com.google.protobuf.ByteStringObject ID that should align with EntityAnnotation mid.getName()Object name, expressed in its `language_code` language.com.google.protobuf.ByteStringObject name, expressed in its `language_code` language.floatgetScore()Score of the result.booleanImage region to which this object belongs.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBoundingPoly(BoundingPoly value) Image region to which this object belongs.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setBoundingPoly(BoundingPoly value) Image region to which this object belongs.setBoundingPoly(BoundingPoly.Builder builderForValue) Image region to which this object belongs.setLanguageCode(String value) The BCP-47 language code, such as "en-US" or "sr-Latn".setLanguageCodeBytes(com.google.protobuf.ByteString value) The BCP-47 language code, such as "en-US" or "sr-Latn".Object ID that should align with EntityAnnotation mid.setMidBytes(com.google.protobuf.ByteString value) Object ID that should align with EntityAnnotation mid.Object name, expressed in its `language_code` language.setNameBytes(com.google.protobuf.ByteString value) Object name, expressed in its `language_code` language.setScore(float value) Score of the result.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LocalizedObjectAnnotation.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LocalizedObjectAnnotation.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.GeneratedMessage.Builder<LocalizedObjectAnnotation.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LocalizedObjectAnnotation.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LocalizedObjectAnnotation.Builder>
-
mergeFrom
public LocalizedObjectAnnotation.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<LocalizedObjectAnnotation.Builder>- Throws:
IOException
-
getMid
Object ID that should align with EntityAnnotation mid.
string mid = 1;- Specified by:
getMidin interfaceLocalizedObjectAnnotationOrBuilder- Returns:
- The mid.
-
getMidBytes
public com.google.protobuf.ByteString getMidBytes()Object ID that should align with EntityAnnotation mid.
string mid = 1;- Specified by:
getMidBytesin interfaceLocalizedObjectAnnotationOrBuilder- Returns:
- The bytes for mid.
-
setMid
Object ID that should align with EntityAnnotation mid.
string mid = 1;- Parameters:
value- The mid to set.- Returns:
- This builder for chaining.
-
clearMid
Object ID that should align with EntityAnnotation mid.
string mid = 1;- Returns:
- This builder for chaining.
-
setMidBytes
Object ID that should align with EntityAnnotation mid.
string mid = 1;- Parameters:
value- The bytes for mid to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getLanguageCodein interfaceLocalizedObjectAnnotationOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public 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;- Specified by:
getLanguageCodeBytesin interfaceLocalizedObjectAnnotationOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
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;- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
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:
- This builder for chaining.
-
setLanguageCodeBytes
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;- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
getName
Object name, expressed in its `language_code` language.
string name = 3;- Specified by:
getNamein interfaceLocalizedObjectAnnotationOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Object name, expressed in its `language_code` language.
string name = 3;- Specified by:
getNameBytesin interfaceLocalizedObjectAnnotationOrBuilder- Returns:
- The bytes for name.
-
setName
Object name, expressed in its `language_code` language.
string name = 3;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Object name, expressed in its `language_code` language.
string name = 3;- Returns:
- This builder for chaining.
-
setNameBytes
Object name, expressed in its `language_code` language.
string name = 3;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getScore
public float getScore()Score of the result. Range [0, 1].
float score = 4;- Specified by:
getScorein interfaceLocalizedObjectAnnotationOrBuilder- Returns:
- The score.
-
setScore
Score of the result. Range [0, 1].
float score = 4;- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
clearScore
Score of the result. Range [0, 1].
float score = 4;- Returns:
- This builder for chaining.
-
hasBoundingPoly
public boolean hasBoundingPoly()Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 5;- Specified by:
hasBoundingPolyin interfaceLocalizedObjectAnnotationOrBuilder- Returns:
- Whether the boundingPoly field is set.
-
getBoundingPoly
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 5;- Specified by:
getBoundingPolyin interfaceLocalizedObjectAnnotationOrBuilder- Returns:
- The boundingPoly.
-
setBoundingPoly
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 5; -
setBoundingPoly
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 5; -
mergeBoundingPoly
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 5; -
clearBoundingPoly
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 5; -
getBoundingPolyBuilder
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 5; -
getBoundingPolyOrBuilder
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 5;- Specified by:
getBoundingPolyOrBuilderin interfaceLocalizedObjectAnnotationOrBuilder
-