prompt

package
v0.0.0-...-e639e21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StaticImagePrompt_ImageFill_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "GRAY",
		2: "WHITE",
		3: "CROPPED",
	}
	StaticImagePrompt_ImageFill_value = map[string]int32{
		"UNSPECIFIED": 0,
		"GRAY":        1,
		"WHITE":       2,
		"CROPPED":     3,
	}
)

Enum value maps for StaticImagePrompt_ImageFill.

View Source
var (
	UrlHint_name = map[int32]string{
		0: "HINT_UNSPECIFIED",
		1: "AMP",
	}
	UrlHint_value = map[string]int32{
		"HINT_UNSPECIFIED": 0,
		"AMP":              1,
	}
)

Enum value maps for UrlHint.

View Source
var (
	StaticMediaPrompt_MediaType_name = map[int32]string{
		0: "MEDIA_TYPE_UNSPECIFIED",
		1: "AUDIO",
		2: "MEDIA_STATUS_ACK",
	}
	StaticMediaPrompt_MediaType_value = map[string]int32{
		"MEDIA_TYPE_UNSPECIFIED": 0,
		"AUDIO":                  1,
		"MEDIA_STATUS_ACK":       2,
	}
)

Enum value maps for StaticMediaPrompt_MediaType.

View Source
var (
	StaticMediaPrompt_OptionalMediaControls_name = map[int32]string{
		0: "OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED",
		1: "PAUSED",
		2: "STOPPED",
	}
	StaticMediaPrompt_OptionalMediaControls_value = map[string]int32{
		"OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED": 0,
		"PAUSED":                              1,
		"STOPPED":                             2,
	}
)

Enum value maps for StaticMediaPrompt_OptionalMediaControls.

View Source
var (
	StaticMediaPrompt_RepeatMode_name = map[int32]string{
		0: "REPEAT_MODE_UNSPECIFIED",
		1: "OFF",
		2: "ALL",
	}
	StaticMediaPrompt_RepeatMode_value = map[string]int32{
		"REPEAT_MODE_UNSPECIFIED": 0,
		"OFF":                     1,
		"ALL":                     2,
	}
)

Enum value maps for StaticMediaPrompt_RepeatMode.

View Source
var (
	TableColumn_HorizontalAlignment_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "LEADING",
		2: "CENTER",
		3: "TRAILING",
	}
	TableColumn_HorizontalAlignment_value = map[string]int32{
		"UNSPECIFIED": 0,
		"LEADING":     1,
		"CENTER":      2,
		"TRAILING":    3,
	}
)

Enum value maps for TableColumn_HorizontalAlignment.

View Source
var (
	SurfaceCapabilities_Capability_name = map[int32]string{
		0: "UNSPECIFIED",
		1: "SPEECH",
		2: "RICH_RESPONSE",
		3: "LONG_FORM_AUDIO",
		4: "INTERACTIVE_CANVAS",
		5: "WEB_LINK",
		6: "HOME_STORAGE",
	}
	SurfaceCapabilities_Capability_value = map[string]int32{
		"UNSPECIFIED":        0,
		"SPEECH":             1,
		"RICH_RESPONSE":      2,
		"LONG_FORM_AUDIO":    3,
		"INTERACTIVE_CANVAS": 4,
		"WEB_LINK":           5,
		"HOME_STORAGE":       6,
	}
)

Enum value maps for SurfaceCapabilities_Capability.

View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_canvas_prompt_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_browse_prompt_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_content_prompt_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_media_prompt_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_table_prompt_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_static_prompt_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_static_simple_prompt_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_suggestion_proto protoreflect.FileDescriptor
View Source
var File_google_actions_sdk_v2_interactionmodel_prompt_surface_capabilities_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type MediaImage

type MediaImage struct {

	// Only one type of MediaImage is allowed.
	//
	// Types that are assignable to Image:
	//
	//	*MediaImage_Large
	//	*MediaImage_Icon
	Image isMediaImage_Image `protobuf_oneof:"image"`
	// contains filtered or unexported fields
}

Image to be shown inside a MediaPrompt.

func (*MediaImage) Descriptor deprecated

func (*MediaImage) Descriptor() ([]byte, []int)

Deprecated: Use MediaImage.ProtoReflect.Descriptor instead.

func (*MediaImage) GetIcon

func (x *MediaImage) GetIcon() *StaticImagePrompt

func (*MediaImage) GetImage

func (m *MediaImage) GetImage() isMediaImage_Image

func (*MediaImage) GetLarge

func (x *MediaImage) GetLarge() *StaticImagePrompt

func (*MediaImage) ProtoMessage

func (*MediaImage) ProtoMessage()

func (*MediaImage) ProtoReflect

func (x *MediaImage) ProtoReflect() protoreflect.Message

func (*MediaImage) Reset

func (x *MediaImage) Reset()

func (*MediaImage) String

func (x *MediaImage) String() string

type MediaImage_Icon

type MediaImage_Icon struct {
	// A small image icon displayed on the right from the title.
	// It's resized to 36x36 dp.
	Icon *StaticImagePrompt `protobuf:"bytes,2,opt,name=icon,proto3,oneof"`
}

type MediaImage_Large

type MediaImage_Large struct {
	// A large image, such as the cover of the album, etc.
	Large *StaticImagePrompt `protobuf:"bytes,1,opt,name=large,proto3,oneof"`
}

type MediaObject

