@google-apps/chat 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +1 -0
  3. package/build/protos/google/apps/card/v1/card.proto +242 -160
  4. package/build/protos/google/chat/v1/action_status.proto +4 -4
  5. package/build/protos/google/chat/v1/annotation.proto +46 -4
  6. package/build/protos/google/chat/v1/attachment.proto +12 -3
  7. package/build/protos/google/chat/v1/chat_service.proto +95 -83
  8. package/build/protos/google/chat/v1/contextual_addon.proto +4 -4
  9. package/build/protos/google/chat/v1/deletion_metadata.proto +3 -3
  10. package/build/protos/google/chat/v1/group.proto +3 -3
  11. package/build/protos/google/chat/v1/history_state.proto +3 -3
  12. package/build/protos/google/chat/v1/matched_url.proto +3 -3
  13. package/build/protos/google/chat/v1/membership.proto +36 -14
  14. package/build/protos/google/chat/v1/message.proto +88 -57
  15. package/build/protos/google/chat/v1/reaction.proto +7 -5
  16. package/build/protos/google/chat/v1/slash_command.proto +6 -5
  17. package/build/protos/google/chat/v1/space.proto +31 -20
  18. package/build/protos/google/chat/v1/space_setup.proto +4 -3
  19. package/build/protos/google/chat/v1/user.proto +6 -5
  20. package/build/protos/google/chat/v1/widgets.proto +7 -7
  21. package/build/protos/protos.d.ts +724 -142
  22. package/build/protos/protos.js +2007 -576
  23. package/build/protos/protos.json +179 -47
  24. package/build/src/v1/chat_service_client.d.ts +174 -135
  25. package/build/src/v1/chat_service_client.js +58 -31
  26. package/build/src/v1/chat_service_client.js.map +1 -1
  27. package/build/src/v1/chat_service_client_config.json +5 -0
  28. package/package.json +1 -1
@@ -16,13 +16,13 @@ syntax = "proto3";
16
16
 
17
17
  package google.chat.v1;
18
18
 
19
- option csharp_namespace = "Google.Chat.V1";
19
+ option csharp_namespace = "Google.Apps.Chat.V1";
20
20
  option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
21
21
  option java_multiple_files = true;
22
22
  option java_outer_classname = "DeletionMetadataProto";
23
23
  option java_package = "com.google.chat.v1";
24
- option php_namespace = "Google\\Chat\\V1";
25
- option ruby_package = "Google::Chat::V1";
24
+ option php_namespace = "Google\\Apps\\Chat\\V1";
25
+ option ruby_package = "Google::Apps::Chat::V1";
26
26
 
27
27
  // Information about a deleted message. A message is deleted when `delete_time`
28
28
  // is set.
@@ -16,13 +16,13 @@ syntax = "proto3";
16
16
 
17
17
  package google.chat.v1;
18
18
 
19
- option csharp_namespace = "Google.Chat.V1";
19
+ option csharp_namespace = "Google.Apps.Chat.V1";
20
20
  option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
21
21
  option java_multiple_files = true;
22
22
  option java_outer_classname = "GroupProto";
23
23
  option java_package = "com.google.chat.v1";
24
- option php_namespace = "Google\\Chat\\V1";
25
- option ruby_package = "Google::Chat::V1";
24
+ option php_namespace = "Google\\Apps\\Chat\\V1";
25
+ option ruby_package = "Google::Apps::Chat::V1";
26
26
 
27
27
  // A Google Group in Google Chat.
28
28
  message Group {
@@ -16,13 +16,13 @@ syntax = "proto3";
16
16
 
17
17
  package google.chat.v1;
18
18
 
19
- option csharp_namespace = "Google.Chat.V1";
19
+ option csharp_namespace = "Google.Apps.Chat.V1";
20
20
  option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
21
21
  option java_multiple_files = true;
22
22
  option java_outer_classname = "HistoryStateProto";
23
23
  option java_package = "com.google.chat.v1";
24
- option php_namespace = "Google\\Chat\\V1";
25
- option ruby_package = "Google::Chat::V1";
24
+ option php_namespace = "Google\\Apps\\Chat\\V1";
25
+ option ruby_package = "Google::Apps::Chat::V1";
26
26
 
27
27
  // The history state for messages and spaces. Specifies how long messages and
28
28
  // conversation threads are kept after creation.
@@ -18,13 +18,13 @@ package google.chat.v1;
18
18
 
19
19
  import "google/api/field_behavior.proto";
20
20
 
21
- option csharp_namespace = "Google.Chat.V1";
21
+ option csharp_namespace = "Google.Apps.Chat.V1";
22
22
  option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
23
23
  option java_multiple_files = true;
24
24
  option java_outer_classname = "MatchedUrlProto";
25
25
  option java_package = "com.google.chat.v1";
26
- option php_namespace = "Google\\Chat\\V1";
27
- option ruby_package = "Google::Chat::V1";
26
+ option php_namespace = "Google\\Apps\\Chat\\V1";
27
+ option ruby_package = "Google::Apps::Chat::V1";
28
28
 
29
29
  // A matched URL in a Chat message. Chat apps can preview matched URLs. For more
30
30
  // information, see [Preview
@@ -20,15 +20,16 @@ import "google/api/field_behavior.proto";
20
20
  import "google/api/resource.proto";
21
21
  import "google/chat/v1/group.proto";
22
22
  import "google/chat/v1/user.proto";
23
+ import "google/protobuf/field_mask.proto";
23
24
  import "google/protobuf/timestamp.proto";
24
25
 
25
- option csharp_namespace = "Google.Chat.V1";
26
+ option csharp_namespace = "Google.Apps.Chat.V1";
26
27
  option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
27
28
  option java_multiple_files = true;
28
29
  option java_outer_classname = "MembershipProto";
29
30
  option java_package = "com.google.chat.v1";
30
- option php_namespace = "Google\\Chat\\V1";
31
- option ruby_package = "Google::Chat::V1";
31
+ option php_namespace = "Google\\Apps\\Chat\\V1";
32
+ option ruby_package = "Google::Apps::Chat::V1";
32
33
 
33
34
  // Represents a membership relation in Google Chat, such as whether a user or
34
35
  // Chat app is invited to, part of, or absent from a space.
@@ -89,7 +90,6 @@ message Membership {
89
90
  // Optional. User's role within a Chat space, which determines their permitted
90
91
  // actions in the space.
91
92
  //
92
- // [Developer Preview](https://developers.google.com/workspace/preview):
93
93
  // This field can only be used as input in `UpdateMembership`.
94
94
  MembershipRole role = 7 [(google.api.field_behavior) = OPTIONAL];
95
95
 
@@ -98,9 +98,9 @@ message Membership {
98
98
  oneof memberType {
99
99
  // The Google Chat user or app the membership corresponds to.
100
100
  // If your Chat app [authenticates as a
101
- // user](https://developers.google.com/chat/api/guides/auth/users), the
102
- // output populates the
103
- // [user](https://developers.google.com/chat/api/reference/rest/v1/User)
101
+ // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
102
+ // the output populates the
103
+ // [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User)
104
104
  // `name` and `type`.
105
105
  User member = 3;
106
106
 
@@ -127,6 +127,7 @@ message Membership {
127
127
  ];
128
128
  }
129
129
 
130
+ // Request message for creating a membership.
130
131
  message CreateMembershipRequest {
131
132
  // Required. The resource name of the space for which to create the
132
133
  // membership.
@@ -158,6 +159,23 @@ message CreateMembershipRequest {
158
159
  Membership membership = 2 [(google.api.field_behavior) = REQUIRED];
159
160
  }
160
161
 
162
+ // Request message for updating a membership.
163
+ message UpdateMembershipRequest {
164
+ // Required. The membership to update. Only fields specified by `update_mask`
165
+ // are updated.
166
+ Membership membership = 1 [(google.api.field_behavior) = REQUIRED];
167
+
168
+ // Required. The field paths to update. Separate multiple values with commas
169
+ // or use `*` to update all field paths.
170
+ //
171
+ // Currently supported field paths:
172
+ //
173
+ // - `role`
174
+ google.protobuf.FieldMask update_mask = 2
175
+ [(google.api.field_behavior) = REQUIRED];
176
+ }
177
+
178
+ // Request message for listing memberships.
161
179
  message ListMembershipsRequest {
162
180
  // Required. The resource name of the space for which to fetch a membership
163
181
  // list.
@@ -175,8 +193,8 @@ message ListMembershipsRequest {
175
193
  //
176
194
  // If unspecified, at most 100 memberships are returned.
177
195
  //
178
- // The maximum value is 1,000. If you use a value more than 1,000, it's
179
- // automatically changed to 1,000.
196
+ // The maximum value is 1000. If you use a value more than 1000, it's
197
+ // automatically changed to 1000.
180
198
  //
181
199
  // Negative values return an `INVALID_ARGUMENT` error.
182
200
  int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL];
@@ -192,9 +210,9 @@ message ListMembershipsRequest {
192
210
  // Optional. A query filter.
193
211
  //
194
212
  // You can filter memberships by a member's role
195
- // ([`role`](https://developers.google.com/chat/api/reference/rest/v1/spaces.members#membershiprole))
213
+ // ([`role`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members#membershiprole))
196
214
  // and type
197
- // ([`member.type`](https://developers.google.com/chat/api/reference/rest/v1/User#type)).
215
+ // ([`member.type`](https://developers.google.com/workspace/chat/api/reference/rest/v1/User#type)).
198
216
  //
199
217
  // To filter by role, set `role` to `ROLE_MEMBER` or `ROLE_MANAGER`.
200
218
  //
@@ -217,6 +235,7 @@ message ListMembershipsRequest {
217
235
  // role = "ROLE_MANAGER" AND role = "ROLE_MEMBER"
218
236
  // ```
219
237
  //
238
+ //
220
239
  // Invalid queries are rejected by the server with an `INVALID_ARGUMENT`
221
240
  // error.
222
241
  string filter = 5 [(google.api.field_behavior) = OPTIONAL];
@@ -237,10 +256,11 @@ message ListMembershipsRequest {
237
256
  // that don't match the filter criteria aren't returned.
238
257
  //
239
258
  // Currently requires [user
240
- // authentication](https://developers.google.com/chat/api/guides/auth/users).
259
+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
241
260
  bool show_invited = 7 [(google.api.field_behavior) = OPTIONAL];
242
261
  }
243
262
 
263
+ // Response to list memberships of the space.
244
264
  message ListMembershipsResponse {
245
265
  // Unordered list. List of memberships in the requested (or first) page.
246
266
  repeated Membership memberships = 1
@@ -251,6 +271,7 @@ message ListMembershipsResponse {
251
271
  string next_page_token = 2;
252
272
  }
253
273
 
274
+ // Request to get a membership of a space.
254
275
  message GetMembershipRequest {
255
276
  // Required. Resource name of the membership to retrieve.
256
277
  //
@@ -260,8 +281,8 @@ message GetMembershipRequest {
260
281
  // Format: `spaces/{space}/members/{member}` or `spaces/{space}/members/app`
261
282
  //
262
283
  // When [authenticated as a
263
- // user](https://developers.google.com/chat/api/guides/auth/users), you can
264
- // use the user's email as an alias for `{member}`. For example,
284
+ // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
285
+ // you can use the user's email as an alias for `{member}`. For example,
265
286
  // `spaces/{space}/members/example@gmail.com` where `example@gmail.com` is the
266
287
  // email of the Google Chat user.
267
288
  string name = 1 [
@@ -270,6 +291,7 @@ message GetMembershipRequest {
270
291
  ];
271
292
  }
272
293
 
294
+ // Request to delete a membership in a space.
273
295
  message DeleteMembershipRequest {
274
296
  // Required. Resource name of the membership to delete. Chat apps can delete
275
297
  // human users' or their own memberships. Chat apps can't delete other apps'
@@ -32,13 +32,13 @@ import "google/chat/v1/user.proto";
32
32
  import "google/protobuf/field_mask.proto";
33
33
  import "google/protobuf/timestamp.proto";
34
34
 
35
- option csharp_namespace = "Google.Chat.V1";
35
+ option csharp_namespace = "Google.Apps.Chat.V1";
36
36
  option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
37
37
  option java_multiple_files = true;
38
38
  option java_outer_classname = "MessageProto";
39
39
  option java_package = "com.google.chat.v1";
40
- option php_namespace = "Google\\Chat\\V1";
41
- option ruby_package = "Google::Chat::V1";
40
+ option php_namespace = "Google\\Apps\\Chat\\V1";
41
+ option ruby_package = "Google::Apps::Chat::V1";
42
42
 
43
43
  // A message in a Google Chat space.
44
44
  message Message {
@@ -61,14 +61,14 @@ message Message {
61
61
  // from the `clientAssignedMessageId` field. For example,
62
62
  // `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name
63
63
  // a
64
- // message](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).
64
+ // message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
65
65
  string name = 1;
66
66
 
67
67
  // Output only. The user who created the message.
68
68
  // If your Chat app [authenticates as a
69
- // user](https://developers.google.com/chat/api/guides/auth/users), the output
70
- // populates the
71
- // [user](https://developers.google.com/chat/api/reference/rest/v1/User)
69
+ // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
70
+ // the output populates the
71
+ // [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User)
72
72
  // `name` and `type`.
73
73
  User sender = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
74
74
 
@@ -96,13 +96,13 @@ message Message {
96
96
 
97
97
  // Plain-text body of the message. The first link to an image, video, or web
98
98
  // page generates a
99
- // [preview chip](https://developers.google.com/chat/how-tos/preview-links).
99
+ // [preview chip](https://developers.google.com/workspace/chat/preview-links).
100
100
  // You can also [@mention a Google Chat
101
- // user](https://developers.google.com/chat/format-messages#messages-@mention),
101
+ // user](https://developers.google.com/workspace/chat/format-messages#messages-@mention),
102
102
  // or everyone in the space.
103
103
  //
104
104
  // To learn about creating text messages, see [Send a text
105
- // message](https://developers.google.com/chat/api/guides/v1/messages/create#create-text-messages).
105
+ // message](https://developers.google.com/workspace/chat/create-messages#create-text-messages).
106
106
  string text = 4;
107
107
 
108
108
  // Output only. Contains the message `text` with markups added to communicate
@@ -110,23 +110,24 @@ message Message {
110
110
  // but includes the following:
111
111
  //
112
112
  // * [Markup
113
- // syntax](https://developers.google.com/chat/format-messages)
114
- // for bold, italic, strikethrough, monospace, and monospace block.
113
+ // syntax](https://developers.google.com/workspace/chat/format-messages)
114
+ // for bold, italic, strikethrough, monospace, monospace block, and bulleted
115
+ // list.
115
116
  //
116
117
  // * [User
117
- // mentions](https://developers.google.com/chat/format-messages#messages-@mention)
118
- // using the format `<users/{user}>`.
118
+ // mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention)
119
+ // using the format `<users/{user}>`.
119
120
  //
120
121
  // * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the
121
- // first string is the URL and the second is the rendered text—for example,
122
- // `<http://example.com|custom text>`.
122
+ // first string is the URL and the second is the rendered text—for example,
123
+ // `<http://example.com|custom text>`.
123
124
  //
124
125
  // * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`.
125
- // This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning
126
+ // This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning
126
127
  // face emoji.
127
128
  //
128
129
  // For more information, see [View text formatting sent in a
129
- // message](https://developers.google.com/chat/format-messages#view_text_formatting_sent_in_a_message)
130
+ // message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message)
130
131
  string formatted_text = 43 [(google.api.field_behavior) = OUTPUT_ONLY];
131
132
 
132
133
  // Deprecated: Use `cards_v2` instead.
@@ -138,15 +139,14 @@ message Message {
138
139
  repeated ContextualAddOnMarkup.Card cards = 5 [deprecated = true];
139
140
 
140
141
  // An array of
141
- // [cards](https://developers.google.com/chat/api/reference/rest/v1/cards).
142
+ // [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards).
142
143
  //
143
144
  // Only Chat apps can create cards. If your Chat app [authenticates as a
144
- // user](https://developers.google.com/chat/api/guides/auth/users), the
145
- // messages can't contain cards.
145
+ // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
146
+ // the messages can't contain cards.
146
147
  //
147
- // To learn about cards and how to create them, see [Design dynamic,
148
- // interactive, and consistent UIs with
149
- // cards](https://developers.google.com/chat/ui).
148
+ // To learn about cards and how to create them, see [Send card
149
+ // messages](https://developers.google.com/workspace/chat/create-messages#create).
150
150
  //
151
151
  // [Card builder](https://addons.gsuite.google.com/uikit/builder)
152
152
  repeated CardWithId cards_v2 = 22;
@@ -157,13 +157,13 @@ message Message {
157
157
 
158
158
  // The thread the message belongs to. For example usage, see
159
159
  // [Start or reply to a message
160
- // thread](https://developers.google.com/chat/api/guides/v1/messages/create#create-message-thread).
160
+ // thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread).
161
161
  Thread thread = 11;
162
162
 
163
163
  // If your Chat app [authenticates as a
164
- // user](https://developers.google.com/chat/api/guides/auth/users), the output
165
- // populates the
166
- // [space](https://developers.google.com/chat/api/reference/rest/v1/spaces)
164
+ // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
165
+ // the output populates the
166
+ // [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
167
167
  // `name`.
168
168
  Space space = 12;
169
169
 
@@ -188,7 +188,7 @@ message Message {
188
188
 
189
189
  // Output only. A URL in `spaces.messages.text` that matches a link preview
190
190
  // pattern. For more information, see [Preview
191
- // links](https://developers.google.com/chat/how-tos/preview-links).
191
+ // links](https://developers.google.com/workspace/chat/preview-links).
192
192
  MatchedUrl matched_url = 20 [(google.api.field_behavior) = OUTPUT_ONLY];
193
193
 
194
194
  // Output only. When `true`, the message is a response in a reply thread. When
@@ -202,9 +202,9 @@ message Message {
202
202
  // Optional. A custom ID for the message. You can use field to identify a
203
203
  // message, or to get, delete, or update a message. To set a custom ID,
204
204
  // specify the
205
- // [`messageId`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id)
205
+ // [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id)
206
206
  // field when you create the message. For details, see [Name a
207
- // message](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).
207
+ // message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
208
208
  string client_assigned_message_id = 32;
209
209
 
210
210
  // Output only. The list of emoji reaction summaries on the message.
@@ -217,11 +217,12 @@ message Message {
217
217
  // attachments aren't supported for private messages.
218
218
  //
219
219
  // Only Chat apps can send private messages. If your Chat app [authenticates
220
- // as a user](https://developers.google.com/chat/api/guides/auth/users) to
221
- // send a message, the message can't be private and must omit this field.
220
+ // as a
221
+ // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
222
+ // to send a message, the message can't be private and must omit this field.
222
223
  //
223
224
  // For details, see [Send private messages to Google Chat
224
- // users](https://developers.google.com/chat/api/guides/v1/messages/private).
225
+ // users](https://developers.google.com/workspace/chat/private-messages).
225
226
  User private_message_viewer = 36 [(google.api.field_behavior) = IMMUTABLE];
226
227
 
227
228
  // Output only. Information about a deleted message. A message is deleted when
@@ -237,6 +238,17 @@ message Message {
237
238
  // Output only. GIF images that are attached to the message.
238
239
  repeated AttachedGif attached_gifs = 42
239
240
  [(google.api.field_behavior) = OUTPUT_ONLY];
241
+
242
+ // One or more interactive widgets that appear at the bottom of a message.
243
+ // You can add accessory widgets to messages that contain text, cards, or both
244
+ // text and cards. Not supported for messages that contain dialogs. For
245
+ // details, see [Add interactive widgets at the bottom of a
246
+ // message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
247
+ //
248
+ // Creating a message with accessory widgets requires [app
249
+ // authentication]
250
+ // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
251
+ repeated AccessoryWidget accessory_widgets = 44;
240
252
  }
241
253
 
242
254
  // A GIF image that's specified by a URL.
@@ -268,10 +280,10 @@ message QuotedMessageMetadata {
268
280
 
269
281
  // A thread in a Google Chat space. For example usage, see
270
282
  // [Start or reply to a message
271
- // thread](https://developers.google.com/chat/api/guides/v1/messages/create#create-message-thread).
283
+ // thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread).
272
284
  //
273
285
  // If you specify a thread when creating a message, you can set the
274
- // [`messageReplyOption`](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages/create#messagereplyoption)
286
+ // [`messageReplyOption`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#messagereplyoption)
275
287
  // field to determine what happens if no matching thread is found.
276
288
  message Thread {
277
289
  option (google.api.resource) = {
@@ -318,7 +330,7 @@ message ActionResponse {
318
330
  REQUEST_CONFIG = 3;
319
331
 
320
332
  // Presents a
321
- // [dialog](https://developers.google.com/chat/how-tos/dialogs).
333
+ // [dialog](https://developers.google.com/workspace/chat/dialogs).
322
334
  DIALOG = 4;
323
335
 
324
336
  // Widget text autocomplete options query.
@@ -334,6 +346,7 @@ message ActionResponse {
334
346
  // The response of the updated widget.
335
347
  // Used to provide autocomplete options for a widget.
336
348
  message UpdatedWidget {
349
+ // The widget updated in response to a user action.
337
350
  oneof updated_widget {
338
351
  // List of widget autocomplete results
339
352
  SelectionItems suggestions = 1;
@@ -352,7 +365,7 @@ message ActionResponse {
352
365
  string url = 2 [(google.api.field_behavior) = INPUT_ONLY];
353
366
 
354
367
  // Input only. A response to an interaction event related to a
355
- // [dialog](https://developers.google.com/chat/how-tos/dialogs). Must be
368
+ // [dialog](https://developers.google.com/workspace/chat/dialogs). Must be
356
369
  // accompanied by `ResponseType.Dialog`.
357
370
  DialogAction dialog_action = 3 [(google.api.field_behavior) = INPUT_ONLY];
358
371
 
@@ -360,6 +373,18 @@ message ActionResponse {
360
373
  UpdatedWidget updated_widget = 4 [(google.api.field_behavior) = INPUT_ONLY];
361
374
  }
362
375
 
376
+ // One or more interactive widgets that appear at the bottom of a message. For
377
+ // details, see [Add interactive widgets at the bottom of a
378
+ // message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).
379
+ message AccessoryWidget {
380
+ // The type of action.
381
+ oneof action {
382
+ // A list of buttons.
383
+ google.apps.card.v1.ButtonList button_list = 1;
384
+ }
385
+ }
386
+
387
+ // Request to get a message.
363
388
  message GetMessageRequest {
364
389
  // Required. Resource name of the message.
365
390
  //
@@ -368,13 +393,14 @@ message GetMessageRequest {
368
393
  // If you've set a custom ID for your message, you can use the value from the
369
394
  // `clientAssignedMessageId` field for `{message}`. For details, see [Name a
370
395
  // message]
371
- // (https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).
396
+ // (https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
372
397
  string name = 1 [
373
398
  (google.api.field_behavior) = REQUIRED,
374
399
  (google.api.resource_reference) = { type: "chat.googleapis.com/Message" }
375
400
  ];
376
401
  }
377
402
 
403
+ // Request to delete a message.
378
404
  message DeleteMessageRequest {
379
405
  // Required. Resource name of the message.
380
406
  //
@@ -383,7 +409,7 @@ message DeleteMessageRequest {
383
409
  // If you've set a custom ID for your message, you can use the value from the
384
410
  // `clientAssignedMessageId` field for `{message}`. For details, see [Name a
385
411
  // message]
386
- // (https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).
412
+ // (https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
387
413
  string name = 1 [
388
414
  (google.api.field_behavior) = REQUIRED,
389
415
  (google.api.resource_reference) = { type: "chat.googleapis.com/Message" }
@@ -393,12 +419,13 @@ message DeleteMessageRequest {
393
419
  // `false`, if a message has threaded replies, deletion fails.
394
420
  //
395
421
  // Only applies when [authenticating as a
396
- // user](https://developers.google.com/chat/api/guides/auth/users). Has no
397
- // effect when [authenticating as a Chat app]
398
- // (https://developers.google.com/chat/api/guides/auth/service-accounts).
422
+ // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).
423
+ // Has no effect when [authenticating as a Chat app]
424
+ // (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).
399
425
  bool force = 2;
400
426
  }
401
427
 
428
+ // Request to update a message.
402
429
  message UpdateMessageRequest {
403
430
  // Required. Message with fields updated.
404
431
  Message message = 1 [(google.api.field_behavior) = REQUIRED];
@@ -418,13 +445,13 @@ message UpdateMessageRequest {
418
445
  // - `cards_v2` (Requires [app
419
446
  // authentication](/chat/api/guides/auth/service-accounts).)
420
447
  //
421
- // - Developer Preview: `accessory_widgets` (Requires [app
448
+ // - `accessory_widgets` (Requires [app
422
449
  // authentication](/chat/api/guides/auth/service-accounts).)
423
450
  google.protobuf.FieldMask update_mask = 2;
424
451
 
425
452
  // Optional. If `true` and the message isn't found, a new message is created
426
453
  // and `updateMask` is ignored. The specified message ID must be
427
- // [client-assigned](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message)
454
+ // [client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message)
428
455
  // or the request fails.
429
456
  bool allow_missing = 4 [(google.api.field_behavior) = OPTIONAL];
430
457
  }
@@ -472,7 +499,7 @@ message CreateMessageRequest {
472
499
  // a message and specify a `threadKey` or the
473
500
  // [thread.name][google.chat.v1.Thread.name]. For example usage, see [Start or
474
501
  // reply to a message
475
- // thread](https://developers.google.com/chat/api/guides/v1/messages/create#create-message-thread).
502
+ // thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread).
476
503
  string thread_key = 6
477
504
  [deprecated = true, (google.api.field_behavior) = OPTIONAL];
478
505
 
@@ -500,7 +527,7 @@ message CreateMessageRequest {
500
527
  // different messages.
501
528
  //
502
529
  // For details, see [Name a
503
- // message](https://developers.google.com/chat/api/guides/v1/messages/create#name_a_created_message).
530
+ // message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).
504
531
  string message_id = 9 [(google.api.field_behavior) = OPTIONAL];
505
532
  }
506
533
 
@@ -521,8 +548,8 @@ message ListMessagesRequest {
521
548
  //
522
549
  // If unspecified, at most 25 are returned.
523
550
  //
524
- // The maximum value is 1,000. If you use a value more than 1,000, it's
525
- // automatically changed to 1,000.
551
+ // The maximum value is 1000. If you use a value more than 1000, it's
552
+ // automatically changed to 1000.
526
553
  //
527
554
  // Negative values return an `INVALID_ARGUMENT` error.
528
555
  int32 page_size = 2;
@@ -593,6 +620,7 @@ message ListMessagesRequest {
593
620
  bool show_deleted = 6;
594
621
  }
595
622
 
623
+ // Response message for listing messages.
596
624
  message ListMessagesResponse {
597
625
  // List of messages.
598
626
  repeated Message messages = 1;
@@ -603,17 +631,19 @@ message ListMessagesResponse {
603
631
  }
604
632
 
605
633
  // Contains a
606
- // [dialog](https://developers.google.com/chat/how-tos/dialogs) and request
634
+ // [dialog](https://developers.google.com/workspace/chat/dialogs) and request
607
635
  // status code.
608
636
  message DialogAction {
637
+ // Action to perform.
609
638
  oneof action {
610
- // Input only. [Dialog](https://developers.google.com/chat/how-tos/dialogs)
611
- // for the request.
639
+ // Input only.
640
+ // [Dialog](https://developers.google.com/workspace/chat/dialogs) for the
641
+ // request.
612
642
  Dialog dialog = 1 [(google.api.field_behavior) = INPUT_ONLY];
613
643
  }
614
644
 
615
645
  // Input only. Status for a request to either invoke or submit a
616
- // [dialog](https://developers.google.com/chat/how-tos/dialogs). Displays
646
+ // [dialog](https://developers.google.com/workspace/chat/dialogs). Displays
617
647
  // a status and message to users, if necessary.
618
648
  // For example, in case of an error or success.
619
649
  ActionStatus action_status = 2 [(google.api.field_behavior) = INPUT_ONLY];
@@ -627,12 +657,13 @@ message Dialog {
627
657
  google.apps.card.v1.Card body = 1 [(google.api.field_behavior) = INPUT_ONLY];
628
658
  }
629
659
 
630
- // A [card](https://developers.google.com/chat/api/reference/rest/v1/cards) in a
631
- // Google Chat message.
660
+ // A
661
+ // [card](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
662
+ // in a Google Chat message.
632
663
  //
633
664
  // Only Chat apps can create cards. If your Chat app [authenticates as a
634
- // user](https://developers.google.com/chat/api/guides/auth/users), the message
635
- // can't contain cards.
665
+ // user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),
666
+ // the message can't contain cards.
636
667
  //
637
668
  // [Card builder](https://addons.gsuite.google.com/uikit/builder)
638
669
  message CardWithId {
@@ -20,13 +20,13 @@ import "google/api/field_behavior.proto";
20
20
  import "google/api/resource.proto";
21
21
  import "google/chat/v1/user.proto";
22
22
 
23
- option csharp_namespace = "Google.Chat.V1";
23
+ option csharp_namespace = "Google.Apps.Chat.V1";
24
24
  option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
25
25
  option java_multiple_files = true;
26
26
  option java_outer_classname = "ReactionProto";
27
27
  option java_package = "com.google.chat.v1";
28
- option php_namespace = "Google\\Chat\\V1";
29
- option ruby_package = "Google::Chat::V1";
28
+ option php_namespace = "Google\\Apps\\Chat\\V1";
29
+ option ruby_package = "Google::Apps::Chat::V1";
30
30
 
31
31
  // A reaction to a message.
32
32
  message Reaction {
@@ -49,6 +49,7 @@ message Reaction {
49
49
 
50
50
  // An emoji that is used as a reaction to a message.
51
51
  message Emoji {
52
+ // The content of the emoji.
52
53
  oneof content {
53
54
  // A basic emoji represented by a unicode string.
54
55
  string unicode = 1;
@@ -118,9 +119,9 @@ message ListReactionsRequest {
118
119
  // Optional. A query filter.
119
120
  //
120
121
  // You can filter reactions by
121
- // [emoji](https://developers.google.com/chat/api/reference/rest/v1/Emoji)
122
+ // [emoji](https://developers.google.com/workspace/chat/api/reference/rest/v1/Emoji)
122
123
  // (either `emoji.unicode` or `emoji.custom_emoji.uid`) and
123
- // [user](https://developers.google.com/chat/api/reference/rest/v1/User)
124
+ // [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User)
124
125
  // (`user.name`).
125
126
  //
126
127
  // To filter reactions for multiple emojis or users, join similar fields
@@ -162,6 +163,7 @@ message ListReactionsRequest {
162
163
  string filter = 4 [(google.api.field_behavior) = OPTIONAL];
163
164
  }
164
165
 
166
+ // Response to a list reactions request.
165
167
  message ListReactionsResponse {
166
168
  // List of reactions in the requested (or first) page.
167
169
  repeated Reaction reactions = 1;
@@ -16,16 +16,17 @@ syntax = "proto3";
16
16
 
17
17
  package google.chat.v1;
18
18
 
19
- option csharp_namespace = "Google.Chat.V1";
19
+ option csharp_namespace = "Google.Apps.Chat.V1";
20
20
  option go_package = "cloud.google.com/go/chat/apiv1/chatpb;chatpb";
21
21
  option java_multiple_files = true;
22
22
  option java_outer_classname = "SlashCommandProto";
23
23
  option java_package = "com.google.chat.v1";
24
- option php_namespace = "Google\\Chat\\V1";
25
- option ruby_package = "Google::Chat::V1";
24
+ option php_namespace = "Google\\Apps\\Chat\\V1";
25
+ option ruby_package = "Google::Apps::Chat::V1";
26
26
 
27
- // A [slash command](https://developers.google.com/chat/how-tos/slash-commands)
28
- // in Google Chat.
27
+ // A [slash
28
+ // command](https://developers.google.com/workspace/chat/slash-commands) in
29
+ // Google Chat.
29
30
  message SlashCommand {
30
31
  // The ID of the slash command invoked.
31
32
  int64 command_id = 1;