Reference documentation and code samples for the Infrastructure Manager V1 API class Google::Protobuf::Value.
Valuerepresents a dynamically typed value which can be either
null, a number, a string, a boolean, a recursive struct value, or a
list of values. A producer of value is expected to set one of these
variants. Absence of any variant indicates an error.
[[["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,["# Infrastructure Manager V1 API - Class Google::Protobuf::Value (v0.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.2.0 (latest)](/ruby/docs/reference/google-cloud-config-v1/latest/Google-Protobuf-Value)\n- [0.1.0](/ruby/docs/reference/google-cloud-config-v1/0.1.0/Google-Protobuf-Value) \nReference documentation and code samples for the Infrastructure Manager V1 API class Google::Protobuf::Value.\n\n`Value` represents a dynamically typed value which can be either\nnull, a number, a string, a boolean, a recursive struct value, or a\nlist of values. A producer of value is expected to set one of these\nvariants. Absence of any variant indicates an error.\n\n\n\u003cbr /\u003e\n\nThe JSON representation for `Value` is JSON 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) --- Represents a boolean value.\n\n### #bool_value=\n\n def bool_value=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Represents a boolean value. \n**Returns**\n\n- (::Boolean) --- Represents a boolean value.\n\n### #list_value\n\n def list_value() -\u003e ::Google::Protobuf::ListValue\n\n**Returns**\n\n- ([::Google::Protobuf::ListValue](./Google-Protobuf-ListValue)) --- Represents a repeated `Value`.\n\n### #list_value=\n\n def list_value=(value) -\u003e ::Google::Protobuf::ListValue\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::ListValue](./Google-Protobuf-ListValue)) --- Represents a repeated `Value`. \n**Returns**\n\n- ([::Google::Protobuf::ListValue](./Google-Protobuf-ListValue)) --- Represents a repeated `Value`.\n\n### #null_value\n\n def null_value() -\u003e ::Google::Protobuf::NullValue\n\n**Returns**\n\n- ([::Google::Protobuf::NullValue](./Google-Protobuf-NullValue)) --- Represents a null value.\n\n### #null_value=\n\n def null_value=(value) -\u003e ::Google::Protobuf::NullValue\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::NullValue](./Google-Protobuf-NullValue)) --- Represents a null value. \n**Returns**\n\n- ([::Google::Protobuf::NullValue](./Google-Protobuf-NullValue)) --- Represents a null value.\n\n### #number_value\n\n def number_value() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Represents a double value.\n\n### #number_value=\n\n def number_value=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- Represents a double value. \n**Returns**\n\n- (::Float) --- Represents a double value.\n\n### #string_value\n\n def string_value() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Represents a string value.\n\n### #string_value=\n\n def string_value=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Represents a string value. \n**Returns**\n\n- (::String) --- Represents a string value.\n\n### #struct_value\n\n def struct_value() -\u003e ::Google::Protobuf::Struct\n\n**Returns**\n\n- ([::Google::Protobuf::Struct](./Google-Protobuf-Struct)) --- Represents a structured value.\n\n### #struct_value=\n\n def struct_value=(value) -\u003e ::Google::Protobuf::Struct\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Struct](./Google-Protobuf-Struct)) --- Represents a structured value. \n**Returns**\n\n- ([::Google::Protobuf::Struct](./Google-Protobuf-Struct)) --- Represents a structured value."]]