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.ByteStringthe class namedoublethe 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, 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
-
getClassName
the class name
string class_name = 1 [json_name = "className"];- Specified by:
getClassNamein interfaceVision.ClassificationOrBuilder- Returns:
- The className.
-
getClassNameBytes
public com.google.protobuf.ByteString getClassNameBytes()the class name
string class_name = 1 [json_name = "className"];- Specified by:
getClassNameBytesin 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:
getConfidencein 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.
-