chore: use python microgenerator rules for dialogflow cx
PiperOrigin-RevId: 343121790
This commit is contained in:
parent
3f87da2ed1
commit
948c82e75f
|
|
@ -186,60 +186,23 @@ 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 = "cx_moved_proto",
|
||||
srcs = [":cx_proto"],
|
||||
deps = [
|
||||
"//google/api:annotations_proto",
|
||||
"//google/api:client_proto",
|
||||
"//google/api:field_behavior_proto",
|
||||
"//google/api:resource_proto",
|
||||
"//google/longrunning:operations_proto",
|
||||
"//google/rpc:status_proto",
|
||||
"//google/type:latlng_proto",
|
||||
"@com_google_protobuf//:duration_proto",
|
||||
"@com_google_protobuf//:empty_proto",
|
||||
"@com_google_protobuf//:field_mask_proto",
|
||||
"@com_google_protobuf//:struct_proto",
|
||||
"@com_google_protobuf//:timestamp_proto",
|
||||
],
|
||||
)
|
||||
|
||||
py_proto_library(
|
||||
name = "cx_py_proto",
|
||||
plugin = "@protoc_docs_plugin//:docs_plugin",
|
||||
deps = [":cx_moved_proto"],
|
||||
)
|
||||
|
||||
py_grpc_library(
|
||||
name = "cx_py_grpc",
|
||||
srcs = [":cx_moved_proto"],
|
||||
deps = [":cx_py_proto"],
|
||||
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
|
||||
py_gapic_library = "py_gapic_library2",
|
||||
)
|
||||
|
||||
py_gapic_library(
|
||||
name = "cx_py_gapic",
|
||||
src = ":cx_proto_with_info",
|
||||
gapic_yaml = "dialogflow_gapic.yaml",
|
||||
srcs = [":cx_proto"],
|
||||
grpc_service_config = "dialogflow_grpc_service_config.json",
|
||||
package = "google.cloud.dialogflow.cx.v3",
|
||||
service_yaml = "dialogflow_v3.yaml",
|
||||
deps = [
|
||||
":cx_py_grpc",
|
||||
":cx_py_proto",
|
||||
],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
|
|
@ -247,8 +210,6 @@ py_gapic_assembly_pkg(
|
|||
name = "dialogflow-cx-v3-py",
|
||||
deps = [
|
||||
":cx_py_gapic",
|
||||
":cx_py_grpc",
|
||||
":cx_py_proto",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -187,57 +187,19 @@ 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 = "cx_moved_proto",
|
||||
srcs = [":cx_proto"],
|
||||
deps = [
|
||||
"//google/api:annotations_proto",
|
||||
"//google/api:client_proto",
|
||||
"//google/api:field_behavior_proto",
|
||||
"//google/api:resource_proto",
|
||||
"//google/longrunning:operations_proto",
|
||||
"//google/rpc:status_proto",
|
||||
"//google/type:latlng_proto",
|
||||
"@com_google_protobuf//:duration_proto",
|
||||
"@com_google_protobuf//:empty_proto",
|
||||
"@com_google_protobuf//:field_mask_proto",
|
||||
"@com_google_protobuf//:struct_proto",
|
||||
"@com_google_protobuf//:timestamp_proto",
|
||||
],
|
||||
)
|
||||
|
||||
py_proto_library(
|
||||
name = "cx_py_proto",
|
||||
plugin = "@protoc_docs_plugin//:docs_plugin",
|
||||
deps = [":cx_moved_proto"],
|
||||
)
|
||||
|
||||
py_grpc_library(
|
||||
name = "cx_py_grpc",
|
||||
srcs = [":cx_moved_proto"],
|
||||
deps = [":cx_py_proto"],
|
||||
py_gapic_assembly_pkg = "py_gapic_assembly_pkg2",
|
||||
py_gapic_library = "py_gapic_library2",
|
||||
)
|
||||
|
||||
py_gapic_library(
|
||||
name = "cx_py_gapic",
|
||||
src = ":cx_proto_with_info",
|
||||
gapic_yaml = "dialogflow_gapic.yaml",
|
||||
srcs = [":cx_proto"],
|
||||
grpc_service_config = "dialogflow_grpc_service_config.json",
|
||||
package = "google.cloud.dialogflow.cx.v3beta1",
|
||||
service_yaml = "dialogflow_v3beta1.yaml",
|
||||
deps = [
|
||||
":cx_py_grpc",
|
||||
":cx_py_proto",
|
||||
],
|
||||
)
|
||||
|
||||
# Open Source Packages
|
||||
|
|
@ -245,8 +207,6 @@ py_gapic_assembly_pkg(
|
|||
name = "dialogflow-cx-v3beta1-py",
|
||||
deps = [
|
||||
":cx_py_gapic",
|
||||
":cx_py_grpc",
|
||||
":cx_py_proto",
|
||||
],
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue