@google-apps/chat 0.20.0 → 0.22.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.
@@ -152,6 +152,11 @@ message RichLinkMetadata {
152
152
  // A Chat space rich link type. For example, a space smart chip.
153
153
  CHAT_SPACE = 2;
154
154
 
155
+ // A Gmail message rich link type. Specifically, a Gmail chip from [Share to
156
+ // Chat](https://support.google.com/chat?p=chat_gmail). The API only
157
+ // supports reading messages with GMAIL_MESSAGE rich links.
158
+ GMAIL_MESSAGE = 3;
159
+
155
160
  // A Meet message rich link type. For example, a Meet chip.
156
161
  MEET_SPACE = 4;
157
162
 
@@ -47,9 +47,10 @@ message Attachment {
47
47
  UPLOADED_CONTENT = 2;
48
48
  }
49
49
 
50
- // Optional. Resource name of the attachment, in the form
51
- // `spaces/{space}/messages/{message}/attachments/{attachment}`.
52
- string name = 1 [(google.api.field_behavior) = OPTIONAL];
50
+ // Identifier. Resource name of the attachment.
51
+ //
52
+ // Format: `spaces/{space}/messages/{message}/attachments/{attachment}`.
53
+ string name = 1 [(google.api.field_behavior) = IDENTIFIER];
53
54
 
54
55
  // Output only. The original file name for the content, not the full path.
55
56
  string content_name = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -51,6 +51,7 @@ service ChatService {
51
51
  "https://www.googleapis.com/auth/chat.admin.spaces.readonly,"
52
52
  "https://www.googleapis.com/auth/chat.app.delete,"
53
53
  "https://www.googleapis.com/auth/chat.app.memberships,"
54
+ "https://www.googleapis.com/auth/chat.app.messages.readonly,"
54
55
  "https://www.googleapis.com/auth/chat.app.spaces,"
55
56
  "https://www.googleapis.com/auth/chat.app.spaces.create,"
56
57
  "https://www.googleapis.com/auth/chat.bot,"
@@ -127,21 +128,34 @@ service ChatService {
127
128
  }
128
129
 
129
130
  // Lists messages in a space that the caller is a member of, including
130
- // messages from blocked members and spaces. If you list messages from a
131
+ // messages from blocked members and spaces. System messages, like those
132
+ // announcing new space members, aren't included. If you list messages from a
131
133
  // space with no messages, the response is an empty object. When using a
132
134
  // REST/HTTP interface, the response contains an empty JSON object, `{}`.
133
135
  // For an example, see
134
136
  // [List
135
137
  // messages](https://developers.google.com/workspace/chat/api/guides/v1/messages/list).
136
138
  //
137
- // Requires [user
138
- // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
139
- // with one of the following [authorization
140
- // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
139
+ // Supports the following types of
140
+ // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize):
141
141
  //
142
- // - `https://www.googleapis.com/auth/chat.messages.readonly`
143
- // - `https://www.googleapis.com/auth/chat.messages`
144
- // - `https://www.googleapis.com/auth/chat.import` (import mode spaces only)
142
+ // - [App
143
+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
144
+ // with [administrator
145
+ // approval](https://support.google.com/a?p=chat-app-auth) in
146
+ // [Developer Preview](https://developers.google.com/workspace/preview)
147
+ // with the authorization scope:
148
+ // - `https://www.googleapis.com/auth/chat.app.messages.readonly`. When
149
+ // using this authentication scope, this method only returns public
150
+ // messages in a space. It doesn't include private messages.
151
+ //
152
+ // - [User
153
+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
154
+ // with one of the following authorization scopes:
155
+ // - `https://www.googleapis.com/auth/chat.messages.readonly`
156
+ // - `https://www.googleapis.com/auth/chat.messages`
157
+ // - `https://www.googleapis.com/auth/chat.import` (import mode spaces
158
+ // only)
145
159
  rpc ListMessages(ListMessagesRequest) returns (ListMessagesResponse) {
146
160
  option (google.api.http) = {
147
161
  get: "/v1/{parent=spaces/*}/messages"
@@ -231,8 +245,18 @@ service ChatService {
231
245
  //
232
246
  // - [App
233
247
  // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
234
- // with the authorization scope:
235
- // - `https://www.googleapis.com/auth/chat.bot`
248
+ // with one of the following authorization scopes:
249
+ // - `https://www.googleapis.com/auth/chat.bot`: When using this
250
+ // authorization scope, this method returns details about a message the
251
+ // Chat app has access to, like direct messages and [slash
252
+ // commands](https://developers.google.com/workspace/chat/slash-commands)
253
+ // that invoke the Chat app.
254
+ // - `https://www.googleapis.com/auth/chat.app.messages.readonly`
255
+ // with [administrator
256
+ // approval](https://support.google.com/a?p=chat-app-auth) (available in
257
+ // [Developer Preview](https://developers.google.com/workspace/preview)).
258
+ // When using this authentication scope,
259
+ // this method returns details about a public message in a space.
236
260
  //
237
261
  // - [User
238
262
  // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
@@ -386,7 +410,9 @@ service ChatService {
386
410
  }
387
411
 
388
412
  // Returns a list of spaces in a Google Workspace organization based on an
389
- // administrator's search.
413
+ // administrator's search. In the request, set `use_admin_access` to `true`.
414
+ // For an example, see [Search for and manage
415
+ // spaces](https://developers.google.com/workspace/chat/search-manage-admin).
390
416
  //
391
417
  // Requires [user
392
418
  // authentication with administrator
@@ -396,8 +422,6 @@ service ChatService {
396
422
  //
397
423
  // - `https://www.googleapis.com/auth/chat.admin.spaces.readonly`
398
424
  // - `https://www.googleapis.com/auth/chat.admin.spaces`
399
- //
400
- // In the request, set `use_admin_access` to `true`.
401
425
  rpc SearchSpaces(SearchSpacesRequest) returns (SearchSpacesResponse) {
402
426
  option (google.api.http) = {
403
427
  get: "/v1/spaces:search"
@@ -1040,22 +1064,36 @@ service ChatService {
1040
1064
  // Note: The `permissionSettings` field is not returned in the Space
1041
1065
  // object of the Space event data for this request.
1042
1066
  //
1043
- // Requires [user
1044
- // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1045
- // with an [authorization
1067
+ // Supports the following types of
1068
+ // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
1069
+ // with an
1070
+ // [authorization
1046
1071
  // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
1047
1072
  // appropriate for reading the requested data:
1048
1073
  //
1049
- // - `https://www.googleapis.com/auth/chat.spaces.readonly`
1050
- // - `https://www.googleapis.com/auth/chat.spaces`
1051
- // - `https://www.googleapis.com/auth/chat.messages.readonly`
1052
- // - `https://www.googleapis.com/auth/chat.messages`
1053
- // - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
1054
- // - `https://www.googleapis.com/auth/chat.messages.reactions`
1055
- // - `https://www.googleapis.com/auth/chat.memberships.readonly`
1056
- // - `https://www.googleapis.com/auth/chat.memberships`
1074
+ // - [App
1075
+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1076
+ // with [administrator
1077
+ // approval](https://support.google.com/a?p=chat-app-auth) in
1078
+ // [Developer Preview](https://developers.google.com/workspace/preview)
1079
+ // with one of the following authorization scopes:
1080
+ // - `https://www.googleapis.com/auth/chat.app.spaces`
1081
+ // - `https://www.googleapis.com/auth/chat.app.messages.readonly`
1082
+ // - `https://www.googleapis.com/auth/chat.app.memberships`
1083
+ //
1084
+ // - [User
1085
+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1086
+ // with one of the following authorization scopes:
1087
+ // - `https://www.googleapis.com/auth/chat.spaces.readonly`
1088
+ // - `https://www.googleapis.com/auth/chat.spaces`
1089
+ // - `https://www.googleapis.com/auth/chat.messages.readonly`
1090
+ // - `https://www.googleapis.com/auth/chat.messages`
1091
+ // - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
1092
+ // - `https://www.googleapis.com/auth/chat.messages.reactions`
1093
+ // - `https://www.googleapis.com/auth/chat.memberships.readonly`
1094
+ // - `https://www.googleapis.com/auth/chat.memberships`
1057
1095
  //
1058
- // To get an event, the authenticated user must be a member of the space.
1096
+ // To get an event, the authenticated caller must be a member of the space.
1059
1097
  //
1060
1098
  // For an example, see [Get details about an
1061
1099
  // event from a Google Chat
@@ -1075,22 +1113,36 @@ service ChatService {
1075
1113
  // removed during the requested period, the event payload contains an empty
1076
1114
  // `Membership` resource.
1077
1115
  //
1078
- // Requires [user
1079
- // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1080
- // with an [authorization
1116
+ // Supports the following types of
1117
+ // [authentication](https://developers.google.com/workspace/chat/authenticate-authorize)
1118
+ // with an
1119
+ // [authorization
1081
1120
  // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes)
1082
1121
  // appropriate for reading the requested data:
1083
1122
  //
1084
- // - `https://www.googleapis.com/auth/chat.spaces.readonly`
1085
- // - `https://www.googleapis.com/auth/chat.spaces`
1086
- // - `https://www.googleapis.com/auth/chat.messages.readonly`
1087
- // - `https://www.googleapis.com/auth/chat.messages`
1088
- // - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
1089
- // - `https://www.googleapis.com/auth/chat.messages.reactions`
1090
- // - `https://www.googleapis.com/auth/chat.memberships.readonly`
1091
- // - `https://www.googleapis.com/auth/chat.memberships`
1123
+ // - [App
1124
+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app)
1125
+ // with [administrator
1126
+ // approval](https://support.google.com/a?p=chat-app-auth) in
1127
+ // [Developer Preview](https://developers.google.com/workspace/preview)
1128
+ // with one of the following authorization scopes:
1129
+ // - `https://www.googleapis.com/auth/chat.app.spaces`
1130
+ // - `https://www.googleapis.com/auth/chat.app.messages.readonly`
1131
+ // - `https://www.googleapis.com/auth/chat.app.memberships`
1132
+ //
1133
+ // - [User
1134
+ // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
1135
+ // with one of the following authorization scopes:
1136
+ // - `https://www.googleapis.com/auth/chat.spaces.readonly`
1137
+ // - `https://www.googleapis.com/auth/chat.spaces`
1138
+ // - `https://www.googleapis.com/auth/chat.messages.readonly`
1139
+ // - `https://www.googleapis.com/auth/chat.messages`
1140
+ // - `https://www.googleapis.com/auth/chat.messages.reactions.readonly`
1141
+ // - `https://www.googleapis.com/auth/chat.messages.reactions`
1142
+ // - `https://www.googleapis.com/auth/chat.memberships.readonly`
1143
+ // - `https://www.googleapis.com/auth/chat.memberships`
1092
1144
  //
1093
- // To list events, the authenticated user must be a member of the space.
1145
+ // To list events, the authenticated caller must be a member of the space.
1094
1146
  //
1095
1147
  // For an example, see [List events from a Google Chat
1096
1148
  // space](https://developers.google.com/workspace/chat/list-space-events).
@@ -39,7 +39,7 @@ message DeletionMetadata {
39
39
  // User deleted their own message.
40
40
  CREATOR = 1;
41
41
 
42
- // A space manager deleted the message.
42
+ // An owner or manager deleted the message.
43
43
  SPACE_OWNER = 2;
44
44
 
45
45
  // A Google Workspace administrator deleted the message. Administrators can
@@ -99,7 +99,7 @@ message MessageUpdatedEventData {
99
99
  //
100
100
  // Event type: `google.workspace.chat.message.v1.deleted`
101
101
  message MessageDeletedEventData {
102
- // The deleted message. Only the `name`, `createTime`, `deleteTime`, and
102
+ // The deleted message. Only the `name`, `createTime`, and
103
103
  // `deletionMetadata` fields are populated.
104
104
  Message message = 1;
105
105
  }
@@ -66,16 +66,66 @@ message Membership {
66
66
  // assigned this role (other enum values might be used in the future).
67
67
  MEMBERSHIP_ROLE_UNSPECIFIED = 0;
68
68
 
69
- // A member of the space. The user has basic permissions, like sending
70
- // messages to the space. In 1:1 and unnamed group conversations, everyone
69
+ // A member of the space. In the Chat UI, this role is called Member.
70
+ //
71
+ // The user has basic permissions, like sending
72
+ // messages to the space.
73
+ // Managers and owners can grant members additional permissions in a space,
74
+ // including:
75
+ //
76
+ // - Add or remove members.
77
+ // - Modify space details.
78
+ // - Turn history on or off.
79
+ // - Mention everyone in the space with `@all`.
80
+ // - Manage Chat apps and webhooks installed in the space.
81
+ //
82
+ // In direct messages and unnamed group conversations, everyone
71
83
  // has this role.
72
84
  ROLE_MEMBER = 1;
73
85
 
74
- // A space manager. The user has all basic permissions plus administrative
75
- // permissions that let them manage the space, like adding or removing
76
- // members. Only supported in
77
- // [SpaceType.SPACE][google.chat.v1.Space.SpaceType].
86
+ // A space owner. In the Chat UI, this role is called Owner.
87
+ //
88
+ // The user has the complete set of space permissions to manage the space,
89
+ // including:
90
+ //
91
+ // - Change the role of other members in the space to member, manager, or
92
+ // owner.
93
+ // - Delete the space.
94
+ //
95
+ // Only supported in
96
+ // [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces).
97
+ //
98
+ // To learn more, see
99
+ // [Learn more about your role as a space
100
+ // owner or manager](https://support.google.com/chat/answer/11833441).
78
101
  ROLE_MANAGER = 2;
102
+
103
+ // A space manager. In the Chat UI, this role is called Manager.
104
+ //
105
+ // The user has all basic permissions of `ROLE_MEMBER`,
106
+ // and can be granted a subset of administrative permissions by an owner.
107
+ // By default, managers have all the permissions of an owner except for the
108
+ // ability to:
109
+ //
110
+ // - Delete the space.
111
+ // - Make another space member an owner.
112
+ // - Change an owner's role.
113
+ //
114
+ // By default, managers permissions include but aren't limited to:
115
+ //
116
+ // - Make another member a manager.
117
+ // - Delete messages in the space.
118
+ // - Manage space permissions.
119
+ // - Receive notifications for requests to join the space if the manager
120
+ // has the "manage members" permission in the space settings.
121
+ // - Make a space discoverable.
122
+ //
123
+ // Only supported in
124
+ // [SpaceType.SPACE][google.chat.v1.Space.SpaceType] (named spaces).
125
+ //
126
+ // To learn more, see
127
+ // [Manage space settings](https://support.google.com/chat/answer/13340792).
128
+ ROLE_ASSISTANT_MANAGER = 4;
79
129
  }
80
130
 
81
131
  // Identifier. Resource name of the membership, assigned by the server.
@@ -127,6 +127,8 @@ message Message {
127
127
  // This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning
128
128
  // face emoji.
129
129
  //
130
+ // * Bullet list items using asterisks (`*`)—for example, `* item`.
131
+ //
130
132
  // For more information, see [View text formatting sent in a
131
133
  // message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message)
132
134
  string formatted_text = 43 [(google.api.field_behavior) = OUTPUT_ONLY];
@@ -223,8 +225,6 @@ message Message {
223
225
  // and omit the following:
224
226
  //
225
227
  // * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments)
226
- // * [Accessory
227
- // widgets](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages#Message.AccessoryWidget)
228
228
  //
229
229
  // For details, see [Send a message
230
230
  // privately](https://developers.google.com/workspace/chat/create-messages#private).
@@ -232,10 +232,20 @@ message Space {
232
232
 
233
233
  // Represents a space permission setting.
234
234
  message PermissionSetting {
235
- // Optional. Whether spaces managers have this permission.
235
+ // Optional. Whether space owners
236
+ // ([`ROLE_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_MANAGER])
237
+ // have this permission.
236
238
  bool managers_allowed = 1 [(google.api.field_behavior) = OPTIONAL];
237
239
 
238
- // Optional. Whether non-manager members have this permission.
240
+ // Optional. Whether space managers
241
+ // [`ROLE_ASSISTANT_MANAGER`][google.chat.v1.Membership.MembershipRole.ROLE_ASSISTANT_MANAGER])
242
+ // have this permission.
243
+ optional bool assistant_managers_allowed = 3
244
+ [(google.api.field_behavior) = OPTIONAL];
245
+
246
+ // Optional. Whether basic space members
247
+ // ([`ROLE_MEMBER`][google.chat.v1.Membership.MembershipRole.ROLE_MEMBER])
248
+ // have this permission.
239
249
  bool members_allowed = 2 [(google.api.field_behavior) = OPTIONAL];
240
250
  }
241
251
 
@@ -360,7 +370,8 @@ message Space {
360
370
  // Private apps can also use the `customers/my_customer` alias to create
361
371
  // the space in the same Google Workspace organization as the app.
362
372
  //
363
- // For DMs, this field isn't populated.
373
+ // This field isn't populated for direct messages (DMs) or when the space is
374
+ // created by non-Google Workspace users.
364
375
  optional string customer = 24 [
365
376
  (google.api.field_behavior) = IMMUTABLE,
366
377
  (google.api.field_behavior) = OPTIONAL
@@ -553,8 +564,10 @@ message UpdateSpaceRequest {
553
564
  //
554
565
  // You can update the following fields for a space:
555
566
  //
556
- // `space_details`: Updates the space's description. Supports up to 150
557
- // characters.
567
+ // `space_details`: Updates the space's description and guidelines. You must
568
+ // pass both description and guidelines in the update request as
569
+ // [`SpaceDetails`][google.chat.v1.Space.SpaceDetails]. If you only want to
570
+ // update one of the fields, pass the existing value for the other field.
558
571
  //
559
572
  // `display_name`: Only supports updating the display name for spaces where
560
573
  // `spaceType` field is `SPACE`.
@@ -598,8 +611,7 @@ message UpdateSpaceRequest {
598
611
  // of a space.
599
612
  // When updating permission settings, you can only specify
600
613
  // `permissionSettings` field masks; you cannot update other field masks
601
- // at the same time. `permissionSettings` is not supported with
602
- // `useAdminAccess`.
614
+ // at the same time.
603
615
  // The supported field masks include:
604
616
  //
605
617
  // - `permission_settings.manageMembersAndGroups`
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -11429,6 +11429,7 @@ export namespace google {
11429
11429
  RICH_LINK_TYPE_UNSPECIFIED = 0,
11430
11430
  DRIVE_FILE = 1,
11431
11431
  CHAT_SPACE = 2,
11432
+ GMAIL_MESSAGE = 3,
11432
11433
  MEET_SPACE = 4,
11433
11434
  CALENDAR_EVENT = 5
11434
11435
  }
@@ -15137,7 +15138,8 @@ export namespace google {
15137
15138
  enum MembershipRole {
15138
15139
  MEMBERSHIP_ROLE_UNSPECIFIED = 0,
15139
15140
  ROLE_MEMBER = 1,
15140
- ROLE_MANAGER = 2
15141
+ ROLE_MANAGER = 2,
15142
+ ROLE_ASSISTANT_MANAGER = 4
15141
15143
  }
15142
15144
  }
15143
15145
 
@@ -20673,6 +20675,9 @@ export namespace google {
20673
20675
  /** PermissionSetting managersAllowed */
20674
20676
  managersAllowed?: (boolean|null);
20675
20677
 
20678
+ /** PermissionSetting assistantManagersAllowed */
20679
+ assistantManagersAllowed?: (boolean|null);
20680
+
20676
20681
  /** PermissionSetting membersAllowed */
20677
20682
  membersAllowed?: (boolean|null);
20678
20683
  }
@@ -20689,6 +20694,9 @@ export namespace google {
20689
20694
  /** PermissionSetting managersAllowed. */
20690
20695
  public managersAllowed: boolean;
20691
20696
 
20697
+ /** PermissionSetting assistantManagersAllowed. */
20698
+ public assistantManagersAllowed?: (boolean|null);
20699
+
20692
20700
  /** PermissionSetting membersAllowed. */
20693
20701
  public membersAllowed: boolean;
20694
20702
 
@@ -1,4 +1,4 @@
1
- // Copyright 2025 Google LLC
1
+ // Copyright 2026 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -31108,6 +31108,7 @@
31108
31108
  case 0:
31109
31109
  case 1:
31110
31110
  case 2:
31111
+ case 3:
31111
31112
  case 4:
31112
31113
  case 5:
31113
31114
  break;
@@ -31186,6 +31187,10 @@
31186
31187
  case 2:
31187
31188
  message.richLinkType = 2;
31188
31189
  break;
31190
+ case "GMAIL_MESSAGE":
31191
+ case 3:
31192
+ message.richLinkType = 3;
31193
+ break;
31189
31194
  case "MEET_SPACE":
31190
31195
  case 4:
31191
31196
  message.richLinkType = 4;
@@ -31295,6 +31300,7 @@
31295
31300
  * @property {number} RICH_LINK_TYPE_UNSPECIFIED=0 RICH_LINK_TYPE_UNSPECIFIED value
31296
31301
  * @property {number} DRIVE_FILE=1 DRIVE_FILE value
31297
31302
  * @property {number} CHAT_SPACE=2 CHAT_SPACE value
31303
+ * @property {number} GMAIL_MESSAGE=3 GMAIL_MESSAGE value
31298
31304
  * @property {number} MEET_SPACE=4 MEET_SPACE value
31299
31305
  * @property {number} CALENDAR_EVENT=5 CALENDAR_EVENT value
31300
31306
  */
@@ -31303,6 +31309,7 @@
31303
31309
  values[valuesById[0] = "RICH_LINK_TYPE_UNSPECIFIED"] = 0;
31304
31310
  values[valuesById[1] = "DRIVE_FILE"] = 1;
31305
31311
  values[valuesById[2] = "CHAT_SPACE"] = 2;
31312
+ values[valuesById[3] = "GMAIL_MESSAGE"] = 3;
31306
31313
  values[valuesById[4] = "MEET_SPACE"] = 4;
31307
31314
  values[valuesById[5] = "CALENDAR_EVENT"] = 5;
31308
31315
  return values;
@@ -39297,6 +39304,7 @@
39297
39304
  case 0:
39298
39305
  case 1:
39299
39306
  case 2:
39307
+ case 4:
39300
39308
  break;
39301
39309
  }
39302
39310
  if (message.member != null && message.hasOwnProperty("member")) {
@@ -39387,6 +39395,10 @@
39387
39395
  case 2:
39388
39396
  message.role = 2;
39389
39397
  break;
39398
+ case "ROLE_ASSISTANT_MANAGER":
39399
+ case 4:
39400
+ message.role = 4;
39401
+ break;
39390
39402
  }
39391
39403
  if (object.member != null) {
39392
39404
  if (typeof object.member !== "object")
@@ -39505,12 +39517,14 @@
39505
39517
  * @property {number} MEMBERSHIP_ROLE_UNSPECIFIED=0 MEMBERSHIP_ROLE_UNSPECIFIED value
39506
39518
  * @property {number} ROLE_MEMBER=1 ROLE_MEMBER value
39507
39519
  * @property {number} ROLE_MANAGER=2 ROLE_MANAGER value
39520
+ * @property {number} ROLE_ASSISTANT_MANAGER=4 ROLE_ASSISTANT_MANAGER value
39508
39521
  */
39509
39522
  Membership.MembershipRole = (function() {
39510
39523
  var valuesById = {}, values = Object.create(valuesById);
39511
39524
  values[valuesById[0] = "MEMBERSHIP_ROLE_UNSPECIFIED"] = 0;
39512
39525
  values[valuesById[1] = "ROLE_MEMBER"] = 1;
39513
39526
  values[valuesById[2] = "ROLE_MANAGER"] = 2;
39527
+ values[valuesById[4] = "ROLE_ASSISTANT_MANAGER"] = 4;
39514
39528
  return values;
39515
39529
  })();
39516
39530
 
@@ -53889,6 +53903,7 @@
53889
53903
  * @memberof google.chat.v1.Space
53890
53904
  * @interface IPermissionSetting
53891
53905
  * @property {boolean|null} [managersAllowed] PermissionSetting managersAllowed
53906
+ * @property {boolean|null} [assistantManagersAllowed] PermissionSetting assistantManagersAllowed
53892
53907
  * @property {boolean|null} [membersAllowed] PermissionSetting membersAllowed
53893
53908
  */
53894
53909
 
@@ -53915,6 +53930,14 @@
53915
53930
  */
53916
53931
  PermissionSetting.prototype.managersAllowed = false;
53917
53932
 
53933
+ /**
53934
+ * PermissionSetting assistantManagersAllowed.
53935
+ * @member {boolean|null|undefined} assistantManagersAllowed
53936
+ * @memberof google.chat.v1.Space.PermissionSetting
53937
+ * @instance
53938
+ */
53939
+ PermissionSetting.prototype.assistantManagersAllowed = null;
53940
+
53918
53941
  /**
53919
53942
  * PermissionSetting membersAllowed.
53920
53943
  * @member {boolean} membersAllowed
@@ -53923,6 +53946,15 @@
53923
53946
  */
53924
53947
  PermissionSetting.prototype.membersAllowed = false;
53925
53948
 
53949
+ // OneOf field names bound to virtual getters and setters
53950
+ var $oneOfFields;
53951
+
53952
+ // Virtual OneOf for proto3 optional field
53953
+ Object.defineProperty(PermissionSetting.prototype, "_assistantManagersAllowed", {
53954
+ get: $util.oneOfGetter($oneOfFields = ["assistantManagersAllowed"]),
53955
+ set: $util.oneOfSetter($oneOfFields)
53956
+ });
53957
+
53926
53958
  /**
53927
53959
  * Creates a new PermissionSetting instance using the specified properties.
53928
53960
  * @function create
@@ -53951,6 +53983,8 @@
53951
53983
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.managersAllowed);
53952
53984
  if (message.membersAllowed != null && Object.hasOwnProperty.call(message, "membersAllowed"))
53953
53985
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.membersAllowed);
53986
+ if (message.assistantManagersAllowed != null && Object.hasOwnProperty.call(message, "assistantManagersAllowed"))
53987
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.assistantManagersAllowed);
53954
53988
  return writer;
53955
53989
  };
53956
53990
 
@@ -53991,6 +54025,10 @@
53991
54025
  message.managersAllowed = reader.bool();
53992
54026
  break;
53993
54027
  }
54028
+ case 3: {
54029
+ message.assistantManagersAllowed = reader.bool();
54030
+ break;
54031
+ }
53994
54032
  case 2: {
53995
54033
  message.membersAllowed = reader.bool();
53996
54034
  break;
@@ -54030,9 +54068,15 @@
54030
54068
  PermissionSetting.verify = function verify(message) {
54031
54069
  if (typeof message !== "object" || message === null)
54032
54070
  return "object expected";
54071
+ var properties = {};
54033
54072
  if (message.managersAllowed != null && message.hasOwnProperty("managersAllowed"))
54034
54073
  if (typeof message.managersAllowed !== "boolean")
54035
54074
  return "managersAllowed: boolean expected";
54075
+ if (message.assistantManagersAllowed != null && message.hasOwnProperty("assistantManagersAllowed")) {
54076
+ properties._assistantManagersAllowed = 1;
54077
+ if (typeof message.assistantManagersAllowed !== "boolean")
54078
+ return "assistantManagersAllowed: boolean expected";
54079
+ }
54036
54080
  if (message.membersAllowed != null && message.hasOwnProperty("membersAllowed"))
54037
54081
  if (typeof message.membersAllowed !== "boolean")
54038
54082
  return "membersAllowed: boolean expected";
@@ -54053,6 +54097,8 @@
54053
54097
  var message = new $root.google.chat.v1.Space.PermissionSetting();
54054
54098
  if (object.managersAllowed != null)
54055
54099
  message.managersAllowed = Boolean(object.managersAllowed);
54100
+ if (object.assistantManagersAllowed != null)
54101
+ message.assistantManagersAllowed = Boolean(object.assistantManagersAllowed);
54056
54102
  if (object.membersAllowed != null)
54057
54103
  message.membersAllowed = Boolean(object.membersAllowed);
54058
54104
  return message;
@@ -54079,6 +54125,11 @@
54079
54125
  object.managersAllowed = message.managersAllowed;
54080
54126
  if (message.membersAllowed != null && message.hasOwnProperty("membersAllowed"))
54081
54127
  object.membersAllowed = message.membersAllowed;
54128
+ if (message.assistantManagersAllowed != null && message.hasOwnProperty("assistantManagersAllowed")) {
54129
+ object.assistantManagersAllowed = message.assistantManagersAllowed;
54130
+ if (options.oneofs)
54131
+ object._assistantManagersAllowed = "assistantManagersAllowed";
54132
+ }
54082
54133
  return object;
54083
54134
  };
54084
54135