@google-apps/chat 0.7.0 → 0.9.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.
@@ -10176,6 +10176,9 @@ export namespace google {
10176
10176
 
10177
10177
  /** RichLinkMetadata driveLinkData */
10178
10178
  driveLinkData?: (google.chat.v1.IDriveLinkData|null);
10179
+
10180
+ /** RichLinkMetadata chatSpaceLinkData */
10181
+ chatSpaceLinkData?: (google.chat.v1.IChatSpaceLinkData|null);
10179
10182
  }
10180
10183
 
10181
10184
  /** Represents a RichLinkMetadata. */
@@ -10196,8 +10199,11 @@ export namespace google {
10196
10199
  /** RichLinkMetadata driveLinkData. */
10197
10200
  public driveLinkData?: (google.chat.v1.IDriveLinkData|null);
10198
10201
 
10202
+ /** RichLinkMetadata chatSpaceLinkData. */
10203
+ public chatSpaceLinkData?: (google.chat.v1.IChatSpaceLinkData|null);
10204
+
10199
10205
  /** RichLinkMetadata data. */
10200
- public data?: "driveLinkData";
10206
+ public data?: ("driveLinkData"|"chatSpaceLinkData");
10201
10207
 
10202
10208
  /**
10203
10209
  * Creates a new RichLinkMetadata instance using the specified properties.
@@ -10282,7 +10288,8 @@ export namespace google {
10282
10288
  /** RichLinkType enum. */
10283
10289
  enum RichLinkType {
10284
10290
  RICH_LINK_TYPE_UNSPECIFIED = 0,
10285
- DRIVE_FILE = 1
10291
+ DRIVE_FILE = 1,
10292
+ CHAT_SPACE = 2
10286
10293
  }
10287
10294
  }
10288
10295
 
@@ -10389,6 +10396,115 @@ export namespace google {
10389
10396
  public static getTypeUrl(typeUrlPrefix?: string): string;
10390
10397
  }
10391
10398
 
