- 0.175.0 (latest)
- 0.174.0
- 0.173.0
- 0.172.0
- 0.171.0
- 0.169.0
- 0.168.0
- 0.167.0
- 0.166.0
- 0.165.0
- 0.164.0
- 0.163.0
- 0.162.0
- 0.161.0
- 0.160.0
- 0.159.0
- 0.157.0
- 0.156.0
- 0.155.0
- 0.154.0
- 0.153.0
- 0.152.0
- 0.151.0
- 0.150.0
- 0.149.0
- 0.148.0
- 0.147.0
- 0.144.0
- 0.143.0
- 0.142.0
- 0.141.0
- 0.140.0
- 0.139.0
- 0.138.0
- 0.137.0
- 0.136.0
- 0.135.0
- 0.134.0
- 0.133.0
- 0.132.0
- 0.131.0
- 0.129.0
- 0.128.0
- 0.127.0
- 0.126.0
- 0.125.0
- 0.124.0
- 0.123.7
- 0.122.11
public static final class OperatorMetadata.Builder extends GeneratedMessageV3.Builder<OperatorMetadata.Builder> implements OperatorMetadataOrBuilder
General information useful for labels coming from contributors.
Protobuf type google.cloud.datalabeling.v1beta1.OperatorMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > OperatorMetadata.BuilderImplements
OperatorMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllComments(Iterable<String> values)
public OperatorMetadata.Builder addAllComments(Iterable<String> values)
Comments from contributors.
repeated string comments = 4;
Name | Description |
values | Iterable<String> The comments to add. |
Type | Description |
OperatorMetadata.Builder | This builder for chaining. |
addComments(String value)
public OperatorMetadata.Builder addComments(String value)
Comments from contributors.
repeated string comments = 4;
Name | Description |
value | String The comments to add. |
Type | Description |
OperatorMetadata.Builder | This builder for chaining. |
addCommentsBytes(ByteString value)
public OperatorMetadata.Builder addCommentsBytes(ByteString value)
Comments from contributors.
repeated string comments = 4;
Name | Description |
value | ByteString The bytes of the comments to add. |
Type | Description |
OperatorMetadata.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public OperatorMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
OperatorMetadata.Builder |
build()
public OperatorMetadata build()
Type | Description |
OperatorMetadata |
buildPartial()
public OperatorMetadata buildPartial()
Type | Description |
OperatorMetadata |
clear()
public OperatorMetadata.Builder clear()
Type | Description |
OperatorMetadata.Builder |
clearComments()
public OperatorMetadata.Builder clearComments()
Comments from contributors.
repeated string comments = 4;
Type | Description |
OperatorMetadata.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public OperatorMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
OperatorMetadata.Builder |
clearLabelVotes()
public OperatorMetadata.Builder clearLabelVotes()
The total number of contributors that choose this label.
int32 label_votes = 3;
Type | Description |
OperatorMetadata.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public OperatorMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
OperatorMetadata.Builder |
clearScore()
public OperatorMetadata.Builder clearScore()
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;
Type | Description |
OperatorMetadata.Builder | This builder for chaining. |
clearTotalVotes()
public OperatorMetadata.Builder clearTotalVotes()
The total number of contributors that answer this question.
int32 total_votes = 2;
Type | Description |
OperatorMetadata.Builder | This builder for chaining. |
clone()
public OperatorMetadata.Builder clone()
Type | Description |
OperatorMetadata.Builder |
getComments(int index)
public String getComments(int index)
Comments from contributors.
repeated string comments = 4;
Name | Description |
index | int The index of the element to return. |
Type | Description |
String | The comments at the given index. |
getCommentsBytes(int index)
public ByteString getCommentsBytes(int index)
Comments from contributors.
repeated string comments = 4;
Name | Description |
index | int The index of the value to return. |
Type | Description |
ByteString | The bytes of the comments at the given index. |
getCommentsCount()
public int getCommentsCount()
Comments from contributors.
repeated string comments = 4;
Type | Description |
int | The count of comments. |
getCommentsList()
public ProtocolStringList getCommentsList()
Comments from contributors.
repeated string comments = 4;
Type | Description |
ProtocolStringList | A list containing the comments. |
getDefaultInstanceForType()
public OperatorMetadata getDefaultInstanceForType()
Type | Description |
OperatorMetadata |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLabelVotes()
public int getLabelVotes()
The total number of contributors that choose this label.
int32 label_votes = 3;
Type | Description |
int | The labelVotes. |
getScore()
public 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;
Type | Description |
float | The score. |
getTotalVotes()
public int getTotalVotes()
The total number of contributors that answer this question.
int32 total_votes = 2;
Type | Description |
int | The totalVotes. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(OperatorMetadata other)
public OperatorMetadata.Builder mergeFrom(OperatorMetadata other)
Name | Description |
other | OperatorMetadata |
Type | Description |
OperatorMetadata.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public OperatorMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
OperatorMetadata.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public OperatorMetadata.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
OperatorMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final OperatorMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
OperatorMetadata.Builder |
setComments(int index, String value)
public OperatorMetadata.Builder setComments(int index, String value)
Comments from contributors.
repeated string comments = 4;
Name | Description |
index | int The index to set the value at. |
value | String The comments to set. |
Type | Description |
OperatorMetadata.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public OperatorMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
OperatorMetadata.Builder |
setLabelVotes(int value)
public OperatorMetadata.Builder setLabelVotes(int value)
The total number of contributors that choose this label.
int32 label_votes = 3;
Name | Description |
value | int The labelVotes to set. |
Type | Description |
OperatorMetadata.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public OperatorMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
OperatorMetadata.Builder |
setScore(float value)
public OperatorMetadata.Builder setScore(float value)
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;
Name | Description |
value | float The score to set. |
Type | Description |
OperatorMetadata.Builder | This builder for chaining. |
setTotalVotes(int value)
public OperatorMetadata.Builder setTotalVotes(int value)
The total number of contributors that answer this question.
int32 total_votes = 2;
Name | Description |
value | int The totalVotes to set. |
Type | Description |
OperatorMetadata.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final OperatorMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
OperatorMetadata.Builder |