Reference documentation and code samples for the Cloud Trace V2 API class Google::Cloud::Trace::V2::AttributeValue.
The allowed types for [VALUE] in a [KEY]:[VALUE] attribute.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#bool_value
defbool_value()->::Boolean
Returns
(::Boolean) — A Boolean value represented by true or false.
Note: The following fields are mutually exclusive: bool_value, string_value, int_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 represented by true or false.
Note: The following fields are mutually exclusive: bool_value, string_value, int_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Boolean) — A Boolean value represented by true or false.
Note: The following fields are mutually exclusive: bool_value, string_value, int_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#int_value
defint_value()->::Integer
Returns
(::Integer) — A 64-bit signed integer.
Note: The following fields are mutually exclusive: int_value, string_value, bool_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#int_value=
defint_value=(value)->::Integer
Parameter
value (::Integer) — A 64-bit signed integer.
Note: The following fields are mutually exclusive: int_value, string_value, bool_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Integer) — A 64-bit signed integer.
Note: The following fields are mutually exclusive: int_value, string_value, bool_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: string_value, int_value, bool_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: string_value, int_value, bool_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: string_value, int_value, bool_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-09 UTC."],[],[],null,["# Cloud Trace V2 API - Class Google::Cloud::Trace::V2::AttributeValue (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-trace-v2/latest/Google-Cloud-Trace-V2-AttributeValue)\n- [1.2.1](/ruby/docs/reference/google-cloud-trace-v2/1.2.1/Google-Cloud-Trace-V2-AttributeValue)\n- [1.1.0](/ruby/docs/reference/google-cloud-trace-v2/1.1.0/Google-Cloud-Trace-V2-AttributeValue)\n- [1.0.1](/ruby/docs/reference/google-cloud-trace-v2/1.0.1/Google-Cloud-Trace-V2-AttributeValue)\n- [0.9.0](/ruby/docs/reference/google-cloud-trace-v2/0.9.0/Google-Cloud-Trace-V2-AttributeValue)\n- [0.8.2](/ruby/docs/reference/google-cloud-trace-v2/0.8.2/Google-Cloud-Trace-V2-AttributeValue)\n- [0.7.0](/ruby/docs/reference/google-cloud-trace-v2/0.7.0/Google-Cloud-Trace-V2-AttributeValue)\n- [0.6.1](/ruby/docs/reference/google-cloud-trace-v2/0.6.1/Google-Cloud-Trace-V2-AttributeValue)\n- [0.5.0](/ruby/docs/reference/google-cloud-trace-v2/0.5.0/Google-Cloud-Trace-V2-AttributeValue)\n- [0.4.1](/ruby/docs/reference/google-cloud-trace-v2/0.4.1/Google-Cloud-Trace-V2-AttributeValue)\n- [0.3.5](/ruby/docs/reference/google-cloud-trace-v2/0.3.5/Google-Cloud-Trace-V2-AttributeValue) \nReference documentation and code samples for the Cloud Trace V2 API class Google::Cloud::Trace::V2::AttributeValue.\n\nThe allowed types for `[VALUE]` in a `[KEY]:[VALUE]` attribute. \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 represented by `true` or `false`.\n\n\n Note: The following fields are mutually exclusive: `bool_value`, `string_value`, `int_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 represented by `true` or `false`.\n\n\nNote: The following fields are mutually exclusive: `bool_value`, `string_value`, `int_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 represented by `true` or `false`.\n\n\n Note: The following fields are mutually exclusive: `bool_value`, `string_value`, `int_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #int_value\n\n def int_value() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- A 64-bit signed integer.\n\n Note: The following fields are mutually exclusive: `int_value`, `string_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #int_value=\n\n def int_value=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- A 64-bit signed integer.\n\n\nNote: The following fields are mutually exclusive: `int_value`, `string_value`, `bool_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 signed integer.\n\n Note: The following fields are mutually exclusive: `int_value`, `string_value`, `bool_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 ::Google::Cloud::Trace::V2::TruncatableString\n\n**Returns**\n\n- ([::Google::Cloud::Trace::V2::TruncatableString](./Google-Cloud-Trace-V2-TruncatableString)) --- A string up to 256 bytes long.\n\n\n Note: The following fields are mutually exclusive: `string_value`, `int_value`, `bool_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 ::Google::Cloud::Trace::V2::TruncatableString\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Trace::V2::TruncatableString](./Google-Cloud-Trace-V2-TruncatableString)) --- A string up to 256 bytes long.\n\n\nNote: The following fields are mutually exclusive: `string_value`, `int_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- ([::Google::Cloud::Trace::V2::TruncatableString](./Google-Cloud-Trace-V2-TruncatableString)) --- A string up to 256 bytes long.\n\n\n Note: The following fields are mutually exclusive: `string_value`, `int_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]