Interface OperatorMetadataOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
OperatorMetadata,OperatorMetadata.Builder
@Generated
public interface OperatorMetadataOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetComments(int index) Comments from contributors.com.google.protobuf.ByteStringgetCommentsBytes(int index) Comments from contributors.intComments from contributors.Comments from contributors.intThe total number of contributors that choose this label.floatgetScore()Confidence score corresponding to a label.intThe total number of contributors that answer this question.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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
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.
-