Skip to content

Commit

Permalink
fix: add Java options to Binaryauthorization protos
Browse files Browse the repository at this point in the history
Committer: @miraleung
PiperOrigin-RevId: 367156876
  • Loading branch information
Google APIs authored and copybara-github committed Apr 7, 2021
1 parent 8e15837 commit 7e91915
Show file tree
Hide file tree
Showing 3 changed files with 149 additions and 151 deletions.
184 changes: 73 additions & 111 deletions google/cloud/binaryauthorization/v1beta1/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,13 +1,50 @@
# This file was automatically generated by BuildFileGenerator
# https://github.com/googleapis/rules_gapic/tree/master/bazel

# This is an API workspace, having public visibility by default makes perfect sense.
package(default_visibility = ["//visibility:public"])
# Most of the manual changes to this file will be overwritten.
# It's **only** allowed to change the following rule attribute values:
# - names of *_gapic_assembly_* rules
# - certain parameters of *_gapic_library rules, including but not limited to:
# * extra_protoc_parameters
# * extra_protoc_file_parameters
# The complete list of preserved parameters can be found in the source code.

##############################################################################
# Common
##############################################################################
load("@rules_proto//proto:defs.bzl", "proto_library")
load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info")
load(
"@com_google_googleapis_imports//:imports.bzl",
"csharp_gapic_assembly_pkg",
"csharp_gapic_library",
"csharp_grpc_library",
"csharp_proto_library",
"go_gapic_assembly_pkg",
"go_gapic_library",
"go_proto_library",
"go_test",
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
"java_grpc_library",
"java_proto_library",
"nodejs_gapic_assembly_pkg",
"nodejs_gapic_library",
"proto_library_with_info",
"py_gapic_assembly_pkg",
"py_gapic_library",
"ruby_cloud_gapic_library",
"ruby_gapic_assembly_pkg",
"ruby_grpc_library",
"ruby_proto_library",
php_gapic_assembly_pkg = "php_gapic_assembly_pkg2",
php_gapic_library = "php_gapic_library2",
php_grpc_library = "php_grpc_library2",
php_proto_library = "php_proto_library2",
)

# This is an API workspace, having public visibility by default makes perfect sense.
package(default_visibility = ["//visibility:public"])

proto_library(
name = "binaryauthorization_proto",
Expand All @@ -33,18 +70,6 @@ proto_library_with_info(
],
)

##############################################################################
# Java
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"java_gapic_assembly_gradle_pkg",
"java_gapic_library",
"java_gapic_test",
"java_grpc_library",
"java_proto_library",
)

java_proto_library(
name = "binaryauthorization_java_proto",
deps = [":binaryauthorization_proto"],
Expand All @@ -56,48 +81,35 @@ java_grpc_library(
deps = [":binaryauthorization_java_proto"],
)

# Uncomment, once java file level options are included in the protos
#java_gapic_library(
# name = "binaryauthorization_java_gapic",
# srcs = [":binaryauthorization_proto_with_info"],
# grpc_service_config = "binaryauthorization_grpc_service_config.json",
# package = "google.cloud.binaryauthorization.v1beta1",
# test_deps = [
# ":binaryauthorization_java_grpc",
# ],
# deps = [
# ":binaryauthorization_java_proto",
# ],
#)
#
#java_gapic_test(
# name = "binaryauthorization_java_gapic_test_suite",
# test_classes = [
# "com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1ClientTest",
# ],
# runtime_deps = [":binaryauthorization_java_gapic_test"],
#)
#
## Open Source Packages
#java_gapic_assembly_gradle_pkg(
# name = "google-cloud-binaryauthorization-v1beta1-java",
# deps = [
# ":binaryauthorization_java_gapic",
# ":binaryauthorization_java_grpc",
# ":binaryauthorization_java_proto",
# ":binaryauthorization_proto",
# ],
#)
java_gapic_library(
name = "binaryauthorization_java_gapic",
srcs = [":binaryauthorization_proto_with_info"],
grpc_service_config = "binaryauthorization_grpc_service_config.json",
test_deps = [
":binaryauthorization_java_grpc",
],
deps = [
":binaryauthorization_java_proto",
],
)

##############################################################################
# Go
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"go_gapic_assembly_pkg",
"go_gapic_library",
"go_proto_library",
"go_test",
java_gapic_test(
name = "binaryauthorization_java_gapic_test_suite",
test_classes = [
"com.google.cloud.binaryauthorization.v1beta1.BinauthzManagementServiceV1Beta1ClientTest",
],
runtime_deps = [":binaryauthorization_java_gapic_test"],
)

# Open Source Packages
java_gapic_assembly_gradle_pkg(
name = "google-cloud-binaryauthorization-v1beta1-java",
deps = [
":binaryauthorization_java_gapic",
":binaryauthorization_java_grpc",
":binaryauthorization_java_proto",
":binaryauthorization_proto",
],
)

go_proto_library(
Expand All @@ -115,6 +127,7 @@ go_gapic_library(
srcs = [":binaryauthorization_proto_with_info"],
grpc_service_config = "binaryauthorization_grpc_service_config.json",
importpath = "cloud.google.com/go/binaryauthorization/apiv1beta1;binaryauthorization",
metadata = True,
service_yaml = "binaryauthorization_v1beta1.yaml",
deps = [
":binaryauthorization_go_proto",
Expand All @@ -133,20 +146,12 @@ go_gapic_assembly_pkg(
name = "gapi-cloud-binaryauthorization-v1beta1-go",
deps = [
":binaryauthorization_go_gapic",
":binaryauthorization_go_gapic_srcjar-metadata.srcjar",
":binaryauthorization_go_gapic_srcjar-test.srcjar",
":binaryauthorization_go_proto",
],
)

##############################################################################
# Python
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"py_gapic_assembly_pkg",
"py_gapic_library",
)

py_gapic_library(
name = "binaryauthorization_py_gapic",
srcs = [":binaryauthorization_proto"],
Expand All @@ -161,18 +166,6 @@ py_gapic_assembly_pkg(
],
)

##############################################################################
# PHP
# DO NOT OVERRIDE this PHP microgenerator section with autogenerated rules.
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
php_gapic_assembly_pkg = "php_gapic_assembly_pkg2",
php_gapic_library = "php_gapic_library2",
php_grpc_library = "php_grpc_library2",
php_proto_library = "php_proto_library2",
)

php_proto_library(
name = "binaryauthorization_php_proto",
deps = [":binaryauthorization_proto"],
Expand Down Expand Up @@ -204,15 +197,6 @@ php_gapic_assembly_pkg(
],
)

##############################################################################
# Node.js
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"nodejs_gapic_assembly_pkg",
"nodejs_gapic_library",
)

nodejs_gapic_library(
name = "binaryauthorization_nodejs_gapic",
package_name = "@google-cloud/binary-authorization",
Expand All @@ -232,17 +216,6 @@ nodejs_gapic_assembly_pkg(
],
)

##############################################################################
# Ruby
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"ruby_cloud_gapic_library",
"ruby_gapic_assembly_pkg",
"ruby_grpc_library",
"ruby_proto_library",
)

ruby_proto_library(
name = "binaryauthorization_ruby_proto",
deps = [":binaryauthorization_proto"],
Expand All @@ -258,11 +231,11 @@ ruby_cloud_gapic_library(
name = "binaryauthorization_ruby_gapic",
srcs = [":binaryauthorization_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-binary_authorization-v1beta1",
"ruby-cloud-env-prefix=BINARY_AUTHORIZATION",
"ruby-cloud-product-url=https://cloud.google.com/binary-authorization/",
"ruby-cloud-api-id=binaryauthorization.googleapis.com",
"ruby-cloud-api-shortname=binaryauthorization",
"ruby-cloud-env-prefix=BINARY_AUTHORIZATION",
"ruby-cloud-gem-name=google-cloud-binary_authorization-v1beta1",
"ruby-cloud-product-url=https://cloud.google.com/binary-authorization/",
"ruby-cloud-service-override=BinauthzManagementServiceV1Beta1=BinauthzManagementService",
],
grpc_service_config = "binaryauthorization_grpc_service_config.json",
Expand All @@ -284,17 +257,6 @@ ruby_gapic_assembly_pkg(
],
)

##############################################################################
# C#
##############################################################################
load(
"@com_google_googleapis_imports//:imports.bzl",
"csharp_gapic_assembly_pkg",
"csharp_gapic_library",
"csharp_grpc_library",
"csharp_proto_library",
)

csharp_proto_library(
name = "binaryauthorization_csharp_proto",
deps = [":binaryauthorization_proto"],
Expand Down
3 changes: 3 additions & 0 deletions google/cloud/binaryauthorization/v1beta1/resources.proto
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import "google/protobuf/timestamp.proto";
option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.BinaryAuthorization.V1Beta1";
option go_package = "google.golang.org/genproto/googleapis/cloud/binaryauthorization/v1beta1;binaryauthorization";
option java_multiple_files = true;
option java_outer_classname = "BinaryAuthorizationResourcesProto";
option java_package = "com.google.cloud.binaryauthorization.v1beta1";
option php_namespace = "Google\\Cloud\\BinaryAuthorization\\V1beta1";
option ruby_package = "Google::Cloud::BinaryAuthorization::V1beta1";

Expand Down
Loading

0 comments on commit 7e91915

Please sign in to comment.