Skip to content

Commit

Permalink
chore: reformatted protos
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 565767523
  • Loading branch information
Google APIs authored and Copybara-Service committed Sep 15, 2023
1 parent a47411d commit af71d9c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
11 changes: 7 additions & 4 deletions google/api/apikeys/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion google/api/apikeys/v2/apikeys.proto
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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";
Expand Down
23 changes: 13 additions & 10 deletions google/api/apikeys/v2/resources.proto
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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.
Expand All @@ -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];
}

Expand Down

0 comments on commit af71d9c

Please sign in to comment.