Reference documentation and code samples for the Cloud Logging V2 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,["# Cloud Logging V2 API - Class Google::Protobuf::Struct (v1.3.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.0 (latest)](/ruby/docs/reference/google-cloud-logging-v2/latest/Google-Protobuf-Struct)\n- [1.2.1](/ruby/docs/reference/google-cloud-logging-v2/1.2.1/Google-Protobuf-Struct)\n- [1.1.0](/ruby/docs/reference/google-cloud-logging-v2/1.1.0/Google-Protobuf-Struct)\n- [1.0.1](/ruby/docs/reference/google-cloud-logging-v2/1.0.1/Google-Protobuf-Struct)\n- [0.13.0](/ruby/docs/reference/google-cloud-logging-v2/0.13.0/Google-Protobuf-Struct)\n- [0.12.2](/ruby/docs/reference/google-cloud-logging-v2/0.12.2/Google-Protobuf-Struct)\n- [0.11.0](/ruby/docs/reference/google-cloud-logging-v2/0.11.0/Google-Protobuf-Struct)\n- [0.10.1](/ruby/docs/reference/google-cloud-logging-v2/0.10.1/Google-Protobuf-Struct)\n- [0.9.0](/ruby/docs/reference/google-cloud-logging-v2/0.9.0/Google-Protobuf-Struct)\n- [0.8.1](/ruby/docs/reference/google-cloud-logging-v2/0.8.1/Google-Protobuf-Struct)\n- [0.7.0](/ruby/docs/reference/google-cloud-logging-v2/0.7.0/Google-Protobuf-Struct)\n- [0.6.0](/ruby/docs/reference/google-cloud-logging-v2/0.6.0/Google-Protobuf-Struct)\n- [0.5.6](/ruby/docs/reference/google-cloud-logging-v2/0.5.6/Google-Protobuf-Struct) \nReference documentation and code samples for the Cloud Logging V2 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."]]