@@ -44,6 +44,13 @@ public final class DeprecatedEvent extends com.google.api.client.json.GenericJso
4444 @ com .google .api .client .util .Key
4545 private FormAction action ;
4646
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+
4754 /**
4855 * Represents information about the user's client, such as locale, host app, and platform. For
4956 * 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
5461 private CommonEventObject common ;
5562
5663 /**
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).
6469 * The value may be {@code null}.
6570 */
6671 @ com .google .api .client .util .Key
@@ -104,6 +109,15 @@ public final class DeprecatedEvent extends com.google.api.client.json.GenericJso
104109 @ com .google .api .client .util .Key
105110 private Space space ;
106111
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+
107121 /**
108122 * The Chat app-defined key for the thread related to the interaction event. See [`spaces.messages
109123 * .thread.threadKey`](/chat/api/reference/rest/v1/spaces.messages#Thread.FIELDS.thread_key) for
@@ -162,6 +176,23 @@ public DeprecatedEvent setAction(FormAction action) {
162176 return this ;
163177 }
164178
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+
165196 /**
166197 * Represents information about the user's client, such as locale, host app, and platform. For
167198 * Chat apps, `CommonEventObject` includes information submitted by users interacting with
@@ -184,27 +215,23 @@ public DeprecatedEvent setCommon(CommonEventObject common) {
184215 }
185216
186217 /**
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).
194223 * @return value or {@code null} for none
195224 */
196225 public java .lang .String getConfigCompleteRedirectUrl () {
197226 return configCompleteRedirectUrl ;
198227 }
199228
200229 /**
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).
208235 * @param configCompleteRedirectUrl configCompleteRedirectUrl or {@code null} for none
209236 */
210237 public DeprecatedEvent setConfigCompleteRedirectUrl (java .lang .String configCompleteRedirectUrl ) {
@@ -303,6 +330,27 @@ public DeprecatedEvent setSpace(Space space) {
303330 return this ;
304331 }
305332
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+
306354 /**
307355 * The Chat app-defined key for the thread related to the interaction event. See [`spaces.messages
308356 * .thread.threadKey`](/chat/api/reference/rest/v1/spaces.messages#Thread.FIELDS.thread_key) for
0 commit comments