public class Pubsub.Projects.Subscriptions extends 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.Detach |
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.Patch |
class |
Pubsub.Projects.Subscriptions.Pull |
class |
Pubsub.Projects.Subscriptions.Seek |
class |
Pubsub.Projects.Subscriptions.SetIamPolicy |
class |
Pubsub.Projects.Subscriptions.TestIamPermissions |
| Constructor and Description |
|---|
Subscriptions() |
| Modifier and Type | Method and Description |
|---|---|
Pubsub.Projects.Subscriptions.Acknowledge |
acknowledge(String subscription,
AcknowledgeRequest content)
Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`.
|
Pubsub.Projects.Subscriptions.Create |
create(String name,
Subscription content)
Creates a subscription to a given topic.
|
Pubsub.Projects.Subscriptions.Delete |
delete(String subscription)
Deletes an existing subscription.
|
Pubsub.Projects.Subscriptions.Detach |
detach(String subscription)
Detaches a subscription from this topic.
|
Pubsub.Projects.Subscriptions.Get |
get(String subscription)
Gets the configuration details of a subscription.
|
Pubsub.Projects.Subscriptions.GetIamPolicy |
getIamPolicy(String resource)
Gets the access control policy for a resource.
|
Pubsub.Projects.Subscriptions.List |
list(String project)
Lists matching subscriptions.
|
Pubsub.Projects.Subscriptions.ModifyAckDeadline |
modifyAckDeadline(String subscription,
ModifyAckDeadlineRequest content)
Modifies the ack deadline for a specific message.
|
Pubsub.Projects.Subscriptions.ModifyPushConfig |
modifyPushConfig(String subscription,
ModifyPushConfigRequest content)
Modifies the `PushConfig` for a specified subscription.
|
Pubsub.Projects.Subscriptions.Patch |
patch(String name,
UpdateSubscriptionRequest content)
Updates an existing subscription.
|
Pubsub.Projects.Subscriptions.Pull |
pull(String subscription,
PullRequest content)
Pulls messages from the server.
|
Pubsub.Projects.Subscriptions.Seek |
seek(String subscription,
SeekRequest content)
Seeks an existing subscription to a point in time or to a given snapshot, whichever is provided
in the request.
|
Pubsub.Projects.Subscriptions.SetIamPolicy |
setIamPolicy(String resource,
SetIamPolicyRequest content)
Sets the access control policy on the specified resource.
|
Pubsub.Projects.Subscriptions.TestIamPermissions |
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
|
public Pubsub.Projects.Subscriptions.Acknowledge acknowledge(String subscription, AcknowledgeRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - Required. The subscription whose message is being acknowledged. Format is
`projects/{project}/subscriptions/{sub}`.content - the AcknowledgeRequestIOExceptionpublic Pubsub.Projects.Subscriptions.Create create(String name, Subscription content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. 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 SubscriptionIOExceptionpublic Pubsub.Projects.Subscriptions.Delete delete(String subscription) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - Required. The subscription to delete. Format is `projects/{project}/subscriptions/{sub}`.IOExceptionpublic Pubsub.Projects.Subscriptions.Detach detach(String subscription) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - Required. The subscription to detach. Format is `projects/{project}/subscriptions/{subscription}`.IOExceptionpublic Pubsub.Projects.Subscriptions.Get get(String subscription) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - Required. The name of the subscription to get. Format is `projects/{project}/subscriptions/{sub}`.IOExceptionpublic Pubsub.Projects.Subscriptions.GetIamPolicy getIamPolicy(String resource) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.IOExceptionpublic Pubsub.Projects.Subscriptions.List list(String project) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.project - Required. The name of the project in which to list subscriptions. Format is `projects/{project-id}`.IOExceptionpublic Pubsub.Projects.Subscriptions.ModifyAckDeadline modifyAckDeadline(String subscription, ModifyAckDeadlineRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - Required. The name of the subscription. Format is `projects/{project}/subscriptions/{sub}`.content - the ModifyAckDeadlineRequestIOExceptionpublic Pubsub.Projects.Subscriptions.ModifyPushConfig modifyPushConfig(String subscription, ModifyPushConfigRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - Required. The name of the subscription. Format is `projects/{project}/subscriptions/{sub}`.content - the ModifyPushConfigRequestIOExceptionpublic Pubsub.Projects.Subscriptions.Patch patch(String name, UpdateSubscriptionRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.name - Required. 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 UpdateSubscriptionRequestIOExceptionpublic Pubsub.Projects.Subscriptions.Pull pull(String subscription, PullRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - Required. The subscription from which messages should be pulled. Format is
`projects/{project}/subscriptions/{sub}`.content - the PullRequestIOExceptionpublic Pubsub.Projects.Subscriptions.Seek seek(String subscription, SeekRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - Required. The subscription to affect.content - the SeekRequestIOExceptionpublic Pubsub.Projects.Subscriptions.SetIamPolicy setIamPolicy(String resource, SetIamPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy is being specified. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.content - the SetIamPolicyRequestIOExceptionpublic Pubsub.Projects.Subscriptions.TestIamPermissions testIamPermissions(String resource, TestIamPermissionsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.resource - REQUIRED: The resource for which the policy detail is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.content - the TestIamPermissionsRequestIOExceptionCopyright © 2011–2022 Google. All rights reserved.