Class LocalizedObjectAnnotation.Builder (3.46.0)
Stay organized with collections
Save and categorize content based on your preferences.
- 3.78.0 (latest)
- 3.76.0
- 3.74.0
- 3.73.0
- 3.72.0
- 3.71.0
- 3.70.0
- 3.68.0
- 3.66.0
- 3.65.0
- 3.62.0
- 3.61.0
- 3.60.0
- 3.58.0
- 3.57.0
- 3.56.0
- 3.55.0
- 3.54.0
- 3.53.0
- 3.52.0
- 3.51.0
- 3.50.0
- 3.49.0
- 3.47.0
- 3.46.0
- 3.45.0
- 3.44.0
- 3.43.0
- 3.42.0
- 3.41.0
- 3.40.0
- 3.39.0
- 3.38.0
- 3.37.0
- 3.35.0
- 3.34.0
- 3.33.0
- 3.32.0
- 3.31.0
- 3.30.0
- 3.29.0
- 3.28.0
- 3.27.0
- 3.26.0
- 3.25.0
- 3.22.0
- 3.21.0
- 3.20.0
- 3.19.0
- 3.18.0
- 3.17.0
- 3.16.0
- 3.15.0
- 3.14.0
- 3.13.0
- 3.12.0
- 3.11.0
- 3.10.0
- 3.9.0
- 3.7.0
- 3.6.0
- 3.5.0
- 3.4.0
- 3.3.0
- 3.2.0
- 3.1.3
- 2.1.4
- 2.0.29
publicstaticfinalclass LocalizedObjectAnnotation.BuilderextendsGeneratedMessageV3.Builder<LocalizedObjectAnnotation.Builder>implementsLocalizedObjectAnnotationOrBuilderSet of detected objects with bounding boxes.
Protobuf type google.cloud.vision.v1p3beta1.LocalizedObjectAnnotation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > LocalizedObjectAnnotation.BuilderImplements
LocalizedObjectAnnotationOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicLocalizedObjectAnnotation.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
build()
publicLocalizedObjectAnnotationbuild()| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation |
|
buildPartial()
publicLocalizedObjectAnnotationbuildPartial()| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation |
|
clear()
publicLocalizedObjectAnnotation.Builderclear()| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
clearBoundingPoly()
publicLocalizedObjectAnnotation.BuilderclearBoundingPoly()Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5;
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicLocalizedObjectAnnotation.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
clearLanguageCode()
publicLocalizedObjectAnnotation.BuilderclearLanguageCode()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 | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
This builder for chaining. |
clearMid()
publicLocalizedObjectAnnotation.BuilderclearMid()Object ID that should align with EntityAnnotation mid.
string mid = 1;
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
This builder for chaining. |
clearName()
publicLocalizedObjectAnnotation.BuilderclearName() Object name, expressed in its language_code language.
string name = 3;
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
publicLocalizedObjectAnnotation.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
clearScore()
publicLocalizedObjectAnnotation.BuilderclearScore()Score of the result. Range [0, 1].
float score = 4;
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
This builder for chaining. |
clone()
publicLocalizedObjectAnnotation.Builderclone()| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
getBoundingPoly()
publicBoundingPolygetBoundingPoly()Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5;
| Returns | |
|---|---|
| Type | Description |
BoundingPoly |
The boundingPoly. |
getBoundingPolyBuilder()
publicBoundingPoly.BuildergetBoundingPolyBuilder()Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5;
| Returns | |
|---|---|
| Type | Description |
BoundingPoly.Builder |
|
getBoundingPolyOrBuilder()
publicBoundingPolyOrBuildergetBoundingPolyOrBuilder()Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5;
| Returns | |
|---|---|
| Type | Description |
BoundingPolyOrBuilder |
|
getDefaultInstanceForType()
publicLocalizedObjectAnnotationgetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getLanguageCode()
publicStringgetLanguageCode()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 | |
|---|---|
| Type | Description |
String |
The languageCode. |
getLanguageCodeBytes()
publicByteStringgetLanguageCodeBytes()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 | |
|---|---|
| Type | Description |
ByteString |
The bytes for languageCode. |
getMid()
publicStringgetMid()Object ID that should align with EntityAnnotation mid.
string mid = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The mid. |
getMidBytes()
publicByteStringgetMidBytes()Object ID that should align with EntityAnnotation mid.
string mid = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for mid. |
getName()
publicStringgetName() Object name, expressed in its language_code language.
string name = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
publicByteStringgetNameBytes() Object name, expressed in its language_code language.
string name = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getScore()
publicfloatgetScore()Score of the result. Range [0, 1].
float score = 4;
| Returns | |
|---|---|
| Type | Description |
float |
The score. |
hasBoundingPoly()
publicbooleanhasBoundingPoly()Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the boundingPoly field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeBoundingPoly(BoundingPoly value)
publicLocalizedObjectAnnotation.BuildermergeBoundingPoly(BoundingPolyvalue)Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
BoundingPoly |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
mergeFrom(LocalizedObjectAnnotation other)
publicLocalizedObjectAnnotation.BuildermergeFrom(LocalizedObjectAnnotationother)| Parameter | |
|---|---|
| Name | Description |
other |
LocalizedObjectAnnotation |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicLocalizedObjectAnnotation.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicLocalizedObjectAnnotation.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalLocalizedObjectAnnotation.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
setBoundingPoly(BoundingPoly value)
publicLocalizedObjectAnnotation.BuildersetBoundingPoly(BoundingPolyvalue)Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
BoundingPoly |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
setBoundingPoly(BoundingPoly.Builder builderForValue)
publicLocalizedObjectAnnotation.BuildersetBoundingPoly(BoundingPoly.BuilderbuilderForValue)Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1p3beta1.BoundingPoly bounding_poly = 5;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
BoundingPoly.Builder |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicLocalizedObjectAnnotation.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
setLanguageCode(String value)
publicLocalizedObjectAnnotation.BuildersetLanguageCode(Stringvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
String The languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
This builder for chaining. |
setLanguageCodeBytes(ByteString value)
publicLocalizedObjectAnnotation.BuildersetLanguageCodeBytes(ByteStringvalue)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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for languageCode to set. |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
This builder for chaining. |
setMid(String value)
publicLocalizedObjectAnnotation.BuildersetMid(Stringvalue)Object ID that should align with EntityAnnotation mid.
string mid = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
String The mid to set. |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
This builder for chaining. |
setMidBytes(ByteString value)
publicLocalizedObjectAnnotation.BuildersetMidBytes(ByteStringvalue)Object ID that should align with EntityAnnotation mid.
string mid = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for mid to set. |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
This builder for chaining. |
setName(String value)
publicLocalizedObjectAnnotation.BuildersetName(Stringvalue) Object name, expressed in its language_code language.
string name = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
String The name to set. |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
publicLocalizedObjectAnnotation.BuildersetNameBytes(ByteStringvalue) Object name, expressed in its language_code language.
string name = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteString The bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicLocalizedObjectAnnotation.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|
setScore(float value)
publicLocalizedObjectAnnotation.BuildersetScore(floatvalue)Score of the result. Range [0, 1].
float score = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
float The score to set. |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalLocalizedObjectAnnotation.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
LocalizedObjectAnnotation.Builder |
|