17
17
package com .google .api .services .chat .v1 .model ;
18
18
19
19
/**
20
- * A Google Chat app interaction event. To learn about interaction events, see [Receive and respond
21
- * to interactions with your Google Chat
22
- * app](https://developers.google.com/workspace/chat/api/guides/message-formats). To learn about
23
- * event types and for example event payloads, see [Types of Google Chat app interaction
24
- * events](https://developers.google.com/workspace/chat/events). In addition to receiving events
25
- * from user interactions, Chat apps can receive events about changes to spaces, such as when a new
26
- * member is added to a space. To learn about space events, see [Work with events from Google
20
+ * A Google Chat app interaction event that represents and contains data about a user's interaction
21
+ * with a Chat app. To configure your Chat app to receive interaction events, see [Receive and
22
+ * respond to user interactions](https://developers.google.com/workspace/chat/receive-respond-
23
+ * interactions). In addition to receiving events from user interactions, Chat apps can receive
24
+ * events about changes to spaces, such as when a new member is added to a space. To learn about
25
+ * space events, see [Work with events from Google
27
26
* Chat](https://developers.google.com/workspace/chat/events-overview).
28
27
*
29
28
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
@@ -46,10 +45,9 @@ public final class DeprecatedEvent extends com.google.api.client.json.GenericJso
46
45
private FormAction action ;
47
46
48
47
/**
49
- * Represents informatmessage_visibilityion about the user's client, such as locale, host app, and
50
- * platform. For Chat apps, `CommonEventObject` includes information submitted by users
51
- * interacting with [dialogs](https://developers.google.com/workspace/chat/dialogs), like data
52
- * entered on a card.
48
+ * Represents information about the user's client, such as locale, host app, and platform. For
49
+ * Chat apps, `CommonEventObject` includes information submitted by users interacting with
50
+ * [dialogs](https://developers.google.com/workspace/chat/dialogs), like data entered on a card.
53
51
* The value may be {@code null}.
54
52
*/
55
53
@ com .google .api .client .util .Key
@@ -96,7 +94,7 @@ public final class DeprecatedEvent extends com.google.api.client.json.GenericJso
96
94
private Message message ;
97
95
98
96
/**
99
- * The space in which the interaction event occurred .
97
+ * The space in which the user interacted with the Chat app .
100
98
* The value may be {@code null}.
101
99
*/
102
100
@ com .google .api .client .util .Key
@@ -125,15 +123,15 @@ public final class DeprecatedEvent extends com.google.api.client.json.GenericJso
125
123
private java .lang .String token ;
126
124
127
125
/**
128
- * The type of interaction event. For details, see [Types of Google Chat app interaction
129
- * events](https://developers.google.com/workspace/chat/events) .
126
+ * The [ type](/workspace/chat/api/reference/rest/v1/EventType) of user interaction with the Chat
127
+ * app, such as `MESSAGE` or `ADDED_TO_SPACE` .
130
128
* The value may be {@code null}.
131
129
*/
132
130
@ com .google .api .client .util .Key
133
131
private java .lang .String type ;
134
132
135
133
/**
136
- * The user that triggered the interaction event .
134
+ * The user that interacted with the Chat app .
137
135
* The value may be {@code null}.
138
136
*/
139
137
@ com .google .api .client .util .Key
@@ -161,21 +159,19 @@ public DeprecatedEvent setAction(FormAction action) {
161
159
}
162
160
163
161
/**
164
- * Represents informatmessage_visibilityion about the user's client, such as locale, host app, and
165
- * platform. For Chat apps, `CommonEventObject` includes information submitted by users
166
- * interacting with [dialogs](https://developers.google.com/workspace/chat/dialogs), like data
167
- * entered on a card.
162
+ * Represents information about the user's client, such as locale, host app, and platform. For
163
+ * Chat apps, `CommonEventObject` includes information submitted by users interacting with
164
+ * [dialogs](https://developers.google.com/workspace/chat/dialogs), like data entered on a card.
168
165
* @return value or {@code null} for none
169
166
*/
170
167
public CommonEventObject getCommon () {
171
168
return common ;
172
169
}
173
170
174
171
/**
175
- * Represents informatmessage_visibilityion about the user's client, such as locale, host app, and
176
- * platform. For Chat apps, `CommonEventObject` includes information submitted by users
177
- * interacting with [dialogs](https://developers.google.com/workspace/chat/dialogs), like data
178
- * entered on a card.
172
+ * Represents information about the user's client, such as locale, host app, and platform. For
173
+ * Chat apps, `CommonEventObject` includes information submitted by users interacting with
174
+ * [dialogs](https://developers.google.com/workspace/chat/dialogs), like data entered on a card.
179
175
* @param common common or {@code null} for none
180
176
*/
181
177
public DeprecatedEvent setCommon (CommonEventObject common ) {
@@ -279,15 +275,15 @@ public DeprecatedEvent setMessage(Message message) {
279
275
}
280
276
281
277
/**
282
- * The space in which the interaction event occurred .
278
+ * The space in which the user interacted with the Chat app .
283
279
* @return value or {@code null} for none
284
280
*/
285
281
public Space getSpace () {
286
282
return space ;
287
283
}
288
284
289
285
/**
290
- * The space in which the interaction event occurred .
286
+ * The space in which the user interacted with the Chat app .
291
287
* @param space space or {@code null} for none
292
288
*/
293
289
public DeprecatedEvent setSpace (Space space ) {
@@ -346,17 +342,17 @@ public DeprecatedEvent setToken(java.lang.String token) {
346
342
}
347
343
348
344
/**
349
- * The type of interaction event. For details, see [Types of Google Chat app interaction
350
- * events](https://developers.google.com/workspace/chat/events) .
345
+ * The [ type](/workspace/chat/api/reference/rest/v1/EventType) of user interaction with the Chat
346
+ * app, such as `MESSAGE` or `ADDED_TO_SPACE` .
351
347
* @return value or {@code null} for none
352
348
*/
353
349
public java .lang .String getType () {
354
350
return type ;
355
351
}
356
352
357
353
/**
358
- * The type of interaction event. For details, see [Types of Google Chat app interaction
359
- * events](https://developers.google.com/workspace/chat/events) .
354
+ * The [ type](/workspace/chat/api/reference/rest/v1/EventType) of user interaction with the Chat
355
+ * app, such as `MESSAGE` or `ADDED_TO_SPACE` .
360
356
* @param type type or {@code null} for none
361
357
*/
362
358
public DeprecatedEvent setType (java .lang .String type ) {
@@ -365,15 +361,15 @@ public DeprecatedEvent setType(java.lang.String type) {
365
361
}
366
362
367
363
/**
368
- * The user that triggered the interaction event .
364
+ * The user that interacted with the Chat app .
369
365
* @return value or {@code null} for none
370
366
*/
371
367
public User getUser () {
372
368
return user ;
373
369
}
374
370
375
371
/**
376
- * The user that triggered the interaction event .
372
+ * The user that interacted with the Chat app .
377
373
* @param user user or {@code null} for none
378
374
*/
379
375
public DeprecatedEvent setUser (User user ) {
0 commit comments