public class Gmail.Users.Labels extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
Gmail.Users.Labels.Create |
class |
Gmail.Users.Labels.Delete |
class |
Gmail.Users.Labels.Get |
class |
Gmail.Users.Labels.List |
class |
Gmail.Users.Labels.Patch |
class |
Gmail.Users.Labels.Update |
| Constructor and Description |
|---|
Labels() |
| Modifier and Type | Method and Description |
|---|---|
Gmail.Users.Labels.Create |
create(String userId,
Label content)
Creates a new label.
|
Gmail.Users.Labels.Delete |
delete(String userId,
String id)
Immediately and permanently deletes the specified label and removes it from any messages and
threads that it is applied to.
|
Gmail.Users.Labels.Get |
get(String userId,
String id)
Gets the specified label.
|
Gmail.Users.Labels.List |
list(String userId)
Lists all labels in the user's mailbox.
|
Gmail.Users.Labels.Patch |
patch(String userId,
String id,
Label content)
Patch the specified label.
|
Gmail.Users.Labels.Update |
update(String userId,
String id,
Label content)
Updates the specified label.
|
public Gmail.Users.Labels.Create create(String userId, Label content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.userId - The user's email address. The special value `me` can be used to indicate the authenticated user.
[default: me]content - the LabelIOExceptionpublic Gmail.Users.Labels.Delete delete(String userId, String id) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.userId - The user's email address. The special value `me` can be used to indicate the authenticated user.
[default: me]id - The ID of the label to delete.IOExceptionpublic Gmail.Users.Labels.Get get(String userId, String id) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.userId - The user's email address. The special value `me` can be used to indicate the authenticated user.
[default: me]id - The ID of the label to retrieve.IOExceptionpublic Gmail.Users.Labels.List list(String userId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.userId - The user's email address. The special value `me` can be used to indicate the authenticated user.
[default: me]IOExceptionpublic Gmail.Users.Labels.Patch patch(String userId, String id, Label content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.userId - The user's email address. The special value `me` can be used to indicate the authenticated user.
[default: me]id - The ID of the label to update.content - the LabelIOExceptionpublic Gmail.Users.Labels.Update update(String userId, String id, Label content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.userId - The user's email address. The special value `me` can be used to indicate the authenticated user.
[default: me]id - The ID of the label to update.content - the LabelIOExceptionCopyright © 2011–2025 Google. All rights reserved.