Package com.google.cloud.vision.v1
Class LocalizedObjectAnnotation
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.vision.v1.LocalizedObjectAnnotation
- All Implemented Interfaces:
LocalizedObjectAnnotationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class LocalizedObjectAnnotation
extends com.google.protobuf.GeneratedMessage
implements LocalizedObjectAnnotationOrBuilder
Set of detected objects with bounding boxes.Protobuf type
google.cloud.vision.v1.LocalizedObjectAnnotation- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSet of detected objects with bounding boxes.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanImage region to which this object belongs.Image region to which this object belongs.static LocalizedObjectAnnotationstatic final com.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.com.google.protobuf.Parser<LocalizedObjectAnnotation>floatgetScore()Score of the result.intbooleanImage region to which this object belongs.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(LocalizedObjectAnnotation prototype) protected LocalizedObjectAnnotation.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static LocalizedObjectAnnotationparseDelimitedFrom(InputStream input) static LocalizedObjectAnnotationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LocalizedObjectAnnotationparseFrom(byte[] data) static LocalizedObjectAnnotationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LocalizedObjectAnnotationparseFrom(com.google.protobuf.ByteString data) static LocalizedObjectAnnotationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LocalizedObjectAnnotationparseFrom(com.google.protobuf.CodedInputStream input) static LocalizedObjectAnnotationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LocalizedObjectAnnotationparseFrom(InputStream input) static LocalizedObjectAnnotationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static LocalizedObjectAnnotationparseFrom(ByteBuffer data) static LocalizedObjectAnnotationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<LocalizedObjectAnnotation>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
MID_FIELD_NUMBER
public static final int MID_FIELD_NUMBER- See Also:
-
LANGUAGE_CODE_FIELD_NUMBER
public static final int LANGUAGE_CODE_FIELD_NUMBER- See Also:
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER- See Also:
-
BOUNDING_POLY_FIELD_NUMBER
public static final int BOUNDING_POLY_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
getScore
public float getScore()Score of the result. Range [0, 1].
float score = 4;- Specified by:
getScorein interfaceLocalizedObjectAnnotationOrBuilder- Returns:
- The score.
-
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.
-
getBoundingPolyOrBuilder
Image region to which this object belongs. This must be populated.
.google.cloud.vision.v1.BoundingPoly bounding_poly = 5;- Specified by:
getBoundingPolyOrBuilderin interfaceLocalizedObjectAnnotationOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static LocalizedObjectAnnotation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalizedObjectAnnotation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalizedObjectAnnotation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalizedObjectAnnotation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalizedObjectAnnotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static LocalizedObjectAnnotation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static LocalizedObjectAnnotation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static LocalizedObjectAnnotation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static LocalizedObjectAnnotation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static LocalizedObjectAnnotation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected LocalizedObjectAnnotation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-