@google-apps/chat 0.8.0 → 0.10.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.
@@ -11453,6 +11453,20 @@ export namespace google {
11453
11453
  */
11454
11454
  public listSpaces(request: google.chat.v1.IListSpacesRequest): Promise<google.chat.v1.ListSpacesResponse>;
11455
11455
 
11456
+ /**
11457
+ * Calls SearchSpaces.
11458
+ * @param request SearchSpacesRequest message or plain object
11459
+ * @param callback Node-style callback called with the error, if any, and SearchSpacesResponse
11460
+ */
11461
+ public searchSpaces(request: google.chat.v1.ISearchSpacesRequest, callback: google.chat.v1.ChatService.SearchSpacesCallback): void;
11462
+
11463
+ /**
11464
+ * Calls SearchSpaces.
11465
+ * @param request SearchSpacesRequest message or plain object
11466
+ * @returns Promise
11467
+ */
11468
+ public searchSpaces(request: google.chat.v1.ISearchSpacesRequest): Promise<google.chat.v1.SearchSpacesResponse>;
11469
+
11456
11470
  /**
11457
11471
  * Calls GetSpace.
11458
11472
  * @param request GetSpaceRequest message or plain object
@@ -11778,6 +11792,13 @@ export namespace google {
11778
11792
  */
11779
11793
  type ListSpacesCallback = (error: (Error|null), response?: google.chat.v1.ListSpacesResponse) => void;
11780
11794
 
11795
+ /**
11796
+ * Callback as used by {@link google.chat.v1.ChatService|searchSpaces}.
11797
+ * @param error Error, if any
11798
+ * @param [response] SearchSpacesResponse
11799
+ */
11800
+ type SearchSpacesCallback = (error: (Error|null), response?: google.chat.v1.SearchSpacesResponse) => void;
11801
+
11781
11802
  /**
11782
11803
  * Callback as used by {@link google.chat.v1.ChatService|getSpace}.
11783
11804
  * @param error Error, if any
@@ -12067,6 +12088,9 @@ export namespace google {
12067
12088
 
12068
12089
  /** CreateMembershipRequest membership */
12069
12090
  membership?: (google.chat.v1.IMembership|null);
12091
+
12092
+ /** CreateMembershipRequest useAdminAccess */
12093
+ useAdminAccess?: (boolean|null);
12070
12094
  }
12071
12095
 
12072
12096
  /** Represents a CreateMembershipRequest. */
@@ -12084,6 +12108,9 @@ export namespace google {
12084
12108
  /** CreateMembershipRequest membership. */
12085
12109
  public membership?: (google.chat.v1.IMembership|null);
12086
12110
 
12111
+ /** CreateMembershipRequest useAdminAccess. */
12112
+ public useAdminAccess: boolean;
12113
+
12087
12114
  /**
12088
12115
  * Creates a new CreateMembershipRequest instance using the specified properties.
12089
12116
  * @param [properties] Properties to set
@@ -12170,6 +12197,9 @@ export namespace google {
12170
12197
 
12171
12198
  /** UpdateMembershipRequest updateMask */
12172
12199
  updateMask?: (google.protobuf.IFieldMask|null);
12200
+
12201
+ /** UpdateMembershipRequest useAdminAccess */
12202
+ useAdminAccess?: (boolean|null);
12173
12203
  }
12174
12204
 
12175
12205
  /** Represents an UpdateMembershipRequest. */
@@ -12187,6 +12217,9 @@ export namespace google {
12187
12217
  /** UpdateMembershipRequest updateMask. */
12188
12218
  public updateMask?: (google.protobuf.IFieldMask|null);
12189
12219
 
12220
+ /** UpdateMembershipRequest useAdminAccess. */
12221
+ public useAdminAccess: boolean;
12222
+
12190
12223
  /**
12191
12224
  * Creates a new UpdateMembershipRequest instance using the specified properties.
12192
12225
  * @param [properties] Properties to set
@@ -12285,6 +12318,9 @@ export namespace google {
12285
12318
 
12286
12319
  /** ListMembershipsRequest showInvited */
12287
12320
  showInvited?: (boolean|null);
12321
+
12322
+ /** ListMembershipsRequest useAdminAccess */
12323
+ useAdminAccess?: (boolean|null);
12288
12324
  }
12289
12325
 
12290
12326
  /** Represents a ListMembershipsRequest. */
@@ -12314,6 +12350,9 @@ export namespace google {
12314
12350
  /** ListMembershipsRequest showInvited. */
12315
12351
  public showInvited: boolean;
12316
12352
 
12353
+ /** ListMembershipsRequest useAdminAccess. */
12354
+ public useAdminAccess: boolean;
12355
+
12317
12356
  /**
12318
12357
  * Creates a new ListMembershipsRequest instance using the specified properties.
12319
12358
  * @param [properties] Properties to set
@@ -12500,6 +12539,9 @@ export namespace google {
12500
12539
 
12501
12540
  /** GetMembershipRequest name */
12502
12541
  name?: (string|null);
12542
+
12543
+ /** GetMembershipRequest useAdminAccess */
12544
+ useAdminAccess?: (boolean|null);
12503
12545
  }
