| Package | Description |
|---|---|
| com.google.api.services.pubsub | |
| com.google.api.services.pubsub.model |
| Modifier and Type | Method and Description |
|---|---|
Pubsub.Projects.Subscriptions.Create |
Pubsub.Projects.Subscriptions.create(String name,
Subscription content)
Creates a subscription to a given topic.
|
| Constructor and Description |
|---|
Create(String name,
Subscription content)
Creates a subscription to a given topic.
|
| Modifier and Type | Method and Description |
|---|---|
Subscription |
Subscription.clone() |
Subscription |
UpdateSubscriptionRequest.getSubscription()
Required.
|
Subscription |
Subscription.set(String fieldName,
Object value) |
Subscription |
Subscription.setAckDeadlineSeconds(Integer ackDeadlineSeconds)
The approximate amount of time (on a best-effort basis) Pub/Sub waits for the subscriber to
acknowledge receipt before resending the message.
|
Subscription |
Subscription.setBigqueryConfig(BigQueryConfig bigqueryConfig)
If delivery to BigQuery is used with this subscription, this field is used to configure it.
|
Subscription |
Subscription.setDeadLetterPolicy(DeadLetterPolicy deadLetterPolicy)
A policy that specifies the conditions for dead lettering messages in this subscription.
|
Subscription |
Subscription.setDetached(Boolean detached)
Indicates whether the subscription is detached from its topic.
|
Subscription |
Subscription.setEnableExactlyOnceDelivery(Boolean enableExactlyOnceDelivery)
If true, Pub/Sub provides the following guarantees for the delivery of a message with a given
value of `message_id` on this subscription: * The message sent to a subscriber is guaranteed
not to be resent before the message's acknowledgement deadline expires.
|
Subscription |
Subscription.setEnableMessageOrdering(Boolean enableMessageOrdering)
If true, messages published with the same `ordering_key` in `PubsubMessage` will be delivered
to the subscribers in the order in which they are received by the Pub/Sub system.
|
Subscription |
Subscription.setExpirationPolicy(ExpirationPolicy expirationPolicy)
A policy that specifies the conditions for this subscription's expiration.
|
Subscription |
Subscription.setFilter(String filter)
An expression written in the Pub/Sub [filter
language](https://cloud.google.com/pubsub/docs/filtering).
|
Subscription |
Subscription.setLabels(Map<String,String> labels)
See [Creating and managing labels](https://cloud.google.com/pubsub/docs/labels).
|
Subscription |
Subscription.setMessageRetentionDuration(String messageRetentionDuration)
How long to retain unacknowledged messages in the subscription's backlog, from the moment a
message is published.
|
Subscription |
Subscription.setName(String name)
Required.
|
Subscription |
Subscription.setPushConfig(PushConfig pushConfig)
If push delivery is used with this subscription, this field is used to configure it.
|
Subscription |
Subscription.setRetainAckedMessages(Boolean retainAckedMessages)
Indicates whether to retain acknowledged messages.
|
Subscription |
Subscription.setRetryPolicy(RetryPolicy retryPolicy)
A policy that specifies how Pub/Sub retries message delivery for this subscription.
|
Subscription |
Subscription.setState(String state)
Output only.
|
Subscription |
Subscription.setTopic(String topic)
Required.
|
Subscription |
Subscription.setTopicMessageRetentionDuration(String topicMessageRetentionDuration)
Output only.
|
| Modifier and Type | Method and Description |
|---|---|
List<Subscription> |
ListSubscriptionsResponse.getSubscriptions()
The subscriptions that match the request.
|
| Modifier and Type | Method and Description |
|---|---|
UpdateSubscriptionRequest |
UpdateSubscriptionRequest.setSubscription(Subscription subscription)
Required.
|
| Modifier and Type | Method and Description |
|---|---|
ListSubscriptionsResponse |
ListSubscriptionsResponse.setSubscriptions(List<Subscription> subscriptions)
The subscriptions that match the request.
|
Copyright © 2011–2022 Google. All rights reserved.