Package com.google.cloud.pubsub.v1 (1.136.1)

Repository

Client Classes

Client classes are the main entry point to using a package. They contain several variations of Java methods for each of the API's methods.

ClientDescription
com.google.cloud.pubsub.v1.SchemaServiceClientService Description: Service for doing schema-related operations.

This class provides the ability to make remote calls to the backing service through method calls that map to API methods. Sample code to get started:

com.google.cloud.pubsub.v1.SubscriptionAdminClientService Description: The service that an application uses to manipulate subscriptions and to consume messages from a subscription via the Pull method or by establishing a bi-directional stream using the Pull method.
com.google.cloud.pubsub.v1.TopicAdminClientService Description: The service that an application uses to manipulate topics, and to send messages to a topic.

This class provides the ability to make remote calls to the backing service through method

Settings Classes

Settings classes can be used to configure credentials, endpoints, and retry settings for a Client.

SettingsDescription
com.google.cloud.pubsub.v1.SchemaServiceSettingsSettings class to configure an instance of SchemaServiceClient.

The default instance has everything set to sensible defaults:

com.google.cloud.pubsub.v1.SubscriptionAdminSettingsSettings class to configure an instance of SubscriptionAdminClient.

The default instance has everything set to sensible defaults:

com.google.cloud.pubsub.v1.TopicAdminSettingsSettings class to configure an instance of TopicAdminClient.

The default instance has everything set to sensible defaults:

Classes

ClassDescription
com.google.cloud.pubsub.v1.AckReplyConsumerImpl
com.google.cloud.pubsub.v1.AckReplyConsumerWithResponseImpl
com.google.cloud.pubsub.v1.AckRequestData
com.google.cloud.pubsub.v1.AckRequestData.BuilderBuilder of AckRequestData.
com.google.cloud.pubsub.v1.OpenCensusUtilUtilities for propagating OpenCensus TagContext and SpanContext from publishers to subscribers.
com.google.cloud.pubsub.v1.OpenCensusUtil.OpenCensusMessageReceiverWrapper class for MessageReceiver that decodes any received trace and tag contexts and puts them in scope.
com.google.cloud.pubsub.v1.OpenTelemetryPubsubTracer
com.google.cloud.pubsub.v1.PublisherA Cloud Pub/Sub publisher, that is associated with a specific topic at creation.

A Publisher provides built-in capabilities to automatically handle batching of

com.google.cloud.pubsub.v1.Publisher.BuilderA builder of Publishers.
com.google.cloud.pubsub.v1.PubsubMessageWrapperA wrapper class for a PubsubMessage object that handles creation and tracking of OpenTelemetry Span objects for different operations that occur during publishing.
com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemaRevisionsFixedSizeCollection
com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemaRevisionsPage
com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemaRevisionsPagedResponse
com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasFixedSizeCollection
com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPage
com.google.cloud.pubsub.v1.SchemaServiceClient.ListSchemasPagedResponse
com.google.cloud.pubsub.v1.SchemaServiceSettings.BuilderBuilder for SchemaServiceSettings.
com.google.cloud.pubsub.v1.SubscriberA Cloud Pub/Sub subscriber that is associated with a specific subscription at creation.

A Subscriber allows you to provide an implementation of a receiver to which messages are going to be delivered as soon as they are received by the

com.google.cloud.pubsub.v1.Subscriber.BuilderBuilder of Subscribers.
com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsFixedSizeCollection
com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPage
com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSnapshotsPagedResponse
com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsFixedSizeCollection
com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPage
com.google.cloud.pubsub.v1.SubscriptionAdminClient.ListSubscriptionsPagedResponse
com.google.cloud.pubsub.v1.SubscriptionAdminSettings.BuilderBuilder for SubscriptionAdminSettings.
com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsFixedSizeCollection
com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPage
com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSnapshotsPagedResponse
com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsFixedSizeCollection
com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPage
com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicSubscriptionsPagedResponse
com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsFixedSizeCollection
com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPage
com.google.cloud.pubsub.v1.TopicAdminClient.ListTopicsPagedResponse
com.google.cloud.pubsub.v1.TopicAdminSettings.BuilderBuilder for TopicAdminSettings.

Interfaces

InterfaceDescription
com.google.cloud.pubsub.v1.AckReplyConsumerAccepts a reply, sending it to the service.
com.google.cloud.pubsub.v1.AckReplyConsumerWithResponseAcknowledging a message in Pub/Sub means that you are done with it, and it will not be delivered to this subscription again. You should avoid acknowledging messages until you have finished processing them, so that in the event of a failure, you receive the message again.
com.google.cloud.pubsub.v1.MessageReceiverThis interface can be implemented by users of Subscriber to receive messages.
com.google.cloud.pubsub.v1.MessageReceiverWithAckResponse
com.google.cloud.pubsub.v1.PublisherInterfaceAn interface for a Cloud Pub/Sub publisher.
com.google.cloud.pubsub.v1.SubscriberInterfaceThe core interface for a Cloud Pub/Sub subscriber, consisting only of ApiService methods.

Enums

EnumDescription
com.google.cloud.pubsub.v1.AckResponse