Class OperatorMetadata (0.123.7)

public final class OperatorMetadata extends GeneratedMessageV3 implements OperatorMetadataOrBuilder

General information useful for labels coming from contributors.

Protobuf type google.cloud.datalabeling.v1beta1.OperatorMetadata

Static Fields

COMMENTS_FIELD_NUMBER

public static final int COMMENTS_FIELD_NUMBER
Field Value
TypeDescription
int

LABEL_VOTES_FIELD_NUMBER

public static final int LABEL_VOTES_FIELD_NUMBER
Field Value
TypeDescription
int

SCORE_FIELD_NUMBER

public static final int SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

TOTAL_VOTES_FIELD_NUMBER

public static final int TOTAL_VOTES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static OperatorMetadata getDefaultInstance()
Returns
TypeDescription
OperatorMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static OperatorMetadata.Builder newBuilder()
Returns
TypeDescription
OperatorMetadata.Builder

newBuilder(OperatorMetadata prototype)

public static OperatorMetadata.Builder newBuilder(OperatorMetadata prototype)
Parameter
NameDescription
prototypeOperatorMetadata
Returns
TypeDescription
OperatorMetadata.Builder

parseDelimitedFrom(InputStream input)

public static OperatorMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OperatorMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OperatorMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OperatorMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static OperatorMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
OperatorMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static OperatorMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OperatorMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static OperatorMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
OperatorMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static OperatorMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OperatorMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static OperatorMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
OperatorMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static OperatorMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OperatorMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static OperatorMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
OperatorMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static OperatorMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OperatorMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static OperatorMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
OperatorMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static OperatorMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OperatorMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<OperatorMetadata> parser()
Returns
TypeDescription
Parser<OperatorMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getComments(int index)

public String getComments(int index)

Comments from contributors.

repeated string comments = 4;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The comments at the given index.

getCommentsBytes(int index)

public ByteString getCommentsBytes(int index)

Comments from contributors.

repeated string comments = 4;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the comments at the given index.

getCommentsCount()

public int getCommentsCount()

Comments from contributors.

repeated string comments = 4;

Returns
TypeDescription
int

The count of comments.

getCommentsList()

public ProtocolStringList getCommentsList()

Comments from contributors.

repeated string comments = 4;

Returns
TypeDescription
ProtocolStringList

A list containing the comments.

getDefaultInstanceForType()

public OperatorMetadata getDefaultInstanceForType()
Returns
TypeDescription
OperatorMetadata

getLabelVotes()

public int getLabelVotes()

The total number of contributors that choose this label.

int32 label_votes = 3;

Returns
TypeDescription
int

The labelVotes.

getParserForType()

public Parser<OperatorMetadata> getParserForType()
Returns
TypeDescription
Parser<OperatorMetadata>
Overrides

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;

Returns
TypeDescription
float

The score.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTotalVotes()

public int getTotalVotes()

The total number of contributors that answer this question.

int32 total_votes = 2;

Returns
TypeDescription
int

The totalVotes.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public OperatorMetadata.Builder newBuilderForType()
Returns
TypeDescription
OperatorMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected OperatorMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
OperatorMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public OperatorMetadata.Builder toBuilder()
Returns
TypeDescription
OperatorMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException