Google Apps Chat V1 Client - Class Suggestions (0.1.3)

Reference documentation and code samples for the Google Apps Chat V1 Client class Suggestions.

Suggested values that users can enter. These values appear when users click inside the text input field. As users type, the suggested values dynamically filter to match what the users have typed.

For example, a text input field for programming language might suggest Java, JavaScript, Python, and C++. When users start typing Jav, the list of suggestions filters to show Java and JavaScript. Suggested values help guide users to enter values that your app can make sense of. When referring to JavaScript, some users might enter javascript and others java script. Suggesting JavaScript can standardize how users interact with your app. When specified, TextInput.type is always SINGLE_LINE, even if it's set to MULTIPLE_LINE. Google Workspace Add-ons and Chat apps:

Generated from protobuf message google.apps.card.v1.Suggestions

Namespace

Google \ Apps \ Card \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ items array<Google\Apps\Card\V1\Suggestions\SuggestionItem>

A list of suggestions used for autocomplete recommendations in text input fields.

getItems

A list of suggestions used for autocomplete recommendations in text input fields.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setItems

A list of suggestions used for autocomplete recommendations in text input fields.

Parameter
Name Description
var array<Google\Apps\Card\V1\Suggestions\SuggestionItem>
Returns
Type Description
$this