Package viam.app.data.v1
Class Data.BoundingBox
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<Data.BoundingBox,Data.BoundingBox.Builder>
viam.app.data.v1.Data.BoundingBox
- All Implemented Interfaces:
com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,Data.BoundingBoxOrBuilder
- Enclosing class:
- Data
public static final class Data.BoundingBox
extends com.google.protobuf.GeneratedMessageLite<Data.BoundingBox,Data.BoundingBox.Builder>
implements Data.BoundingBoxOrBuilder
BoundingBox represents a labeled bounding box on an image. x and y values are normalized ratios between 0 and 1.Protobuf type
viam.app.data.v1.BoundingBox
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
BoundingBox represents a labeled bounding box on an image.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,
?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionprotected final Object
dynamicMethod
(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) double
confidence is an optional range from 0 - 1static Data.BoundingBox
getId()
string id = 1 [json_name = "id"];
com.google.protobuf.ByteString
string id = 1 [json_name = "id"];
getLabel()
string label = 2 [json_name = "label"];
com.google.protobuf.ByteString
string label = 2 [json_name = "label"];
double
double x_max_normalized = 5 [json_name = "xMaxNormalized"];
double
double x_min_normalized = 3 [json_name = "xMinNormalized"];
double
double y_max_normalized = 6 [json_name = "yMaxNormalized"];
double
double y_min_normalized = 4 [json_name = "yMinNormalized"];
boolean
confidence is an optional range from 0 - 1static Data.BoundingBox.Builder
static Data.BoundingBox.Builder
newBuilder
(Data.BoundingBox prototype) static Data.BoundingBox
parseDelimitedFrom
(InputStream input) static Data.BoundingBox
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Data.BoundingBox
parseFrom
(byte[] data) static Data.BoundingBox
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Data.BoundingBox
parseFrom
(com.google.protobuf.ByteString data) static Data.BoundingBox
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Data.BoundingBox
parseFrom
(com.google.protobuf.CodedInputStream input) static Data.BoundingBox
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Data.BoundingBox
parseFrom
(InputStream input) static Data.BoundingBox
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Data.BoundingBox
parseFrom
(ByteBuffer data) static Data.BoundingBox
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Data.BoundingBox>
parser()
Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeTo
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
LABEL_FIELD_NUMBER
public static final int LABEL_FIELD_NUMBER- See Also:
-
X_MIN_NORMALIZED_FIELD_NUMBER
public static final int X_MIN_NORMALIZED_FIELD_NUMBER- See Also:
-
Y_MIN_NORMALIZED_FIELD_NUMBER
public static final int Y_MIN_NORMALIZED_FIELD_NUMBER- See Also:
-
X_MAX_NORMALIZED_FIELD_NUMBER
public static final int X_MAX_NORMALIZED_FIELD_NUMBER- See Also:
-
Y_MAX_NORMALIZED_FIELD_NUMBER
public static final int Y_MAX_NORMALIZED_FIELD_NUMBER- See Also:
-
CONFIDENCE_FIELD_NUMBER
public static final int CONFIDENCE_FIELD_NUMBER- See Also:
-
-
Method Details
-
getId
string id = 1 [json_name = "id"];
- Specified by:
getId
in interfaceData.BoundingBoxOrBuilder
- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()string id = 1 [json_name = "id"];
- Specified by:
getIdBytes
in interfaceData.BoundingBoxOrBuilder
- Returns:
- The bytes for id.
-
getLabel
string label = 2 [json_name = "label"];
- Specified by:
getLabel
in interfaceData.BoundingBoxOrBuilder
- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()string label = 2 [json_name = "label"];
- Specified by:
getLabelBytes
in interfaceData.BoundingBoxOrBuilder
- Returns:
- The bytes for label.
-
getXMinNormalized
public double getXMinNormalized()double x_min_normalized = 3 [json_name = "xMinNormalized"];
- Specified by:
getXMinNormalized
in interfaceData.BoundingBoxOrBuilder
- Returns:
- The xMinNormalized.
-
getYMinNormalized
public double getYMinNormalized()double y_min_normalized = 4 [json_name = "yMinNormalized"];
- Specified by:
getYMinNormalized
in interfaceData.BoundingBoxOrBuilder
- Returns:
- The yMinNormalized.
-
getXMaxNormalized
public double getXMaxNormalized()double x_max_normalized = 5 [json_name = "xMaxNormalized"];
- Specified by:
getXMaxNormalized
in interfaceData.BoundingBoxOrBuilder
- Returns:
- The xMaxNormalized.
-
getYMaxNormalized
public double getYMaxNormalized()double y_max_normalized = 6 [json_name = "yMaxNormalized"];
- Specified by:
getYMaxNormalized
in interfaceData.BoundingBoxOrBuilder
- Returns:
- The yMaxNormalized.
-
hasConfidence
public boolean hasConfidence()confidence is an optional range from 0 - 1
optional double confidence = 7 [json_name = "confidence"];
- Specified by:
hasConfidence
in interfaceData.BoundingBoxOrBuilder
- Returns:
- Whether the confidence field is set.
-
getConfidence
public double getConfidence()confidence is an optional range from 0 - 1
optional double confidence = 7 [json_name = "confidence"];
- Specified by:
getConfidence
in interfaceData.BoundingBoxOrBuilder
- Returns:
- The confidence.
-
parseFrom
public static Data.BoundingBox parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Data.BoundingBox parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Data.BoundingBox parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Data.BoundingBox parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Data.BoundingBox parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Data.BoundingBox parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Data.BoundingBox parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Data.BoundingBox parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Data.BoundingBox parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Data.BoundingBox parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
-
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethod
in classcom.google.protobuf.GeneratedMessageLite<Data.BoundingBox,
Data.BoundingBox.Builder>
-
getDefaultInstance
-
parser
-