@@ -36,8 +36,7 @@ option ruby_package = "Google::Cloud::PubSubLite::V1";
3636// subscriptions, such creating, listing, and deleting topics and subscriptions.
3737service AdminService {
3838 option (google.api.default_host ) = "pubsublite.googleapis.com" ;
39- option (google.api.oauth_scopes ) =
40- "https://www.googleapis.com/auth/cloud-platform" ;
39+ option (google.api.oauth_scopes ) = "https://www.googleapis.com/auth/cloud-platform" ;
4140
4241 // Creates a new topic.
4342 rpc CreateTopic (CreateTopicRequest ) returns (Topic ) {
@@ -90,8 +89,7 @@ service AdminService {
9089 }
9190
9291 // Lists the subscriptions attached to the specified topic.
93- rpc ListTopicSubscriptions (ListTopicSubscriptionsRequest )
94- returns (ListTopicSubscriptionsResponse ) {
92+ rpc ListTopicSubscriptions (ListTopicSubscriptionsRequest ) returns (ListTopicSubscriptionsResponse ) {
9593 option (google.api.http ) = {
9694 get : "/v1/admin/{name=projects/*/locations/*/topics/*}/subscriptions"
9795 };
@@ -104,8 +102,7 @@ service AdminService {
104102 post : "/v1/admin/{parent=projects/*/locations/*}/subscriptions"
105103 body : "subscription"
106104 };
107- option (google.api.method_signature ) =
108- "parent,subscription,subscription_id" ;
105+ option (google.api.method_signature ) = "parent,subscription,subscription_id" ;
109106 }
110107
111108 // Returns the subscription configuration.
@@ -117,8 +114,7 @@ service AdminService {
117114 }
118115
119116 // Returns the list of subscriptions for the given project.
120- rpc ListSubscriptions (ListSubscriptionsRequest )
121- returns (ListSubscriptionsResponse ) {
117+ rpc ListSubscriptions (ListSubscriptionsRequest ) returns (ListSubscriptionsResponse ) {
122118 option (google.api.http ) = {
123119 get : "/v1/admin/{parent=projects/*/locations/*}/subscriptions"
124120 };
@@ -135,8 +131,7 @@ service AdminService {
135131 }
136132
137133 // Deletes the specified subscription.
138- rpc DeleteSubscription (DeleteSubscriptionRequest )
139- returns (google.protobuf.Empty ) {
134+ rpc DeleteSubscription (DeleteSubscriptionRequest ) returns (google.protobuf.Empty ) {
140135 option (google.api.http ) = {
141136 delete : "/v1/admin/{name=projects/*/locations/*/subscriptions/*}"
142137 };
@@ -155,12 +150,11 @@ message CreateTopicRequest {
155150 }
156151 ];
157152
158- // Required. Configuration of the topic to create. Its `name` field is
159- // ignored.
153+ // Required. Configuration of the topic to create. Its `name` field is ignored.
160154 Topic topic = 2 [(google.api.field_behavior ) = REQUIRED ];
161155
162- // Required. The ID to use for the topic, which will become the final
163- // component of the topic's name.
156+ // Required. The ID to use for the topic, which will become the final component of
157+ // the topic's name.
164158 //
165159 // This value is structured like: `my-topic-name`.
166160 string topic_id = 3 [(google.api.field_behavior ) = REQUIRED ];
@@ -235,8 +229,7 @@ message UpdateTopicRequest {
235229 Topic topic = 1 [(google.api.field_behavior ) = REQUIRED ];
236230
237231 // Required. A mask specifying the topic fields to change.
238- google.protobuf.FieldMask update_mask = 2
239- [(google.api.field_behavior ) = REQUIRED ];
232+ google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior ) = REQUIRED ];
240233}
241234
242235// Request for DeleteTopic.
@@ -295,12 +288,11 @@ message CreateSubscriptionRequest {
295288 }
296289 ];
297290
298- // Required. Configuration of the subscription to create. Its `name` field is
299- // ignored.
291+ // Required. Configuration of the subscription to create. Its `name` field is ignored.
300292 Subscription subscription = 2 [(google.api.field_behavior ) = REQUIRED ];
301293
302- // Required. The ID to use for the subscription, which will become the final
303- // component of the subscription's name.
294+ // Required. The ID to use for the subscription, which will become the final component
295+ // of the subscription's name.
304296 //
305297 // This value is structured like: `my-sub-name`.
306298 string subscription_id = 3 [(google.api.field_behavior ) = REQUIRED ];
@@ -359,8 +351,7 @@ message UpdateSubscriptionRequest {
359351 Subscription subscription = 1 [(google.api.field_behavior ) = REQUIRED ];
360352
361353 // Required. A mask specifying the subscription fields to change.
362- google.protobuf.FieldMask update_mask = 2
363- [(google.api.field_behavior ) = REQUIRED ];
354+ google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior ) = REQUIRED ];
364355}
365356
366357// Request for DeleteSubscription.
0 commit comments