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.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(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.
|
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.Patch |
patch(java.lang.String name,
UpdateSubscriptionRequest content)
Updates an existing subscription.
|
Pubsub.Projects.Subscriptions.Pull |
pull(java.lang.String subscription,
PullRequest content)
Pulls messages from the server.
|
Pubsub.Projects.Subscriptions.Seek |
seek(java.lang.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(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 - Required. The subscription whose message is being acknowledged.
Format is
`projects/{project}/subscriptions/{sub}`.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 - 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 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 - Required. The subscription to delete.
Format is `projects/{project}/subscriptions/{sub}`.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 - Required. The name of the subscription to get.
Format is `projects/{project}/subscriptions/{sub}`.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 the policy is being requested.
See the operation documentation for
the appropriate value for this field.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 - Required. The name of the project in which to list subscriptions.
Format is `projects/{project-id}`.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 - Required. The name of the subscription.
Format is `projects/{project}/subscriptions/{sub}`.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 - Required. The name of the subscription.
Format is `projects/{project}/subscriptions/{sub}`.content - the ModifyPushConfigRequestjava.io.IOExceptionpublic Pubsub.Projects.Subscriptions.Patch patch(java.lang.String name, UpdateSubscriptionRequest content) throws java.io.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 UpdateSubscriptionRequestjava.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 - Required. The subscription from which messages should be pulled.
Format is
`projects/{project}/subscriptions/{sub}`.content - the PullRequestjava.io.IOExceptionpublic Pubsub.Projects.Subscriptions.Seek seek(java.lang.String subscription, SeekRequest content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.subscription - Required. The subscription to affect.content - the SeekRequestjava.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 the policy is being specified.
See the operation documentation for
the appropriate value for this field.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 the policy detail is being requested.
See the operation
documentation for the appropriate value for this field.content - the TestIamPermissionsRequestjava.io.IOException