type MediaObject struct {

	// Name of this media object.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Description of this media object.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// The url pointing to the media content.
	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
	// Image to show with the media card.
	Image *MediaImage `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

Represents a single media object.

func (*MediaObject) Descriptor deprecated

func (*MediaObject) Descriptor() ([]byte, []int)

Deprecated: Use MediaObject.ProtoReflect.Descriptor instead.

func (*MediaObject) GetDescription

func (x *MediaObject) GetDescription() string

func (*MediaObject) GetImage

func (x *MediaObject) GetImage() *MediaImage

func (*MediaObject) GetName

func (x *MediaObject) GetName() string

func (*MediaObject) GetUrl

func (x *MediaObject) GetUrl() string

func (*MediaObject) ProtoMessage

func (*MediaObject) ProtoMessage()

func (*MediaObject) ProtoReflect

func (x *MediaObject) ProtoReflect() protoreflect.Message

func (*MediaObject) Reset

func (x *MediaObject) Reset()

func (*MediaObject) String

func (x *MediaObject) String() string

type OpenUrl

type OpenUrl struct {

	// The url field which could be any of:
	// - http/https urls for opening an App-linked App or a webpage
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// Indicates a hint for the url type.
	Hint UrlHint `protobuf:"varint,2,opt,name=hint,proto3,enum=google.actions.sdk.v2.interactionmodel.prompt.UrlHint" json:"hint,omitempty"`
	// contains filtered or unexported fields
}

Defines behavior when the user opens the link.

func (*OpenUrl) Descriptor deprecated

func (*OpenUrl) Descriptor() ([]byte, []int)

Deprecated: Use OpenUrl.ProtoReflect.Descriptor instead.

func (*OpenUrl) GetHint

func (x *OpenUrl) GetHint() UrlHint

func (*OpenUrl) GetUrl

func (x *OpenUrl) GetUrl() string

func (*OpenUrl) ProtoMessage

func (*OpenUrl) ProtoMessage()

func (*OpenUrl) ProtoReflect

func (x *OpenUrl) ProtoReflect() protoreflect.Message

func (*OpenUrl) Reset

func (x *OpenUrl) Reset()

func (*OpenUrl) String

func (x *OpenUrl) String() string

type StaticCanvasPrompt

type StaticCanvasPrompt struct {

	// Required. URL of the web view to load.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// Optional. JSON data to be passed through to the immersive experience web page as an
	// event. If the `override` field in the containing prompt is `false` data
	// values defined in this Canvas prompt will be added after data values
	// defined in previous Canvas prompts.
	Data []*structpb.Value `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
	// Optional. A true value means that the mic won't be opened for capturing input after
	// this immersive response is presented to the user.
	SuppressMic bool `protobuf:"varint,3,opt,name=suppress_mic,json=suppressMic,proto3" json:"suppress_mic,omitempty"`
	// Optional. If `true`, conversation related metadata is included and send back to the
	// canvas application.
	SendStateDataToCanvasApp bool `` /* 142-byte string literal not displayed */
	// Optional. If `true` the canvas application occupies the full screen and won't
	// have a header at the top. A toast message will also be displayed on the
	// loading screen that includes the Action's display name, the developer's
	// name, and instructions for exiting the Action. Default value: `false`.
	EnableFullScreen bool `protobuf:"varint,6,opt,name=enable_full_screen,json=enableFullScreen,proto3" json:"enable_full_screen,omitempty"`
	// contains filtered or unexported fields
}

Represents a Interactive Canvas response to be sent to the user. This can be used in conjunction with the `first_simple` field in the containing prompt to speak to the user in addition to displaying a interactive canvas response.

func (*StaticCanvasPrompt) Descriptor deprecated

func (*StaticCanvasPrompt) Descriptor() ([]byte, []int)

Deprecated: Use StaticCanvasPrompt.ProtoReflect.Descriptor instead.

func (*StaticCanvasPrompt) GetData

func (x *StaticCanvasPrompt) GetData() []*structpb.Value

func (*StaticCanvasPrompt) GetEnableFullScreen

func (x *StaticCanvasPrompt) GetEnableFullScreen() bool

func (*StaticCanvasPrompt) GetSendStateDataToCanvasApp

func (x *StaticCanvasPrompt) GetSendStateDataToCanvasApp() bool

func (*StaticCanvasPrompt) GetSuppressMic

func (x *StaticCanvasPrompt) GetSuppressMic() bool

func (*StaticCanvasPrompt) GetUrl

func (x *StaticCanvasPrompt) GetUrl() string

func (*StaticCanvasPrompt) ProtoMessage

func (*StaticCanvasPrompt) ProtoMessage()

func (*StaticCanvasPrompt) ProtoReflect

func (x *StaticCanvasPrompt) ProtoReflect() protoreflect.Message

func (*StaticCanvasPrompt) Reset

func (x *StaticCanvasPrompt) Reset()

func (*StaticCanvasPrompt) String

func (x *StaticCanvasPrompt) String() string

type StaticCardPrompt

type StaticCardPrompt struct {

	// Optional. Overall title of the card.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// Optional. Subtitle of the card.
	Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
	// Required. Body text of the card which is needed unless image is present. Supports a
	// limited set of markdown syntax for formatting.
	Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
	// Optional. A hero image for the card. The height is fixed to 192dp.
	Image *StaticImagePrompt `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	// Optional. How the image background will be filled.
	ImageFill StaticImagePrompt_ImageFill `` /* 168-byte string literal not displayed */
	// Optional. A clickable button to be shown in the Card.
	Button *StaticLinkPrompt `protobuf:"bytes,6,opt,name=button,proto3" json:"button,omitempty"`
	// contains filtered or unexported fields
}

A basic card for displaying some information, e.g. an image and/or text.

func (*StaticCardPrompt) Descriptor deprecated

func (*StaticCardPrompt) Descriptor() ([]byte, []int)

Deprecated: Use StaticCardPrompt.ProtoReflect.Descriptor instead.

func (*StaticCardPrompt) GetButton

func (x *StaticCardPrompt) GetButton() *StaticLinkPrompt

func (*StaticCardPrompt) GetImage

func (x *StaticCardPrompt) GetImage() *StaticImagePrompt

func (*StaticCardPrompt) GetImageFill

func (*StaticCardPrompt) GetSubtitle

func (x *StaticCardPrompt) GetSubtitle() string

func (*StaticCardPrompt) GetText

func (x *StaticCardPrompt) GetText() string

func (*StaticCardPrompt) GetTitle

func (x *StaticCardPrompt) GetTitle() string

func (*StaticCardPrompt) ProtoMessage

func (*StaticCardPrompt) ProtoMessage()

func (*StaticCardPrompt) ProtoReflect

func (x *StaticCardPrompt) ProtoReflect() protoreflect.Message

func (*StaticCardPrompt) Reset

func (x *StaticCardPrompt) Reset()

func (*StaticCardPrompt) String

func (x *StaticCardPrompt) String() string

type StaticCollectionBrowsePrompt

type StaticCollectionBrowsePrompt struct {

	// Items in the browse collection. The list size should be in the range [2,
	// 10].
	Items []*StaticCollectionBrowsePrompt_CollectionBrowseItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// Image display option for images in the collection.
	ImageFill StaticImagePrompt_ImageFill `` /* 168-byte string literal not displayed */
	// contains filtered or unexported fields
}

Presents a set of web documents as a collection of large-tile items. Items may be selected to launch their associated web document in a web viewer.

func (*StaticCollectionBrowsePrompt) Descriptor deprecated

func (*StaticCollectionBrowsePrompt) Descriptor() ([]byte, []int)

Deprecated: Use StaticCollectionBrowsePrompt.ProtoReflect.Descriptor instead.

func (*StaticCollectionBrowsePrompt) GetImageFill

func (*StaticCollectionBrowsePrompt) GetItems

func (*StaticCollectionBrowsePrompt) ProtoMessage

func (*StaticCollectionBrowsePrompt) ProtoMessage()

func (*StaticCollectionBrowsePrompt) ProtoReflect

func (*StaticCollectionBrowsePrompt) Reset

func (x *StaticCollectionBrowsePrompt) Reset()

func (*StaticCollectionBrowsePrompt) String

type StaticCollectionBrowsePrompt_CollectionBrowseItem

type StaticCollectionBrowsePrompt_CollectionBrowseItem struct {

	// Required. Title of the collection item.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// Description of the collection item.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Footer text for the collection item, displayed below the description.
	// Single line of text, truncated with an ellipsis.
	Footer string `protobuf:"bytes,3,opt,name=footer,proto3" json:"footer,omitempty"`
	// Image for the collection item.
	Image *StaticImagePrompt `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	// Required. URI to open if the item selected.
	OpenUriAction *OpenUrl `protobuf:"bytes,5,opt,name=open_uri_action,json=openUriAction,proto3" json:"open_uri_action,omitempty"`
	// contains filtered or unexported fields
}

Item in the collection.

func (*StaticCollectionBrowsePrompt_CollectionBrowseItem) Descriptor deprecated

Deprecated: Use StaticCollectionBrowsePrompt_CollectionBrowseItem.ProtoReflect.Descriptor instead.

func (*StaticCollectionBrowsePrompt_CollectionBrowseItem) GetDescription

func (*StaticCollectionBrowsePrompt_CollectionBrowseItem) GetFooter

func (*StaticCollectionBrowsePrompt_CollectionBrowseItem) GetImage

func (*StaticCollectionBrowsePrompt_CollectionBrowseItem) GetOpenUriAction

func (*StaticCollectionBrowsePrompt_CollectionBrowseItem) GetTitle

func (*StaticCollectionBrowsePrompt_CollectionBrowseItem) ProtoMessage

func (*StaticCollectionBrowsePrompt_CollectionBrowseItem) ProtoReflect

func (*StaticCollectionBrowsePrompt_CollectionBrowseItem) Reset

func (*StaticCollectionBrowsePrompt_CollectionBrowseItem) String

type StaticCollectionPrompt

type StaticCollectionPrompt struct {

	// Optional. Title of the collection.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// Optional. Subtitle of the collection.
	Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
	// Required. Collection items.
	Items []*StaticCollectionPrompt_CollectionItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
	// Optional. Type of image display option.
	ImageFill StaticImagePrompt_ImageFill `` /* 168-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*StaticCollectionPrompt) Descriptor deprecated

func (*StaticCollectionPrompt) Descriptor() ([]byte, []int)

Deprecated: Use StaticCollectionPrompt.ProtoReflect.Descriptor instead.

func (*StaticCollectionPrompt) GetImageFill

func (*StaticCollectionPrompt) GetItems

func (*StaticCollectionPrompt) GetSubtitle

func (x *StaticCollectionPrompt) GetSubtitle() string

func (*StaticCollectionPrompt) GetTitle

func (x *StaticCollectionPrompt) GetTitle() string

func (*StaticCollectionPrompt) ProtoMessage

func (*StaticCollectionPrompt) ProtoMessage()

func (*StaticCollectionPrompt) ProtoReflect

func (x *StaticCollectionPrompt) ProtoReflect() protoreflect.Message

func (*StaticCollectionPrompt) Reset

func (x *StaticCollectionPrompt) Reset()

func (*StaticCollectionPrompt) String

func (x *StaticCollectionPrompt) String() string

type StaticCollectionPrompt_CollectionItem

type StaticCollectionPrompt_CollectionItem struct {

	// Required. The NLU key that matches the entry key name in the associated
	// Type. When item tapped, this key will be posted back as a select option
	// parameter.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Required. Title of the 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 items.
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// Optional. Body text of the item.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Optional. Item image.
	Image *StaticImagePrompt `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

An item in the collection.

func (*StaticCollectionPrompt_CollectionItem) Descriptor deprecated

func (*StaticCollectionPrompt_CollectionItem) Descriptor() ([]byte, []int)

Deprecated: Use StaticCollectionPrompt_CollectionItem.ProtoReflect.Descriptor instead.

func (*StaticCollectionPrompt_CollectionItem) GetDescription

func (x *StaticCollectionPrompt_CollectionItem) GetDescription() string

func (*StaticCollectionPrompt_CollectionItem) GetImage

func (*StaticCollectionPrompt_CollectionItem) GetKey

func (*StaticCollectionPrompt_CollectionItem) GetTitle

func (*StaticCollectionPrompt_CollectionItem) ProtoMessage

func (*StaticCollectionPrompt_CollectionItem) ProtoMessage()

func (*StaticCollectionPrompt_CollectionItem) ProtoReflect

func (*StaticCollectionPrompt_CollectionItem) Reset

func (*StaticCollectionPrompt_CollectionItem) String

type StaticContentPrompt

type StaticContentPrompt struct {

	// Only one type of content can be present in a Prompt.
	//
	// Types that are assignable to Content:
	//
	//	*StaticContentPrompt_Card
	//	*StaticContentPrompt_Image
	//	*StaticContentPrompt_Table
	//	*StaticContentPrompt_Media
	//	*StaticContentPrompt_List
	//	*StaticContentPrompt_Collection
	//	*StaticContentPrompt_CollectionBrowse
	Content isStaticContentPrompt_Content `protobuf_oneof:"content"`
	// contains filtered or unexported fields
}

A placeholder for the Content part of a StaticPrompt.

func (*StaticContentPrompt) Descriptor deprecated

func (*StaticContentPrompt) Descriptor() ([]byte, []int)

Deprecated: Use StaticContentPrompt.ProtoReflect.Descriptor instead.

func (*StaticContentPrompt) GetCard

func (x *StaticContentPrompt) GetCard() *StaticCardPrompt

func (*StaticContentPrompt) GetCollection

func (x *StaticContentPrompt) GetCollection() *StaticCollectionPrompt

func (*StaticContentPrompt) GetCollectionBrowse

func (x *StaticContentPrompt) GetCollectionBrowse() *StaticCollectionBrowsePrompt

func (*StaticContentPrompt) GetContent

func (m *StaticContentPrompt) GetContent() isStaticContentPrompt_Content

func (*StaticContentPrompt) GetImage

func (x *StaticContentPrompt) GetImage() *StaticImagePrompt

func (*StaticContentPrompt) GetList

func (x *StaticContentPrompt) GetList() *StaticListPrompt

func (*StaticContentPrompt) GetMedia

func (x *StaticContentPrompt) GetMedia() *StaticMediaPrompt

func (*StaticContentPrompt) GetTable

func (x *StaticContentPrompt) GetTable() *StaticTablePrompt

func (*StaticContentPrompt) ProtoMessage

func (*StaticContentPrompt) ProtoMessage()

func (*StaticContentPrompt) ProtoReflect

func (x *StaticContentPrompt) ProtoReflect() protoreflect.Message

func (*StaticContentPrompt) Reset

func (x *StaticContentPrompt) Reset()

func (*StaticContentPrompt) String

func (x *StaticContentPrompt) String() string

type StaticContentPrompt_Card

type StaticContentPrompt_Card struct {
	// A basic card.
	Card *StaticCardPrompt `protobuf:"bytes,1,opt,name=card,proto3,oneof"`
}

type StaticContentPrompt_Collection

type StaticContentPrompt_Collection struct {
	// A card presenting a list of options to select from.
	Collection *StaticCollectionPrompt `protobuf:"bytes,6,opt,name=collection,proto3,oneof"`
}

type StaticContentPrompt_CollectionBrowse

type StaticContentPrompt_CollectionBrowse struct {
	// A card presenting a collection of web pages to open.
	CollectionBrowse *StaticCollectionBrowsePrompt `protobuf:"bytes,7,opt,name=collection_browse,json=collectionBrowse,proto3,oneof"`
}

type StaticContentPrompt_Image

type StaticContentPrompt_Image struct {
	// An image.
	Image *StaticImagePrompt `protobuf:"bytes,2,opt,name=image,proto3,oneof"`
}

type StaticContentPrompt_List

type StaticContentPrompt_List struct {
	// A card for presenting a list of options to select from.
	List *StaticListPrompt `protobuf:"bytes,5,opt,name=list,proto3,oneof"`
}

type StaticContentPrompt_Media

type StaticContentPrompt_Media struct {
	// Response indicating a set of media to be played.
	Media *StaticMediaPrompt `protobuf:"bytes,4,opt,name=media,proto3,oneof"`
}

type StaticContentPrompt_Table

type StaticContentPrompt_Table struct {
	// Table card.
	Table *StaticTablePrompt `protobuf:"bytes,3,opt,name=table,proto3,oneof"`
}

type StaticImagePrompt

type StaticImagePrompt struct {

	// Required. The source url of the image. Images can be JPG, PNG and GIF (animated and
	// non-animated). For example,`https://www.agentx.com/logo.png`.
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// Required. A text description of the image to be used for accessibility, e.g. screen
	// readers.
	Alt string `protobuf:"bytes,2,opt,name=alt,proto3" json:"alt,omitempty"`
	// Optional. The height of the image in pixels.
	Height int32 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	// Optional. The width of the image in pixels.
	Width int32 `protobuf:"varint,4,opt,name=width,proto3" json:"width,omitempty"`
	// contains filtered or unexported fields
}

An image displayed in the card.

func (*StaticImagePrompt) Descriptor deprecated

func (*StaticImagePrompt) Descriptor() ([]byte, []int)

Deprecated: Use StaticImagePrompt.ProtoReflect.Descriptor instead.

func (*StaticImagePrompt) GetAlt

func (x *StaticImagePrompt) GetAlt() string

func (*StaticImagePrompt) GetHeight

func (x *StaticImagePrompt) GetHeight() int32

func (*StaticImagePrompt) GetUrl

func (x *StaticImagePrompt) GetUrl() string

func (*StaticImagePrompt) GetWidth

func (x *StaticImagePrompt) GetWidth() int32

func (*StaticImagePrompt) ProtoMessage

func (*StaticImagePrompt) ProtoMessage()

func (*StaticImagePrompt) ProtoReflect

func (x *StaticImagePrompt) ProtoReflect() protoreflect.Message

func (*StaticImagePrompt) Reset

func (x *StaticImagePrompt) Reset()

func (*StaticImagePrompt) String

func (x *StaticImagePrompt) String() string

type StaticImagePrompt_ImageFill

type StaticImagePrompt_ImageFill int32

Possible image display options for affecting the presentation of the image. This should be used for when the image's aspect ratio does not match the image container's aspect ratio.

const (
	// ImageFill unspecified.
	StaticImagePrompt_UNSPECIFIED StaticImagePrompt_ImageFill = 0
	// Fill the gaps between the image and the image container with gray bars.
	StaticImagePrompt_GRAY StaticImagePrompt_ImageFill = 1
	// Fill the gaps between the image and the image container with white bars.
	StaticImagePrompt_WHITE StaticImagePrompt_ImageFill = 2
	// Image is scaled such that the image width and height match or exceed the
	// container dimensions. This may crop the top and bottom of the image if
	// the scaled image height is greater than the container height, or crop the
	// left and right of the image if the scaled image width is greater than the
	// container width. This is similar to "Zoom Mode" on a widescreen TV when
	// playing a 4:3 video.
	StaticImagePrompt_CROPPED StaticImagePrompt_ImageFill = 3
)

func (StaticImagePrompt_ImageFill) Descriptor

func (StaticImagePrompt_ImageFill) Enum

func (StaticImagePrompt_ImageFill) EnumDescriptor deprecated

func (StaticImagePrompt_ImageFill) EnumDescriptor() ([]byte, []int)

Deprecated: Use StaticImagePrompt_ImageFill.Descriptor instead.

func (StaticImagePrompt_ImageFill) Number

func (StaticImagePrompt_ImageFill) String

func (StaticImagePrompt_ImageFill) Type

type StaticLinkPrompt

type StaticLinkPrompt struct {

	// Name of the link
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Defines behavior when the user opens the link.
	Open *OpenUrl `protobuf:"bytes,2,opt,name=open,proto3" json:"open,omitempty"`
	// contains filtered or unexported fields
}

Defines a link which will be displayed as a suggestion chip and can be opened by the user.

func (*StaticLinkPrompt) Descriptor deprecated

func (*StaticLinkPrompt) Descriptor() ([]byte, []int)

Deprecated: Use StaticLinkPrompt.ProtoReflect.Descriptor instead.

func (*StaticLinkPrompt) GetName

func (x *StaticLinkPrompt) GetName() string

func (*StaticLinkPrompt) GetOpen

func (x *StaticLinkPrompt) GetOpen() *OpenUrl

func (*StaticLinkPrompt) ProtoMessage

func (*StaticLinkPrompt) ProtoMessage()

func (*StaticLinkPrompt) ProtoReflect

func (x *StaticLinkPrompt) ProtoReflect() protoreflect.Message

func (*StaticLinkPrompt) Reset

func (x *StaticLinkPrompt) Reset()

func (*StaticLinkPrompt) String

func (x *StaticLinkPrompt) String() string

type StaticListPrompt

type StaticListPrompt struct {

	// Optional. Title of the list.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// Optional. Subtitle of the list.
	Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
	// Required. List items.
	Items []*StaticListPrompt_ListItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

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

func (*StaticListPrompt) Descriptor deprecated

func (*StaticListPrompt) Descriptor() ([]byte, []int)

Deprecated: Use StaticListPrompt.ProtoReflect.Descriptor instead.

func (*StaticListPrompt) GetItems

func (*StaticListPrompt) GetSubtitle

func (x *StaticListPrompt) GetSubtitle() string

func (*StaticListPrompt) GetTitle

func (x *StaticListPrompt) GetTitle() string

func (*StaticListPrompt) ProtoMessage

func (*StaticListPrompt) ProtoMessage()

func (*StaticListPrompt) ProtoReflect

func (x *StaticListPrompt) ProtoReflect() protoreflect.Message

func (*StaticListPrompt) Reset

func (x *StaticListPrompt) Reset()

func (*StaticListPrompt) String

func (x *StaticListPrompt) String() string

type StaticListPrompt_ListItem

type StaticListPrompt_ListItem struct {

	// Required. The NLU key that matches the entry key name in the associated type. When
	// item tapped, this key will be posted back as a select option parameter.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Required. Title of the 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 items.
	Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
	// Optional. Body text of the item.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Optional. Item image.
	Image *StaticImagePrompt `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

An item in the list.

func (*StaticListPrompt_ListItem) Descriptor deprecated

func (*StaticListPrompt_ListItem) Descriptor() ([]byte, []int)

Deprecated: Use StaticListPrompt_ListItem.ProtoReflect.Descriptor instead.

func (*StaticListPrompt_ListItem) GetDescription

func (x *StaticListPrompt_ListItem) GetDescription() string

func (*StaticListPrompt_ListItem) GetImage

func (*StaticListPrompt_ListItem) GetKey

func (x *StaticListPrompt_ListItem) GetKey() string

func (*StaticListPrompt_ListItem) GetTitle

func (x *StaticListPrompt_ListItem) GetTitle() string

func (*StaticListPrompt_ListItem) ProtoMessage

func (*StaticListPrompt_ListItem) ProtoMessage()

func (*StaticListPrompt_ListItem) ProtoReflect

func (*StaticListPrompt_ListItem) Reset

func (x *StaticListPrompt_ListItem) Reset()

func (*StaticListPrompt_ListItem) String

func (x *StaticListPrompt_ListItem) String() string

type StaticMediaPrompt

type StaticMediaPrompt struct {

	// Media type of this response.
	MediaType StaticMediaPrompt_MediaType `` /* 168-byte string literal not displayed */
	// Start offset of the first media object.
	StartOffset *durationpb.Duration `protobuf:"bytes,5,opt,name=start_offset,json=startOffset,proto3" json:"start_offset,omitempty"`
	// Optional media control types this media response session can support.
	// If set, request will be made to 3p when a certain media event happens.
	// If not set, 3p must still handle two default control type, FINISHED and
	// FAILED.
	OptionalMediaControls []StaticMediaPrompt_OptionalMediaControls `` /* 225-byte string literal not displayed */
	// List of media objects.
	MediaObjects []*MediaObject `protobuf:"bytes,7,rep,name=media_objects,json=mediaObjects,proto3" json:"media_objects,omitempty"`
	// Repeat mode for the list of Media Objects.
	RepeatMode StaticMediaPrompt_RepeatMode `` /* 172-byte string literal not displayed */
	// contains filtered or unexported fields
}

