public interface OperatorMetadataOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getComments(int index)
public abstract String getComments(int index)Comments from contributors.
repeated string comments = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The comments at the given index. |
getCommentsBytes(int index)
public abstract ByteString getCommentsBytes(int index)Comments from contributors.
repeated string comments = 4;
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the comments at the given index. |
getCommentsCount()
public abstract int getCommentsCount()Comments from contributors.
repeated string comments = 4;
| Returns | |
|---|---|
| Type | Description |
int |
The count of comments. |
getCommentsList()
public abstract List<String> getCommentsList()Comments from contributors.
repeated string comments = 4;
| Returns | |
|---|---|
| Type | Description |
List<String> |
A list containing the comments. |
getLabelVotes()
public abstract int getLabelVotes()The total number of contributors that choose this label.
int32 label_votes = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The labelVotes. |
getScore()
public abstract 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 | |
|---|---|
| Type | Description |
float |
The score. |
getTotalVotes()
public abstract int getTotalVotes()The total number of contributors that answer this question.
int32 total_votes = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The totalVotes. |