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
  • Method Details

    • hasXMin

      public boolean hasXMin()
       the four corners of the box
       
      optional int64 x_min = 1 [json_name = "xMin"];
      Specified by:
      hasXMin in interface Vision.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 interface Vision.DetectionOrBuilder
      Returns:
      The xMin.
    • setXMin

      public Vision.Detection.Builder setXMin(long value)
       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

      public Vision.Detection.Builder 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 interface Vision.DetectionOrBuilder
      Returns:
      Whether the yMin field is set.
    • getYMin

      public long getYMin()
      optional int64 y_min = 2 [json_name = "yMin"];
      Specified by:
      getYMin in interface Vision.DetectionOrBuilder
      Returns:
      The yMin.
    • setYMin

      public Vision.Detection.Builder setYMin(long value)
      optional int64 y_min = 2 [json_name = "yMin"];
      Parameters:
      value - The yMin to set.
      Returns:
      This builder for chaining.
    • clearYMin

      public Vision.Detection.Builder 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 interface Vision.DetectionOrBuilder
      Returns:
      Whether the xMax field is set.
    • getXMax

      public long getXMax()
      optional int64 x_max = 3 [json_name = "xMax"];
      Specified by:
      getXMax in interface Vision.DetectionOrBuilder
      Returns:
      The xMax.
    • setXMax

      public Vision.Detection.Builder setXMax(long value)
      optional int64 x_max = 3 [json_name = "xMax"];
      Parameters:
      value - The xMax to set.
      Returns:
      This builder for chaining.
    • clearXMax

      public Vision.Detection.Builder 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 interface Vision.DetectionOrBuilder
      Returns:
      Whether the yMax field is set.
    • getYMax

      public long getYMax()
      optional int64 y_max = 4 [json_name = "yMax"];
      Specified by:
      getYMax in interface Vision.DetectionOrBuilder
      Returns:
      The yMax.
    • setYMax

      public Vision.Detection.Builder setYMax(long value)
      optional int64 y_max = 4 [json_name = "yMax"];
      Parameters:
      value - The yMax to set.
      Returns:
      This builder for chaining.
    • clearYMax

      public Vision.Detection.Builder 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 interface Vision.DetectionOrBuilder
      Returns:
      The confidence.
    • setConfidence

      public Vision.Detection.Builder setConfidence(double value)
       the confidence of the detection
       
      double confidence = 5 [json_name = "confidence"];
      Parameters:
      value - The confidence to set.
      Returns:
      This builder for chaining.
    • clearConfidence

      public Vision.Detection.Builder clearConfidence()
       the confidence of the detection
       
      double confidence = 5 [json_name = "confidence"];
      Returns:
      This builder for chaining.
    • getClassName

      public String getClassName()
       label associated with the detected object
       
      string class_name = 6 [json_name = "className"];
      Specified by:
      getClassName in interface Vision.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 interface Vision.DetectionOrBuilder
      Returns:
      The bytes for className.
    • setClassName

      public Vision.Detection.Builder setClassName(String value)
       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

      public Vision.Detection.Builder clearClassName()
       label associated with the detected object
       
      string class_name = 6 [json_name = "className"];
      Returns:
      This builder for chaining.
    • setClassNameBytes

      public Vision.Detection.Builder setClassNameBytes(com.google.protobuf.ByteString value)
       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.