OptionValueSpec

ขอให้ผู้ใช้เลือกตัวเลือกใดตัวเลือกหนึ่ง

การแสดง JSON
{

  // 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.
}
ช่อง
ช่องการรวม select ประเภทของตัวเลือกที่แสดงแก่ผู้ใช้ select ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้
simpleSelect

object (SimpleSelect)

การเลือกแบบง่ายๆ โดยไม่มี GUI ที่เกี่ยวข้อง

listSelect

object (ListSelect)

เลือกด้วย GUI แบบการ์ดรายการ

carouselSelect
(deprecated)

object (CarouselSelect)

การเลือกที่มี GUI แบบภาพสไลด์ของการ์ด ให้ใช้ collectionsSelect แทน

collectionSelect

object (CollectionSelect)

เลือกที่มี GUI คอลเล็กชันการ์ด

SimpleSelect

การเลือกแบบง่ายๆ โดยไม่มี GUI ที่เกี่ยวข้อง โปรดอัปเดต assistant.logs.actions.SimpleSelect เพื่อแสดงการเปลี่ยนแปลงที่เกิดขึ้น

การแสดง JSON
{
  "items": [
    {
      object (Item)
    }
  ]
}
ช่อง
items[]

object (Item)

รายการที่ผู้ใช้ควรเลือก

รายการ

รายการสำหรับการเลือก

การแสดง JSON
{
  "optionInfo": {
    object (OptionInfo)
  },
  "title": string
}
ช่อง
optionInfo

object (OptionInfo)

คีย์รายการและคำพ้องความหมาย

title

string

ชื่อของสินค้า ซึ่งจะทำหน้าที่เป็นคำพ้องความหมายหากมีการระบุไว้ ไม่บังคับ

ListSelect

การ์ดสำหรับแสดงรายการตัวเลือกที่มีให้เลือก

การแสดง JSON
{
  "title": string,
  "subtitle": string,
  "items": [
    {
      object (ListItem)
    }
  ]
}
ช่อง
title

string

ชื่อโดยรวมของรายการ ไม่บังคับ

subtitle

string

คำบรรยายของรายการ ไม่บังคับ

items[]

object (ListItem)

ต่ำสุด: 2 สูงสุด: 30

ListItem

รายการข้อมูลในรายการ

การแสดง JSON
{
  "optionInfo": {
    object (OptionInfo)
  },
  "title": string,
  "description": string,
  "image": {
    object (Image)
  }
}
ช่อง
optionInfo

object (OptionInfo)

ข้อมูลเกี่ยวกับตัวเลือกนี้ ดูรายละเอียดได้ที่ google.actions.v2.OptionInfo ต้องระบุ

title

string

ชื่อของรายการ เมื่อแตะ ข้อความนี้จะโพสต์กลับไปที่การสนทนาแบบคำต่อคำราวกับว่าผู้ใช้ได้พิมพ์ลงไป แต่ละชื่อต้องไม่ซ้ำกันในชุดรายการ ต้องระบุ

description

string

ข้อความหลักที่อธิบายรายการ ไม่บังคับ

image

object (Image)

รูปภาพสี่เหลี่ยมจัตุรัส ไม่บังคับ

CarouselSelect

การ์ดสำหรับนำเสนอภาพสไลด์ของตัวเลือก

การแสดง JSON
{
  "title": string,
  "subtitle": string,
  "items": [
    {
      object (CarouselItem)
    }
  ],
  "imageDisplayOptions": enum (ImageDisplayOptions)
}
ช่อง
title

string

ของภาพสไลด์ ไม่บังคับ

subtitle

string

คำบรรยายของภาพสไลด์ ไม่บังคับ

items[]

object (CarouselItem)

ต่ำสุด: 2 สูงสุด: 10

imageDisplayOptions

enum (ImageDisplayOptions)

ประเภทการแสดงรูปภาพ ไม่บังคับ

CarouselItem

รายการในภาพสไลด์

การแสดง JSON
{
  "optionInfo": {
    object (OptionInfo)
  },
  "title": string,
  "description": string,
  "image": {
    object (Image)
  }
}
ช่อง
optionInfo

object (OptionInfo)

ดูรายละเอียดได้ที่ google.actions.v2.OptionInfo ต้องระบุ

title

string

ชื่อของรายการภาพสไลด์ เมื่อแตะ ข้อความนี้จะโพสต์กลับไปที่การสนทนาแบบคำต่อคำราวกับว่าผู้ใช้ได้พิมพ์ลงไป ชื่อแต่ละชื่อต้องไม่ซ้ำกันในชุดรายการภาพสไลด์ ต้องระบุ

description

string

ข้อความเนื้อหาของการ์ด

image

object (Image)

ไม่บังคับ

CollectionSelect

การ์ดสำหรับนำเสนอชุดตัวเลือกให้เลือก

การแสดง JSON
{
  "title": string,
  "subtitle": string,
  "items": [
    {
      object (CollectionItem)
    }
  ],
  "imageDisplayOptions": enum (ImageDisplayOptions)
}
ช่อง
title

string

ของคอลเล็กชัน ไม่บังคับ

subtitle

string

คำบรรยายของคอลเล็กชัน ไม่บังคับ

items[]

object (CollectionItem)

ต่ำสุด: 2 สูงสุด: 10

imageDisplayOptions

enum (ImageDisplayOptions)

ประเภทการแสดงรูปภาพ ไม่บังคับ

CollectionItem

รายการในคอลเล็กชัน

การแสดง JSON
{
  "optionInfo": {
    object (OptionInfo)
  },
  "title": string,
  "description": string,
  "image": {
    object (Image)
  }
}
ช่อง
optionInfo

object (OptionInfo)

ดูรายละเอียดได้ที่ google.actions.v2.OptionInfo ต้องระบุ

title

string

ชื่อของรายการคอลเล็กชัน เมื่อแตะ ข้อความนี้จะโพสต์กลับไปที่การสนทนาแบบคำต่อคำราวกับว่าผู้ใช้ได้พิมพ์ลงไป แต่ละชื่อต้องไม่ซ้ำกันในชุดรายการคอลเล็กชัน ต้องระบุ

description

string

ข้อความเนื้อหาของการ์ด

image

object (Image)

ไม่บังคับ