public final class LocalizedObjectAnnotation extends GeneratedMessageV3 implements LocalizedObjectAnnotationOrBuilder
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>)
Static Fields
BOUNDING_POLY_FIELD_NUMBER
public static final int BOUNDING_POLY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
MID_FIELD_NUMBER
public static final int MID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static LocalizedObjectAnnotation getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static LocalizedObjectAnnotation.Builder newBuilder()
newBuilder(LocalizedObjectAnnotation prototype)
public static LocalizedObjectAnnotation.Builder newBuilder(LocalizedObjectAnnotation prototype)
public static LocalizedObjectAnnotation parseDelimitedFrom(InputStream input)
public static LocalizedObjectAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static LocalizedObjectAnnotation parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LocalizedObjectAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static LocalizedObjectAnnotation parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LocalizedObjectAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LocalizedObjectAnnotation parseFrom(CodedInputStream input)
public static LocalizedObjectAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LocalizedObjectAnnotation parseFrom(InputStream input)
public static LocalizedObjectAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static LocalizedObjectAnnotation parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LocalizedObjectAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<LocalizedObjectAnnotation> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getBoundingPoly()
public BoundingPoly getBoundingPoly()
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5;
getBoundingPolyOrBuilder()
public BoundingPolyOrBuilder getBoundingPolyOrBuilder()
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1p4beta1.BoundingPoly bounding_poly = 5;
getDefaultInstanceForType()
public LocalizedObjectAnnotation getDefaultInstanceForType()
getLanguageCode()
public String getLanguageCode()
Returns |
---|
Type | Description |
String | The languageCode.
|
getLanguageCodeBytes()
public ByteString getLanguageCodeBytes()
Returns |
---|
Type | Description |
ByteString | The bytes for languageCode.
|
getMid()
Object ID that should align with EntityAnnotation mid.
string mid = 1;
Returns |
---|
Type | Description |
String | The mid.
|
getMidBytes()
public ByteString getMidBytes()
Object ID that should align with EntityAnnotation mid.
string mid = 1;
Returns |
---|
Type | Description |
ByteString | The bytes for mid.
|
getName()
Object name, expressed in its language_code
language.
string name = 3;
Returns |
---|
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Object name, expressed in its language_code
language.
string name = 3;
Returns |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<LocalizedObjectAnnotation> getParserForType()
Overrides
getScore()
Score of the result. Range [0, 1].
float score = 4;
Returns |
---|
Type | Description |
float | The score.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hasBoundingPoly()
public boolean hasBoundingPoly()
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()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public LocalizedObjectAnnotation.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected LocalizedObjectAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public LocalizedObjectAnnotation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides