@@ -44,6 +44,13 @@ public final class DeprecatedEvent extends com.google.api.client.json.GenericJso
44
44
@ com .google .api .client .util .Key
45
45
private FormAction action ;
46
46
47
+ /**
48
+ * Populated for app commands, including slash commands and quick commands.
49
+ * The value may be {@code null}.
50
+ */
51
+ @ com .google .api .client .util .Key
52
+ private AppCommandMetadata appCommandMetadata ;
53
+
47
54
/**
48
55
* Represents information about the user's client, such as locale, host app, and platform. For
49
56
* Chat apps, `CommonEventObject` includes information submitted by users interacting with
@@ -54,13 +61,11 @@ public final class DeprecatedEvent extends com.google.api.client.json.GenericJso
54
61
private CommonEventObject common ;
55
62
56
63
/**
57
- * This URL is populated for `MESSAGE` and `ADDED_TO_SPACE` interaction events. After completing
58
- * an authorization or configuration flow outside of Google Chat, users must be redirected to this
59
- * URL to signal to Google Chat that the authorization or configuration flow was successful. For
60
- * more information, see [Connect a Chat app with other services and
61
- * tools](https://developers.google.com/workspace/chat/connect-web-services-tools). In [Developer
62
- * Preview](https://developers.google.com/workspace/preview), this URL is also populated for
63
- * `APP_COMMAND` interaction events.
64
+ * This URL is populated for `MESSAGE`, `ADDED_TO_SPACE`, and `APP_COMMAND` interaction events.
65
+ * After completing an authorization or configuration flow outside of Google Chat, users must be
66
+ * redirected to this URL to signal to Google Chat that the authorization or configuration flow
67
+ * was successful. For more information, see [Connect a Chat app with other services and
68
+ * tools](https://developers.google.com/workspace/chat/connect-web-services-tools).
64
69
* The value may be {@code null}.
65
70
*/
66
71
@ com .google .api .client .util .Key
@@ -104,6 +109,15 @@ public final class DeprecatedEvent extends com.google.api.client.json.GenericJso
104
109
@ com .google .api .client .util .Key
105
110
private Space space ;
106
111
112
+ /**
113
+ * The thread in which the user interacted with the Chat app. This could be in a new thread
114
+ * created by a newly sent message. This field is populated if the interaction event is associated
115
+ * with a specific message or thread.
116
+ * The value may be {@code null}.
117
+ */
118
+ @ com .google .api .client .util .Key
119
+ private Thread thread ;
120
+
107
121
/**
108
122
* The Chat app-defined key for the thread related to the interaction event. See [`spaces.messages
109
123
* .thread.threadKey`](/chat/api/reference/rest/v1/spaces.messages#Thread.FIELDS.thread_key) for
@@ -162,6 +176,23 @@ public DeprecatedEvent setAction(FormAction action) {
162
176
return this ;
163
177
}
164
178
179
+ /**
180
+ * Populated for app commands, including slash commands and quick commands.
181
+ * @return value or {@code null} for none
182
+ */
183
+ public AppCommandMetadata getAppCommandMetadata () {
184
+ return appCommandMetadata ;
185
+ }
186
+
187
+ /**
188
+ * Populated for app commands, including slash commands and quick commands.
189
+ * @param appCommandMetadata appCommandMetadata or {@code null} for none
190
+ */
191
+ public DeprecatedEvent setAppCommandMetadata (AppCommandMetadata appCommandMetadata ) {
192
+ this .appCommandMetadata = appCommandMetadata ;
193
+ return this ;
194
+ }
195
+
165
196
/**
166
197
* Represents information about the user's client, such as locale, host app, and platform. For
167
198
* Chat apps, `CommonEventObject` includes information submitted by users interacting with
@@ -184,27 +215,23 @@ public DeprecatedEvent setCommon(CommonEventObject common) {
184
215
}
185
216
186
217
/**
187
- * This URL is populated for `MESSAGE` and `ADDED_TO_SPACE` interaction events. After completing
188
- * an authorization or configuration flow outside of Google Chat, users must be redirected to this
189
- * URL to signal to Google Chat that the authorization or configuration flow was successful. For
190
- * more information, see [Connect a Chat app with other services and
191
- * tools](https://developers.google.com/workspace/chat/connect-web-services-tools). In [Developer
192
- * Preview](https://developers.google.com/workspace/preview), this URL is also populated for
193
- * `APP_COMMAND` interaction events.
218
+ * This URL is populated for `MESSAGE`, `ADDED_TO_SPACE`, and `APP_COMMAND` interaction events.
219
+ * After completing an authorization or configuration flow outside of Google Chat, users must be
220
+ * redirected to this URL to signal to Google Chat that the authorization or configuration flow
221
+ * was successful. For more information, see [Connect a Chat app with other services and
222
+ * tools](https://developers.google.com/workspace/chat/connect-web-services-tools).
194
223
* @return value or {@code null} for none
195
224
*/
196
225
public java .lang .String getConfigCompleteRedirectUrl () {
197
226
return configCompleteRedirectUrl ;
198
227
}
199
228
200
229
/**
201
- * This URL is populated for `MESSAGE` and `ADDED_TO_SPACE` interaction events. After completing
202
- * an authorization or configuration flow outside of Google Chat, users must be redirected to this
203
- * URL to signal to Google Chat that the authorization or configuration flow was successful. For
204
- * more information, see [Connect a Chat app with other services and
205
- * tools](https://developers.google.com/workspace/chat/connect-web-services-tools). In [Developer
206
- * Preview](https://developers.google.com/workspace/preview), this URL is also populated for
207
- * `APP_COMMAND` interaction events.
230
+ * This URL is populated for `MESSAGE`, `ADDED_TO_SPACE`, and `APP_COMMAND` interaction events.
231
+ * After completing an authorization or configuration flow outside of Google Chat, users must be
232
+ * redirected to this URL to signal to Google Chat that the authorization or configuration flow
233
+ * was successful. For more information, see [Connect a Chat app with other services and
234
+ * tools](https://developers.google.com/workspace/chat/connect-web-services-tools).
208
235
* @param configCompleteRedirectUrl configCompleteRedirectUrl or {@code null} for none
209
236
*/
210
237
public DeprecatedEvent setConfigCompleteRedirectUrl (java .lang .String configCompleteRedirectUrl ) {
@@ -303,6 +330,27 @@ public DeprecatedEvent setSpace(Space space) {
303
330
return this ;
304
331
}
305
332
333
+ /**
334
+ * The thread in which the user interacted with the Chat app. This could be in a new thread
335
+ * created by a newly sent message. This field is populated if the interaction event is associated
336
+ * with a specific message or thread.
337
+ * @return value or {@code null} for none
338
+ */
339
+ public Thread getThread () {
340
+ return thread ;
341
+ }
342
+
343
+ /**
344
+ * The thread in which the user interacted with the Chat app. This could be in a new thread
345
+ * created by a newly sent message. This field is populated if the interaction event is associated
346
+ * with a specific message or thread.
347
+ * @param thread thread or {@code null} for none
348
+ */
349
+ public DeprecatedEvent setThread (Thread thread ) {
350
+ this .thread = thread ;
351
+ return this ;
352
+ }
353
+
306
354
/**
307
355
* The Chat app-defined key for the thread related to the interaction event. See [`spaces.messages
308
356
* .thread.threadKey`](/chat/api/reference/rest/v1/spaces.messages#Thread.FIELDS.thread_key) for
0 commit comments