Package viam.app.data.v1
Class Data.BoundingBox.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Data.BoundingBox,Data.BoundingBox.Builder>
viam.app.data.v1.Data.BoundingBox.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Cloneable,Data.BoundingBoxOrBuilder
- Enclosing class:
- Data.BoundingBox
public static final class Data.BoundingBox.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<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-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionconfidence is an optional range from 0 - 1clearId()string id = 1 [json_name = "id"];string label = 2 [json_name = "label"];double x_max_normalized = 5 [json_name = "xMaxNormalized"];double x_min_normalized = 3 [json_name = "xMinNormalized"];double y_max_normalized = 6 [json_name = "yMaxNormalized"];double y_min_normalized = 4 [json_name = "yMinNormalized"];doubleconfidence is an optional range from 0 - 1getId()string id = 1 [json_name = "id"];com.google.protobuf.ByteStringstring id = 1 [json_name = "id"];getLabel()string label = 2 [json_name = "label"];com.google.protobuf.ByteStringstring label = 2 [json_name = "label"];doubledouble x_max_normalized = 5 [json_name = "xMaxNormalized"];doubledouble x_min_normalized = 3 [json_name = "xMinNormalized"];doubledouble y_max_normalized = 6 [json_name = "yMaxNormalized"];doubledouble y_min_normalized = 4 [json_name = "yMinNormalized"];booleanconfidence is an optional range from 0 - 1setConfidence(double value) confidence is an optional range from 0 - 1string id = 1 [json_name = "id"];setIdBytes(com.google.protobuf.ByteString value) string id = 1 [json_name = "id"];string label = 2 [json_name = "label"];setLabelBytes(com.google.protobuf.ByteString value) string label = 2 [json_name = "label"];setXMaxNormalized(double value) double x_max_normalized = 5 [json_name = "xMaxNormalized"];setXMinNormalized(double value) double x_min_normalized = 3 [json_name = "xMinNormalized"];setYMaxNormalized(double value) double y_max_normalized = 6 [json_name = "yMaxNormalized"];setYMinNormalized(double value) double y_min_normalized = 4 [json_name = "yMinNormalized"];Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getId
string id = 1 [json_name = "id"];- Specified by:
getIdin interfaceData.BoundingBoxOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()string id = 1 [json_name = "id"];- Specified by:
getIdBytesin interfaceData.BoundingBoxOrBuilder- Returns:
- The bytes for id.
-
setId
string id = 1 [json_name = "id"];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
string id = 1 [json_name = "id"];- Returns:
- This builder for chaining.
-
setIdBytes
string id = 1 [json_name = "id"];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getLabel
string label = 2 [json_name = "label"];- Specified by:
getLabelin interfaceData.BoundingBoxOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()string label = 2 [json_name = "label"];- Specified by:
getLabelBytesin interfaceData.BoundingBoxOrBuilder- Returns:
- The bytes for label.
-
setLabel
string label = 2 [json_name = "label"];- Parameters:
value- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
string label = 2 [json_name = "label"];- Returns:
- This builder for chaining.
-
setLabelBytes
string label = 2 [json_name = "label"];- Parameters:
value- The bytes for label to set.- Returns:
- This builder for chaining.
-
getXMinNormalized
public double getXMinNormalized()double x_min_normalized = 3 [json_name = "xMinNormalized"];- Specified by:
getXMinNormalizedin interfaceData.BoundingBoxOrBuilder- Returns:
- The xMinNormalized.
-
setXMinNormalized
double x_min_normalized = 3 [json_name = "xMinNormalized"];- Parameters:
value- The xMinNormalized to set.- Returns:
- This builder for chaining.
-
clearXMinNormalized
double x_min_normalized = 3 [json_name = "xMinNormalized"];- Returns:
- This builder for chaining.
-
getYMinNormalized
public double getYMinNormalized()double y_min_normalized = 4 [json_name = "yMinNormalized"];- Specified by:
getYMinNormalizedin interfaceData.BoundingBoxOrBuilder- Returns:
- The yMinNormalized.
-
setYMinNormalized
double y_min_normalized = 4 [json_name = "yMinNormalized"];- Parameters:
value- The yMinNormalized to set.- Returns:
- This builder for chaining.
-
clearYMinNormalized
double y_min_normalized = 4 [json_name = "yMinNormalized"];- Returns:
- This builder for chaining.
-
getXMaxNormalized
public double getXMaxNormalized()double x_max_normalized = 5 [json_name = "xMaxNormalized"];- Specified by:
getXMaxNormalizedin interfaceData.BoundingBoxOrBuilder- Returns:
- The xMaxNormalized.
-
setXMaxNormalized
double x_max_normalized = 5 [json_name = "xMaxNormalized"];- Parameters:
value- The xMaxNormalized to set.- Returns:
- This builder for chaining.
-
clearXMaxNormalized
double x_max_normalized = 5 [json_name = "xMaxNormalized"];- Returns:
- This builder for chaining.
-
getYMaxNormalized
public double getYMaxNormalized()double y_max_normalized = 6 [json_name = "yMaxNormalized"];- Specified by:
getYMaxNormalizedin interfaceData.BoundingBoxOrBuilder- Returns:
- The yMaxNormalized.
-
setYMaxNormalized
double y_max_normalized = 6 [json_name = "yMaxNormalized"];- Parameters:
value- The yMaxNormalized to set.- Returns:
- This builder for chaining.
-
clearYMaxNormalized
double y_max_normalized = 6 [json_name = "yMaxNormalized"];- Returns:
- This builder for chaining.
-
hasConfidence
public boolean hasConfidence()confidence is an optional range from 0 - 1
optional double confidence = 7 [json_name = "confidence"];- Specified by:
hasConfidencein 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:
getConfidencein interfaceData.BoundingBoxOrBuilder- Returns:
- The confidence.
-
setConfidence
confidence is an optional range from 0 - 1
optional double confidence = 7 [json_name = "confidence"];- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
confidence is an optional range from 0 - 1
optional double confidence = 7 [json_name = "confidence"];- Returns:
- This builder for chaining.
-