Package viam.app.data.v1
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 TypeMethodDescriptionconfidence is an optional range from 0 - 1string label = 1 [json_name = "label"];
double
confidence is an optional range from 0 - 1getLabel()
string label = 1 [json_name = "label"];
com.google.protobuf.ByteString
string label = 1 [json_name = "label"];
boolean
confidence is an optional range from 0 - 1setConfidence
(double value) confidence is an optional range from 0 - 1string 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
string label = 1 [json_name = "label"];
- Specified by:
getLabel
in interfaceData.ClassificationOrBuilder
- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()string label = 1 [json_name = "label"];
- Specified by:
getLabelBytes
in interfaceData.ClassificationOrBuilder
- Returns:
- The bytes for label.
-
setLabel
string label = 1 [json_name = "label"];
- Parameters:
value
- The label to set.- Returns:
- This builder for chaining.
-
clearLabel
string label = 1 [json_name = "label"];
- Returns:
- This builder for chaining.
-
setLabelBytes
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 interfaceData.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 interfaceData.ClassificationOrBuilder
- Returns:
- The confidence.
-
setConfidence
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
confidence is an optional range from 0 - 1
optional double confidence = 2 [json_name = "confidence"];
- Returns:
- This builder for chaining.
-