Skip to content

Commit 7cde5d0

Browse files
Google APIscopybara-github
authored andcommitted
feat: Publish visibility.proto; refresh other google/api/ files.
Committer: @lukesneeringer PiperOrigin-RevId: 370757345
1 parent 1d16331 commit 7cde5d0

32 files changed

Lines changed: 306 additions & 93 deletions

google/api/BUILD.bazel

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,17 @@ proto_library(
222222
proto_library(
223223
name = "usage_proto",
224224
srcs = ["usage.proto"],
225-
deps = [":annotations_proto"],
225+
deps = [
226+
":annotations_proto",
227+
":visibility_proto",
228+
],
229+
)
230+
231+
proto_library(
232+
name = "visibility_proto",
233+
srcs = ["visibility.proto"],
234+
deps = ["@com_google_protobuf//:descriptor_proto"],
235+
visibility = ["//visibility:public"],
226236
)
227237

228238
##############################################################################
@@ -261,6 +271,7 @@ java_proto_library(
261271
"source_info_proto",
262272
"system_parameter_proto",
263273
"usage_proto",
274+
"visibility_proto",
264275
],
265276
)
266277

@@ -380,6 +391,12 @@ go_proto_library(
380391
],
381392
)
382393

394+
go_proto_library(
395+
name = "visibility_go_proto",
396+
importpath = "google.golang.org/genproto/googleapis/api/visibility;visibility",
397+
protos = [":visibility_proto"],
398+
)
399+
383400
##############################################################################
384401
# C++
385402
##############################################################################
@@ -525,6 +542,11 @@ cc_proto_library(
525542
deps = [":usage_proto"],
526543
)
527544

545+
cc_proto_library(
546+
name = "visibility_cc_proto",
547+
deps = [":visibility_proto"],
548+
)
549+
528550
##############################################################################
529551
# Python
530552
##############################################################################
@@ -669,3 +691,8 @@ py_proto_library(
669691
name = "usage_py_proto",
670692
deps = [":usage_proto"],
671693
)
694+
695+
py_proto_library(
696+
name = "visibility_py_proto",
697+
deps = ["visibility_proto"],
698+
)

google/api/annotations.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2015, Google Inc.
1+
// Copyright 2015 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/api/auth.proto

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2015 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -22,9 +22,10 @@ option java_outer_classname = "AuthProto";
2222
option java_package = "com.google.api";
2323
option objc_class_prefix = "GAPI";
2424

25-
// `Authentication` defines the authentication configuration for an API.
25+
// `Authentication` defines the authentication configuration for API methods
26+
// provided by an API service.
2627
//
27-
// Example for an API targeted for external use:
28+
// Example:
2829
//
2930
// name: calendar.googleapis.com
3031
// authentication:
@@ -36,6 +37,9 @@ option objc_class_prefix = "GAPI";
3637
// - selector: "*"
3738
// requirements:
3839
// provider_id: google_calendar_auth
40+
// - selector: google.calendar.Delegate
41+
// oauth:
42+
// canonical_scopes: https://www.googleapis.com/auth/calendar.read
3943
message Authentication {
4044
// A list of authentication rules that apply to individual API methods.
4145
//

google/api/backend.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2015 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/api/billing.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2015 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/api/client.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2018 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/api/config_change.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2015 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/api/consumer.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2016 Google Inc.
1+
// Copyright 2016 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/api/context.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2015 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/api/control.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2015 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)