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 \ V1Methods
__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.
| 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.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getInputType
Specify the type of the input widgets.
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type InputType. |
setInputType
Specify the type of the input widgets.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type InputType. |
| Returns | |
|---|---|
| Type | Description |
$this |
|