Class LocalizedObjectAnnotation (3.42.0)

publicfinalclass LocalizedObjectAnnotationextendsGeneratedMessageV3implementsLocalizedObjectAnnotationOrBuilder

Set of detected objects with bounding boxes.

Protobuf type google.cloud.vision.v1p4beta1.LocalizedObjectAnnotation

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

BOUNDING_POLY_FIELD_NUMBER

publicstaticfinalintBOUNDING_POLY_FIELD_NUMBER
Field Value
Type Description
int

LANGUAGE_CODE_FIELD_NUMBER

publicstaticfinalintLANGUAGE_CODE_FIELD_NUMBER
Field Value
Type Description
int

MID_FIELD_NUMBER

publicstaticfinalintMID_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

SCORE_FIELD_NUMBER

publicstaticfinalintSCORE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticLocalizedObjectAnnotationgetDefaultInstance()
Returns
Type Description
LocalizedObjectAnnotation

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticLocalizedObjectAnnotation.BuildernewBuilder()
Returns
Type Description
LocalizedObjectAnnotation.Builder

newBuilder(LocalizedObjectAnnotation prototype)

publicstaticLocalizedObjectAnnotation.BuildernewBuilder(LocalizedObjectAnnotationprototype)
Parameter
Name Description
prototype LocalizedObjectAnnotation
Returns
Type Description
LocalizedObjectAnnotation.Builder

parseDelimitedFrom(InputStream input)

publicstaticLocalizedObjectAnnotationparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
LocalizedObjectAnnotation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticLocalizedObjectAnnotationparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocalizedObjectAnnotation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticLocalizedObjectAnnotationparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
LocalizedObjectAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticLocalizedObjectAnnotationparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocalizedObjectAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticLocalizedObjectAnnotationparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
LocalizedObjectAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticLocalizedObjectAnnotationparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocalizedObjectAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticLocalizedObjectAnnotationparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LocalizedObjectAnnotation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticLocalizedObjectAnnotationparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocalizedObjectAnnotation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticLocalizedObjectAnnotationparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
LocalizedObjectAnnotation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticLocalizedObjectAnnotationparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocalizedObjectAnnotation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticLocalizedObjectAnnotationparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LocalizedObjectAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticLocalizedObjectAnnotationparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocalizedObjectAnnotation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<LocalizedObjectAnnotation>parser()
Returns
Type Description
Parser<LocalizedObjectAnnotation>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBoundingPoly()

publicBoundingPolygetBoundingPoly()

Image region to which this object belongs. This must be populated.

.google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5;

Returns
Type Description
BoundingPoly

The boundingPoly.

getBoundingPolyOrBuilder()

publicBoundingPolyOrBuildergetBoundingPolyOrBuilder()

Image region to which this object belongs. This must be populated.

.google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5;

Returns
Type Description
BoundingPolyOrBuilder

getDefaultInstanceForType()

publicLocalizedObjectAnnotationgetDefaultInstanceForType()
Returns
Type Description
LocalizedObjectAnnotation

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.

getParserForType()

publicParser<LocalizedObjectAnnotation>getParserForType()
Returns
Type Description
Parser<LocalizedObjectAnnotation>
Overrides

getScore()

publicfloatgetScore()

Score of the result. Range [0, 1].

float score = 4;

Returns
Type Description
float

The score.

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

hasBoundingPoly()

publicbooleanhasBoundingPoly()

Image region to which this object belongs. This must be populated.

.google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5;

Returns
Type Description
boolean

Whether the boundingPoly field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicLocalizedObjectAnnotation.BuildernewBuilderForType()
Returns
Type Description
LocalizedObjectAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedLocalizedObjectAnnotation.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LocalizedObjectAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicLocalizedObjectAnnotation.BuildertoBuilder()
Returns
Type Description
LocalizedObjectAnnotation.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.