Skip to content

Commit 83a7879

Browse files
chore: [billing] reformat protos (#3903)
* chore: reformat protos PiperOrigin-RevId: 504926695 Source-Link: googleapis/googleapis@d8e1dad Source-Link: googleapis/googleapis-gen@036d774 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpbGxpbmcvLk93bEJvdC55YW1sIiwiaCI6IjAzNmQ3NzRkYjA3NTU5YTI2YjU0ZmI4NTgxODZmZDQwNTdlZGE2MTEifQ== * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent f0606af commit 83a7879

7 files changed

Lines changed: 63 additions & 42 deletions

packages/google-cloud-billing/protos/google/cloud/billing/v1/cloud_billing.proto

Lines changed: 34 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ service CloudBilling {
5151
// Lists the billing accounts that the current authenticated user has
5252
// permission to
5353
// [view](https://cloud.google.com/billing/docs/how-to/billing-access).
54-
rpc ListBillingAccounts(ListBillingAccountsRequest) returns (ListBillingAccountsResponse) {
54+
rpc ListBillingAccounts(ListBillingAccountsRequest)
55+
returns (ListBillingAccountsResponse) {
5556
option (google.api.http) = {
5657
get: "/v1/billingAccounts"
5758
};
@@ -64,7 +65,8 @@ service CloudBilling {
6465
// IAM permission, which is typically given to the
6566
// [administrator](https://cloud.google.com/billing/docs/how-to/billing-access)
6667
// of the billing account.
67-
rpc UpdateBillingAccount(UpdateBillingAccountRequest) returns (BillingAccount) {
68+
rpc UpdateBillingAccount(UpdateBillingAccountRequest)
69+
returns (BillingAccount) {
6870
option (google.api.http) = {
6971
patch: "/v1/{name=billingAccounts/*}"
7072
body: "account"
@@ -87,7 +89,8 @@ service CloudBilling {
8789
// [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
8890
// This method will return an error if the parent account has not been
8991
// provisioned as a reseller account.
90-
rpc CreateBillingAccount(CreateBillingAccountRequest) returns (BillingAccount) {
92+
rpc CreateBillingAccount(CreateBillingAccountRequest)
93+
returns (BillingAccount) {
9194
option (google.api.http) = {
9295
post: "/v1/billingAccounts"
9396
body: "billing_account"
@@ -99,7 +102,8 @@ service CloudBilling {
99102
// authenticated user must have the `billing.resourceAssociations.list` IAM
100103
// permission, which is often given to billing account
101104
// [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
102-
rpc ListProjectBillingInfo(ListProjectBillingInfoRequest) returns (ListProjectBillingInfoResponse) {
105+
rpc ListProjectBillingInfo(ListProjectBillingInfoRequest)
106+
returns (ListProjectBillingInfoResponse) {
103107
option (google.api.http) = {
104108
get: "/v1/{name=billingAccounts/*}/projects"
105109
};
@@ -111,7 +115,8 @@ service CloudBilling {
111115
// which can be granted by assigning the [Project
112116
// Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
113117
// role.
114-
rpc GetProjectBillingInfo(GetProjectBillingInfoRequest) returns (ProjectBillingInfo) {
118+
rpc GetProjectBillingInfo(GetProjectBillingInfoRequest)
119+
returns (ProjectBillingInfo) {
115120
option (google.api.http) = {
116121
get: "/v1/{name=projects/*}/billingInfo"
117122
};
@@ -149,7 +154,8 @@ service CloudBilling {
149154
// resources used by the project will be shut down. Thus, unless you wish to
150155
// disable billing, you should always call this method with the name of an
151156
// *open* billing account.
152-
rpc UpdateProjectBillingInfo(UpdateProjectBillingInfoRequest) returns (ProjectBillingInfo) {
157+
rpc UpdateProjectBillingInfo(UpdateProjectBillingInfoRequest)
158+
returns (ProjectBillingInfo) {
153159
option (google.api.http) = {
154160
put: "/v1/{name=projects/*}/billingInfo"
155161
body: "project_billing_info"
@@ -161,7 +167,8 @@ service CloudBilling {
161167
// The caller must have the `billing.accounts.getIamPolicy` permission on the
162168
// account, which is often given to billing account
163169
// [viewers](https://cloud.google.com/billing/docs/how-to/billing-access).
164-
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) {
170+
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
171+
returns (google.iam.v1.Policy) {
165172
option (google.api.http) = {
166173
get: "/v1/{resource=billingAccounts/*}:getIamPolicy"
167174
};
@@ -173,7 +180,8 @@ service CloudBilling {
173180
// The caller must have the `billing.accounts.setIamPolicy` permission on the
174181
// account, which is often given to billing account
175182
// [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
176-
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) {
183+
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
184+
returns (google.iam.v1.Policy) {
177185
option (google.api.http) = {
178186
post: "/v1/{resource=billingAccounts/*}:setIamPolicy"
179187
body: "*"
@@ -184,7 +192,8 @@ service CloudBilling {
184192
// Tests the access control policy for a billing account. This method takes
185193
// the resource and a set of permissions as input and returns the subset of
186194
// the input permissions that the caller is allowed for that resource.
187-
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) {
195+
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest)
196+
returns (google.iam.v1.TestIamPermissionsResponse) {
188197
option (google.api.http) = {
189198
post: "/v1/{resource=billingAccounts/*}:testIamPermissions"
190199
body: "*"
@@ -197,8 +206,8 @@ service CloudBilling {
197206
// [Google Cloud Console](https://console.cloud.google.com/). You can assign a
198207
// billing account to one or more projects.
199208
message BillingAccount {
200-
// Output only. The resource name of the billing account. The resource name has the form
201-
// `billingAccounts/{billing_account_id}`. For example,
209+
// Output only. The resource name of the billing account. The resource name
210+
// has the form `billingAccounts/{billing_account_id}`. For example,
202211
// `billingAccounts/012345-567890-ABCDEF` would be the resource name for
203212
// billing account `012345-567890-ABCDEF`.
204213
string name = 1 [
@@ -208,9 +217,10 @@ message BillingAccount {
208217
}
209218
];
210219

211-
// Output only. True if the billing account is open, and will therefore be charged for any
212-
// usage on associated projects. False if the billing account is closed, and
213-
// therefore projects associated with it will be unable to use paid services.
220+
// Output only. True if the billing account is open, and will therefore be
221+
// charged for any usage on associated projects. False if the billing account
222+
// is closed, and therefore projects associated with it will be unable to use
223+
// paid services.
214224
bool open = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
215225

216226
// The display name given to the billing account, such as `My Billing
@@ -253,8 +263,8 @@ message ProjectBillingInfo {
253263

254264
// Request message for `GetBillingAccount`.
255265
message GetBillingAccountRequest {
256-
// Required. The resource name of the billing account to retrieve. For example,
257-
// `billingAccounts/012345-567890-ABCDEF`.
266+
// Required. The resource name of the billing account to retrieve. For
267+
// example, `billingAccounts/012345-567890-ABCDEF`.
258268
string name = 1 [
259269
(google.api.field_behavior) = REQUIRED,
260270
(google.api.resource_reference) = {
@@ -313,7 +323,8 @@ message UpdateBillingAccountRequest {
313323
}
314324
];
315325

316-
// Required. The billing account resource to replace the resource on the server.
326+
// Required. The billing account resource to replace the resource on the
327+
// server.
317328
BillingAccount account = 2 [(google.api.field_behavior) = REQUIRED];
318329

319330
// The update mask applied to the resource.
@@ -323,8 +334,9 @@ message UpdateBillingAccountRequest {
323334

324335
// Request message for `ListProjectBillingInfo`.
325336
message ListProjectBillingInfoRequest {
326-
// Required. The resource name of the billing account associated with the projects that
327-
// you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
337+
// Required. The resource name of the billing account associated with the
338+
// projects that you want to list. For example,
339+
// `billingAccounts/012345-567890-ABCDEF`.
328340
string name = 1 [
329341
(google.api.field_behavior) = REQUIRED,
330342
(google.api.resource_reference) = {
@@ -363,8 +375,9 @@ message GetProjectBillingInfoRequest {
363375

364376
// Request message for `UpdateProjectBillingInfo`.
365377
message UpdateProjectBillingInfoRequest {
366-
// Required. The resource name of the project associated with the billing information
367-
// that you want to update. For example, `projects/tokyo-rain-123`.
378+
// Required. The resource name of the project associated with the billing
379+
// information that you want to update. For example,
380+
// `projects/tokyo-rain-123`.
368381
string name = 1 [(google.api.field_behavior) = REQUIRED];
369382

370383
// The new billing information for the project. Read-only fields are ignored;

packages/google-cloud-billing/samples/generated/v1/cloud_billing.get_billing_account.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ function main(name) {
2929
* TODO(developer): Uncomment these variables before running the sample.
3030
*/
3131
/**
32-
* Required. The resource name of the billing account to retrieve. For example,
33-
* `billingAccounts/012345-567890-ABCDEF`.
32+
* Required. The resource name of the billing account to retrieve. For
33+
* example, `billingAccounts/012345-567890-ABCDEF`.
3434
*/
3535
// const name = 'abc123'
3636

packages/google-cloud-billing/samples/generated/v1/cloud_billing.list_project_billing_info.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ function main(name) {
2929
* TODO(developer): Uncomment these variables before running the sample.
3030
*/
3131
/**
32-
* Required. The resource name of the billing account associated with the projects that
33-
* you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
32+
* Required. The resource name of the billing account associated with the
33+
* projects that you want to list. For example,
34+
* `billingAccounts/012345-567890-ABCDEF`.
3435
*/
3536
// const name = 'abc123'
3637
/**

packages/google-cloud-billing/samples/generated/v1/cloud_billing.update_billing_account.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ function main(name, account) {
3333
*/
3434
// const name = 'abc123'
3535
/**
36-
* Required. The billing account resource to replace the resource on the server.
36+
* Required. The billing account resource to replace the resource on the
37+
* server.
3738
*/
3839
// const account = {}
3940
/**

packages/google-cloud-billing/samples/generated/v1/cloud_billing.update_project_billing_info.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ function main(name) {
2929
* TODO(developer): Uncomment these variables before running the sample.
3030
*/
3131
/**
32-
* Required. The resource name of the project associated with the billing information
33-
* that you want to update. For example, `projects/tokyo-rain-123`.
32+
* Required. The resource name of the project associated with the billing
33+
* information that you want to update. For example,
34+
* `projects/tokyo-rain-123`.
3435
*/
3536
// const name = 'abc123'
3637
/**

packages/google-cloud-billing/samples/generated/v1/snippet_metadata.google.cloud.billing.v1.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
"segments": [
111111
{
112112
"start": 25,
113-
"end": 63,
113+
"end": 64,
114114
"type": "FULL"
115115
}
116116
],
@@ -198,7 +198,7 @@
198198
"segments": [
199199
{
200200
"start": 25,
201-
"end": 67,
201+
"end": 68,
202202
"type": "FULL"
203203
}
204204
],
@@ -286,7 +286,7 @@
286286
"segments": [
287287
{
288288
"start": 25,
289-
"end": 59,
289+
"end": 60,
290290
"type": "FULL"
291291
}
292292
],

packages/google-cloud-billing/src/v1/cloud_billing_client.ts

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -361,8 +361,8 @@ export class CloudBillingClient {
361361
* @param {Object} request
362362
* The request object that will be sent.
363363
* @param {string} request.name
364-
* Required. The resource name of the billing account to retrieve. For example,
365-
* `billingAccounts/012345-567890-ABCDEF`.
364+
* Required. The resource name of the billing account to retrieve. For
365+
* example, `billingAccounts/012345-567890-ABCDEF`.
366366
* @param {object} [options]
367367
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
368368
* @returns {Promise} - The promise which resolves to an array.
@@ -460,7 +460,8 @@ export class CloudBillingClient {
460460
* @param {string} request.name
461461
* Required. The name of the billing account resource to be updated.
462462
* @param {google.cloud.billing.v1.BillingAccount} request.account
463-
* Required. The billing account resource to replace the resource on the server.
463+
* Required. The billing account resource to replace the resource on the
464+
* server.
464465
* @param {google.protobuf.FieldMask} request.updateMask
465466
* The update mask applied to the resource.
466467
* Only "display_name" is currently supported.
@@ -784,8 +785,9 @@ export class CloudBillingClient {
784785
* @param {Object} request
785786
* The request object that will be sent.
786787
* @param {string} request.name
787-
* Required. The resource name of the project associated with the billing information
788-
* that you want to update. For example, `projects/tokyo-rain-123`.
788+
* Required. The resource name of the project associated with the billing
789+
* information that you want to update. For example,
790+
* `projects/tokyo-rain-123`.
789791
* @param {google.cloud.billing.v1.ProjectBillingInfo} request.projectBillingInfo
790792
* The new billing information for the project. Read-only fields are ignored;
791793
* thus, you can leave empty all fields except `billing_account_name`.
@@ -1376,8 +1378,9 @@ export class CloudBillingClient {
13761378
* @param {Object} request
13771379
* The request object that will be sent.
13781380
* @param {string} request.name
1379-
* Required. The resource name of the billing account associated with the projects that
1380-
* you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
1381+
* Required. The resource name of the billing account associated with the
1382+
* projects that you want to list. For example,
1383+
* `billingAccounts/012345-567890-ABCDEF`.
13811384
* @param {number} request.pageSize
13821385
* Requested page size. The maximum page size is 100; this is also the
13831386
* default.
@@ -1482,8 +1485,9 @@ export class CloudBillingClient {
14821485
* @param {Object} request
14831486
* The request object that will be sent.
14841487
* @param {string} request.name
1485-
* Required. The resource name of the billing account associated with the projects that
1486-
* you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
1488+
* Required. The resource name of the billing account associated with the
1489+
* projects that you want to list. For example,
1490+
* `billingAccounts/012345-567890-ABCDEF`.
14871491
* @param {number} request.pageSize
14881492
* Requested page size. The maximum page size is 100; this is also the
14891493
* default.
@@ -1532,8 +1536,9 @@ export class CloudBillingClient {
15321536
* @param {Object} request
15331537
* The request object that will be sent.
15341538
* @param {string} request.name
1535-
* Required. The resource name of the billing account associated with the projects that
1536-
* you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
1539+
* Required. The resource name of the billing account associated with the
1540+
* projects that you want to list. For example,
1541+
* `billingAccounts/012345-567890-ABCDEF`.
15371542
* @param {number} request.pageSize
15381543
* Requested page size. The maximum page size is 100; this is also the
15391544
* default.

0 commit comments

Comments
 (0)