Contains information about the media, such as name, description, url, etc. Next id: 11

func (*StaticMediaPrompt) Descriptor deprecated

func (*StaticMediaPrompt) Descriptor() ([]byte, []int)

Deprecated: Use StaticMediaPrompt.ProtoReflect.Descriptor instead.

func (*StaticMediaPrompt) GetMediaObjects

func (x *StaticMediaPrompt) GetMediaObjects() []*MediaObject

func (*StaticMediaPrompt) GetMediaType

func (*StaticMediaPrompt) GetOptionalMediaControls

func (x *StaticMediaPrompt) GetOptionalMediaControls() []StaticMediaPrompt_OptionalMediaControls

func (*StaticMediaPrompt) GetRepeatMode

func (*StaticMediaPrompt) GetStartOffset

func (x *StaticMediaPrompt) GetStartOffset() *durationpb.Duration

func (*StaticMediaPrompt) ProtoMessage

func (*StaticMediaPrompt) ProtoMessage()

func (*StaticMediaPrompt) ProtoReflect

func (x *StaticMediaPrompt) ProtoReflect() protoreflect.Message

func (*StaticMediaPrompt) Reset

func (x *StaticMediaPrompt) Reset()

func (*StaticMediaPrompt) String

func (x *StaticMediaPrompt) String() string

