public class HangoutsChat.Users.Sections extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
HangoutsChat.Users.Sections.Create |
class |
HangoutsChat.Users.Sections.Delete |
class |
HangoutsChat.Users.Sections.Items
The "items" collection of methods.
|
class |
HangoutsChat.Users.Sections.List |
class |
HangoutsChat.Users.Sections.Patch |
class |
HangoutsChat.Users.Sections.Position |
| Constructor and Description |
|---|
Sections() |
| Modifier and Type | Method and Description |
|---|---|
HangoutsChat.Users.Sections.Create |
create(String parent,
GoogleChatV1Section content)
[Developer Preview](https://developers.google.com/workspace/preview): Creates a section in Google
Chat.
|
HangoutsChat.Users.Sections.Delete |
delete(String name)
[Developer Preview](https://developers.google.com/workspace/preview): Deletes a section of type
`CUSTOM_SECTION`.
|
HangoutsChat.Users.Sections.Items |
items()
An accessor for creating requests from the Items collection.
|
HangoutsChat.Users.Sections.List |
list(String parent)
[Developer Preview](https://developers.google.com/workspace/preview): Lists sections available to
the Chat user.
|
HangoutsChat.Users.Sections.Patch |
patch(String name,
GoogleChatV1Section content)
[Developer Preview](https://developers.google.com/workspace/preview): Updates a section.
|
HangoutsChat.Users.Sections.Position |
position(String name,
PositionSectionRequest content)
[Developer Preview](https://developers.google.com/workspace/preview): Changes the sort order of a
section.
|
public HangoutsChat.Users.Sections.Create create(String parent, GoogleChatV1Section content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The parent resource name where the section is created. Format: `users/{user}`content - the GoogleChatV1SectionIOExceptionpublic HangoutsChat.Users.Sections.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The name of the section to delete. Format: `users/{user}/sections/{section}`IOExceptionpublic HangoutsChat.Users.Sections.List list(String parent) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.parent - Required. The parent, which is the user resource name that owns this collection of sections. Only
supports listing sections for the calling user. To refer to the calling user, set one of
the following: - The `me` alias. For example, `users/me`. - Their Workspace email address.
For example, `users/user@example.com`. - Their user id. For example, `users/123456789`.
Format: `users/{user}`IOExceptionpublic HangoutsChat.Users.Sections.Patch patch(String name, GoogleChatV1Section content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Identifier. Resource name of the section. For system sections, the section ID is a constant string:
- DEFAULT_DIRECT_MESSAGES: `users/{user}/sections/default-direct-messages` -
DEFAULT_SPACES: `users/{user}/sections/default-spaces` - DEFAULT_APPS:
`users/{user}/sections/default-apps` Format: `users/{user}/sections/{section}`content - the GoogleChatV1SectionIOExceptionpublic HangoutsChat.Users.Sections.Position position(String name, PositionSectionRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the section to position. Format: `users/{user}/sections/{section}`content - the PositionSectionRequestIOExceptionpublic HangoutsChat.Users.Sections.Items items()
The typical use is:
HangoutsChat chat = new HangoutsChat(...);HangoutsChat.Items.List request = chat.items().list(parameters ...)
Copyright © 2011–2026 Google. All rights reserved.