admin.proto 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.pubsublite.v1;
  16. import "google/api/annotations.proto";
  17. import "google/api/client.proto";
  18. import "google/api/field_behavior.proto";
  19. import "google/api/resource.proto";
  20. import "google/cloud/pubsublite/v1/common.proto";
  21. import "google/longrunning/operations.proto";
  22. import "google/protobuf/empty.proto";
  23. import "google/protobuf/field_mask.proto";
  24. import "google/protobuf/timestamp.proto";
  25. option csharp_namespace = "Google.Cloud.PubSubLite.V1";
  26. option go_package = "google.golang.org/genproto/googleapis/cloud/pubsublite/v1;pubsublite";
  27. option java_multiple_files = true;
  28. option java_outer_classname = "AdminProto";
  29. option java_package = "com.google.cloud.pubsublite.proto";
  30. option php_namespace = "Google\\Cloud\\PubSubLite\\V1";
  31. option ruby_package = "Google::Cloud::PubSubLite::V1";
  32. // The service that a client application uses to manage topics and
  33. // subscriptions, such creating, listing, and deleting topics and subscriptions.
  34. service AdminService {
  35. option (google.api.default_host) = "pubsublite.googleapis.com";
  36. option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
  37. // Creates a new topic.
  38. rpc CreateTopic(CreateTopicRequest) returns (Topic) {
  39. option (google.api.http) = {
  40. post: "/v1/admin/{parent=projects/*/locations/*}/topics"
  41. body: "topic"
  42. };
  43. option (google.api.method_signature) = "parent,topic,topic_id";
  44. }
  45. // Returns the topic configuration.
  46. rpc GetTopic(GetTopicRequest) returns (Topic) {
  47. option (google.api.http) = {
  48. get: "/v1/admin/{name=projects/*/locations/*/topics/*}"
  49. };
  50. option (google.api.method_signature) = "name";
  51. }
  52. // Returns the partition information for the requested topic.
  53. rpc GetTopicPartitions(GetTopicPartitionsRequest) returns (TopicPartitions) {
  54. option (google.api.http) = {
  55. get: "/v1/admin/{name=projects/*/locations/*/topics/*}/partitions"
  56. };
  57. option (google.api.method_signature) = "name";
  58. }
  59. // Returns the list of topics for the given project.
  60. rpc ListTopics(ListTopicsRequest) returns (ListTopicsResponse) {
  61. option (google.api.http) = {
  62. get: "/v1/admin/{parent=projects/*/locations/*}/topics"
  63. };
  64. option (google.api.method_signature) = "parent";
  65. }
  66. // Updates properties of the specified topic.
  67. rpc UpdateTopic(UpdateTopicRequest) returns (Topic) {
  68. option (google.api.http) = {
  69. patch: "/v1/admin/{topic.name=projects/*/locations/*/topics/*}"
  70. body: "topic"
  71. };
  72. option (google.api.method_signature) = "topic,update_mask";
  73. }
  74. // Deletes the specified topic.
  75. rpc DeleteTopic(DeleteTopicRequest) returns (google.protobuf.Empty) {
  76. option (google.api.http) = {
  77. delete: "/v1/admin/{name=projects/*/locations/*/topics/*}"
  78. };
  79. option (google.api.method_signature) = "name";
  80. }
  81. // Lists the subscriptions attached to the specified topic.
  82. rpc ListTopicSubscriptions(ListTopicSubscriptionsRequest) returns (ListTopicSubscriptionsResponse) {
  83. option (google.api.http) = {
  84. get: "/v1/admin/{name=projects/*/locations/*/topics/*}/subscriptions"
  85. };
  86. option (google.api.method_signature) = "name";
  87. }
  88. // Creates a new subscription.
  89. rpc CreateSubscription(CreateSubscriptionRequest) returns (Subscription) {
  90. option (google.api.http) = {
  91. post: "/v1/admin/{parent=projects/*/locations/*}/subscriptions"
  92. body: "subscription"
  93. };
  94. option (google.api.method_signature) = "parent,subscription,subscription_id";
  95. }
  96. // Returns the subscription configuration.
  97. rpc GetSubscription(GetSubscriptionRequest) returns (Subscription) {
  98. option (google.api.http) = {
  99. get: "/v1/admin/{name=projects/*/locations/*/subscriptions/*}"
  100. };
  101. option (google.api.method_signature) = "name";
  102. }
  103. // Returns the list of subscriptions for the given project.
  104. rpc ListSubscriptions(ListSubscriptionsRequest) returns (ListSubscriptionsResponse) {
  105. option (google.api.http) = {
  106. get: "/v1/admin/{parent=projects/*/locations/*}/subscriptions"
  107. };
  108. option (google.api.method_signature) = "parent";
  109. }
  110. // Updates properties of the specified subscription.
  111. rpc UpdateSubscription(UpdateSubscriptionRequest) returns (Subscription) {
  112. option (google.api.http) = {
  113. patch: "/v1/admin/{subscription.name=projects/*/locations/*/subscriptions/*}"
  114. body: "subscription"
  115. };
  116. option (google.api.method_signature) = "subscription,update_mask";
  117. }
  118. // Deletes the specified subscription.
  119. rpc DeleteSubscription(DeleteSubscriptionRequest) returns (google.protobuf.Empty) {
  120. option (google.api.http) = {
  121. delete: "/v1/admin/{name=projects/*/locations/*/subscriptions/*}"
  122. };
  123. option (google.api.method_signature) = "name";
  124. }
  125. // Performs an out-of-band seek for a subscription to a specified target,
  126. // which may be timestamps or named positions within the message backlog.
  127. // Seek translates these targets to cursors for each partition and
  128. // orchestrates subscribers to start consuming messages from these seek
  129. // cursors.
  130. //
  131. // If an operation is returned, the seek has been registered and subscribers
  132. // will eventually receive messages from the seek cursors (i.e. eventual
  133. // consistency), as long as they are using a minimum supported client library
  134. // version and not a system that tracks cursors independently of Pub/Sub Lite
  135. // (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for
  136. // unsupported clients.
  137. //
  138. // If clients would like to know when subscribers react to the seek (or not),
  139. // they can poll the operation. The seek operation will succeed and complete
  140. // once subscribers are ready to receive messages from the seek cursors for
  141. // all partitions of the topic. This means that the seek operation will not
  142. // complete until all subscribers come online.
  143. //
  144. // If the previous seek operation has not yet completed, it will be aborted
  145. // and the new invocation of seek will supersede it.
  146. rpc SeekSubscription(SeekSubscriptionRequest) returns (google.longrunning.Operation) {
  147. option (google.api.http) = {
  148. post: "/v1/admin/{name=projects/*/locations/*/subscriptions/*}:seek"
  149. body: "*"
  150. };
  151. option (google.longrunning.operation_info) = {
  152. response_type: "SeekSubscriptionResponse"
  153. metadata_type: "OperationMetadata"
  154. };
  155. }
  156. // Creates a new reservation.
  157. rpc CreateReservation(CreateReservationRequest) returns (Reservation) {
  158. option (google.api.http) = {
  159. post: "/v1/admin/{parent=projects/*/locations/*}/reservations"
  160. body: "reservation"
  161. };
  162. option (google.api.method_signature) = "parent,reservation,reservation_id";
  163. }
  164. // Returns the reservation configuration.
  165. rpc GetReservation(GetReservationRequest) returns (Reservation) {
  166. option (google.api.http) = {
  167. get: "/v1/admin/{name=projects/*/locations/*/reservations/*}"
  168. };
  169. option (google.api.method_signature) = "name";
  170. }
  171. // Returns the list of reservations for the given project.
  172. rpc ListReservations(ListReservationsRequest) returns (ListReservationsResponse) {
  173. option (google.api.http) = {
  174. get: "/v1/admin/{parent=projects/*/locations/*}/reservations"
  175. };
  176. option (google.api.method_signature) = "parent";
  177. }
  178. // Updates properties of the specified reservation.
  179. rpc UpdateReservation(UpdateReservationRequest) returns (Reservation) {
  180. option (google.api.http) = {
  181. patch: "/v1/admin/{reservation.name=projects/*/locations/*/reservations/*}"
  182. body: "reservation"
  183. };
  184. option (google.api.method_signature) = "reservation,update_mask";
  185. }
  186. // Deletes the specified reservation.
  187. rpc DeleteReservation(DeleteReservationRequest) returns (google.protobuf.Empty) {
  188. option (google.api.http) = {
  189. delete: "/v1/admin/{name=projects/*/locations/*/reservations/*}"
  190. };
  191. option (google.api.method_signature) = "name";
  192. }
  193. // Lists the topics attached to the specified reservation.
  194. rpc ListReservationTopics(ListReservationTopicsRequest) returns (ListReservationTopicsResponse) {
  195. option (google.api.http) = {
  196. get: "/v1/admin/{name=projects/*/locations/*/reservations/*}/topics"
  197. };
  198. option (google.api.method_signature) = "name";
  199. }
  200. }
  201. // Request for CreateTopic.
  202. message CreateTopicRequest {
  203. // Required. The parent location in which to create the topic.
  204. // Structured like `projects/{project_number}/locations/{location}`.
  205. string parent = 1 [
  206. (google.api.field_behavior) = REQUIRED,
  207. (google.api.resource_reference) = {
  208. type: "locations.googleapis.com/Location"
  209. }
  210. ];
  211. // Required. Configuration of the topic to create. Its `name` field is ignored.
  212. Topic topic = 2 [(google.api.field_behavior) = REQUIRED];
  213. // Required. The ID to use for the topic, which will become the final component of
  214. // the topic's name.
  215. //
  216. // This value is structured like: `my-topic-name`.
  217. string topic_id = 3 [(google.api.field_behavior) = REQUIRED];
  218. }
  219. // Request for GetTopic.
  220. message GetTopicRequest {
  221. // Required. The name of the topic whose configuration to return.
  222. string name = 1 [
  223. (google.api.field_behavior) = REQUIRED,
  224. (google.api.resource_reference) = {
  225. type: "pubsublite.googleapis.com/Topic"
  226. }
  227. ];
  228. }
  229. // Request for GetTopicPartitions.
  230. message GetTopicPartitionsRequest {
  231. // Required. The topic whose partition information to return.
  232. string name = 1 [
  233. (google.api.field_behavior) = REQUIRED,
  234. (google.api.resource_reference) = {
  235. type: "pubsublite.googleapis.com/Topic"
  236. }
  237. ];
  238. }
  239. // Response for GetTopicPartitions.
  240. message TopicPartitions {
  241. // The number of partitions in the topic.
  242. int64 partition_count = 1;
  243. }
  244. // Request for ListTopics.
  245. message ListTopicsRequest {
  246. // Required. The parent whose topics are to be listed.
  247. // Structured like `projects/{project_number}/locations/{location}`.
  248. string parent = 1 [
  249. (google.api.field_behavior) = REQUIRED,
  250. (google.api.resource_reference) = {
  251. type: "locations.googleapis.com/Location"
  252. }
  253. ];
  254. // The maximum number of topics to return. The service may return fewer than
  255. // this value.
  256. // If unset or zero, all topics for the parent will be returned.
  257. int32 page_size = 2;
  258. // A page token, received from a previous `ListTopics` call.
  259. // Provide this to retrieve the subsequent page.
  260. //
  261. // When paginating, all other parameters provided to `ListTopics` must match
  262. // the call that provided the page token.
  263. string page_token = 3;
  264. }
  265. // Response for ListTopics.
  266. message ListTopicsResponse {
  267. // The list of topic in the requested parent. The order of the topics is
  268. // unspecified.
  269. repeated Topic topics = 1;
  270. // A token that can be sent as `page_token` to retrieve the next page of
  271. // results. If this field is omitted, there are no more results.
  272. string next_page_token = 2;
  273. }
  274. // Request for UpdateTopic.
  275. message UpdateTopicRequest {
  276. // Required. The topic to update. Its `name` field must be populated.
  277. Topic topic = 1 [(google.api.field_behavior) = REQUIRED];
  278. // Required. A mask specifying the topic fields to change.
  279. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
  280. }
  281. // Request for DeleteTopic.
  282. message DeleteTopicRequest {
  283. // Required. The name of the topic to delete.
  284. string name = 1 [
  285. (google.api.field_behavior) = REQUIRED,
  286. (google.api.resource_reference) = {
  287. type: "pubsublite.googleapis.com/Topic"
  288. }
  289. ];
  290. }
  291. // Request for ListTopicSubscriptions.
  292. message ListTopicSubscriptionsRequest {
  293. // Required. The name of the topic whose subscriptions to list.
  294. string name = 1 [
  295. (google.api.field_behavior) = REQUIRED,
  296. (google.api.resource_reference) = {
  297. type: "pubsublite.googleapis.com/Topic"
  298. }
  299. ];
  300. // The maximum number of subscriptions to return. The service may return fewer
  301. // than this value.
  302. // If unset or zero, all subscriptions for the given topic will be returned.
  303. int32 page_size = 2;
  304. // A page token, received from a previous `ListTopicSubscriptions` call.
  305. // Provide this to retrieve the subsequent page.
  306. //
  307. // When paginating, all other parameters provided to `ListTopicSubscriptions`
  308. // must match the call that provided the page token.
  309. string page_token = 3;
  310. }
  311. // Response for ListTopicSubscriptions.
  312. message ListTopicSubscriptionsResponse {
  313. // The names of subscriptions attached to the topic. The order of the
  314. // subscriptions is unspecified.
  315. repeated string subscriptions = 1;
  316. // A token that can be sent as `page_token` to retrieve the next page of
  317. // results. If this field is omitted, there are no more results.
  318. string next_page_token = 2;
  319. }
  320. // Request for CreateSubscription.
  321. message CreateSubscriptionRequest {
  322. // Required. The parent location in which to create the subscription.
  323. // Structured like `projects/{project_number}/locations/{location}`.
  324. string parent = 1 [
  325. (google.api.field_behavior) = REQUIRED,
  326. (google.api.resource_reference) = {
  327. type: "locations.googleapis.com/Location"
  328. }
  329. ];
  330. // Required. Configuration of the subscription to create. Its `name` field is ignored.
  331. Subscription subscription = 2 [(google.api.field_behavior) = REQUIRED];
  332. // Required. The ID to use for the subscription, which will become the final component
  333. // of the subscription's name.
  334. //
  335. // This value is structured like: `my-sub-name`.
  336. string subscription_id = 3 [(google.api.field_behavior) = REQUIRED];
  337. // If true, the newly created subscription will only receive messages
  338. // published after the subscription was created. Otherwise, the entire
  339. // message backlog will be received on the subscription. Defaults to false.
  340. bool skip_backlog = 4;
  341. }
  342. // Request for GetSubscription.
  343. message GetSubscriptionRequest {
  344. // Required. The name of the subscription whose configuration to return.
  345. string name = 1 [
  346. (google.api.field_behavior) = REQUIRED,
  347. (google.api.resource_reference) = {
  348. type: "pubsublite.googleapis.com/Subscription"
  349. }
  350. ];
  351. }
  352. // Request for ListSubscriptions.
  353. message ListSubscriptionsRequest {
  354. // Required. The parent whose subscriptions are to be listed.
  355. // Structured like `projects/{project_number}/locations/{location}`.
  356. string parent = 1 [
  357. (google.api.field_behavior) = REQUIRED,
  358. (google.api.resource_reference) = {
  359. type: "locations.googleapis.com/Location"
  360. }
  361. ];
  362. // The maximum number of subscriptions to return. The service may return fewer
  363. // than this value.
  364. // If unset or zero, all subscriptions for the parent will be returned.
  365. int32 page_size = 2;
  366. // A page token, received from a previous `ListSubscriptions` call.
  367. // Provide this to retrieve the subsequent page.
  368. //
  369. // When paginating, all other parameters provided to `ListSubscriptions` must
  370. // match the call that provided the page token.
  371. string page_token = 3;
  372. }
  373. // Response for ListSubscriptions.
  374. message ListSubscriptionsResponse {
  375. // The list of subscriptions in the requested parent. The order of the
  376. // subscriptions is unspecified.
  377. repeated Subscription subscriptions = 1;
  378. // A token that can be sent as `page_token` to retrieve the next page of
  379. // results. If this field is omitted, there are no more results.
  380. string next_page_token = 2;
  381. }
  382. // Request for UpdateSubscription.
  383. message UpdateSubscriptionRequest {
  384. // Required. The subscription to update. Its `name` field must be populated.
  385. // Topic field must not be populated.
  386. Subscription subscription = 1 [(google.api.field_behavior) = REQUIRED];
  387. // Required. A mask specifying the subscription fields to change.
  388. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
  389. }
  390. // Request for DeleteSubscription.
  391. message DeleteSubscriptionRequest {
  392. // Required. The name of the subscription to delete.
  393. string name = 1 [
  394. (google.api.field_behavior) = REQUIRED,
  395. (google.api.resource_reference) = {
  396. type: "pubsublite.googleapis.com/Subscription"
  397. }
  398. ];
  399. }
  400. // Request for SeekSubscription.
  401. message SeekSubscriptionRequest {
  402. // A named position with respect to the message backlog.
  403. enum NamedTarget {
  404. // Unspecified named target. Do not use.
  405. NAMED_TARGET_UNSPECIFIED = 0;
  406. // Seek to the oldest retained message.
  407. TAIL = 1;
  408. // Seek past all recently published messages, skipping the entire message
  409. // backlog.
  410. HEAD = 2;
  411. }
  412. // Required. The name of the subscription to seek.
  413. string name = 1 [
  414. (google.api.field_behavior) = REQUIRED,
  415. (google.api.resource_reference) = {
  416. type: "pubsublite.googleapis.com/Subscription"
  417. }
  418. ];
  419. // The target to seek to. Must be set.
  420. oneof target {
  421. // Seek to a named position with respect to the message backlog.
  422. NamedTarget named_target = 2;
  423. // Seek to the first message whose publish or event time is greater than or
  424. // equal to the specified query time. If no such message can be located,
  425. // will seek to the end of the message backlog.
  426. TimeTarget time_target = 3;
  427. }
  428. }
  429. // Response for SeekSubscription long running operation.
  430. message SeekSubscriptionResponse {
  431. }
  432. // Metadata for long running operations.
  433. message OperationMetadata {
  434. // The time the operation was created.
  435. google.protobuf.Timestamp create_time = 1;
  436. // The time the operation finished running. Not set if the operation has not
  437. // completed.
  438. google.protobuf.Timestamp end_time = 2;
  439. // Resource path for the target of the operation. For example, targets of
  440. // seeks are subscription resources, structured like:
  441. // projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
  442. string target = 3;
  443. // Name of the verb executed by the operation.
  444. string verb = 4;
  445. }
  446. // Request for CreateReservation.
  447. message CreateReservationRequest {
  448. // Required. The parent location in which to create the reservation.
  449. // Structured like `projects/{project_number}/locations/{location}`.
  450. string parent = 1 [
  451. (google.api.field_behavior) = REQUIRED,
  452. (google.api.resource_reference) = {
  453. type: "locations.googleapis.com/Location"
  454. }
  455. ];
  456. // Required. Configuration of the reservation to create. Its `name` field is ignored.
  457. Reservation reservation = 2 [(google.api.field_behavior) = REQUIRED];
  458. // Required. The ID to use for the reservation, which will become the final component of
  459. // the reservation's name.
  460. //
  461. // This value is structured like: `my-reservation-name`.
  462. string reservation_id = 3 [(google.api.field_behavior) = REQUIRED];
  463. }
  464. // Request for GetReservation.
  465. message GetReservationRequest {
  466. // Required. The name of the reservation whose configuration to return.
  467. // Structured like:
  468. // projects/{project_number}/locations/{location}/reservations/{reservation_id}
  469. string name = 1 [
  470. (google.api.field_behavior) = REQUIRED,
  471. (google.api.resource_reference) = {
  472. type: "pubsublite.googleapis.com/Reservation"
  473. }
  474. ];
  475. }
  476. // Request for ListReservations.
  477. message ListReservationsRequest {
  478. // Required. The parent whose reservations are to be listed.
  479. // Structured like `projects/{project_number}/locations/{location}`.
  480. string parent = 1 [
  481. (google.api.field_behavior) = REQUIRED,
  482. (google.api.resource_reference) = {
  483. type: "locations.googleapis.com/Location"
  484. }
  485. ];
  486. // The maximum number of reservations to return. The service may return fewer
  487. // than this value. If unset or zero, all reservations for the parent will be
  488. // returned.
  489. int32 page_size = 2;
  490. // A page token, received from a previous `ListReservations` call.
  491. // Provide this to retrieve the subsequent page.
  492. //
  493. // When paginating, all other parameters provided to `ListReservations` must
  494. // match the call that provided the page token.
  495. string page_token = 3;
  496. }
  497. // Response for ListReservations.
  498. message ListReservationsResponse {
  499. // The list of reservation in the requested parent. The order of the
  500. // reservations is unspecified.
  501. repeated Reservation reservations = 1;
  502. // A token that can be sent as `page_token` to retrieve the next page of
  503. // results. If this field is omitted, there are no more results.
  504. string next_page_token = 2;
  505. }
  506. // Request for UpdateReservation.
  507. message UpdateReservationRequest {
  508. // Required. The reservation to update. Its `name` field must be populated.
  509. Reservation reservation = 1 [(google.api.field_behavior) = REQUIRED];
  510. // Required. A mask specifying the reservation fields to change.
  511. google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
  512. }
  513. // Request for DeleteReservation.
  514. message DeleteReservationRequest {
  515. // Required. The name of the reservation to delete.
  516. // Structured like:
  517. // projects/{project_number}/locations/{location}/reservations/{reservation_id}
  518. string name = 1 [
  519. (google.api.field_behavior) = REQUIRED,
  520. (google.api.resource_reference) = {
  521. type: "pubsublite.googleapis.com/Reservation"
  522. }
  523. ];
  524. }
  525. // Request for ListReservationTopics.
  526. message ListReservationTopicsRequest {
  527. // Required. The name of the reservation whose topics to list.
  528. // Structured like:
  529. // projects/{project_number}/locations/{location}/reservations/{reservation_id}
  530. string name = 1 [
  531. (google.api.field_behavior) = REQUIRED,
  532. (google.api.resource_reference) = {
  533. type: "pubsublite.googleapis.com/Reservation"
  534. }
  535. ];
  536. // The maximum number of topics to return. The service may return fewer
  537. // than this value.
  538. // If unset or zero, all topics for the given reservation will be returned.
  539. int32 page_size = 2;
  540. // A page token, received from a previous `ListReservationTopics` call.
  541. // Provide this to retrieve the subsequent page.
  542. //
  543. // When paginating, all other parameters provided to `ListReservationTopics`
  544. // must match the call that provided the page token.
  545. string page_token = 3;
  546. }
  547. // Response for ListReservationTopics.
  548. message ListReservationTopicsResponse {
  549. // The names of topics attached to the reservation. The order of the
  550. // topics is unspecified.
  551. repeated string topics = 1;
  552. // A token that can be sent as `page_token` to retrieve the next page of
  553. // results. If this field is omitted, there are no more results.
  554. string next_page_token = 2;
  555. }