type StaticMediaPrompt_MediaType

type StaticMediaPrompt_MediaType int32

Media type of this response.

const (
	// UNSPECIFIED value
	StaticMediaPrompt_MEDIA_TYPE_UNSPECIFIED StaticMediaPrompt_MediaType = 0
	// Audio file.
	StaticMediaPrompt_AUDIO StaticMediaPrompt_MediaType = 1
	// Response to acknowledge a media status report.
	StaticMediaPrompt_MEDIA_STATUS_ACK StaticMediaPrompt_MediaType = 2
)

func (StaticMediaPrompt_MediaType) Descriptor

func (StaticMediaPrompt_MediaType) Enum

func (StaticMediaPrompt_MediaType) EnumDescriptor deprecated

func (StaticMediaPrompt_MediaType) EnumDescriptor() ([]byte, []int)

Deprecated: Use StaticMediaPrompt_MediaType.Descriptor instead.

func (StaticMediaPrompt_MediaType) Number

func (StaticMediaPrompt_MediaType) String

func (StaticMediaPrompt_MediaType) Type

type StaticMediaPrompt_OptionalMediaControls

type StaticMediaPrompt_OptionalMediaControls int32

Media control types the media response can supported optionally

const (
	// Unspecified value
	StaticMediaPrompt_OPTIONAL_MEDIA_CONTROLS_UNSPECIFIED StaticMediaPrompt_OptionalMediaControls = 0
	// Paused event. Triggered when user pauses the media.
	StaticMediaPrompt_PAUSED StaticMediaPrompt_OptionalMediaControls = 1
	// Stopped event. Triggered when user exit out 3p session during media play.
	StaticMediaPrompt_STOPPED StaticMediaPrompt_OptionalMediaControls = 2
)

func (StaticMediaPrompt_OptionalMediaControls) Descriptor

func (StaticMediaPrompt_OptionalMediaControls) Enum

func (StaticMediaPrompt_OptionalMediaControls) EnumDescriptor deprecated

func (StaticMediaPrompt_OptionalMediaControls) EnumDescriptor() ([]byte, []int)

Deprecated: Use StaticMediaPrompt_OptionalMediaControls.Descriptor instead.

func (StaticMediaPrompt_OptionalMediaControls) Number

func (StaticMediaPrompt_OptionalMediaControls) String

func (StaticMediaPrompt_OptionalMediaControls) Type

type StaticMediaPrompt_RepeatMode

type StaticMediaPrompt_RepeatMode int32

The types of repeat mode for a list of media objects.

const (
	// Equivalent to OFF.
	StaticMediaPrompt_REPEAT_MODE_UNSPECIFIED StaticMediaPrompt_RepeatMode = 0
	// End media session at the end of the last media object.
	StaticMediaPrompt_OFF StaticMediaPrompt_RepeatMode = 1
	// Loop to the beginning of the first media object when the end of the last
	// media object is reached.
	StaticMediaPrompt_ALL StaticMediaPrompt_RepeatMode = 2
)

func (StaticMediaPrompt_RepeatMode) Descriptor

func (StaticMediaPrompt_RepeatMode) Enum

func (StaticMediaPrompt_RepeatMode) EnumDescriptor deprecated

func (StaticMediaPrompt_RepeatMode) EnumDescriptor() ([]byte, []int)

Deprecated: Use StaticMediaPrompt_RepeatMode.Descriptor instead.

func (StaticMediaPrompt_RepeatMode) Number

func (StaticMediaPrompt_RepeatMode) String

func (StaticMediaPrompt_RepeatMode) Type

type StaticPrompt

