diff --git a/google/cloud/notebooks/v1beta1/BUILD.bazel b/google/cloud/notebooks/v1beta1/BUILD.bazel index 17b472f1b76cf..bc2ede0c028f0 100644 --- a/google/cloud/notebooks/v1beta1/BUILD.bazel +++ b/google/cloud/notebooks/v1beta1/BUILD.bazel @@ -156,51 +156,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", + py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", + py_gapic_library = "py_gapic_library2", ) -moved_proto_library( - name = "notebooks_moved_proto", - srcs = [":notebooks_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 = "notebooks_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":notebooks_moved_proto"], -) - -py_grpc_library( - name = "notebooks_py_grpc", - srcs = [":notebooks_moved_proto"], - deps = [":notebooks_py_proto"], -) py_gapic_library( name = "notebooks_py_gapic", - src = ":notebooks_proto_with_info", - gapic_yaml = "notebooks_gapic.yaml", + srcs = [":notebooks_proto"], grpc_service_config = "notebooks_grpc_service_config.json", - package = "google.cloud.notebooks.v1beta1", - service_yaml = "notebooks_v1beta1.yaml", - deps = [ - ":notebooks_py_grpc", - ":notebooks_py_proto", - ], ) # Open Source Packages @@ -208,8 +176,6 @@ py_gapic_assembly_pkg( name = "notebooks-v1beta1-py", deps = [ ":notebooks_py_gapic", - ":notebooks_py_grpc", - ":notebooks_py_proto", ], ) diff --git a/google/cloud/pubsublite/v1/BUILD.bazel b/google/cloud/pubsublite/v1/BUILD.bazel index 595640a0fa71c..6e40ca8d329df 100644 --- a/google/cloud/pubsublite/v1/BUILD.bazel +++ b/google/cloud/pubsublite/v1/BUILD.bazel @@ -163,62 +163,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 = "pubsublite_moved_proto", - srcs = [":pubsublite_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/api:resource_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:empty_proto", - "@com_google_protobuf//:field_mask_proto", - "@com_google_protobuf//:timestamp_proto", - ], -) - -py_proto_library( - name = "pubsublite_py_proto", - plugin = "@protoc_docs_plugin//:docs_plugin", - deps = [":pubsublite_moved_proto"], -) - -py_grpc_library( - name = "pubsublite_py_grpc", - srcs = [":pubsublite_moved_proto"], - deps = [":pubsublite_py_proto"], + py_gapic_assembly_pkg = "py_gapic_assembly_pkg2", + py_gapic_library = "py_gapic_library2", ) py_gapic_library( name = "pubsublite_py_gapic", - src = ":pubsublite_proto_with_info", - gapic_yaml = "gapic.yaml", - grpc_service_config = None, - package = "google.cloud.pubsublite.v1", - service_yaml = "pubsublite_v1.yaml", - deps = [ - ":pubsublite_py_grpc", - ":pubsublite_py_proto", - ], + srcs = [":pubsublite_proto"], ) -# Open Source Packages py_gapic_assembly_pkg( name = "pubsublite-v1-py", deps = [ ":pubsublite_py_gapic", - ":pubsublite_py_grpc", - ":pubsublite_py_proto", ], )