Skip to main content

topics

Overview

Nametopics
TypeResource
Idgoogle.pubsublite.topics

Fields

NameDatatypeDescription
namestringThe name of the topic. Structured like: projects/{project_number}/locations/{location}/topics/{topic_id}
partitionConfigobjectThe settings for a topic's partitions.
reservationConfigobjectThe settings for this topic's Reservation usage.
retentionConfigobjectThe settings for a topic's message retention.

Methods

NameAccessible byRequired ParamsDescription
admin_projects_locations_reservations_topics_listSELECTlocationsId, projectsId, reservationsIdLists the topics attached to the specified reservation.
admin_projects_locations_topics_getSELECTlocationsId, projectsId, topicsIdReturns the topic configuration.
admin_projects_locations_topics_listSELECTlocationsId, projectsIdReturns the list of topics for the given project.
admin_projects_locations_topics_createINSERTlocationsId, projectsIdCreates a new topic.
admin_projects_locations_topics_deleteDELETElocationsId, projectsId, topicsIdDeletes the specified topic.
_admin_projects_locations_reservations_topics_listEXEClocationsId, projectsId, reservationsIdLists the topics attached to the specified reservation.
_admin_projects_locations_topics_listEXEClocationsId, projectsIdReturns the list of topics for the given project.
admin_projects_locations_topics_patchEXEClocationsId, projectsId, topicsIdUpdates properties of the specified topic.
topic_stats_projects_locations_topics_compute_head_cursorEXEClocationsId, projectsId, topicsIdCompute the head cursor for the partition. The head cursor's offset is guaranteed to be less than or equal to all messages which have not yet been acknowledged as published, and greater than the offset of any message whose publish has already been acknowledged. It is zero if there have never been messages in the partition.
topic_stats_projects_locations_topics_compute_message_statsEXEClocationsId, projectsId, topicsIdCompute statistics about a range of messages in a given topic and partition.
topic_stats_projects_locations_topics_compute_time_cursorEXEClocationsId, projectsId, topicsIdCompute the corresponding cursor for a publish or event time in a topic partition.