Interface OperatorMetadataOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    OperatorMetadata, OperatorMetadata.Builder

    public interface OperatorMetadataOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getComments​(int index)
      Comments from contributors.
      com.google.protobuf.ByteString getCommentsBytes​(int index)
      Comments from contributors.
      int getCommentsCount()
      Comments from contributors.
      List<String> getCommentsList()
      Comments from contributors.
      int getLabelVotes()
      The total number of contributors that choose this label.
      float getScore()
      Confidence score corresponding to a label.
      int getTotalVotes()
      The total number of contributors that answer this question.
      • 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

      • getScore

        float getScore()
         Confidence score corresponding to a label. For examle, if 3 contributors
         have answered the question and 2 of them agree on the final label, the
         confidence score will be 0.67 (2/3).
         
        float score = 1;
        Returns:
        The score.
      • getTotalVotes

        int getTotalVotes()
         The total number of contributors that answer this question.
         
        int32 total_votes = 2;
        Returns:
        The totalVotes.
      • getLabelVotes

        int getLabelVotes()
         The total number of contributors that choose this label.
         
        int32 label_votes = 3;
        Returns:
        The labelVotes.
      • getCommentsList

        List<String> getCommentsList()
         Comments from contributors.
         
        repeated string comments = 4;
        Returns:
        A list containing the comments.
      • getCommentsCount

        int getCommentsCount()
         Comments from contributors.
         
        repeated string comments = 4;
        Returns:
        The count of comments.
      • getComments

        String getComments​(int index)
         Comments from contributors.
         
        repeated string comments = 4;
        Parameters:
        index - The index of the element to return.
        Returns:
        The comments at the given index.
      • getCommentsBytes

        com.google.protobuf.ByteString getCommentsBytes​(int index)
         Comments from contributors.
         
        repeated string comments = 4;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the comments at the given index.