Data Analytics API with Gemini V1BETA API - Class Google::Protobuf::Struct (v0.3.1)

Reference documentation and code samples for the Data Analytics API with Gemini V1BETA 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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#fields

deffields()->::Google::Protobuf::Map{::String=>::Google::Protobuf::Value}
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}) — Unordered map of dynamically typed values.

#fields=

deffields=(value)->::Google::Protobuf::Map{::String=>::Google::Protobuf::Value}
Parameter
  • value (::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}) — Unordered map of dynamically typed values.
Returns
  • (::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}) — Unordered map of dynamically typed values.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.