From c285d2d4be2e0a680ec6ba2ab86dfbdba0f70503 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Mon, 27 Jul 2020 10:45:58 -0700 Subject: [PATCH] Updates translate BUILD.bazel files to use Python microgenerator PiperOrigin-RevId: 323392957 --- google/cloud/translate/v3/BUILD.bazel | 49 ++++------------------ google/cloud/translate/v3beta1/BUILD.bazel | 49 ++++------------------ 2 files changed, 14 insertions(+), 84 deletions(-) diff --git a/google/cloud/translate/v3/BUILD.bazel b/google/cloud/translate/v3/BUILD.bazel index c9055bfd8b..737f9970d0 100644 --- a/google/cloud/translate/v3/BUILD.bazel +++ b/google/cloud/translate/v3/BUILD.bazel @@ -145,60 +145,25 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## +# This library is using Python microgenerator. +# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", - "py_gapic_assembly_pkg", - "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "translation_moved_proto", - srcs = [":translation_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "translation_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":translation_moved_proto"], -) - -py_grpc_library( - name = "translation_py_grpc", - srcs = [":translation_moved_proto"], - deps = [":translation_py_proto"], + py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", + py_gapic_library = "py_gapic_library2", ) py_gapic_library( name = "translation_py_gapic", - src = ":translation_proto_with_info", - gapic_yaml = "translate_gapic.yaml", + srcs = [":translation_proto"], grpc_service_config = "translate_grpc_service_config.json", - package = "google.cloud.translation.v3", - service_yaml = "translate_v3.yaml", - deps = [ - ":translation_py_grpc", - ":translation_py_proto", - ], + ) -# Open Source Packages py_gapic_assembly_pkg( name = "translation-v3-py", deps = [ - ":translation_py_gapic", - ":translation_py_grpc", - ":translation_py_proto", + ":translate_py_gapic", ], ) diff --git a/google/cloud/translate/v3beta1/BUILD.bazel b/google/cloud/translate/v3beta1/BUILD.bazel index 8f32d11534..ae2698cb6a 100644 --- a/google/cloud/translate/v3beta1/BUILD.bazel +++ b/google/cloud/translate/v3beta1/BUILD.bazel @@ -145,60 +145,25 @@ go_gapic_assembly_pkg( ############################################################################## # Python ############################################################################## +# This library is using Python microgenerator. +# DO NOT OVERRIDE this Python section with autogenerated rules. load( "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", - "py_gapic_assembly_pkg", - "py_gapic_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "translation_moved_proto", - srcs = [":translation_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/longrunning:operations_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "translation_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":translation_moved_proto"], -) - -py_grpc_library( - name = "translation_py_grpc", - srcs = [":translation_moved_proto"], - deps = [":translation_py_proto"], + py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", + py_gapic_library = "py_gapic_library2", ) py_gapic_library( name = "translation_py_gapic", - src = ":translation_proto_with_info", - gapic_yaml = "translate_gapic.yaml", + srcs = [":translation_proto"], grpc_service_config = "translate_grpc_service_config.json", - package = "google.cloud.translation.v3beta1", - service_yaml = "translate_v3beta1.yaml", - deps = [ - ":translation_py_grpc", - ":translation_py_proto", - ], + ) -# Open Source Packages py_gapic_assembly_pkg( name = "translation-v3beta1-py", deps = [ - ":translation_py_gapic", - ":translation_py_grpc", - ":translation_py_proto", + ":translate_py_gapic", ], )