diff --git a/google/cloud/bigquery/reservation/v1/BUILD.bazel b/google/cloud/bigquery/reservation/v1/BUILD.bazel index b3b8f6e1..c2bd34e1 100644 --- a/google/cloud/bigquery/reservation/v1/BUILD.bazel +++ b/google/cloud/bigquery/reservation/v1/BUILD.bazel @@ -144,53 +144,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 = "reservation_moved_proto", - srcs = [":reservation_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "//google/rpc:status_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "reservation_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":reservation_moved_proto"], -) - -py_grpc_library( - name = "reservation_py_grpc", - srcs = [":reservation_moved_proto"], - deps = [":reservation_py_proto"], + py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", + py_gapic_library = "py_gapic_library2", ) py_gapic_library( name = "reservation_py_gapic", - src = ":reservation_proto_with_info", - gapic_yaml = "bigqueryreservation_gapic.yaml", + srcs = [":reservation_proto"], grpc_service_config = "bigqueryreservation_grpc_service_config.json", - package = "google.cloud.bigquery.reservation.v1", - service_yaml = "bigqueryreservation_v1.yaml", - deps = [ - ":reservation_py_grpc", - ":reservation_py_proto", - ], + opt_args = ["python-gapic-namespace=google.cloud", "python-gapic-name=bigquery_reservation"], ) # Open Source Packages @@ -198,8 +164,6 @@ py_gapic_assembly_pkg( name = "bigquery-reservation-v1-py", deps = [ ":reservation_py_gapic", - ":reservation_py_grpc", - ":reservation_py_proto", ], )