10399
+ /** Properties of a ChatSpaceLinkData. */
10400
+ interface IChatSpaceLinkData {
10401
+
10402
+ /** ChatSpaceLinkData space */
10403
+ space?: (string|null);
10404
+
10405
+ /** ChatSpaceLinkData thread */
10406
+ thread?: (string|null);
10407
+
10408
+ /** ChatSpaceLinkData message */
10409
+ message?: (string|null);
10410
+ }
10411
+
10412
+ /** Represents a ChatSpaceLinkData. */
10413
+ class ChatSpaceLinkData implements IChatSpaceLinkData {
10414
+
10415
+ /**
10416
+ * Constructs a new ChatSpaceLinkData.
10417
+ * @param [properties] Properties to set
10418
+ */
10419
+ constructor(properties?: google.chat.v1.IChatSpaceLinkData);
10420
+
10421
+ /** ChatSpaceLinkData space. */
10422
+ public space: string;
10423
+
10424
+ /** ChatSpaceLinkData thread. */
10425
+ public thread: string;
10426
+
10427
+ /** ChatSpaceLinkData message. */
10428
+ public message: string;
10429
+
10430
+ /**
10431
+ * Creates a new ChatSpaceLinkData instance using the specified properties.
10432
+ * @param [properties] Properties to set
10433
+ * @returns ChatSpaceLinkData instance
10434
+ */
10435
+ public static create(properties?: google.chat.v1.IChatSpaceLinkData): google.chat.v1.ChatSpaceLinkData;
10436
+
10437
+ /**
10438
+ * Encodes the specified ChatSpaceLinkData message. Does not implicitly {@link google.chat.v1.ChatSpaceLinkData.verify|verify} messages.
10439
+ * @param message ChatSpaceLinkData message or plain object to encode
10440
+ * @param [writer] Writer to encode to
10441
+ * @returns Writer
10442
+ */
10443
+ public static encode(message: google.chat.v1.IChatSpaceLinkData, writer?: $protobuf.Writer): $protobuf.Writer;
10444
+
10445
+ /**
10446
+ * Encodes the specified ChatSpaceLinkData message, length delimited. Does not implicitly {@link google.chat.v1.ChatSpaceLinkData.verify|verify} messages.
10447
+ * @param message ChatSpaceLinkData message or plain object to encode
10448
+ * @param [writer] Writer to encode to
10449
+ * @returns Writer
10450
+ */
10451
+ public static encodeDelimited(message: google.chat.v1.IChatSpaceLinkData, writer?: $protobuf.Writer): $protobuf.Writer;
10452
+
10453
+ /**
10454
+ * Decodes a ChatSpaceLinkData message from the specified reader or buffer.
10455
+ * @param reader Reader or buffer to decode from
10456
+ * @param [length] Message length if known beforehand
10457
+ * @returns ChatSpaceLinkData
10458
+ * @throws {Error} If the payload is not a reader or valid buffer
10459
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10460
+ */
10461
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.ChatSpaceLinkData;
10462
+
10463
+ /**
10464
+ * Decodes a ChatSpaceLinkData message from the specified reader or buffer, length delimited.
10465
+ * @param reader Reader or buffer to decode from
10466
+ * @returns ChatSpaceLinkData
10467
+ * @throws {Error} If the payload is not a reader or valid buffer
10468
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10469
+ */
10470
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.ChatSpaceLinkData;
10471
+
10472
+ /**
10473
+ * Verifies a ChatSpaceLinkData message.
10474
+ * @param message Plain object to verify
10475
+ * @returns `null` if valid, otherwise the reason why it is not
10476
+ */
10477
+ public static verify(message: { [k: string]: any }): (string|null);
10478
+
10479
+ /**
10480
+ * Creates a ChatSpaceLinkData message from a plain object. Also converts values to their respective internal types.
10481
+ * @param object Plain object
10482
+ * @returns ChatSpaceLinkData
10483
+ */
10484
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.ChatSpaceLinkData;
10485
+
10486
+ /**
10487
+ * Creates a plain object from a ChatSpaceLinkData message. Also converts values to other types if specified.
10488
+ * @param message ChatSpaceLinkData
10489
+ * @param [options] Conversion options
10490
+ * @returns Plain object
10491
+ */
10492
+ public static toObject(message: google.chat.v1.ChatSpaceLinkData, options?: $protobuf.IConversionOptions): { [k: string]: any };
10493
+
10494
+ /**
10495
+ * Converts this ChatSpaceLinkData to JSON.
10496
+ * @returns JSON object
10497
+ */
10498
+ public toJSON(): { [k: string]: any };
10499
+
10500
+ /**
10501
+ * Gets the default type url for ChatSpaceLinkData
10502
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10503
+ * @returns The default type url
10504
+ */
10505
+ public static getTypeUrl(typeUrlPrefix?: string): string;
10506
+ }
10507
+
10392
10508
  /** AnnotationType enum. */
