mirror of
https://github.com/googleapis/googleapis.git
synced 2026-08-20 13:27:47 +02:00
Updates translate BUILD.bazel files to use Python microgenerator
PiperOrigin-RevId: 323392957
This commit is contained in:
parent
d5b06c7459
commit
c285d2d4be
2 changed files with 14 additions and 84 deletions
|
|
@ -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",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue