public class HangoutsChat.Users.Availability extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
HangoutsChat.Users.Availability.Get |
class |
HangoutsChat.Users.Availability.MarkAsActive |
class |
HangoutsChat.Users.Availability.MarkAsAway |
class |
HangoutsChat.Users.Availability.MarkAsDoNotDisturb |
class |
HangoutsChat.Users.Availability.Patch |
| Constructor and Description |
|---|
Availability() |
| Modifier and Type | Method and Description |
|---|---|
HangoutsChat.Users.Availability.Get |
get(String name)
Returns availability information for a human user in Google Chat.
|
HangoutsChat.Users.Availability.MarkAsActive |
markAsActive(String name,
MarkAsActiveRequest content)
Marks user as `ACTIVE` in Google Chat.
|
HangoutsChat.Users.Availability.MarkAsAway |
markAsAway(String name,
MarkAsAwayRequest content)
Marks user as `AWAY` in Google Chat.
|
HangoutsChat.Users.Availability.MarkAsDoNotDisturb |
markAsDoNotDisturb(String name,
MarkAsDoNotDisturbRequest content)
Marks user as `DO_NOT_DISTURB` in Google Chat.
|
HangoutsChat.Users.Availability.Patch |
patch(String name,
Availability content)
Updates availability information for a human user.
|
public HangoutsChat.Users.Availability.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the availability to retrieve. Format: users/{user}/availability
`{user}` is the id for the Person in the People API or Admin SDK directory API. For
example, `users/123456789`. The user's email address or `me` can also be used as an alias
to refer to the caller. For example, `users/user@example.com` or `users/me`.IOExceptionpublic HangoutsChat.Users.Availability.MarkAsActive markAsActive(String name, MarkAsActiveRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the availability to mark as active. Format: users/{user}/availability
`{user}` is the id for the Person in the People API or Admin SDK directory API. For
example, `users/123456789`. The user's email address or `me` can also be used as an alias
to refer to the caller. For example, `users/user@example.com` or `users/me`.content - the MarkAsActiveRequestIOExceptionpublic HangoutsChat.Users.Availability.MarkAsAway markAsAway(String name, MarkAsAwayRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the availability to mark as away. Format: users/{user}/availability
`{user}` is the id for the Person in the People API or Admin SDK directory API. For
example, `users/123456789`. The user's email address or `me` can also be used as an alias
to refer to the caller. For example, `users/user@example.com` or `users/me`.content - the MarkAsAwayRequestIOExceptionpublic HangoutsChat.Users.Availability.MarkAsDoNotDisturb markAsDoNotDisturb(String name, MarkAsDoNotDisturbRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. The resource name of the availability to mark as Do Not Disturb. Format:
users/{user}/availability `{user}` is the id for the Person in the People API or Admin SDK
directory API. For example, `users/123456789`. The user's email address or `me` can also
be used as an alias to refer to the caller. For example, `users/user@example.com` or
`users/me`.content - the MarkAsDoNotDisturbRequestIOExceptionpublic HangoutsChat.Users.Availability.Patch patch(String name, Availability content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Identifier. Resource name of the user's availability. Format: `users/{user}/availability` `{user}`
is the id for the Person in the People API or Admin SDK directory API. For example,
`users/123456789`. The user's email address or `me` can also be used as an alias to refer
to the caller. For example, `users/user@example.com` or `users/me`.content - the AvailabilityIOExceptionCopyright © 2011–2026 Google. All rights reserved.