Package | Description |
---|---|
com.google.cloud.pubsub.v1 |
A client to Cloud Pub/Sub API
|
com.google.pubsub.v1 |
Modifier and Type | Method and Description |
---|---|
TopicName |
Publisher.getTopicName()
Topic which the publisher publishes to.
|
Modifier and Type | Method and Description |
---|---|
Subscription |
SubscriptionAdminClient.createSubscription(ProjectSubscriptionName name,
TopicName topic,
PushConfig pushConfig,
int ackDeadlineSeconds)
Deprecated.
|
Subscription |
SubscriptionAdminClient.createSubscription(String name,
TopicName topic,
PushConfig pushConfig,
int ackDeadlineSeconds)
Creates a subscription to a given topic.
|
Subscription |
SubscriptionAdminClient.createSubscription(SubscriptionName name,
TopicName topic,
PushConfig pushConfig,
int ackDeadlineSeconds)
Creates a subscription to a given topic.
|
Topic |
TopicAdminClient.createTopic(TopicName name)
Creates the given topic with the given name.
|
void |
TopicAdminClient.deleteTopic(TopicName topic)
Deletes the topic with the given name.
|
Topic |
TopicAdminClient.getTopic(TopicName topic)
Gets the configuration of a topic.
|
TopicAdminClient.ListTopicSnapshotsPagedResponse |
TopicAdminClient.listTopicSnapshots(TopicName topic)
Lists the names of the snapshots on this topic.
|
TopicAdminClient.ListTopicSubscriptionsPagedResponse |
TopicAdminClient.listTopicSubscriptions(TopicName topic)
Lists the names of the attached subscriptions on this topic.
|
static Publisher.Builder |
Publisher.newBuilder(TopicName topicName)
Constructs a new
Publisher.Builder using the given topic. |
PublishResponse |
TopicAdminClient.publish(TopicName topic,
List<PubsubMessage> messages)
Adds one or more messages to the topic.
|
Modifier and Type | Class and Description |
---|---|
class |
DeletedTopic
AUTO-GENERATED DOCUMENTATION AND CLASS
|
class |
ProjectTopicName
AUTO-GENERATED DOCUMENTATION AND CLASS
|
class |
UntypedTopicName
Deprecated.
This resource name class will be removed in the next major version.
|
Modifier and Type | Method and Description |
---|---|
TopicName |
TopicName.Builder.build() |
static TopicName |
TopicName.of(String project,
String topic) |
static TopicName |
TopicName.ofDeletedTopicName() |
static TopicName |
TopicName.ofProjectTopicName(String project,
String topic) |
static TopicName |
TopicNames.parse(String resourceNameString)
Deprecated.
|
static TopicName |
TopicName.parse(String formattedString) |
Modifier and Type | Method and Description |
---|---|
static List<TopicName> |
TopicName.parseList(List<String> formattedStrings) |
Modifier and Type | Method and Description |
---|---|
static List<String> |
TopicName.toStringList(List<TopicName> values) |
Copyright © 2023 Google LLC. All rights reserved.