Package com.viam.service.vision.v1
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 classifierProtobuf type
viam.service.vision.v1.Classification
-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance
-
Method Summary
Modifier and TypeMethodDescriptionthe class namethe confidence score of the classificationthe class namecom.google.protobuf.ByteString
the class namedouble
the confidence score of the classificationsetClassName
(String value) the class namesetClassNameBytes
(com.google.protobuf.ByteString value) the class namesetConfidence
(double value) the confidence score of the classificationMethods 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
-
getClassName
the class name
string class_name = 1 [json_name = "className"];
- Specified by:
getClassName
in interfaceVision.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 interfaceVision.ClassificationOrBuilder
- Returns:
- The bytes for className.
-
setClassName
the class name
string class_name = 1 [json_name = "className"];
- Parameters:
value
- The className to set.- Returns:
- This builder for chaining.
-
clearClassName
the class name
string class_name = 1 [json_name = "className"];
- Returns:
- This builder for chaining.
-
setClassNameBytes
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 interfaceVision.ClassificationOrBuilder
- Returns:
- The confidence.
-
setConfidence
the confidence score of the classification
double confidence = 2 [json_name = "confidence"];
- Parameters:
value
- The confidence to set.- Returns:
- This builder for chaining.
-
clearConfidence
the confidence score of the classification
double confidence = 2 [json_name = "confidence"];
- Returns:
- This builder for chaining.
-