Reference documentation and code samples for the Network Services V1 API class Google::Protobuf::Struct.
Struct represents a structured data value, consisting of fields
which map to dynamically typed values. In some languages, Struct
might be supported by a native representation. For example, in
scripting languages like JS a struct is represented as an
object. The details of that representation are described together
with the proto support for the language.
The JSON representation for Struct is JSON object.
[[["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,["# Network Services V1 API - Class Google::Protobuf::Struct (v2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Protobuf-Struct)\n- [2.3.0](/ruby/docs/reference/google-cloud-network_services-v1/2.3.0/Google-Protobuf-Struct)\n- [2.2.0](/ruby/docs/reference/google-cloud-network_services-v1/2.2.0/Google-Protobuf-Struct)\n- [2.1.0](/ruby/docs/reference/google-cloud-network_services-v1/2.1.0/Google-Protobuf-Struct)\n- [2.0.1](/ruby/docs/reference/google-cloud-network_services-v1/2.0.1/Google-Protobuf-Struct)\n- [1.2.0](/ruby/docs/reference/google-cloud-network_services-v1/1.2.0/Google-Protobuf-Struct)\n- [1.1.0](/ruby/docs/reference/google-cloud-network_services-v1/1.1.0/Google-Protobuf-Struct)\n- [1.0.1](/ruby/docs/reference/google-cloud-network_services-v1/1.0.1/Google-Protobuf-Struct)\n- [0.2.0](/ruby/docs/reference/google-cloud-network_services-v1/0.2.0/Google-Protobuf-Struct)\n- [0.1.0](/ruby/docs/reference/google-cloud-network_services-v1/0.1.0/Google-Protobuf-Struct) \nReference documentation and code samples for the Network Services V1 API class Google::Protobuf::Struct.\n\n`Struct` represents a structured data value, consisting of fields\nwhich map to dynamically typed values. In some languages, `Struct`\nmight be supported by a native representation. For example, in\nscripting languages like JS a struct is represented as an\nobject. The details of that representation are described together\nwith the proto support for the language.\n\n\n\u003cbr /\u003e\n\nThe JSON representation for `Struct` is JSON object. \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### #fields\n\n def fields() -\u003e ::Google::Protobuf::Map{::String =\u003e ::Google::Protobuf::Value}\n\n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::Google::Protobuf::Value}) --- Unordered map of dynamically typed values.\n\n### #fields=\n\n def fields=(value) -\u003e ::Google::Protobuf::Map{::String =\u003e ::Google::Protobuf::Value}\n\n**Parameter**\n\n- **value** (::Google::Protobuf::Map{::String =\\\u003e ::Google::Protobuf::Value}) --- Unordered map of dynamically typed values. \n**Returns**\n\n- (::Google::Protobuf::Map{::String =\\\u003e ::Google::Protobuf::Value}) --- Unordered map of dynamically typed values."]]