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"];
the four corners of the boxoptional int64 y_max = 4 [json_name = "yMax"];
optional int64 y_min = 2 [json_name = "yMin"];
label associated with the detected objectcom.google.protobuf.ByteString
label associated with the detected objectdouble
the confidence of the detectionlong
getXMax()
optional int64 x_max = 3 [json_name = "xMax"];
long
getXMin()
the four corners of the boxlong
getYMax()
optional int64 y_max = 4 [json_name = "yMax"];
long
getYMin()
optional int64 y_min = 2 [json_name = "yMin"];
boolean
hasXMax()
optional int64 x_max = 3 [json_name = "xMax"];
boolean
hasXMin()
the four corners of the boxboolean
hasYMax()
optional int64 y_max = 4 [json_name = "yMax"];
boolean
hasYMin()
optional int64 y_min = 2 [json_name = "yMin"];
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"];
setXMin
(long value) the four corners of the boxsetYMax
(long value) optional int64 y_max = 4 [json_name = "yMax"];
setYMin
(long value) optional int64 y_min = 2 [json_name = "yMin"];
Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
hasXMin
in 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:
getXMin
in 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:
hasYMin
in interfaceVision.DetectionOrBuilder
- Returns:
- Whether the yMin field is set.
-
getYMin
public long getYMin()optional int64 y_min = 2 [json_name = "yMin"];
- Specified by:
getYMin
in 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:
hasXMax
in interfaceVision.DetectionOrBuilder
- Returns:
- Whether the xMax field is set.
-
getXMax
public long getXMax()optional int64 x_max = 3 [json_name = "xMax"];
- Specified by:
getXMax
in 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:
hasYMax
in interfaceVision.DetectionOrBuilder
- Returns:
- Whether the yMax field is set.
-
getYMax
public long getYMax()optional int64 y_max = 4 [json_name = "yMax"];
- Specified by:
getYMax
in 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:
getConfidence
in 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:
getClassName
in 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:
getClassNameBytes
in 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.
-