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)
  },
  "collectionSelect": {
    object (CollectionSelect)
  }
  // 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
(deprecated)

object (CarouselSelect)

A select with a card carousel GUI, use collectionSelect instead.

collectionSelect

object (CollectionSelect)

A select with a card collection 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,
  "subtitle": string,
  "items": [
    {
      object (ListItem)
    }
  ]
}
Fields
title

string

Overall title of the list. Optional.

subtitle

string

Subtitle 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
{
  "title": string,
  "subtitle": string,
  "items": [
    {
      object (CarouselItem)
    }
  ],
  "imageDisplayOptions": enum (ImageDisplayOptions)
}
Fields
title

string

title of the carousel. Optional.

subtitle

string

Subtitle of the carousel. Optional.

items[]

object (CarouselItem)

min: 2 max: 10

imageDisplayOptions

enum (ImageDisplayOptions)

type of image display option. Optional.

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.

CollectionSelect

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

JSON representation
{
  "title": string,
  "subtitle": string,
  "items": [
    {
      object (CollectionItem)
    }
  ],
  "imageDisplayOptions": enum (ImageDisplayOptions)
}
Fields
title

string

title of the collection. Optional.

subtitle

string

Subtitle of the collection. Optional.

items[]

object (CollectionItem)

min: 2 max: 10

imageDisplayOptions

enum (ImageDisplayOptions)

type of image display option. Optional.

CollectionItem

An item in the collection

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 collection 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 collection items. Required.

description

string

Body text of the card.

image

object (Image)

Optional.