Class Data.Classification.Builder

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

public static final class Data.Classification.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<Data.Classification,Data.Classification.Builder> implements Data.ClassificationOrBuilder
 Classification represents a confidence score with a label.
 
Protobuf type viam.app.data.v1.Classification
  • Field Summary

    Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    instance
  • Method Summary

    Modifier and Type
    Method
    Description
    confidence is an optional range from 0 - 1
    string label = 1 [json_name = "label"];
    double
    confidence is an optional range from 0 - 1
    string label = 1 [json_name = "label"];
    com.google.protobuf.ByteString
    string label = 1 [json_name = "label"];
    boolean
    confidence is an optional range from 0 - 1
    setConfidence(double value)
    confidence is an optional range from 0 - 1
    string label = 1 [json_name = "label"];
    setLabelBytes(com.google.protobuf.ByteString value)
    string label = 1 [json_name = "label"];

    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

    • getLabel

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

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

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

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

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

      public boolean hasConfidence()
       confidence is an optional range from 0 - 1
       
      optional double confidence = 2 [json_name = "confidence"];
      Specified by:
      hasConfidence in interface Data.ClassificationOrBuilder
      Returns:
      Whether the confidence field is set.
    • getConfidence

      public double getConfidence()
       confidence is an optional range from 0 - 1
       
      optional double confidence = 2 [json_name = "confidence"];
      Specified by:
      getConfidence in interface Data.ClassificationOrBuilder
      Returns:
      The confidence.
    • setConfidence

      public Data.Classification.Builder setConfidence(double value)
       confidence is an optional range from 0 - 1
       
      optional double confidence = 2 [json_name = "confidence"];
      Parameters:
      value - The confidence to set.
      Returns:
      This builder for chaining.
    • clearConfidence

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