Reference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::TypedValue.
A single strongly-typed value.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#bool_value
defbool_value()->::Boolean
Returns
(::Boolean) — A Boolean value: true or false.
Note: The following fields are mutually exclusive: bool_value, int64_value, double_value, string_value, distribution_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#bool_value=
defbool_value=(value)->::Boolean
Parameter
value (::Boolean) — A Boolean value: true or false.
Note: The following fields are mutually exclusive: bool_value, int64_value, double_value, string_value, distribution_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Boolean) — A Boolean value: true or false.
Note: The following fields are mutually exclusive: bool_value, int64_value, double_value, string_value, distribution_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: distribution_value, bool_value, int64_value, double_value, string_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: distribution_value, bool_value, int64_value, double_value, string_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Note: The following fields are mutually exclusive: distribution_value, bool_value, int64_value, double_value, string_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#double_value
defdouble_value()->::Float
Returns
(::Float) — A 64-bit double-precision floating-point number. Its magnitude
is approximately ±10±300 and it has 16
significant digits of precision.
Note: The following fields are mutually exclusive: double_value, bool_value, int64_value, string_value, distribution_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#double_value=
defdouble_value=(value)->::Float
Parameter
value (::Float) — A 64-bit double-precision floating-point number. Its magnitude
is approximately ±10±300 and it has 16
significant digits of precision.
Note: The following fields are mutually exclusive: double_value, bool_value, int64_value, string_value, distribution_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Float) — A 64-bit double-precision floating-point number. Its magnitude
is approximately ±10±300 and it has 16
significant digits of precision.
Note: The following fields are mutually exclusive: double_value, bool_value, int64_value, string_value, distribution_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#int64_value
defint64_value()->::Integer
Returns
(::Integer) — A 64-bit integer. Its range is approximately ±9.2x1018.
Note: The following fields are mutually exclusive: int64_value, bool_value, double_value, string_value, distribution_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#int64_value=
defint64_value=(value)->::Integer
Parameter
value (::Integer) — A 64-bit integer. Its range is approximately ±9.2x1018.
Note: The following fields are mutually exclusive: int64_value, bool_value, double_value, string_value, distribution_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Integer) — A 64-bit integer. Its range is approximately ±9.2x1018.
Note: The following fields are mutually exclusive: int64_value, bool_value, double_value, string_value, distribution_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#string_value
defstring_value()->::String
Returns
(::String) — A variable-length string value.
Note: The following fields are mutually exclusive: string_value, bool_value, int64_value, double_value, distribution_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#string_value=
defstring_value=(value)->::String
Parameter
value (::String) — A variable-length string value.
Note: The following fields are mutually exclusive: string_value, bool_value, int64_value, double_value, distribution_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — A variable-length string value.
Note: The following fields are mutually exclusive: string_value, bool_value, int64_value, double_value, distribution_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["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,["# Cloud Monitoring V3 API - Class Google::Cloud::Monitoring::V3::TypedValue (v1.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.1 (latest)](/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-TypedValue)\n- [1.6.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.6.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [1.5.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.5.1/Google-Cloud-Monitoring-V3-TypedValue)\n- [1.4.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.4.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [1.3.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.3.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [1.2.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.2.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [1.1.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.1.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [1.0.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.0.1/Google-Cloud-Monitoring-V3-TypedValue)\n- [0.18.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.18.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [0.17.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.17.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [0.16.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.16.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [0.15.2](/ruby/docs/reference/google-cloud-monitoring-v3/0.15.2/Google-Cloud-Monitoring-V3-TypedValue)\n- [0.14.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.14.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [0.13.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.13.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [0.12.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.12.1/Google-Cloud-Monitoring-V3-TypedValue)\n- [0.11.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.11.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [0.10.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.10.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [0.9.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.9.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [0.8.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.8.0/Google-Cloud-Monitoring-V3-TypedValue)\n- [0.7.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.7.1/Google-Cloud-Monitoring-V3-TypedValue) \nReference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::TypedValue.\n\nA single strongly-typed value. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #bool_value\n\n def bool_value() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- A Boolean value: `true` or `false`.\n\n\n Note: The following fields are mutually exclusive: `bool_value`, `int64_value`, `double_value`, `string_value`, `distribution_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #bool_value=\n\n def bool_value=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- A Boolean value: `true` or `false`.\n\n\nNote: The following fields are mutually exclusive: `bool_value`, `int64_value`, `double_value`, `string_value`, `distribution_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::Boolean) --- A Boolean value: `true` or `false`.\n\n\n Note: The following fields are mutually exclusive: `bool_value`, `int64_value`, `double_value`, `string_value`, `distribution_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #distribution_value\n\n def distribution_value() -\u003e ::Google::Api::Distribution\n\n**Returns**\n\n- ([::Google::Api::Distribution](./Google-Api-Distribution)) --- A distribution value.\n\n\n Note: The following fields are mutually exclusive: `distribution_value`, `bool_value`, `int64_value`, `double_value`, `string_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #distribution_value=\n\n def distribution_value=(value) -\u003e ::Google::Api::Distribution\n\n**Parameter**\n\n- **value** ([::Google::Api::Distribution](./Google-Api-Distribution)) --- A distribution value.\n\n\nNote: The following fields are mutually exclusive: `distribution_value`, `bool_value`, `int64_value`, `double_value`, `string_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Api::Distribution](./Google-Api-Distribution)) --- A distribution value.\n\n\n Note: The following fields are mutually exclusive: `distribution_value`, `bool_value`, `int64_value`, `double_value`, `string_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #double_value\n\n def double_value() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- A 64-bit double-precision floating-point number. Its magnitude is approximately ±10^±300^ and it has 16 significant digits of precision.\n\n\n Note: The following fields are mutually exclusive: `double_value`, `bool_value`, `int64_value`, `string_value`, `distribution_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #double_value=\n\n def double_value=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- A 64-bit double-precision floating-point number. Its magnitude is approximately ±10^±300^ and it has 16 significant digits of precision.\n\n\nNote: The following fields are mutually exclusive: `double_value`, `bool_value`, `int64_value`, `string_value`, `distribution_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::Float) --- A 64-bit double-precision floating-point number. Its magnitude is approximately ±10^±300^ and it has 16 significant digits of precision.\n\n\n Note: The following fields are mutually exclusive: `double_value`, `bool_value`, `int64_value`, `string_value`, `distribution_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #int64_value\n\n def int64_value() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- A 64-bit integer. Its range is approximately ±9.2x10^18^.\n\n\n Note: The following fields are mutually exclusive: `int64_value`, `bool_value`, `double_value`, `string_value`, `distribution_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #int64_value=\n\n def int64_value=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- A 64-bit integer. Its range is approximately ±9.2x10^18^.\n\n\nNote: The following fields are mutually exclusive: `int64_value`, `bool_value`, `double_value`, `string_value`, `distribution_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::Integer) --- A 64-bit integer. Its range is approximately ±9.2x10^18^.\n\n\n Note: The following fields are mutually exclusive: `int64_value`, `bool_value`, `double_value`, `string_value`, `distribution_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #string_value\n\n def string_value() -\u003e ::String\n\n**Returns**\n\n- (::String) --- A variable-length string value.\n\n Note: The following fields are mutually exclusive: `string_value`, `bool_value`, `int64_value`, `double_value`, `distribution_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #string_value=\n\n def string_value=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- A variable-length string value.\n\n\nNote: The following fields are mutually exclusive: `string_value`, `bool_value`, `int64_value`, `double_value`, `distribution_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- A variable-length string value.\n\n Note: The following fields are mutually exclusive: `string_value`, `bool_value`, `int64_value`, `double_value`, `distribution_value`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]