public class Gmail.Users.Labels
extends java.lang.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(java.lang.String userId,
Label content)
Creates a new label.
|
Gmail.Users.Labels.Delete |
delete(java.lang.String userId,
java.lang.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(java.lang.String userId,
java.lang.String id)
Gets the specified label.
|
Gmail.Users.Labels.List |
list(java.lang.String userId)
Lists all labels in the user's mailbox.
|
Gmail.Users.Labels.Patch |
patch(java.lang.String userId,
java.lang.String id,
Label content)
Updates the specified label.
|
Gmail.Users.Labels.Update |
update(java.lang.String userId,
java.lang.String id,
Label content)
Updates the specified label.
|
public Gmail.Users.Labels.Create create(java.lang.String userId, Label content) throws java.io.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 Label
java.io.IOException
public Gmail.Users.Labels.Delete delete(java.lang.String userId, java.lang.String id) throws java.io.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.java.io.IOException
public Gmail.Users.Labels.Get get(java.lang.String userId, java.lang.String id) throws java.io.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.java.io.IOException
public Gmail.Users.Labels.List list(java.lang.String userId) throws java.io.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]java.io.IOException
public Gmail.Users.Labels.Patch patch(java.lang.String userId, java.lang.String id, Label content) throws java.io.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 Label
java.io.IOException
public Gmail.Users.Labels.Update update(java.lang.String userId, java.lang.String id, Label content) throws java.io.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 Label
java.io.IOException