Google Apps Chat V1 Client - Class Validation (0.15.0)

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

Represents the necessary data for validating the widget it's attached to.

Google Workspace add-ons and Chat apps:

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

Namespace

Google \ Apps \ Card \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ character_limit int

Specify the character limit for text input widgets. Note that this is only used for text input and is ignored for other widgets. Google Workspace add-ons and Chat apps:

↳ input_type int

Specify the type of the input widgets. Google Workspace add-ons and Chat apps:

getCharacterLimit

Specify the character limit for text input widgets. Note that this is only used for text input and is ignored for other widgets.

Google Workspace add-ons and Chat apps:

Returns
Type Description
int

setCharacterLimit

Specify the character limit for text input widgets. Note that this is only used for text input and is ignored for other widgets.

Google Workspace add-ons and Chat apps:

Parameter
Name Description
var int
Returns
Type Description
$this

getInputType

Specify the type of the input widgets.

Google Workspace add-ons and Chat apps:

Returns
Type Description
int Enum of type InputType.

setInputType

Specify the type of the input widgets.

Google Workspace add-ons and Chat apps:

Parameter
Name Description
var int

Enum of type InputType.

Returns
Type Description
$this