type StaticPrompt struct {

	// The list of candidate prompts to be sent to the client. Each prompt has a
	// selector to determine when it can be used. The first selector that matches
	// a request will be sent and the rest will be ignored.
	Candidates []*StaticPrompt_StaticPromptCandidate `protobuf:"bytes,1,rep,name=candidates,proto3" json:"candidates,omitempty"`
	// contains filtered or unexported fields
}

Represents a list of prompt candidates, one of which will be selected as the prompt to be shown in the response to the user. **This message is localizable.**

func (*StaticPrompt) Descriptor deprecated

func (*StaticPrompt) Descriptor() ([]byte, []int)

Deprecated: Use StaticPrompt.ProtoReflect.Descriptor instead.

func (*StaticPrompt) GetCandidates

func (x *StaticPrompt) GetCandidates() []*StaticPrompt_StaticPromptCandidate

func (*StaticPrompt) ProtoMessage

func (*StaticPrompt) ProtoMessage()

func (*StaticPrompt) ProtoReflect

func (x *StaticPrompt) ProtoReflect() protoreflect.Message

func (*StaticPrompt) Reset

func (x *StaticPrompt) Reset()

func (*StaticPrompt) String

func (x *StaticPrompt) String() string

type StaticPrompt_Selector

type StaticPrompt_Selector struct {

	// The set of required surface capabilities.
	SurfaceCapabilities *SurfaceCapabilities `protobuf:"bytes,1,opt,name=surface_capabilities,json=surfaceCapabilities,proto3" json:"surface_capabilities,omitempty"`
	// contains filtered or unexported fields
}

Defines the criteria for whether a prompt matches a request.

func (*StaticPrompt_Selector) Descriptor deprecated

func (*StaticPrompt_Selector) Descriptor() ([]byte, []int)

Deprecated: Use StaticPrompt_Selector.ProtoReflect.Descriptor instead.

func (*StaticPrompt_Selector) GetSurfaceCapabilities

func (x *StaticPrompt_Selector) GetSurfaceCapabilities() *SurfaceCapabilities

func (*StaticPrompt_Selector) ProtoMessage

func (*StaticPrompt_Selector) ProtoMessage()

func (*StaticPrompt_Selector) ProtoReflect

func (x *StaticPrompt_Selector) ProtoReflect() protoreflect.Message

func (*StaticPrompt_Selector) Reset

func (x *StaticPrompt_Selector) Reset()

func (*StaticPrompt_Selector) String

func (x *StaticPrompt_Selector) String() string

type StaticPrompt_StaticPromptCandidate

type StaticPrompt_StaticPromptCandidate struct {

	// Optional. The criteria for whether this prompt matches a request. If the selector
	// is empty, this prompt will always be triggered.
	Selector *StaticPrompt_Selector `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
	// The prompt response associated with the selector.
	PromptResponse *StaticPrompt_StaticPromptCandidate_StaticPromptResponse `protobuf:"bytes,2,opt,name=prompt_response,json=promptResponse,proto3" json:"prompt_response,omitempty"`
	// contains filtered or unexported fields
}

Represents a static prompt candidate.

func (*StaticPrompt_StaticPromptCandidate) Descriptor deprecated

func (*StaticPrompt_StaticPromptCandidate) Descriptor() ([]byte, []int)

Deprecated: Use StaticPrompt_StaticPromptCandidate.ProtoReflect.Descriptor instead.

func (*StaticPrompt_StaticPromptCandidate) GetPromptResponse

func (*StaticPrompt_StaticPromptCandidate) GetSelector

func (*StaticPrompt_StaticPromptCandidate) ProtoMessage

func (*StaticPrompt_StaticPromptCandidate) ProtoMessage()

func (*StaticPrompt_StaticPromptCandidate) ProtoReflect

func (*StaticPrompt_StaticPromptCandidate) Reset

func (*StaticPrompt_StaticPromptCandidate) String

type StaticPrompt_StaticPromptCandidate_StaticPromptResponse

type StaticPrompt_StaticPromptCandidate_StaticPromptResponse struct {

	// Optional. The first voice and text-only response.
	FirstSimple *StaticSimplePrompt `protobuf:"bytes,2,opt,name=first_simple,json=firstSimple,proto3" json:"first_simple,omitempty"`
	// Optional. A content like a card, list or media to display to the user.
	Content *StaticContentPrompt `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
	// Optional. The last voice and text-only response.
	LastSimple *StaticSimplePrompt `protobuf:"bytes,4,opt,name=last_simple,json=lastSimple,proto3" json:"last_simple,omitempty"`
	// Optional. Suggestions to be displayed to the user which will always
	// appear at the end of the response. If the `append` field in the
	// containing prompt is `true` the titles defined in this field will be
	// added to titles defined in any previously defined suggestions prompts
	// and duplicate values will be removed.
	Suggestions []*Suggestion `protobuf:"bytes,5,rep,name=suggestions,proto3" json:"suggestions,omitempty"`
	// Optional. An additional suggestion chip that can link out to the associated app
	// or site.
	// The chip will be rendered with the title "Open <name>". Max 20 chars.
	Link *StaticLinkPrompt `protobuf:"bytes,6,opt,name=link,proto3" json:"link,omitempty"`
	// Optional. Mode for how this messages should be merged with previously defined
	// messages.
	// `true` will clear all previously defined messages (first and last
	// simple, content, suggestions link and canvas) and add messages defined
	// in this prompt. `false` will add messages defined in this prompt to
	// messages defined in previous responses. Setting this field to `false`
	// will also enable appending to some fields inside Simple prompts, the
	// Suggestions prompt and the Canvas prompt (part of the Content prompt).
	// The Content and Link messages will always be overwritten if defined in
	// the prompt. Default value is `false`.
	Override bool `protobuf:"varint,7,opt,name=override,proto3" json:"override,omitempty"`
	// A response to be used for interactive canvas experience.
	Canvas *StaticCanvasPrompt `protobuf:"bytes,8,opt,name=canvas,proto3" json:"canvas,omitempty"`
	// contains filtered or unexported fields
}

Represents structured responses to send to the user, such as text, speech, cards, canvas data, suggestion chips, etc.

func (*StaticPrompt_StaticPromptCandidate_StaticPromptResponse) Descriptor deprecated

Deprecated: Use StaticPrompt_StaticPromptCandidate_StaticPromptResponse.ProtoReflect.Descriptor instead.

func (*StaticPrompt_StaticPromptCandidate_StaticPromptResponse) GetCanvas

func (*StaticPrompt_StaticPromptCandidate_StaticPromptResponse) GetContent

func (*StaticPrompt_StaticPromptCandidate_StaticPromptResponse) GetFirstSimple

func (*StaticPrompt_StaticPromptCandidate_StaticPromptResponse) GetLastSimple

func (*StaticPrompt_StaticPromptCandidate_StaticPromptResponse) GetOverride

func (*StaticPrompt_StaticPromptCandidate_StaticPromptResponse) GetSuggestions

func (*StaticPrompt_StaticPromptCandidate_StaticPromptResponse) ProtoMessage

