Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class OperatorMetadata.
General information useful for labels coming from contributors.
Generated from protobuf message google.cloud.datalabeling.v1beta1.OperatorMetadata
Namespace
Google \ Cloud \ DataLabeling \ V1beta1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ score
float
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).
↳ total_votes
int
The total number of contributors that answer this question.
↳ label_votes
int
The total number of contributors that choose this label.
↳ comments
array
Comments from contributors.
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).
Returns
Type
Description
float
setScore
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).
Parameter
Name
Description
var
float
Returns
Type
Description
$this
getTotalVotes
The total number of contributors that answer this question.
Returns
Type
Description
int
setTotalVotes
The total number of contributors that answer this question.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getLabelVotes
The total number of contributors that choose this label.
Returns
Type
Description
int
setLabelVotes
The total number of contributors that choose this label.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Datalabeling V1beta1 Client - Class OperatorMetadata (0.6.3)\n\nVersion latestkeyboard_arrow_down\n\n- [0.6.3 (latest)](/php/docs/reference/cloud-datalabeling/latest/V1beta1.OperatorMetadata)\n- [0.6.2](/php/docs/reference/cloud-datalabeling/0.6.2/V1beta1.OperatorMetadata)\n- [0.5.7](/php/docs/reference/cloud-datalabeling/0.5.7/V1beta1.OperatorMetadata)\n- [0.4.2](/php/docs/reference/cloud-datalabeling/0.4.2/V1beta1.OperatorMetadata)\n- [0.3.1](/php/docs/reference/cloud-datalabeling/0.3.1/V1beta1.OperatorMetadata)\n- [0.2.0](/php/docs/reference/cloud-datalabeling/0.2.0/V1beta1.OperatorMetadata)\n- [0.1.14](/php/docs/reference/cloud-datalabeling/0.1.14/V1beta1.OperatorMetadata) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class OperatorMetadata.\n\nGeneral information useful for labels coming from contributors.\n\nGenerated from protobuf message `google.cloud.datalabeling.v1beta1.OperatorMetadata`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ DataLabeling \\\\ V1beta1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getScore\n\nConfidence score corresponding to a label. For examle, if 3 contributors\nhave answered the question and 2 of them agree on the final label, the\nconfidence score will be 0.67 (2/3).\n\n### setScore\n\nConfidence score corresponding to a label. For examle, if 3 contributors\nhave answered the question and 2 of them agree on the final label, the\nconfidence score will be 0.67 (2/3).\n\n### getTotalVotes\n\nThe total number of contributors that answer this question.\n\n### setTotalVotes\n\nThe total number of contributors that answer this question.\n\n### getLabelVotes\n\nThe total number of contributors that choose this label.\n\n### setLabelVotes\n\nThe total number of contributors that choose this label.\n\n### getComments\n\nComments from contributors.\n\n### setComments\n\nComments from contributors."]]