Class Vision.Classification.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite.Builder<Vision.Classification,Vision.Classification.Builder>
com.viam.service.vision.v1.Vision.Classification.Builder
All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, Vision.ClassificationOrBuilder, Cloneable
Enclosing class:
Vision.Classification

public static final class Vision.Classification.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Vision.Classification,Vision.Classification.Builder> implements Vision.ClassificationOrBuilder
 the general form of the output from a classifier
 
Protobuf type viam.service.vision.v1.Classification
  • Method Details

    • getClassName

      public String getClassName()
       the class name
       
      string class_name = 1 [json_name = "className"];
      Specified by:
      getClassName in interface Vision.ClassificationOrBuilder
      Returns:
      The className.
    • getClassNameBytes

      public com.google.protobuf.ByteString getClassNameBytes()
       the class name
       
      string class_name = 1 [json_name = "className"];
      Specified by:
      getClassNameBytes in interface Vision.ClassificationOrBuilder
      Returns:
      The bytes for className.
    • setClassName

      public Vision.Classification.Builder setClassName(String value)
       the class name
       
      string class_name = 1 [json_name = "className"];
      Parameters:
      value - The className to set.
      Returns:
      This builder for chaining.
    • clearClassName

      public Vision.Classification.Builder clearClassName()
       the class name
       
      string class_name = 1 [json_name = "className"];
      Returns:
      This builder for chaining.
    • setClassNameBytes

      public Vision.Classification.Builder setClassNameBytes(com.google.protobuf.ByteString value)
       the class name
       
      string class_name = 1 [json_name = "className"];
      Parameters:
      value - The bytes for className to set.
      Returns:
      This builder for chaining.
    • getConfidence

      public double getConfidence()
       the confidence score of the classification
       
      double confidence = 2 [json_name = "confidence"];
      Specified by:
      getConfidence in interface Vision.ClassificationOrBuilder
      Returns:
      The confidence.
    • setConfidence

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

      public Vision.Classification.Builder clearConfidence()
       the confidence score of the classification
       
      double confidence = 2 [json_name = "confidence"];
      Returns:
      This builder for chaining.