Google Apps Chat V1 Client - Class SuggestionItem (0.7.2)

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

One suggested value that users can enter in a text input field.

Google Workspace Add-ons and Chat apps :

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

Namespace

Google \ Apps \ Card \ V1 \ Suggestions

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ text
string

The value of a suggested input to a text input field. This is equivalent to what users enter themselves.

getText

The value of a suggested input to a text input field. This is equivalent to what users enter themselves.

Returns
Type
Description
string

hasText

setText

The value of a suggested input to a text input field. This is equivalent to what users enter themselves.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getContent

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: