Module publisher.client (2.20.3)

API documentation for pubsub_v1.publisher.client module.

Classes

Client

Client(
 batch_settings: typing.Union[
 google.cloud.pubsub_v1.types.BatchSettings, typing.Sequence
 ] = (),
 publisher_options: typing.Union[
 google.cloud.pubsub_v1.types.PublisherOptions, typing.Sequence
 ] = (),
 **kwargs: typing.Any
)

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
batch_settings typing.Union[google.cloud.pubsub_v1.types.BatchSettings, typing.Sequence]

The settings for batch publishing.

publisher_options typing.Union[google.cloud.pubsub_v1.types.PublisherOptions, typing.Sequence]

The options for the publisher client. Note that enabling message ordering will override the publish retry timeout to be infinite.

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.