Module client (0.45.0)

API documentation for pubsub_v1.publisher.client module.

Classes

Client

Client(batch_settings=(), **kwargs)

A publisher client for Google Cloud Pub/Sub.

This creates an object that is capable of publishing messages. Generally, you can instantiate this client with no arguments, and you get sensible defaults.

Parameters
NameDescription
kwargs dict

Any additional arguments provided are sent as keyword arguments to the underlying .gapic.pubsub.v1.publisher_client.PublisherClient. Generally, you should not need to set additional keyword arguments. Before being passed along to the GAPIC constructor, a channel may be added if credentials are passed explicitly or if the Pub / Sub emulator is detected as running. Regional endpoints can be set via client_options that takes a single key-value pair that defines the endpoint, i.e. client_options={"api_endpoint": REGIONAL_ENDPOINT}.

batch_settings BatchSettings

The settings for batch publishing.