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 - 1clearId()string id = 3 [json_name = "id"];string label = 1 [json_name = "label"];doubleconfidence is an optional range from 0 - 1getId()string id = 3 [json_name = "id"];com.google.protobuf.ByteStringstring id = 3 [json_name = "id"];getLabel()string label = 1 [json_name = "label"];com.google.protobuf.ByteStringstring label = 1 [json_name = "label"];booleanconfidence is an optional range from 0 - 1setConfidence(double value) confidence is an optional range from 0 - 1string id = 3 [json_name = "id"];setIdBytes(com.google.protobuf.ByteString value) string id = 3 [json_name = "id"];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, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getId
string id = 3 [json_name = "id"];- Specified by:
getIdin interfaceData.ClassificationOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()string id = 3 [json_name = "id"];- Specified by:
getIdBytesin interfaceData.ClassificationOrBuilder- Returns:
- The bytes for id.
-
setId
string id = 3 [json_name = "id"];- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
string id = 3 [json_name = "id"];- Returns:
- This builder for chaining.
-
setIdBytes
string id = 3 [json_name = "id"];- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getLabel
string label = 1 [json_name = "label"];- Specified by:
getLabelin interfaceData.ClassificationOrBuilder- Returns:
- The label.
-
getLabelBytes
public com.google.protobuf.ByteString getLabelBytes()string label = 1 [json_name = "label"];- Specified by:
getLabelBytesin 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:
hasConfidencein 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:
getConfidencein 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.
-