Skip to content

Commit 48e2c28

Browse files
1 parent 972760f commit 48e2c28

2 files changed

Lines changed: 37 additions & 17 deletions

File tree

src/HangoutsChat/GoogleAppsCardV1DataSourceConfig.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,35 @@
1919

2020
class GoogleAppsCardV1DataSourceConfig extends \Google\Model
2121
{
22+
/**
23+
* The minimum number of characters the user must enter before this data
24+
* provider is triggered (i.e., before it starts returning results).
25+
*
26+
* @var int
27+
*/
28+
public $minCharactersTrigger;
2229
protected $platformDataSourceType = GoogleAppsCardV1PlatformDataSource::class;
2330
protected $platformDataSourceDataType = '';
2431
protected $remoteDataSourceType = GoogleAppsCardV1Action::class;
2532
protected $remoteDataSourceDataType = '';
2633

34+
/**
35+
* The minimum number of characters the user must enter before this data
36+
* provider is triggered (i.e., before it starts returning results).
37+
*
38+
* @param int $minCharactersTrigger
39+
*/
40+
public function setMinCharactersTrigger($minCharactersTrigger)
41+
{
42+
$this->minCharactersTrigger = $minCharactersTrigger;
43+
}
44+
/**
45+
* @return int
46+
*/
47+
public function getMinCharactersTrigger()
48+
{
49+
return $this->minCharactersTrigger;
50+
}
2751
/**
2852
* The data is from a Google Workspace application.
2953
*

src/HangoutsChat/GoogleAppsCardV1SelectionInput.php

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,15 @@ class GoogleAppsCardV1SelectionInput extends \Google\Collection
3333
public const TYPE_SWITCH = 'SWITCH';
3434
/**
3535
* A dropdown menu. Users can select one item from the menu. For Google Chat
36-
* apps, as part of the [Developer Preview
37-
* Program](https://developers.google.com/workspace/preview), you can populate
38-
* items using a dynamic data source and autosuggest items as users type in
39-
* the menu. For example, users can start typing the name of a Google Chat
40-
* space and the widget autosuggests the space. To dynamically populate items
41-
* for a dropdown menu, use one of the following types of data sources: *
42-
* Google Workspace data: Items are populated using data from Google
43-
* Workspace, such as Google Workspace users or Google Chat spaces. * External
44-
* data: Items are populated from an external data source outside of Google
45-
* Workspace. For examples of how to implement dropdown menus for Chat apps,
46-
* see [Add a dropdown
36+
* apps, you can populate items using a dynamic data source and autosuggest
37+
* items as users type in the menu. For example, users can start typing the
38+
* name of a Google Chat space and the widget autosuggests the space. To
39+
* dynamically populate items for a dropdown menu, use one of the following
40+
* types of data sources: * Google Workspace data: Items are populated using
41+
* data from Google Workspace, such as Google Workspace users or Google Chat
42+
* spaces. * External data: Items are populated from an external data source
43+
* outside of Google Workspace. For examples of how to implement dropdown
44+
* menus for Chat apps, see [Add a dropdown
4745
* menu](https://developers.google.com/workspace/chat/design-interactive-card-
4846
* dialog#dropdown-menu) and [Dynamically populate drop-down
4947
* menus](https://developers.google.com/workspace/chat/design-interactive-
@@ -140,12 +138,10 @@ class GoogleAppsCardV1SelectionInput extends \Google\Collection
140138
* `multi_select_max_selected_items` field, `multi_select_min_query_length`
141139
* field, `external_data_source` field and `platform_data_source` field are
142140
* ignored. Available for Google Workspace add-ons that extend Google
143-
* Workspace Studio. Available for the `Dropdown widget` in Google Chat apps
144-
* as part of the [Developer Preview
145-
* Program](https://developers.google.com/workspace/preview). For the
146-
* `Dropdown` widget in Google Chat apps, only one `DataSourceConfig` is
147-
* supported. If multiple `DataSourceConfig`s are set, only the first one is
148-
* used.
141+
* Workspace Studio. Available for the `Dropdown widget` in Google Chat apps.
142+
* For the `Dropdown` widget in Google Chat apps, only one `DataSourceConfig`
143+
* is supported. If multiple `DataSourceConfig`s are set, only the first one
144+
* is used.
149145
*
150146
* @param GoogleAppsCardV1DataSourceConfig[] $dataSourceConfigs
151147
*/

0 commit comments

Comments
 (0)