Stackdriver Monitoring V3 Client - Class TypedValue (1.2.2)

Reference documentation and code samples for the Stackdriver Monitoring V3 Client class TypedValue.

A single strongly-typed value.

Generated from protobuf message google.monitoring.v3.TypedValue

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ bool_value bool

A Boolean value: true or false.

↳ int64_value int|string

A 64-bit integer. Its range is approximately ±9.2x1018.

↳ double_value float

A 64-bit double-precision floating-point number. Its magnitude is approximately ±10±300 and it has 16 significant digits of precision.

↳ string_value string

A variable-length string value.

↳ distribution_value Google\Api\Distribution

A distribution value.

getBoolValue

A Boolean value: true or false.

Generated from protobuf field bool bool_value = 1;

Returns
TypeDescription
bool

hasBoolValue

setBoolValue

A Boolean value: true or false.

Generated from protobuf field bool bool_value = 1;

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getInt64Value

A 64-bit integer. Its range is approximately ±9.2x1018.

Generated from protobuf field int64 int64_value = 2;

Returns
TypeDescription
int|string

hasInt64Value

setInt64Value

A 64-bit integer. Its range is approximately ±9.2x1018.

Generated from protobuf field int64 int64_value = 2;

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getDoubleValue

A 64-bit double-precision floating-point number. Its magnitude is approximately ±10±300 and it has 16 significant digits of precision.

Generated from protobuf field double double_value = 3;

Returns
TypeDescription
float

hasDoubleValue

setDoubleValue

A 64-bit double-precision floating-point number. Its magnitude is approximately ±10±300 and it has 16 significant digits of precision.

Generated from protobuf field double double_value = 3;

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getStringValue

A variable-length string value.

Generated from protobuf field string string_value = 4;

Returns
TypeDescription
string

hasStringValue

setStringValue

A variable-length string value.

Generated from protobuf field string string_value = 4;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDistributionValue

A distribution value.

Generated from protobuf field .google.api.Distribution distribution_value = 5;

Returns
TypeDescription
Google\Api\Distribution|null

hasDistributionValue

setDistributionValue

A distribution value.

Generated from protobuf field .google.api.Distribution distribution_value = 5;

Parameter
NameDescription
var Google\Api\Distribution
Returns
TypeDescription
$this

getValue

Returns
TypeDescription
string