Package com.viam.service.vision.v1
Class Vision.Detection.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Vision.Detection,Vision.Detection.Builder>
com.viam.service.vision.v1.Vision.Detection.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,Vision.DetectionOrBuilder,Cloneable
- Enclosing class:
- Vision.Detection
public static final class Vision.Detection.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<Vision.Detection,Vision.Detection.Builder>
implements Vision.DetectionOrBuilder
Protobuf type
viam.service.vision.v1.Detection-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionlabel associated with the detected objectthe confidence of the detectionoptional int64 x_max = 3 [json_name = "xMax"];optional double x_max_normalized = 9 [json_name = "xMaxNormalized"];the four corners of the boxthe four corners of the box, in proportion to the respective image dimensionoptional int64 y_max = 4 [json_name = "yMax"];optional double y_max_normalized = 10 [json_name = "yMaxNormalized"];optional int64 y_min = 2 [json_name = "yMin"];optional double y_min_normalized = 8 [json_name = "yMinNormalized"];label associated with the detected objectcom.google.protobuf.ByteStringlabel associated with the detected objectdoublethe confidence of the detectionlonggetXMax()optional int64 x_max = 3 [json_name = "xMax"];doubleoptional double x_max_normalized = 9 [json_name = "xMaxNormalized"];longgetXMin()the four corners of the boxdoublethe four corners of the box, in proportion to the respective image dimensionlonggetYMax()optional int64 y_max = 4 [json_name = "yMax"];doubleoptional double y_max_normalized = 10 [json_name = "yMaxNormalized"];longgetYMin()optional int64 y_min = 2 [json_name = "yMin"];doubleoptional double y_min_normalized = 8 [json_name = "yMinNormalized"];booleanhasXMax()optional int64 x_max = 3 [json_name = "xMax"];booleanoptional double x_max_normalized = 9 [json_name = "xMaxNormalized"];booleanhasXMin()the four corners of the boxbooleanthe four corners of the box, in proportion to the respective image dimensionbooleanhasYMax()optional int64 y_max = 4 [json_name = "yMax"];booleanoptional double y_max_normalized = 10 [json_name = "yMaxNormalized"];booleanhasYMin()optional int64 y_min = 2 [json_name = "yMin"];booleanoptional double y_min_normalized = 8 [json_name = "yMinNormalized"];setClassName(String value) label associated with the detected objectsetClassNameBytes(com.google.protobuf.ByteString value) label associated with the detected objectsetConfidence(double value) the confidence of the detectionsetXMax(long value) optional int64 x_max = 3 [json_name = "xMax"];setXMaxNormalized(double value) optional double x_max_normalized = 9 [json_name = "xMaxNormalized"];setXMin(long value) the four corners of the boxsetXMinNormalized(double value) the four corners of the box, in proportion to the respective image dimensionsetYMax(long value) optional int64 y_max = 4 [json_name = "yMax"];setYMaxNormalized(double value) optional double y_max_normalized = 10 [json_name = "yMaxNormalized"];setYMin(long value) optional int64 y_min = 2 [json_name = "yMin"];setYMinNormalized(double value) optional double y_min_normalized = 8 [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
-
hasXMin
public boolean hasXMin()the four corners of the box
optional int64 x_min = 1 [json_name = "xMin"];- Specified by:
hasXMinin interfaceVision.DetectionOrBuilder- Returns:
- Whether the xMin field is set.
-
getXMin
public long getXMin()the four corners of the box
optional int64 x_min = 1 [json_name = "xMin"];- Specified by:
getXMinin interfaceVision.DetectionOrBuilder- Returns:
- The xMin.
-
setXMin
the four corners of the box
optional int64 x_min = 1 [json_name = "xMin"];- Parameters:
value- The xMin to set.- Returns:
- This builder for chaining.
-
clearXMin
the four corners of the box
optional int64 x_min = 1 [json_name = "xMin"];- Returns:
- This builder for chaining.
-
hasYMin
public boolean hasYMin()optional int64 y_min = 2 [json_name = "yMin"];- Specified by:
hasYMinin interfaceVision.DetectionOrBuilder- Returns:
- Whether the yMin field is set.
-
getYMin
public long getYMin()optional int64 y_min = 2 [json_name = "yMin"];- Specified by:
getYMinin interfaceVision.DetectionOrBuilder- Returns:
- The yMin.
-
setYMin
optional int64 y_min = 2 [json_name = "yMin"];- Parameters:
value- The yMin to set.- Returns:
- This builder for chaining.
-
clearYMin
optional int64 y_min = 2 [json_name = "yMin"];- Returns:
- This builder for chaining.
-
hasXMax
public boolean hasXMax()optional int64 x_max = 3 [json_name = "xMax"];- Specified by:
hasXMaxin interfaceVision.DetectionOrBuilder- Returns:
- Whether the xMax field is set.
-
getXMax
public long getXMax()optional int64 x_max = 3 [json_name = "xMax"];- Specified by:
getXMaxin interfaceVision.DetectionOrBuilder- Returns:
- The xMax.
-
setXMax
optional int64 x_max = 3 [json_name = "xMax"];- Parameters:
value- The xMax to set.- Returns:
- This builder for chaining.
-
clearXMax
optional int64 x_max = 3 [json_name = "xMax"];- Returns:
- This builder for chaining.
-
hasYMax
public boolean hasYMax()optional int64 y_max = 4 [json_name = "yMax"];- Specified by:
hasYMaxin interfaceVision.DetectionOrBuilder- Returns:
- Whether the yMax field is set.
-
getYMax
public long getYMax()optional int64 y_max = 4 [json_name = "yMax"];- Specified by:
getYMaxin interfaceVision.DetectionOrBuilder- Returns:
- The yMax.
-
setYMax
optional int64 y_max = 4 [json_name = "yMax"];- Parameters:
value- The yMax to set.- Returns:
- This builder for chaining.
-
clearYMax
optional int64 y_max = 4 [json_name = "yMax"];- Returns:
- This builder for chaining.
-
getConfidence
public double getConfidence()the confidence of the detection
double confidence = 5 [json_name = "confidence"];- Specified by:
getConfidencein interfaceVision.DetectionOrBuilder- Returns:
- The confidence.
-
setConfidence
the confidence of the detection
double confidence = 5 [json_name = "confidence"];- Parameters:
value- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
the confidence of the detection
double confidence = 5 [json_name = "confidence"];- Returns:
- This builder for chaining.
-
getClassName
label associated with the detected object
string class_name = 6 [json_name = "className"];- Specified by:
getClassNamein interfaceVision.DetectionOrBuilder- Returns:
- The className.
-
getClassNameBytes
public com.google.protobuf.ByteString getClassNameBytes()label associated with the detected object
string class_name = 6 [json_name = "className"];- Specified by:
getClassNameBytesin interfaceVision.DetectionOrBuilder- Returns:
- The bytes for className.
-
setClassName
label associated with the detected object
string class_name = 6 [json_name = "className"];- Parameters:
value- The className to set.- Returns:
- This builder for chaining.
-
clearClassName
label associated with the detected object
string class_name = 6 [json_name = "className"];- Returns:
- This builder for chaining.
-
setClassNameBytes
label associated with the detected object
string class_name = 6 [json_name = "className"];- Parameters:
value- The bytes for className to set.- Returns:
- This builder for chaining.
-
hasXMinNormalized
public boolean hasXMinNormalized()the four corners of the box, in proportion to the respective image dimension
optional double x_min_normalized = 7 [json_name = "xMinNormalized"];- Specified by:
hasXMinNormalizedin interfaceVision.DetectionOrBuilder- Returns:
- Whether the xMinNormalized field is set.
-
getXMinNormalized
public double getXMinNormalized()the four corners of the box, in proportion to the respective image dimension
optional double x_min_normalized = 7 [json_name = "xMinNormalized"];- Specified by:
getXMinNormalizedin interfaceVision.DetectionOrBuilder- Returns:
- The xMinNormalized.
-
setXMinNormalized
the four corners of the box, in proportion to the respective image dimension
optional double x_min_normalized = 7 [json_name = "xMinNormalized"];- Parameters:
value- The xMinNormalized to set.- Returns:
- This builder for chaining.
-
clearXMinNormalized
the four corners of the box, in proportion to the respective image dimension
optional double x_min_normalized = 7 [json_name = "xMinNormalized"];- Returns:
- This builder for chaining.
-
hasYMinNormalized
public boolean hasYMinNormalized()optional double y_min_normalized = 8 [json_name = "yMinNormalized"];- Specified by:
hasYMinNormalizedin interfaceVision.DetectionOrBuilder- Returns:
- Whether the yMinNormalized field is set.
-
getYMinNormalized
public double getYMinNormalized()optional double y_min_normalized = 8 [json_name = "yMinNormalized"];- Specified by:
getYMinNormalizedin interfaceVision.DetectionOrBuilder- Returns:
- The yMinNormalized.
-
setYMinNormalized
optional double y_min_normalized = 8 [json_name = "yMinNormalized"];- Parameters:
value- The yMinNormalized to set.- Returns:
- This builder for chaining.
-
clearYMinNormalized
optional double y_min_normalized = 8 [json_name = "yMinNormalized"];- Returns:
- This builder for chaining.
-
hasXMaxNormalized
public boolean hasXMaxNormalized()optional double x_max_normalized = 9 [json_name = "xMaxNormalized"];- Specified by:
hasXMaxNormalizedin interfaceVision.DetectionOrBuilder- Returns:
- Whether the xMaxNormalized field is set.
-
getXMaxNormalized
public double getXMaxNormalized()optional double x_max_normalized = 9 [json_name = "xMaxNormalized"];- Specified by:
getXMaxNormalizedin interfaceVision.DetectionOrBuilder- Returns:
- The xMaxNormalized.
-
setXMaxNormalized
optional double x_max_normalized = 9 [json_name = "xMaxNormalized"];- Parameters:
value- The xMaxNormalized to set.- Returns:
- This builder for chaining.
-
clearXMaxNormalized
optional double x_max_normalized = 9 [json_name = "xMaxNormalized"];- Returns:
- This builder for chaining.
-
hasYMaxNormalized
public boolean hasYMaxNormalized()optional double y_max_normalized = 10 [json_name = "yMaxNormalized"];- Specified by:
hasYMaxNormalizedin interfaceVision.DetectionOrBuilder- Returns:
- Whether the yMaxNormalized field is set.
-
getYMaxNormalized
public double getYMaxNormalized()optional double y_max_normalized = 10 [json_name = "yMaxNormalized"];- Specified by:
getYMaxNormalizedin interfaceVision.DetectionOrBuilder- Returns:
- The yMaxNormalized.
-
setYMaxNormalized
optional double y_max_normalized = 10 [json_name = "yMaxNormalized"];- Parameters:
value- The yMaxNormalized to set.- Returns:
- This builder for chaining.
-
clearYMaxNormalized
optional double y_max_normalized = 10 [json_name = "yMaxNormalized"];- Returns:
- This builder for chaining.
-