12504
12546
 
12505
12547
  /** Represents a GetMembershipRequest. */
@@ -12514,6 +12556,9 @@ export namespace google {
12514
12556
  /** GetMembershipRequest name. */
12515
12557
  public name: string;
12516
12558
 
12559
+ /** GetMembershipRequest useAdminAccess. */
12560
+ public useAdminAccess: boolean;
12561
+
12517
12562
  /**
12518
12563
  * Creates a new GetMembershipRequest instance using the specified properties.
12519
12564
  * @param [properties] Properties to set
@@ -12597,6 +12642,9 @@ export namespace google {
12597
12642
 
12598
12643
  /** DeleteMembershipRequest name */
12599
12644
  name?: (string|null);
12645
+
12646
+ /** DeleteMembershipRequest useAdminAccess */
12647
+ useAdminAccess?: (boolean|null);
12600
12648
  }
12601
12649
 
12602
12650
  /** Represents a DeleteMembershipRequest. */
@@ -12611,6 +12659,9 @@ export namespace google {
12611
12659
  /** DeleteMembershipRequest name. */
12612
12660
  public name: string;
12613
12661
 
12662
+ /** DeleteMembershipRequest useAdminAccess. */
12663
+ public useAdminAccess: boolean;
12664
+
12614
12665
  /**
12615
12666
  * Creates a new DeleteMembershipRequest instance using the specified properties.
12616
12667
  * @param [properties] Properties to set
@@ -17719,14 +17770,26 @@ export namespace google {
17719
17770
  /** Space createTime */
17720
17771
  createTime?: (google.protobuf.ITimestamp|null);
17721
17772
 
17773
+ /** Space lastActiveTime */
17774
+ lastActiveTime?: (google.protobuf.ITimestamp|null);
17775
+
17722
17776
  /** Space adminInstalled */
17723
17777
  adminInstalled?: (boolean|null);
17724
17778
 
17779
+ /** Space membershipCount */
17780
+ membershipCount?: (google.chat.v1.Space.IMembershipCount|null);
17781
+
17725
17782
  /** Space accessSettings */
17726
17783
  accessSettings?: (google.chat.v1.Space.IAccessSettings|null);
17727
17784
 
17728
17785
  /** Space spaceUri */
17729
17786
  spaceUri?: (string|null);
17787
+
17788
+ /** Space predefinedPermissionSettings */
17789
+ predefinedPermissionSettings?: (google.chat.v1.Space.PredefinedPermissionSettings|keyof typeof google.chat.v1.Space.PredefinedPermissionSettings|null);
17790
+
17791
+ /** Space permissionSettings */
17792
+ permissionSettings?: (google.chat.v1.Space.IPermissionSettings|null);
17730
17793
  }
17731
17794
 
17732
17795
  /** Represents a Space. */
