Reference documentation and code samples for the Google Cloud Database Center V1beta Client class TypedValue.
TypedValue represents the value of the metric based on data type.
Generated from protobuf message google.cloud.databasecenter.v1beta.TypedValue
Namespace
Google \ Cloud \ DatabaseCenter \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ double_value |
float
The value of the metric as double. |
↳ int64_value |
int|string
The value of the metric as int. |
getDoubleValue
The value of the metric as double.
| Returns | |
|---|---|
| Type | Description |
float |
|
hasDoubleValue
setDoubleValue
The value of the metric as double.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInt64Value
The value of the metric as int.
| Returns | |
|---|---|
| Type | Description |
int|string |
|
hasInt64Value
setInt64Value
The value of the metric as int.
| Parameter | |
|---|---|
| Name | Description |
var |
int|string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getValue
| Returns | |
|---|---|
| Type | Description |
string |
|