Reference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::Value.
Data type and value of a parameter.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#bool_value
defbool_value()->::Boolean
Returns
(::Boolean) — Represents a boolean value.
Note: The following fields are mutually exclusive: bool_value, int64_value, string_value, double_value, proto_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) — Represents a boolean value.
Note: The following fields are mutually exclusive: bool_value, int64_value, string_value, double_value, proto_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Boolean) — Represents a boolean value.
Note: The following fields are mutually exclusive: bool_value, int64_value, string_value, double_value, proto_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) — Represents a double value.
Note: The following fields are mutually exclusive: double_value, int64_value, string_value, proto_value, bool_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) — Represents a double value.
Note: The following fields are mutually exclusive: double_value, int64_value, string_value, proto_value, bool_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Float) — Represents a double value.
Note: The following fields are mutually exclusive: double_value, int64_value, string_value, proto_value, bool_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) — Represents an int64 value.
Note: The following fields are mutually exclusive: int64_value, string_value, double_value, proto_value, bool_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) — Represents an int64 value.
Note: The following fields are mutually exclusive: int64_value, string_value, double_value, proto_value, bool_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Integer) — Represents an int64 value.
Note: The following fields are mutually exclusive: int64_value, string_value, double_value, proto_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: proto_value, int64_value, string_value, double_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: proto_value, int64_value, string_value, double_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: proto_value, int64_value, string_value, double_value, bool_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) — Represents a string value.
Note: The following fields are mutually exclusive: string_value, int64_value, double_value, proto_value, bool_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) — Represents a string value.
Note: The following fields are mutually exclusive: string_value, int64_value, double_value, proto_value, bool_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — Represents a string value.
Note: The following fields are mutually exclusive: string_value, int64_value, double_value, proto_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-08-28 UTC."],[],[],null,["# Cloud Channel V1 API - Class Google::Cloud::Channel::V1::Value (v2.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.2.1 (latest)](/ruby/docs/reference/google-cloud-channel-v1/latest/Google-Cloud-Channel-V1-Value)\n- [2.2.0](/ruby/docs/reference/google-cloud-channel-v1/2.2.0/Google-Cloud-Channel-V1-Value)\n- [2.1.0](/ruby/docs/reference/google-cloud-channel-v1/2.1.0/Google-Cloud-Channel-V1-Value)\n- [2.0.1](/ruby/docs/reference/google-cloud-channel-v1/2.0.1/Google-Cloud-Channel-V1-Value)\n- [1.3.0](/ruby/docs/reference/google-cloud-channel-v1/1.3.0/Google-Cloud-Channel-V1-Value)\n- [1.2.0](/ruby/docs/reference/google-cloud-channel-v1/1.2.0/Google-Cloud-Channel-V1-Value)\n- [1.1.0](/ruby/docs/reference/google-cloud-channel-v1/1.1.0/Google-Cloud-Channel-V1-Value)\n- [1.0.1](/ruby/docs/reference/google-cloud-channel-v1/1.0.1/Google-Cloud-Channel-V1-Value)\n- [0.24.0](/ruby/docs/reference/google-cloud-channel-v1/0.24.0/Google-Cloud-Channel-V1-Value)\n- [0.23.2](/ruby/docs/reference/google-cloud-channel-v1/0.23.2/Google-Cloud-Channel-V1-Value)\n- [0.22.1](/ruby/docs/reference/google-cloud-channel-v1/0.22.1/Google-Cloud-Channel-V1-Value)\n- [0.21.0](/ruby/docs/reference/google-cloud-channel-v1/0.21.0/Google-Cloud-Channel-V1-Value)\n- [0.20.0](/ruby/docs/reference/google-cloud-channel-v1/0.20.0/Google-Cloud-Channel-V1-Value)\n- [0.19.0](/ruby/docs/reference/google-cloud-channel-v1/0.19.0/Google-Cloud-Channel-V1-Value)\n- [0.18.0](/ruby/docs/reference/google-cloud-channel-v1/0.18.0/Google-Cloud-Channel-V1-Value)\n- [0.17.0](/ruby/docs/reference/google-cloud-channel-v1/0.17.0/Google-Cloud-Channel-V1-Value)\n- [0.16.0](/ruby/docs/reference/google-cloud-channel-v1/0.16.0/Google-Cloud-Channel-V1-Value)\n- [0.15.0](/ruby/docs/reference/google-cloud-channel-v1/0.15.0/Google-Cloud-Channel-V1-Value)\n- [0.14.0](/ruby/docs/reference/google-cloud-channel-v1/0.14.0/Google-Cloud-Channel-V1-Value)\n- [0.13.0](/ruby/docs/reference/google-cloud-channel-v1/0.13.0/Google-Cloud-Channel-V1-Value)\n- [0.12.0](/ruby/docs/reference/google-cloud-channel-v1/0.12.0/Google-Cloud-Channel-V1-Value)\n- [0.11.0](/ruby/docs/reference/google-cloud-channel-v1/0.11.0/Google-Cloud-Channel-V1-Value)\n- [0.10.0](/ruby/docs/reference/google-cloud-channel-v1/0.10.0/Google-Cloud-Channel-V1-Value)\n- [0.9.5](/ruby/docs/reference/google-cloud-channel-v1/0.9.5/Google-Cloud-Channel-V1-Value) \nReference documentation and code samples for the Cloud Channel V1 API class Google::Cloud::Channel::V1::Value.\n\nData type and value of a parameter. \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) --- Represents a boolean value.\n\n Note: The following fields are mutually exclusive: `bool_value`, `int64_value`, `string_value`, `double_value`, `proto_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) --- Represents a boolean value.\n\n\nNote: The following fields are mutually exclusive: `bool_value`, `int64_value`, `string_value`, `double_value`, `proto_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::Boolean) --- Represents a boolean value.\n\n Note: The following fields are mutually exclusive: `bool_value`, `int64_value`, `string_value`, `double_value`, `proto_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) --- Represents a double value.\n\n Note: The following fields are mutually exclusive: `double_value`, `int64_value`, `string_value`, `proto_value`, `bool_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) --- Represents a double value.\n\n\nNote: The following fields are mutually exclusive: `double_value`, `int64_value`, `string_value`, `proto_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- (::Float) --- Represents a double value.\n\n Note: The following fields are mutually exclusive: `double_value`, `int64_value`, `string_value`, `proto_value`, `bool_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) --- Represents an int64 value.\n\n Note: The following fields are mutually exclusive: `int64_value`, `string_value`, `double_value`, `proto_value`, `bool_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) --- Represents an int64 value.\n\n\nNote: The following fields are mutually exclusive: `int64_value`, `string_value`, `double_value`, `proto_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) --- Represents an int64 value.\n\n Note: The following fields are mutually exclusive: `int64_value`, `string_value`, `double_value`, `proto_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #proto_value\n\n def proto_value() -\u003e ::Google::Protobuf::Any\n\n**Returns**\n\n- ([::Google::Protobuf::Any](./Google-Protobuf-Any)) --- Represents an 'Any' proto value.\n\n\n Note: The following fields are mutually exclusive: `proto_value`, `int64_value`, `string_value`, `double_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #proto_value=\n\n def proto_value=(value) -\u003e ::Google::Protobuf::Any\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Any](./Google-Protobuf-Any)) --- Represents an 'Any' proto value.\n\n\nNote: The following fields are mutually exclusive: `proto_value`, `int64_value`, `string_value`, `double_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::Protobuf::Any](./Google-Protobuf-Any)) --- Represents an 'Any' proto value.\n\n\n Note: The following fields are mutually exclusive: `proto_value`, `int64_value`, `string_value`, `double_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 ::String\n\n**Returns**\n\n- (::String) --- Represents a string value.\n\n Note: The following fields are mutually exclusive: `string_value`, `int64_value`, `double_value`, `proto_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 ::String\n\n**Parameter**\n\n- **value** (::String) --- Represents a string value.\n\n\nNote: The following fields are mutually exclusive: `string_value`, `int64_value`, `double_value`, `proto_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- (::String) --- Represents a string value.\n\n Note: The following fields are mutually exclusive: `string_value`, `int64_value`, `double_value`, `proto_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]