Skip to content

Commit d0e39f0

Browse files
1 parent c381513 commit d0e39f0

File tree

9 files changed

+252
-24
lines changed

9 files changed

+252
-24
lines changed

clients/google-api-services-chat/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-chat</artifactId>
25-
<version>v1-rev20241217-2.0.0</version>
25+
<version>v1-rev20241229-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-chat:v1-rev20241217-2.0.0'
38+
implementation 'com.google.apis:google-api-services-chat:v1-rev20241229-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1Action.java

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
@SuppressWarnings("javadoc")
3333
public final class GoogleAppsCardV1Action extends com.google.api.client.json.GenericJson {
3434

35+
/**
36+
* Optional. If this is true, then all widgets are considered required by this action. [Google
37+
* Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
38+
* The value may be {@code null}.
39+
*/
40+
@com.google.api.client.util.Key
41+
private java.lang.Boolean allWidgetsAreRequired;
42+
3543
/**
3644
* A custom function to invoke when the containing element is clicked or otherwise activated. For
3745
* example usage, see [Read form data](https://developers.google.com/workspace/chat/read-form-
@@ -89,6 +97,35 @@ public final class GoogleAppsCardV1Action extends com.google.api.client.json.Gen
8997
@com.google.api.client.util.Key
9098
private java.lang.Boolean persistValues;
9199

100+
/**
101+
* Optional. Fill this list with the names of widgets that this Action needs for a valid
102+
* submission. If the widgets listed here don't have a value when this Action is invoked, the form
103+
* submission is aborted. [Google Workspace Add-ons and Chat
104+
* apps](https://developers.google.com/workspace/extend):
105+
* The value may be {@code null}.
106+
*/
107+
@com.google.api.client.util.Key
108+
private java.util.List<java.lang.String> requiredWidgets;
109+
110+
/**
111+
* Optional. If this is true, then all widgets are considered required by this action. [Google
112+
* Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
113+
* @return value or {@code null} for none
114+
*/
115+
public java.lang.Boolean getAllWidgetsAreRequired() {
116+
return allWidgetsAreRequired;
117+
}
118+
119+
/**
120+
* Optional. If this is true, then all widgets are considered required by this action. [Google
121+
* Workspace Add-ons and Chat apps](https://developers.google.com/workspace/extend):
122+
* @param allWidgetsAreRequired allWidgetsAreRequired or {@code null} for none
123+
*/
124+
public GoogleAppsCardV1Action setAllWidgetsAreRequired(java.lang.Boolean allWidgetsAreRequired) {
125+
this.allWidgetsAreRequired = allWidgetsAreRequired;
126+
return this;
127+
}
128+
92129
/**
93130
* A custom function to invoke when the containing element is clicked or otherwise activated. For
94131
* example usage, see [Read form data](https://developers.google.com/workspace/chat/read-form-
@@ -218,6 +255,29 @@ public GoogleAppsCardV1Action setPersistValues(java.lang.Boolean persistValues)
218255
return this;
219256
}
220257

258+
/**
259+
* Optional. Fill this list with the names of widgets that this Action needs for a valid
260+
* submission. If the widgets listed here don't have a value when this Action is invoked, the form
261+
* submission is aborted. [Google Workspace Add-ons and Chat
262+
* apps](https://developers.google.com/workspace/extend):
263+
* @return value or {@code null} for none
264+
*/
265+
public java.util.List<java.lang.String> getRequiredWidgets() {
266+
return requiredWidgets;
267+
}
268+
269+
/**
270+
* Optional. Fill this list with the names of widgets that this Action needs for a valid
271+
* submission. If the widgets listed here don't have a value when this Action is invoked, the form
272+
* submission is aborted. [Google Workspace Add-ons and Chat
273+
* apps](https://developers.google.com/workspace/extend):
274+
* @param requiredWidgets requiredWidgets or {@code null} for none
275+
*/
276+
public GoogleAppsCardV1Action setRequiredWidgets(java.util.List<java.lang.String> requiredWidgets) {
277+
this.requiredWidgets = requiredWidgets;
278+
return this;
279+
}
280+
221281
@Override
222282
public GoogleAppsCardV1Action set(String fieldName, Object value) {
223283
return (GoogleAppsCardV1Action) super.set(fieldName, value);

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1DateTimePicker.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
package com.google.api.services.chat.v1.model;
1818

1919
/**
20-
* Lets users input a date, a time, or both a date and a time. For an example in Google Chat apps,
21-
* see [Let a user pick a date and time](https://developers.google.com/workspace/chat/design-
22-
* interactive-card-dialog#let_a_user_pick_a_date_and_time). Users can input text or use the picker
23-
* to select dates and times. If users input an invalid date or time, the picker shows an error that
24-
* prompts users to input the information correctly. [Google Workspace Add-ons and Chat
20+
* Lets users input a date, a time, or both a date and a time. Supports form submission validation.
21+
* When `Action.all_widgets_are_required` is set to `true` or this widget is specified in
22+
* `Action.required_widgets`, the submission action is blocked unless a value is selected. For an
23+
* example in Google Chat apps, see [Let a user pick a date and
24+
* time](https://developers.google.com/workspace/chat/design-interactive-card-
25+
* dialog#let_a_user_pick_a_date_and_time). Users can input text or use the picker to select dates
26+
* and times. If users input an invalid date or time, the picker shows an error that prompts users
27+
* to input the information correctly. [Google Workspace Add-ons and Chat
2528
* apps](https://developers.google.com/workspace/extend):
2629
*
2730
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1SelectionInput.java

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@
1717
package com.google.api.services.chat.v1.model;
1818

1919
/**
20-
* A widget that creates one or more UI items that users can select. For example, a dropdown menu or
21-
* checkboxes. You can use this widget to collect data that can be predicted or enumerated. For an
22-
* example in Google Chat apps, see [Add selectable UI elements](/workspace/chat/design-interactive-
23-
* card-dialog#add_selectable_ui_elements). Chat apps can process the value of items that users
24-
* select or input. For details about working with form inputs, see [Receive form
20+
* A widget that creates one or more UI items that users can select. Supports form submission
21+
* validation for `dropdown` and `multiselect` menus only. When `Action.all_widgets_are_required` is
22+
* set to `true` or this widget is specified in `Action.required_widgets`, the submission action is
23+
* blocked unless a value is selected. For example, a dropdown menu or checkboxes. You can use this
24+
* widget to collect data that can be predicted or enumerated. For an example in Google Chat apps,
25+
* see [Add selectable UI elements](/workspace/chat/design-interactive-card-
26+
* dialog#add_selectable_ui_elements). Chat apps can process the value of items that users select or
27+
* input. For details about working with form inputs, see [Receive form
2528
* data](https://developers.google.com/workspace/chat/read-form-data). To collect undefined or
2629
* abstract data from users, use the TextInput widget. [Google Workspace Add-ons and Chat
2730
* apps](https://developers.google.com/workspace/extend):

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/GoogleAppsCardV1TextInput.java

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
package com.google.api.services.chat.v1.model;
1818

1919
/**
20-
* A field in which users can enter text. Supports suggestions and on-change actions. For an example
21-
* in Google Chat apps, see [Add a field in which a user can enter
20+
* A field in which users can enter text. Supports suggestions and on-change actions. Supports form
21+
* submission validation. When `Action.all_widgets_are_required` is set to `true` or this widget is
22+
* specified in `Action.required_widgets`, the submission action is blocked unless a value is
23+
* entered. For an example in Google Chat apps, see [Add a field in which a user can enter
2224
* text](https://developers.google.com/workspace/chat/design-interactive-card-
2325
* dialog#add_a_field_in_which_a_user_can_enter_text). Chat apps receive and can process the value
2426
* of entered text during form input events. For details about working with form inputs, see
@@ -116,6 +118,14 @@ public final class GoogleAppsCardV1TextInput extends com.google.api.client.json.
116118
@com.google.api.client.util.Key
117119
private java.lang.String type;
118120

121+
/**
122+
* Specify the input format validation necessary for this text field. [Google Workspace Add-ons
123+
* and Chat apps](https://developers.google.com/workspace/extend):
124+
* The value may be {@code null}.
125+
*/
126+
@com.google.api.client.util.Key
127+
private GoogleAppsCardV1Validation validation;
128+
119129
/**
120130
* The value entered by a user, returned as part of a form input event. For details about working
121131
* with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-
@@ -307,6 +317,25 @@ public GoogleAppsCardV1TextInput setType(java.lang.String type) {
307317
return this;
308318
}
309319

320+
/**
321+
* Specify the input format validation necessary for this text field. [Google Workspace Add-ons
322+
* and Chat apps](https://developers.google.com/workspace/extend):
323+
* @return value or {@code null} for none
324+
*/
325+
public GoogleAppsCardV1Validation getValidation() {
326+
return validation;
327+
}
328+
329+
/**
330+
* Specify the input format validation necessary for this text field. [Google Workspace Add-ons
331+
* and Chat apps](https://developers.google.com/workspace/extend):
332+
* @param validation validation or {@code null} for none
333+
*/
334+
public GoogleAppsCardV1TextInput setValidation(GoogleAppsCardV1Validation validation) {
335+
this.validation = validation;
336+
return this;
337+
}
338+
310339
/**
311340
* The value entered by a user, returned as part of a form input event. For details about working
312341
* with form inputs, see [Receive form data](https://developers.google.com/workspace/chat/read-
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.chat.v1.model;
18+
19+
/**
20+
* Represents the necessary data for validating the widget it's attached to. [Google Workspace Add-
21+
* ons and Chat apps](https://developers.google.com/workspace/extend):
22+
*
23+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
24+
* transmitted over HTTP when working with the Google Chat API. For a detailed explanation see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class GoogleAppsCardV1Validation extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Specify the character limit for text input widgets. Note that this is only used for text input
35+
* and is ignored for other widgets. [Google Workspace Add-ons and Chat
36+
* apps](https://developers.google.com/workspace/extend):
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.Integer characterLimit;
41+
42+
/**
43+
* Specify the type of the input widgets. [Google Workspace Add-ons and Chat
44+
* apps](https://developers.google.com/workspace/extend):
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.String inputType;
49+
50+
/**
51+
* Specify the character limit for text input widgets. Note that this is only used for text input
52+
* and is ignored for other widgets. [Google Workspace Add-ons and Chat
53+
* apps](https://developers.google.com/workspace/extend):
54+
* @return value or {@code null} for none
55+
*/
56+
public java.lang.Integer getCharacterLimit() {
57+
return characterLimit;
58+
}
59+
60+
/**
61+
* Specify the character limit for text input widgets. Note that this is only used for text input
62+
* and is ignored for other widgets. [Google Workspace Add-ons and Chat
63+
* apps](https://developers.google.com/workspace/extend):
64+
* @param characterLimit characterLimit or {@code null} for none
65+
*/
66+
public GoogleAppsCardV1Validation setCharacterLimit(java.lang.Integer characterLimit) {
67+
this.characterLimit = characterLimit;
68+
return this;
69+
}
70+
71+
/**
72+
* Specify the type of the input widgets. [Google Workspace Add-ons and Chat
73+
* apps](https://developers.google.com/workspace/extend):
74+
* @return value or {@code null} for none
75+
*/
76+
public java.lang.String getInputType() {
77+
return inputType;
78+
}
79+
80+
/**
81+
* Specify the type of the input widgets. [Google Workspace Add-ons and Chat
82+
* apps](https://developers.google.com/workspace/extend):
83+
* @param inputType inputType or {@code null} for none
84+
*/
85+
public GoogleAppsCardV1Validation setInputType(java.lang.String inputType) {
86+
this.inputType = inputType;
87+
return this;
88+
}
89+
90+
@Override
91+
public GoogleAppsCardV1Validation set(String fieldName, Object value) {
92+
return (GoogleAppsCardV1Validation) super.set(fieldName, value);
93+
}
94+
95+
@Override
96+
public GoogleAppsCardV1Validation clone() {
97+
return (GoogleAppsCardV1Validation) super.clone();
98+
}
99+
100+
}

clients/google-api-services-chat/v1/2.0.0/com/google/api/services/chat/v1/model/Space.java

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,13 @@ public final class Space extends com.google.api.client.json.GenericJson {
131131
/**
132132
* Optional. Space permission settings for existing spaces. Input for updating exact space
133133
* permission settings, where existing permission settings are replaced. Output lists current
134-
* permission settings.
134+
* permission settings. Reading and updating permission settings supports: - In [Developer
135+
* Preview](https://developers.google.com/workspace/preview), [App
136+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
137+
* with [administrator approval](https://support.google.com/a?p=chat-app-auth) with the
138+
* `chat.app.spaces` scope. Only populated and settable when the Chat app created the space. -
139+
* [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-
140+
* user)
135141
* The value may be {@code null}.
136142
*/
137143
@com.google.api.client.util.Key
@@ -140,7 +146,12 @@ public final class Space extends com.google.api.client.json.GenericJson {
140146
/**
141147
* Optional. Input only. Predefined space permission settings, input only when creating a space.
142148
* If the field is not set, a collaboration space is created. After you create the space, settings
143-
* are populated in the `PermissionSettings` field.
149+
* are populated in the `PermissionSettings` field. Setting predefined permission settings
150+
* supports: - In [Developer Preview](https://developers.google.com/workspace/preview), [App
151+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
152+
* with [administrator approval](https://support.google.com/a?p=chat-app-auth) with the
153+
* `chat.app.spaces` or `chat.app.spaces.create` scopes. - [User
154+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
144155
* The value may be {@code null}.
145156
*/
146157
@com.google.api.client.util.Key
@@ -433,7 +444,13 @@ public Space setName(java.lang.String name) {
433444
/**
434445
* Optional. Space permission settings for existing spaces. Input for updating exact space
435446
* permission settings, where existing permission settings are replaced. Output lists current
436-
* permission settings.
447+
* permission settings. Reading and updating permission settings supports: - In [Developer
448+
* Preview](https://developers.google.com/workspace/preview), [App
449+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
450+
* with [administrator approval](https://support.google.com/a?p=chat-app-auth) with the
451+
* `chat.app.spaces` scope. Only populated and settable when the Chat app created the space. -
452+
* [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-
453+
* user)
437454
* @return value or {@code null} for none
438455
*/
439456
public PermissionSettings getPermissionSettings() {
@@ -443,7 +460,13 @@ public PermissionSettings getPermissionSettings() {
443460
/**
444461
* Optional. Space permission settings for existing spaces. Input for updating exact space
445462
* permission settings, where existing permission settings are replaced. Output lists current
446-
* permission settings.
463+
* permission settings. Reading and updating permission settings supports: - In [Developer
464+
* Preview](https://developers.google.com/workspace/preview), [App
465+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
466+
* with [administrator approval](https://support.google.com/a?p=chat-app-auth) with the
467+
* `chat.app.spaces` scope. Only populated and settable when the Chat app created the space. -
468+
* [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-
469+
* user)
447470
* @param permissionSettings permissionSettings or {@code null} for none
448471
*/
449472
public Space setPermissionSettings(PermissionSettings permissionSettings) {
@@ -454,7 +477,12 @@ public Space setPermissionSettings(PermissionSettings permissionSettings) {
454477
/**
455478
* Optional. Input only. Predefined space permission settings, input only when creating a space.
456479
* If the field is not set, a collaboration space is created. After you create the space, settings
457-
* are populated in the `PermissionSettings` field.
480+
* are populated in the `PermissionSettings` field. Setting predefined permission settings
481+
* supports: - In [Developer Preview](https://developers.google.com/workspace/preview), [App
482+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
483+
* with [administrator approval](https://support.google.com/a?p=chat-app-auth) with the
484+
* `chat.app.spaces` or `chat.app.spaces.create` scopes. - [User
485+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
458486
* @return value or {@code null} for none
459487
*/
460488
public java.lang.String getPredefinedPermissionSettings() {
@@ -464,7 +492,12 @@ public java.lang.String getPredefinedPermissionSettings() {
464492
/**
465493
* Optional. Input only. Predefined space permission settings, input only when creating a space.
466494
* If the field is not set, a collaboration space is created. After you create the space, settings
467-
* are populated in the `PermissionSettings` field.
495+
* are populated in the `PermissionSettings` field. Setting predefined permission settings
496+
* supports: - In [Developer Preview](https://developers.google.com/workspace/preview), [App
497+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
498+
* with [administrator approval](https://support.google.com/a?p=chat-app-auth) with the
499+
* `chat.app.spaces` or `chat.app.spaces.create` scopes. - [User
500+
* authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
468501
* @param predefinedPermissionSettings predefinedPermissionSettings or {@code null} for none
469502
*/
470503
public Space setPredefinedPermissionSettings(java.lang.String predefinedPermissionSettings) {

clients/google-api-services-chat/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-chat</artifactId>
11-
<version>v1-rev20241217-2.0.0</version>
12-
<name>Google Chat API v1-rev20241217-2.0.0</name>
11+
<version>v1-rev20241229-2.0.0</version>
12+
<name>Google Chat API v1-rev20241229-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

0 commit comments

Comments
 (0)