OptionValueSpec

Ask the user to select one of the options.

JSON representation
{

  // Union field select can be only one of the following:
  "simpleSelect": {
    object(SimpleSelect)
  },
  "listSelect": {
    object(ListSelect)
  },
  "carouselSelect": {
    object(CarouselSelect)
  },
  // End of list of possible types for union field select.
}
Fields
Union field select. The type of selector presented to the user select can be only one of the following:
simpleSelect

object(SimpleSelect)

A simple select with no associated GUI

listSelect

object(ListSelect)

A select with a list card GUI

carouselSelect

object(CarouselSelect)

A select with a card carousel GUI

SimpleSelect

A simple select with no associated GUI. Please update assistant.logs.actions.SimpleSelect to reflect any changes made.

JSON representation
{
  "items": [
    {
      object(Item)
    }
  ],
}
Fields
items[]

object(Item)

List of items users should select from.

Item

Item for selection.

JSON representation
{
  "optionInfo": {
    object(OptionInfo)
  },
  "title": string,
}
Fields
optionInfo

object(OptionInfo)

Item key and synonyms.

title

string

Title of the item. It will act as synonym if it's provided. Optional

ListSelect

A card for presenting a list of options to select from.

JSON representation
{
  "title": string,
  "items": [
    {
      object(ListItem)
    }
  ],
}
Fields
title

string

Overall title of the list. Optional.

items[]

object(ListItem)

min: 2 max: 30

ListItem

An item in the list.

JSON representation
{
  "optionInfo": {
    object(OptionInfo)
  },
  "title": string,
  "description": string,
  "image": {
    object(Image)
  },
}
Fields
optionInfo

object(OptionInfo)

Information about this option. See google.actions.v2.OptionInfo for details. Required.

title

string

Title of the list item. When tapped, this text will be posted back to the conversation verbatim as if the user had typed it. Each title must be unique among the set of list items. Required.

description

string

Main text describing the item. Optional.

image

object(Image)

Square image. Optional.

CarouselSelect

A card for presenting a carousel of options to select from.

JSON representation
{
  "items": [
    {
      object(CarouselItem)
    }
  ],
}
Fields
items[]

object(CarouselItem)

min: 2 max: 10

CarouselItem

An item in the carousel

JSON representation
{
  "optionInfo": {
    object(OptionInfo)
  },
  "title": string,
  "description": string,
  "image": {
    object(Image)
  },
}
Fields
optionInfo

object(OptionInfo)

See google.actions.v2.OptionInfo for details. Required.

title

string

Title of the carousel item. When tapped, this text will be posted back to the conversation verbatim as if the user had typed it. Each title must be unique among the set of carousel items. Required.

description

string

Body text of the card.

image

object(Image)

Optional.