Class Topic (1.12.0)

Topic(mapping=None,*,ignore_unknown_fields=False,**kwargs)

Metadata about a topic resource.

Attributes

NameDescription
name :noindex:str
The name of the topic. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
partition_config :noindex:google.cloud.pubsublite_v1.types.Topic.PartitionConfig
The settings for this topic's partitions.
retention_config :noindex:google.cloud.pubsublite_v1.types.Topic.RetentionConfig
The settings for this topic's message retention.
reservation_config :noindex:google.cloud.pubsublite_v1.types.Topic.ReservationConfig
The settings for this topic's Reservation usage.

Classes

PartitionConfig

PartitionConfig(mapping=None,*,ignore_unknown_fields=False,**kwargs)

ReservationConfig

ReservationConfig(mapping=None,*,ignore_unknown_fields=False,**kwargs)

The settings for this topic's Reservation usage.

RetentionConfig

RetentionConfig(mapping=None,*,ignore_unknown_fields=False,**kwargs)

The settings for a topic's message retention.

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

Last updated 2025-10-30 UTC.