@google-apps/chat 0.23.0 → 0.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +8 -0
  2. package/build/protos/google/chat/v1/action_status.proto +1 -1
  3. package/build/protos/google/chat/v1/annotation.proto +1 -1
  4. package/build/protos/google/chat/v1/attachment.proto +1 -1
  5. package/build/protos/google/chat/v1/chat_service.proto +178 -12
  6. package/build/protos/google/chat/v1/contextual_addon.proto +1 -1
  7. package/build/protos/google/chat/v1/deletion_metadata.proto +1 -1
  8. package/build/protos/google/chat/v1/event_payload.proto +1 -1
  9. package/build/protos/google/chat/v1/group.proto +1 -1
  10. package/build/protos/google/chat/v1/history_state.proto +1 -1
  11. package/build/protos/google/chat/v1/matched_url.proto +1 -1
  12. package/build/protos/google/chat/v1/membership.proto +1 -1
  13. package/build/protos/google/chat/v1/message.proto +41 -0
  14. package/build/protos/google/chat/v1/reaction.proto +1 -1
  15. package/build/protos/google/chat/v1/section.proto +344 -0
  16. package/build/protos/google/chat/v1/slash_command.proto +1 -1
  17. package/build/protos/google/chat/v1/space.proto +81 -1
  18. package/build/protos/google/chat/v1/space_event.proto +1 -1
  19. package/build/protos/google/chat/v1/space_notification_setting.proto +1 -1
  20. package/build/protos/google/chat/v1/space_read_state.proto +1 -1
  21. package/build/protos/google/chat/v1/space_setup.proto +1 -1
  22. package/build/protos/google/chat/v1/thread_read_state.proto +1 -1
  23. package/build/protos/google/chat/v1/user.proto +1 -1
  24. package/build/protos/google/chat/v1/widgets.proto +1 -1
  25. package/build/protos/protos.d.ts +1982 -85
  26. package/build/protos/protos.js +5081 -693
  27. package/build/protos/protos.json +520 -2
  28. package/build/src/v1/chat_service_client.d.ts +797 -11
  29. package/build/src/v1/chat_service_client.js +744 -2
  30. package/build/src/v1/chat_service_client.js.map +1 -1
  31. package/build/src/v1/chat_service_client_config.json +40 -0
  32. package/build/src/v1/chat_service_proto_list.json +1 -0
  33. package/build/src/v1/gapic_metadata.json +92 -0
  34. package/package.json +10 -2
@@ -14501,6 +14501,20 @@ export namespace google {
14501
14501
  */
14502
14502
  public findDirectMessage(request: google.chat.v1.IFindDirectMessageRequest): Promise<google.chat.v1.Space>;
14503
14503
 
14504
+ /**
14505
+ * Calls FindGroupChats.
14506
+ * @param request FindGroupChatsRequest message or plain object
14507
+ * @param callback Node-style callback called with the error, if any, and FindGroupChatsResponse
14508
+ */
14509
+ public findGroupChats(request: google.chat.v1.IFindGroupChatsRequest, callback: google.chat.v1.ChatService.FindGroupChatsCallback): void;
14510
+
14511
+ /**
14512
+ * Calls FindGroupChats.
14513
+ * @param request FindGroupChatsRequest message or plain object
14514
+ * @returns Promise
14515
+ */
14516
+ public findGroupChats(request: google.chat.v1.IFindGroupChatsRequest): Promise<google.chat.v1.FindGroupChatsResponse>;
14517
+
14504
14518
  /**
14505
14519
  * Calls CreateMembership.
14506
14520
  * @param request CreateMembershipRequest message or plain object
@@ -14738,6 +14752,104 @@ export namespace google {
14738
14752
  * @returns Promise
14739
14753
  */
14740
14754
  public updateSpaceNotificationSetting(request: google.chat.v1.IUpdateSpaceNotificationSettingRequest): Promise<google.chat.v1.SpaceNotificationSetting>;
14755
+
14756
+ /**
14757
+ * Calls CreateSection.
14758
+ * @param request CreateSectionRequest message or plain object
14759
+ * @param callback Node-style callback called with the error, if any, and Section
14760
+ */
14761
+ public createSection(request: google.chat.v1.ICreateSectionRequest, callback: google.chat.v1.ChatService.CreateSectionCallback): void;
14762
+
14763
+ /**
14764
+ * Calls CreateSection.
14765
+ * @param request CreateSectionRequest message or plain object
14766
+ * @returns Promise
14767
+ */
14768
+ public createSection(request: google.chat.v1.ICreateSectionRequest): Promise<google.chat.v1.Section>;
14769
+
14770
+ /**
14771
+ * Calls DeleteSection.
14772
+ * @param request DeleteSectionRequest message or plain object
14773
+ * @param callback Node-style callback called with the error, if any, and Empty
14774
+ */
14775
+ public deleteSection(request: google.chat.v1.IDeleteSectionRequest, callback: google.chat.v1.ChatService.DeleteSectionCallback): void;
14776
+
14777
+ /**
14778
+ * Calls DeleteSection.
14779
+ * @param request DeleteSectionRequest message or plain object
14780
+ * @returns Promise
14781
+ */
14782
+ public deleteSection(request: google.chat.v1.IDeleteSectionRequest): Promise<google.protobuf.Empty>;
14783
+
14784
+ /**
14785
+ * Calls UpdateSection.
14786
+ * @param request UpdateSectionRequest message or plain object
14787
+ * @param callback Node-style callback called with the error, if any, and Section
14788
+ */
14789
+ public updateSection(request: google.chat.v1.IUpdateSectionRequest, callback: google.chat.v1.ChatService.UpdateSectionCallback): void;
14790
+
14791
+ /**
14792
+ * Calls UpdateSection.
14793
+ * @param request UpdateSectionRequest message or plain object
14794
+ * @returns Promise
14795
+ */
14796
+ public updateSection(request: google.chat.v1.IUpdateSectionRequest): Promise<google.chat.v1.Section>;
14797
+
14798
+ /**
14799
+ * Calls ListSections.
14800
+ * @param request ListSectionsRequest message or plain object
14801
+ * @param callback Node-style callback called with the error, if any, and ListSectionsResponse
14802
+ */
14803
+ public listSections(request: google.chat.v1.IListSectionsRequest, callback: google.chat.v1.ChatService.ListSectionsCallback): void;
14804
+
14805
+ /**
14806
+ * Calls ListSections.
14807
+ * @param request ListSectionsRequest message or plain object
14808
+ * @returns Promise
14809
+ */
14810
+ public listSections(request: google.chat.v1.IListSectionsRequest): Promise<google.chat.v1.ListSectionsResponse>;
14811
+
14812
+ /**
14813
+ * Calls PositionSection.
14814
+ * @param request PositionSectionRequest message or plain object
14815
+ * @param callback Node-style callback called with the error, if any, and PositionSectionResponse
14816
+ */
14817
+ public positionSection(request: google.chat.v1.IPositionSectionRequest, callback: google.chat.v1.ChatService.PositionSectionCallback): void;
14818
+
14819
+ /**
14820
+ * Calls PositionSection.
14821
+ * @param request PositionSectionRequest message or plain object
14822
+ * @returns Promise
14823
+ */
14824
+ public positionSection(request: google.chat.v1.IPositionSectionRequest): Promise<google.chat.v1.PositionSectionResponse>;
14825
+
14826
+ /**
14827
+ * Calls ListSectionItems.
14828
+ * @param request ListSectionItemsRequest message or plain object
14829
+ * @param callback Node-style callback called with the error, if any, and ListSectionItemsResponse
14830
+ */
14831
+ public listSectionItems(request: google.chat.v1.IListSectionItemsRequest, callback: google.chat.v1.ChatService.ListSectionItemsCallback): void;
14832
+
14833
+ /**
14834
+ * Calls ListSectionItems.
14835
+ * @param request ListSectionItemsRequest message or plain object
14836
+ * @returns Promise
14837
+ */
14838
+ public listSectionItems(request: google.chat.v1.IListSectionItemsRequest): Promise<google.chat.v1.ListSectionItemsResponse>;
14839
+
14840
+ /**
14841
+ * Calls MoveSectionItem.
14842
+ * @param request MoveSectionItemRequest message or plain object
14843
+ * @param callback Node-style callback called with the error, if any, and MoveSectionItemResponse
14844
+ */
14845
+ public moveSectionItem(request: google.chat.v1.IMoveSectionItemRequest, callback: google.chat.v1.ChatService.MoveSectionItemCallback): void;
14846
+
14847
+ /**
14848
+ * Calls MoveSectionItem.
14849
+ * @param request MoveSectionItemRequest message or plain object
14850
+ * @returns Promise
14851
+ */
14852
+ public moveSectionItem(request: google.chat.v1.IMoveSectionItemRequest): Promise<google.chat.v1.MoveSectionItemResponse>;
14741
14853
  }
14742
14854
 
14743
14855
  namespace ChatService {
@@ -14868,6 +14980,13 @@ export namespace google {
14868
14980
  */
14869
14981
  type FindDirectMessageCallback = (error: (Error|null), response?: google.chat.v1.Space) => void;
14870
14982
 
14983
+ /**
14984
+ * Callback as used by {@link google.chat.v1.ChatService|findGroupChats}.
14985
+ * @param error Error, if any
14986
+ * @param [response] FindGroupChatsResponse
14987
+ */
14988
+ type FindGroupChatsCallback = (error: (Error|null), response?: google.chat.v1.FindGroupChatsResponse) => void;
14989
+
14871
14990
  /**
14872
14991
  * Callback as used by {@link google.chat.v1.ChatService|createMembership}.
14873
14992
  * @param error Error, if any
@@ -14986,6 +15105,55 @@ export namespace google {
14986
15105
  * @param [response] SpaceNotificationSetting
14987
15106
  */
14988
15107
  type UpdateSpaceNotificationSettingCallback = (error: (Error|null), response?: google.chat.v1.SpaceNotificationSetting) => void;
15108
+
15109
+ /**
15110
+ * Callback as used by {@link google.chat.v1.ChatService|createSection}.
15111
+ * @param error Error, if any
15112
+ * @param [response] Section
15113
+ */
15114
+ type CreateSectionCallback = (error: (Error|null), response?: google.chat.v1.Section) => void;
15115
+
15116
+ /**
15117
+ * Callback as used by {@link google.chat.v1.ChatService|deleteSection}.
15118
+ * @param error Error, if any
15119
+ * @param [response] Empty
15120
+ */
15121
+ type DeleteSectionCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
15122
+
15123
+ /**
15124
+ * Callback as used by {@link google.chat.v1.ChatService|updateSection}.
15125
+ * @param error Error, if any
15126
+ * @param [response] Section
15127
+ */
15128
+ type UpdateSectionCallback = (error: (Error|null), response?: google.chat.v1.Section) => void;
15129
+
15130
+ /**
15131
+ * Callback as used by {@link google.chat.v1.ChatService|listSections}.
15132
+ * @param error Error, if any
15133
+ * @param [response] ListSectionsResponse
15134
+ */
15135
+ type ListSectionsCallback = (error: (Error|null), response?: google.chat.v1.ListSectionsResponse) => void;
15136
+
15137
+ /**
15138
+ * Callback as used by {@link google.chat.v1.ChatService|positionSection}.
15139
+ * @param error Error, if any
15140
+ * @param [response] PositionSectionResponse
15141
+ */
15142
+ type PositionSectionCallback = (error: (Error|null), response?: google.chat.v1.PositionSectionResponse) => void;
15143
+
15144
+ /**
15145
+ * Callback as used by {@link google.chat.v1.ChatService|listSectionItems}.
15146
+ * @param error Error, if any
15147
+ * @param [response] ListSectionItemsResponse
15148
+ */
15149
+ type ListSectionItemsCallback = (error: (Error|null), response?: google.chat.v1.ListSectionItemsResponse) => void;
15150
+
15151
+ /**
15152
+ * Callback as used by {@link google.chat.v1.ChatService|moveSectionItem}.
15153
+ * @param error Error, if any
15154
+ * @param [response] MoveSectionItemResponse
15155
+ */
15156
+ type MoveSectionItemCallback = (error: (Error|null), response?: google.chat.v1.MoveSectionItemResponse) => void;
14989
15157
  }
14990
15158
 
14991
15159
  /** Properties of a Membership. */
@@ -15960,6 +16128,9 @@ export namespace google {
15960
16128
  /** Message threadReply */
15961
16129
  threadReply?: (boolean|null);
15962
16130
 
16131
+ /** Message silent */
16132
+ silent?: (boolean|null);
16133
+
15963
16134
  /** Message clientAssignedMessageId */
15964
16135
  clientAssignedMessageId?: (string|null);
15965
16136
 
@@ -16048,6 +16219,9 @@ export namespace google {
16048
16219
  /** Message threadReply. */
16049
16220
  public threadReply: boolean;
16050
16221
 
16222
+ /** Message silent. */
16223
+ public silent: boolean;
16224
+
16051
16225
  /** Message clientAssignedMessageId. */
16052
16226
  public clientAssignedMessageId: string;
16053
16227
 
@@ -17462,6 +17636,9 @@ export namespace google {
17462
17636
 
17463
17637
  /** CreateMessageRequest messageId */
17464
17638
  messageId?: (string|null);
17639
+
17640
+ /** CreateMessageRequest createMessageNotificationOptions */
17641
+ createMessageNotificationOptions?: (google.chat.v1.ICreateMessageNotificationOptions|null);
17465
17642
  }
17466
17643
 
17467
17644
  /** Represents a CreateMessageRequest. */
@@ -17491,6 +17668,9 @@ export namespace google {
17491
17668
  /** CreateMessageRequest messageId. */
17492
17669
  public messageId: string;
17493
17670
 
17671
+ /** CreateMessageRequest createMessageNotificationOptions. */
17672
+ public createMessageNotificationOptions?: (google.chat.v1.ICreateMessageNotificationOptions|null);
17673
+
17494
17674
  /**
17495
17675
  * Creates a new CreateMessageRequest instance using the specified properties.
17496
17676
  * @param [properties] Properties to set
@@ -17579,6 +17759,113 @@ export namespace google {
17579
17759
  }
17580
17760
  }
17581
17761
 
17762
+ /** Properties of a CreateMessageNotificationOptions. */
17763
+ interface ICreateMessageNotificationOptions {
17764
+
17765
+ /** CreateMessageNotificationOptions notificationType */
17766
+ notificationType?: (google.chat.v1.CreateMessageNotificationOptions.NotificationType|keyof typeof google.chat.v1.CreateMessageNotificationOptions.NotificationType|null);
17767
+ }
17768
+
17769
+ /** Represents a CreateMessageNotificationOptions. */
17770
+ class CreateMessageNotificationOptions implements ICreateMessageNotificationOptions {
17771
+
17772
+ /**
17773
+ * Constructs a new CreateMessageNotificationOptions.
17774
+ * @param [properties] Properties to set
17775
+ */
17776
+ constructor(properties?: google.chat.v1.ICreateMessageNotificationOptions);
17777
+
17778
+ /** CreateMessageNotificationOptions notificationType. */
17779
+ public notificationType: (google.chat.v1.CreateMessageNotificationOptions.NotificationType|keyof typeof google.chat.v1.CreateMessageNotificationOptions.NotificationType);
17780
+
17781
+ /**
17782
+ * Creates a new CreateMessageNotificationOptions instance using the specified properties.
17783
+ * @param [properties] Properties to set
17784
+ * @returns CreateMessageNotificationOptions instance
17785
+ */
17786
+ public static create(properties?: google.chat.v1.ICreateMessageNotificationOptions): google.chat.v1.CreateMessageNotificationOptions;
17787
+
17788
+ /**
17789
+ * Encodes the specified CreateMessageNotificationOptions message. Does not implicitly {@link google.chat.v1.CreateMessageNotificationOptions.verify|verify} messages.
17790
+ * @param message CreateMessageNotificationOptions message or plain object to encode
17791
+ * @param [writer] Writer to encode to
17792
+ * @returns Writer
17793
+ */
17794
+ public static encode(message: google.chat.v1.ICreateMessageNotificationOptions, writer?: $protobuf.Writer): $protobuf.Writer;
17795
+
17796
+ /**
17797
+ * Encodes the specified CreateMessageNotificationOptions message, length delimited. Does not implicitly {@link google.chat.v1.CreateMessageNotificationOptions.verify|verify} messages.
17798
+ * @param message CreateMessageNotificationOptions message or plain object to encode
17799
+ * @param [writer] Writer to encode to
17800
+ * @returns Writer
17801
+ */
17802
+ public static encodeDelimited(message: google.chat.v1.ICreateMessageNotificationOptions, writer?: $protobuf.Writer): $protobuf.Writer;
17803
+
17804
+ /**
17805
+ * Decodes a CreateMessageNotificationOptions message from the specified reader or buffer.
17806
+ * @param reader Reader or buffer to decode from
17807
+ * @param [length] Message length if known beforehand
17808
+ * @returns CreateMessageNotificationOptions
17809
+ * @throws {Error} If the payload is not a reader or valid buffer
17810
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17811
+ */
17812
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.CreateMessageNotificationOptions;
17813
+
17814
+ /**
17815
+ * Decodes a CreateMessageNotificationOptions message from the specified reader or buffer, length delimited.
17816
+ * @param reader Reader or buffer to decode from
17817
+ * @returns CreateMessageNotificationOptions
17818
+ * @throws {Error} If the payload is not a reader or valid buffer
17819
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17820
+ */
17821
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.CreateMessageNotificationOptions;
17822
+
17823
+ /**
17824
+ * Verifies a CreateMessageNotificationOptions message.
17825
+ * @param message Plain object to verify
17826
+ * @returns `null` if valid, otherwise the reason why it is not
17827
+ */
17828
+ public static verify(message: { [k: string]: any }): (string|null);
17829
+
17830
+ /**
17831
+ * Creates a CreateMessageNotificationOptions message from a plain object. Also converts values to their respective internal types.
17832
+ * @param object Plain object
17833
+ * @returns CreateMessageNotificationOptions
17834
+ */
17835
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.CreateMessageNotificationOptions;
17836
+
17837
+ /**
17838
+ * Creates a plain object from a CreateMessageNotificationOptions message. Also converts values to other types if specified.
17839
+ * @param message CreateMessageNotificationOptions
17840
+ * @param [options] Conversion options
17841
+ * @returns Plain object
17842
+ */
17843
+ public static toObject(message: google.chat.v1.CreateMessageNotificationOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
17844
+
17845
+ /**
17846
+ * Converts this CreateMessageNotificationOptions to JSON.
17847
+ * @returns JSON object
17848
+ */
17849
+ public toJSON(): { [k: string]: any };
17850
+
17851
+ /**
17852
+ * Gets the default type url for CreateMessageNotificationOptions
17853
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
17854
+ * @returns The default type url
17855
+ */
17856
+ public static getTypeUrl(typeUrlPrefix?: string): string;
17857
+ }
17858
+
17859
+ namespace CreateMessageNotificationOptions {
17860
+
17861
+ /** NotificationType enum. */
17862
+ enum NotificationType {
17863
+ NOTIFICATION_TYPE_NONE = 0,
17864
+ NOTIFICATION_TYPE_FORCE_NOTIFY = 2,
17865
+ NOTIFICATION_TYPE_SILENT = 3
17866
+ }
17867
+ }
17868
+
17582
17869
  /** Properties of a ListMessagesRequest. */
17583
17870
  interface IListMessagesRequest {
17584
17871
 
@@ -21545,186 +21832,404 @@ export namespace google {
21545
21832
  public static getTypeUrl(typeUrlPrefix?: string): string;
21546
21833
  }
21547
21834
 
21548
- /** Properties of an UpdateSpaceRequest. */
21549
- interface IUpdateSpaceRequest {
21835
+ /** Properties of a FindGroupChatsRequest. */
21836
+ interface IFindGroupChatsRequest {
21550
21837
 
21551
- /** UpdateSpaceRequest space */
21552
- space?: (google.chat.v1.ISpace|null);
21838
+ /** FindGroupChatsRequest users */
21839
+ users?: (string[]|null);
21553
21840
 
21554
- /** UpdateSpaceRequest updateMask */
21555
- updateMask?: (google.protobuf.IFieldMask|null);
21841
+ /** FindGroupChatsRequest pageSize */
21842
+ pageSize?: (number|null);
21556
21843
 
21557
- /** UpdateSpaceRequest useAdminAccess */
21558
- useAdminAccess?: (boolean|null);
21844
+ /** FindGroupChatsRequest pageToken */
21845
+ pageToken?: (string|null);
21846
+
21847
+ /** FindGroupChatsRequest spaceView */
21848
+ spaceView?: (google.chat.v1.SpaceView|keyof typeof google.chat.v1.SpaceView|null);
21559
21849
  }
21560
21850
 
21561
- /** Represents an UpdateSpaceRequest. */
21562
- class UpdateSpaceRequest implements IUpdateSpaceRequest {
21851
+ /** Represents a FindGroupChatsRequest. */
21852
+ class FindGroupChatsRequest implements IFindGroupChatsRequest {
21563
21853
 
21564
21854
  /**
21565
- * Constructs a new UpdateSpaceRequest.
21855
+ * Constructs a new FindGroupChatsRequest.
21566
21856
  * @param [properties] Properties to set
21567
21857
  */
21568
- constructor(properties?: google.chat.v1.IUpdateSpaceRequest);
21858
+ constructor(properties?: google.chat.v1.IFindGroupChatsRequest);
21569
21859
 
21570
- /** UpdateSpaceRequest space. */
21571
- public space?: (google.chat.v1.ISpace|null);
21860
+ /** FindGroupChatsRequest users. */
21861
+ public users: string[];
21572
21862
 
21573
- /** UpdateSpaceRequest updateMask. */
21574
- public updateMask?: (google.protobuf.IFieldMask|null);
21863
+ /** FindGroupChatsRequest pageSize. */
21864
+ public pageSize: number;
21575
21865
 
21576
- /** UpdateSpaceRequest useAdminAccess. */
21577
- public useAdminAccess: boolean;
21866
+ /** FindGroupChatsRequest pageToken. */
21867
+ public pageToken: string;
21868
+
21869
+ /** FindGroupChatsRequest spaceView. */
21870
+ public spaceView: (google.chat.v1.SpaceView|keyof typeof google.chat.v1.SpaceView);
21578
21871
 
21579
21872
  /**
21580
- * Creates a new UpdateSpaceRequest instance using the specified properties.
21873
+ * Creates a new FindGroupChatsRequest instance using the specified properties.
21581
21874
  * @param [properties] Properties to set
21582
- * @returns UpdateSpaceRequest instance
21875
+ * @returns FindGroupChatsRequest instance
21583
21876
  */
21584
- public static create(properties?: google.chat.v1.IUpdateSpaceRequest): google.chat.v1.UpdateSpaceRequest;
21877
+ public static create(properties?: google.chat.v1.IFindGroupChatsRequest): google.chat.v1.FindGroupChatsRequest;
21585
21878
 
21586
21879
  /**
21587
- * Encodes the specified UpdateSpaceRequest message. Does not implicitly {@link google.chat.v1.UpdateSpaceRequest.verify|verify} messages.
21588
- * @param message UpdateSpaceRequest message or plain object to encode
21880
+ * Encodes the specified FindGroupChatsRequest message. Does not implicitly {@link google.chat.v1.FindGroupChatsRequest.verify|verify} messages.
21881
+ * @param message FindGroupChatsRequest message or plain object to encode
21589
21882
  * @param [writer] Writer to encode to
21590
21883
  * @returns Writer
21591
21884
  */
21592
- public static encode(message: google.chat.v1.IUpdateSpaceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
21885
+ public static encode(message: google.chat.v1.IFindGroupChatsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
21593
21886
 
21594
21887
  /**
21595
- * Encodes the specified UpdateSpaceRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateSpaceRequest.verify|verify} messages.
21596
- * @param message UpdateSpaceRequest message or plain object to encode
21888
+ * Encodes the specified FindGroupChatsRequest message, length delimited. Does not implicitly {@link google.chat.v1.FindGroupChatsRequest.verify|verify} messages.
21889
+ * @param message FindGroupChatsRequest message or plain object to encode
21597
21890
  * @param [writer] Writer to encode to
21598
21891
  * @returns Writer
21599
21892
  */
21600
- public static encodeDelimited(message: google.chat.v1.IUpdateSpaceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
21893
+ public static encodeDelimited(message: google.chat.v1.IFindGroupChatsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
21601
21894
 
21602
21895
  /**
21603
- * Decodes an UpdateSpaceRequest message from the specified reader or buffer.
21896
+ * Decodes a FindGroupChatsRequest message from the specified reader or buffer.
21604
21897
  * @param reader Reader or buffer to decode from
21605
21898
  * @param [length] Message length if known beforehand
21606
- * @returns UpdateSpaceRequest
21899
+ * @returns FindGroupChatsRequest
21607
21900
  * @throws {Error} If the payload is not a reader or valid buffer
21608
21901
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
21609
21902
  */
21610
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.UpdateSpaceRequest;
21903
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.FindGroupChatsRequest;
21611
21904
 
21612
21905
  /**
21613
- * Decodes an UpdateSpaceRequest message from the specified reader or buffer, length delimited.
21906
+ * Decodes a FindGroupChatsRequest message from the specified reader or buffer, length delimited.
21614
21907
  * @param reader Reader or buffer to decode from
21615
- * @returns UpdateSpaceRequest
21908
+ * @returns FindGroupChatsRequest
21616
21909
  * @throws {Error} If the payload is not a reader or valid buffer
21617
21910
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
21618
21911
  */
21619
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.UpdateSpaceRequest;
21912
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.FindGroupChatsRequest;
21620
21913
 
21621
21914
  /**
21622
- * Verifies an UpdateSpaceRequest message.
21915
+ * Verifies a FindGroupChatsRequest message.
21623
21916
  * @param message Plain object to verify
21624
21917
  * @returns `null` if valid, otherwise the reason why it is not
21625
21918
  */
21626
21919
  public static verify(message: { [k: string]: any }): (string|null);
21627
21920
 
21628
21921
  /**
21629
- * Creates an UpdateSpaceRequest message from a plain object. Also converts values to their respective internal types.
21922
+ * Creates a FindGroupChatsRequest message from a plain object. Also converts values to their respective internal types.
21630
21923
  * @param object Plain object
21631
- * @returns UpdateSpaceRequest
21924
+ * @returns FindGroupChatsRequest
21632
21925
  */
21633
- public static fromObject(object: { [k: string]: any }): google.chat.v1.UpdateSpaceRequest;
21926
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.FindGroupChatsRequest;
21634
21927
 
21635
21928
  /**
21636
- * Creates a plain object from an UpdateSpaceRequest message. Also converts values to other types if specified.
21637
- * @param message UpdateSpaceRequest
21929
+ * Creates a plain object from a FindGroupChatsRequest message. Also converts values to other types if specified.
21930
+ * @param message FindGroupChatsRequest
21638
21931
  * @param [options] Conversion options
21639
21932
  * @returns Plain object
21640
21933
  */
21641
- public static toObject(message: google.chat.v1.UpdateSpaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
21934
+ public static toObject(message: google.chat.v1.FindGroupChatsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
21642
21935
 
21643
21936
  /**
21644
- * Converts this UpdateSpaceRequest to JSON.
21937
+ * Converts this FindGroupChatsRequest to JSON.
21645
21938
  * @returns JSON object
21646
21939
  */
21647
21940
  public toJSON(): { [k: string]: any };
21648
21941
 
21649
21942
  /**
21650
- * Gets the default type url for UpdateSpaceRequest
21943
+ * Gets the default type url for FindGroupChatsRequest
21651
21944
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
21652
21945
  * @returns The default type url
21653
21946
  */
21654
21947
  public static getTypeUrl(typeUrlPrefix?: string): string;
21655
21948
  }
21656
21949
 
21657
- /** Properties of a SearchSpacesRequest. */
21658
- interface ISearchSpacesRequest {
21659
-
21660
- /** SearchSpacesRequest useAdminAccess */
21661
- useAdminAccess?: (boolean|null);
21662
-
21663
- /** SearchSpacesRequest pageSize */
21664
- pageSize?: (number|null);
21665
-
21666
- /** SearchSpacesRequest pageToken */
21667
- pageToken?: (string|null);
21950
+ /** Properties of a FindGroupChatsResponse. */
21951
+ interface IFindGroupChatsResponse {
21668
21952
 
21669
- /** SearchSpacesRequest query */
21670
- query?: (string|null);
21953
+ /** FindGroupChatsResponse spaces */
21954
+ spaces?: (google.chat.v1.ISpace[]|null);
21671
21955
 
21672
- /** SearchSpacesRequest orderBy */
21673
- orderBy?: (string|null);
21956
+ /** FindGroupChatsResponse nextPageToken */
21957
+ nextPageToken?: (string|null);
21674
21958
  }
21675
21959
 
21676
- /** Represents a SearchSpacesRequest. */
21677
- class SearchSpacesRequest implements ISearchSpacesRequest {
21960
+ /** Represents a FindGroupChatsResponse. */
21961
+ class FindGroupChatsResponse implements IFindGroupChatsResponse {
21678
21962
 
21679
21963
  /**
21680
- * Constructs a new SearchSpacesRequest.
21964
+ * Constructs a new FindGroupChatsResponse.
21681
21965
  * @param [properties] Properties to set
21682
21966
  */
21683
- constructor(properties?: google.chat.v1.ISearchSpacesRequest);
21684
-
21685
- /** SearchSpacesRequest useAdminAccess. */
21686
- public useAdminAccess: boolean;
21687
-
21688
- /** SearchSpacesRequest pageSize. */
21689
- public pageSize: number;
21967
+ constructor(properties?: google.chat.v1.IFindGroupChatsResponse);
21690
21968
 
21691
- /** SearchSpacesRequest pageToken. */
21692
- public pageToken: string;
21693
-
21694
- /** SearchSpacesRequest query. */
21695
- public query: string;
21969
+ /** FindGroupChatsResponse spaces. */
21970
+ public spaces: google.chat.v1.ISpace[];
21696
21971
 
21697
- /** SearchSpacesRequest orderBy. */
21698
- public orderBy: string;
21972
+ /** FindGroupChatsResponse nextPageToken. */
21973
+ public nextPageToken: string;
21699
21974
 
21700
21975
  /**
21701
- * Creates a new SearchSpacesRequest instance using the specified properties.
21976
+ * Creates a new FindGroupChatsResponse instance using the specified properties.
21702
21977
  * @param [properties] Properties to set
21703
- * @returns SearchSpacesRequest instance
21978
+ * @returns FindGroupChatsResponse instance
21704
21979
  */
21705
- public static create(properties?: google.chat.v1.ISearchSpacesRequest): google.chat.v1.SearchSpacesRequest;
21980
+ public static create(properties?: google.chat.v1.IFindGroupChatsResponse): google.chat.v1.FindGroupChatsResponse;
21706
21981
 
21707
21982
  /**
21708
- * Encodes the specified SearchSpacesRequest message. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
21709
- * @param message SearchSpacesRequest message or plain object to encode
21983
+ * Encodes the specified FindGroupChatsResponse message. Does not implicitly {@link google.chat.v1.FindGroupChatsResponse.verify|verify} messages.
21984
+ * @param message FindGroupChatsResponse message or plain object to encode
21710
21985
  * @param [writer] Writer to encode to
21711
21986
  * @returns Writer
21712
21987
  */
21713
- public static encode(message: google.chat.v1.ISearchSpacesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
21988
+ public static encode(message: google.chat.v1.IFindGroupChatsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
21714
21989
 
21715
21990
  /**
21716
- * Encodes the specified SearchSpacesRequest message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
21717
- * @param message SearchSpacesRequest message or plain object to encode
21991
+ * Encodes the specified FindGroupChatsResponse message, length delimited. Does not implicitly {@link google.chat.v1.FindGroupChatsResponse.verify|verify} messages.
21992
+ * @param message FindGroupChatsResponse message or plain object to encode
21718
21993
  * @param [writer] Writer to encode to
21719
21994
  * @returns Writer
21720
21995
  */
21721
- public static encodeDelimited(message: google.chat.v1.ISearchSpacesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
21996
+ public static encodeDelimited(message: google.chat.v1.IFindGroupChatsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
21722
21997
 
21723
21998
  /**
21724
- * Decodes a SearchSpacesRequest message from the specified reader or buffer.
21999
+ * Decodes a FindGroupChatsResponse message from the specified reader or buffer.
21725
22000
  * @param reader Reader or buffer to decode from
21726
22001
  * @param [length] Message length if known beforehand
21727
- * @returns SearchSpacesRequest
22002
+ * @returns FindGroupChatsResponse
22003
+ * @throws {Error} If the payload is not a reader or valid buffer
22004
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22005
+ */
22006
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.FindGroupChatsResponse;
22007
+
22008
+ /**
22009
+ * Decodes a FindGroupChatsResponse message from the specified reader or buffer, length delimited.
22010
+ * @param reader Reader or buffer to decode from
22011
+ * @returns FindGroupChatsResponse
22012
+ * @throws {Error} If the payload is not a reader or valid buffer
22013
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22014
+ */
22015
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.FindGroupChatsResponse;
22016
+
22017
+ /**
22018
+ * Verifies a FindGroupChatsResponse message.
22019
+ * @param message Plain object to verify
22020
+ * @returns `null` if valid, otherwise the reason why it is not
22021
+ */
22022
+ public static verify(message: { [k: string]: any }): (string|null);
22023
+
22024
+ /**
22025
+ * Creates a FindGroupChatsResponse message from a plain object. Also converts values to their respective internal types.
22026
+ * @param object Plain object
22027
+ * @returns FindGroupChatsResponse
22028
+ */
22029
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.FindGroupChatsResponse;
22030
+
22031
+ /**
22032
+ * Creates a plain object from a FindGroupChatsResponse message. Also converts values to other types if specified.
22033
+ * @param message FindGroupChatsResponse
22034
+ * @param [options] Conversion options
22035
+ * @returns Plain object
22036
+ */
22037
+ public static toObject(message: google.chat.v1.FindGroupChatsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
22038
+
22039
+ /**
22040
+ * Converts this FindGroupChatsResponse to JSON.
22041
+ * @returns JSON object
22042
+ */
22043
+ public toJSON(): { [k: string]: any };
22044
+
22045
+ /**
22046
+ * Gets the default type url for FindGroupChatsResponse
22047
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
22048
+ * @returns The default type url
22049
+ */
22050
+ public static getTypeUrl(typeUrlPrefix?: string): string;
22051
+ }
22052
+
22053
+ /** Properties of an UpdateSpaceRequest. */
22054
+ interface IUpdateSpaceRequest {
22055
+
22056
+ /** UpdateSpaceRequest space */
22057
+ space?: (google.chat.v1.ISpace|null);
22058
+
22059
+ /** UpdateSpaceRequest updateMask */
22060
+ updateMask?: (google.protobuf.IFieldMask|null);
22061
+
22062
+ /** UpdateSpaceRequest useAdminAccess */
22063
+ useAdminAccess?: (boolean|null);
22064
+ }
22065
+
22066
+ /** Represents an UpdateSpaceRequest. */
22067
+ class UpdateSpaceRequest implements IUpdateSpaceRequest {
22068
+
22069
+ /**
22070
+ * Constructs a new UpdateSpaceRequest.
22071
+ * @param [properties] Properties to set
22072
+ */
22073
+ constructor(properties?: google.chat.v1.IUpdateSpaceRequest);
22074
+
22075
+ /** UpdateSpaceRequest space. */
22076
+ public space?: (google.chat.v1.ISpace|null);
22077
+
22078
+ /** UpdateSpaceRequest updateMask. */
22079
+ public updateMask?: (google.protobuf.IFieldMask|null);
22080
+
22081
+ /** UpdateSpaceRequest useAdminAccess. */
22082
+ public useAdminAccess: boolean;
22083
+
22084
+ /**
22085
+ * Creates a new UpdateSpaceRequest instance using the specified properties.
22086
+ * @param [properties] Properties to set
22087
+ * @returns UpdateSpaceRequest instance
22088
+ */
22089
+ public static create(properties?: google.chat.v1.IUpdateSpaceRequest): google.chat.v1.UpdateSpaceRequest;
22090
+
22091
+ /**
22092
+ * Encodes the specified UpdateSpaceRequest message. Does not implicitly {@link google.chat.v1.UpdateSpaceRequest.verify|verify} messages.
22093
+ * @param message UpdateSpaceRequest message or plain object to encode
22094
+ * @param [writer] Writer to encode to
22095
+ * @returns Writer
22096
+ */
22097
+ public static encode(message: google.chat.v1.IUpdateSpaceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
22098
+
22099
+ /**
22100
+ * Encodes the specified UpdateSpaceRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateSpaceRequest.verify|verify} messages.
22101
+ * @param message UpdateSpaceRequest message or plain object to encode
22102
+ * @param [writer] Writer to encode to
22103
+ * @returns Writer
22104
+ */
22105
+ public static encodeDelimited(message: google.chat.v1.IUpdateSpaceRequest, writer?: $protobuf.Writer): $protobuf.Writer;
22106
+
22107
+ /**
22108
+ * Decodes an UpdateSpaceRequest message from the specified reader or buffer.
22109
+ * @param reader Reader or buffer to decode from
22110
+ * @param [length] Message length if known beforehand
22111
+ * @returns UpdateSpaceRequest
22112
+ * @throws {Error} If the payload is not a reader or valid buffer
22113
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22114
+ */
22115
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.UpdateSpaceRequest;
22116
+
22117
+ /**
22118
+ * Decodes an UpdateSpaceRequest message from the specified reader or buffer, length delimited.
22119
+ * @param reader Reader or buffer to decode from
22120
+ * @returns UpdateSpaceRequest
22121
+ * @throws {Error} If the payload is not a reader or valid buffer
22122
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22123
+ */
22124
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.UpdateSpaceRequest;
22125
+
22126
+ /**
22127
+ * Verifies an UpdateSpaceRequest message.
22128
+ * @param message Plain object to verify
22129
+ * @returns `null` if valid, otherwise the reason why it is not
22130
+ */
22131
+ public static verify(message: { [k: string]: any }): (string|null);
22132
+
22133
+ /**
22134
+ * Creates an UpdateSpaceRequest message from a plain object. Also converts values to their respective internal types.
22135
+ * @param object Plain object
22136
+ * @returns UpdateSpaceRequest
22137
+ */
22138
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.UpdateSpaceRequest;
22139
+
22140
+ /**
22141
+ * Creates a plain object from an UpdateSpaceRequest message. Also converts values to other types if specified.
22142
+ * @param message UpdateSpaceRequest
22143
+ * @param [options] Conversion options
22144
+ * @returns Plain object
22145
+ */
22146
+ public static toObject(message: google.chat.v1.UpdateSpaceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
22147
+
22148
+ /**
22149
+ * Converts this UpdateSpaceRequest to JSON.
22150
+ * @returns JSON object
22151
+ */
22152
+ public toJSON(): { [k: string]: any };
22153
+
22154
+ /**
22155
+ * Gets the default type url for UpdateSpaceRequest
22156
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
22157
+ * @returns The default type url
22158
+ */
22159
+ public static getTypeUrl(typeUrlPrefix?: string): string;
22160
+ }
22161
+
22162
+ /** Properties of a SearchSpacesRequest. */
22163
+ interface ISearchSpacesRequest {
22164
+
22165
+ /** SearchSpacesRequest useAdminAccess */
22166
+ useAdminAccess?: (boolean|null);
22167
+
22168
+ /** SearchSpacesRequest pageSize */
22169
+ pageSize?: (number|null);
22170
+
22171
+ /** SearchSpacesRequest pageToken */
22172
+ pageToken?: (string|null);
22173
+
22174
+ /** SearchSpacesRequest query */
22175
+ query?: (string|null);
22176
+
22177
+ /** SearchSpacesRequest orderBy */
22178
+ orderBy?: (string|null);
22179
+ }
22180
+
22181
+ /** Represents a SearchSpacesRequest. */
22182
+ class SearchSpacesRequest implements ISearchSpacesRequest {
22183
+
22184
+ /**
22185
+ * Constructs a new SearchSpacesRequest.
22186
+ * @param [properties] Properties to set
22187
+ */
22188
+ constructor(properties?: google.chat.v1.ISearchSpacesRequest);
22189
+
22190
+ /** SearchSpacesRequest useAdminAccess. */
22191
+ public useAdminAccess: boolean;
22192
+
22193
+ /** SearchSpacesRequest pageSize. */
22194
+ public pageSize: number;
22195
+
22196
+ /** SearchSpacesRequest pageToken. */
22197
+ public pageToken: string;
22198
+
22199
+ /** SearchSpacesRequest query. */
22200
+ public query: string;
22201
+
22202
+ /** SearchSpacesRequest orderBy. */
22203
+ public orderBy: string;
22204
+
22205
+ /**
22206
+ * Creates a new SearchSpacesRequest instance using the specified properties.
22207
+ * @param [properties] Properties to set
22208
+ * @returns SearchSpacesRequest instance
22209
+ */
22210
+ public static create(properties?: google.chat.v1.ISearchSpacesRequest): google.chat.v1.SearchSpacesRequest;
22211
+
22212
+ /**
22213
+ * Encodes the specified SearchSpacesRequest message. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
22214
+ * @param message SearchSpacesRequest message or plain object to encode
22215
+ * @param [writer] Writer to encode to
22216
+ * @returns Writer
22217
+ */
22218
+ public static encode(message: google.chat.v1.ISearchSpacesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
22219
+
22220
+ /**
22221
+ * Encodes the specified SearchSpacesRequest message, length delimited. Does not implicitly {@link google.chat.v1.SearchSpacesRequest.verify|verify} messages.
22222
+ * @param message SearchSpacesRequest message or plain object to encode
22223
+ * @param [writer] Writer to encode to
22224
+ * @returns Writer
22225
+ */
22226
+ public static encodeDelimited(message: google.chat.v1.ISearchSpacesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
22227
+
22228
+ /**
22229
+ * Decodes a SearchSpacesRequest message from the specified reader or buffer.
22230
+ * @param reader Reader or buffer to decode from
22231
+ * @param [length] Message length if known beforehand
22232
+ * @returns SearchSpacesRequest
21728
22233
  * @throws {Error} If the payload is not a reader or valid buffer
21729
22234
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
21730
22235
  */
@@ -22181,6 +22686,13 @@ export namespace google {
22181
22686
  public static getTypeUrl(typeUrlPrefix?: string): string;
22182
22687
  }
22183
22688
 
22689
+ /** SpaceView enum. */
22690
+ enum SpaceView {
22691
+ SPACE_VIEW_UNSPECIFIED = 0,
22692
+ SPACE_VIEW_RESOURCE_NAME_ONLY = 3,
22693
+ SPACE_VIEW_EXPANDED = 4
22694
+ }
22695
+
22184
22696
  /** HistoryState enum. */
22185
22697
  enum HistoryState {
22186
22698
  HISTORY_STATE_UNSPECIFIED = 0,
@@ -22188,6 +22700,1391 @@ export namespace google {
22188
22700
  HISTORY_ON = 2
22189
22701
  }
22190
22702
 
22703
+ /** Properties of a Section. */
22704
+ interface ISection {
22705
+
22706
+ /** Section name */
22707
+ name?: (string|null);
22708
+
22709
+ /** Section displayName */
22710
+ displayName?: (string|null);
22711
+
22712
+ /** Section sortOrder */
22713
+ sortOrder?: (number|null);
22714
+
22715
+ /** Section type */
22716
+ type?: (google.chat.v1.Section.SectionType|keyof typeof google.chat.v1.Section.SectionType|null);
22717
+ }
22718
+
22719
+ /** Represents a Section. */
22720
+ class Section implements ISection {
22721
+
22722
+ /**
22723
+ * Constructs a new Section.
22724
+ * @param [properties] Properties to set
22725
+ */
22726
+ constructor(properties?: google.chat.v1.ISection);
22727
+
22728
+ /** Section name. */
22729
+ public name: string;
22730
+
22731
+ /** Section displayName. */
22732
+ public displayName: string;
22733
+
22734
+ /** Section sortOrder. */
22735
+ public sortOrder: number;
22736
+
22737
+ /** Section type. */
22738
+ public type: (google.chat.v1.Section.SectionType|keyof typeof google.chat.v1.Section.SectionType);
22739
+
22740
+ /**
22741
+ * Creates a new Section instance using the specified properties.
22742
+ * @param [properties] Properties to set
22743
+ * @returns Section instance
22744
+ */
22745
+ public static create(properties?: google.chat.v1.ISection): google.chat.v1.Section;
22746
+
22747
+ /**
22748
+ * Encodes the specified Section message. Does not implicitly {@link google.chat.v1.Section.verify|verify} messages.
22749
+ * @param message Section message or plain object to encode
22750
+ * @param [writer] Writer to encode to
22751
+ * @returns Writer
22752
+ */
22753
+ public static encode(message: google.chat.v1.ISection, writer?: $protobuf.Writer): $protobuf.Writer;
22754
+
22755
+ /**
22756
+ * Encodes the specified Section message, length delimited. Does not implicitly {@link google.chat.v1.Section.verify|verify} messages.
22757
+ * @param message Section message or plain object to encode
22758
+ * @param [writer] Writer to encode to
22759
+ * @returns Writer
22760
+ */
22761
+ public static encodeDelimited(message: google.chat.v1.ISection, writer?: $protobuf.Writer): $protobuf.Writer;
22762
+
22763
+ /**
22764
+ * Decodes a Section message from the specified reader or buffer.
22765
+ * @param reader Reader or buffer to decode from
22766
+ * @param [length] Message length if known beforehand
22767
+ * @returns Section
22768
+ * @throws {Error} If the payload is not a reader or valid buffer
22769
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22770
+ */
22771
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.Section;
22772
+
22773
+ /**
22774
+ * Decodes a Section message from the specified reader or buffer, length delimited.
22775
+ * @param reader Reader or buffer to decode from
22776
+ * @returns Section
22777
+ * @throws {Error} If the payload is not a reader or valid buffer
22778
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22779
+ */
22780
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.Section;
22781
+
22782
+ /**
22783
+ * Verifies a Section message.
22784
+ * @param message Plain object to verify
22785
+ * @returns `null` if valid, otherwise the reason why it is not
22786
+ */
22787
+ public static verify(message: { [k: string]: any }): (string|null);
22788
+
22789
+ /**
22790
+ * Creates a Section message from a plain object. Also converts values to their respective internal types.
22791
+ * @param object Plain object
22792
+ * @returns Section
22793
+ */
22794
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.Section;
22795
+
22796
+ /**
22797
+ * Creates a plain object from a Section message. Also converts values to other types if specified.
22798
+ * @param message Section
22799
+ * @param [options] Conversion options
22800
+ * @returns Plain object
22801
+ */
22802
+ public static toObject(message: google.chat.v1.Section, options?: $protobuf.IConversionOptions): { [k: string]: any };
22803
+
22804
+ /**
22805
+ * Converts this Section to JSON.
22806
+ * @returns JSON object
22807
+ */
22808
+ public toJSON(): { [k: string]: any };
22809
+
22810
+ /**
22811
+ * Gets the default type url for Section
22812
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
22813
+ * @returns The default type url
22814
+ */
22815
+ public static getTypeUrl(typeUrlPrefix?: string): string;
22816
+ }
22817
+
22818
+ namespace Section {
22819
+
22820
+ /** SectionType enum. */
22821
+ enum SectionType {
22822
+ SECTION_TYPE_UNSPECIFIED = 0,
22823
+ CUSTOM_SECTION = 1,
22824
+ DEFAULT_DIRECT_MESSAGES = 2,
22825
+ DEFAULT_SPACES = 3,
22826
+ DEFAULT_APPS = 6
22827
+ }
22828
+ }
22829
+
22830
+ /** Properties of a SectionItem. */
22831
+ interface ISectionItem {
22832
+
22833
+ /** SectionItem name */
22834
+ name?: (string|null);
22835
+
22836
+ /** SectionItem space */
22837
+ space?: (string|null);
22838
+ }
22839
+
22840
+ /** Represents a SectionItem. */
22841
+ class SectionItem implements ISectionItem {
22842
+
22843
+ /**
22844
+ * Constructs a new SectionItem.
22845
+ * @param [properties] Properties to set
22846
+ */
22847
+ constructor(properties?: google.chat.v1.ISectionItem);
22848
+
22849
+ /** SectionItem name. */
22850
+ public name: string;
22851
+
22852
+ /** SectionItem space. */
22853
+ public space?: (string|null);
22854
+
22855
+ /** SectionItem item. */
22856
+ public item?: "space";
22857
+
22858
+ /**
22859
+ * Creates a new SectionItem instance using the specified properties.
22860
+ * @param [properties] Properties to set
22861
+ * @returns SectionItem instance
22862
+ */
22863
+ public static create(properties?: google.chat.v1.ISectionItem): google.chat.v1.SectionItem;
22864
+
22865
+ /**
22866
+ * Encodes the specified SectionItem message. Does not implicitly {@link google.chat.v1.SectionItem.verify|verify} messages.
22867
+ * @param message SectionItem message or plain object to encode
22868
+ * @param [writer] Writer to encode to
22869
+ * @returns Writer
22870
+ */
22871
+ public static encode(message: google.chat.v1.ISectionItem, writer?: $protobuf.Writer): $protobuf.Writer;
22872
+
22873
+ /**
22874
+ * Encodes the specified SectionItem message, length delimited. Does not implicitly {@link google.chat.v1.SectionItem.verify|verify} messages.
22875
+ * @param message SectionItem message or plain object to encode
22876
+ * @param [writer] Writer to encode to
22877
+ * @returns Writer
22878
+ */
22879
+ public static encodeDelimited(message: google.chat.v1.ISectionItem, writer?: $protobuf.Writer): $protobuf.Writer;
22880
+
22881
+ /**
22882
+ * Decodes a SectionItem message from the specified reader or buffer.
22883
+ * @param reader Reader or buffer to decode from
22884
+ * @param [length] Message length if known beforehand
22885
+ * @returns SectionItem
22886
+ * @throws {Error} If the payload is not a reader or valid buffer
22887
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22888
+ */
22889
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.SectionItem;
22890
+
22891
+ /**
22892
+ * Decodes a SectionItem message from the specified reader or buffer, length delimited.
22893
+ * @param reader Reader or buffer to decode from
22894
+ * @returns SectionItem
22895
+ * @throws {Error} If the payload is not a reader or valid buffer
22896
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22897
+ */
22898
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.SectionItem;
22899
+
22900
+ /**
22901
+ * Verifies a SectionItem message.
22902
+ * @param message Plain object to verify
22903
+ * @returns `null` if valid, otherwise the reason why it is not
22904
+ */
22905
+ public static verify(message: { [k: string]: any }): (string|null);
22906
+
22907
+ /**
22908
+ * Creates a SectionItem message from a plain object. Also converts values to their respective internal types.
22909
+ * @param object Plain object
22910
+ * @returns SectionItem
22911
+ */
22912
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.SectionItem;
22913
+
22914
+ /**
22915
+ * Creates a plain object from a SectionItem message. Also converts values to other types if specified.
22916
+ * @param message SectionItem
22917
+ * @param [options] Conversion options
22918
+ * @returns Plain object
22919
+ */
22920
+ public static toObject(message: google.chat.v1.SectionItem, options?: $protobuf.IConversionOptions): { [k: string]: any };
22921
+
22922
+ /**
22923
+ * Converts this SectionItem to JSON.
22924
+ * @returns JSON object
22925
+ */
22926
+ public toJSON(): { [k: string]: any };
22927
+
22928
+ /**
22929
+ * Gets the default type url for SectionItem
22930
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
22931
+ * @returns The default type url
22932
+ */
22933
+ public static getTypeUrl(typeUrlPrefix?: string): string;
22934
+ }
22935
+
22936
+ /** Properties of a CreateSectionRequest. */
22937
+ interface ICreateSectionRequest {
22938
+
22939
+ /** CreateSectionRequest parent */
22940
+ parent?: (string|null);
22941
+
22942
+ /** CreateSectionRequest section */
22943
+ section?: (google.chat.v1.ISection|null);
22944
+ }
22945
+
22946
+ /** Represents a CreateSectionRequest. */
22947
+ class CreateSectionRequest implements ICreateSectionRequest {
22948
+
22949
+ /**
22950
+ * Constructs a new CreateSectionRequest.
22951
+ * @param [properties] Properties to set
22952
+ */
22953
+ constructor(properties?: google.chat.v1.ICreateSectionRequest);
22954
+
22955
+ /** CreateSectionRequest parent. */
22956
+ public parent: string;
22957
+
22958
+ /** CreateSectionRequest section. */
22959
+ public section?: (google.chat.v1.ISection|null);
22960
+
22961
+ /**
22962
+ * Creates a new CreateSectionRequest instance using the specified properties.
22963
+ * @param [properties] Properties to set
22964
+ * @returns CreateSectionRequest instance
22965
+ */
22966
+ public static create(properties?: google.chat.v1.ICreateSectionRequest): google.chat.v1.CreateSectionRequest;
22967
+
22968
+ /**
22969
+ * Encodes the specified CreateSectionRequest message. Does not implicitly {@link google.chat.v1.CreateSectionRequest.verify|verify} messages.
22970
+ * @param message CreateSectionRequest message or plain object to encode
22971
+ * @param [writer] Writer to encode to
22972
+ * @returns Writer
22973
+ */
22974
+ public static encode(message: google.chat.v1.ICreateSectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
22975
+
22976
+ /**
22977
+ * Encodes the specified CreateSectionRequest message, length delimited. Does not implicitly {@link google.chat.v1.CreateSectionRequest.verify|verify} messages.
22978
+ * @param message CreateSectionRequest message or plain object to encode
22979
+ * @param [writer] Writer to encode to
22980
+ * @returns Writer
22981
+ */
22982
+ public static encodeDelimited(message: google.chat.v1.ICreateSectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
22983
+
22984
+ /**
22985
+ * Decodes a CreateSectionRequest message from the specified reader or buffer.
22986
+ * @param reader Reader or buffer to decode from
22987
+ * @param [length] Message length if known beforehand
22988
+ * @returns CreateSectionRequest
22989
+ * @throws {Error} If the payload is not a reader or valid buffer
22990
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
22991
+ */
22992
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.CreateSectionRequest;
22993
+
22994
+ /**
22995
+ * Decodes a CreateSectionRequest message from the specified reader or buffer, length delimited.
22996
+ * @param reader Reader or buffer to decode from
22997
+ * @returns CreateSectionRequest
22998
+ * @throws {Error} If the payload is not a reader or valid buffer
22999
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23000
+ */
23001
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.CreateSectionRequest;
23002
+
23003
+ /**
23004
+ * Verifies a CreateSectionRequest message.
23005
+ * @param message Plain object to verify
23006
+ * @returns `null` if valid, otherwise the reason why it is not
23007
+ */
23008
+ public static verify(message: { [k: string]: any }): (string|null);
23009
+
23010
+ /**
23011
+ * Creates a CreateSectionRequest message from a plain object. Also converts values to their respective internal types.
23012
+ * @param object Plain object
23013
+ * @returns CreateSectionRequest
23014
+ */
23015
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.CreateSectionRequest;
23016
+
23017
+ /**
23018
+ * Creates a plain object from a CreateSectionRequest message. Also converts values to other types if specified.
23019
+ * @param message CreateSectionRequest
23020
+ * @param [options] Conversion options
23021
+ * @returns Plain object
23022
+ */
23023
+ public static toObject(message: google.chat.v1.CreateSectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
23024
+
23025
+ /**
23026
+ * Converts this CreateSectionRequest to JSON.
23027
+ * @returns JSON object
23028
+ */
23029
+ public toJSON(): { [k: string]: any };
23030
+
23031
+ /**
23032
+ * Gets the default type url for CreateSectionRequest
23033
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23034
+ * @returns The default type url
23035
+ */
23036
+ public static getTypeUrl(typeUrlPrefix?: string): string;
23037
+ }
23038
+
23039
+ /** Properties of a DeleteSectionRequest. */
23040
+ interface IDeleteSectionRequest {
23041
+
23042
+ /** DeleteSectionRequest name */
23043
+ name?: (string|null);
23044
+ }
23045
+
23046
+ /** Represents a DeleteSectionRequest. */
23047
+ class DeleteSectionRequest implements IDeleteSectionRequest {
23048
+
23049
+ /**
23050
+ * Constructs a new DeleteSectionRequest.
23051
+ * @param [properties] Properties to set
23052
+ */
23053
+ constructor(properties?: google.chat.v1.IDeleteSectionRequest);
23054
+
23055
+ /** DeleteSectionRequest name. */
23056
+ public name: string;
23057
+
23058
+ /**
23059
+ * Creates a new DeleteSectionRequest instance using the specified properties.
23060
+ * @param [properties] Properties to set
23061
+ * @returns DeleteSectionRequest instance
23062
+ */
23063
+ public static create(properties?: google.chat.v1.IDeleteSectionRequest): google.chat.v1.DeleteSectionRequest;
23064
+
23065
+ /**
23066
+ * Encodes the specified DeleteSectionRequest message. Does not implicitly {@link google.chat.v1.DeleteSectionRequest.verify|verify} messages.
23067
+ * @param message DeleteSectionRequest message or plain object to encode
23068
+ * @param [writer] Writer to encode to
23069
+ * @returns Writer
23070
+ */
23071
+ public static encode(message: google.chat.v1.IDeleteSectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
23072
+
23073
+ /**
23074
+ * Encodes the specified DeleteSectionRequest message, length delimited. Does not implicitly {@link google.chat.v1.DeleteSectionRequest.verify|verify} messages.
23075
+ * @param message DeleteSectionRequest message or plain object to encode
23076
+ * @param [writer] Writer to encode to
23077
+ * @returns Writer
23078
+ */
23079
+ public static encodeDelimited(message: google.chat.v1.IDeleteSectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
23080
+
23081
+ /**
23082
+ * Decodes a DeleteSectionRequest message from the specified reader or buffer.
23083
+ * @param reader Reader or buffer to decode from
23084
+ * @param [length] Message length if known beforehand
23085
+ * @returns DeleteSectionRequest
23086
+ * @throws {Error} If the payload is not a reader or valid buffer
23087
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23088
+ */
23089
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.DeleteSectionRequest;
23090
+
23091
+ /**
23092
+ * Decodes a DeleteSectionRequest message from the specified reader or buffer, length delimited.
23093
+ * @param reader Reader or buffer to decode from
23094
+ * @returns DeleteSectionRequest
23095
+ * @throws {Error} If the payload is not a reader or valid buffer
23096
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23097
+ */
23098
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.DeleteSectionRequest;
23099
+
23100
+ /**
23101
+ * Verifies a DeleteSectionRequest message.
23102
+ * @param message Plain object to verify
23103
+ * @returns `null` if valid, otherwise the reason why it is not
23104
+ */
23105
+ public static verify(message: { [k: string]: any }): (string|null);
23106
+
23107
+ /**
23108
+ * Creates a DeleteSectionRequest message from a plain object. Also converts values to their respective internal types.
23109
+ * @param object Plain object
23110
+ * @returns DeleteSectionRequest
23111
+ */
23112
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.DeleteSectionRequest;
23113
+
23114
+ /**
23115
+ * Creates a plain object from a DeleteSectionRequest message. Also converts values to other types if specified.
23116
+ * @param message DeleteSectionRequest
23117
+ * @param [options] Conversion options
23118
+ * @returns Plain object
23119
+ */
23120
+ public static toObject(message: google.chat.v1.DeleteSectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
23121
+
23122
+ /**
23123
+ * Converts this DeleteSectionRequest to JSON.
23124
+ * @returns JSON object
23125
+ */
23126
+ public toJSON(): { [k: string]: any };
23127
+
23128
+ /**
23129
+ * Gets the default type url for DeleteSectionRequest
23130
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23131
+ * @returns The default type url
23132
+ */
23133
+ public static getTypeUrl(typeUrlPrefix?: string): string;
23134
+ }
23135
+
23136
+ /** Properties of an UpdateSectionRequest. */
23137
+ interface IUpdateSectionRequest {
23138
+
23139
+ /** UpdateSectionRequest section */
23140
+ section?: (google.chat.v1.ISection|null);
23141
+
23142
+ /** UpdateSectionRequest updateMask */
23143
+ updateMask?: (google.protobuf.IFieldMask|null);
23144
+ }
23145
+
23146
+ /** Represents an UpdateSectionRequest. */
23147
+ class UpdateSectionRequest implements IUpdateSectionRequest {
23148
+
23149
+ /**
23150
+ * Constructs a new UpdateSectionRequest.
23151
+ * @param [properties] Properties to set
23152
+ */
23153
+ constructor(properties?: google.chat.v1.IUpdateSectionRequest);
23154
+
23155
+ /** UpdateSectionRequest section. */
23156
+ public section?: (google.chat.v1.ISection|null);
23157
+
23158
+ /** UpdateSectionRequest updateMask. */
23159
+ public updateMask?: (google.protobuf.IFieldMask|null);
23160
+
23161
+ /**
23162
+ * Creates a new UpdateSectionRequest instance using the specified properties.
23163
+ * @param [properties] Properties to set
23164
+ * @returns UpdateSectionRequest instance
23165
+ */
23166
+ public static create(properties?: google.chat.v1.IUpdateSectionRequest): google.chat.v1.UpdateSectionRequest;
23167
+
23168
+ /**
23169
+ * Encodes the specified UpdateSectionRequest message. Does not implicitly {@link google.chat.v1.UpdateSectionRequest.verify|verify} messages.
23170
+ * @param message UpdateSectionRequest message or plain object to encode
23171
+ * @param [writer] Writer to encode to
23172
+ * @returns Writer
23173
+ */
23174
+ public static encode(message: google.chat.v1.IUpdateSectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
23175
+
23176
+ /**
23177
+ * Encodes the specified UpdateSectionRequest message, length delimited. Does not implicitly {@link google.chat.v1.UpdateSectionRequest.verify|verify} messages.
23178
+ * @param message UpdateSectionRequest message or plain object to encode
23179
+ * @param [writer] Writer to encode to
23180
+ * @returns Writer
23181
+ */
23182
+ public static encodeDelimited(message: google.chat.v1.IUpdateSectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
23183
+
23184
+ /**
23185
+ * Decodes an UpdateSectionRequest message from the specified reader or buffer.
23186
+ * @param reader Reader or buffer to decode from
23187
+ * @param [length] Message length if known beforehand
23188
+ * @returns UpdateSectionRequest
23189
+ * @throws {Error} If the payload is not a reader or valid buffer
23190
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23191
+ */
23192
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.UpdateSectionRequest;
23193
+
23194
+ /**
23195
+ * Decodes an UpdateSectionRequest message from the specified reader or buffer, length delimited.
23196
+ * @param reader Reader or buffer to decode from
23197
+ * @returns UpdateSectionRequest
23198
+ * @throws {Error} If the payload is not a reader or valid buffer
23199
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23200
+ */
23201
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.UpdateSectionRequest;
23202
+
23203
+ /**
23204
+ * Verifies an UpdateSectionRequest message.
23205
+ * @param message Plain object to verify
23206
+ * @returns `null` if valid, otherwise the reason why it is not
23207
+ */
23208
+ public static verify(message: { [k: string]: any }): (string|null);
23209
+
23210
+ /**
23211
+ * Creates an UpdateSectionRequest message from a plain object. Also converts values to their respective internal types.
23212
+ * @param object Plain object
23213
+ * @returns UpdateSectionRequest
23214
+ */
23215
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.UpdateSectionRequest;
23216
+
23217
+ /**
23218
+ * Creates a plain object from an UpdateSectionRequest message. Also converts values to other types if specified.
23219
+ * @param message UpdateSectionRequest
23220
+ * @param [options] Conversion options
23221
+ * @returns Plain object
23222
+ */
23223
+ public static toObject(message: google.chat.v1.UpdateSectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
23224
+
23225
+ /**
23226
+ * Converts this UpdateSectionRequest to JSON.
23227
+ * @returns JSON object
23228
+ */
23229
+ public toJSON(): { [k: string]: any };
23230
+
23231
+ /**
23232
+ * Gets the default type url for UpdateSectionRequest
23233
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23234
+ * @returns The default type url
23235
+ */
23236
+ public static getTypeUrl(typeUrlPrefix?: string): string;
23237
+ }
23238
+
23239
+ /** Properties of a ListSectionsRequest. */
23240
+ interface IListSectionsRequest {
23241
+
23242
+ /** ListSectionsRequest parent */
23243
+ parent?: (string|null);
23244
+
23245
+ /** ListSectionsRequest pageSize */
23246
+ pageSize?: (number|null);
23247
+
23248
+ /** ListSectionsRequest pageToken */
23249
+ pageToken?: (string|null);
23250
+ }
23251
+
23252
+ /** Represents a ListSectionsRequest. */
23253
+ class ListSectionsRequest implements IListSectionsRequest {
23254
+
23255
+ /**
23256
+ * Constructs a new ListSectionsRequest.
23257
+ * @param [properties] Properties to set
23258
+ */
23259
+ constructor(properties?: google.chat.v1.IListSectionsRequest);
23260
+
23261
+ /** ListSectionsRequest parent. */
23262
+ public parent: string;
23263
+
23264
+ /** ListSectionsRequest pageSize. */
23265
+ public pageSize: number;
23266
+
23267
+ /** ListSectionsRequest pageToken. */
23268
+ public pageToken: string;
23269
+
23270
+ /**
23271
+ * Creates a new ListSectionsRequest instance using the specified properties.
23272
+ * @param [properties] Properties to set
23273
+ * @returns ListSectionsRequest instance
23274
+ */
23275
+ public static create(properties?: google.chat.v1.IListSectionsRequest): google.chat.v1.ListSectionsRequest;
23276
+
23277
+ /**
23278
+ * Encodes the specified ListSectionsRequest message. Does not implicitly {@link google.chat.v1.ListSectionsRequest.verify|verify} messages.
23279
+ * @param message ListSectionsRequest message or plain object to encode
23280
+ * @param [writer] Writer to encode to
23281
+ * @returns Writer
23282
+ */
23283
+ public static encode(message: google.chat.v1.IListSectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
23284
+
23285
+ /**
23286
+ * Encodes the specified ListSectionsRequest message, length delimited. Does not implicitly {@link google.chat.v1.ListSectionsRequest.verify|verify} messages.
23287
+ * @param message ListSectionsRequest message or plain object to encode
23288
+ * @param [writer] Writer to encode to
23289
+ * @returns Writer
23290
+ */
23291
+ public static encodeDelimited(message: google.chat.v1.IListSectionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
23292
+
23293
+ /**
23294
+ * Decodes a ListSectionsRequest message from the specified reader or buffer.
23295
+ * @param reader Reader or buffer to decode from
23296
+ * @param [length] Message length if known beforehand
23297
+ * @returns ListSectionsRequest
23298
+ * @throws {Error} If the payload is not a reader or valid buffer
23299
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23300
+ */
23301
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.ListSectionsRequest;
23302
+
23303
+ /**
23304
+ * Decodes a ListSectionsRequest message from the specified reader or buffer, length delimited.
23305
+ * @param reader Reader or buffer to decode from
23306
+ * @returns ListSectionsRequest
23307
+ * @throws {Error} If the payload is not a reader or valid buffer
23308
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23309
+ */
23310
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.ListSectionsRequest;
23311
+
23312
+ /**
23313
+ * Verifies a ListSectionsRequest message.
23314
+ * @param message Plain object to verify
23315
+ * @returns `null` if valid, otherwise the reason why it is not
23316
+ */
23317
+ public static verify(message: { [k: string]: any }): (string|null);
23318
+
23319
+ /**
23320
+ * Creates a ListSectionsRequest message from a plain object. Also converts values to their respective internal types.
23321
+ * @param object Plain object
23322
+ * @returns ListSectionsRequest
23323
+ */
23324
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.ListSectionsRequest;
23325
+
23326
+ /**
23327
+ * Creates a plain object from a ListSectionsRequest message. Also converts values to other types if specified.
23328
+ * @param message ListSectionsRequest
23329
+ * @param [options] Conversion options
23330
+ * @returns Plain object
23331
+ */
23332
+ public static toObject(message: google.chat.v1.ListSectionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
23333
+
23334
+ /**
23335
+ * Converts this ListSectionsRequest to JSON.
23336
+ * @returns JSON object
23337
+ */
23338
+ public toJSON(): { [k: string]: any };
23339
+
23340
+ /**
23341
+ * Gets the default type url for ListSectionsRequest
23342
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23343
+ * @returns The default type url
23344
+ */
23345
+ public static getTypeUrl(typeUrlPrefix?: string): string;
23346
+ }
23347
+
23348
+ /** Properties of a ListSectionsResponse. */
23349
+ interface IListSectionsResponse {
23350
+
23351
+ /** ListSectionsResponse sections */
23352
+ sections?: (google.chat.v1.ISection[]|null);
23353
+
23354
+ /** ListSectionsResponse nextPageToken */
23355
+ nextPageToken?: (string|null);
23356
+ }
23357
+
23358
+ /** Represents a ListSectionsResponse. */
23359
+ class ListSectionsResponse implements IListSectionsResponse {
23360
+
23361
+ /**
23362
+ * Constructs a new ListSectionsResponse.
23363
+ * @param [properties] Properties to set
23364
+ */
23365
+ constructor(properties?: google.chat.v1.IListSectionsResponse);
23366
+
23367
+ /** ListSectionsResponse sections. */
23368
+ public sections: google.chat.v1.ISection[];
23369
+
23370
+ /** ListSectionsResponse nextPageToken. */
23371
+ public nextPageToken: string;
23372
+
23373
+ /**
23374
+ * Creates a new ListSectionsResponse instance using the specified properties.
23375
+ * @param [properties] Properties to set
23376
+ * @returns ListSectionsResponse instance
23377
+ */
23378
+ public static create(properties?: google.chat.v1.IListSectionsResponse): google.chat.v1.ListSectionsResponse;
23379
+
23380
+ /**
23381
+ * Encodes the specified ListSectionsResponse message. Does not implicitly {@link google.chat.v1.ListSectionsResponse.verify|verify} messages.
23382
+ * @param message ListSectionsResponse message or plain object to encode
23383
+ * @param [writer] Writer to encode to
23384
+ * @returns Writer
23385
+ */
23386
+ public static encode(message: google.chat.v1.IListSectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
23387
+
23388
+ /**
23389
+ * Encodes the specified ListSectionsResponse message, length delimited. Does not implicitly {@link google.chat.v1.ListSectionsResponse.verify|verify} messages.
23390
+ * @param message ListSectionsResponse message or plain object to encode
23391
+ * @param [writer] Writer to encode to
23392
+ * @returns Writer
23393
+ */
23394
+ public static encodeDelimited(message: google.chat.v1.IListSectionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
23395
+
23396
+ /**
23397
+ * Decodes a ListSectionsResponse message from the specified reader or buffer.
23398
+ * @param reader Reader or buffer to decode from
23399
+ * @param [length] Message length if known beforehand
23400
+ * @returns ListSectionsResponse
23401
+ * @throws {Error} If the payload is not a reader or valid buffer
23402
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23403
+ */
23404
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.ListSectionsResponse;
23405
+
23406
+ /**
23407
+ * Decodes a ListSectionsResponse message from the specified reader or buffer, length delimited.
23408
+ * @param reader Reader or buffer to decode from
23409
+ * @returns ListSectionsResponse
23410
+ * @throws {Error} If the payload is not a reader or valid buffer
23411
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23412
+ */
23413
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.ListSectionsResponse;
23414
+
23415
+ /**
23416
+ * Verifies a ListSectionsResponse message.
23417
+ * @param message Plain object to verify
23418
+ * @returns `null` if valid, otherwise the reason why it is not
23419
+ */
23420
+ public static verify(message: { [k: string]: any }): (string|null);
23421
+
23422
+ /**
23423
+ * Creates a ListSectionsResponse message from a plain object. Also converts values to their respective internal types.
23424
+ * @param object Plain object
23425
+ * @returns ListSectionsResponse
23426
+ */
23427
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.ListSectionsResponse;
23428
+
23429
+ /**
23430
+ * Creates a plain object from a ListSectionsResponse message. Also converts values to other types if specified.
23431
+ * @param message ListSectionsResponse
23432
+ * @param [options] Conversion options
23433
+ * @returns Plain object
23434
+ */
23435
+ public static toObject(message: google.chat.v1.ListSectionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
23436
+
23437
+ /**
23438
+ * Converts this ListSectionsResponse to JSON.
23439
+ * @returns JSON object
23440
+ */
23441
+ public toJSON(): { [k: string]: any };
23442
+
23443
+ /**
23444
+ * Gets the default type url for ListSectionsResponse
23445
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23446
+ * @returns The default type url
23447
+ */
23448
+ public static getTypeUrl(typeUrlPrefix?: string): string;
23449
+ }
23450
+
23451
+ /** Properties of a PositionSectionRequest. */
23452
+ interface IPositionSectionRequest {
23453
+
23454
+ /** PositionSectionRequest name */
23455
+ name?: (string|null);
23456
+
23457
+ /** PositionSectionRequest sortOrder */
23458
+ sortOrder?: (number|null);
23459
+
23460
+ /** PositionSectionRequest relativePosition */
23461
+ relativePosition?: (google.chat.v1.PositionSectionRequest.Position|keyof typeof google.chat.v1.PositionSectionRequest.Position|null);
23462
+ }
23463
+
23464
+ /** Represents a PositionSectionRequest. */
23465
+ class PositionSectionRequest implements IPositionSectionRequest {
23466
+
23467
+ /**
23468
+ * Constructs a new PositionSectionRequest.
23469
+ * @param [properties] Properties to set
23470
+ */
23471
+ constructor(properties?: google.chat.v1.IPositionSectionRequest);
23472
+
23473
+ /** PositionSectionRequest name. */
23474
+ public name: string;
23475
+
23476
+ /** PositionSectionRequest sortOrder. */
23477
+ public sortOrder?: (number|null);
23478
+
23479
+ /** PositionSectionRequest relativePosition. */
23480
+ public relativePosition?: (google.chat.v1.PositionSectionRequest.Position|keyof typeof google.chat.v1.PositionSectionRequest.Position|null);
23481
+
23482
+ /** PositionSectionRequest position. */
23483
+ public position?: ("sortOrder"|"relativePosition");
23484
+
23485
+ /**
23486
+ * Creates a new PositionSectionRequest instance using the specified properties.
23487
+ * @param [properties] Properties to set
23488
+ * @returns PositionSectionRequest instance
23489
+ */
23490
+ public static create(properties?: google.chat.v1.IPositionSectionRequest): google.chat.v1.PositionSectionRequest;
23491
+
23492
+ /**
23493
+ * Encodes the specified PositionSectionRequest message. Does not implicitly {@link google.chat.v1.PositionSectionRequest.verify|verify} messages.
23494
+ * @param message PositionSectionRequest message or plain object to encode
23495
+ * @param [writer] Writer to encode to
23496
+ * @returns Writer
23497
+ */
23498
+ public static encode(message: google.chat.v1.IPositionSectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
23499
+
23500
+ /**
23501
+ * Encodes the specified PositionSectionRequest message, length delimited. Does not implicitly {@link google.chat.v1.PositionSectionRequest.verify|verify} messages.
23502
+ * @param message PositionSectionRequest message or plain object to encode
23503
+ * @param [writer] Writer to encode to
23504
+ * @returns Writer
23505
+ */
23506
+ public static encodeDelimited(message: google.chat.v1.IPositionSectionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
23507
+
23508
+ /**
23509
+ * Decodes a PositionSectionRequest message from the specified reader or buffer.
23510
+ * @param reader Reader or buffer to decode from
23511
+ * @param [length] Message length if known beforehand
23512
+ * @returns PositionSectionRequest
23513
+ * @throws {Error} If the payload is not a reader or valid buffer
23514
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23515
+ */
23516
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.PositionSectionRequest;
23517
+
23518
+ /**
23519
+ * Decodes a PositionSectionRequest message from the specified reader or buffer, length delimited.
23520
+ * @param reader Reader or buffer to decode from
23521
+ * @returns PositionSectionRequest
23522
+ * @throws {Error} If the payload is not a reader or valid buffer
23523
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23524
+ */
23525
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.PositionSectionRequest;
23526
+
23527
+ /**
23528
+ * Verifies a PositionSectionRequest message.
23529
+ * @param message Plain object to verify
23530
+ * @returns `null` if valid, otherwise the reason why it is not
23531
+ */
23532
+ public static verify(message: { [k: string]: any }): (string|null);
23533
+
23534
+ /**
23535
+ * Creates a PositionSectionRequest message from a plain object. Also converts values to their respective internal types.
23536
+ * @param object Plain object
23537
+ * @returns PositionSectionRequest
23538
+ */
23539
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.PositionSectionRequest;
23540
+
23541
+ /**
23542
+ * Creates a plain object from a PositionSectionRequest message. Also converts values to other types if specified.
23543
+ * @param message PositionSectionRequest
23544
+ * @param [options] Conversion options
23545
+ * @returns Plain object
23546
+ */
23547
+ public static toObject(message: google.chat.v1.PositionSectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
23548
+
23549
+ /**
23550
+ * Converts this PositionSectionRequest to JSON.
23551
+ * @returns JSON object
23552
+ */
23553
+ public toJSON(): { [k: string]: any };
23554
+
23555
+ /**
23556
+ * Gets the default type url for PositionSectionRequest
23557
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23558
+ * @returns The default type url
23559
+ */
23560
+ public static getTypeUrl(typeUrlPrefix?: string): string;
23561
+ }
23562
+
23563
+ namespace PositionSectionRequest {
23564
+
23565
+ /** Position enum. */
23566
+ enum Position {
23567
+ POSITION_UNSPECIFIED = 0,
23568
+ START = 1,
23569
+ END = 2
23570
+ }
23571
+ }
23572
+
23573
+ /** Properties of a PositionSectionResponse. */
23574
+ interface IPositionSectionResponse {
23575
+
23576
+ /** PositionSectionResponse section */
23577
+ section?: (google.chat.v1.ISection|null);
23578
+ }
23579
+
23580
+ /** Represents a PositionSectionResponse. */
23581
+ class PositionSectionResponse implements IPositionSectionResponse {
23582
+
23583
+ /**
23584
+ * Constructs a new PositionSectionResponse.
23585
+ * @param [properties] Properties to set
23586
+ */
23587
+ constructor(properties?: google.chat.v1.IPositionSectionResponse);
23588
+
23589
+ /** PositionSectionResponse section. */
23590
+ public section?: (google.chat.v1.ISection|null);
23591
+
23592
+ /**
23593
+ * Creates a new PositionSectionResponse instance using the specified properties.
23594
+ * @param [properties] Properties to set
23595
+ * @returns PositionSectionResponse instance
23596
+ */
23597
+ public static create(properties?: google.chat.v1.IPositionSectionResponse): google.chat.v1.PositionSectionResponse;
23598
+
23599
+ /**
23600
+ * Encodes the specified PositionSectionResponse message. Does not implicitly {@link google.chat.v1.PositionSectionResponse.verify|verify} messages.
23601
+ * @param message PositionSectionResponse message or plain object to encode
23602
+ * @param [writer] Writer to encode to
23603
+ * @returns Writer
23604
+ */
23605
+ public static encode(message: google.chat.v1.IPositionSectionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
23606
+
23607
+ /**
23608
+ * Encodes the specified PositionSectionResponse message, length delimited. Does not implicitly {@link google.chat.v1.PositionSectionResponse.verify|verify} messages.
23609
+ * @param message PositionSectionResponse message or plain object to encode
23610
+ * @param [writer] Writer to encode to
23611
+ * @returns Writer
23612
+ */
23613
+ public static encodeDelimited(message: google.chat.v1.IPositionSectionResponse, writer?: $protobuf.Writer): $protobuf.Writer;
23614
+
23615
+ /**
23616
+ * Decodes a PositionSectionResponse message from the specified reader or buffer.
23617
+ * @param reader Reader or buffer to decode from
23618
+ * @param [length] Message length if known beforehand
23619
+ * @returns PositionSectionResponse
23620
+ * @throws {Error} If the payload is not a reader or valid buffer
23621
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23622
+ */
23623
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.PositionSectionResponse;
23624
+
23625
+ /**
23626
+ * Decodes a PositionSectionResponse message from the specified reader or buffer, length delimited.
23627
+ * @param reader Reader or buffer to decode from
23628
+ * @returns PositionSectionResponse
23629
+ * @throws {Error} If the payload is not a reader or valid buffer
23630
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23631
+ */
23632
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.PositionSectionResponse;
23633
+
23634
+ /**
23635
+ * Verifies a PositionSectionResponse message.
23636
+ * @param message Plain object to verify
23637
+ * @returns `null` if valid, otherwise the reason why it is not
23638
+ */
23639
+ public static verify(message: { [k: string]: any }): (string|null);
23640
+
23641
+ /**
23642
+ * Creates a PositionSectionResponse message from a plain object. Also converts values to their respective internal types.
23643
+ * @param object Plain object
23644
+ * @returns PositionSectionResponse
23645
+ */
23646
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.PositionSectionResponse;
23647
+
23648
+ /**
23649
+ * Creates a plain object from a PositionSectionResponse message. Also converts values to other types if specified.
23650
+ * @param message PositionSectionResponse
23651
+ * @param [options] Conversion options
23652
+ * @returns Plain object
23653
+ */
23654
+ public static toObject(message: google.chat.v1.PositionSectionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
23655
+
23656
+ /**
23657
+ * Converts this PositionSectionResponse to JSON.
23658
+ * @returns JSON object
23659
+ */
23660
+ public toJSON(): { [k: string]: any };
23661
+
23662
+ /**
23663
+ * Gets the default type url for PositionSectionResponse
23664
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23665
+ * @returns The default type url
23666
+ */
23667
+ public static getTypeUrl(typeUrlPrefix?: string): string;
23668
+ }
23669
+
23670
+ /** Properties of a ListSectionItemsRequest. */
23671
+ interface IListSectionItemsRequest {
23672
+
23673
+ /** ListSectionItemsRequest parent */
23674
+ parent?: (string|null);
23675
+
23676
+ /** ListSectionItemsRequest pageSize */
23677
+ pageSize?: (number|null);
23678
+
23679
+ /** ListSectionItemsRequest pageToken */
23680
+ pageToken?: (string|null);
23681
+
23682
+ /** ListSectionItemsRequest filter */
23683
+ filter?: (string|null);
23684
+ }
23685
+
23686
+ /** Represents a ListSectionItemsRequest. */
23687
+ class ListSectionItemsRequest implements IListSectionItemsRequest {
23688
+
23689
+ /**
23690
+ * Constructs a new ListSectionItemsRequest.
23691
+ * @param [properties] Properties to set
23692
+ */
23693
+ constructor(properties?: google.chat.v1.IListSectionItemsRequest);
23694
+
23695
+ /** ListSectionItemsRequest parent. */
23696
+ public parent: string;
23697
+
23698
+ /** ListSectionItemsRequest pageSize. */
23699
+ public pageSize: number;
23700
+
23701
+ /** ListSectionItemsRequest pageToken. */
23702
+ public pageToken: string;
23703
+
23704
+ /** ListSectionItemsRequest filter. */
23705
+ public filter: string;
23706
+
23707
+ /**
23708
+ * Creates a new ListSectionItemsRequest instance using the specified properties.
23709
+ * @param [properties] Properties to set
23710
+ * @returns ListSectionItemsRequest instance
23711
+ */
23712
+ public static create(properties?: google.chat.v1.IListSectionItemsRequest): google.chat.v1.ListSectionItemsRequest;
23713
+
23714
+ /**
23715
+ * Encodes the specified ListSectionItemsRequest message. Does not implicitly {@link google.chat.v1.ListSectionItemsRequest.verify|verify} messages.
23716
+ * @param message ListSectionItemsRequest message or plain object to encode
23717
+ * @param [writer] Writer to encode to
23718
+ * @returns Writer
23719
+ */
23720
+ public static encode(message: google.chat.v1.IListSectionItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
23721
+
23722
+ /**
23723
+ * Encodes the specified ListSectionItemsRequest message, length delimited. Does not implicitly {@link google.chat.v1.ListSectionItemsRequest.verify|verify} messages.
23724
+ * @param message ListSectionItemsRequest message or plain object to encode
23725
+ * @param [writer] Writer to encode to
23726
+ * @returns Writer
23727
+ */
23728
+ public static encodeDelimited(message: google.chat.v1.IListSectionItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
23729
+
23730
+ /**
23731
+ * Decodes a ListSectionItemsRequest message from the specified reader or buffer.
23732
+ * @param reader Reader or buffer to decode from
23733
+ * @param [length] Message length if known beforehand
23734
+ * @returns ListSectionItemsRequest
23735
+ * @throws {Error} If the payload is not a reader or valid buffer
23736
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23737
+ */
23738
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.ListSectionItemsRequest;
23739
+
23740
+ /**
23741
+ * Decodes a ListSectionItemsRequest message from the specified reader or buffer, length delimited.
23742
+ * @param reader Reader or buffer to decode from
23743
+ * @returns ListSectionItemsRequest
23744
+ * @throws {Error} If the payload is not a reader or valid buffer
23745
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23746
+ */
23747
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.ListSectionItemsRequest;
23748
+
23749
+ /**
23750
+ * Verifies a ListSectionItemsRequest message.
23751
+ * @param message Plain object to verify
23752
+ * @returns `null` if valid, otherwise the reason why it is not
23753
+ */
23754
+ public static verify(message: { [k: string]: any }): (string|null);
23755
+
23756
+ /**
23757
+ * Creates a ListSectionItemsRequest message from a plain object. Also converts values to their respective internal types.
23758
+ * @param object Plain object
23759
+ * @returns ListSectionItemsRequest
23760
+ */
23761
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.ListSectionItemsRequest;
23762
+
23763
+ /**
23764
+ * Creates a plain object from a ListSectionItemsRequest message. Also converts values to other types if specified.
23765
+ * @param message ListSectionItemsRequest
23766
+ * @param [options] Conversion options
23767
+ * @returns Plain object
23768
+ */
23769
+ public static toObject(message: google.chat.v1.ListSectionItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
23770
+
23771
+ /**
23772
+ * Converts this ListSectionItemsRequest to JSON.
23773
+ * @returns JSON object
23774
+ */
23775
+ public toJSON(): { [k: string]: any };
23776
+
23777
+ /**
23778
+ * Gets the default type url for ListSectionItemsRequest
23779
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23780
+ * @returns The default type url
23781
+ */
23782
+ public static getTypeUrl(typeUrlPrefix?: string): string;
23783
+ }
23784
+
23785
+ /** Properties of a ListSectionItemsResponse. */
23786
+ interface IListSectionItemsResponse {
23787
+
23788
+ /** ListSectionItemsResponse sectionItems */
23789
+ sectionItems?: (google.chat.v1.ISectionItem[]|null);
23790
+
23791
+ /** ListSectionItemsResponse nextPageToken */
23792
+ nextPageToken?: (string|null);
23793
+ }
23794
+
23795
+ /** Represents a ListSectionItemsResponse. */
23796
+ class ListSectionItemsResponse implements IListSectionItemsResponse {
23797
+
23798
+ /**
23799
+ * Constructs a new ListSectionItemsResponse.
23800
+ * @param [properties] Properties to set
23801
+ */
23802
+ constructor(properties?: google.chat.v1.IListSectionItemsResponse);
23803
+
23804
+ /** ListSectionItemsResponse sectionItems. */
23805
+ public sectionItems: google.chat.v1.ISectionItem[];
23806
+
23807
+ /** ListSectionItemsResponse nextPageToken. */
23808
+ public nextPageToken: string;
23809
+
23810
+ /**
23811
+ * Creates a new ListSectionItemsResponse instance using the specified properties.
23812
+ * @param [properties] Properties to set
23813
+ * @returns ListSectionItemsResponse instance
23814
+ */
23815
+ public static create(properties?: google.chat.v1.IListSectionItemsResponse): google.chat.v1.ListSectionItemsResponse;
23816
+
23817
+ /**
23818
+ * Encodes the specified ListSectionItemsResponse message. Does not implicitly {@link google.chat.v1.ListSectionItemsResponse.verify|verify} messages.
23819
+ * @param message ListSectionItemsResponse message or plain object to encode
23820
+ * @param [writer] Writer to encode to
23821
+ * @returns Writer
23822
+ */
23823
+ public static encode(message: google.chat.v1.IListSectionItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
23824
+
23825
+ /**
23826
+ * Encodes the specified ListSectionItemsResponse message, length delimited. Does not implicitly {@link google.chat.v1.ListSectionItemsResponse.verify|verify} messages.
23827
+ * @param message ListSectionItemsResponse message or plain object to encode
23828
+ * @param [writer] Writer to encode to
23829
+ * @returns Writer
23830
+ */
23831
+ public static encodeDelimited(message: google.chat.v1.IListSectionItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
23832
+
23833
+ /**
23834
+ * Decodes a ListSectionItemsResponse message from the specified reader or buffer.
23835
+ * @param reader Reader or buffer to decode from
23836
+ * @param [length] Message length if known beforehand
23837
+ * @returns ListSectionItemsResponse
23838
+ * @throws {Error} If the payload is not a reader or valid buffer
23839
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23840
+ */
23841
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.ListSectionItemsResponse;
23842
+
23843
+ /**
23844
+ * Decodes a ListSectionItemsResponse message from the specified reader or buffer, length delimited.
23845
+ * @param reader Reader or buffer to decode from
23846
+ * @returns ListSectionItemsResponse
23847
+ * @throws {Error} If the payload is not a reader or valid buffer
23848
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23849
+ */
23850
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.ListSectionItemsResponse;
23851
+
23852
+ /**
23853
+ * Verifies a ListSectionItemsResponse message.
23854
+ * @param message Plain object to verify
23855
+ * @returns `null` if valid, otherwise the reason why it is not
23856
+ */
23857
+ public static verify(message: { [k: string]: any }): (string|null);
23858
+
23859
+ /**
23860
+ * Creates a ListSectionItemsResponse message from a plain object. Also converts values to their respective internal types.
23861
+ * @param object Plain object
23862
+ * @returns ListSectionItemsResponse
23863
+ */
23864
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.ListSectionItemsResponse;
23865
+
23866
+ /**
23867
+ * Creates a plain object from a ListSectionItemsResponse message. Also converts values to other types if specified.
23868
+ * @param message ListSectionItemsResponse
23869
+ * @param [options] Conversion options
23870
+ * @returns Plain object
23871
+ */
23872
+ public static toObject(message: google.chat.v1.ListSectionItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
23873
+
23874
+ /**
23875
+ * Converts this ListSectionItemsResponse to JSON.
23876
+ * @returns JSON object
23877
+ */
23878
+ public toJSON(): { [k: string]: any };
23879
+
23880
+ /**
23881
+ * Gets the default type url for ListSectionItemsResponse
23882
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23883
+ * @returns The default type url
23884
+ */
23885
+ public static getTypeUrl(typeUrlPrefix?: string): string;
23886
+ }
23887
+
23888
+ /** Properties of a MoveSectionItemRequest. */
23889
+ interface IMoveSectionItemRequest {
23890
+
23891
+ /** MoveSectionItemRequest name */
23892
+ name?: (string|null);
23893
+
23894
+ /** MoveSectionItemRequest targetSection */
23895
+ targetSection?: (string|null);
23896
+ }
23897
+
23898
+ /** Represents a MoveSectionItemRequest. */
23899
+ class MoveSectionItemRequest implements IMoveSectionItemRequest {
23900
+
23901
+ /**
23902
+ * Constructs a new MoveSectionItemRequest.
23903
+ * @param [properties] Properties to set
23904
+ */
23905
+ constructor(properties?: google.chat.v1.IMoveSectionItemRequest);
23906
+
23907
+ /** MoveSectionItemRequest name. */
23908
+ public name: string;
23909
+
23910
+ /** MoveSectionItemRequest targetSection. */
23911
+ public targetSection: string;
23912
+
23913
+ /**
23914
+ * Creates a new MoveSectionItemRequest instance using the specified properties.
23915
+ * @param [properties] Properties to set
23916
+ * @returns MoveSectionItemRequest instance
23917
+ */
23918
+ public static create(properties?: google.chat.v1.IMoveSectionItemRequest): google.chat.v1.MoveSectionItemRequest;
23919
+
23920
+ /**
23921
+ * Encodes the specified MoveSectionItemRequest message. Does not implicitly {@link google.chat.v1.MoveSectionItemRequest.verify|verify} messages.
23922
+ * @param message MoveSectionItemRequest message or plain object to encode
23923
+ * @param [writer] Writer to encode to
23924
+ * @returns Writer
23925
+ */
23926
+ public static encode(message: google.chat.v1.IMoveSectionItemRequest, writer?: $protobuf.Writer): $protobuf.Writer;
23927
+
23928
+ /**
23929
+ * Encodes the specified MoveSectionItemRequest message, length delimited. Does not implicitly {@link google.chat.v1.MoveSectionItemRequest.verify|verify} messages.
23930
+ * @param message MoveSectionItemRequest message or plain object to encode
23931
+ * @param [writer] Writer to encode to
23932
+ * @returns Writer
23933
+ */
23934
+ public static encodeDelimited(message: google.chat.v1.IMoveSectionItemRequest, writer?: $protobuf.Writer): $protobuf.Writer;
23935
+
23936
+ /**
23937
+ * Decodes a MoveSectionItemRequest message from the specified reader or buffer.
23938
+ * @param reader Reader or buffer to decode from
23939
+ * @param [length] Message length if known beforehand
23940
+ * @returns MoveSectionItemRequest
23941
+ * @throws {Error} If the payload is not a reader or valid buffer
23942
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23943
+ */
23944
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.MoveSectionItemRequest;
23945
+
23946
+ /**
23947
+ * Decodes a MoveSectionItemRequest message from the specified reader or buffer, length delimited.
23948
+ * @param reader Reader or buffer to decode from
23949
+ * @returns MoveSectionItemRequest
23950
+ * @throws {Error} If the payload is not a reader or valid buffer
23951
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
23952
+ */
23953
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.MoveSectionItemRequest;
23954
+
23955
+ /**
23956
+ * Verifies a MoveSectionItemRequest message.
23957
+ * @param message Plain object to verify
23958
+ * @returns `null` if valid, otherwise the reason why it is not
23959
+ */
23960
+ public static verify(message: { [k: string]: any }): (string|null);
23961
+
23962
+ /**
23963
+ * Creates a MoveSectionItemRequest message from a plain object. Also converts values to their respective internal types.
23964
+ * @param object Plain object
23965
+ * @returns MoveSectionItemRequest
23966
+ */
23967
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.MoveSectionItemRequest;
23968
+
23969
+ /**
23970
+ * Creates a plain object from a MoveSectionItemRequest message. Also converts values to other types if specified.
23971
+ * @param message MoveSectionItemRequest
23972
+ * @param [options] Conversion options
23973
+ * @returns Plain object
23974
+ */
23975
+ public static toObject(message: google.chat.v1.MoveSectionItemRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
23976
+
23977
+ /**
23978
+ * Converts this MoveSectionItemRequest to JSON.
23979
+ * @returns JSON object
23980
+ */
23981
+ public toJSON(): { [k: string]: any };
23982
+
23983
+ /**
23984
+ * Gets the default type url for MoveSectionItemRequest
23985
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
23986
+ * @returns The default type url
23987
+ */
23988
+ public static getTypeUrl(typeUrlPrefix?: string): string;
23989
+ }
23990
+
23991
+ /** Properties of a MoveSectionItemResponse. */
23992
+ interface IMoveSectionItemResponse {
23993
+
23994
+ /** MoveSectionItemResponse sectionItem */
23995
+ sectionItem?: (google.chat.v1.ISectionItem|null);
23996
+ }
23997
+
23998
+ /** Represents a MoveSectionItemResponse. */
23999
+ class MoveSectionItemResponse implements IMoveSectionItemResponse {
24000
+
24001
+ /**
24002
+ * Constructs a new MoveSectionItemResponse.
24003
+ * @param [properties] Properties to set
24004
+ */
24005
+ constructor(properties?: google.chat.v1.IMoveSectionItemResponse);
24006
+
24007
+ /** MoveSectionItemResponse sectionItem. */
24008
+ public sectionItem?: (google.chat.v1.ISectionItem|null);
24009
+
24010
+ /**
24011
+ * Creates a new MoveSectionItemResponse instance using the specified properties.
24012
+ * @param [properties] Properties to set
24013
+ * @returns MoveSectionItemResponse instance
24014
+ */
24015
+ public static create(properties?: google.chat.v1.IMoveSectionItemResponse): google.chat.v1.MoveSectionItemResponse;
24016
+
24017
+ /**
24018
+ * Encodes the specified MoveSectionItemResponse message. Does not implicitly {@link google.chat.v1.MoveSectionItemResponse.verify|verify} messages.
24019
+ * @param message MoveSectionItemResponse message or plain object to encode
24020
+ * @param [writer] Writer to encode to
24021
+ * @returns Writer
24022
+ */
24023
+ public static encode(message: google.chat.v1.IMoveSectionItemResponse, writer?: $protobuf.Writer): $protobuf.Writer;
24024
+
24025
+ /**
24026
+ * Encodes the specified MoveSectionItemResponse message, length delimited. Does not implicitly {@link google.chat.v1.MoveSectionItemResponse.verify|verify} messages.
24027
+ * @param message MoveSectionItemResponse message or plain object to encode
24028
+ * @param [writer] Writer to encode to
24029
+ * @returns Writer
24030
+ */
24031
+ public static encodeDelimited(message: google.chat.v1.IMoveSectionItemResponse, writer?: $protobuf.Writer): $protobuf.Writer;
24032
+
24033
+ /**
24034
+ * Decodes a MoveSectionItemResponse message from the specified reader or buffer.
24035
+ * @param reader Reader or buffer to decode from
24036
+ * @param [length] Message length if known beforehand
24037
+ * @returns MoveSectionItemResponse
24038
+ * @throws {Error} If the payload is not a reader or valid buffer
24039
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24040
+ */
24041
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.chat.v1.MoveSectionItemResponse;
24042
+
24043
+ /**
24044
+ * Decodes a MoveSectionItemResponse message from the specified reader or buffer, length delimited.
24045
+ * @param reader Reader or buffer to decode from
24046
+ * @returns MoveSectionItemResponse
24047
+ * @throws {Error} If the payload is not a reader or valid buffer
24048
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
24049
+ */
24050
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.chat.v1.MoveSectionItemResponse;
24051
+
24052
+ /**
24053
+ * Verifies a MoveSectionItemResponse message.
24054
+ * @param message Plain object to verify
24055
+ * @returns `null` if valid, otherwise the reason why it is not
24056
+ */
24057
+ public static verify(message: { [k: string]: any }): (string|null);
24058
+
24059
+ /**
24060
+ * Creates a MoveSectionItemResponse message from a plain object. Also converts values to their respective internal types.
24061
+ * @param object Plain object
24062
+ * @returns MoveSectionItemResponse
24063
+ */
24064
+ public static fromObject(object: { [k: string]: any }): google.chat.v1.MoveSectionItemResponse;
24065
+
24066
+ /**
24067
+ * Creates a plain object from a MoveSectionItemResponse message. Also converts values to other types if specified.
24068
+ * @param message MoveSectionItemResponse
24069
+ * @param [options] Conversion options
24070
+ * @returns Plain object
24071
+ */
24072
+ public static toObject(message: google.chat.v1.MoveSectionItemResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
24073
+
24074
+ /**
24075
+ * Converts this MoveSectionItemResponse to JSON.
24076
+ * @returns JSON object
24077
+ */
24078
+ public toJSON(): { [k: string]: any };
24079
+
24080
+ /**
24081
+ * Gets the default type url for MoveSectionItemResponse
24082
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
24083
+ * @returns The default type url
24084
+ */
24085
+ public static getTypeUrl(typeUrlPrefix?: string): string;
24086
+ }
24087
+
22191
24088
  /** Properties of a SpaceEvent. */
22192
24089
  interface ISpaceEvent {
22193
24090