Class OperatorMetadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
- com.google.cloud.datalabeling.v1beta1.OperatorMetadata.Builder
-
- All Implemented Interfaces:
OperatorMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OperatorMetadata
public static final class OperatorMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder> implements OperatorMetadataOrBuilder
General information useful for labels coming from contributors.
Protobuf typegoogle.cloud.datalabeling.v1beta1.OperatorMetadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OperatorMetadata.BuilderaddAllComments(Iterable<String> values)Comments from contributors.OperatorMetadata.BuilderaddComments(String value)Comments from contributors.OperatorMetadata.BuilderaddCommentsBytes(com.google.protobuf.ByteString value)Comments from contributors.OperatorMetadata.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OperatorMetadatabuild()OperatorMetadatabuildPartial()OperatorMetadata.Builderclear()OperatorMetadata.BuilderclearComments()Comments from contributors.OperatorMetadata.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)OperatorMetadata.BuilderclearLabelVotes()The total number of contributors that choose this label.OperatorMetadata.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)OperatorMetadata.BuilderclearScore()Confidence score corresponding to a label.OperatorMetadata.BuilderclearTotalVotes()The total number of contributors that answer this question.OperatorMetadata.Builderclone()StringgetComments(int index)Comments from contributors.com.google.protobuf.ByteStringgetCommentsBytes(int index)Comments from contributors.intgetCommentsCount()Comments from contributors.com.google.protobuf.ProtocolStringListgetCommentsList()Comments from contributors.OperatorMetadatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()intgetLabelVotes()The total number of contributors that choose this label.floatgetScore()Confidence score corresponding to a label.intgetTotalVotes()The total number of contributors that answer this question.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()OperatorMetadata.BuildermergeFrom(OperatorMetadata other)OperatorMetadata.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)OperatorMetadata.BuildermergeFrom(com.google.protobuf.Message other)OperatorMetadata.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)OperatorMetadata.BuildersetComments(int index, String value)Comments from contributors.OperatorMetadata.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)OperatorMetadata.BuildersetLabelVotes(int value)The total number of contributors that choose this label.OperatorMetadata.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)OperatorMetadata.BuildersetScore(float value)Confidence score corresponding to a label.OperatorMetadata.BuildersetTotalVotes(int value)The total number of contributors that answer this question.OperatorMetadata.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
clear
public OperatorMetadata.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
getDefaultInstanceForType
public OperatorMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public OperatorMetadata build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public OperatorMetadata buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public OperatorMetadata.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
setField
public OperatorMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
clearField
public OperatorMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
clearOneof
public OperatorMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
setRepeatedField
public OperatorMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
addRepeatedField
public OperatorMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
mergeFrom
public OperatorMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OperatorMetadata.Builder>
-
mergeFrom
public OperatorMetadata.Builder mergeFrom(OperatorMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
mergeFrom
public OperatorMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OperatorMetadata.Builder>- Throws:
IOException
-
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;- Specified by:
getScorein interfaceOperatorMetadataOrBuilder- Returns:
- The score.
-
setScore
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;- Parameters:
value- The score to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
getTotalVotes
public int getTotalVotes()
The total number of contributors that answer this question.
int32 total_votes = 2;- Specified by:
getTotalVotesin interfaceOperatorMetadataOrBuilder- Returns:
- The totalVotes.
-
setTotalVotes
public OperatorMetadata.Builder setTotalVotes(int value)
The total number of contributors that answer this question.
int32 total_votes = 2;- Parameters:
value- The totalVotes to set.- Returns:
- This builder for chaining.
-
clearTotalVotes
public OperatorMetadata.Builder clearTotalVotes()
The total number of contributors that answer this question.
int32 total_votes = 2;- Returns:
- This builder for chaining.
-
getLabelVotes
public int getLabelVotes()
The total number of contributors that choose this label.
int32 label_votes = 3;- Specified by:
getLabelVotesin interfaceOperatorMetadataOrBuilder- Returns:
- The labelVotes.
-
setLabelVotes
public OperatorMetadata.Builder setLabelVotes(int value)
The total number of contributors that choose this label.
int32 label_votes = 3;- Parameters:
value- The labelVotes to set.- Returns:
- This builder for chaining.
-
clearLabelVotes
public OperatorMetadata.Builder clearLabelVotes()
The total number of contributors that choose this label.
int32 label_votes = 3;- Returns:
- This builder for chaining.
-
getCommentsList
public com.google.protobuf.ProtocolStringList getCommentsList()
Comments from contributors.
repeated string comments = 4;- Specified by:
getCommentsListin interfaceOperatorMetadataOrBuilder- Returns:
- A list containing the comments.
-
getCommentsCount
public int getCommentsCount()
Comments from contributors.
repeated string comments = 4;- Specified by:
getCommentsCountin interfaceOperatorMetadataOrBuilder- Returns:
- The count of comments.
-
getComments
public String getComments(int index)
Comments from contributors.
repeated string comments = 4;- Specified by:
getCommentsin interfaceOperatorMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The comments at the given index.
-
getCommentsBytes
public com.google.protobuf.ByteString getCommentsBytes(int index)
Comments from contributors.
repeated string comments = 4;- Specified by:
getCommentsBytesin interfaceOperatorMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the comments at the given index.
-
setComments
public OperatorMetadata.Builder setComments(int index, String value)
Comments from contributors.
repeated string comments = 4;- Parameters:
index- The index to set the value at.value- The comments to set.- Returns:
- This builder for chaining.
-
addComments
public OperatorMetadata.Builder addComments(String value)
Comments from contributors.
repeated string comments = 4;- Parameters:
value- The comments to add.- Returns:
- This builder for chaining.
-
addAllComments
public OperatorMetadata.Builder addAllComments(Iterable<String> values)
Comments from contributors.
repeated string comments = 4;- Parameters:
values- The comments to add.- Returns:
- This builder for chaining.
-
clearComments
public OperatorMetadata.Builder clearComments()
Comments from contributors.
repeated string comments = 4;- Returns:
- This builder for chaining.
-
addCommentsBytes
public OperatorMetadata.Builder addCommentsBytes(com.google.protobuf.ByteString value)
Comments from contributors.
repeated string comments = 4;- Parameters:
value- The bytes of the comments to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final OperatorMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
mergeUnknownFields
public final OperatorMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<OperatorMetadata.Builder>
-
-