10393
10509
  enum AnnotationType {
10394
10510
  ANNOTATION_TYPE_UNSPECIFIED = 0,
@@ -11337,6 +11453,20 @@ export namespace google {
11337
11453
  */
11338
11454
  public listSpaces(request: google.chat.v1.IListSpacesRequest): Promise<google.chat.v1.ListSpacesResponse>;
11339
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
+
11340
11470
  /**
11341
11471
  * Calls GetSpace.
11342
11472
  * @param request GetSpaceRequest message or plain object
@@ -11662,6 +11792,13 @@ export namespace google {
11662
11792
  */
11663
11793
  type ListSpacesCallback = (error: (Error|null), response?: google.chat.v1.ListSpacesResponse) => void;
11664
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
+
11665
11802
  /**
11666
11803
  * Callback as used by {@link google.chat.v1.ChatService|getSpace}.
11667
11804
  * @param error Error, if any
@@ -11951,6 +12088,9 @@ export namespace google {
11951
12088
 
11952
12089
  /** CreateMembershipRequest membership */
11953
12090
  membership?: (google.chat.v1.IMembership|null);
12091
+
12092
+ /** CreateMembershipRequest useAdminAccess */
12093
+ useAdminAccess?: (boolean|null);
11954
12094
  }
11955
12095
 
11956
12096
  /** Represents a CreateMembershipRequest. */
@@ -11968,6 +12108,9 @@ export namespace google {
11968
12108
  /** CreateMembershipRequest membership. */
11969
12109
  public membership?: (google.chat.v1.IMembership|null);
11970
12110
 
12111
+ /** CreateMembershipRequest useAdminAccess. */
12112
+ public useAdminAccess: boolean;
12113
+
11971
12114
  /**
11972
12115
  * Creates a new CreateMembershipRequest instance using the specified properties.
11973
12116
  * @param [properties] Properties to set
@@ -12054,6 +12197,9 @@ export namespace google {
12054
12197
 
12055
12198
  /** UpdateMembershipRequest updateMask */
12056
12199
  updateMask?: (google.protobuf.IFieldMask|null);
12200
+
12201
+ /** UpdateMembershipRequest useAdminAccess */
12202
+ useAdminAccess?: (boolean|null);
12057
12203
  }
12058
12204
 
12059
12205
  /** Represents an UpdateMembershipRequest. */
@@ -12071,6 +12217,9 @@ export namespace google {
12071
12217
  /** UpdateMembershipRequest updateMask. */
12072
12218
  public updateMask?: (google.protobuf.IFieldMask|null);
12073
12219
 
12220
+ /** UpdateMembershipRequest useAdminAccess. */
12221
+ public useAdminAccess: boolean;
12222
+
12074
12223
  /**
12075
12224
  * Creates a new UpdateMembershipRequest instance using the specified properties.
12076
12225
  * @param [properties] Properties to set
@@ -12169,6 +12318,9 @@ export namespace google {
12169
12318
 
12170
12319
  /** ListMembershipsRequest showInvited */
12171
12320
  showInvited?: (boolean|null);
12321
+
12322
+ /** ListMembershipsRequest useAdminAccess */
12323
+ useAdminAccess?: (boolean|null);
12172
12324
  }
12173
12325
 
12174
12326
  /** Represents a ListMembershipsRequest. */
@@ -12198,6 +12350,9 @@ export namespace google {
12198
12350
  /** ListMembershipsRequest showInvited. */
12199
12351
  public showInvited: boolean;
12200
12352
 
12353
+ /** ListMembershipsRequest useAdminAccess. */
12354
+ public useAdminAccess: boolean;
12355
+
12201
12356
  /**
12202
12357
  * Creates a new ListMembershipsRequest instance using the specified properties.
12203
12358
  * @param [properties] Properties to set
@@ -12384,6 +12539,9 @@ export namespace google {
12384
12539
 
12385
12540
  /** GetMembershipRequest name */
12386
12541
  name?: (string|null);
12542
+
12543
+ /** GetMembershipRequest useAdminAccess */
12544
+ useAdminAccess?: (boolean|null);
12387
12545
  }
12388
12546
 
12389
12547
  /** Represents a GetMembershipRequest. */
@@ -12398,6 +12556,9 @@ export namespace google {
12398
12556
  /** GetMembershipRequest name. */
12399
12557
  public name: string;
12400
12558
 
12559
+ /** GetMembershipRequest useAdminAccess. */
12560
+ public useAdminAccess: boolean;
12561
+
12401
12562
  /**
12402
12563
  * Creates a new GetMembershipRequest instance using the specified properties.
12403
12564
  * @param [properties] Properties to set
@@ -12481,6 +12642,9 @@ export namespace google {
12481
12642
 
12482
12643
  /** DeleteMembershipRequest name */
12483
12644
  name?: (string|null);
12645
+
12646
+ /** DeleteMembershipRequest useAdminAccess */
12647
+ useAdminAccess?: (boolean|null);
12484
12648
  }
12485
12649
 
12486
12650
  /** Represents a DeleteMembershipRequest. */
@@ -12495,6 +12659,9 @@ export namespace google {
12495
12659
  /** DeleteMembershipRequest name. */
12496
12660
  public name: string;
12497
12661
 
12662
+ /** DeleteMembershipRequest useAdminAccess. */
12663
+ public useAdminAccess: boolean;
12664
+
12498
12665
  /**
12499
12666
  * Creates a new DeleteMembershipRequest instance using the specified properties.
12500
12667
  * @param [properties] Properties to set
@@ -17603,9 +17770,15 @@ export namespace google {
17603
17770
  /** Space createTime */
17604
17771
  createTime?: (google.protobuf.ITimestamp|null);
17605
17772
 
17773
+ /** Space lastActiveTime */
17774
+ lastActiveTime?: (google.protobuf.ITimestamp|null);
17775
+
17606
17776
  /** Space adminInstalled */
17607
17777
  adminInstalled?: (boolean|null);
17608
17778
 
17779
+ /** Space membershipCount */
17780
+ membershipCount?: (google.chat.v1.Space.IMembershipCount|null);
17781
+
17609
17782
  /** Space accessSettings */
17610
17783
  accessSettings?: (google.chat.v1.Space.IAccessSettings|null);
17611
17784
 
@@ -17658,9 +17831,15 @@ export namespace google {
17658
17831
  /** Space createTime. */
17659
17832
  public createTime?: (google.protobuf.ITimestamp|null);
17660
17833
 
17834
+ /** Space lastActiveTime. */
17835
+ public lastActiveTime?: (google.protobuf.ITimestamp|null);
17836
+
17661
17837
  /** Space adminInstalled. */
17662
17838
  public adminInstalled: boolean;
17663
17839
 
17840
+ /** Space membershipCount. */
17841
+ public membershipCount?: (google.chat.v1.Space.IMembershipCount|null);
17842
+
17664
17843
  /** Space accessSettings. */
17665
17844
  public accessSettings?: (google.chat.v1.Space.IAccessSettings|null);
17666
17845
 
@@ -17873,6 +18052,109 @@ export namespace google {
17873
18052
  public static getTypeUrl(typeUrlPrefix?: string): string;
17874
18053
  }
17875
18054
 
18055
+ /** Properties of a MembershipCount. */
18056
+ interface IMembershipCount {
18057
+
18058
+ /** MembershipCount joinedDirectHumanUserCount */
18059
+ joinedDirectHumanUserCount?: (number|null);
18060
+
18061
+ /** MembershipCount joinedGroupCount */
18062
+ joinedGroupCount?: (number|null);
18063
+ }
18064
+
18065
+ /** Represents a MembershipCount. */
18066
+ class MembershipCount implements IMembershipCount {
18067
+
18068
+ /**
18069
+ * Constructs a new MembershipCount.
18070
+ * @param [properties] Properties to set
18071
+ */
18072
+ constructor(properties?: google.chat.v1.Space.IMembershipCount);
18073
+
18074
+ /** MembershipCount joinedDirectHumanUserCount. */
18075
+ public joinedDirectHumanUserCount: number;
18076
+
18077
+ /** MembershipCount joinedGroupCount. */
18078
+ public joinedGroupCount: number;
18079
+
18080
+ /**
18081
+ * Creates a new MembershipCount instance using the specified properties.
18082
+ * @param [properties] Properties to set
18083
+ * @returns MembershipCount instance
18084
+ */
18085
+ public static create(properties?: google.chat.v1.Space.IMembershipCount): google.chat.v1.Space.MembershipCount;
18086
+
18087
+ /**
18088
+ * Encodes the specified MembershipCount message. Does not implicitly {@link google.chat.v1.Space.MembershipCount.verify|verify} messages.
18089
+ * @param message MembershipCount message or plain object to encode
18090
+ * @param [writer] Writer to encode to
18091
+ * @returns Writer
18092
+ */
18093
+ public static encode(message: google.chat.v1.Space.IMembershipCount, writer?: $protobuf.Writer): $protobuf.Writer;
18094
+
18095
+ /**
18096
+ * Encodes the specified MembershipCount message, length delimited. Does not implicitly {@link google.chat.v1.Space.MembershipCount.verify|verify} messages.
18097
+ * @param message MembershipCount message or plain object to encode
18098
+ * @param [writer] Writer to encode to
18099
+ * @returns Writer
18100
+ */
18101
+ public static encodeDelimited(message: google.chat.v1.Space.IMembershipCount, writer?: $protobuf.Writer): $protobuf.Writer;
18102
+
18103
+ /**
18104
+ * Decodes a MembershipCount message from the specified reader or buffer.
18105
+ * @param reader Reader or buffer to decode from
18106
+ * @param [length] Message length if known beforehand
18107
+ * @returns MembershipCount
18108
+ * @throws {Error} If the payload is not a reader or valid buffer
18109
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18110
+ */
18111
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Space.MembershipCount;
18112
+
18113
+ /**
18114
+ * Decodes a MembershipCount message from the specified reader or buffer, length delimited.
18115
+ * @param reader Reader or buffer to decode from
18116
+ * @returns MembershipCount
18117
+ * @throws {Error} If the payload is not a reader or valid buffer
18118
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18119
+ */
18120
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Space.MembershipCount;
18121
+
18122
+ /**
18123
+ * Verifies a MembershipCount message.
18124
+ * @param message Plain object to verify
18125
+ * @returns `null` if valid, otherwise the reason why it is not
18126
+ */
18127
+ public static verify(message: { [k: string]: any }): (string|null);
18128
+
18129
+ /**
18130
+ * Creates a MembershipCount message from a plain object. Also converts values to their respective internal types.
18131
+ * @param object Plain object
18132
+ * @returns MembershipCount
18133
+ */
18134
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.Space.MembershipCount;
18135
+
18136
+ /**
18137
+ * Creates a plain object from a MembershipCount message. Also converts values to other types if specified.
18138
+ * @param message MembershipCount
18139
+ * @param [options] Conversion options
18140
+ * @returns Plain object
18141
+ */
18142
+ public static toObject(message: google.chat.v1.Space.MembershipCount, options?: $protobuf.IConversionOptions): { [k: string]: any };
18143
+
18144
+ /**
18145
+ * Converts this MembershipCount to JSON.
18146
+ * @returns JSON object
18147
+ */
18148
+ public toJSON(): { [k: string]: any };
18149
+
18150
+ /**
18151
+ * Gets the default type url for MembershipCount
18152
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
18153
+ * @returns The default type url
18154
+ */
18155
+ public static getTypeUrl(typeUrlPrefix?: string): string;
18156
+ }
18157
+
17876
18158
  /** Properties of an AccessSettings. */
17877
18159
  interface IAccessSettings {
17878
18160
 
@@ -18307,6 +18589,9 @@ export namespace google {
18307
18589
 
18308
18590
  /** GetSpaceRequest name */
18309
18591
  name?: (string|null);
18592
+
18593
+ /** GetSpaceRequest useAdminAccess */
18594
+ useAdminAccess?: (boolean|null);
18310
18595
  }
18311
18596
 
18312
18597
  /** Represents a GetSpaceRequest. */
@@ -18321,6 +18606,9 @@ export namespace google {
18321
18606
  /** GetSpaceRequest name. */
18322
18607
  public name: string;
18323
18608
 
18609
+ /** GetSpaceRequest useAdminAccess. */
18610
+ public useAdminAccess: boolean;
18611
+
18324
18612
  /**
18325
18613
  * Creates a new GetSpaceRequest instance using the specified properties.
18326
18614
  * @param [properties] Properties to set
@@ -18504,6 +18792,9 @@ export namespace google {
18504
18792
 
18505
18793
  /** UpdateSpaceRequest updateMask */
18506
18794
  updateMask?: (google.protobuf.IFieldMask|null);
18795
+
18796
+ /** UpdateSpaceRequest useAdminAccess */
18797
+ useAdminAccess?: (boolean|null);
18507
18798
  }
18508
18799
 
18509
18800
  /** Represents an UpdateSpaceRequest. */
@@ -18521,6 +18812,9 @@ export namespace google {
18521
18812
  /** UpdateSpaceRequest updateMask. */
18522
18813
  public updateMask?: (google.protobuf.IFieldMask|null);
18523
18814
 
18815
+ /** UpdateSpaceRequest useAdminAccess. */
18816
+ public useAdminAccess: boolean;
18817
+
18524
18818
  /**
18525
18819
  * Creates a new UpdateSpaceRequest instance using the specified properties.
18526
18820
  * @param [properties] Properties to set
@@ -18599,11 +18893,244 @@ export namespace google {
18599
18893
  public static getTypeUrl(typeUrlPrefix?: string): string;
18600
18894
  }
18601
18895
 
18896
+ /** Properties of a SearchSpacesRequest. */
18897
+ interface ISearchSpacesRequest {
18898
+
18899
+ /** SearchSpacesRequest useAdminAccess */
18900
+ useAdminAccess?: (boolean|null);
18901
+
18902
+ /** SearchSpacesRequest pageSize */
18903
+ pageSize?: (number|null);
18904
+
18905
+ /** SearchSpacesRequest pageToken */
18906
+ pageToken?: (string|null);
18907
+
18908
+ /** SearchSpacesRequest query */
18909
+ query?: (string|null);
18910
+
18911
+ /** SearchSpacesRequest orderBy */
18912
+ orderBy?: (string|null);
18913
+ }
18914
+
18915
+ /** Represents a SearchSpacesRequest. */
18916
+ class SearchSpacesRequest implements ISearchSpacesRequest {
18917
+
18918
+ /**
18919
+ * Constructs a new SearchSpacesRequest.
18920
+ * @param [properties] Properties to set
18921
+ */
18922
+ constructor(properties?: google.chat.v1.ISearchSpacesRequest);
18923
+
18924
+ /** SearchSpacesRequest useAdminAccess. */
18925
+ public useAdminAccess: boolean;
18926
+
18927
+ /** SearchSpacesRequest pageSize. */
18928
+ public pageSize: number;
18929
+
18930
+ /** SearchSpacesRequest pageToken. */
18931
+ public pageToken: string;
18932
+
18933
+ /** SearchSpacesRequest query. */
18934
+ public query: string;
18935
+
18936
+ /** SearchSpacesRequest orderBy. */
18937
+ public orderBy: string;
18938
+
18939
+ /**
18940
+ * Creates a new SearchSpacesRequest instance using the specified properties.
18941
+ * @param [properties] Properties to set
18942
+ * @returns SearchSpacesRequest instance
18943
+ */
18944
+ public static create(properties?: google.chat.v1.ISearchSpacesRequest): google.chat.v1.SearchSpacesRequest;
18945
+
18946
+ /**
18947
+ * Encodes the specified SearchSpacesRequest message. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
18948
+ * @param message SearchSpacesRequest message or plain object to encode
18949
+ * @param [writer] Writer to encode to
18950
+ * @returns Writer
18951
+ */
18952
+ public static encode(message: google.chat.v1.ISearchSpacesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
18953
+
18954
+ /**
18955
+ * Encodes the specified SearchSpacesRequest message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
18956
+ * @param message SearchSpacesRequest message or plain object to encode
18957
+ * @param [writer] Writer to encode to
18958
+ * @returns Writer
18959
+ */
18960
+ public static encodeDelimited(message: google.chat.v1.ISearchSpacesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
18961
+
18962
+ /**
18963
+ * Decodes a SearchSpacesRequest message from the specified reader or buffer.
18964
+ * @param reader Reader or buffer to decode from
18965
+ * @param [length] Message length if known beforehand
18966
+ * @returns SearchSpacesRequest
18967
+ * @throws {Error} If the payload is not a reader or valid buffer
18968
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18969
+ */
18970
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.SearchSpacesRequest;
18971
+
18972
+ /**
18973
+ * Decodes a SearchSpacesRequest message from the specified reader or buffer, length delimited.
18974
+ * @param reader Reader or buffer to decode from
18975
+ * @returns SearchSpacesRequest
18976
+ * @throws {Error} If the payload is not a reader or valid buffer
18977
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
18978
+ */
18979
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.SearchSpacesRequest;
18980
+
18981
+ /**
18982
+ * Verifies a SearchSpacesRequest message.
18983
+ * @param message Plain object to verify
18984
+ * @returns `null` if valid, otherwise the reason why it is not
18985
+ */
18986
+ public static verify(message: { [k: string]: any }): (string|null);
18987
+
18988
+ /**
18989
+ * Creates a SearchSpacesRequest message from a plain object. Also converts values to their respective internal types.
18990
+ * @param object Plain object
18991
+ * @returns SearchSpacesRequest
18992
+ */
18993
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.SearchSpacesRequest;
18994
+
18995
+ /**
18996
+ * Creates a plain object from a SearchSpacesRequest message. Also converts values to other types if specified.
18997
+ * @param message SearchSpacesRequest
18998
+ * @param [options] Conversion options
18999
+ * @returns Plain object
19000
+ */
19001
+ public static toObject(message: google.chat.v1.SearchSpacesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
19002
+
19003
+ /**
19004
+ * Converts this SearchSpacesRequest to JSON.
19005
+ * @returns JSON object
19006
+ */
19007
+ public toJSON(): { [k: string]: any };
19008
+
19009
+ /**
19010
+ * Gets the default type url for SearchSpacesRequest
19011
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
19012
+ * @returns The default type url
19013
+ */
19014
+ public static getTypeUrl(typeUrlPrefix?: string): string;
19015
+ }
19016
+
19017
+ /** Properties of a SearchSpacesResponse. */
19018
+ interface ISearchSpacesResponse {
19019
+
19020
+ /** SearchSpacesResponse spaces */
19021
+ spaces?: (google.chat.v1.ISpace[]|null);
19022
+
19023
+ /** SearchSpacesResponse nextPageToken */
19024
+ nextPageToken?: (string|null);
19025
+
19026
+ /** SearchSpacesResponse totalSize */
19027
+ totalSize?: (number|null);
19028
+ }
19029
+
19030
+ /** Represents a SearchSpacesResponse. */
19031
+ class SearchSpacesResponse implements ISearchSpacesResponse {
19032
+
19033
+ /**
19034
+ * Constructs a new SearchSpacesResponse.
19035
+ * @param [properties] Properties to set
19036
+ */
19037
+ constructor(properties?: google.chat.v1.ISearchSpacesResponse);
19038
+
19039
+ /** SearchSpacesResponse spaces. */
19040
+ public spaces: google.chat.v1.ISpace[];
19041
+
19042
+ /** SearchSpacesResponse nextPageToken. */
19043
+ public nextPageToken: string;
19044
+
19045
+ /** SearchSpacesResponse totalSize. */
19046
+ public totalSize: number;
19047
+
19048
+ /**
19049
+ * Creates a new SearchSpacesResponse instance using the specified properties.
19050
+ * @param [properties] Properties to set
19051
+ * @returns SearchSpacesResponse instance
19052
+ */
19053
+ public static create(properties?: google.chat.v1.ISearchSpacesResponse): google.chat.v1.SearchSpacesResponse;
19054
+
19055
+ /**
19056
+ * Encodes the specified SearchSpacesResponse message. Does not implicitly {@link google.chat.v1.SearchSpacesResponse.verify|verify} messages.
19057
+ * @param message SearchSpacesResponse message or plain object to encode
19058
+ * @param [writer] Writer to encode to
19059
+ * @returns Writer
19060
+ */
19061
+ public static encode(message: google.chat.v1.ISearchSpacesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
19062
+
19063
+ /**
19064
+ * Encodes the specified SearchSpacesResponse message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesResponse.verify|verify} messages.
19065
+ * @param message SearchSpacesResponse message or plain object to encode
19066
+ * @param [writer] Writer to encode to
19067
+ * @returns Writer
19068
+ */
19069
+ public static encodeDelimited(message: google.chat.v1.ISearchSpacesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
19070
+
19071
+ /**
19072
+ * Decodes a SearchSpacesResponse message from the specified reader or buffer.
19073
+ * @param reader Reader or buffer to decode from
19074
+ * @param [length] Message length if known beforehand
19075
+ * @returns SearchSpacesResponse
19076
+ * @throws {Error} If the payload is not a reader or valid buffer
19077
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19078
+ */
19079
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.SearchSpacesResponse;
19080
+
19081
+ /**
19082
+ * Decodes a SearchSpacesResponse message from the specified reader or buffer, length delimited.
19083
+ * @param reader Reader or buffer to decode from
19084
+ * @returns SearchSpacesResponse
19085
+ * @throws {Error} If the payload is not a reader or valid buffer
19086
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
19087
+ */
19088
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.SearchSpacesResponse;
19089
+
19090
+ /**
19091
+ * Verifies a SearchSpacesResponse message.
19092
+ * @param message Plain object to verify
19093
+ * @returns `null` if valid, otherwise the reason why it is not
19094
+ */
19095
+ public static verify(message: { [k: string]: any }): (string|null);
19096
+
19097
+ /**
19098
+ * Creates a SearchSpacesResponse message from a plain object. Also converts values to their respective internal types.
19099
+ * @param object Plain object
19100
+ * @returns SearchSpacesResponse
19101
+ */
19102
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.SearchSpacesResponse;
19103
+
19104
+ /**
19105
+ * Creates a plain object from a SearchSpacesResponse message. Also converts values to other types if specified.
19106
+ * @param message SearchSpacesResponse
19107
+ * @param [options] Conversion options
19108
+ * @returns Plain object
19109
+ */
19110
+ public static toObject(message: google.chat.v1.SearchSpacesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
19111
+
19112
+ /**
19113
+ * Converts this SearchSpacesResponse to JSON.
19114
+ * @returns JSON object
19115
+ */
19116
+ public toJSON(): { [k: string]: any };
19117
+
19118
+ /**
19119
+ * Gets the default type url for SearchSpacesResponse
19120
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
19121
+ * @returns The default type url
19122
+ */
19123
+ public static getTypeUrl(typeUrlPrefix?: string): string;
19124
+ }
19125
+
18602
19126
  /** Properties of a DeleteSpaceRequest. */
18603
19127
  interface IDeleteSpaceRequest {
18604
19128
 
18605
19129
  /** DeleteSpaceRequest name */
18606
19130
  name?: (string|null);
19131
+
19132
+ /** DeleteSpaceRequest useAdminAccess */
19133
+ useAdminAccess?: (boolean|null);
18607
19134
  }
18608
19135
 
18609
19136
  /** Represents a DeleteSpaceRequest. */
@@ -18618,6 +19145,9 @@ export namespace google {
18618
19145
  /** DeleteSpaceRequest name. */
18619
19146
  public name: string;
18620
19147
 
19148
+ /** DeleteSpaceRequest useAdminAccess. */
19149
+ public useAdminAccess: boolean;
19150
+
18621
19151
  /**
18622
19152
  * Creates a new DeleteSpaceRequest instance using the specified properties.
18623
19153
  * @param [properties] Properties to set