func (*StaticPrompt_StaticPromptCandidate_StaticPromptResponse) ProtoReflect

func (*StaticPrompt_StaticPromptCandidate_StaticPromptResponse) Reset

func (*StaticPrompt_StaticPromptCandidate_StaticPromptResponse) String

type StaticSimplePrompt

type StaticSimplePrompt struct {

	// List of possible variants.
	Variants []*StaticSimplePrompt_Variant `protobuf:"bytes,1,rep,name=variants,proto3" json:"variants,omitempty"`
	// contains filtered or unexported fields
}

Represents a simple prompt to be send to a user.

func (*StaticSimplePrompt) Descriptor deprecated

func (*StaticSimplePrompt) Descriptor() ([]byte, []int)

Deprecated: Use StaticSimplePrompt.ProtoReflect.Descriptor instead.

func (*StaticSimplePrompt) GetVariants

func (x *StaticSimplePrompt) GetVariants() []*StaticSimplePrompt_Variant

func (*StaticSimplePrompt) ProtoMessage

func (*StaticSimplePrompt) ProtoMessage()

func (*StaticSimplePrompt) ProtoReflect

func (x *StaticSimplePrompt) ProtoReflect() protoreflect.Message

func (*StaticSimplePrompt) Reset

func (x *StaticSimplePrompt) Reset()

func (*StaticSimplePrompt) String

func (x *StaticSimplePrompt) String() string

type StaticSimplePrompt_Variant