@@ -17774,15 +17837,30 @@ export namespace google {
17774
17837
  /** Space createTime. */
17775
17838
  public createTime?: (google.protobuf.ITimestamp|null);
17776
17839
 
17840
+ /** Space lastActiveTime. */
17841
+ public lastActiveTime?: (google.protobuf.ITimestamp|null);
17842
+
17777
17843
  /** Space adminInstalled. */
17778
17844
  public adminInstalled: boolean;
17779
17845
 
17846
+ /** Space membershipCount. */
17847
+ public membershipCount?: (google.chat.v1.Space.IMembershipCount|null);
17848
+
17780
17849
  /** Space accessSettings. */
17781
17850
  public accessSettings?: (google.chat.v1.Space.IAccessSettings|null);
17782
17851
 
17783
17852
  /** Space spaceUri. */
17784
17853
  public spaceUri: string;
17785
17854
 
17855
+ /** Space predefinedPermissionSettings. */
17856
+ public predefinedPermissionSettings?: (google.chat.v1.Space.PredefinedPermissionSettings|keyof typeof google.chat.v1.Space.PredefinedPermissionSettings|null);
17857
+
17858
+ /** Space permissionSettings. */
17859
+ public permissionSettings?: (google.chat.v1.Space.IPermissionSettings|null);
17860
+
17861
+ /** Space spacePermissionSettings. */
17862
+ public spacePermissionSettings?: ("predefinedPermissionSettings"|"permissionSettings");
17863
+
17786
17864
  /**
17787
17865
  * Creates a new Space instance using the specified properties.
17788
17866
  * @param [properties] Properties to set
@@ -17989,6 +18067,109 @@ export namespace google {
17989
18067
  public static getTypeUrl(typeUrlPrefix?: string): string;
17990
18068
  }
17991
18069
 
18070
+ /** Properties of a MembershipCount. */
18071
+ interface IMembershipCount {
18072
+
18073
+ /** MembershipCount joinedDirectHumanUserCount */
18074
+ joinedDirectHumanUserCount?: (number|null);
18075
+
18076
+ /** MembershipCount joinedGroupCount */
18077
+ joinedGroupCount?: (number|null);
18078
+ }
18079
+
18080
+ /** Represents a MembershipCount. */
18081
+ class MembershipCount implements IMembershipCount {
18082
+
18083
+ /**
18084
+ * Constructs a new MembershipCount.
18085
+ * @param [properties] Properties to set
18086
+ */
18087
+ constructor(properties?: google.chat.v1.Space.IMembershipCount);
18088
+
18089
+ /** MembershipCount joinedDirectHumanUserCount. */
18090
+ public joinedDirectHumanUserCount: number;
18091
+
18092
+ /** MembershipCount joinedGroupCount. */
18093
+ public joinedGroupCount: number;
18094
+
18095
+ /**
18096
+ * Creates a new MembershipCount instance using the specified properties.
18097
+ * @param [properties] Properties to set
18098
+ * @returns MembershipCount instance
18099
+ */
18100
+ public static create(properties?: google.chat.v1.Space.IMembershipCount): google.chat.v1.Space.MembershipCount;
18101
+
18102
+ /**
18103
+ * Encodes the specified MembershipCount message. Does not implicitly {@link google.chat.v1.Space.MembershipCount.verify|verify} messages.
18104
+ * @param message MembershipCount message or plain object to encode
18105
+ * @param [writer] Writer to encode to
18106
+ * @returns Writer
18107
+ */
18108
+ public static encode(message: google.chat.v1.Space.IMembershipCount, writer?: $protobuf.Writer): $protobuf.Writer;
18109
+
18110
+ /**
18111
+ * Encodes the specified MembershipCount message, length delimited. Does not implicitly {@link google.chat.v1.Space.MembershipCount.verify|verify} messages.
18112
+ * @param message MembershipCount message or plain object to encode
18113
+ * @param [writer] Writer to encode to
18114
+ * @returns Writer
18115
+ */
18116
+ public static encodeDelimited(message: google.chat.v1.Space.IMembershipCount, writer?: $protobuf.Writer): $protobuf.Writer;
18117
+
18118
+ /**
18119
+ * Decodes a MembershipCount message from the specified reader or buffer.
18120
+ * @param reader Reader or buffer to decode from
18121
+ * @param [length] Message length if known beforehand
18122
+ * @returns MembershipCount
18123
+ * @throws {Error} If the payload is not a reader or valid buffer
18124
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18125
+ */
18126
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.MembershipCount;
18127
+
18128
+ /**
18129
+ * Decodes a MembershipCount message from the specified reader or buffer, length delimited.
18130
+ * @param reader Reader or buffer to decode from
18131
+ * @returns MembershipCount
18132
+ * @throws {Error} If the payload is not a reader or valid buffer
18133
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18134
+ */
18135
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.MembershipCount;
18136
+
18137
+ /**
18138
+ * Verifies a MembershipCount message.
18139
+ * @param message Plain object to verify
18140
+ * @returns `null` if valid, otherwise the reason why it is not
18141
+ */
18142
+ public static verify(message: { [k: string]: any }): (string|null);
18143
+
18144
+ /**
18145
+ * Creates a MembershipCount message from a plain object. Also converts values to their respective internal types.
18146
+ * @param object Plain object
18147
+ * @returns MembershipCount
18148
+ */
18149
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.MembershipCount;
18150
+
18151
+ /**
18152
+ * Creates a plain object from a MembershipCount message. Also converts values to other types if specified.
18153
+ * @param message MembershipCount
18154
+ * @param [options] Conversion options
18155
+ * @returns Plain object
18156
+ */
18157
+ public static toObject(message: google.chat.v1.Space.MembershipCount, options?: $protobuf.IConversionOptions): { [k: string]: any };
18158
+
18159
+ /**
18160
+ * Converts this MembershipCount to JSON.
18161
+ * @returns JSON object
18162
+ */
18163
+ public toJSON(): { [k: string]: any };
18164
+
18165
+ /**
18166
+ * Gets the default type url for MembershipCount
18167
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
18168
+ * @returns The default type url
18169
+ */
18170
+ public static getTypeUrl(typeUrlPrefix?: string): string;
18171
+ }
18172
+
17992
18173
  /** Properties of an AccessSettings. */
17993
18174
  interface IAccessSettings {
17994
18175
 
@@ -18101,6 +18282,279 @@ export namespace google {
18101
18282
  DISCOVERABLE = 2
18102
18283
  }
18103
18284
  }
18285
+
18286
+ /** PredefinedPermissionSettings enum. */
18287
+ enum PredefinedPermissionSettings {
18288
+ PREDEFINED_PERMISSION_SETTINGS_UNSPECIFIED = 0,
18289
+ COLLABORATION_SPACE = 1,
18290
+ ANNOUNCEMENT_SPACE = 2
18291
+ }
18292
+
18293
+ /** Properties of a PermissionSettings. */
18294
+ interface IPermissionSettings {
18295
+
18296
+ /** PermissionSettings manageMembersAndGroups */
18297
+ manageMembersAndGroups?: (google.chat.v1.Space.IPermissionSetting|null);
18298
+
18299
+ /** PermissionSettings modifySpaceDetails */
18300
+ modifySpaceDetails?: (google.chat.v1.Space.IPermissionSetting|null);
18301
+
18302
+ /** PermissionSettings toggleHistory */
18303
+ toggleHistory?: (google.chat.v1.Space.IPermissionSetting|null);
18304
+
18305
+ /** PermissionSettings useAtMentionAll */
18306
+ useAtMentionAll?: (google.chat.v1.Space.IPermissionSetting|null);
18307
+
18308
+ /** PermissionSettings manageApps */
18309
+ manageApps?: (google.chat.v1.Space.IPermissionSetting|null);
18310
+
18311
+ /** PermissionSettings manageWebhooks */
18312
+ manageWebhooks?: (google.chat.v1.Space.IPermissionSetting|null);
18313
+
18314
+ /** PermissionSettings postMessages */
18315
+ postMessages?: (google.chat.v1.Space.IPermissionSetting|null);
18316
+
18317
+ /** PermissionSettings replyMessages */
18318
+ replyMessages?: (google.chat.v1.Space.IPermissionSetting|null);
18319
+ }
18320
+
18321
+ /** Represents a PermissionSettings. */
18322
+ class PermissionSettings implements IPermissionSettings {
18323
+
18324
+ /**
18325
+ * Constructs a new PermissionSettings.
18326
+ * @param [properties] Properties to set
18327
+ */
18328
+ constructor(properties?: google.chat.v1.Space.IPermissionSettings);
18329
+
18330
+ /** PermissionSettings manageMembersAndGroups. */
18331
+ public manageMembersAndGroups?: (google.chat.v1.Space.IPermissionSetting|null);
18332
+
18333
+ /** PermissionSettings modifySpaceDetails. */
18334
+ public modifySpaceDetails?: (google.chat.v1.Space.IPermissionSetting|null);
18335
+
18336
+ /** PermissionSettings toggleHistory. */
18337
+ public toggleHistory?: (google.chat.v1.Space.IPermissionSetting|null);
18338
+
18339
+ /** PermissionSettings useAtMentionAll. */
18340
+ public useAtMentionAll?: (google.chat.v1.Space.IPermissionSetting|null);
18341
+
18342
+ /** PermissionSettings manageApps. */
18343
+ public manageApps?: (google.chat.v1.Space.IPermissionSetting|null);
18344
+
18345
+ /** PermissionSettings manageWebhooks. */
18346
+ public manageWebhooks?: (google.chat.v1.Space.IPermissionSetting|null);
18347
+
18348
+ /** PermissionSettings postMessages. */
18349
+ public postMessages?: (google.chat.v1.Space.IPermissionSetting|null);
18350
+
18351
+ /** PermissionSettings replyMessages. */
18352
+ public replyMessages?: (google.chat.v1.Space.IPermissionSetting|null);
18353
+
18354
+ /** PermissionSettings _manageMembersAndGroups. */
18355
+ public _manageMembersAndGroups?: "manageMembersAndGroups";
18356
+
18357
+ /** PermissionSettings _modifySpaceDetails. */
18358
+ public _modifySpaceDetails?: "modifySpaceDetails";
18359
+
18360
+ /** PermissionSettings _toggleHistory. */
18361
+ public _toggleHistory?: "toggleHistory";
18362
+
18363
+ /** PermissionSettings _useAtMentionAll. */
18364
+ public _useAtMentionAll?: "useAtMentionAll";
18365
+
18366
+ /** PermissionSettings _manageApps. */
18367
+ public _manageApps?: "manageApps";
18368
+
18369
+ /** PermissionSettings _manageWebhooks. */
18370
+ public _manageWebhooks?: "manageWebhooks";
18371
+
18372
+ /** PermissionSettings _postMessages. */
18373
+ public _postMessages?: "postMessages";
18374
+
18375
+ /** PermissionSettings _replyMessages. */
18376
+ public _replyMessages?: "replyMessages";
18377
+
18378
+ /**
18379
+ * Creates a new PermissionSettings instance using the specified properties.
18380
+ * @param [properties] Properties to set
18381
+ * @returns PermissionSettings instance
18382
+ */
18383
+ public static create(properties?: google.chat.v1.Space.IPermissionSettings): google.chat.v1.Space.PermissionSettings;
18384
+
18385
+ /**
18386
+ * Encodes the specified PermissionSettings message. Does not implicitly {@link google.chat.v1.Space.PermissionSettings.verify|verify} messages.
18387
+ * @param message PermissionSettings message or plain object to encode
18388
+ * @param [writer] Writer to encode to
18389
+ * @returns Writer
18390
+ */
18391
+ public static encode(message: google.chat.v1.Space.IPermissionSettings, writer?: $protobuf.Writer): $protobuf.Writer;
18392
+
18393
+ /**
18394
+ * Encodes the specified PermissionSettings message, length delimited. Does not implicitly {@link google.chat.v1.Space.PermissionSettings.verify|verify} messages.
18395
+ * @param message PermissionSettings message or plain object to encode
18396
+ * @param [writer] Writer to encode to
18397
+ * @returns Writer
18398
+ */
18399
+ public static encodeDelimited(message: google.chat.v1.Space.IPermissionSettings, writer?: $protobuf.Writer): $protobuf.Writer;
18400
+
18401
+ /**
18402
+ * Decodes a PermissionSettings message from the specified reader or buffer.
18403
+ * @param reader Reader or buffer to decode from
18404
+ * @param [length] Message length if known beforehand
18405
+ * @returns PermissionSettings
18406
+ * @throws {Error} If the payload is not a reader or valid buffer
18407
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18408
+ */
18409
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.PermissionSettings;
18410
+
18411
+ /**
18412
+ * Decodes a PermissionSettings message from the specified reader or buffer, length delimited.
18413
+ * @param reader Reader or buffer to decode from
18414
+ * @returns PermissionSettings
18415
+ * @throws {Error} If the payload is not a reader or valid buffer
18416
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18417
+ */
18418
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.PermissionSettings;
18419
+
18420
+ /**
18421
+ * Verifies a PermissionSettings message.
18422
+ * @param message Plain object to verify
18423
+ * @returns `null` if valid, otherwise the reason why it is not
18424
+ */
18425
+ public static verify(message: { [k: string]: any }): (string|null);
18426
+
18427
+ /**
18428
+ * Creates a PermissionSettings message from a plain object. Also converts values to their respective internal types.
18429
+ * @param object Plain object
18430
+ * @returns PermissionSettings
18431
+ */
18432
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.PermissionSettings;
18433
+
18434
+ /**
18435
+ * Creates a plain object from a PermissionSettings message. Also converts values to other types if specified.
18436
+ * @param message PermissionSettings
18437
+ * @param [options] Conversion options
18438
+ * @returns Plain object
18439
+ */
18440
+ public static toObject(message: google.chat.v1.Space.PermissionSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
18441
+
18442
+ /**
18443
+ * Converts this PermissionSettings to JSON.
18444
+ * @returns JSON object
18445
+ */
18446
+ public toJSON(): { [k: string]: any };
18447
+
18448
+ /**
18449
+ * Gets the default type url for PermissionSettings
18450
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
18451
+ * @returns The default type url
18452
+ */
18453
+ public static getTypeUrl(typeUrlPrefix?: string): string;
18454
+ }
18455
+
18456
+ /** Properties of a PermissionSetting. */
18457
+ interface IPermissionSetting {
18458
+
18459
+ /** PermissionSetting managersAllowed */
18460
+ managersAllowed?: (boolean|null);
18461
+
18462
+ /** PermissionSetting membersAllowed */
18463
+ membersAllowed?: (boolean|null);
18464
+ }
18465
+
18466
+ /** Represents a PermissionSetting. */
18467
+ class PermissionSetting implements IPermissionSetting {
18468
+
18469
+ /**
18470
+ * Constructs a new PermissionSetting.
18471
+ * @param [properties] Properties to set
18472
+ */
18473
+ constructor(properties?: google.chat.v1.Space.IPermissionSetting);
18474
+
18475
+ /** PermissionSetting managersAllowed. */
18476
+ public managersAllowed: boolean;
18477
+
18478
+ /** PermissionSetting membersAllowed. */
18479
+ public membersAllowed: boolean;
18480
+
18481
+ /**
18482
+ * Creates a new PermissionSetting instance using the specified properties.
18483
+ * @param [properties] Properties to set
18484
+ * @returns PermissionSetting instance
18485
+ */
18486
+ public static create(properties?: google.chat.v1.Space.IPermissionSetting): google.chat.v1.Space.PermissionSetting;
18487
+
18488
+ /**
18489
+ * Encodes the specified PermissionSetting message. Does not implicitly {@link google.chat.v1.Space.PermissionSetting.verify|verify} messages.
18490
+ * @param message PermissionSetting message or plain object to encode
18491
+ * @param [writer] Writer to encode to
18492
+ * @returns Writer
18493
+ */
18494
+ public static encode(message: google.chat.v1.Space.IPermissionSetting, writer?: $protobuf.Writer): $protobuf.Writer;
18495
+
18496
+ /**
18497
+ * Encodes the specified PermissionSetting message, length delimited. Does not implicitly {@link google.chat.v1.Space.PermissionSetting.verify|verify} messages.
18498
+ * @param message PermissionSetting message or plain object to encode
18499
+ * @param [writer] Writer to encode to
18500
+ * @returns Writer
18501
+ */
18502
+ public static encodeDelimited(message: google.chat.v1.Space.IPermissionSetting, writer?: $protobuf.Writer): $protobuf.Writer;
18503
+
18504
+ /**
18505
+ * Decodes a PermissionSetting message from the specified reader or buffer.
18506
+ * @param reader Reader or buffer to decode from
18507
+ * @param [length] Message length if known beforehand
18508
+ * @returns PermissionSetting
18509
+ * @throws {Error} If the payload is not a reader or valid buffer
18510
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18511
+ */
18512
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.PermissionSetting;
18513
+
18514
+ /**
18515
+ * Decodes a PermissionSetting message from the specified reader or buffer, length delimited.
18516
+ * @param reader Reader or buffer to decode from
18517
+ * @returns PermissionSetting
18518
+ * @throws {Error} If the payload is not a reader or valid buffer
18519
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18520
+ */
18521
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.PermissionSetting;
18522
+
18523
+ /**
18524
+ * Verifies a PermissionSetting message.
18525
+ * @param message Plain object to verify
18526
+ * @returns `null` if valid, otherwise the reason why it is not
18527
+ */
18528
+ public static verify(message: { [k: string]: any }): (string|null);
18529
+
18530
+ /**
18531
+ * Creates a PermissionSetting message from a plain object. Also converts values to their respective internal types.
18532
+ * @param object Plain object
18533
+ * @returns PermissionSetting
18534
+ */
18535
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.PermissionSetting;
18536
+
18537
+ /**
18538
+ * Creates a plain object from a PermissionSetting message. Also converts values to other types if specified.
18539
+ * @param message PermissionSetting
18540
+ * @param [options] Conversion options
18541
+ * @returns Plain object
18542
+ */
18543
+ public static toObject(message: google.chat.v1.Space.PermissionSetting, options?: $protobuf.IConversionOptions): { [k: string]: any };
18544
+
18545
+ /**
18546
+ * Converts this PermissionSetting to JSON.
18547
+ * @returns JSON object
18548
+ */
18549
+ public toJSON(): { [k: string]: any };
18550
+
18551
+ /**
18552
+ * Gets the default type url for PermissionSetting
18553
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
18554
+ * @returns The default type url
18555
+ */
18556
+ public static getTypeUrl(typeUrlPrefix?: string): string;
18557
+ }
18104
18558
  }
18105
18559
 
18106
18560
  /** Properties of a CreateSpaceRequest. */
@@ -18423,6 +18877,9 @@ export namespace google {
18423
18877
 
18424
18878
  /** GetSpaceRequest name */
18425
18879
  name?: (string|null);
18880
+
18881
+ /** GetSpaceRequest useAdminAccess */
18882
+ useAdminAccess?: (boolean|null);
18426
18883
  }
18427
18884
 
18428
18885
  /** Represents a GetSpaceRequest. */
@@ -18437,6 +18894,9 @@ export namespace google {
18437
18894
  /** GetSpaceRequest name. */
18438
18895
  public name: string;
18439
18896
 
18897
+ /** GetSpaceRequest useAdminAccess. */
18898
+ public useAdminAccess: boolean;
18899
+
18440
18900
  /**
18441
18901
  * Creates a new GetSpaceRequest instance using the specified properties.
18442
18902
  * @param [properties] Properties to set
@@ -18620,6 +19080,9 @@ export namespace google {
18620
19080
 
18621
19081
  /** UpdateSpaceRequest updateMask */
18622
19082
  updateMask?: (google.protobuf.IFieldMask|null);
19083
+
19084
+ /** UpdateSpaceRequest useAdminAccess */
19085
+ useAdminAccess?: (boolean|null);
18623
19086
  }
18624
19087
 
18625
19088
  /** Represents an UpdateSpaceRequest. */
@@ -18637,6 +19100,9 @@ export namespace google {
18637
19100
  /** UpdateSpaceRequest updateMask. */
18638
19101
  public updateMask?: (google.protobuf.IFieldMask|null);
18639
19102
 
19103
+ /** UpdateSpaceRequest useAdminAccess. */
19104
+ public useAdminAccess: boolean;
19105
+
18640
19106
  /**
18641
19107
  * Creates a new UpdateSpaceRequest instance using the specified properties.
18642
19108
  * @param [properties] Properties to set
@@ -18715,11 +19181,244 @@ export namespace google {
18715
19181
  public static getTypeUrl(typeUrlPrefix?: string): string;
18716
19182
  }
18717
19183
 
19184
+ /** Properties of a SearchSpacesRequest. */
19185
+ interface ISearchSpacesRequest {
19186
+
19187
+ /** SearchSpacesRequest useAdminAccess */
19188
+ useAdminAccess?: (boolean|null);
19189
+
19190
+ /** SearchSpacesRequest pageSize */
19191
+ pageSize?: (number|null);
19192
+
19193
+ /** SearchSpacesRequest pageToken */
19194
+ pageToken?: (string|null);
19195
+
19196
+ /** SearchSpacesRequest query */
19197
+ query?: (string|null);
19198
+
19199
+ /** SearchSpacesRequest orderBy */
19200
+ orderBy?: (string|null);
19201
+ }
19202
+
19203
+ /** Represents a SearchSpacesRequest. */
19204
+ class SearchSpacesRequest implements ISearchSpacesRequest {
19205
+
19206
+ /**
19207
+ * Constructs a new SearchSpacesRequest.
19208
+ * @param [properties] Properties to set
19209
+ */
19210
+ constructor(properties?: google.chat.v1.ISearchSpacesRequest);
19211
+
19212
+ /** SearchSpacesRequest useAdminAccess. */
19213
+ public useAdminAccess: boolean;
19214
+
19215
+ /** SearchSpacesRequest pageSize. */
19216
+ public pageSize: number;
19217
+
19218
+ /** SearchSpacesRequest pageToken. */
19219
+ public pageToken: string;
19220
+
19221
+ /** SearchSpacesRequest query. */
19222
+ public query: string;
19223
+
19224
+ /** SearchSpacesRequest orderBy. */
19225
+ public orderBy: string;
19226
+
19227
+ /**
19228
+ * Creates a new SearchSpacesRequest instance using the specified properties.
19229
+ * @param [properties] Properties to set
19230
+ * @returns SearchSpacesRequest instance
19231
+ */
19232
+ public static create(properties?: google.chat.v1.ISearchSpacesRequest): google.chat.v1.SearchSpacesRequest;
19233
+
19234
+ /**
19235
+ * Encodes the specified SearchSpacesRequest message. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
19236
+ * @param message SearchSpacesRequest message or plain object to encode
19237
+ * @param [writer] Writer to encode to
19238
+ * @returns Writer
19239
+ */
19240
+ public static encode(message: google.chat.v1.ISearchSpacesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
19241
+
19242
+ /**
19243
+ * Encodes the specified SearchSpacesRequest message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
19244
+ * @param message SearchSpacesRequest message or plain object to encode
19245
+ * @param [writer] Writer to encode to
19246
+ * @returns Writer
19247
+ */
19248
+ public static encodeDelimited(message: google.chat.v1.ISearchSpacesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
19249
+
19250
+ /**
19251
+ * Decodes a SearchSpacesRequest message from the specified reader or buffer.
19252
+ * @param reader Reader or buffer to decode from
19253
+ * @param [length] Message length if known beforehand
19254
+ * @returns SearchSpacesRequest
19255
+ * @throws {Error} If the payload is not a reader or valid buffer
19256
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19257
+ */
19258
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.SearchSpacesRequest;
19259
+
19260
+ /**
19261
+ * Decodes a SearchSpacesRequest message from the specified reader or buffer, length delimited.
19262
+ * @param reader Reader or buffer to decode from
19263
+ * @returns SearchSpacesRequest
19264
+ * @throws {Error} If the payload is not a reader or valid buffer
19265
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19266
+ */
19267
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.SearchSpacesRequest;
19268
+
19269
+ /**
19270
+ * Verifies a SearchSpacesRequest message.
19271
+ * @param message Plain object to verify
19272
+ * @returns `null` if valid, otherwise the reason why it is not
19273
+ */
19274
+ public static verify(message: { [k: string]: any }): (string|null);
19275
+
19276
+ /**
19277
+ * Creates a SearchSpacesRequest message from a plain object. Also converts values to their respective internal types.
19278
+ * @param object Plain object
19279
+ * @returns SearchSpacesRequest
19280
+ */
19281
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.SearchSpacesRequest;
19282
+
19283
+ /**
19284
+ * Creates a plain object from a SearchSpacesRequest message. Also converts values to other types if specified.
19285
+ * @param message SearchSpacesRequest
19286
+ * @param [options] Conversion options
19287
+ * @returns Plain object
19288
+ */
19289
+ public static toObject(message: google.chat.v1.SearchSpacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
19290
+
19291
+ /**
19292
+ * Converts this SearchSpacesRequest to JSON.
19293
+ * @returns JSON object
19294
+ */
19295
+ public toJSON(): { [k: string]: any };
19296
+
19297
+ /**
19298
+ * Gets the default type url for SearchSpacesRequest
19299
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
19300
+ * @returns The default type url
19301
+ */
19302
+ public static getTypeUrl(typeUrlPrefix?: string): string;
19303
+ }
19304
+
19305
+ /** Properties of a SearchSpacesResponse. */
19306
+ interface ISearchSpacesResponse {
19307
+
19308
+ /** SearchSpacesResponse spaces */
19309
+ spaces?: (google.chat.v1.ISpace[]|null);
19310
+
19311
+ /** SearchSpacesResponse nextPageToken */
19312
+ nextPageToken?: (string|null);
19313
+
19314
+ /** SearchSpacesResponse totalSize */
19315
+ totalSize?: (number|null);
19316
+ }
19317
+
19318
+ /** Represents a SearchSpacesResponse. */
19319
+ class SearchSpacesResponse implements ISearchSpacesResponse {
19320
+
19321
+ /**
19322
+ * Constructs a new SearchSpacesResponse.
19323
+ * @param [properties] Properties to set
19324
+ */
19325
+ constructor(properties?: google.chat.v1.ISearchSpacesResponse);
19326
+
19327
+ /** SearchSpacesResponse spaces. */
19328
+ public spaces: google.chat.v1.ISpace[];
19329
+
19330
+ /** SearchSpacesResponse nextPageToken. */
19331
+ public nextPageToken: string;
19332
+
19333
+ /** SearchSpacesResponse totalSize. */
19334
+ public totalSize: number;
19335
+
19336
+ /**
19337
+ * Creates a new SearchSpacesResponse instance using the specified properties.
19338
+ * @param [properties] Properties to set
19339
+ * @returns SearchSpacesResponse instance
19340
+ */
19341
+ public static create(properties?: google.chat.v1.ISearchSpacesResponse): google.chat.v1.SearchSpacesResponse;
19342
+
19343
+ /**
19344
+ * Encodes the specified SearchSpacesResponse message. Does not implicitly {@link google.chat.v1.SearchSpacesResponse.verify|verify} messages.
19345
+ * @param message SearchSpacesResponse message or plain object to encode
19346
+ * @param [writer] Writer to encode to
19347
+ * @returns Writer
19348
+ */
19349
+ public static encode(message: google.chat.v1.ISearchSpacesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
19350
+
19351
+ /**
19352
+ * Encodes the specified SearchSpacesResponse message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesResponse.verify|verify} messages.
19353
+ * @param message SearchSpacesResponse message or plain object to encode
19354
+ * @param [writer] Writer to encode to
19355
+ * @returns Writer
19356
+ */
19357
+ public static encodeDelimited(message: google.chat.v1.ISearchSpacesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
19358
+
19359
+ /**
19360
+ * Decodes a SearchSpacesResponse message from the specified reader or buffer.
19361
+ * @param reader Reader or buffer to decode from
19362
+ * @param [length] Message length if known beforehand
19363
+ * @returns SearchSpacesResponse
19364
+ * @throws {Error} If the payload is not a reader or valid buffer
19365
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19366
+ */
19367
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.SearchSpacesResponse;
19368
+
19369
+ /**
19370
+ * Decodes a SearchSpacesResponse message from the specified reader or buffer, length delimited.
19371
+ * @param reader Reader or buffer to decode from
19372
+ * @returns SearchSpacesResponse
19373
+ * @throws {Error} If the payload is not a reader or valid buffer
19374
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19375
+ */
19376
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.SearchSpacesResponse;
19377
+
19378
+ /**
19379
+ * Verifies a SearchSpacesResponse message.
19380
+ * @param message Plain object to verify
19381
+ * @returns `null` if valid, otherwise the reason why it is not
19382
+ */
19383
+ public static verify(message: { [k: string]: any }): (string|null);
19384
+
19385
+ /**
19386
+ * Creates a SearchSpacesResponse message from a plain object. Also converts values to their respective internal types.
19387
+ * @param object Plain object
19388
+ * @returns SearchSpacesResponse
19389
+ */
19390
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.SearchSpacesResponse;
19391
+
19392
+ /**
19393
+ * Creates a plain object from a SearchSpacesResponse message. Also converts values to other types if specified.
19394
+ * @param message SearchSpacesResponse
19395
+ * @param [options] Conversion options
19396
+ * @returns Plain object
19397
+ */
19398
+ public static toObject(message: google.chat.v1.SearchSpacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
19399
+
19400
+ /**
19401
+ * Converts this SearchSpacesResponse to JSON.
19402
+ * @returns JSON object
19403
+ */
19404
+ public toJSON(): { [k: string]: any };
19405
+
19406
+ /**
19407
+ * Gets the default type url for SearchSpacesResponse
19408
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
19409
+ * @returns The default type url
19410
+ */
19411
+ public static getTypeUrl(typeUrlPrefix?: string): string;
19412
+ }
19413
+
18718
19414
  /** Properties of a DeleteSpaceRequest. */
18719
19415
  interface IDeleteSpaceRequest {
18720
19416
 
18721
19417
  /** DeleteSpaceRequest name */
18722
19418
  name?: (string|null);
19419
+
19420
+ /** DeleteSpaceRequest useAdminAccess */
19421
+ useAdminAccess?: (boolean|null);
18723
19422
  }
18724
19423
 
18725
19424
  /** Represents a DeleteSpaceRequest. */
@@ -18734,6 +19433,9 @@ export namespace google {
18734
19433
  /** DeleteSpaceRequest name. */
18735
19434
  public name: string;
18736
19435
 
19436
+ /** DeleteSpaceRequest useAdminAccess. */
19437
+ public useAdminAccess: boolean;
19438
+
18737
19439
  /**
18738
19440
  * Creates a new DeleteSpaceRequest instance using the specified properties.
18739
19441
  * @param [properties] Properties to set