Google Cloud Container V1 Client - Class Metric (2.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Container V1 Client class Metric.
Progress metric is (string, int|float|string) pair.
Generated from protobuf message google.container.v1.OperationProgress.Metric
Namespace
Google \ Cloud \ Container \ V1 \ OperationProgress
Methods
__construct
Parameters |
Name |
Description |
data |
array
Optional. Data for populating the Message object.
|
↳ name |
string
Required. Metric name, e.g., "nodes total", "percent done".
|
↳ int_value |
int|string
For metrics with integer value.
|
↳ double_value |
float
For metrics with floating point value.
|
↳ string_value |
string
For metrics with custom values (ratios, visual progress, etc.).
|
getName
Required. Metric name, e.g., "nodes total", "percent done".
Returns |
Type |
Description |
string |
|
setName
Required. Metric name, e.g., "nodes total", "percent done".
Parameter |
Name |
Description |
var |
string
|
Returns |
Type |
Description |
$this |
|
getIntValue
For metrics with integer value.
Returns |
Type |
Description |
int|string |
|
hasIntValue
setIntValue
For metrics with integer value.
Parameter |
Name |
Description |
var |
int|string
|
Returns |
Type |
Description |
$this |
|
getDoubleValue
For metrics with floating point value.
Returns |
Type |
Description |
float |
|
hasDoubleValue
setDoubleValue
For metrics with floating point value.
Parameter |
Name |
Description |
var |
float
|
Returns |
Type |
Description |
$this |
|
getStringValue
For metrics with custom values (ratios, visual progress, etc.).
Returns |
Type |
Description |
string |
|
hasStringValue
setStringValue
For metrics with custom values (ratios, visual progress, etc.).
Parameter |
Name |
Description |
var |
string
|
Returns |
Type |
Description |
$this |
|
getValue
Returns |
Type |
Description |
string |
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["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 Container V1 Client - Class Metric (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/php/docs/reference/cloud-container/latest/V1.OperationProgress.Metric)\n- [2.4.0](/php/docs/reference/cloud-container/2.4.0/V1.OperationProgress.Metric)\n- [2.3.4](/php/docs/reference/cloud-container/2.3.4/V1.OperationProgress.Metric)\n- [2.2.1](/php/docs/reference/cloud-container/2.2.1/V1.OperationProgress.Metric)\n- [2.1.0](/php/docs/reference/cloud-container/2.1.0/V1.OperationProgress.Metric)\n- [2.0.0](/php/docs/reference/cloud-container/2.0.0/V1.OperationProgress.Metric)\n- [1.33.0](/php/docs/reference/cloud-container/1.33.0/V1.OperationProgress.Metric)\n- [1.32.0](/php/docs/reference/cloud-container/1.32.0/V1.OperationProgress.Metric)\n- [1.31.0](/php/docs/reference/cloud-container/1.31.0/V1.OperationProgress.Metric)\n- [1.30.3](/php/docs/reference/cloud-container/1.30.3/V1.OperationProgress.Metric)\n- [1.24.0](/php/docs/reference/cloud-container/1.24.0/V1.OperationProgress.Metric)\n- [1.23.0](/php/docs/reference/cloud-container/1.23.0/V1.OperationProgress.Metric)\n- [1.22.0](/php/docs/reference/cloud-container/1.22.0/V1.OperationProgress.Metric)\n- [1.21.1](/php/docs/reference/cloud-container/1.21.1/V1.OperationProgress.Metric)\n- [1.20.0](/php/docs/reference/cloud-container/1.20.0/V1.OperationProgress.Metric)\n- [1.19.0](/php/docs/reference/cloud-container/1.19.0/V1.OperationProgress.Metric)\n- [1.18.0](/php/docs/reference/cloud-container/1.18.0/V1.OperationProgress.Metric)\n- [1.17.1](/php/docs/reference/cloud-container/1.17.1/V1.OperationProgress.Metric)\n- [1.16.0](/php/docs/reference/cloud-container/1.16.0/V1.OperationProgress.Metric)\n- [1.15.0](/php/docs/reference/cloud-container/1.15.0/V1.OperationProgress.Metric)\n- [1.14.0](/php/docs/reference/cloud-container/1.14.0/V1.OperationProgress.Metric)\n- [1.13.1](/php/docs/reference/cloud-container/1.13.1/V1.OperationProgress.Metric)\n- [1.12.1](/php/docs/reference/cloud-container/1.12.1/V1.OperationProgress.Metric)\n- [1.10.3](/php/docs/reference/cloud-container/1.10.3/V1.OperationProgress.Metric)\n- [1.9.1](/php/docs/reference/cloud-container/1.9.1/V1.OperationProgress.Metric) \nReference documentation and code samples for the Google Cloud Container V1 Client class Metric.\n\nProgress metric is (string, int\\|float\\|string) pair.\n\nGenerated from protobuf message `google.container.v1.OperationProgress.Metric`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Container \\\\ V1 \\\\ OperationProgress\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nRequired. Metric name, e.g., \"nodes total\", \"percent done\".\n\n### setName\n\nRequired. Metric name, e.g., \"nodes total\", \"percent done\".\n\n### getIntValue\n\nFor metrics with integer value.\n\n### hasIntValue\n\n### setIntValue\n\nFor metrics with integer value.\n\n### getDoubleValue\n\nFor metrics with floating point value.\n\n### hasDoubleValue\n\n### setDoubleValue\n\nFor metrics with floating point value.\n\n### getStringValue\n\nFor metrics with custom values (ratios, visual progress, etc.).\n\n### hasStringValue\n\n### setStringValue\n\nFor metrics with custom values (ratios, visual progress, etc.).\n\n### getValue"]]