Value

value represents 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.

Fields
kind Union type
The kind of value. kind can be only one of the following:
nullValue null

Represents a null value.

numberValue number

Represents a double value.

stringValue string

Represents a string value.

boolValue boolean

Represents a boolean value.

structValue object (Struct)

Represents a structured value.

listValue object (ListValue)

Represents a repeated value.

contentValue object (Content)

Represents rich content (text, image, etc.).

JSON representation
{

  // kind
  "nullValue": null,
  "numberValue": number,
  "stringValue": string,
  "boolValue": boolean,
  "structValue": {
    object (Struct)
  },
  "listValue": {
    object (ListValue)
  },
  "contentValue": {
    object (Content)
  }
  // Union type
}

ListValue

ListValue is a wrapper around a repeated field of values.

Fields
values[] object (Value)

Repeated field of dynamically typed values.

JSON representation
{
  "values": [
    {
      object (Value)
    }
  ]
}