From af71d9c06720c097c2978e978acba71fcddafe72 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Fri, 15 Sep 2023 13:43:14 -0700 Subject: [PATCH] chore: reformatted protos PiperOrigin-RevId: 565767523 --- google/api/apikeys/v2/BUILD.bazel | 11 +++++++---- google/api/apikeys/v2/apikeys.proto | 3 ++- google/api/apikeys/v2/resources.proto | 23 +++++++++++++---------- 3 files changed, 22 insertions(+), 15 deletions(-) diff --git a/google/api/apikeys/v2/BUILD.bazel b/google/api/apikeys/v2/BUILD.bazel index 5dbe73fae17f1..96d1498d4b206 100644 --- a/google/api/apikeys/v2/BUILD.bazel +++ b/google/api/apikeys/v2/BUILD.bazel @@ -172,14 +172,15 @@ py_gapic_library( srcs = [":apikeys_proto"], grpc_service_config = "apikeys_grpc_service_config.json", opt_args = [ - "warehouse-package-name=google-cloud-api-keys", - "python-gapic-namespace=google.cloud", "python-gapic-name=api_keys", + "python-gapic-namespace=google.cloud", + "warehouse-package-name=google-cloud-api-keys", ], rest_numeric_enums = True, service_yaml = "apikeys_v2.yaml", transport = "grpc+rest", - deps = [], + deps = [ + ], ) py_test( @@ -223,7 +224,9 @@ php_gapic_library( rest_numeric_enums = True, service_yaml = "apikeys_v2.yaml", transport = "grpc+rest", - deps = [":apikeys_php_proto"], + deps = [ + ":apikeys_php_proto", + ], ) # Open Source Packages diff --git a/google/api/apikeys/v2/apikeys.proto b/google/api/apikeys/v2/apikeys.proto index e29636d12d1df..132a03a455267 100644 --- a/google/api/apikeys/v2/apikeys.proto +++ b/google/api/apikeys/v2/apikeys.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -22,6 +22,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; option csharp_namespace = "Google.Cloud.ApiKeys.V2"; diff --git a/google/api/apikeys/v2/resources.proto b/google/api/apikeys/v2/resources.proto index a13d0863c203e..a4f39c7aed77d 100644 --- a/google/api/apikeys/v2/resources.proto +++ b/google/api/apikeys/v2/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -61,15 +61,18 @@ message Key { // Output only. A timestamp identifying the time this key was originally // created. - google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. A timestamp identifying the time this key was last // updated. - google.protobuf.Timestamp update_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp update_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. A timestamp when this key was deleted. If the resource is not deleted, - // this must be empty. - google.protobuf.Timestamp delete_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. A timestamp when this key was deleted. If the resource is not + // deleted, this must be empty. + google.protobuf.Timestamp delete_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Annotations is an unstructured key-value map stored with a policy that // may be set by external tools to store and retrieve arbitrary metadata. @@ -79,10 +82,10 @@ message Key { // Key restrictions. Restrictions restrictions = 9; - // Output only. A checksum computed by the server based on the current value of the Key - // resource. This may be sent on update and delete requests to ensure the - // client has an up-to-date value before proceeding. - // See https://google.aip.dev/154. + // Output only. A checksum computed by the server based on the current value + // of the Key resource. This may be sent on update and delete requests to + // ensure the client has an up-to-date value before proceeding. See + // https://google.aip.dev/154. string etag = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; }