Interface Classification.ClassOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    Classification.Class, Classification.Class.Builder
    Enclosing class:
    Classification

    public static interface Classification.ClassOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getLabel()
      Label or name of the class.
      com.google.protobuf.ByteString getLabelBytes()
      Label or name of the class.
      float getScore()
      Score for this class (e.g., the probability the item belongs to this class).
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getLabel

        java.lang.String getLabel()
         Label or name of the class.
         
        string label = 1;
        Returns:
        The label.
      • getLabelBytes

        com.google.protobuf.ByteString getLabelBytes()
         Label or name of the class.
         
        string label = 1;
        Returns:
        The bytes for label.
      • getScore

        float getScore()
         Score for this class (e.g., the probability the item belongs to this
         class). As per the proto3 default-value semantics, if the score is missing,
         it should be treated as 0.
         
        float score = 2;
        Returns:
        The score.