forked from bazel-contrib/rules_go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @go_googleapis in go_rules_dependencies()
@go_googleapis contains proto_library and go_proto_library rules for github.com/googleapis/googleapis. It's best to have a standard place for these to avoid conflicts, especially widely used generic protos like google/rpc/status.proto. Related bazel-contrib#1548
- Loading branch information
Jay Conrod
committed
Jul 2, 2018
1 parent
3fcd473
commit de49bed
Showing
102 changed files
with
3,019 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# gazelle:proto package | ||
# gazelle:proto_group go_package | ||
# gazelle:exclude gapic | ||
# gazelle:exclude third_party |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# gazelle:prefix google.golang.org/genproto/googleapis |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") | ||
|
||
proto_library( | ||
name = "annotations_proto", | ||
srcs = [ | ||
"annotations.proto", | ||
"http.proto", | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = ["@com_google_protobuf//:descriptor_proto"], | ||
) | ||
|
||
proto_library( | ||
name = "configchange_proto", | ||
srcs = ["config_change.proto"], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
proto_library( | ||
name = "distribution_proto", | ||
srcs = ["distribution.proto"], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
":annotations_proto", | ||
"@com_google_protobuf//:any_proto", | ||
"@com_google_protobuf//:timestamp_proto", | ||
], | ||
) | ||
|
||
proto_library( | ||
name = "httpbody_proto", | ||
srcs = ["httpbody.proto"], | ||
visibility = ["//visibility:public"], | ||
deps = ["@com_google_protobuf//:any_proto"], | ||
) | ||
|
||
proto_library( | ||
name = "label_proto", | ||
srcs = ["label.proto"], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
proto_library( | ||
name = "metric_proto", | ||
srcs = ["metric.proto"], | ||
visibility = ["//visibility:public"], | ||
deps = [":label_proto"], | ||
) | ||
|
||
proto_library( | ||
name = "monitoredres_proto", | ||
srcs = ["monitored_resource.proto"], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
":label_proto", | ||
"@com_google_protobuf//:struct_proto", | ||
], | ||
) | ||
|
||
proto_library( | ||
name = "serviceconfig_proto", | ||
srcs = [ | ||
"auth.proto", | ||
"backend.proto", | ||
"billing.proto", | ||
"consumer.proto", | ||
"context.proto", | ||
"control.proto", | ||
"documentation.proto", | ||
"endpoint.proto", | ||
"log.proto", | ||
"logging.proto", | ||
"monitoring.proto", | ||
"quota.proto", | ||
"service.proto", | ||
"source_info.proto", | ||
"system_parameter.proto", | ||
"usage.proto", | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
":annotations_proto", | ||
":label_proto", | ||
":metric_proto", | ||
":monitoredres_proto", | ||
"//google/api/experimental:api_proto", | ||
"@com_google_protobuf//:any_proto", | ||
"@com_google_protobuf//:api_proto", | ||
"@com_google_protobuf//:type_proto", | ||
"@com_google_protobuf//:wrappers_proto", | ||
], | ||
) | ||
|
||
go_proto_library( | ||
name = "annotations_go_proto", | ||
importpath = "google.golang.org/genproto/googleapis/api/annotations", | ||
proto = ":annotations_proto", | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
go_proto_library( | ||
name = "configchange_go_proto", | ||
importpath = "google.golang.org/genproto/googleapis/api/configchange", | ||
proto = ":configchange_proto", | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
go_proto_library( | ||
name = "distribution_go_proto", | ||
importpath = "google.golang.org/genproto/googleapis/api/distribution", | ||
proto = ":distribution_proto", | ||
visibility = ["//visibility:public"], | ||
deps = [":annotations_go_proto"], | ||
) | ||
|
||
go_proto_library( | ||
name = "httpbody_go_proto", | ||
importpath = "google.golang.org/genproto/googleapis/api/httpbody", | ||
proto = ":httpbody_proto", | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
go_proto_library( | ||
name = "label_go_proto", | ||
importpath = "google.golang.org/genproto/googleapis/api/label", | ||
proto = ":label_proto", | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
go_proto_library( | ||
name = "metric_go_proto", | ||
importpath = "google.golang.org/genproto/googleapis/api/metric", | ||
proto = ":metric_proto", | ||
visibility = ["//visibility:public"], | ||
deps = [":label_go_proto"], | ||
) | ||
|
||
go_proto_library( | ||
name = "monitoredres_go_proto", | ||
importpath = "google.golang.org/genproto/googleapis/api/monitoredres", | ||
proto = ":monitoredres_proto", | ||
visibility = ["//visibility:public"], | ||
deps = [":label_go_proto"], | ||
) | ||
|
||
go_proto_library( | ||
name = "serviceconfig_go_proto", | ||
compilers = ["@io_bazel_rules_go//proto:go_grpc"], | ||
importpath = "google.golang.org/genproto/googleapis/api/serviceconfig", | ||
proto = ":serviceconfig_proto", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
":annotations_go_proto", | ||
":label_go_proto", | ||
":metric_go_proto", | ||
":monitoredres_go_proto", | ||
"//google/api/experimental:api_go_proto", | ||
], | ||
) |
19 changes: 19 additions & 0 deletions
19
third_party/go_googleapis/google/api/experimental/BUILD.bazel.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") | ||
|
||
proto_library( | ||
name = "api_proto", | ||
srcs = [ | ||
"authorization_config.proto", | ||
"experimental.proto", | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = ["//google/api:annotations_proto"], | ||
) | ||
|
||
go_proto_library( | ||
name = "api_go_proto", | ||
importpath = "google.golang.org/genproto/googleapis/api", | ||
proto = ":api_proto", | ||
visibility = ["//visibility:public"], | ||
deps = ["//google/api:annotations_go_proto"], | ||
) |
38 changes: 38 additions & 0 deletions
38
third_party/go_googleapis/google/api/servicecontrol/v1/BUILD.bazel.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") | ||
|
||
proto_library( | ||
name = "servicecontrol_proto", | ||
srcs = [ | ||
"check_error.proto", | ||
"distribution.proto", | ||
"log_entry.proto", | ||
"metric_value.proto", | ||
"operation.proto", | ||
"quota_controller.proto", | ||
"service_controller.proto", | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//google/api:annotations_proto", | ||
"//google/logging/type:ltype_proto", | ||
"//google/rpc:status_proto", | ||
"//google/type:money_proto", | ||
"@com_google_protobuf//:any_proto", | ||
"@com_google_protobuf//:struct_proto", | ||
"@com_google_protobuf//:timestamp_proto", | ||
], | ||
) | ||
|
||
go_proto_library( | ||
name = "servicecontrol_go_proto", | ||
compilers = ["@io_bazel_rules_go//proto:go_grpc"], | ||
importpath = "google.golang.org/genproto/googleapis/api/servicecontrol/v1", | ||
proto = ":servicecontrol_proto", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//google/api:annotations_go_proto", | ||
"//google/logging/type:ltype_go_proto", | ||
"//google/rpc:status_go_proto", | ||
"//google/type:money_go_proto", | ||
], | ||
) |
38 changes: 38 additions & 0 deletions
38
third_party/go_googleapis/google/api/servicemanagement/v1/BUILD.bazel.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") | ||
|
||
proto_library( | ||
name = "servicemanagement_proto", | ||
srcs = [ | ||
"resources.proto", | ||
"servicemanager.proto", | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//google/api:annotations_proto", | ||
"//google/api:configchange_proto", | ||
"//google/api:metric_proto", | ||
"//google/api:serviceconfig_proto", | ||
"//google/longrunning:longrunning_proto", | ||
"//google/rpc:status_proto", | ||
"@com_google_protobuf//:any_proto", | ||
"@com_google_protobuf//:field_mask_proto", | ||
"@com_google_protobuf//:struct_proto", | ||
"@com_google_protobuf//:timestamp_proto", | ||
], | ||
) | ||
|
||
go_proto_library( | ||
name = "servicemanagement_go_proto", | ||
compilers = ["@io_bazel_rules_go//proto:go_grpc"], | ||
importpath = "google.golang.org/genproto/googleapis/api/servicemanagement/v1", | ||
proto = ":servicemanagement_proto", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//google/api:annotations_go_proto", | ||
"//google/api:configchange_go_proto", | ||
"//google/api:metric_go_proto", | ||
"//google/api:serviceconfig_go_proto", | ||
"//google/longrunning:longrunning_go_proto", | ||
"//google/rpc:status_go_proto", | ||
], | ||
) |
14 changes: 14 additions & 0 deletions
14
third_party/go_googleapis/google/appengine/legacy/BUILD.bazel.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") | ||
|
||
proto_library( | ||
name = "legacy_proto", | ||
srcs = ["audit_data.proto"], | ||
visibility = ["//visibility:public"], | ||
) | ||
|
||
go_proto_library( | ||
name = "legacy_go_proto", | ||
importpath = "google.golang.org/genproto/googleapis/appengine/legacy", | ||
proto = ":legacy_proto", | ||
visibility = ["//visibility:public"], | ||
) |
20 changes: 20 additions & 0 deletions
20
third_party/go_googleapis/google/appengine/logging/v1/BUILD.bazel.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") | ||
|
||
proto_library( | ||
name = "logging_proto", | ||
srcs = ["request_log.proto"], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//google/logging/type:ltype_proto", | ||
"@com_google_protobuf//:duration_proto", | ||
"@com_google_protobuf//:timestamp_proto", | ||
], | ||
) | ||
|
||
go_proto_library( | ||
name = "logging_go_proto", | ||
importpath = "google.golang.org/genproto/googleapis/appengine/logging/v1", | ||
proto = ":logging_proto", | ||
visibility = ["//visibility:public"], | ||
deps = ["//google/logging/type:ltype_go_proto"], | ||
) |
42 changes: 42 additions & 0 deletions
42
third_party/go_googleapis/google/appengine/v1/BUILD.bazel.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") | ||
|
||
proto_library( | ||
name = "appengine_proto", | ||
srcs = [ | ||
"app_yaml.proto", | ||
"appengine.proto", | ||
"application.proto", | ||
"audit_data.proto", | ||
"deploy.proto", | ||
"instance.proto", | ||
"location.proto", | ||
"operation.proto", | ||
"service.proto", | ||
"version.proto", | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//google/api:annotations_proto", | ||
"//google/iam/v1:iam_proto", | ||
"//google/longrunning:longrunning_proto", | ||
"//google/type:latlng_proto", | ||
"@com_google_protobuf//:duration_proto", | ||
"@com_google_protobuf//:empty_proto", | ||
"@com_google_protobuf//:field_mask_proto", | ||
"@com_google_protobuf//:timestamp_proto", | ||
], | ||
) | ||
|
||
go_proto_library( | ||
name = "appengine_go_proto", | ||
compilers = ["@io_bazel_rules_go//proto:go_grpc"], | ||
importpath = "google.golang.org/genproto/googleapis/appengine/v1", | ||
proto = ":appengine_proto", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//google/api:annotations_go_proto", | ||
"//google/iam/v1:iam_go_proto", | ||
"//google/longrunning:longrunning_go_proto", | ||
"//google/type:latlng_go_proto", | ||
], | ||
) |
23 changes: 23 additions & 0 deletions
23
third_party/go_googleapis/google/assistant/embedded/v1alpha1/BUILD.bazel.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
load("@io_bazel_rules_go//proto:def.bzl", "go_proto_library") | ||
|
||
proto_library( | ||
name = "embedded_proto", | ||
srcs = ["embedded_assistant.proto"], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//google/api:annotations_proto", | ||
"//google/rpc:status_proto", | ||
], | ||
) | ||
|
||
go_proto_library( | ||
name = "embedded_go_proto", | ||
compilers = ["@io_bazel_rules_go//proto:go_grpc"], | ||
importpath = "google.golang.org/genproto/googleapis/assistant/embedded/v1alpha1", | ||
proto = ":embedded_proto", | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//google/api:annotations_go_proto", | ||
"//google/rpc:status_go_proto", | ||
], | ||
) |
Oops, something went wrong.