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

    • getId

      public String getId()
      string id = 1 [json_name = "id"];
      Specified by:
      getId in interface Data.BoundingBoxOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
      string id = 1 [json_name = "id"];
      Specified by:
      getIdBytes in interface Data.BoundingBoxOrBuilder
      Returns:
      The bytes for id.
    • setId

      public Data.BoundingBox.Builder setId(String value)
      string id = 1 [json_name = "id"];
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Data.BoundingBox.Builder clearId()
      string id = 1 [json_name = "id"];
      Returns:
      This builder for chaining.
    • setIdBytes

      public Data.BoundingBox.Builder setIdBytes(com.google.protobuf.ByteString value)
      string id = 1 [json_name = "id"];
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • getLabel

      public String getLabel()
      string label = 2 [json_name = "label"];
      Specified by:
      getLabel in interface Data.BoundingBoxOrBuilder
      Returns:
      The label.
    • getLabelBytes

      public com.google.protobuf.ByteString getLabelBytes()
      string label = 2 [json_name = "label"];
      Specified by:
      getLabelBytes in interface Data.BoundingBoxOrBuilder
      Returns:
      The bytes for label.
    • setLabel

      public Data.BoundingBox.Builder setLabel(String value)
      string label = 2 [json_name = "label"];
      Parameters:
      value - The label to set.
      Returns:
      This builder for chaining.
    • clearLabel

      public Data.BoundingBox.Builder clearLabel()
      string label = 2 [json_name = "label"];
      Returns:
      This builder for chaining.
    • setLabelBytes

      public Data.BoundingBox.Builder setLabelBytes(com.google.protobuf.ByteString value)
      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:
      getXMinNormalized in interface Data.BoundingBoxOrBuilder
      Returns:
      The xMinNormalized.
    • setXMinNormalized

      public Data.BoundingBox.Builder setXMinNormalized(double value)
      double x_min_normalized = 3 [json_name = "xMinNormalized"];
      Parameters:
      value - The xMinNormalized to set.
      Returns:
      This builder for chaining.
    • clearXMinNormalized

      public Data.BoundingBox.Builder 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:
      getYMinNormalized in interface Data.BoundingBoxOrBuilder
      Returns:
      The yMinNormalized.
    • setYMinNormalized

      public Data.BoundingBox.Builder setYMinNormalized(double value)
      double y_min_normalized = 4 [json_name = "yMinNormalized"];
      Parameters:
      value - The yMinNormalized to set.
      Returns:
      This builder for chaining.
    • clearYMinNormalized

      public Data.BoundingBox.Builder 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:
      getXMaxNormalized in interface Data.BoundingBoxOrBuilder
      Returns:
      The xMaxNormalized.
    • setXMaxNormalized

      public Data.BoundingBox.Builder setXMaxNormalized(double value)
      double x_max_normalized = 5 [json_name = "xMaxNormalized"];
      Parameters:
      value - The xMaxNormalized to set.
      Returns:
      This builder for chaining.
    • clearXMaxNormalized

      public Data.BoundingBox.Builder 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:
      getYMaxNormalized in interface Data.BoundingBoxOrBuilder
      Returns:
      The yMaxNormalized.
    • setYMaxNormalized

      public Data.BoundingBox.Builder setYMaxNormalized(double value)
      double y_max_normalized = 6 [json_name = "yMaxNormalized"];
      Parameters:
      value - The yMaxNormalized to set.
      Returns:
      This builder for chaining.
    • clearYMaxNormalized

      public Data.BoundingBox.Builder 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:
      hasConfidence in interface Data.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 interface Data.BoundingBoxOrBuilder
      Returns:
      The confidence.
    • setConfidence

      public Data.BoundingBox.Builder setConfidence(double value)
       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

      public Data.BoundingBox.Builder clearConfidence()
       confidence is an optional range from 0 - 1
       
      optional double confidence = 7 [json_name = "confidence"];
      Returns:
      This builder for chaining.