Module client (0.44.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
Name Description
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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.