[[["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 API Common Protos Client - Class Metric (4.12.3)\n\nVersion latestkeyboard_arrow_down\n\n- [4.12.3 (latest)](/php/docs/reference/common-protos/latest/Api.Metric)\n- [4.12.2](/php/docs/reference/common-protos/4.12.2/Api.Metric)\n- [4.11.0](/php/docs/reference/common-protos/4.11.0/Api.Metric)\n- [4.10.0](/php/docs/reference/common-protos/4.10.0/Api.Metric)\n- [4.9.0](/php/docs/reference/common-protos/4.9.0/Api.Metric)\n- [4.8.3](/php/docs/reference/common-protos/4.8.3/Api.Metric) \nReference documentation and code samples for the Google API Common Protos Client class Metric.\n\nA specific metric, identified by specifying values for all of the\nlabels of a [`MetricDescriptor`](/php/docs/reference/common-protos/latest/Api.MetricDescriptor).\n\nGenerated from protobuf message `google.api.Metric`\n\nNamespace\n---------\n\nGoogle \\\\ Api\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getType\n\nAn existing metric type, see\n[google.api.MetricDescriptor](/php/docs/reference/common-protos/latest/Api.MetricDescriptor). For example,\n`custom.googleapis.com/invoice/paid/amount`.\n\n### setType\n\nAn existing metric type, see\n[google.api.MetricDescriptor](/php/docs/reference/common-protos/latest/Api.MetricDescriptor). For example,\n`custom.googleapis.com/invoice/paid/amount`.\n\n### getLabels\n\nThe set of label values that uniquely identify this metric. All\nlabels listed in the `MetricDescriptor` must be assigned values.\n\n### setLabels\n\nThe set of label values that uniquely identify this metric. All\nlabels listed in the `MetricDescriptor` must be assigned values."]]