public class Pubsub.Projects.Subscriptions
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Pubsub.Projects.Subscriptions.Acknowledge |
class |
Pubsub.Projects.Subscriptions.Create |
class |
Pubsub.Projects.Subscriptions.Delete |
class |
Pubsub.Projects.Subscriptions.Get |
class |
Pubsub.Projects.Subscriptions.GetIamPolicy |
class |
Pubsub.Projects.Subscriptions.List |
class |
Pubsub.Projects.Subscriptions.ModifyAckDeadline |
class |
Pubsub.Projects.Subscriptions.ModifyPushConfig |
class |
Pubsub.Projects.Subscriptions.Pull |
class |
Pubsub.Projects.Subscriptions.SetIamPolicy |
class |
Pubsub.Projects.Subscriptions.TestIamPermissions |
| Constructor and Description |
|---|
Pubsub.Projects.Subscriptions() |
| Modifier and Type | Method and Description |
|---|---|
Pubsub.Projects.Subscriptions.Acknowledge |
acknowledge(java.lang.String subscription,
AcknowledgeRequest content)
Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`.
|
Pubsub.Projects.Subscriptions.Create |
create(java.lang.String name,
Subscription content)
Creates a subscription to a given topic for a given subscriber.
|
Pubsub.Projects.Subscriptions.Delete |
delete(java.lang.String subscription)
Deletes an existing subscription.
|
Pubsub.Projects.Subscriptions.Get |
get(java.lang.String subscription)
Gets the configuration details of a subscription.
|
Pubsub.Projects.Subscriptions.GetIamPolicy |
getIamPolicy(java.lang.String resource)
Gets the access control policy for a `resource`.
|
Pubsub.Projects.Subscriptions.List |
list(java.lang.String project)
Lists matching subscriptions.
|
Pubsub.Projects.Subscriptions.ModifyAckDeadline |
modifyAckDeadline(java.lang.String subscription,
ModifyAckDeadlineRequest content)
Modifies the ack deadline for a specific message.
|
Pubsub.Projects.Subscriptions.ModifyPushConfig |
modifyPushConfig(java.lang.String subscription,
ModifyPushConfigRequest content)
Modifies the `PushConfig` for a specified subscription.
|
Pubsub.Projects.Subscriptions.Pull |
pull(java.lang.String subscription,
PullRequest content)
Pulls messages from the server.
|
Pubsub.Projects.Subscriptions.SetIamPolicy |
setIamPolicy(java.lang.String resource,
SetIamPolicyRequest content)
Sets the access control policy on the specified resource.
|
Pubsub.Projects.Subscriptions.TestIamPermissions |
testIamPermissions(java.lang.String resource,
TestIamPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
|
public Pubsub.Projects.Subscriptions.Acknowledge acknowledge(java.lang.String subscription, AcknowledgeRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - The subscription whose message is being acknowledged.content - the AcknowledgeRequestjava.io.IOExceptionpublic Pubsub.Projects.Subscriptions.Create create(java.lang.String name, Subscription content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - The name of the subscription. It must have the format
`"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a
letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must
be between 3 and 255 characters in length, and it must not start with `"goog"`.content - the Subscriptionjava.io.IOExceptionpublic Pubsub.Projects.Subscriptions.Delete delete(java.lang.String subscription) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - The subscription to delete.java.io.IOExceptionpublic Pubsub.Projects.Subscriptions.Get get(java.lang.String subscription) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - The name of the subscription to get.java.io.IOExceptionpublic Pubsub.Projects.Subscriptions.GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which policy is being requested. `resource` is usually specified as a
path, such as, `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path
specified in this value is resource specific and is specified in the documentation for the
respective GetIamPolicy rpc.java.io.IOExceptionpublic Pubsub.Projects.Subscriptions.List list(java.lang.String project) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - The name of the cloud project that subscriptions belong to.java.io.IOExceptionpublic Pubsub.Projects.Subscriptions.ModifyAckDeadline modifyAckDeadline(java.lang.String subscription, ModifyAckDeadlineRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - The name of the subscription.content - the ModifyAckDeadlineRequestjava.io.IOExceptionpublic Pubsub.Projects.Subscriptions.ModifyPushConfig modifyPushConfig(java.lang.String subscription, ModifyPushConfigRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - The name of the subscription.content - the ModifyPushConfigRequestjava.io.IOExceptionpublic Pubsub.Projects.Subscriptions.Pull pull(java.lang.String subscription, PullRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - The subscription from which messages should be pulled.content - the PullRequestjava.io.IOExceptionpublic Pubsub.Projects.Subscriptions.SetIamPolicy setIamPolicy(java.lang.String resource, SetIamPolicyRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which policy is being specified. `resource` is usually specified as a
path, such as, `projects/{project}/zones/{zone}/disks/{disk}`. The format for the path
specified in this value is resource specific and is specified in the documentation for the
respective SetIamPolicy rpc.content - the SetIamPolicyRequestjava.io.IOExceptionpublic Pubsub.Projects.Subscriptions.TestIamPermissions testIamPermissions(java.lang.String resource, TestIamPermissionsRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which policy detail is being requested. `resource` is usually specified
as a path, such as, `projects/{project}/zones/{zone}/disks/{disk}`. The format for the
path specified in this value is resource specific and is specified in the documentation
for the respective TestIamPermissions rpc.content - the TestIamPermissionsRequestjava.io.IOException