With Bazel 9.0 and onwards, rules must be explicitly loaded in the associated BUILD files with the published proto:
load("@com_google_protobuf//bazel:java_proto_library.bzl", "java_proto_library")
load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library")
// And other rules used