type StaticSimplePrompt_Variant struct {

	// Optional. Represents the speech to be spoken to the user.  Can be SSML or text to
	// speech.
	// By default, speech will be appended to previous Simple prompt's
	// speech. If the `override` field in the containing prompt is `true` the
	// speech defined in this field will override previous Simple prompt's
	// speech.
	Speech string `protobuf:"bytes,1,opt,name=speech,proto3" json:"speech,omitempty"`
	// Optional. Text to display in the chat bubble. If not given, a display rendering of
	// the speech field above will be used. Limited to 640 chars.
	// By default, text will be appended to previous Simple prompt's text.
	// If the `override` field in the containing prompt is `true` the text
	// defined in this field will override previous Simple prompt's text.
	Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

Represents a variant which is part of the simple prompt.

func (*StaticSimplePrompt_Variant) Descriptor deprecated

func (*StaticSimplePrompt_Variant) Descriptor() ([]byte, []int)

Deprecated: Use StaticSimplePrompt_Variant.ProtoReflect.Descriptor instead.

func (*StaticSimplePrompt_Variant) GetSpeech

func (x *StaticSimplePrompt_Variant) GetSpeech() string

func (*StaticSimplePrompt_Variant) GetText

func (x *StaticSimplePrompt_Variant) GetText() string

func (*StaticSimplePrompt_Variant) ProtoMessage

func (*StaticSimplePrompt_Variant) ProtoMessage()

func (*StaticSimplePrompt_Variant) ProtoReflect

func (*StaticSimplePrompt_Variant) Reset

func (x *StaticSimplePrompt_Variant) Reset()

func (*StaticSimplePrompt_Variant) String

func (x *StaticSimplePrompt_Variant) String() string

type StaticTablePrompt

type StaticTablePrompt struct {

	// Optional. Overall title of the table. Must be set if subtitle is set.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// Optional. Subtitle for the table.
	Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
	// Optional. Image associated with the table.
	Image *StaticImagePrompt `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
	// Optional. Headers and alignment of columns.
	Columns []*TableColumn `protobuf:"bytes,4,rep,name=columns,proto3" json:"columns,omitempty"`
	// Optional. Row data of the table. The first 3 rows are guaranteed to be shown but
	// others might be cut on certain surfaces. Please test with the simulator to
	// see which rows will be shown for a given surface. On surfaces that support
	// the `WEB_BROWSER` capability, you can point the user to
	// a web page with more data.
	Rows []*TableRow `protobuf:"bytes,5,rep,name=rows,proto3" json:"rows,omitempty"`
	// Optional. Button.
	Button *StaticLinkPrompt `protobuf:"bytes,6,opt,name=button,proto3" json:"button,omitempty"`
	// contains filtered or unexported fields
}

A table card for displaying a table of text.

func (*StaticTablePrompt) Descriptor deprecated

func (*StaticTablePrompt) Descriptor() ([]byte, []int)

Deprecated: Use StaticTablePrompt.ProtoReflect.Descriptor instead.

func (*StaticTablePrompt) GetButton

func (x *StaticTablePrompt) GetButton() *StaticLinkPrompt

func (*StaticTablePrompt) GetColumns

func (x *StaticTablePrompt) GetColumns() []*TableColumn

func (*StaticTablePrompt) GetImage

func (x *StaticTablePrompt) GetImage() *StaticImagePrompt

func (*StaticTablePrompt) GetRows

func (x *StaticTablePrompt) GetRows() []*TableRow

func (*StaticTablePrompt) GetSubtitle

func (x *StaticTablePrompt) GetSubtitle() string

func (*StaticTablePrompt) GetTitle

func (x *StaticTablePrompt) GetTitle() string

func (*StaticTablePrompt) ProtoMessage

func (*StaticTablePrompt) ProtoMessage()

func (*StaticTablePrompt) ProtoReflect

func (x *StaticTablePrompt) ProtoReflect() protoreflect.Message

func (*StaticTablePrompt) Reset

func (x *StaticTablePrompt) Reset()

func (*StaticTablePrompt) String

func (x *StaticTablePrompt) String() string

type Suggestion

type Suggestion struct {

	// Required. The text shown in the suggestion chip. 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 suggestion chips.
	// Max 25 chars
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// contains filtered or unexported fields
}

Represents a suggestion chip, a UI element shown to the user for convenience.

func (*Suggestion) Descriptor deprecated

func (*Suggestion) Descriptor() ([]byte, []int)

Deprecated: Use Suggestion.ProtoReflect.Descriptor instead.

func (*Suggestion) GetTitle

func (x *Suggestion) GetTitle() string

func (*Suggestion) ProtoMessage

func (*Suggestion) ProtoMessage()

func (*Suggestion) ProtoReflect

func (x *Suggestion) ProtoReflect() protoreflect.Message

func (*Suggestion) Reset

func (x *Suggestion) Reset()

func (*Suggestion) String

func (x *Suggestion) String() string

type SurfaceCapabilities

type SurfaceCapabilities struct {

	// Required. The capabilities of the surface making a request to the Action.
	Capabilities []SurfaceCapabilities_Capability `` /* 167-byte string literal not displayed */
	// contains filtered or unexported fields
}

Represents the surface the user is using to make a request to the Action.

func (*SurfaceCapabilities) Descriptor deprecated

func (*SurfaceCapabilities) Descriptor() ([]byte, []int)

Deprecated: Use SurfaceCapabilities.ProtoReflect.Descriptor instead.

func (*SurfaceCapabilities) GetCapabilities

func (x *SurfaceCapabilities) GetCapabilities() []SurfaceCapabilities_Capability

func (*SurfaceCapabilities) ProtoMessage

func (*SurfaceCapabilities) ProtoMessage()

func (*SurfaceCapabilities) ProtoReflect

func (x *SurfaceCapabilities) ProtoReflect() protoreflect.Message

func (*SurfaceCapabilities) Reset

func (x *SurfaceCapabilities) Reset()

func (*SurfaceCapabilities) String

func (x *SurfaceCapabilities) String() string

type SurfaceCapabilities_Capability

type SurfaceCapabilities_Capability int32

Capabilities the device surface supports at the time of the request.

const (
	// Unspecified surface capability.
	SurfaceCapabilities_UNSPECIFIED SurfaceCapabilities_Capability = 0
	// Device can speak to the user via text-to-speech or SSML.
	SurfaceCapabilities_SPEECH SurfaceCapabilities_Capability = 1
	// Device can display rich responses like cards, lists and tables.
	SurfaceCapabilities_RICH_RESPONSE SurfaceCapabilities_Capability = 2
	// Device can play long form audio media like music and podcasts.
	SurfaceCapabilities_LONG_FORM_AUDIO SurfaceCapabilities_Capability = 3
	// Device can display a interactive canvas response.
	SurfaceCapabilities_INTERACTIVE_CANVAS SurfaceCapabilities_Capability = 4
	// Device can use web links in rich responses to open a web browser.
	SurfaceCapabilities_WEB_LINK SurfaceCapabilities_Capability = 5
	// Device can support saving and fetching home storage.
	SurfaceCapabilities_HOME_STORAGE SurfaceCapabilities_Capability = 6
)

func (SurfaceCapabilities_Capability) Descriptor

func (SurfaceCapabilities_Capability) Enum

func (SurfaceCapabilities_Capability) EnumDescriptor deprecated

func (SurfaceCapabilities_Capability) EnumDescriptor() ([]byte, []int)

Deprecated: Use SurfaceCapabilities_Capability.Descriptor instead.

func (SurfaceCapabilities_Capability) Number

func (SurfaceCapabilities_Capability) String

func (SurfaceCapabilities_Capability) Type

type TableCell

type TableCell struct {

	// Text content of the cell.
	Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	// contains filtered or unexported fields
}

Describes a cell in a row.

func (*TableCell) Descriptor deprecated

func (*TableCell) Descriptor() ([]byte, []int)

Deprecated: Use TableCell.ProtoReflect.Descriptor instead.

func (*TableCell) GetText

func (x *TableCell) GetText() string

func (*TableCell) ProtoMessage

func (*TableCell) ProtoMessage()

func (*TableCell) ProtoReflect

func (x *TableCell) ProtoReflect() protoreflect.Message

func (*TableCell) Reset

func (x *TableCell) Reset()

func (*TableCell) String

func (x *TableCell) String() string

type TableColumn

type TableColumn struct {

	// Header text for the column.
	Header string `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	// Horizontal alignment of content w.r.t column. If unspecified, content
	// will be aligned to the leading edge.
	Align TableColumn_HorizontalAlignment `` /* 147-byte string literal not displayed */
	// contains filtered or unexported fields
}

Describes a column in the table.

func (*TableColumn) Descriptor deprecated

func (*TableColumn) Descriptor() ([]byte, []int)

Deprecated: Use TableColumn.ProtoReflect.Descriptor instead.

func (*TableColumn) GetAlign

func (*TableColumn) GetHeader

func (x *TableColumn) GetHeader() string

func (*TableColumn) ProtoMessage

func (*TableColumn) ProtoMessage()

func (*TableColumn) ProtoReflect

func (x *TableColumn) ProtoReflect() protoreflect.Message

func (*TableColumn) Reset

func (x *TableColumn) Reset()

func (*TableColumn) String

func (x *TableColumn) String() string

type TableColumn_HorizontalAlignment

type TableColumn_HorizontalAlignment int32

The alignment of the content within the cell.

const (
	// HorizontalAlignment unspecified.
	TableColumn_UNSPECIFIED TableColumn_HorizontalAlignment = 0
	// Leading edge of the cell. This is the default.
	TableColumn_LEADING TableColumn_HorizontalAlignment = 1
	// Content is aligned to the center of the column.
	TableColumn_CENTER TableColumn_HorizontalAlignment = 2
	// Content is aligned to the trailing edge of the column.
	TableColumn_TRAILING TableColumn_HorizontalAlignment = 3
)

func (TableColumn_HorizontalAlignment) Descriptor

func (TableColumn_HorizontalAlignment) Enum

func (TableColumn_HorizontalAlignment) EnumDescriptor deprecated

func (TableColumn_HorizontalAlignment) EnumDescriptor() ([]byte, []int)

Deprecated: Use TableColumn_HorizontalAlignment.Descriptor instead.

func (TableColumn_HorizontalAlignment) Number

func (TableColumn_HorizontalAlignment) String

func (TableColumn_HorizontalAlignment) Type

type TableRow

type TableRow struct {

	// Cells in this row. The first 3 cells are guaranteed to be shown but
	// others might be cut on certain surfaces. Please test with the simulator
	// to see which cells will be shown for a given surface.
	Cells []*TableCell `protobuf:"bytes,1,rep,name=cells,proto3" json:"cells,omitempty"`
	// Indicates whether there should be a divider after each row.
	Divider bool `protobuf:"varint,2,opt,name=divider,proto3" json:"divider,omitempty"`
	// contains filtered or unexported fields
}

Describes a row in the table.

func (*TableRow) Descriptor deprecated

func (*TableRow) Descriptor() ([]byte, []int)

Deprecated: Use TableRow.ProtoReflect.Descriptor instead.

func (*TableRow) GetCells

func (x *TableRow) GetCells() []*TableCell

func (*TableRow) GetDivider

func (x *TableRow) GetDivider() bool

func (*TableRow) ProtoMessage

func (*TableRow) ProtoMessage()

func (*TableRow) ProtoReflect

func (x *TableRow) ProtoReflect() protoreflect.Message

func (*TableRow) Reset

func (x *TableRow) Reset()

func (*TableRow) String

func (x *TableRow) String() string

type UrlHint

type UrlHint int32

Different types of url hints.

const (
	// Unspecified
	UrlHint_HINT_UNSPECIFIED UrlHint = 0
	// URL that points directly to AMP content, or to a canonical URL
	// which refers to AMP content via `<link rel="amphtml">`.
	UrlHint_AMP UrlHint = 1
)

func (UrlHint) Descriptor

func (UrlHint) Descriptor() protoreflect.EnumDescriptor

func (UrlHint) Enum

func (x UrlHint) Enum() *UrlHint

func (UrlHint) EnumDescriptor deprecated

func (UrlHint) EnumDescriptor() ([]byte, []int)

Deprecated: Use UrlHint.Descriptor instead.

func (UrlHint) Number

func (x UrlHint) Number() protoreflect.EnumNumber

func (UrlHint) String

func (x UrlHint) String() string

func (UrlHint) Type

func (UrlHint) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL