Class Topic (1.12.0) Stay organized with collections Save and categorize content based on your preferences.
Topic(mapping=None,*,ignore_unknown_fields=False,**kwargs)Metadata about a topic resource.
Attributes | |
|---|---|
| Name | Description |
name :noindex: | strThe name of the topic. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id} |
partition_config :noindex: | google.cloud.pubsublite_v1.types.Topic.PartitionConfigThe settings for this topic's partitions. |
retention_config :noindex: | google.cloud.pubsublite_v1.types.Topic.RetentionConfigThe settings for this topic's message retention. |
reservation_config :noindex: | google.cloud.pubsublite_v1.types.Topic.ReservationConfigThe settings for this topic's Reservation usage. |
Classes
PartitionConfig
PartitionConfig(mapping=None,*,ignore_unknown_fields=False,**kwargs)The settings for a topic's partitions.
This message hasoneof_ fields (mutually exclusive fields).For each oneof, at most one member field can be set at the same time.Setting any member of the oneof automatically clears all othermembers.
.. _oneof:https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
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.