github.com/bazelbuild/rules_go@v0.47.2-0.20240515105122-e7ddb9ea474e/third_party/org_golang_google_protobuf-gazelle.patch (about)

     1  diff -urN a/BUILD.bazel b/BUILD.bazel
     2  --- a/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
     3  +++ b/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
     4  @@ -0,0 +1,7 @@
     5  +load("@io_bazel_rules_go//go:def.bzl", "go_test")
     6  +
     7  +go_test(
     8  +    name = "protobuf_test",
     9  +    srcs = ["integration_test.go"],
    10  +    deps = ["//internal/version"],
    11  +)
    12  diff -urN a/cmd/protoc-gen-go/BUILD.bazel b/cmd/protoc-gen-go/BUILD.bazel
    13  --- a/cmd/protoc-gen-go/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
    14  +++ b/cmd/protoc-gen-go/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
    15  @@ -0,0 +1,38 @@
    16  +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
    17  +
    18  +go_library(
    19  +    name = "protoc-gen-go_lib",
    20  +    srcs = ["main.go"],
    21  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go",
    22  +    visibility = ["//visibility:private"],
    23  +    deps = [
    24  +        "//cmd/protoc-gen-go/internal_gengo",
    25  +        "//compiler/protogen",
    26  +        "//internal/version",
    27  +    ],
    28  +)
    29  +
    30  +go_binary(
    31  +    name = "protoc-gen-go",
    32  +    embed = [":protoc-gen-go_lib"],
    33  +    visibility = ["//visibility:public"],
    34  +)
    35  +
    36  +go_test(
    37  +    name = "protoc-gen-go_test",
    38  +    srcs = [
    39  +        "annotation_test.go",
    40  +        "retention_test.go",
    41  +    ],
    42  +    embed = [":protoc-gen-go_lib"],
    43  +    deps = [
    44  +        "//cmd/protoc-gen-go/testdata/retention",
    45  +        "//encoding/prototext",
    46  +        "//internal/genid",
    47  +        "//proto",
    48  +        "//reflect/protoreflect",
    49  +        "//testing/protocmp",
    50  +        "//types/descriptorpb",
    51  +        "@com_github_google_go_cmp//cmp:go_default_library",
    52  +    ],
    53  +)
    54  diff -urN a/cmd/protoc-gen-go/internal_gengo/BUILD.bazel b/cmd/protoc-gen-go/internal_gengo/BUILD.bazel
    55  --- a/cmd/protoc-gen-go/internal_gengo/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
    56  +++ b/cmd/protoc-gen-go/internal_gengo/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
    57  @@ -0,0 +1,34 @@
    58  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
    59  +
    60  +go_library(
    61  +    name = "internal_gengo",
    62  +    srcs = [
    63  +        "init.go",
    64  +        "main.go",
    65  +        "reflect.go",
    66  +        "well_known_types.go",
    67  +    ],
    68  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo",
    69  +    visibility = ["//visibility:public"],
    70  +    deps = [
    71  +        "//compiler/protogen",
    72  +        "//encoding/protowire",
    73  +        "//internal/encoding/tag",
    74  +        "//internal/filedesc",
    75  +        "//internal/genid",
    76  +        "//internal/version",
    77  +        "//proto",
    78  +        "//reflect/protopath",
    79  +        "//reflect/protorange",
    80  +        "//reflect/protoreflect",
    81  +        "//runtime/protoimpl",
    82  +        "//types/descriptorpb",
    83  +        "//types/pluginpb",
    84  +    ],
    85  +)
    86  +
    87  +alias(
    88  +    name = "go_default_library",
    89  +    actual = ":internal_gengo",
    90  +    visibility = ["//visibility:public"],
    91  +)
    92  diff -urN a/cmd/protoc-gen-go/testdata/annotations/BUILD.bazel b/cmd/protoc-gen-go/testdata/annotations/BUILD.bazel
    93  --- a/cmd/protoc-gen-go/testdata/annotations/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
    94  +++ b/cmd/protoc-gen-go/testdata/annotations/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
    95  @@ -0,0 +1,19 @@
    96  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
    97  +
    98  +go_library(
    99  +    name = "annotations",
   100  +    srcs = ["annotations.pb.go"],
   101  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/annotations",
   102  +    visibility = ["//visibility:public"],
   103  +    deps = [
   104  +        "//proto",
   105  +        "//reflect/protoreflect",
   106  +        "//runtime/protoimpl",
   107  +    ],
   108  +)
   109  +
   110  +alias(
   111  +    name = "go_default_library",
   112  +    actual = ":annotations",
   113  +    visibility = ["//visibility:public"],
   114  +)
   115  diff -urN a/cmd/protoc-gen-go/testdata/BUILD.bazel b/cmd/protoc-gen-go/testdata/BUILD.bazel
   116  --- a/cmd/protoc-gen-go/testdata/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   117  +++ b/cmd/protoc-gen-go/testdata/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   118  @@ -0,0 +1,35 @@
   119  +load("@io_bazel_rules_go//go:def.bzl", "go_test")
   120  +
   121  +go_test(
   122  +    name = "testdata_test",
   123  +    srcs = [
   124  +        "gen_test.go",
   125  +        "registry_test.go",
   126  +    ],
   127  +    deps = [
   128  +        "//cmd/protoc-gen-go/testdata/annotations",
   129  +        "//cmd/protoc-gen-go/testdata/comments",
   130  +        "//cmd/protoc-gen-go/testdata/extensions/base",
   131  +        "//cmd/protoc-gen-go/testdata/extensions/ext",
   132  +        "//cmd/protoc-gen-go/testdata/extensions/extra",
   133  +        "//cmd/protoc-gen-go/testdata/extensions/proto3",
   134  +        "//cmd/protoc-gen-go/testdata/fieldnames",
   135  +        "//cmd/protoc-gen-go/testdata/import_public",
   136  +        "//cmd/protoc-gen-go/testdata/import_public/sub",
   137  +        "//cmd/protoc-gen-go/testdata/import_public/sub2",
   138  +        "//cmd/protoc-gen-go/testdata/imports",
   139  +        "//cmd/protoc-gen-go/testdata/imports/fmt",
   140  +        "//cmd/protoc-gen-go/testdata/imports/test_a_1",
   141  +        "//cmd/protoc-gen-go/testdata/imports/test_a_2",
   142  +        "//cmd/protoc-gen-go/testdata/imports/test_b_1",
   143  +        "//cmd/protoc-gen-go/testdata/issue780_oneof_conflict",
   144  +        "//cmd/protoc-gen-go/testdata/nopackage",
   145  +        "//cmd/protoc-gen-go/testdata/proto2",
   146  +        "//cmd/protoc-gen-go/testdata/proto3",
   147  +        "//cmd/protoc-gen-go/testdata/protoeditions",
   148  +        "//cmd/protoc-gen-go/testdata/retention",
   149  +        "//internal/filedesc",
   150  +        "//reflect/protoreflect",
   151  +        "//reflect/protoregistry",
   152  +    ],
   153  +)
   154  diff -urN a/cmd/protoc-gen-go/testdata/comments/BUILD.bazel b/cmd/protoc-gen-go/testdata/comments/BUILD.bazel
   155  --- a/cmd/protoc-gen-go/testdata/comments/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   156  +++ b/cmd/protoc-gen-go/testdata/comments/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   157  @@ -0,0 +1,21 @@
   158  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   159  +
   160  +go_library(
   161  +    name = "comments",
   162  +    srcs = [
   163  +        "comments.pb.go",
   164  +        "deprecated.pb.go",
   165  +    ],
   166  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/comments",
   167  +    visibility = ["//visibility:public"],
   168  +    deps = [
   169  +        "//reflect/protoreflect",
   170  +        "//runtime/protoimpl",
   171  +    ],
   172  +)
   173  +
   174  +alias(
   175  +    name = "go_default_library",
   176  +    actual = ":comments",
   177  +    visibility = ["//visibility:public"],
   178  +)
   179  diff -urN a/cmd/protoc-gen-go/testdata/extensions/base/BUILD.bazel b/cmd/protoc-gen-go/testdata/extensions/base/BUILD.bazel
   180  --- a/cmd/protoc-gen-go/testdata/extensions/base/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   181  +++ b/cmd/protoc-gen-go/testdata/extensions/base/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   182  @@ -0,0 +1,18 @@
   183  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   184  +
   185  +go_library(
   186  +    name = "base",
   187  +    srcs = ["base.pb.go"],
   188  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/base",
   189  +    visibility = ["//visibility:public"],
   190  +    deps = [
   191  +        "//reflect/protoreflect",
   192  +        "//runtime/protoimpl",
   193  +    ],
   194  +)
   195  +
   196  +alias(
   197  +    name = "go_default_library",
   198  +    actual = ":base",
   199  +    visibility = ["//visibility:public"],
   200  +)
   201  diff -urN a/cmd/protoc-gen-go/testdata/extensions/ext/BUILD.bazel b/cmd/protoc-gen-go/testdata/extensions/ext/BUILD.bazel
   202  --- a/cmd/protoc-gen-go/testdata/extensions/ext/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   203  +++ b/cmd/protoc-gen-go/testdata/extensions/ext/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   204  @@ -0,0 +1,20 @@
   205  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   206  +
   207  +go_library(
   208  +    name = "ext",
   209  +    srcs = ["ext.pb.go"],
   210  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/ext",
   211  +    visibility = ["//visibility:public"],
   212  +    deps = [
   213  +        "//cmd/protoc-gen-go/testdata/extensions/base",
   214  +        "//cmd/protoc-gen-go/testdata/extensions/extra",
   215  +        "//reflect/protoreflect",
   216  +        "//runtime/protoimpl",
   217  +    ],
   218  +)
   219  +
   220  +alias(
   221  +    name = "go_default_library",
   222  +    actual = ":ext",
   223  +    visibility = ["//visibility:public"],
   224  +)
   225  diff -urN a/cmd/protoc-gen-go/testdata/extensions/extra/BUILD.bazel b/cmd/protoc-gen-go/testdata/extensions/extra/BUILD.bazel
   226  --- a/cmd/protoc-gen-go/testdata/extensions/extra/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   227  +++ b/cmd/protoc-gen-go/testdata/extensions/extra/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   228  @@ -0,0 +1,18 @@
   229  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   230  +
   231  +go_library(
   232  +    name = "extra",
   233  +    srcs = ["extra.pb.go"],
   234  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/extra",
   235  +    visibility = ["//visibility:public"],
   236  +    deps = [
   237  +        "//reflect/protoreflect",
   238  +        "//runtime/protoimpl",
   239  +    ],
   240  +)
   241  +
   242  +alias(
   243  +    name = "go_default_library",
   244  +    actual = ":extra",
   245  +    visibility = ["//visibility:public"],
   246  +)
   247  diff -urN a/cmd/protoc-gen-go/testdata/extensions/proto3/BUILD.bazel b/cmd/protoc-gen-go/testdata/extensions/proto3/BUILD.bazel
   248  --- a/cmd/protoc-gen-go/testdata/extensions/proto3/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   249  +++ b/cmd/protoc-gen-go/testdata/extensions/proto3/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   250  @@ -0,0 +1,19 @@
   251  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   252  +
   253  +go_library(
   254  +    name = "proto3",
   255  +    srcs = ["ext3.pb.go"],
   256  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/extensions/proto3",
   257  +    visibility = ["//visibility:public"],
   258  +    deps = [
   259  +        "//reflect/protoreflect",
   260  +        "//runtime/protoimpl",
   261  +        "//types/descriptorpb",
   262  +    ],
   263  +)
   264  +
   265  +alias(
   266  +    name = "go_default_library",
   267  +    actual = ":proto3",
   268  +    visibility = ["//visibility:public"],
   269  +)
   270  diff -urN a/cmd/protoc-gen-go/testdata/fieldnames/BUILD.bazel b/cmd/protoc-gen-go/testdata/fieldnames/BUILD.bazel
   271  --- a/cmd/protoc-gen-go/testdata/fieldnames/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   272  +++ b/cmd/protoc-gen-go/testdata/fieldnames/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   273  @@ -0,0 +1,18 @@
   274  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   275  +
   276  +go_library(
   277  +    name = "fieldnames",
   278  +    srcs = ["fieldnames.pb.go"],
   279  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/fieldnames",
   280  +    visibility = ["//visibility:public"],
   281  +    deps = [
   282  +        "//reflect/protoreflect",
   283  +        "//runtime/protoimpl",
   284  +    ],
   285  +)
   286  +
   287  +alias(
   288  +    name = "go_default_library",
   289  +    actual = ":fieldnames",
   290  +    visibility = ["//visibility:public"],
   291  +)
   292  diff -urN a/cmd/protoc-gen-go/testdata/import_public/BUILD.bazel b/cmd/protoc-gen-go/testdata/import_public/BUILD.bazel
   293  --- a/cmd/protoc-gen-go/testdata/import_public/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   294  +++ b/cmd/protoc-gen-go/testdata/import_public/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   295  @@ -0,0 +1,24 @@
   296  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   297  +
   298  +go_library(
   299  +    name = "import_public",
   300  +    srcs = [
   301  +        "a.pb.go",
   302  +        "b.pb.go",
   303  +        "c.pb.go",
   304  +    ],
   305  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public",
   306  +    visibility = ["//visibility:public"],
   307  +    deps = [
   308  +        "//cmd/protoc-gen-go/testdata/import_public/sub",
   309  +        "//cmd/protoc-gen-go/testdata/import_public/sub2",
   310  +        "//reflect/protoreflect",
   311  +        "//runtime/protoimpl",
   312  +    ],
   313  +)
   314  +
   315  +alias(
   316  +    name = "go_default_library",
   317  +    actual = ":import_public",
   318  +    visibility = ["//visibility:public"],
   319  +)
   320  diff -urN a/cmd/protoc-gen-go/testdata/import_public/sub/BUILD.bazel b/cmd/protoc-gen-go/testdata/import_public/sub/BUILD.bazel
   321  --- a/cmd/protoc-gen-go/testdata/import_public/sub/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   322  +++ b/cmd/protoc-gen-go/testdata/import_public/sub/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   323  @@ -0,0 +1,22 @@
   324  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   325  +
   326  +go_library(
   327  +    name = "sub",
   328  +    srcs = [
   329  +        "a.pb.go",
   330  +        "b.pb.go",
   331  +    ],
   332  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub",
   333  +    visibility = ["//visibility:public"],
   334  +    deps = [
   335  +        "//cmd/protoc-gen-go/testdata/import_public/sub2",
   336  +        "//reflect/protoreflect",
   337  +        "//runtime/protoimpl",
   338  +    ],
   339  +)
   340  +
   341  +alias(
   342  +    name = "go_default_library",
   343  +    actual = ":sub",
   344  +    visibility = ["//visibility:public"],
   345  +)
   346  diff -urN a/cmd/protoc-gen-go/testdata/import_public/sub2/BUILD.bazel b/cmd/protoc-gen-go/testdata/import_public/sub2/BUILD.bazel
   347  --- a/cmd/protoc-gen-go/testdata/import_public/sub2/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   348  +++ b/cmd/protoc-gen-go/testdata/import_public/sub2/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   349  @@ -0,0 +1,18 @@
   350  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   351  +
   352  +go_library(
   353  +    name = "sub2",
   354  +    srcs = ["a.pb.go"],
   355  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/import_public/sub2",
   356  +    visibility = ["//visibility:public"],
   357  +    deps = [
   358  +        "//reflect/protoreflect",
   359  +        "//runtime/protoimpl",
   360  +    ],
   361  +)
   362  +
   363  +alias(
   364  +    name = "go_default_library",
   365  +    actual = ":sub2",
   366  +    visibility = ["//visibility:public"],
   367  +)
   368  diff -urN a/cmd/protoc-gen-go/testdata/imports/BUILD.bazel b/cmd/protoc-gen-go/testdata/imports/BUILD.bazel
   369  --- a/cmd/protoc-gen-go/testdata/imports/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   370  +++ b/cmd/protoc-gen-go/testdata/imports/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   371  @@ -0,0 +1,26 @@
   372  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   373  +
   374  +go_library(
   375  +    name = "imports",
   376  +    srcs = [
   377  +        "test_import_a1m1.pb.go",
   378  +        "test_import_a1m2.pb.go",
   379  +        "test_import_all.pb.go",
   380  +    ],
   381  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports",
   382  +    visibility = ["//visibility:public"],
   383  +    deps = [
   384  +        "//cmd/protoc-gen-go/testdata/imports/fmt",
   385  +        "//cmd/protoc-gen-go/testdata/imports/test_a_1",
   386  +        "//cmd/protoc-gen-go/testdata/imports/test_a_2",
   387  +        "//cmd/protoc-gen-go/testdata/imports/test_b_1",
   388  +        "//reflect/protoreflect",
   389  +        "//runtime/protoimpl",
   390  +    ],
   391  +)
   392  +
   393  +alias(
   394  +    name = "go_default_library",
   395  +    actual = ":imports",
   396  +    visibility = ["//visibility:public"],
   397  +)
   398  diff -urN a/cmd/protoc-gen-go/testdata/imports/fmt/BUILD.bazel b/cmd/protoc-gen-go/testdata/imports/fmt/BUILD.bazel
   399  --- a/cmd/protoc-gen-go/testdata/imports/fmt/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   400  +++ b/cmd/protoc-gen-go/testdata/imports/fmt/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   401  @@ -0,0 +1,18 @@
   402  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   403  +
   404  +go_library(
   405  +    name = "fmt",
   406  +    srcs = ["m.pb.go"],
   407  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/fmt",
   408  +    visibility = ["//visibility:public"],
   409  +    deps = [
   410  +        "//reflect/protoreflect",
   411  +        "//runtime/protoimpl",
   412  +    ],
   413  +)
   414  +
   415  +alias(
   416  +    name = "go_default_library",
   417  +    actual = ":fmt",
   418  +    visibility = ["//visibility:public"],
   419  +)
   420  diff -urN a/cmd/protoc-gen-go/testdata/imports/test_a_1/BUILD.bazel b/cmd/protoc-gen-go/testdata/imports/test_a_1/BUILD.bazel
   421  --- a/cmd/protoc-gen-go/testdata/imports/test_a_1/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   422  +++ b/cmd/protoc-gen-go/testdata/imports/test_a_1/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   423  @@ -0,0 +1,21 @@
   424  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   425  +
   426  +go_library(
   427  +    name = "test_a_1",
   428  +    srcs = [
   429  +        "m1.pb.go",
   430  +        "m2.pb.go",
   431  +    ],
   432  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_1",
   433  +    visibility = ["//visibility:public"],
   434  +    deps = [
   435  +        "//reflect/protoreflect",
   436  +        "//runtime/protoimpl",
   437  +    ],
   438  +)
   439  +
   440  +alias(
   441  +    name = "go_default_library",
   442  +    actual = ":test_a_1",
   443  +    visibility = ["//visibility:public"],
   444  +)
   445  diff -urN a/cmd/protoc-gen-go/testdata/imports/test_a_2/BUILD.bazel b/cmd/protoc-gen-go/testdata/imports/test_a_2/BUILD.bazel
   446  --- a/cmd/protoc-gen-go/testdata/imports/test_a_2/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   447  +++ b/cmd/protoc-gen-go/testdata/imports/test_a_2/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   448  @@ -0,0 +1,21 @@
   449  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   450  +
   451  +go_library(
   452  +    name = "test_a_2",
   453  +    srcs = [
   454  +        "m3.pb.go",
   455  +        "m4.pb.go",
   456  +    ],
   457  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_a_2",
   458  +    visibility = ["//visibility:public"],
   459  +    deps = [
   460  +        "//reflect/protoreflect",
   461  +        "//runtime/protoimpl",
   462  +    ],
   463  +)
   464  +
   465  +alias(
   466  +    name = "go_default_library",
   467  +    actual = ":test_a_2",
   468  +    visibility = ["//visibility:public"],
   469  +)
   470  diff -urN a/cmd/protoc-gen-go/testdata/imports/test_b_1/BUILD.bazel b/cmd/protoc-gen-go/testdata/imports/test_b_1/BUILD.bazel
   471  --- a/cmd/protoc-gen-go/testdata/imports/test_b_1/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   472  +++ b/cmd/protoc-gen-go/testdata/imports/test_b_1/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   473  @@ -0,0 +1,21 @@
   474  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   475  +
   476  +go_library(
   477  +    name = "test_b_1",
   478  +    srcs = [
   479  +        "m1.pb.go",
   480  +        "m2.pb.go",
   481  +    ],
   482  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/imports/test_b_1",
   483  +    visibility = ["//visibility:public"],
   484  +    deps = [
   485  +        "//reflect/protoreflect",
   486  +        "//runtime/protoimpl",
   487  +    ],
   488  +)
   489  +
   490  +alias(
   491  +    name = "go_default_library",
   492  +    actual = ":test_b_1",
   493  +    visibility = ["//visibility:public"],
   494  +)
   495  diff -urN a/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/BUILD.bazel b/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/BUILD.bazel
   496  --- a/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   497  +++ b/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   498  @@ -0,0 +1,18 @@
   499  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   500  +
   501  +go_library(
   502  +    name = "issue780_oneof_conflict",
   503  +    srcs = ["test.pb.go"],
   504  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/issue780_oneof_conflict",
   505  +    visibility = ["//visibility:public"],
   506  +    deps = [
   507  +        "//reflect/protoreflect",
   508  +        "//runtime/protoimpl",
   509  +    ],
   510  +)
   511  +
   512  +alias(
   513  +    name = "go_default_library",
   514  +    actual = ":issue780_oneof_conflict",
   515  +    visibility = ["//visibility:public"],
   516  +)
   517  diff -urN a/cmd/protoc-gen-go/testdata/nopackage/BUILD.bazel b/cmd/protoc-gen-go/testdata/nopackage/BUILD.bazel
   518  --- a/cmd/protoc-gen-go/testdata/nopackage/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   519  +++ b/cmd/protoc-gen-go/testdata/nopackage/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   520  @@ -0,0 +1,18 @@
   521  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   522  +
   523  +go_library(
   524  +    name = "nopackage",
   525  +    srcs = ["nopackage.pb.go"],
   526  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/nopackage",
   527  +    visibility = ["//visibility:public"],
   528  +    deps = [
   529  +        "//reflect/protoreflect",
   530  +        "//runtime/protoimpl",
   531  +    ],
   532  +)
   533  +
   534  +alias(
   535  +    name = "go_default_library",
   536  +    actual = ":nopackage",
   537  +    visibility = ["//visibility:public"],
   538  +)
   539  diff -urN a/cmd/protoc-gen-go/testdata/proto2/BUILD.bazel b/cmd/protoc-gen-go/testdata/proto2/BUILD.bazel
   540  --- a/cmd/protoc-gen-go/testdata/proto2/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   541  +++ b/cmd/protoc-gen-go/testdata/proto2/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   542  @@ -0,0 +1,23 @@
   543  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   544  +
   545  +go_library(
   546  +    name = "proto2",
   547  +    srcs = [
   548  +        "enum.pb.go",
   549  +        "fields.pb.go",
   550  +        "nested_messages.pb.go",
   551  +        "proto2.pb.go",
   552  +    ],
   553  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto2",
   554  +    visibility = ["//visibility:public"],
   555  +    deps = [
   556  +        "//reflect/protoreflect",
   557  +        "//runtime/protoimpl",
   558  +    ],
   559  +)
   560  +
   561  +alias(
   562  +    name = "go_default_library",
   563  +    actual = ":proto2",
   564  +    visibility = ["//visibility:public"],
   565  +)
   566  diff -urN a/cmd/protoc-gen-go/testdata/proto3/BUILD.bazel b/cmd/protoc-gen-go/testdata/proto3/BUILD.bazel
   567  --- a/cmd/protoc-gen-go/testdata/proto3/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   568  +++ b/cmd/protoc-gen-go/testdata/proto3/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   569  @@ -0,0 +1,21 @@
   570  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   571  +
   572  +go_library(
   573  +    name = "proto3",
   574  +    srcs = [
   575  +        "enum.pb.go",
   576  +        "fields.pb.go",
   577  +    ],
   578  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/proto3",
   579  +    visibility = ["//visibility:public"],
   580  +    deps = [
   581  +        "//reflect/protoreflect",
   582  +        "//runtime/protoimpl",
   583  +    ],
   584  +)
   585  +
   586  +alias(
   587  +    name = "go_default_library",
   588  +    actual = ":proto3",
   589  +    visibility = ["//visibility:public"],
   590  +)
   591  diff -urN a/cmd/protoc-gen-go/testdata/protoeditions/BUILD.bazel b/cmd/protoc-gen-go/testdata/protoeditions/BUILD.bazel
   592  --- a/cmd/protoc-gen-go/testdata/protoeditions/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   593  +++ b/cmd/protoc-gen-go/testdata/protoeditions/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   594  @@ -0,0 +1,23 @@
   595  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   596  +
   597  +go_library(
   598  +    name = "protoeditions",
   599  +    srcs = [
   600  +        "enum.pb.go",
   601  +        "fields.pb.go",
   602  +        "nested_messages.pb.go",
   603  +    ],
   604  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/protoeditions",
   605  +    visibility = ["//visibility:public"],
   606  +    deps = [
   607  +        "//reflect/protoreflect",
   608  +        "//runtime/protoimpl",
   609  +        "//types/gofeaturespb",
   610  +    ],
   611  +)
   612  +
   613  +alias(
   614  +    name = "go_default_library",
   615  +    actual = ":protoeditions",
   616  +    visibility = ["//visibility:public"],
   617  +)
   618  diff -urN a/cmd/protoc-gen-go/testdata/retention/BUILD.bazel b/cmd/protoc-gen-go/testdata/retention/BUILD.bazel
   619  --- a/cmd/protoc-gen-go/testdata/retention/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   620  +++ b/cmd/protoc-gen-go/testdata/retention/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   621  @@ -0,0 +1,22 @@
   622  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
   623  +
   624  +go_library(
   625  +    name = "retention",
   626  +    srcs = [
   627  +        "options_message.pb.go",
   628  +        "retention.pb.go",
   629  +    ],
   630  +    importpath = "google.golang.org/protobuf/cmd/protoc-gen-go/testdata/retention",
   631  +    visibility = ["//visibility:public"],
   632  +    deps = [
   633  +        "//reflect/protoreflect",
   634  +        "//runtime/protoimpl",
   635  +        "//types/descriptorpb",
   636  +    ],
   637  +)
   638  +
   639  +alias(
   640  +    name = "go_default_library",
   641  +    actual = ":retention",
   642  +    visibility = ["//visibility:public"],
   643  +)
   644  diff -urN a/compiler/protogen/BUILD.bazel b/compiler/protogen/BUILD.bazel
   645  --- a/compiler/protogen/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   646  +++ b/compiler/protogen/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   647  @@ -0,0 +1,41 @@
   648  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
   649  +
   650  +go_library(
   651  +    name = "protogen",
   652  +    srcs = ["protogen.go"],
   653  +    importpath = "google.golang.org/protobuf/compiler/protogen",
   654  +    visibility = ["//visibility:public"],
   655  +    deps = [
   656  +        "//encoding/prototext",
   657  +        "//internal/genid",
   658  +        "//internal/strs",
   659  +        "//proto",
   660  +        "//reflect/protodesc",
   661  +        "//reflect/protoreflect",
   662  +        "//reflect/protoregistry",
   663  +        "//types/descriptorpb",
   664  +        "//types/dynamicpb",
   665  +        "//types/pluginpb",
   666  +    ],
   667  +)
   668  +
   669  +alias(
   670  +    name = "go_default_library",
   671  +    actual = ":protogen",
   672  +    visibility = ["//visibility:public"],
   673  +)
   674  +
   675  +go_test(
   676  +    name = "protogen_test",
   677  +    srcs = ["protogen_test.go"],
   678  +    embed = [":protogen"],
   679  +    deps = [
   680  +        "//internal/genid",
   681  +        "//proto",
   682  +        "//reflect/protoreflect",
   683  +        "//testing/protocmp",
   684  +        "//types/descriptorpb",
   685  +        "//types/pluginpb",
   686  +        "@com_github_google_go_cmp//cmp:go_default_library",
   687  +    ],
   688  +)
   689  diff -urN a/encoding/BUILD.bazel b/encoding/BUILD.bazel
   690  --- a/encoding/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   691  +++ b/encoding/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   692  @@ -0,0 +1,12 @@
   693  +load("@io_bazel_rules_go//go:def.bzl", "go_test")
   694  +
   695  +go_test(
   696  +    name = "encoding_test",
   697  +    srcs = ["bench_test.go"],
   698  +    deps = [
   699  +        "//encoding/protojson",
   700  +        "//encoding/prototext",
   701  +        "//internal/testprotos/test",
   702  +        "//reflect/protoreflect",
   703  +    ],
   704  +)
   705  diff -urN a/encoding/protodelim/BUILD.bazel b/encoding/protodelim/BUILD.bazel
   706  --- a/encoding/protodelim/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   707  +++ b/encoding/protodelim/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   708  @@ -0,0 +1,31 @@
   709  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
   710  +
   711  +go_library(
   712  +    name = "protodelim",
   713  +    srcs = ["protodelim.go"],
   714  +    importpath = "google.golang.org/protobuf/encoding/protodelim",
   715  +    visibility = ["//visibility:public"],
   716  +    deps = [
   717  +        "//encoding/protowire",
   718  +        "//internal/errors",
   719  +        "//proto",
   720  +    ],
   721  +)
   722  +
   723  +alias(
   724  +    name = "go_default_library",
   725  +    actual = ":protodelim",
   726  +    visibility = ["//visibility:public"],
   727  +)
   728  +
   729  +go_test(
   730  +    name = "protodelim_test",
   731  +    srcs = ["protodelim_test.go"],
   732  +    deps = [
   733  +        ":protodelim",
   734  +        "//encoding/protowire",
   735  +        "//internal/testprotos/test3",
   736  +        "//testing/protocmp",
   737  +        "@com_github_google_go_cmp//cmp:go_default_library",
   738  +    ],
   739  +)
   740  diff -urN a/encoding/protojson/BUILD.bazel b/encoding/protojson/BUILD.bazel
   741  --- a/encoding/protojson/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   742  +++ b/encoding/protojson/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   743  @@ -0,0 +1,70 @@
   744  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
   745  +
   746  +go_library(
   747  +    name = "protojson",
   748  +    srcs = [
   749  +        "decode.go",
   750  +        "doc.go",
   751  +        "encode.go",
   752  +        "well_known_types.go",
   753  +    ],
   754  +    importpath = "google.golang.org/protobuf/encoding/protojson",
   755  +    visibility = ["//visibility:public"],
   756  +    deps = [
   757  +        "//encoding/protowire",
   758  +        "//internal/encoding/json",
   759  +        "//internal/encoding/messageset",
   760  +        "//internal/errors",
   761  +        "//internal/filedesc",
   762  +        "//internal/flags",
   763  +        "//internal/genid",
   764  +        "//internal/order",
   765  +        "//internal/pragma",
   766  +        "//internal/set",
   767  +        "//internal/strs",
   768  +        "//proto",
   769  +        "//reflect/protoreflect",
   770  +        "//reflect/protoregistry",
   771  +    ],
   772  +)
   773  +
   774  +alias(
   775  +    name = "go_default_library",
   776  +    actual = ":protojson",
   777  +    visibility = ["//visibility:public"],
   778  +)
   779  +
   780  +go_test(
   781  +    name = "protojson_test",
   782  +    srcs = [
   783  +        "bench_test.go",
   784  +        "decode_test.go",
   785  +        "encode_test.go",
   786  +        "fuzz_test.go",
   787  +    ],
   788  +    deps = [
   789  +        ":protojson",
   790  +        "//internal/detrand",
   791  +        "//internal/errors",
   792  +        "//internal/flags",
   793  +        "//internal/testprotos/editionsfuzztest",
   794  +        "//internal/testprotos/test",
   795  +        "//internal/testprotos/test/weak1",
   796  +        "//internal/testprotos/textpb2",
   797  +        "//internal/testprotos/textpb3",
   798  +        "//internal/testprotos/textpbeditions",
   799  +        "//proto",
   800  +        "//reflect/protoreflect",
   801  +        "//reflect/protoregistry",
   802  +        "//testing/protocmp",
   803  +        "//testing/protopack",
   804  +        "//types/known/anypb",
   805  +        "//types/known/durationpb",
   806  +        "//types/known/emptypb",
   807  +        "//types/known/fieldmaskpb",
   808  +        "//types/known/structpb",
   809  +        "//types/known/timestamppb",
   810  +        "//types/known/wrapperspb",
   811  +        "@com_github_google_go_cmp//cmp:go_default_library",
   812  +    ],
   813  +)
   814  diff -urN a/encoding/prototext/BUILD.bazel b/encoding/prototext/BUILD.bazel
   815  --- a/encoding/prototext/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   816  +++ b/encoding/prototext/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   817  @@ -0,0 +1,66 @@
   818  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
   819  +
   820  +go_library(
   821  +    name = "prototext",
   822  +    srcs = [
   823  +        "decode.go",
   824  +        "doc.go",
   825  +        "encode.go",
   826  +    ],
   827  +    importpath = "google.golang.org/protobuf/encoding/prototext",
   828  +    visibility = ["//visibility:public"],
   829  +    deps = [
   830  +        "//encoding/protowire",
   831  +        "//internal/encoding/messageset",
   832  +        "//internal/encoding/text",
   833  +        "//internal/errors",
   834  +        "//internal/flags",
   835  +        "//internal/genid",
   836  +        "//internal/order",
   837  +        "//internal/pragma",
   838  +        "//internal/set",
   839  +        "//internal/strs",
   840  +        "//proto",
   841  +        "//reflect/protoreflect",
   842  +        "//reflect/protoregistry",
   843  +    ],
   844  +)
   845  +
   846  +alias(
   847  +    name = "go_default_library",
   848  +    actual = ":prototext",
   849  +    visibility = ["//visibility:public"],
   850  +)
   851  +
   852  +go_test(
   853  +    name = "prototext_test",
   854  +    srcs = [
   855  +        "decode_test.go",
   856  +        "encode_test.go",
   857  +        "fuzz_test.go",
   858  +        "other_test.go",
   859  +    ],
   860  +    deps = [
   861  +        ":prototext",
   862  +        "//internal/detrand",
   863  +        "//internal/flags",
   864  +        "//internal/testprotos/editionsfuzztest",
   865  +        "//internal/testprotos/test",
   866  +        "//internal/testprotos/test/weak1",
   867  +        "//internal/testprotos/textpb2",
   868  +        "//internal/testprotos/textpb3",
   869  +        "//internal/testprotos/textpbeditions",
   870  +        "//proto",
   871  +        "//reflect/protoreflect",
   872  +        "//reflect/protoregistry",
   873  +        "//testing/protocmp",
   874  +        "//testing/protopack",
   875  +        "//types/known/anypb",
   876  +        "//types/known/durationpb",
   877  +        "//types/known/emptypb",
   878  +        "//types/known/structpb",
   879  +        "//types/known/timestamppb",
   880  +        "//types/known/wrapperspb",
   881  +        "@com_github_google_go_cmp//cmp:go_default_library",
   882  +    ],
   883  +)
   884  diff -urN a/encoding/protowire/BUILD.bazel b/encoding/protowire/BUILD.bazel
   885  --- a/encoding/protowire/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   886  +++ b/encoding/protowire/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   887  @@ -0,0 +1,21 @@
   888  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
   889  +
   890  +go_library(
   891  +    name = "protowire",
   892  +    srcs = ["wire.go"],
   893  +    importpath = "google.golang.org/protobuf/encoding/protowire",
   894  +    visibility = ["//visibility:public"],
   895  +    deps = ["//internal/errors"],
   896  +)
   897  +
   898  +alias(
   899  +    name = "go_default_library",
   900  +    actual = ":protowire",
   901  +    visibility = ["//visibility:public"],
   902  +)
   903  +
   904  +go_test(
   905  +    name = "protowire_test",
   906  +    srcs = ["wire_test.go"],
   907  +    embed = [":protowire"],
   908  +)
   909  diff -urN a/internal/benchmarks/BUILD.bazel b/internal/benchmarks/BUILD.bazel
   910  --- a/internal/benchmarks/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   911  +++ b/internal/benchmarks/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   912  @@ -0,0 +1,19 @@
   913  +load("@io_bazel_rules_go//go:def.bzl", "go_test")
   914  +
   915  +go_test(
   916  +    name = "benchmarks_test",
   917  +    srcs = ["bench_test.go"],
   918  +    deps = [
   919  +        "//encoding/protojson",
   920  +        "//encoding/prototext",
   921  +        "//internal/testprotos/benchmarks",
   922  +        "//internal/testprotos/benchmarks/datasets/google_message1/proto2",
   923  +        "//internal/testprotos/benchmarks/datasets/google_message1/proto3",
   924  +        "//internal/testprotos/benchmarks/datasets/google_message2",
   925  +        "//internal/testprotos/benchmarks/datasets/google_message3",
   926  +        "//internal/testprotos/benchmarks/datasets/google_message4",
   927  +        "//proto",
   928  +        "//reflect/protoreflect",
   929  +        "//reflect/protoregistry",
   930  +    ],
   931  +)
   932  diff -urN a/internal/benchmarks/micro/BUILD.bazel b/internal/benchmarks/micro/BUILD.bazel
   933  --- a/internal/benchmarks/micro/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   934  +++ b/internal/benchmarks/micro/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   935  @@ -0,0 +1,14 @@
   936  +load("@io_bazel_rules_go//go:def.bzl", "go_test")
   937  +
   938  +go_test(
   939  +    name = "micro_test",
   940  +    srcs = ["micro_test.go"],
   941  +    deps = [
   942  +        "//internal/impl",
   943  +        "//internal/testprotos/benchmarks/micro",
   944  +        "//internal/testprotos/test",
   945  +        "//proto",
   946  +        "//runtime/protoiface",
   947  +        "//types/known/emptypb",
   948  +    ],
   949  +)
   950  diff -urN a/internal/cmd/generate-corpus/BUILD.bazel b/internal/cmd/generate-corpus/BUILD.bazel
   951  --- a/internal/cmd/generate-corpus/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   952  +++ b/internal/cmd/generate-corpus/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   953  @@ -0,0 +1,21 @@
   954  +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
   955  +
   956  +go_library(
   957  +    name = "generate-corpus_lib",
   958  +    srcs = ["main.go"],
   959  +    importpath = "google.golang.org/protobuf/internal/cmd/generate-corpus",
   960  +    visibility = ["//visibility:private"],
   961  +    deps = [
   962  +        "//encoding/protojson",
   963  +        "//encoding/prototext",
   964  +        "//internal/testprotos/fuzz",
   965  +        "//internal/testprotos/test",
   966  +        "//proto",
   967  +    ],
   968  +)
   969  +
   970  +go_binary(
   971  +    name = "generate-corpus",
   972  +    embed = [":generate-corpus_lib"],
   973  +    visibility = ["//:__subpackages__"],
   974  +)
   975  diff -urN a/internal/cmd/generate-protos/BUILD.bazel b/internal/cmd/generate-protos/BUILD.bazel
   976  --- a/internal/cmd/generate-protos/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
   977  +++ b/internal/cmd/generate-protos/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
   978  @@ -0,0 +1,20 @@
   979  +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
   980  +
   981  +go_library(
   982  +    name = "generate-protos_lib",
   983  +    srcs = ["main.go"],
   984  +    importpath = "google.golang.org/protobuf/internal/cmd/generate-protos",
   985  +    visibility = ["//visibility:private"],
   986  +    deps = [
   987  +        "//cmd/protoc-gen-go/internal_gengo",
   988  +        "//compiler/protogen",
   989  +        "//internal/detrand",
   990  +        "//reflect/protodesc",
   991  +    ],
   992  +)
   993  +
   994  +go_binary(
   995  +    name = "generate-protos",
   996  +    embed = [":generate-protos_lib"],
   997  +    visibility = ["//:__subpackages__"],
   998  +)
   999  diff -urN a/internal/cmd/generate-types/BUILD.bazel b/internal/cmd/generate-types/BUILD.bazel
  1000  --- a/internal/cmd/generate-types/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1001  +++ b/internal/cmd/generate-types/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1002  @@ -0,0 +1,18 @@
  1003  +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
  1004  +
  1005  +go_library(
  1006  +    name = "generate-types_lib",
  1007  +    srcs = [
  1008  +        "impl.go",
  1009  +        "main.go",
  1010  +        "proto.go",
  1011  +    ],
  1012  +    importpath = "google.golang.org/protobuf/internal/cmd/generate-types",
  1013  +    visibility = ["//visibility:private"],
  1014  +)
  1015  +
  1016  +go_binary(
  1017  +    name = "generate-types",
  1018  +    embed = [":generate-types_lib"],
  1019  +    visibility = ["//:__subpackages__"],
  1020  +)
  1021  diff -urN a/internal/cmd/pbdump/BUILD.bazel b/internal/cmd/pbdump/BUILD.bazel
  1022  --- a/internal/cmd/pbdump/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1023  +++ b/internal/cmd/pbdump/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1024  @@ -0,0 +1,35 @@
  1025  +load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
  1026  +
  1027  +go_library(
  1028  +    name = "pbdump_lib",
  1029  +    srcs = ["pbdump.go"],
  1030  +    importpath = "google.golang.org/protobuf/internal/cmd/pbdump",
  1031  +    visibility = ["//visibility:private"],
  1032  +    deps = [
  1033  +        "//encoding/protowire",
  1034  +        "//internal/errors",
  1035  +        "//proto",
  1036  +        "//reflect/protodesc",
  1037  +        "//reflect/protoreflect",
  1038  +        "//testing/protopack",
  1039  +        "//types/descriptorpb",
  1040  +    ],
  1041  +)
  1042  +
  1043  +go_binary(
  1044  +    name = "pbdump",
  1045  +    embed = [":pbdump_lib"],
  1046  +    visibility = ["//:__subpackages__"],
  1047  +)
  1048  +
  1049  +go_test(
  1050  +    name = "pbdump_test",
  1051  +    srcs = ["pbdump_test.go"],
  1052  +    embed = [":pbdump_lib"],
  1053  +    deps = [
  1054  +        "//encoding/prototext",
  1055  +        "//proto",
  1056  +        "//reflect/protoreflect",
  1057  +        "//types/descriptorpb",
  1058  +    ],
  1059  +)
  1060  diff -urN a/internal/conformance/BUILD.bazel b/internal/conformance/BUILD.bazel
  1061  --- a/internal/conformance/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1062  +++ b/internal/conformance/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1063  @@ -0,0 +1,13 @@
  1064  +load("@io_bazel_rules_go//go:def.bzl", "go_test")
  1065  +
  1066  +go_test(
  1067  +    name = "conformance_test",
  1068  +    srcs = ["conformance_test.go"],
  1069  +    deps = [
  1070  +        "//encoding/protojson",
  1071  +        "//encoding/prototext",
  1072  +        "//internal/testprotos/conformance",
  1073  +        "//internal/testprotos/conformance/editions",
  1074  +        "//proto",
  1075  +    ],
  1076  +)
  1077  diff -urN a/internal/descfmt/BUILD.bazel b/internal/descfmt/BUILD.bazel
  1078  --- a/internal/descfmt/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1079  +++ b/internal/descfmt/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1080  @@ -0,0 +1,29 @@
  1081  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1082  +
  1083  +go_library(
  1084  +    name = "descfmt",
  1085  +    srcs = ["stringer.go"],
  1086  +    importpath = "google.golang.org/protobuf/internal/descfmt",
  1087  +    visibility = ["//:__subpackages__"],
  1088  +    deps = [
  1089  +        "//internal/detrand",
  1090  +        "//internal/pragma",
  1091  +        "//reflect/protoreflect",
  1092  +    ],
  1093  +)
  1094  +
  1095  +alias(
  1096  +    name = "go_default_library",
  1097  +    actual = ":descfmt",
  1098  +    visibility = ["//:__subpackages__"],
  1099  +)
  1100  +
  1101  +go_test(
  1102  +    name = "descfmt_test",
  1103  +    srcs = ["desc_test.go"],
  1104  +    deps = [
  1105  +        ":descfmt",
  1106  +        "//internal/testprotos/test",
  1107  +        "//reflect/protoreflect",
  1108  +    ],
  1109  +)
  1110  diff -urN a/internal/descopts/BUILD.bazel b/internal/descopts/BUILD.bazel
  1111  --- a/internal/descopts/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1112  +++ b/internal/descopts/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1113  @@ -0,0 +1,15 @@
  1114  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  1115  +
  1116  +go_library(
  1117  +    name = "descopts",
  1118  +    srcs = ["options.go"],
  1119  +    importpath = "google.golang.org/protobuf/internal/descopts",
  1120  +    visibility = ["//:__subpackages__"],
  1121  +    deps = ["//reflect/protoreflect"],
  1122  +)
  1123  +
  1124  +alias(
  1125  +    name = "go_default_library",
  1126  +    actual = ":descopts",
  1127  +    visibility = ["//:__subpackages__"],
  1128  +)
  1129  diff -urN a/internal/detrand/BUILD.bazel b/internal/detrand/BUILD.bazel
  1130  --- a/internal/detrand/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1131  +++ b/internal/detrand/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1132  @@ -0,0 +1,20 @@
  1133  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1134  +
  1135  +go_library(
  1136  +    name = "detrand",
  1137  +    srcs = ["rand.go"],
  1138  +    importpath = "google.golang.org/protobuf/internal/detrand",
  1139  +    visibility = ["//:__subpackages__"],
  1140  +)
  1141  +
  1142  +alias(
  1143  +    name = "go_default_library",
  1144  +    actual = ":detrand",
  1145  +    visibility = ["//:__subpackages__"],
  1146  +)
  1147  +
  1148  +go_test(
  1149  +    name = "detrand_test",
  1150  +    srcs = ["rand_test.go"],
  1151  +    embed = [":detrand"],
  1152  +)
  1153  diff -urN a/internal/editiondefaults/BUILD.bazel b/internal/editiondefaults/BUILD.bazel
  1154  --- a/internal/editiondefaults/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1155  +++ b/internal/editiondefaults/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1156  @@ -0,0 +1,15 @@
  1157  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  1158  +
  1159  +go_library(
  1160  +    name = "editiondefaults",
  1161  +    srcs = ["defaults.go"],
  1162  +    embedsrcs = ["editions_defaults.binpb"],
  1163  +    importpath = "google.golang.org/protobuf/internal/editiondefaults",
  1164  +    visibility = ["//:__subpackages__"],
  1165  +)
  1166  +
  1167  +alias(
  1168  +    name = "go_default_library",
  1169  +    actual = ":editiondefaults",
  1170  +    visibility = ["//:__subpackages__"],
  1171  +)
  1172  diff -urN a/internal/encoding/defval/BUILD.bazel b/internal/encoding/defval/BUILD.bazel
  1173  --- a/internal/encoding/defval/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1174  +++ b/internal/encoding/defval/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1175  @@ -0,0 +1,29 @@
  1176  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1177  +
  1178  +go_library(
  1179  +    name = "defval",
  1180  +    srcs = ["default.go"],
  1181  +    importpath = "google.golang.org/protobuf/internal/encoding/defval",
  1182  +    visibility = ["//:__subpackages__"],
  1183  +    deps = [
  1184  +        "//internal/encoding/text",
  1185  +        "//internal/errors",
  1186  +        "//reflect/protoreflect",
  1187  +    ],
  1188  +)
  1189  +
  1190  +alias(
  1191  +    name = "go_default_library",
  1192  +    actual = ":defval",
  1193  +    visibility = ["//:__subpackages__"],
  1194  +)
  1195  +
  1196  +go_test(
  1197  +    name = "defval_test",
  1198  +    srcs = ["default_test.go"],
  1199  +    deps = [
  1200  +        ":defval",
  1201  +        "//internal/filedesc",
  1202  +        "//reflect/protoreflect",
  1203  +    ],
  1204  +)
  1205  diff -urN a/internal/encoding/json/BUILD.bazel b/internal/encoding/json/BUILD.bazel
  1206  --- a/internal/encoding/json/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1207  +++ b/internal/encoding/json/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1208  @@ -0,0 +1,40 @@
  1209  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1210  +
  1211  +go_library(
  1212  +    name = "json",
  1213  +    srcs = [
  1214  +        "decode.go",
  1215  +        "decode_number.go",
  1216  +        "decode_string.go",
  1217  +        "decode_token.go",
  1218  +        "encode.go",
  1219  +    ],
  1220  +    importpath = "google.golang.org/protobuf/internal/encoding/json",
  1221  +    visibility = ["//:__subpackages__"],
  1222  +    deps = [
  1223  +        "//internal/detrand",
  1224  +        "//internal/errors",
  1225  +        "//internal/strs",
  1226  +    ],
  1227  +)
  1228  +
  1229  +alias(
  1230  +    name = "go_default_library",
  1231  +    actual = ":json",
  1232  +    visibility = ["//:__subpackages__"],
  1233  +)
  1234  +
  1235  +go_test(
  1236  +    name = "json_test",
  1237  +    srcs = [
  1238  +        "bench_test.go",
  1239  +        "decode_test.go",
  1240  +        "encode_test.go",
  1241  +    ],
  1242  +    deps = [
  1243  +        ":json",
  1244  +        "//internal/detrand",
  1245  +        "@com_github_google_go_cmp//cmp:go_default_library",
  1246  +        "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
  1247  +    ],
  1248  +)
  1249  diff -urN a/internal/encoding/messageset/BUILD.bazel b/internal/encoding/messageset/BUILD.bazel
  1250  --- a/internal/encoding/messageset/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1251  +++ b/internal/encoding/messageset/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1252  @@ -0,0 +1,19 @@
  1253  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  1254  +
  1255  +go_library(
  1256  +    name = "messageset",
  1257  +    srcs = ["messageset.go"],
  1258  +    importpath = "google.golang.org/protobuf/internal/encoding/messageset",
  1259  +    visibility = ["//:__subpackages__"],
  1260  +    deps = [
  1261  +        "//encoding/protowire",
  1262  +        "//internal/errors",
  1263  +        "//reflect/protoreflect",
  1264  +    ],
  1265  +)
  1266  +
  1267  +alias(
  1268  +    name = "go_default_library",
  1269  +    actual = ":messageset",
  1270  +    visibility = ["//:__subpackages__"],
  1271  +)
  1272  diff -urN a/internal/encoding/tag/BUILD.bazel b/internal/encoding/tag/BUILD.bazel
  1273  --- a/internal/encoding/tag/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1274  +++ b/internal/encoding/tag/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1275  @@ -0,0 +1,32 @@
  1276  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1277  +
  1278  +go_library(
  1279  +    name = "tag",
  1280  +    srcs = ["tag.go"],
  1281  +    importpath = "google.golang.org/protobuf/internal/encoding/tag",
  1282  +    visibility = ["//:__subpackages__"],
  1283  +    deps = [
  1284  +        "//internal/encoding/defval",
  1285  +        "//internal/filedesc",
  1286  +        "//internal/strs",
  1287  +        "//reflect/protoreflect",
  1288  +    ],
  1289  +)
  1290  +
  1291  +alias(
  1292  +    name = "go_default_library",
  1293  +    actual = ":tag",
  1294  +    visibility = ["//:__subpackages__"],
  1295  +)
  1296  +
  1297  +go_test(
  1298  +    name = "tag_test",
  1299  +    srcs = ["tag_test.go"],
  1300  +    deps = [
  1301  +        ":tag",
  1302  +        "//internal/filedesc",
  1303  +        "//proto",
  1304  +        "//reflect/protodesc",
  1305  +        "//reflect/protoreflect",
  1306  +    ],
  1307  +)
  1308  diff -urN a/internal/encoding/text/BUILD.bazel b/internal/encoding/text/BUILD.bazel
  1309  --- a/internal/encoding/text/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1310  +++ b/internal/encoding/text/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1311  @@ -0,0 +1,41 @@
  1312  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1313  +
  1314  +go_library(
  1315  +    name = "text",
  1316  +    srcs = [
  1317  +        "decode.go",
  1318  +        "decode_number.go",
  1319  +        "decode_string.go",
  1320  +        "decode_token.go",
  1321  +        "doc.go",
  1322  +        "encode.go",
  1323  +    ],
  1324  +    importpath = "google.golang.org/protobuf/internal/encoding/text",
  1325  +    visibility = ["//:__subpackages__"],
  1326  +    deps = [
  1327  +        "//internal/detrand",
  1328  +        "//internal/errors",
  1329  +        "//internal/flags",
  1330  +        "//internal/strs",
  1331  +    ],
  1332  +)
  1333  +
  1334  +alias(
  1335  +    name = "go_default_library",
  1336  +    actual = ":text",
  1337  +    visibility = ["//:__subpackages__"],
  1338  +)
  1339  +
  1340  +go_test(
  1341  +    name = "text_test",
  1342  +    srcs = [
  1343  +        "decode_test.go",
  1344  +        "encode_test.go",
  1345  +    ],
  1346  +    deps = [
  1347  +        ":text",
  1348  +        "//internal/detrand",
  1349  +        "//internal/flags",
  1350  +        "@com_github_google_go_cmp//cmp:go_default_library",
  1351  +    ],
  1352  +)
  1353  diff -urN a/internal/errors/BUILD.bazel b/internal/errors/BUILD.bazel
  1354  --- a/internal/errors/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1355  +++ b/internal/errors/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1356  @@ -0,0 +1,25 @@
  1357  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1358  +
  1359  +go_library(
  1360  +    name = "errors",
  1361  +    srcs = [
  1362  +        "errors.go",
  1363  +        "is_go112.go",
  1364  +        "is_go113.go",
  1365  +    ],
  1366  +    importpath = "google.golang.org/protobuf/internal/errors",
  1367  +    visibility = ["//:__subpackages__"],
  1368  +    deps = ["//internal/detrand"],
  1369  +)
  1370  +
  1371  +alias(
  1372  +    name = "go_default_library",
  1373  +    actual = ":errors",
  1374  +    visibility = ["//:__subpackages__"],
  1375  +)
  1376  +
  1377  +go_test(
  1378  +    name = "errors_test",
  1379  +    srcs = ["errors_test.go"],
  1380  +    embed = [":errors"],
  1381  +)
  1382  diff -urN a/internal/filedesc/BUILD.bazel b/internal/filedesc/BUILD.bazel
  1383  --- a/internal/filedesc/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1384  +++ b/internal/filedesc/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1385  @@ -0,0 +1,57 @@
  1386  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1387  +
  1388  +go_library(
  1389  +    name = "filedesc",
  1390  +    srcs = [
  1391  +        "build.go",
  1392  +        "desc.go",
  1393  +        "desc_init.go",
  1394  +        "desc_lazy.go",
  1395  +        "desc_list.go",
  1396  +        "desc_list_gen.go",
  1397  +        "editions.go",
  1398  +        "placeholder.go",
  1399  +    ],
  1400  +    importpath = "google.golang.org/protobuf/internal/filedesc",
  1401  +    visibility = ["//:__subpackages__"],
  1402  +    deps = [
  1403  +        "//encoding/protowire",
  1404  +        "//internal/descfmt",
  1405  +        "//internal/descopts",
  1406  +        "//internal/editiondefaults",
  1407  +        "//internal/encoding/defval",
  1408  +        "//internal/encoding/messageset",
  1409  +        "//internal/errors",
  1410  +        "//internal/genid",
  1411  +        "//internal/pragma",
  1412  +        "//internal/strs",
  1413  +        "//proto",
  1414  +        "//reflect/protoreflect",
  1415  +        "//reflect/protoregistry",
  1416  +    ],
  1417  +)
  1418  +
  1419  +alias(
  1420  +    name = "go_default_library",
  1421  +    actual = ":filedesc",
  1422  +    visibility = ["//:__subpackages__"],
  1423  +)
  1424  +
  1425  +go_test(
  1426  +    name = "filedesc_test",
  1427  +    srcs = [
  1428  +        "build_test.go",
  1429  +        "desc_test.go",
  1430  +    ],
  1431  +    deps = [
  1432  +        ":filedesc",
  1433  +        "//internal/detrand",
  1434  +        "//internal/testprotos/test",
  1435  +        "//internal/testprotos/test/weak1",
  1436  +        "//proto",
  1437  +        "//reflect/protodesc",
  1438  +        "//reflect/protoreflect",
  1439  +        "//types/descriptorpb",
  1440  +        "@com_github_google_go_cmp//cmp:go_default_library",
  1441  +    ],
  1442  +)
  1443  diff -urN a/internal/filetype/BUILD.bazel b/internal/filetype/BUILD.bazel
  1444  --- a/internal/filetype/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1445  +++ b/internal/filetype/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1446  @@ -0,0 +1,21 @@
  1447  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  1448  +
  1449  +go_library(
  1450  +    name = "filetype",
  1451  +    srcs = ["build.go"],
  1452  +    importpath = "google.golang.org/protobuf/internal/filetype",
  1453  +    visibility = ["//:__subpackages__"],
  1454  +    deps = [
  1455  +        "//internal/descopts",
  1456  +        "//internal/filedesc",
  1457  +        "//internal/impl",
  1458  +        "//reflect/protoreflect",
  1459  +        "//reflect/protoregistry",
  1460  +    ],
  1461  +)
  1462  +
  1463  +alias(
  1464  +    name = "go_default_library",
  1465  +    actual = ":filetype",
  1466  +    visibility = ["//:__subpackages__"],
  1467  +)
  1468  diff -urN a/internal/flags/BUILD.bazel b/internal/flags/BUILD.bazel
  1469  --- a/internal/flags/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1470  +++ b/internal/flags/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1471  @@ -0,0 +1,17 @@
  1472  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  1473  +
  1474  +go_library(
  1475  +    name = "flags",
  1476  +    srcs = [
  1477  +        "flags.go",
  1478  +        "proto_legacy_disable.go",
  1479  +    ],
  1480  +    importpath = "google.golang.org/protobuf/internal/flags",
  1481  +    visibility = ["//:__subpackages__"],
  1482  +)
  1483  +
  1484  +alias(
  1485  +    name = "go_default_library",
  1486  +    actual = ":flags",
  1487  +    visibility = ["//:__subpackages__"],
  1488  +)
  1489  diff -urN a/internal/fuzz/jsonfuzz/BUILD.bazel b/internal/fuzz/jsonfuzz/BUILD.bazel
  1490  --- a/internal/fuzz/jsonfuzz/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1491  +++ b/internal/fuzz/jsonfuzz/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1492  @@ -0,0 +1,26 @@
  1493  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1494  +
  1495  +go_library(
  1496  +    name = "jsonfuzz",
  1497  +    srcs = ["fuzz.go"],
  1498  +    importpath = "google.golang.org/protobuf/internal/fuzz/jsonfuzz",
  1499  +    visibility = ["//:__subpackages__"],
  1500  +    deps = [
  1501  +        "//encoding/protojson",
  1502  +        "//internal/testprotos/fuzz",
  1503  +        "//proto",
  1504  +    ],
  1505  +)
  1506  +
  1507  +alias(
  1508  +    name = "go_default_library",
  1509  +    actual = ":jsonfuzz",
  1510  +    visibility = ["//:__subpackages__"],
  1511  +)
  1512  +
  1513  +go_test(
  1514  +    name = "jsonfuzz_test",
  1515  +    srcs = ["fuzz_test.go"],
  1516  +    embed = [":jsonfuzz"],
  1517  +    deps = ["//internal/fuzztest"],
  1518  +)
  1519  diff -urN a/internal/fuzz/textfuzz/BUILD.bazel b/internal/fuzz/textfuzz/BUILD.bazel
  1520  --- a/internal/fuzz/textfuzz/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1521  +++ b/internal/fuzz/textfuzz/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1522  @@ -0,0 +1,26 @@
  1523  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1524  +
  1525  +go_library(
  1526  +    name = "textfuzz",
  1527  +    srcs = ["fuzz.go"],
  1528  +    importpath = "google.golang.org/protobuf/internal/fuzz/textfuzz",
  1529  +    visibility = ["//:__subpackages__"],
  1530  +    deps = [
  1531  +        "//encoding/prototext",
  1532  +        "//internal/testprotos/fuzz",
  1533  +        "//proto",
  1534  +    ],
  1535  +)
  1536  +
  1537  +alias(
  1538  +    name = "go_default_library",
  1539  +    actual = ":textfuzz",
  1540  +    visibility = ["//:__subpackages__"],
  1541  +)
  1542  +
  1543  +go_test(
  1544  +    name = "textfuzz_test",
  1545  +    srcs = ["fuzz_test.go"],
  1546  +    embed = [":textfuzz"],
  1547  +    deps = ["//internal/fuzztest"],
  1548  +)
  1549  diff -urN a/internal/fuzz/wirefuzz/BUILD.bazel b/internal/fuzz/wirefuzz/BUILD.bazel
  1550  --- a/internal/fuzz/wirefuzz/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1551  +++ b/internal/fuzz/wirefuzz/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1552  @@ -0,0 +1,28 @@
  1553  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1554  +
  1555  +go_library(
  1556  +    name = "wirefuzz",
  1557  +    srcs = ["fuzz.go"],
  1558  +    importpath = "google.golang.org/protobuf/internal/fuzz/wirefuzz",
  1559  +    visibility = ["//:__subpackages__"],
  1560  +    deps = [
  1561  +        "//internal/impl",
  1562  +        "//internal/testprotos/fuzz",
  1563  +        "//proto",
  1564  +        "//reflect/protoregistry",
  1565  +        "//runtime/protoiface",
  1566  +    ],
  1567  +)
  1568  +
  1569  +alias(
  1570  +    name = "go_default_library",
  1571  +    actual = ":wirefuzz",
  1572  +    visibility = ["//:__subpackages__"],
  1573  +)
  1574  +
  1575  +go_test(
  1576  +    name = "wirefuzz_test",
  1577  +    srcs = ["fuzz_test.go"],
  1578  +    embed = [":wirefuzz"],
  1579  +    deps = ["//internal/fuzztest"],
  1580  +)
  1581  diff -urN a/internal/fuzztest/BUILD.bazel b/internal/fuzztest/BUILD.bazel
  1582  --- a/internal/fuzztest/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1583  +++ b/internal/fuzztest/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1584  @@ -0,0 +1,14 @@
  1585  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  1586  +
  1587  +go_library(
  1588  +    name = "fuzztest",
  1589  +    srcs = ["fuzztest.go"],
  1590  +    importpath = "google.golang.org/protobuf/internal/fuzztest",
  1591  +    visibility = ["//:__subpackages__"],
  1592  +)
  1593  +
  1594  +alias(
  1595  +    name = "go_default_library",
  1596  +    actual = ":fuzztest",
  1597  +    visibility = ["//:__subpackages__"],
  1598  +)
  1599  diff -urN a/internal/genid/BUILD.bazel b/internal/genid/BUILD.bazel
  1600  --- a/internal/genid/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1601  +++ b/internal/genid/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1602  @@ -0,0 +1,32 @@
  1603  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  1604  +
  1605  +go_library(
  1606  +    name = "genid",
  1607  +    srcs = [
  1608  +        "any_gen.go",
  1609  +        "api_gen.go",
  1610  +        "descriptor_gen.go",
  1611  +        "doc.go",
  1612  +        "duration_gen.go",
  1613  +        "empty_gen.go",
  1614  +        "field_mask_gen.go",
  1615  +        "go_features_gen.go",
  1616  +        "goname.go",
  1617  +        "map_entry.go",
  1618  +        "source_context_gen.go",
  1619  +        "struct_gen.go",
  1620  +        "timestamp_gen.go",
  1621  +        "type_gen.go",
  1622  +        "wrappers.go",
  1623  +        "wrappers_gen.go",
  1624  +    ],
  1625  +    importpath = "google.golang.org/protobuf/internal/genid",
  1626  +    visibility = ["//:__subpackages__"],
  1627  +    deps = ["//reflect/protoreflect"],
  1628  +)
  1629  +
  1630  +alias(
  1631  +    name = "go_default_library",
  1632  +    actual = ":genid",
  1633  +    visibility = ["//:__subpackages__"],
  1634  +)
  1635  diff -urN a/internal/impl/BUILD.bazel b/internal/impl/BUILD.bazel
  1636  --- a/internal/impl/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1637  +++ b/internal/impl/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1638  @@ -0,0 +1,113 @@
  1639  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1640  +
  1641  +go_library(
  1642  +    name = "impl",
  1643  +    srcs = [
  1644  +        "api_export.go",
  1645  +        "checkinit.go",
  1646  +        "codec_extension.go",
  1647  +        "codec_field.go",
  1648  +        "codec_gen.go",
  1649  +        "codec_map.go",
  1650  +        "codec_map_go111.go",
  1651  +        "codec_map_go112.go",
  1652  +        "codec_message.go",
  1653  +        "codec_messageset.go",
  1654  +        "codec_reflect.go",
  1655  +        "codec_tables.go",
  1656  +        "codec_unsafe.go",
  1657  +        "convert.go",
  1658  +        "convert_list.go",
  1659  +        "convert_map.go",
  1660  +        "decode.go",
  1661  +        "encode.go",
  1662  +        "enum.go",
  1663  +        "extension.go",
  1664  +        "legacy_enum.go",
  1665  +        "legacy_export.go",
  1666  +        "legacy_extension.go",
  1667  +        "legacy_file.go",
  1668  +        "legacy_message.go",
  1669  +        "merge.go",
  1670  +        "merge_gen.go",
  1671  +        "message.go",
  1672  +        "message_reflect.go",
  1673  +        "message_reflect_field.go",
  1674  +        "message_reflect_gen.go",
  1675  +        "pointer_reflect.go",
  1676  +        "pointer_unsafe.go",
  1677  +        "validate.go",
  1678  +        "weak.go",
  1679  +    ],
  1680  +    importpath = "google.golang.org/protobuf/internal/impl",
  1681  +    visibility = ["//:__subpackages__"],
  1682  +    deps = [
  1683  +        "//encoding/prototext",
  1684  +        "//encoding/protowire",
  1685  +        "//internal/descopts",
  1686  +        "//internal/detrand",
  1687  +        "//internal/encoding/messageset",
  1688  +        "//internal/encoding/tag",
  1689  +        "//internal/errors",
  1690  +        "//internal/filedesc",
  1691  +        "//internal/flags",
  1692  +        "//internal/genid",
  1693  +        "//internal/order",
  1694  +        "//internal/pragma",
  1695  +        "//internal/strs",
  1696  +        "//proto",
  1697  +        "//reflect/protoreflect",
  1698  +        "//reflect/protoregistry",
  1699  +        "//runtime/protoiface",
  1700  +    ],
  1701  +)
  1702  +
  1703  +alias(
  1704  +    name = "go_default_library",
  1705  +    actual = ":impl",
  1706  +    visibility = ["//:__subpackages__"],
  1707  +)
  1708  +
  1709  +go_test(
  1710  +    name = "impl_test",
  1711  +    srcs = [
  1712  +        "enum_test.go",
  1713  +        "extension_test.go",
  1714  +        "lazy_test.go",
  1715  +        "legacy_aberrant_test.go",
  1716  +        "legacy_export_test.go",
  1717  +        "legacy_file_test.go",
  1718  +        "legacy_test.go",
  1719  +        "message_reflect_test.go",
  1720  +    ],
  1721  +    embed = [":impl"],
  1722  +    deps = [
  1723  +        "//encoding/prototext",
  1724  +        "//internal/flags",
  1725  +        "//internal/pragma",
  1726  +        "//internal/protobuild",
  1727  +        "//internal/testprotos/legacy/proto2_20160225_2fc053c5",
  1728  +        "//internal/testprotos/legacy/proto2_20160519_a4ab9ec5",
  1729  +        "//internal/testprotos/legacy/proto2_20180125_92554152",
  1730  +        "//internal/testprotos/legacy/proto2_20180430_b4deda09",
  1731  +        "//internal/testprotos/legacy/proto2_20180814_aa810b61",
  1732  +        "//internal/testprotos/legacy/proto2_20190205_c823c79e",
  1733  +        "//internal/testprotos/legacy/proto3_20160225_2fc053c5",
  1734  +        "//internal/testprotos/legacy/proto3_20160519_a4ab9ec5",
  1735  +        "//internal/testprotos/legacy/proto3_20180125_92554152",
  1736  +        "//internal/testprotos/legacy/proto3_20180430_b4deda09",
  1737  +        "//internal/testprotos/legacy/proto3_20180814_aa810b61",
  1738  +        "//internal/testprotos/legacy/proto3_20190205_c823c79e",
  1739  +        "//internal/testprotos/test",
  1740  +        "//proto",
  1741  +        "//reflect/protodesc",
  1742  +        "//reflect/protoreflect",
  1743  +        "//reflect/protoregistry",
  1744  +        "//runtime/protoiface",
  1745  +        "//testing/protocmp",
  1746  +        "//testing/protopack",
  1747  +        "//types/descriptorpb",
  1748  +        "@com_github_google_go_cmp//cmp:go_default_library",
  1749  +        "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
  1750  +    ],
  1751  +)
  1752  diff -urN a/internal/msgfmt/BUILD.bazel b/internal/msgfmt/BUILD.bazel
  1753  --- a/internal/msgfmt/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1754  +++ b/internal/msgfmt/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1755  @@ -0,0 +1,43 @@
  1756  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1757  +
  1758  +go_library(
  1759  +    name = "msgfmt",
  1760  +    srcs = ["format.go"],
  1761  +    importpath = "google.golang.org/protobuf/internal/msgfmt",
  1762  +    visibility = ["//:__subpackages__"],
  1763  +    deps = [
  1764  +        "//encoding/protowire",
  1765  +        "//internal/detrand",
  1766  +        "//internal/genid",
  1767  +        "//internal/order",
  1768  +        "//proto",
  1769  +        "//reflect/protoreflect",
  1770  +        "//reflect/protoregistry",
  1771  +    ],
  1772  +)
  1773  +
  1774  +alias(
  1775  +    name = "go_default_library",
  1776  +    actual = ":msgfmt",
  1777  +    visibility = ["//:__subpackages__"],
  1778  +)
  1779  +
  1780  +go_test(
  1781  +    name = "msgfmt_test",
  1782  +    srcs = ["format_test.go"],
  1783  +    deps = [
  1784  +        ":msgfmt",
  1785  +        "//internal/detrand",
  1786  +        "//internal/testprotos/test",
  1787  +        "//internal/testprotos/textpb2",
  1788  +        "//proto",
  1789  +        "//testing/protocmp",
  1790  +        "//testing/protopack",
  1791  +        "//types/dynamicpb",
  1792  +        "//types/known/anypb",
  1793  +        "//types/known/durationpb",
  1794  +        "//types/known/timestamppb",
  1795  +        "//types/known/wrapperspb",
  1796  +        "@com_github_google_go_cmp//cmp:go_default_library",
  1797  +    ],
  1798  +)
  1799  diff -urN a/internal/order/BUILD.bazel b/internal/order/BUILD.bazel
  1800  --- a/internal/order/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1801  +++ b/internal/order/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1802  @@ -0,0 +1,28 @@
  1803  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1804  +
  1805  +go_library(
  1806  +    name = "order",
  1807  +    srcs = [
  1808  +        "order.go",
  1809  +        "range.go",
  1810  +    ],
  1811  +    importpath = "google.golang.org/protobuf/internal/order",
  1812  +    visibility = ["//:__subpackages__"],
  1813  +    deps = ["//reflect/protoreflect"],
  1814  +)
  1815  +
  1816  +alias(
  1817  +    name = "go_default_library",
  1818  +    actual = ":order",
  1819  +    visibility = ["//:__subpackages__"],
  1820  +)
  1821  +
  1822  +go_test(
  1823  +    name = "order_test",
  1824  +    srcs = ["order_test.go"],
  1825  +    embed = [":order"],
  1826  +    deps = [
  1827  +        "//reflect/protoreflect",
  1828  +        "@com_github_google_go_cmp//cmp:go_default_library",
  1829  +    ],
  1830  +)
  1831  diff -urN a/internal/pragma/BUILD.bazel b/internal/pragma/BUILD.bazel
  1832  --- a/internal/pragma/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1833  +++ b/internal/pragma/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1834  @@ -0,0 +1,14 @@
  1835  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  1836  +
  1837  +go_library(
  1838  +    name = "pragma",
  1839  +    srcs = ["pragma.go"],
  1840  +    importpath = "google.golang.org/protobuf/internal/pragma",
  1841  +    visibility = ["//:__subpackages__"],
  1842  +)
  1843  +
  1844  +alias(
  1845  +    name = "go_default_library",
  1846  +    actual = ":pragma",
  1847  +    visibility = ["//:__subpackages__"],
  1848  +)
  1849  diff -urN a/internal/protobuild/BUILD.bazel b/internal/protobuild/BUILD.bazel
  1850  --- a/internal/protobuild/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1851  +++ b/internal/protobuild/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1852  @@ -0,0 +1,18 @@
  1853  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  1854  +
  1855  +go_library(
  1856  +    name = "protobuild",
  1857  +    srcs = ["build.go"],
  1858  +    importpath = "google.golang.org/protobuf/internal/protobuild",
  1859  +    visibility = ["//:__subpackages__"],
  1860  +    deps = [
  1861  +        "//reflect/protoreflect",
  1862  +        "//reflect/protoregistry",
  1863  +    ],
  1864  +)
  1865  +
  1866  +alias(
  1867  +    name = "go_default_library",
  1868  +    actual = ":protobuild",
  1869  +    visibility = ["//:__subpackages__"],
  1870  +)
  1871  diff -urN a/internal/protolegacy/BUILD.bazel b/internal/protolegacy/BUILD.bazel
  1872  --- a/internal/protolegacy/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1873  +++ b/internal/protolegacy/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1874  @@ -0,0 +1,20 @@
  1875  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  1876  +
  1877  +go_library(
  1878  +    name = "protolegacy",
  1879  +    srcs = ["proto.go"],
  1880  +    importpath = "google.golang.org/protobuf/internal/protolegacy",
  1881  +    visibility = ["//:__subpackages__"],
  1882  +    deps = [
  1883  +        "//reflect/protoreflect",
  1884  +        "//reflect/protoregistry",
  1885  +        "//runtime/protoiface",
  1886  +        "//runtime/protoimpl",
  1887  +    ],
  1888  +)
  1889  +
  1890  +alias(
  1891  +    name = "go_default_library",
  1892  +    actual = ":protolegacy",
  1893  +    visibility = ["//:__subpackages__"],
  1894  +)
  1895  diff -urN a/internal/set/BUILD.bazel b/internal/set/BUILD.bazel
  1896  --- a/internal/set/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1897  +++ b/internal/set/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1898  @@ -0,0 +1,20 @@
  1899  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1900  +
  1901  +go_library(
  1902  +    name = "set",
  1903  +    srcs = ["ints.go"],
  1904  +    importpath = "google.golang.org/protobuf/internal/set",
  1905  +    visibility = ["//:__subpackages__"],
  1906  +)
  1907  +
  1908  +alias(
  1909  +    name = "go_default_library",
  1910  +    actual = ":set",
  1911  +    visibility = ["//:__subpackages__"],
  1912  +)
  1913  +
  1914  +go_test(
  1915  +    name = "set_test",
  1916  +    srcs = ["ints_test.go"],
  1917  +    embed = [":set"],
  1918  +)
  1919  diff -urN a/internal/strs/BUILD.bazel b/internal/strs/BUILD.bazel
  1920  --- a/internal/strs/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1921  +++ b/internal/strs/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1922  @@ -0,0 +1,29 @@
  1923  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  1924  +
  1925  +go_library(
  1926  +    name = "strs",
  1927  +    srcs = [
  1928  +        "strings.go",
  1929  +        "strings_pure.go",
  1930  +        "strings_unsafe_go120.go",
  1931  +        "strings_unsafe_go121.go",
  1932  +    ],
  1933  +    importpath = "google.golang.org/protobuf/internal/strs",
  1934  +    visibility = ["//:__subpackages__"],
  1935  +    deps = [
  1936  +        "//internal/flags",
  1937  +        "//reflect/protoreflect",
  1938  +    ],
  1939  +)
  1940  +
  1941  +alias(
  1942  +    name = "go_default_library",
  1943  +    actual = ":strs",
  1944  +    visibility = ["//:__subpackages__"],
  1945  +)
  1946  +
  1947  +go_test(
  1948  +    name = "strs_test",
  1949  +    srcs = ["strings_test.go"],
  1950  +    embed = [":strs"],
  1951  +)
  1952  diff -urN a/internal/testprotos/annotation/BUILD.bazel b/internal/testprotos/annotation/BUILD.bazel
  1953  --- a/internal/testprotos/annotation/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1954  +++ b/internal/testprotos/annotation/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1955  @@ -0,0 +1,19 @@
  1956  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  1957  +
  1958  +go_library(
  1959  +    name = "annotation",
  1960  +    srcs = ["annotation.pb.go"],
  1961  +    importpath = "google.golang.org/protobuf/internal/testprotos/annotation",
  1962  +    visibility = ["//:__subpackages__"],
  1963  +    deps = [
  1964  +        "//reflect/protoreflect",
  1965  +        "//runtime/protoimpl",
  1966  +        "//types/descriptorpb",
  1967  +    ],
  1968  +)
  1969  +
  1970  +alias(
  1971  +    name = "go_default_library",
  1972  +    actual = ":annotation",
  1973  +    visibility = ["//:__subpackages__"],
  1974  +)
  1975  diff -urN a/internal/testprotos/benchmarks/BUILD.bazel b/internal/testprotos/benchmarks/BUILD.bazel
  1976  --- a/internal/testprotos/benchmarks/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1977  +++ b/internal/testprotos/benchmarks/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  1978  @@ -0,0 +1,18 @@
  1979  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  1980  +
  1981  +go_library(
  1982  +    name = "benchmarks",
  1983  +    srcs = ["benchmarks.pb.go"],
  1984  +    importpath = "google.golang.org/protobuf/internal/testprotos/benchmarks",
  1985  +    visibility = ["//:__subpackages__"],
  1986  +    deps = [
  1987  +        "//reflect/protoreflect",
  1988  +        "//runtime/protoimpl",
  1989  +    ],
  1990  +)
  1991  +
  1992  +alias(
  1993  +    name = "go_default_library",
  1994  +    actual = ":benchmarks",
  1995  +    visibility = ["//:__subpackages__"],
  1996  +)
  1997  diff -urN a/internal/testprotos/benchmarks/datasets/google_message1/proto2/BUILD.bazel b/internal/testprotos/benchmarks/datasets/google_message1/proto2/BUILD.bazel
  1998  --- a/internal/testprotos/benchmarks/datasets/google_message1/proto2/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  1999  +++ b/internal/testprotos/benchmarks/datasets/google_message1/proto2/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2000  @@ -0,0 +1,18 @@
  2001  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2002  +
  2003  +go_library(
  2004  +    name = "proto2",
  2005  +    srcs = ["benchmark_message1_proto2.pb.go"],
  2006  +    importpath = "google.golang.org/protobuf/internal/testprotos/benchmarks/datasets/google_message1/proto2",
  2007  +    visibility = ["//:__subpackages__"],
  2008  +    deps = [
  2009  +        "//reflect/protoreflect",
  2010  +        "//runtime/protoimpl",
  2011  +    ],
  2012  +)
  2013  +
  2014  +alias(
  2015  +    name = "go_default_library",
  2016  +    actual = ":proto2",
  2017  +    visibility = ["//:__subpackages__"],
  2018  +)
  2019  diff -urN a/internal/testprotos/benchmarks/datasets/google_message1/proto3/BUILD.bazel b/internal/testprotos/benchmarks/datasets/google_message1/proto3/BUILD.bazel
  2020  --- a/internal/testprotos/benchmarks/datasets/google_message1/proto3/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2021  +++ b/internal/testprotos/benchmarks/datasets/google_message1/proto3/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2022  @@ -0,0 +1,18 @@
  2023  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2024  +
  2025  +go_library(
  2026  +    name = "proto3",
  2027  +    srcs = ["benchmark_message1_proto3.pb.go"],
  2028  +    importpath = "google.golang.org/protobuf/internal/testprotos/benchmarks/datasets/google_message1/proto3",
  2029  +    visibility = ["//:__subpackages__"],
  2030  +    deps = [
  2031  +        "//reflect/protoreflect",
  2032  +        "//runtime/protoimpl",
  2033  +    ],
  2034  +)
  2035  +
  2036  +alias(
  2037  +    name = "go_default_library",
  2038  +    actual = ":proto3",
  2039  +    visibility = ["//:__subpackages__"],
  2040  +)
  2041  diff -urN a/internal/testprotos/benchmarks/datasets/google_message2/BUILD.bazel b/internal/testprotos/benchmarks/datasets/google_message2/BUILD.bazel
  2042  --- a/internal/testprotos/benchmarks/datasets/google_message2/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2043  +++ b/internal/testprotos/benchmarks/datasets/google_message2/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2044  @@ -0,0 +1,18 @@
  2045  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2046  +
  2047  +go_library(
  2048  +    name = "google_message2",
  2049  +    srcs = ["benchmark_message2.pb.go"],
  2050  +    importpath = "google.golang.org/protobuf/internal/testprotos/benchmarks/datasets/google_message2",
  2051  +    visibility = ["//:__subpackages__"],
  2052  +    deps = [
  2053  +        "//reflect/protoreflect",
  2054  +        "//runtime/protoimpl",
  2055  +    ],
  2056  +)
  2057  +
  2058  +alias(
  2059  +    name = "go_default_library",
  2060  +    actual = ":google_message2",
  2061  +    visibility = ["//:__subpackages__"],
  2062  +)
  2063  diff -urN a/internal/testprotos/benchmarks/datasets/google_message3/BUILD.bazel b/internal/testprotos/benchmarks/datasets/google_message3/BUILD.bazel
  2064  --- a/internal/testprotos/benchmarks/datasets/google_message3/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2065  +++ b/internal/testprotos/benchmarks/datasets/google_message3/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2066  @@ -0,0 +1,28 @@
  2067  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2068  +
  2069  +go_library(
  2070  +    name = "google_message3",
  2071  +    srcs = [
  2072  +        "benchmark_message3.pb.go",
  2073  +        "benchmark_message3_1.pb.go",
  2074  +        "benchmark_message3_2.pb.go",
  2075  +        "benchmark_message3_3.pb.go",
  2076  +        "benchmark_message3_4.pb.go",
  2077  +        "benchmark_message3_5.pb.go",
  2078  +        "benchmark_message3_6.pb.go",
  2079  +        "benchmark_message3_7.pb.go",
  2080  +        "benchmark_message3_8.pb.go",
  2081  +    ],
  2082  +    importpath = "google.golang.org/protobuf/internal/testprotos/benchmarks/datasets/google_message3",
  2083  +    visibility = ["//:__subpackages__"],
  2084  +    deps = [
  2085  +        "//reflect/protoreflect",
  2086  +        "//runtime/protoimpl",
  2087  +    ],
  2088  +)
  2089  +
  2090  +alias(
  2091  +    name = "go_default_library",
  2092  +    actual = ":google_message3",
  2093  +    visibility = ["//:__subpackages__"],
  2094  +)
  2095  diff -urN a/internal/testprotos/benchmarks/datasets/google_message4/BUILD.bazel b/internal/testprotos/benchmarks/datasets/google_message4/BUILD.bazel
  2096  --- a/internal/testprotos/benchmarks/datasets/google_message4/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2097  +++ b/internal/testprotos/benchmarks/datasets/google_message4/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2098  @@ -0,0 +1,23 @@
  2099  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2100  +
  2101  +go_library(
  2102  +    name = "google_message4",
  2103  +    srcs = [
  2104  +        "benchmark_message4.pb.go",
  2105  +        "benchmark_message4_1.pb.go",
  2106  +        "benchmark_message4_2.pb.go",
  2107  +        "benchmark_message4_3.pb.go",
  2108  +    ],
  2109  +    importpath = "google.golang.org/protobuf/internal/testprotos/benchmarks/datasets/google_message4",
  2110  +    visibility = ["//:__subpackages__"],
  2111  +    deps = [
  2112  +        "//reflect/protoreflect",
  2113  +        "//runtime/protoimpl",
  2114  +    ],
  2115  +)
  2116  +
  2117  +alias(
  2118  +    name = "go_default_library",
  2119  +    actual = ":google_message4",
  2120  +    visibility = ["//:__subpackages__"],
  2121  +)
  2122  diff -urN a/internal/testprotos/benchmarks/micro/BUILD.bazel b/internal/testprotos/benchmarks/micro/BUILD.bazel
  2123  --- a/internal/testprotos/benchmarks/micro/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2124  +++ b/internal/testprotos/benchmarks/micro/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2125  @@ -0,0 +1,18 @@
  2126  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2127  +
  2128  +go_library(
  2129  +    name = "micro",
  2130  +    srcs = ["micro.pb.go"],
  2131  +    importpath = "google.golang.org/protobuf/internal/testprotos/benchmarks/micro",
  2132  +    visibility = ["//:__subpackages__"],
  2133  +    deps = [
  2134  +        "//reflect/protoreflect",
  2135  +        "//runtime/protoimpl",
  2136  +    ],
  2137  +)
  2138  +
  2139  +alias(
  2140  +    name = "go_default_library",
  2141  +    actual = ":micro",
  2142  +    visibility = ["//:__subpackages__"],
  2143  +)
  2144  diff -urN a/internal/testprotos/conformance/BUILD.bazel b/internal/testprotos/conformance/BUILD.bazel
  2145  --- a/internal/testprotos/conformance/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2146  +++ b/internal/testprotos/conformance/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2147  @@ -0,0 +1,28 @@
  2148  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2149  +
  2150  +go_library(
  2151  +    name = "conformance",
  2152  +    srcs = [
  2153  +        "conformance.pb.go",
  2154  +        "test_messages_proto2.pb.go",
  2155  +        "test_messages_proto3.pb.go",
  2156  +    ],
  2157  +    importpath = "google.golang.org/protobuf/internal/testprotos/conformance",
  2158  +    visibility = ["//:__subpackages__"],
  2159  +    deps = [
  2160  +        "//reflect/protoreflect",
  2161  +        "//runtime/protoimpl",
  2162  +        "//types/known/anypb",
  2163  +        "//types/known/durationpb",
  2164  +        "//types/known/fieldmaskpb",
  2165  +        "//types/known/structpb",
  2166  +        "//types/known/timestamppb",
  2167  +        "//types/known/wrapperspb",
  2168  +    ],
  2169  +)
  2170  +
  2171  +alias(
  2172  +    name = "go_default_library",
  2173  +    actual = ":conformance",
  2174  +    visibility = ["//:__subpackages__"],
  2175  +)
  2176  diff -urN a/internal/testprotos/conformance/editions/BUILD.bazel b/internal/testprotos/conformance/editions/BUILD.bazel
  2177  --- a/internal/testprotos/conformance/editions/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2178  +++ b/internal/testprotos/conformance/editions/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2179  @@ -0,0 +1,27 @@
  2180  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2181  +
  2182  +go_library(
  2183  +    name = "editions",
  2184  +    srcs = [
  2185  +        "test_messages_proto2_editions.pb.go",
  2186  +        "test_messages_proto3_editions.pb.go",
  2187  +    ],
  2188  +    importpath = "google.golang.org/protobuf/internal/testprotos/conformance/editions",
  2189  +    visibility = ["//:__subpackages__"],
  2190  +    deps = [
  2191  +        "//reflect/protoreflect",
  2192  +        "//runtime/protoimpl",
  2193  +        "//types/known/anypb",
  2194  +        "//types/known/durationpb",
  2195  +        "//types/known/fieldmaskpb",
  2196  +        "//types/known/structpb",
  2197  +        "//types/known/timestamppb",
  2198  +        "//types/known/wrapperspb",
  2199  +    ],
  2200  +)
  2201  +
  2202  +alias(
  2203  +    name = "go_default_library",
  2204  +    actual = ":editions",
  2205  +    visibility = ["//:__subpackages__"],
  2206  +)
  2207  diff -urN a/internal/testprotos/editionsfuzztest/BUILD.bazel b/internal/testprotos/editionsfuzztest/BUILD.bazel
  2208  --- a/internal/testprotos/editionsfuzztest/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2209  +++ b/internal/testprotos/editionsfuzztest/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2210  @@ -0,0 +1,24 @@
  2211  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2212  +
  2213  +go_library(
  2214  +    name = "editionsfuzztest",
  2215  +    srcs = [
  2216  +        "test2.pb.go",
  2217  +        "test2editions.pb.go",
  2218  +        "test3.pb.go",
  2219  +        "test3editions.pb.go",
  2220  +    ],
  2221  +    importpath = "google.golang.org/protobuf/internal/testprotos/editionsfuzztest",
  2222  +    visibility = ["//:__subpackages__"],
  2223  +    deps = [
  2224  +        "//reflect/protoreflect",
  2225  +        "//runtime/protoimpl",
  2226  +        "//types/gofeaturespb",
  2227  +    ],
  2228  +)
  2229  +
  2230  +alias(
  2231  +    name = "go_default_library",
  2232  +    actual = ":editionsfuzztest",
  2233  +    visibility = ["//:__subpackages__"],
  2234  +)
  2235  diff -urN a/internal/testprotos/enums/BUILD.bazel b/internal/testprotos/enums/BUILD.bazel
  2236  --- a/internal/testprotos/enums/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2237  +++ b/internal/testprotos/enums/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2238  @@ -0,0 +1,18 @@
  2239  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2240  +
  2241  +go_library(
  2242  +    name = "enums",
  2243  +    srcs = ["enums.pb.go"],
  2244  +    importpath = "google.golang.org/protobuf/internal/testprotos/enums",
  2245  +    visibility = ["//:__subpackages__"],
  2246  +    deps = [
  2247  +        "//reflect/protoreflect",
  2248  +        "//runtime/protoimpl",
  2249  +    ],
  2250  +)
  2251  +
  2252  +alias(
  2253  +    name = "go_default_library",
  2254  +    actual = ":enums",
  2255  +    visibility = ["//:__subpackages__"],
  2256  +)
  2257  diff -urN a/internal/testprotos/fieldtrack/BUILD.bazel b/internal/testprotos/fieldtrack/BUILD.bazel
  2258  --- a/internal/testprotos/fieldtrack/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2259  +++ b/internal/testprotos/fieldtrack/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2260  @@ -0,0 +1,21 @@
  2261  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2262  +
  2263  +go_library(
  2264  +    name = "fieldtrack",
  2265  +    srcs = ["fieldtrack.pb.go"],
  2266  +    importpath = "google.golang.org/protobuf/internal/testprotos/fieldtrack",
  2267  +    visibility = ["//:__subpackages__"],
  2268  +    deps = [
  2269  +        "//internal/testprotos/annotation",
  2270  +        "//internal/testprotos/test",
  2271  +        "//proto",
  2272  +        "//reflect/protoreflect",
  2273  +        "//runtime/protoimpl",
  2274  +    ],
  2275  +)
  2276  +
  2277  +alias(
  2278  +    name = "go_default_library",
  2279  +    actual = ":fieldtrack",
  2280  +    visibility = ["//:__subpackages__"],
  2281  +)
  2282  diff -urN a/internal/testprotos/fuzz/BUILD.bazel b/internal/testprotos/fuzz/BUILD.bazel
  2283  --- a/internal/testprotos/fuzz/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2284  +++ b/internal/testprotos/fuzz/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2285  @@ -0,0 +1,20 @@
  2286  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2287  +
  2288  +go_library(
  2289  +    name = "fuzz",
  2290  +    srcs = ["fuzz.pb.go"],
  2291  +    importpath = "google.golang.org/protobuf/internal/testprotos/fuzz",
  2292  +    visibility = ["//:__subpackages__"],
  2293  +    deps = [
  2294  +        "//internal/testprotos/test",
  2295  +        "//internal/testprotos/test3",
  2296  +        "//reflect/protoreflect",
  2297  +        "//runtime/protoimpl",
  2298  +    ],
  2299  +)
  2300  +
  2301  +alias(
  2302  +    name = "go_default_library",
  2303  +    actual = ":fuzz",
  2304  +    visibility = ["//:__subpackages__"],
  2305  +)
  2306  diff -urN a/internal/testprotos/irregular/BUILD.bazel b/internal/testprotos/irregular/BUILD.bazel
  2307  --- a/internal/testprotos/irregular/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2308  +++ b/internal/testprotos/irregular/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2309  @@ -0,0 +1,25 @@
  2310  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2311  +
  2312  +go_library(
  2313  +    name = "irregular",
  2314  +    srcs = [
  2315  +        "irregular.go",
  2316  +        "test.pb.go",
  2317  +    ],
  2318  +    importpath = "google.golang.org/protobuf/internal/testprotos/irregular",
  2319  +    visibility = ["//:__subpackages__"],
  2320  +    deps = [
  2321  +        "//encoding/prototext",
  2322  +        "//reflect/protodesc",
  2323  +        "//reflect/protoreflect",
  2324  +        "//runtime/protoiface",
  2325  +        "//runtime/protoimpl",
  2326  +        "//types/descriptorpb",
  2327  +    ],
  2328  +)
  2329  +
  2330  +alias(
  2331  +    name = "go_default_library",
  2332  +    actual = ":irregular",
  2333  +    visibility = ["//:__subpackages__"],
  2334  +)
  2335  diff -urN a/internal/testprotos/legacy/bug1052/BUILD.bazel b/internal/testprotos/legacy/bug1052/BUILD.bazel
  2336  --- a/internal/testprotos/legacy/bug1052/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2337  +++ b/internal/testprotos/legacy/bug1052/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2338  @@ -0,0 +1,24 @@
  2339  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2340  +
  2341  +go_library(
  2342  +    name = "bug1052",
  2343  +    srcs = ["bug1052.pb.go"],
  2344  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/bug1052",
  2345  +    visibility = ["//:__subpackages__"],
  2346  +    deps = [
  2347  +        "//internal/protolegacy",
  2348  +        "//types/descriptorpb",
  2349  +    ],
  2350  +)
  2351  +
  2352  +alias(
  2353  +    name = "go_default_library",
  2354  +    actual = ":bug1052",
  2355  +    visibility = ["//:__subpackages__"],
  2356  +)
  2357  +
  2358  +go_test(
  2359  +    name = "bug1052_test",
  2360  +    srcs = ["bug1052_test.go"],
  2361  +    deps = [":bug1052"],
  2362  +)
  2363  diff -urN a/internal/testprotos/legacy/BUILD.bazel b/internal/testprotos/legacy/BUILD.bazel
  2364  --- a/internal/testprotos/legacy/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2365  +++ b/internal/testprotos/legacy/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2366  @@ -0,0 +1,30 @@
  2367  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2368  +
  2369  +go_library(
  2370  +    name = "legacy",
  2371  +    srcs = ["legacy.pb.go"],
  2372  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy",
  2373  +    visibility = ["//:__subpackages__"],
  2374  +    deps = [
  2375  +        "//internal/testprotos/legacy/proto2_20160225_2fc053c5",
  2376  +        "//internal/testprotos/legacy/proto2_20160519_a4ab9ec5",
  2377  +        "//internal/testprotos/legacy/proto2_20180125_92554152",
  2378  +        "//internal/testprotos/legacy/proto2_20180430_b4deda09",
  2379  +        "//internal/testprotos/legacy/proto2_20180814_aa810b61",
  2380  +        "//internal/testprotos/legacy/proto2_20190205_c823c79e",
  2381  +        "//internal/testprotos/legacy/proto3_20160225_2fc053c5",
  2382  +        "//internal/testprotos/legacy/proto3_20160519_a4ab9ec5",
  2383  +        "//internal/testprotos/legacy/proto3_20180125_92554152",
  2384  +        "//internal/testprotos/legacy/proto3_20180430_b4deda09",
  2385  +        "//internal/testprotos/legacy/proto3_20180814_aa810b61",
  2386  +        "//internal/testprotos/legacy/proto3_20190205_c823c79e",
  2387  +        "//reflect/protoreflect",
  2388  +        "//runtime/protoimpl",
  2389  +    ],
  2390  +)
  2391  +
  2392  +alias(
  2393  +    name = "go_default_library",
  2394  +    actual = ":legacy",
  2395  +    visibility = ["//:__subpackages__"],
  2396  +)
  2397  diff -urN a/internal/testprotos/legacy/proto2_20160225_2fc053c5/BUILD.bazel b/internal/testprotos/legacy/proto2_20160225_2fc053c5/BUILD.bazel
  2398  --- a/internal/testprotos/legacy/proto2_20160225_2fc053c5/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2399  +++ b/internal/testprotos/legacy/proto2_20160225_2fc053c5/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2400  @@ -0,0 +1,15 @@
  2401  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2402  +
  2403  +go_library(
  2404  +    name = "proto2_20160225_2fc053c5",
  2405  +    srcs = ["test.pb.go"],
  2406  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/proto2_20160225_2fc053c5",
  2407  +    visibility = ["//:__subpackages__"],
  2408  +    deps = ["//internal/protolegacy"],
  2409  +)
  2410  +
  2411  +alias(
  2412  +    name = "go_default_library",
  2413  +    actual = ":proto2_20160225_2fc053c5",
  2414  +    visibility = ["//:__subpackages__"],
  2415  +)
  2416  diff -urN a/internal/testprotos/legacy/proto2_20160519_a4ab9ec5/BUILD.bazel b/internal/testprotos/legacy/proto2_20160519_a4ab9ec5/BUILD.bazel
  2417  --- a/internal/testprotos/legacy/proto2_20160519_a4ab9ec5/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2418  +++ b/internal/testprotos/legacy/proto2_20160519_a4ab9ec5/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2419  @@ -0,0 +1,15 @@
  2420  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2421  +
  2422  +go_library(
  2423  +    name = "proto2_20160519_a4ab9ec5",
  2424  +    srcs = ["test.pb.go"],
  2425  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/proto2_20160519_a4ab9ec5",
  2426  +    visibility = ["//:__subpackages__"],
  2427  +    deps = ["//internal/protolegacy"],
  2428  +)
  2429  +
  2430  +alias(
  2431  +    name = "go_default_library",
  2432  +    actual = ":proto2_20160519_a4ab9ec5",
  2433  +    visibility = ["//:__subpackages__"],
  2434  +)
  2435  diff -urN a/internal/testprotos/legacy/proto2_20180125_92554152/BUILD.bazel b/internal/testprotos/legacy/proto2_20180125_92554152/BUILD.bazel
  2436  --- a/internal/testprotos/legacy/proto2_20180125_92554152/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2437  +++ b/internal/testprotos/legacy/proto2_20180125_92554152/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2438  @@ -0,0 +1,15 @@
  2439  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2440  +
  2441  +go_library(
  2442  +    name = "proto2_20180125_92554152",
  2443  +    srcs = ["test.pb.go"],
  2444  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/proto2_20180125_92554152",
  2445  +    visibility = ["//:__subpackages__"],
  2446  +    deps = ["//internal/protolegacy"],
  2447  +)
  2448  +
  2449  +alias(
  2450  +    name = "go_default_library",
  2451  +    actual = ":proto2_20180125_92554152",
  2452  +    visibility = ["//:__subpackages__"],
  2453  +)
  2454  diff -urN a/internal/testprotos/legacy/proto2_20180430_b4deda09/BUILD.bazel b/internal/testprotos/legacy/proto2_20180430_b4deda09/BUILD.bazel
  2455  --- a/internal/testprotos/legacy/proto2_20180430_b4deda09/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2456  +++ b/internal/testprotos/legacy/proto2_20180430_b4deda09/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2457  @@ -0,0 +1,15 @@
  2458  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2459  +
  2460  +go_library(
  2461  +    name = "proto2_20180430_b4deda09",
  2462  +    srcs = ["test.pb.go"],
  2463  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/proto2_20180430_b4deda09",
  2464  +    visibility = ["//:__subpackages__"],
  2465  +    deps = ["//internal/protolegacy"],
  2466  +)
  2467  +
  2468  +alias(
  2469  +    name = "go_default_library",
  2470  +    actual = ":proto2_20180430_b4deda09",
  2471  +    visibility = ["//:__subpackages__"],
  2472  +)
  2473  diff -urN a/internal/testprotos/legacy/proto2_20180814_aa810b61/BUILD.bazel b/internal/testprotos/legacy/proto2_20180814_aa810b61/BUILD.bazel
  2474  --- a/internal/testprotos/legacy/proto2_20180814_aa810b61/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2475  +++ b/internal/testprotos/legacy/proto2_20180814_aa810b61/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2476  @@ -0,0 +1,15 @@
  2477  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2478  +
  2479  +go_library(
  2480  +    name = "proto2_20180814_aa810b61",
  2481  +    srcs = ["test.pb.go"],
  2482  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/proto2_20180814_aa810b61",
  2483  +    visibility = ["//:__subpackages__"],
  2484  +    deps = ["//internal/protolegacy"],
  2485  +)
  2486  +
  2487  +alias(
  2488  +    name = "go_default_library",
  2489  +    actual = ":proto2_20180814_aa810b61",
  2490  +    visibility = ["//:__subpackages__"],
  2491  +)
  2492  diff -urN a/internal/testprotos/legacy/proto2_20190205_c823c79e/BUILD.bazel b/internal/testprotos/legacy/proto2_20190205_c823c79e/BUILD.bazel
  2493  --- a/internal/testprotos/legacy/proto2_20190205_c823c79e/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2494  +++ b/internal/testprotos/legacy/proto2_20190205_c823c79e/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2495  @@ -0,0 +1,15 @@
  2496  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2497  +
  2498  +go_library(
  2499  +    name = "proto2_20190205_c823c79e",
  2500  +    srcs = ["test.pb.go"],
  2501  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/proto2_20190205_c823c79e",
  2502  +    visibility = ["//:__subpackages__"],
  2503  +    deps = ["//internal/protolegacy"],
  2504  +)
  2505  +
  2506  +alias(
  2507  +    name = "go_default_library",
  2508  +    actual = ":proto2_20190205_c823c79e",
  2509  +    visibility = ["//:__subpackages__"],
  2510  +)
  2511  diff -urN a/internal/testprotos/legacy/proto3_20160225_2fc053c5/BUILD.bazel b/internal/testprotos/legacy/proto3_20160225_2fc053c5/BUILD.bazel
  2512  --- a/internal/testprotos/legacy/proto3_20160225_2fc053c5/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2513  +++ b/internal/testprotos/legacy/proto3_20160225_2fc053c5/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2514  @@ -0,0 +1,15 @@
  2515  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2516  +
  2517  +go_library(
  2518  +    name = "proto3_20160225_2fc053c5",
  2519  +    srcs = ["test.pb.go"],
  2520  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/proto3_20160225_2fc053c5",
  2521  +    visibility = ["//:__subpackages__"],
  2522  +    deps = ["//internal/protolegacy"],
  2523  +)
  2524  +
  2525  +alias(
  2526  +    name = "go_default_library",
  2527  +    actual = ":proto3_20160225_2fc053c5",
  2528  +    visibility = ["//:__subpackages__"],
  2529  +)
  2530  diff -urN a/internal/testprotos/legacy/proto3_20160519_a4ab9ec5/BUILD.bazel b/internal/testprotos/legacy/proto3_20160519_a4ab9ec5/BUILD.bazel
  2531  --- a/internal/testprotos/legacy/proto3_20160519_a4ab9ec5/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2532  +++ b/internal/testprotos/legacy/proto3_20160519_a4ab9ec5/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2533  @@ -0,0 +1,15 @@
  2534  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2535  +
  2536  +go_library(
  2537  +    name = "proto3_20160519_a4ab9ec5",
  2538  +    srcs = ["test.pb.go"],
  2539  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/proto3_20160519_a4ab9ec5",
  2540  +    visibility = ["//:__subpackages__"],
  2541  +    deps = ["//internal/protolegacy"],
  2542  +)
  2543  +
  2544  +alias(
  2545  +    name = "go_default_library",
  2546  +    actual = ":proto3_20160519_a4ab9ec5",
  2547  +    visibility = ["//:__subpackages__"],
  2548  +)
  2549  diff -urN a/internal/testprotos/legacy/proto3_20180125_92554152/BUILD.bazel b/internal/testprotos/legacy/proto3_20180125_92554152/BUILD.bazel
  2550  --- a/internal/testprotos/legacy/proto3_20180125_92554152/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2551  +++ b/internal/testprotos/legacy/proto3_20180125_92554152/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2552  @@ -0,0 +1,15 @@
  2553  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2554  +
  2555  +go_library(
  2556  +    name = "proto3_20180125_92554152",
  2557  +    srcs = ["test.pb.go"],
  2558  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/proto3_20180125_92554152",
  2559  +    visibility = ["//:__subpackages__"],
  2560  +    deps = ["//internal/protolegacy"],
  2561  +)
  2562  +
  2563  +alias(
  2564  +    name = "go_default_library",
  2565  +    actual = ":proto3_20180125_92554152",
  2566  +    visibility = ["//:__subpackages__"],
  2567  +)
  2568  diff -urN a/internal/testprotos/legacy/proto3_20180430_b4deda09/BUILD.bazel b/internal/testprotos/legacy/proto3_20180430_b4deda09/BUILD.bazel
  2569  --- a/internal/testprotos/legacy/proto3_20180430_b4deda09/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2570  +++ b/internal/testprotos/legacy/proto3_20180430_b4deda09/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2571  @@ -0,0 +1,15 @@
  2572  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2573  +
  2574  +go_library(
  2575  +    name = "proto3_20180430_b4deda09",
  2576  +    srcs = ["test.pb.go"],
  2577  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/proto3_20180430_b4deda09",
  2578  +    visibility = ["//:__subpackages__"],
  2579  +    deps = ["//internal/protolegacy"],
  2580  +)
  2581  +
  2582  +alias(
  2583  +    name = "go_default_library",
  2584  +    actual = ":proto3_20180430_b4deda09",
  2585  +    visibility = ["//:__subpackages__"],
  2586  +)
  2587  diff -urN a/internal/testprotos/legacy/proto3_20180814_aa810b61/BUILD.bazel b/internal/testprotos/legacy/proto3_20180814_aa810b61/BUILD.bazel
  2588  --- a/internal/testprotos/legacy/proto3_20180814_aa810b61/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2589  +++ b/internal/testprotos/legacy/proto3_20180814_aa810b61/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2590  @@ -0,0 +1,15 @@
  2591  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2592  +
  2593  +go_library(
  2594  +    name = "proto3_20180814_aa810b61",
  2595  +    srcs = ["test.pb.go"],
  2596  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/proto3_20180814_aa810b61",
  2597  +    visibility = ["//:__subpackages__"],
  2598  +    deps = ["//internal/protolegacy"],
  2599  +)
  2600  +
  2601  +alias(
  2602  +    name = "go_default_library",
  2603  +    actual = ":proto3_20180814_aa810b61",
  2604  +    visibility = ["//:__subpackages__"],
  2605  +)
  2606  diff -urN a/internal/testprotos/legacy/proto3_20190205_c823c79e/BUILD.bazel b/internal/testprotos/legacy/proto3_20190205_c823c79e/BUILD.bazel
  2607  --- a/internal/testprotos/legacy/proto3_20190205_c823c79e/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2608  +++ b/internal/testprotos/legacy/proto3_20190205_c823c79e/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2609  @@ -0,0 +1,15 @@
  2610  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2611  +
  2612  +go_library(
  2613  +    name = "proto3_20190205_c823c79e",
  2614  +    srcs = ["test.pb.go"],
  2615  +    importpath = "google.golang.org/protobuf/internal/testprotos/legacy/proto3_20190205_c823c79e",
  2616  +    visibility = ["//:__subpackages__"],
  2617  +    deps = ["//internal/protolegacy"],
  2618  +)
  2619  +
  2620  +alias(
  2621  +    name = "go_default_library",
  2622  +    actual = ":proto3_20190205_c823c79e",
  2623  +    visibility = ["//:__subpackages__"],
  2624  +)
  2625  diff -urN a/internal/testprotos/messageset/messagesetpb/BUILD.bazel b/internal/testprotos/messageset/messagesetpb/BUILD.bazel
  2626  --- a/internal/testprotos/messageset/messagesetpb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2627  +++ b/internal/testprotos/messageset/messagesetpb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2628  @@ -0,0 +1,18 @@
  2629  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2630  +
  2631  +go_library(
  2632  +    name = "messagesetpb",
  2633  +    srcs = ["message_set.pb.go"],
  2634  +    importpath = "google.golang.org/protobuf/internal/testprotos/messageset/messagesetpb",
  2635  +    visibility = ["//:__subpackages__"],
  2636  +    deps = [
  2637  +        "//reflect/protoreflect",
  2638  +        "//runtime/protoimpl",
  2639  +    ],
  2640  +)
  2641  +
  2642  +alias(
  2643  +    name = "go_default_library",
  2644  +    actual = ":messagesetpb",
  2645  +    visibility = ["//:__subpackages__"],
  2646  +)
  2647  diff -urN a/internal/testprotos/messageset/msetextpb/BUILD.bazel b/internal/testprotos/messageset/msetextpb/BUILD.bazel
  2648  --- a/internal/testprotos/messageset/msetextpb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2649  +++ b/internal/testprotos/messageset/msetextpb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2650  @@ -0,0 +1,19 @@
  2651  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2652  +
  2653  +go_library(
  2654  +    name = "msetextpb",
  2655  +    srcs = ["msetextpb.pb.go"],
  2656  +    importpath = "google.golang.org/protobuf/internal/testprotos/messageset/msetextpb",
  2657  +    visibility = ["//:__subpackages__"],
  2658  +    deps = [
  2659  +        "//internal/testprotos/messageset/messagesetpb",
  2660  +        "//reflect/protoreflect",
  2661  +        "//runtime/protoimpl",
  2662  +    ],
  2663  +)
  2664  +
  2665  +alias(
  2666  +    name = "go_default_library",
  2667  +    actual = ":msetextpb",
  2668  +    visibility = ["//:__subpackages__"],
  2669  +)
  2670  diff -urN a/internal/testprotos/news/BUILD.bazel b/internal/testprotos/news/BUILD.bazel
  2671  --- a/internal/testprotos/news/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2672  +++ b/internal/testprotos/news/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2673  @@ -0,0 +1,20 @@
  2674  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2675  +
  2676  +go_library(
  2677  +    name = "news",
  2678  +    srcs = ["news.pb.go"],
  2679  +    importpath = "google.golang.org/protobuf/internal/testprotos/news",
  2680  +    visibility = ["//:__subpackages__"],
  2681  +    deps = [
  2682  +        "//reflect/protoreflect",
  2683  +        "//runtime/protoimpl",
  2684  +        "//types/known/anypb",
  2685  +        "//types/known/timestamppb",
  2686  +    ],
  2687  +)
  2688  +
  2689  +alias(
  2690  +    name = "go_default_library",
  2691  +    actual = ":news",
  2692  +    visibility = ["//:__subpackages__"],
  2693  +)
  2694  diff -urN a/internal/testprotos/nullable/BUILD.bazel b/internal/testprotos/nullable/BUILD.bazel
  2695  --- a/internal/testprotos/nullable/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2696  +++ b/internal/testprotos/nullable/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2697  @@ -0,0 +1,33 @@
  2698  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2699  +
  2700  +go_library(
  2701  +    name = "nullable",
  2702  +    srcs = ["nullable.go"],
  2703  +    importpath = "google.golang.org/protobuf/internal/testprotos/nullable",
  2704  +    visibility = ["//:__subpackages__"],
  2705  +    deps = [
  2706  +        "//encoding/prototext",
  2707  +        "//encoding/protowire",
  2708  +        "//runtime/protoimpl",
  2709  +        "//types/descriptorpb",
  2710  +    ],
  2711  +)
  2712  +
  2713  +alias(
  2714  +    name = "go_default_library",
  2715  +    actual = ":nullable",
  2716  +    visibility = ["//:__subpackages__"],
  2717  +)
  2718  +
  2719  +go_test(
  2720  +    name = "nullable_test",
  2721  +    srcs = ["nullable_test.go"],
  2722  +    embed = [":nullable"],
  2723  +    deps = [
  2724  +        "//proto",
  2725  +        "//reflect/protoreflect",
  2726  +        "//runtime/protoimpl",
  2727  +        "//testing/protocmp",
  2728  +        "@com_github_google_go_cmp//cmp:go_default_library",
  2729  +    ],
  2730  +)
  2731  diff -urN a/internal/testprotos/order/BUILD.bazel b/internal/testprotos/order/BUILD.bazel
  2732  --- a/internal/testprotos/order/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2733  +++ b/internal/testprotos/order/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2734  @@ -0,0 +1,18 @@
  2735  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2736  +
  2737  +go_library(
  2738  +    name = "order",
  2739  +    srcs = ["order.pb.go"],
  2740  +    importpath = "google.golang.org/protobuf/internal/testprotos/order",
  2741  +    visibility = ["//:__subpackages__"],
  2742  +    deps = [
  2743  +        "//reflect/protoreflect",
  2744  +        "//runtime/protoimpl",
  2745  +    ],
  2746  +)
  2747  +
  2748  +alias(
  2749  +    name = "go_default_library",
  2750  +    actual = ":order",
  2751  +    visibility = ["//:__subpackages__"],
  2752  +)
  2753  diff -urN a/internal/testprotos/race/BUILD.bazel b/internal/testprotos/race/BUILD.bazel
  2754  --- a/internal/testprotos/race/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2755  +++ b/internal/testprotos/race/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2756  @@ -0,0 +1,11 @@
  2757  +load("@io_bazel_rules_go//go:def.bzl", "go_test")
  2758  +
  2759  +go_test(
  2760  +    name = "race_test",
  2761  +    srcs = ["race_test.go"],
  2762  +    deps = [
  2763  +        "//internal/testprotos/race/extender",
  2764  +        "//internal/testprotos/race/message",
  2765  +        "//proto",
  2766  +    ],
  2767  +)
  2768  diff -urN a/internal/testprotos/race/extender/BUILD.bazel b/internal/testprotos/race/extender/BUILD.bazel
  2769  --- a/internal/testprotos/race/extender/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2770  +++ b/internal/testprotos/race/extender/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2771  @@ -0,0 +1,19 @@
  2772  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2773  +
  2774  +go_library(
  2775  +    name = "extender",
  2776  +    srcs = ["test.pb.go"],
  2777  +    importpath = "google.golang.org/protobuf/internal/testprotos/race/extender",
  2778  +    visibility = ["//:__subpackages__"],
  2779  +    deps = [
  2780  +        "//internal/testprotos/race/message",
  2781  +        "//reflect/protoreflect",
  2782  +        "//runtime/protoimpl",
  2783  +    ],
  2784  +)
  2785  +
  2786  +alias(
  2787  +    name = "go_default_library",
  2788  +    actual = ":extender",
  2789  +    visibility = ["//:__subpackages__"],
  2790  +)
  2791  diff -urN a/internal/testprotos/race/message/BUILD.bazel b/internal/testprotos/race/message/BUILD.bazel
  2792  --- a/internal/testprotos/race/message/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2793  +++ b/internal/testprotos/race/message/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2794  @@ -0,0 +1,18 @@
  2795  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2796  +
  2797  +go_library(
  2798  +    name = "message",
  2799  +    srcs = ["test.pb.go"],
  2800  +    importpath = "google.golang.org/protobuf/internal/testprotos/race/message",
  2801  +    visibility = ["//:__subpackages__"],
  2802  +    deps = [
  2803  +        "//reflect/protoreflect",
  2804  +        "//runtime/protoimpl",
  2805  +    ],
  2806  +)
  2807  +
  2808  +alias(
  2809  +    name = "go_default_library",
  2810  +    actual = ":message",
  2811  +    visibility = ["//:__subpackages__"],
  2812  +)
  2813  diff -urN a/internal/testprotos/registry/BUILD.bazel b/internal/testprotos/registry/BUILD.bazel
  2814  --- a/internal/testprotos/registry/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2815  +++ b/internal/testprotos/registry/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2816  @@ -0,0 +1,18 @@
  2817  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2818  +
  2819  +go_library(
  2820  +    name = "registry",
  2821  +    srcs = ["test.pb.go"],
  2822  +    importpath = "google.golang.org/protobuf/internal/testprotos/registry",
  2823  +    visibility = ["//:__subpackages__"],
  2824  +    deps = [
  2825  +        "//reflect/protoreflect",
  2826  +        "//runtime/protoimpl",
  2827  +    ],
  2828  +)
  2829  +
  2830  +alias(
  2831  +    name = "go_default_library",
  2832  +    actual = ":registry",
  2833  +    visibility = ["//:__subpackages__"],
  2834  +)
  2835  diff -urN a/internal/testprotos/required/BUILD.bazel b/internal/testprotos/required/BUILD.bazel
  2836  --- a/internal/testprotos/required/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2837  +++ b/internal/testprotos/required/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2838  @@ -0,0 +1,18 @@
  2839  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2840  +
  2841  +go_library(
  2842  +    name = "required",
  2843  +    srcs = ["required.pb.go"],
  2844  +    importpath = "google.golang.org/protobuf/internal/testprotos/required",
  2845  +    visibility = ["//:__subpackages__"],
  2846  +    deps = [
  2847  +        "//reflect/protoreflect",
  2848  +        "//runtime/protoimpl",
  2849  +    ],
  2850  +)
  2851  +
  2852  +alias(
  2853  +    name = "go_default_library",
  2854  +    actual = ":required",
  2855  +    visibility = ["//:__subpackages__"],
  2856  +)
  2857  diff -urN a/internal/testprotos/test/BUILD.bazel b/internal/testprotos/test/BUILD.bazel
  2858  --- a/internal/testprotos/test/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2859  +++ b/internal/testprotos/test/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2860  @@ -0,0 +1,25 @@
  2861  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2862  +
  2863  +go_library(
  2864  +    name = "test",
  2865  +    srcs = [
  2866  +        "ext.pb.go",
  2867  +        "test.pb.go",
  2868  +        "test_import.pb.go",
  2869  +        "test_public.pb.go",
  2870  +    ],
  2871  +    importpath = "google.golang.org/protobuf/internal/testprotos/test",
  2872  +    visibility = ["//:__subpackages__"],
  2873  +    deps = [
  2874  +        "//internal/testprotos/enums",
  2875  +        "//proto",
  2876  +        "//reflect/protoreflect",
  2877  +        "//runtime/protoimpl",
  2878  +    ],
  2879  +)
  2880  +
  2881  +alias(
  2882  +    name = "go_default_library",
  2883  +    actual = ":test",
  2884  +    visibility = ["//:__subpackages__"],
  2885  +)
  2886  diff -urN a/internal/testprotos/test/weak1/BUILD.bazel b/internal/testprotos/test/weak1/BUILD.bazel
  2887  --- a/internal/testprotos/test/weak1/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2888  +++ b/internal/testprotos/test/weak1/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2889  @@ -0,0 +1,18 @@
  2890  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2891  +
  2892  +go_library(
  2893  +    name = "weak1",
  2894  +    srcs = ["test_weak.pb.go"],
  2895  +    importpath = "google.golang.org/protobuf/internal/testprotos/test/weak1",
  2896  +    visibility = ["//:__subpackages__"],
  2897  +    deps = [
  2898  +        "//reflect/protoreflect",
  2899  +        "//runtime/protoimpl",
  2900  +    ],
  2901  +)
  2902  +
  2903  +alias(
  2904  +    name = "go_default_library",
  2905  +    actual = ":weak1",
  2906  +    visibility = ["//:__subpackages__"],
  2907  +)
  2908  diff -urN a/internal/testprotos/test/weak2/BUILD.bazel b/internal/testprotos/test/weak2/BUILD.bazel
  2909  --- a/internal/testprotos/test/weak2/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2910  +++ b/internal/testprotos/test/weak2/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2911  @@ -0,0 +1,18 @@
  2912  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2913  +
  2914  +go_library(
  2915  +    name = "weak2",
  2916  +    srcs = ["test_weak.pb.go"],
  2917  +    importpath = "google.golang.org/protobuf/internal/testprotos/test/weak2",
  2918  +    visibility = ["//:__subpackages__"],
  2919  +    deps = [
  2920  +        "//reflect/protoreflect",
  2921  +        "//runtime/protoimpl",
  2922  +    ],
  2923  +)
  2924  +
  2925  +alias(
  2926  +    name = "go_default_library",
  2927  +    actual = ":weak2",
  2928  +    visibility = ["//:__subpackages__"],
  2929  +)
  2930  diff -urN a/internal/testprotos/test3/BUILD.bazel b/internal/testprotos/test3/BUILD.bazel
  2931  --- a/internal/testprotos/test3/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2932  +++ b/internal/testprotos/test3/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2933  @@ -0,0 +1,23 @@
  2934  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2935  +
  2936  +go_library(
  2937  +    name = "test3",
  2938  +    srcs = [
  2939  +        "test.pb.go",
  2940  +        "test_extension.pb.go",
  2941  +        "test_import.pb.go",
  2942  +    ],
  2943  +    importpath = "google.golang.org/protobuf/internal/testprotos/test3",
  2944  +    visibility = ["//:__subpackages__"],
  2945  +    deps = [
  2946  +        "//reflect/protoreflect",
  2947  +        "//runtime/protoimpl",
  2948  +        "//types/descriptorpb",
  2949  +    ],
  2950  +)
  2951  +
  2952  +alias(
  2953  +    name = "go_default_library",
  2954  +    actual = ":test3",
  2955  +    visibility = ["//:__subpackages__"],
  2956  +)
  2957  diff -urN a/internal/testprotos/testeditions/BUILD.bazel b/internal/testprotos/testeditions/BUILD.bazel
  2958  --- a/internal/testprotos/testeditions/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2959  +++ b/internal/testprotos/testeditions/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2960  @@ -0,0 +1,21 @@
  2961  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2962  +
  2963  +go_library(
  2964  +    name = "testeditions",
  2965  +    srcs = [
  2966  +        "test.pb.go",
  2967  +        "test_extension.pb.go",
  2968  +    ],
  2969  +    importpath = "google.golang.org/protobuf/internal/testprotos/testeditions",
  2970  +    visibility = ["//:__subpackages__"],
  2971  +    deps = [
  2972  +        "//reflect/protoreflect",
  2973  +        "//runtime/protoimpl",
  2974  +    ],
  2975  +)
  2976  +
  2977  +alias(
  2978  +    name = "go_default_library",
  2979  +    actual = ":testeditions",
  2980  +    visibility = ["//:__subpackages__"],
  2981  +)
  2982  diff -urN a/internal/testprotos/textpb2/BUILD.bazel b/internal/testprotos/textpb2/BUILD.bazel
  2983  --- a/internal/testprotos/textpb2/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  2984  +++ b/internal/testprotos/textpb2/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  2985  @@ -0,0 +1,25 @@
  2986  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  2987  +
  2988  +go_library(
  2989  +    name = "textpb2",
  2990  +    srcs = ["test.pb.go"],
  2991  +    importpath = "google.golang.org/protobuf/internal/testprotos/textpb2",
  2992  +    visibility = ["//:__subpackages__"],
  2993  +    deps = [
  2994  +        "//reflect/protoreflect",
  2995  +        "//runtime/protoimpl",
  2996  +        "//types/known/anypb",
  2997  +        "//types/known/durationpb",
  2998  +        "//types/known/emptypb",
  2999  +        "//types/known/fieldmaskpb",
  3000  +        "//types/known/structpb",
  3001  +        "//types/known/timestamppb",
  3002  +        "//types/known/wrapperspb",
  3003  +    ],
  3004  +)
  3005  +
  3006  +alias(
  3007  +    name = "go_default_library",
  3008  +    actual = ":textpb2",
  3009  +    visibility = ["//:__subpackages__"],
  3010  +)
  3011  diff -urN a/internal/testprotos/textpb3/BUILD.bazel b/internal/testprotos/textpb3/BUILD.bazel
  3012  --- a/internal/testprotos/textpb3/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3013  +++ b/internal/testprotos/textpb3/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3014  @@ -0,0 +1,18 @@
  3015  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3016  +
  3017  +go_library(
  3018  +    name = "textpb3",
  3019  +    srcs = ["test.pb.go"],
  3020  +    importpath = "google.golang.org/protobuf/internal/testprotos/textpb3",
  3021  +    visibility = ["//:__subpackages__"],
  3022  +    deps = [
  3023  +        "//reflect/protoreflect",
  3024  +        "//runtime/protoimpl",
  3025  +    ],
  3026  +)
  3027  +
  3028  +alias(
  3029  +    name = "go_default_library",
  3030  +    actual = ":textpb3",
  3031  +    visibility = ["//:__subpackages__"],
  3032  +)
  3033  diff -urN a/internal/testprotos/textpbeditions/BUILD.bazel b/internal/testprotos/textpbeditions/BUILD.bazel
  3034  --- a/internal/testprotos/textpbeditions/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3035  +++ b/internal/testprotos/textpbeditions/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3036  @@ -0,0 +1,25 @@
  3037  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3038  +
  3039  +go_library(
  3040  +    name = "textpbeditions",
  3041  +    srcs = ["test2.pb.go"],
  3042  +    importpath = "google.golang.org/protobuf/internal/testprotos/textpbeditions",
  3043  +    visibility = ["//:__subpackages__"],
  3044  +    deps = [
  3045  +        "//reflect/protoreflect",
  3046  +        "//runtime/protoimpl",
  3047  +        "//types/known/anypb",
  3048  +        "//types/known/durationpb",
  3049  +        "//types/known/emptypb",
  3050  +        "//types/known/fieldmaskpb",
  3051  +        "//types/known/structpb",
  3052  +        "//types/known/timestamppb",
  3053  +        "//types/known/wrapperspb",
  3054  +    ],
  3055  +)
  3056  +
  3057  +alias(
  3058  +    name = "go_default_library",
  3059  +    actual = ":textpbeditions",
  3060  +    visibility = ["//:__subpackages__"],
  3061  +)
  3062  diff -urN a/internal/version/BUILD.bazel b/internal/version/BUILD.bazel
  3063  --- a/internal/version/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3064  +++ b/internal/version/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3065  @@ -0,0 +1,14 @@
  3066  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3067  +
  3068  +go_library(
  3069  +    name = "version",
  3070  +    srcs = ["version.go"],
  3071  +    importpath = "google.golang.org/protobuf/internal/version",
  3072  +    visibility = ["//:__subpackages__"],
  3073  +)
  3074  +
  3075  +alias(
  3076  +    name = "go_default_library",
  3077  +    actual = ":version",
  3078  +    visibility = ["//:__subpackages__"],
  3079  +)
  3080  diff -urN a/internal/weakdeps/BUILD.bazel b/internal/weakdeps/BUILD.bazel
  3081  --- a/internal/weakdeps/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3082  +++ b/internal/weakdeps/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3083  @@ -0,0 +1,14 @@
  3084  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3085  +
  3086  +go_library(
  3087  +    name = "weakdeps",
  3088  +    srcs = ["doc.go"],
  3089  +    importpath = "google.golang.org/protobuf/internal/weakdeps",
  3090  +    visibility = ["//:__subpackages__"],
  3091  +)
  3092  +
  3093  +alias(
  3094  +    name = "go_default_library",
  3095  +    actual = ":weakdeps",
  3096  +    visibility = ["//:__subpackages__"],
  3097  +)
  3098  diff -urN a/proto/BUILD.bazel b/proto/BUILD.bazel
  3099  --- a/proto/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3100  +++ b/proto/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3101  @@ -0,0 +1,98 @@
  3102  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3103  +
  3104  +go_library(
  3105  +    name = "proto",
  3106  +    srcs = [
  3107  +        "checkinit.go",
  3108  +        "decode.go",
  3109  +        "decode_gen.go",
  3110  +        "doc.go",
  3111  +        "encode.go",
  3112  +        "encode_gen.go",
  3113  +        "equal.go",
  3114  +        "extension.go",
  3115  +        "merge.go",
  3116  +        "messageset.go",
  3117  +        "proto.go",
  3118  +        "proto_methods.go",
  3119  +        "reset.go",
  3120  +        "size.go",
  3121  +        "size_gen.go",
  3122  +        "wrappers.go",
  3123  +    ],
  3124  +    importpath = "google.golang.org/protobuf/proto",
  3125  +    visibility = ["//visibility:public"],
  3126  +    deps = [
  3127  +        "//encoding/protowire",
  3128  +        "//internal/encoding/messageset",
  3129  +        "//internal/errors",
  3130  +        "//internal/flags",
  3131  +        "//internal/genid",
  3132  +        "//internal/order",
  3133  +        "//internal/pragma",
  3134  +        "//internal/strs",
  3135  +        "//reflect/protoreflect",
  3136  +        "//reflect/protoregistry",
  3137  +        "//runtime/protoiface",
  3138  +    ],
  3139  +)
  3140  +
  3141  +alias(
  3142  +    name = "go_default_library",
  3143  +    actual = ":proto",
  3144  +    visibility = ["//visibility:public"],
  3145  +)
  3146  +
  3147  +go_test(
  3148  +    name = "proto_test",
  3149  +    srcs = [
  3150  +        "bench_test.go",
  3151  +        "checkinit_test.go",
  3152  +        "decode_test.go",
  3153  +        "encode_test.go",
  3154  +        "equal_test.go",
  3155  +        "extension_test.go",
  3156  +        "fuzz_test.go",
  3157  +        "merge_test.go",
  3158  +        "messageset_test.go",
  3159  +        "methods_test.go",
  3160  +        "nil_test.go",
  3161  +        "noenforceutf8_test.go",
  3162  +        "reset_test.go",
  3163  +        "testmessages_test.go",
  3164  +        "validate_test.go",
  3165  +        "weak_test.go",
  3166  +    ],
  3167  +    deps = [
  3168  +        ":proto",
  3169  +        "//encoding/prototext",
  3170  +        "//encoding/protowire",
  3171  +        "//internal/errors",
  3172  +        "//internal/filedesc",
  3173  +        "//internal/flags",
  3174  +        "//internal/impl",
  3175  +        "//internal/pragma",
  3176  +        "//internal/protobuild",
  3177  +        "//internal/testprotos/editionsfuzztest",
  3178  +        "//internal/testprotos/legacy",
  3179  +        "//internal/testprotos/legacy/proto2_20160225_2fc053c5",
  3180  +        "//internal/testprotos/messageset/messagesetpb",
  3181  +        "//internal/testprotos/messageset/msetextpb",
  3182  +        "//internal/testprotos/order",
  3183  +        "//internal/testprotos/required",
  3184  +        "//internal/testprotos/test",
  3185  +        "//internal/testprotos/test/weak1",
  3186  +        "//internal/testprotos/test3",
  3187  +        "//internal/testprotos/testeditions",
  3188  +        "//reflect/protodesc",
  3189  +        "//reflect/protoreflect",
  3190  +        "//reflect/protoregistry",
  3191  +        "//runtime/protoiface",
  3192  +        "//runtime/protoimpl",
  3193  +        "//testing/protocmp",
  3194  +        "//testing/protopack",
  3195  +        "//types/descriptorpb",
  3196  +        "//types/dynamicpb",
  3197  +        "@com_github_google_go_cmp//cmp:go_default_library",
  3198  +    ],
  3199  +)
  3200  diff -urN a/protoadapt/BUILD.bazel b/protoadapt/BUILD.bazel
  3201  --- a/protoadapt/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3202  +++ b/protoadapt/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3203  @@ -0,0 +1,19 @@
  3204  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3205  +
  3206  +go_library(
  3207  +    name = "protoadapt",
  3208  +    srcs = ["convert.go"],
  3209  +    importpath = "google.golang.org/protobuf/protoadapt",
  3210  +    visibility = ["//visibility:public"],
  3211  +    deps = [
  3212  +        "//proto",
  3213  +        "//runtime/protoiface",
  3214  +        "//runtime/protoimpl",
  3215  +    ],
  3216  +)
  3217  +
  3218  +alias(
  3219  +    name = "go_default_library",
  3220  +    actual = ":protoadapt",
  3221  +    visibility = ["//visibility:public"],
  3222  +)
  3223  diff -urN a/reflect/protodesc/BUILD.bazel b/reflect/protodesc/BUILD.bazel
  3224  --- a/reflect/protodesc/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3225  +++ b/reflect/protodesc/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3226  @@ -0,0 +1,52 @@
  3227  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3228  +
  3229  +go_library(
  3230  +    name = "protodesc",
  3231  +    srcs = [
  3232  +        "desc.go",
  3233  +        "desc_init.go",
  3234  +        "desc_resolve.go",
  3235  +        "desc_validate.go",
  3236  +        "editions.go",
  3237  +        "proto.go",
  3238  +    ],
  3239  +    importpath = "google.golang.org/protobuf/reflect/protodesc",
  3240  +    visibility = ["//visibility:public"],
  3241  +    deps = [
  3242  +        "//encoding/protowire",
  3243  +        "//internal/editiondefaults",
  3244  +        "//internal/encoding/defval",
  3245  +        "//internal/errors",
  3246  +        "//internal/filedesc",
  3247  +        "//internal/flags",
  3248  +        "//internal/genid",
  3249  +        "//internal/pragma",
  3250  +        "//internal/strs",
  3251  +        "//proto",
  3252  +        "//reflect/protoreflect",
  3253  +        "//reflect/protoregistry",
  3254  +        "//types/descriptorpb",
  3255  +        "//types/gofeaturespb",
  3256  +    ],
  3257  +)
  3258  +
  3259  +alias(
  3260  +    name = "go_default_library",
  3261  +    actual = ":protodesc",
  3262  +    visibility = ["//visibility:public"],
  3263  +)
  3264  +
  3265  +go_test(
  3266  +    name = "protodesc_test",
  3267  +    srcs = ["file_test.go"],
  3268  +    embed = [":protodesc"],
  3269  +    deps = [
  3270  +        "//encoding/prototext",
  3271  +        "//internal/filedesc",
  3272  +        "//internal/flags",
  3273  +        "//proto",
  3274  +        "//reflect/protoreflect",
  3275  +        "//reflect/protoregistry",
  3276  +        "//types/descriptorpb",
  3277  +    ],
  3278  +)
  3279  diff -urN a/reflect/protopath/BUILD.bazel b/reflect/protopath/BUILD.bazel
  3280  --- a/reflect/protopath/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3281  +++ b/reflect/protopath/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3282  @@ -0,0 +1,22 @@
  3283  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3284  +
  3285  +go_library(
  3286  +    name = "protopath",
  3287  +    srcs = [
  3288  +        "path.go",
  3289  +        "step.go",
  3290  +    ],
  3291  +    importpath = "google.golang.org/protobuf/reflect/protopath",
  3292  +    visibility = ["//visibility:public"],
  3293  +    deps = [
  3294  +        "//internal/encoding/text",
  3295  +        "//internal/msgfmt",
  3296  +        "//reflect/protoreflect",
  3297  +    ],
  3298  +)
  3299  +
  3300  +alias(
  3301  +    name = "go_default_library",
  3302  +    actual = ":protopath",
  3303  +    visibility = ["//visibility:public"],
  3304  +)
  3305  diff -urN a/reflect/protorange/BUILD.bazel b/reflect/protorange/BUILD.bazel
  3306  --- a/reflect/protorange/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3307  +++ b/reflect/protorange/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3308  @@ -0,0 +1,46 @@
  3309  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3310  +
  3311  +go_library(
  3312  +    name = "protorange",
  3313  +    srcs = ["range.go"],
  3314  +    importpath = "google.golang.org/protobuf/reflect/protorange",
  3315  +    visibility = ["//visibility:public"],
  3316  +    deps = [
  3317  +        "//internal/genid",
  3318  +        "//internal/order",
  3319  +        "//proto",
  3320  +        "//reflect/protopath",
  3321  +        "//reflect/protoreflect",
  3322  +        "//reflect/protoregistry",
  3323  +    ],
  3324  +)
  3325  +
  3326  +alias(
  3327  +    name = "go_default_library",
  3328  +    actual = ":protorange",
  3329  +    visibility = ["//visibility:public"],
  3330  +)
  3331  +
  3332  +go_test(
  3333  +    name = "protorange_test",
  3334  +    srcs = [
  3335  +        "example_test.go",
  3336  +        "range_test.go",
  3337  +    ],
  3338  +    embed = [":protorange"],
  3339  +    deps = [
  3340  +        "//encoding/protojson",
  3341  +        "//internal/detrand",
  3342  +        "//internal/testprotos/news",
  3343  +        "//proto",
  3344  +        "//reflect/protopath",
  3345  +        "//reflect/protoreflect",
  3346  +        "//reflect/protoregistry",
  3347  +        "//testing/protocmp",
  3348  +        "//testing/protopack",
  3349  +        "//types/known/anypb",
  3350  +        "//types/known/timestamppb",
  3351  +        "@com_github_google_go_cmp//cmp:go_default_library",
  3352  +        "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
  3353  +    ],
  3354  +)
  3355  diff -urN a/reflect/protoreflect/BUILD.bazel b/reflect/protoreflect/BUILD.bazel
  3356  --- a/reflect/protoreflect/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3357  +++ b/reflect/protoreflect/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3358  @@ -0,0 +1,40 @@
  3359  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3360  +
  3361  +go_library(
  3362  +    name = "protoreflect",
  3363  +    srcs = [
  3364  +        "methods.go",
  3365  +        "proto.go",
  3366  +        "source.go",
  3367  +        "source_gen.go",
  3368  +        "type.go",
  3369  +        "value.go",
  3370  +        "value_equal.go",
  3371  +        "value_pure.go",
  3372  +        "value_union.go",
  3373  +        "value_unsafe_go120.go",
  3374  +        "value_unsafe_go121.go",
  3375  +    ],
  3376  +    importpath = "google.golang.org/protobuf/reflect/protoreflect",
  3377  +    visibility = ["//visibility:public"],
  3378  +    deps = [
  3379  +        "//encoding/protowire",
  3380  +        "//internal/pragma",
  3381  +    ],
  3382  +)
  3383  +
  3384  +alias(
  3385  +    name = "go_default_library",
  3386  +    actual = ":protoreflect",
  3387  +    visibility = ["//visibility:public"],
  3388  +)
  3389  +
  3390  +go_test(
  3391  +    name = "protoreflect_test",
  3392  +    srcs = [
  3393  +        "proto_test.go",
  3394  +        "source_test.go",
  3395  +        "value_test.go",
  3396  +    ],
  3397  +    embed = [":protoreflect"],
  3398  +)
  3399  diff -urN a/reflect/protoregistry/BUILD.bazel b/reflect/protoregistry/BUILD.bazel
  3400  --- a/reflect/protoregistry/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3401  +++ b/reflect/protoregistry/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3402  @@ -0,0 +1,36 @@
  3403  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3404  +
  3405  +go_library(
  3406  +    name = "protoregistry",
  3407  +    srcs = ["registry.go"],
  3408  +    importpath = "google.golang.org/protobuf/reflect/protoregistry",
  3409  +    visibility = ["//visibility:public"],
  3410  +    deps = [
  3411  +        "//internal/encoding/messageset",
  3412  +        "//internal/errors",
  3413  +        "//internal/flags",
  3414  +        "//reflect/protoreflect",
  3415  +    ],
  3416  +)
  3417  +
  3418  +alias(
  3419  +    name = "go_default_library",
  3420  +    actual = ":protoregistry",
  3421  +    visibility = ["//visibility:public"],
  3422  +)
  3423  +
  3424  +go_test(
  3425  +    name = "protoregistry_test",
  3426  +    srcs = ["registry_test.go"],
  3427  +    deps = [
  3428  +        ":protoregistry",
  3429  +        "//encoding/prototext",
  3430  +        "//internal/impl",
  3431  +        "//internal/testprotos/registry",
  3432  +        "//reflect/protodesc",
  3433  +        "//reflect/protoreflect",
  3434  +        "//types/descriptorpb",
  3435  +        "@com_github_google_go_cmp//cmp:go_default_library",
  3436  +        "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
  3437  +    ],
  3438  +)
  3439  diff -urN a/runtime/protoiface/BUILD.bazel b/runtime/protoiface/BUILD.bazel
  3440  --- a/runtime/protoiface/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3441  +++ b/runtime/protoiface/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3442  @@ -0,0 +1,21 @@
  3443  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3444  +
  3445  +go_library(
  3446  +    name = "protoiface",
  3447  +    srcs = [
  3448  +        "legacy.go",
  3449  +        "methods.go",
  3450  +    ],
  3451  +    importpath = "google.golang.org/protobuf/runtime/protoiface",
  3452  +    visibility = ["//visibility:public"],
  3453  +    deps = [
  3454  +        "//internal/pragma",
  3455  +        "//reflect/protoreflect",
  3456  +    ],
  3457  +)
  3458  +
  3459  +alias(
  3460  +    name = "go_default_library",
  3461  +    actual = ":protoiface",
  3462  +    visibility = ["//visibility:public"],
  3463  +)
  3464  diff -urN a/runtime/protoimpl/BUILD.bazel b/runtime/protoimpl/BUILD.bazel
  3465  --- a/runtime/protoimpl/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3466  +++ b/runtime/protoimpl/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3467  @@ -0,0 +1,23 @@
  3468  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3469  +
  3470  +go_library(
  3471  +    name = "protoimpl",
  3472  +    srcs = [
  3473  +        "impl.go",
  3474  +        "version.go",
  3475  +    ],
  3476  +    importpath = "google.golang.org/protobuf/runtime/protoimpl",
  3477  +    visibility = ["//visibility:public"],
  3478  +    deps = [
  3479  +        "//internal/filedesc",
  3480  +        "//internal/filetype",
  3481  +        "//internal/impl",
  3482  +        "//internal/version",
  3483  +    ],
  3484  +)
  3485  +
  3486  +alias(
  3487  +    name = "go_default_library",
  3488  +    actual = ":protoimpl",
  3489  +    visibility = ["//visibility:public"],
  3490  +)
  3491  diff -urN a/testing/protocmp/BUILD.bazel b/testing/protocmp/BUILD.bazel
  3492  --- a/testing/protocmp/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3493  +++ b/testing/protocmp/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3494  @@ -0,0 +1,53 @@
  3495  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3496  +
  3497  +go_library(
  3498  +    name = "protocmp",
  3499  +    srcs = [
  3500  +        "reflect.go",
  3501  +        "util.go",
  3502  +        "xform.go",
  3503  +    ],
  3504  +    importpath = "google.golang.org/protobuf/testing/protocmp",
  3505  +    visibility = ["//visibility:public"],
  3506  +    deps = [
  3507  +        "//encoding/protowire",
  3508  +        "//internal/genid",
  3509  +        "//internal/msgfmt",
  3510  +        "//proto",
  3511  +        "//reflect/protoreflect",
  3512  +        "//reflect/protoregistry",
  3513  +        "//runtime/protoiface",
  3514  +        "//runtime/protoimpl",
  3515  +        "@com_github_google_go_cmp//cmp:go_default_library",
  3516  +        "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
  3517  +    ],
  3518  +)
  3519  +
  3520  +alias(
  3521  +    name = "go_default_library",
  3522  +    actual = ":protocmp",
  3523  +    visibility = ["//visibility:public"],
  3524  +)
  3525  +
  3526  +go_test(
  3527  +    name = "protocmp_test",
  3528  +    srcs = [
  3529  +        "reflect_test.go",
  3530  +        "util_test.go",
  3531  +        "xform_test.go",
  3532  +    ],
  3533  +    embed = [":protocmp"],
  3534  +    deps = [
  3535  +        "//internal/detrand",
  3536  +        "//internal/testprotos/test",
  3537  +        "//internal/testprotos/textpb2",
  3538  +        "//proto",
  3539  +        "//reflect/protoreflect",
  3540  +        "//reflect/protoregistry",
  3541  +        "//testing/protopack",
  3542  +        "//types/dynamicpb",
  3543  +        "//types/known/anypb",
  3544  +        "//types/known/wrapperspb",
  3545  +        "@com_github_google_go_cmp//cmp:go_default_library",
  3546  +    ],
  3547  +)
  3548  diff -urN a/testing/protopack/BUILD.bazel b/testing/protopack/BUILD.bazel
  3549  --- a/testing/protopack/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3550  +++ b/testing/protopack/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3551  @@ -0,0 +1,31 @@
  3552  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3553  +
  3554  +go_library(
  3555  +    name = "protopack",
  3556  +    srcs = ["pack.go"],
  3557  +    importpath = "google.golang.org/protobuf/testing/protopack",
  3558  +    visibility = ["//visibility:public"],
  3559  +    deps = [
  3560  +        "//encoding/protowire",
  3561  +        "//reflect/protoreflect",
  3562  +    ],
  3563  +)
  3564  +
  3565  +alias(
  3566  +    name = "go_default_library",
  3567  +    actual = ":protopack",
  3568  +    visibility = ["//visibility:public"],
  3569  +)
  3570  +
  3571  +go_test(
  3572  +    name = "protopack_test",
  3573  +    srcs = ["pack_test.go"],
  3574  +    embed = [":protopack"],
  3575  +    deps = [
  3576  +        "//encoding/prototext",
  3577  +        "//reflect/protodesc",
  3578  +        "//reflect/protoreflect",
  3579  +        "//types/descriptorpb",
  3580  +        "@com_github_google_go_cmp//cmp:go_default_library",
  3581  +    ],
  3582  +)
  3583  diff -urN a/testing/prototest/BUILD.bazel b/testing/prototest/BUILD.bazel
  3584  --- a/testing/prototest/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3585  +++ b/testing/prototest/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3586  @@ -0,0 +1,43 @@
  3587  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3588  +
  3589  +go_library(
  3590  +    name = "prototest",
  3591  +    srcs = [
  3592  +        "enum.go",
  3593  +        "message.go",
  3594  +    ],
  3595  +    importpath = "google.golang.org/protobuf/testing/prototest",
  3596  +    visibility = ["//visibility:public"],
  3597  +    deps = [
  3598  +        "//encoding/prototext",
  3599  +        "//encoding/protowire",
  3600  +        "//proto",
  3601  +        "//reflect/protoreflect",
  3602  +        "//reflect/protoregistry",
  3603  +    ],
  3604  +)
  3605  +
  3606  +alias(
  3607  +    name = "go_default_library",
  3608  +    actual = ":prototest",
  3609  +    visibility = ["//visibility:public"],
  3610  +)
  3611  +
  3612  +go_test(
  3613  +    name = "prototest_test",
  3614  +    srcs = ["prototest_test.go"],
  3615  +    deps = [
  3616  +        ":prototest",
  3617  +        "//internal/flags",
  3618  +        "//internal/testprotos/irregular",
  3619  +        "//internal/testprotos/legacy",
  3620  +        "//internal/testprotos/legacy/proto2_20160225_2fc053c5",
  3621  +        "//internal/testprotos/test",
  3622  +        "//internal/testprotos/test/weak1",
  3623  +        "//internal/testprotos/test/weak2",
  3624  +        "//internal/testprotos/test3",
  3625  +        "//internal/testprotos/testeditions",
  3626  +        "//proto",
  3627  +        "//runtime/protoimpl",
  3628  +    ],
  3629  +)
  3630  diff -urN a/types/descriptorpb/BUILD.bazel b/types/descriptorpb/BUILD.bazel
  3631  --- a/types/descriptorpb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3632  +++ b/types/descriptorpb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3633  @@ -0,0 +1,18 @@
  3634  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3635  +
  3636  +go_library(
  3637  +    name = "descriptorpb",
  3638  +    srcs = ["descriptor.pb.go"],
  3639  +    importpath = "google.golang.org/protobuf/types/descriptorpb",
  3640  +    visibility = ["//visibility:public"],
  3641  +    deps = [
  3642  +        "//reflect/protoreflect",
  3643  +        "//runtime/protoimpl",
  3644  +    ],
  3645  +)
  3646  +
  3647  +alias(
  3648  +    name = "go_default_library",
  3649  +    actual = ":descriptorpb",
  3650  +    visibility = ["//visibility:public"],
  3651  +)
  3652  diff -urN a/types/dynamicpb/BUILD.bazel b/types/dynamicpb/BUILD.bazel
  3653  --- a/types/dynamicpb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3654  +++ b/types/dynamicpb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3655  @@ -0,0 +1,43 @@
  3656  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3657  +
  3658  +go_library(
  3659  +    name = "dynamicpb",
  3660  +    srcs = [
  3661  +        "dynamic.go",
  3662  +        "types.go",
  3663  +    ],
  3664  +    importpath = "google.golang.org/protobuf/types/dynamicpb",
  3665  +    visibility = ["//visibility:public"],
  3666  +    deps = [
  3667  +        "//internal/errors",
  3668  +        "//reflect/protoreflect",
  3669  +        "//reflect/protoregistry",
  3670  +        "//runtime/protoiface",
  3671  +        "//runtime/protoimpl",
  3672  +    ],
  3673  +)
  3674  +
  3675  +alias(
  3676  +    name = "go_default_library",
  3677  +    actual = ":dynamicpb",
  3678  +    visibility = ["//visibility:public"],
  3679  +)
  3680  +
  3681  +go_test(
  3682  +    name = "dynamicpb_test",
  3683  +    srcs = [
  3684  +        "dynamic_test.go",
  3685  +        "types_test.go",
  3686  +    ],
  3687  +    deps = [
  3688  +        ":dynamicpb",
  3689  +        "//internal/testprotos/registry",
  3690  +        "//internal/testprotos/test",
  3691  +        "//internal/testprotos/test3",
  3692  +        "//proto",
  3693  +        "//reflect/protoreflect",
  3694  +        "//reflect/protoregistry",
  3695  +        "//testing/prototest",
  3696  +        "//types/descriptorpb",
  3697  +    ],
  3698  +)
  3699  diff -urN a/types/gofeaturespb/BUILD.bazel b/types/gofeaturespb/BUILD.bazel
  3700  --- a/types/gofeaturespb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3701  +++ b/types/gofeaturespb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3702  @@ -0,0 +1,19 @@
  3703  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3704  +
  3705  +go_library(
  3706  +    name = "gofeaturespb",
  3707  +    srcs = ["go_features.pb.go"],
  3708  +    importpath = "google.golang.org/protobuf/types/gofeaturespb",
  3709  +    visibility = ["//visibility:public"],
  3710  +    deps = [
  3711  +        "//reflect/protoreflect",
  3712  +        "//runtime/protoimpl",
  3713  +        "//types/descriptorpb",
  3714  +    ],
  3715  +)
  3716  +
  3717  +alias(
  3718  +    name = "go_default_library",
  3719  +    actual = ":gofeaturespb",
  3720  +    visibility = ["//visibility:public"],
  3721  +)
  3722  diff -urN a/types/known/anypb/BUILD.bazel b/types/known/anypb/BUILD.bazel
  3723  --- a/types/known/anypb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3724  +++ b/types/known/anypb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3725  @@ -0,0 +1,35 @@
  3726  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3727  +
  3728  +go_library(
  3729  +    name = "anypb",
  3730  +    srcs = ["any.pb.go"],
  3731  +    importpath = "google.golang.org/protobuf/types/known/anypb",
  3732  +    visibility = ["//visibility:public"],
  3733  +    deps = [
  3734  +        "//proto",
  3735  +        "//reflect/protoreflect",
  3736  +        "//reflect/protoregistry",
  3737  +        "//runtime/protoimpl",
  3738  +    ],
  3739  +)
  3740  +
  3741  +alias(
  3742  +    name = "go_default_library",
  3743  +    actual = ":anypb",
  3744  +    visibility = ["//visibility:public"],
  3745  +)
  3746  +
  3747  +go_test(
  3748  +    name = "anypb_test",
  3749  +    srcs = ["any_test.go"],
  3750  +    deps = [
  3751  +        ":anypb",
  3752  +        "//internal/testprotos/test",
  3753  +        "//proto",
  3754  +        "//reflect/protoreflect",
  3755  +        "//testing/protocmp",
  3756  +        "//types/known/emptypb",
  3757  +        "//types/known/wrapperspb",
  3758  +        "@com_github_google_go_cmp//cmp:go_default_library",
  3759  +    ],
  3760  +)
  3761  diff -urN a/types/known/apipb/BUILD.bazel b/types/known/apipb/BUILD.bazel
  3762  --- a/types/known/apipb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3763  +++ b/types/known/apipb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3764  @@ -0,0 +1,20 @@
  3765  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3766  +
  3767  +go_library(
  3768  +    name = "apipb",
  3769  +    srcs = ["api.pb.go"],
  3770  +    importpath = "google.golang.org/protobuf/types/known/apipb",
  3771  +    visibility = ["//visibility:public"],
  3772  +    deps = [
  3773  +        "//reflect/protoreflect",
  3774  +        "//runtime/protoimpl",
  3775  +        "//types/known/sourcecontextpb",
  3776  +        "//types/known/typepb",
  3777  +    ],
  3778  +)
  3779  +
  3780  +alias(
  3781  +    name = "go_default_library",
  3782  +    actual = ":apipb",
  3783  +    visibility = ["//visibility:public"],
  3784  +)
  3785  diff -urN a/types/known/durationpb/BUILD.bazel b/types/known/durationpb/BUILD.bazel
  3786  --- a/types/known/durationpb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3787  +++ b/types/known/durationpb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3788  @@ -0,0 +1,30 @@
  3789  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3790  +
  3791  +go_library(
  3792  +    name = "durationpb",
  3793  +    srcs = ["duration.pb.go"],
  3794  +    importpath = "google.golang.org/protobuf/types/known/durationpb",
  3795  +    visibility = ["//visibility:public"],
  3796  +    deps = [
  3797  +        "//reflect/protoreflect",
  3798  +        "//runtime/protoimpl",
  3799  +    ],
  3800  +)
  3801  +
  3802  +alias(
  3803  +    name = "go_default_library",
  3804  +    actual = ":durationpb",
  3805  +    visibility = ["//visibility:public"],
  3806  +)
  3807  +
  3808  +go_test(
  3809  +    name = "durationpb_test",
  3810  +    srcs = ["duration_test.go"],
  3811  +    deps = [
  3812  +        ":durationpb",
  3813  +        "//internal/detrand",
  3814  +        "//testing/protocmp",
  3815  +        "@com_github_google_go_cmp//cmp:go_default_library",
  3816  +        "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
  3817  +    ],
  3818  +)
  3819  diff -urN a/types/known/emptypb/BUILD.bazel b/types/known/emptypb/BUILD.bazel
  3820  --- a/types/known/emptypb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3821  +++ b/types/known/emptypb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3822  @@ -0,0 +1,18 @@
  3823  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3824  +
  3825  +go_library(
  3826  +    name = "emptypb",
  3827  +    srcs = ["empty.pb.go"],
  3828  +    importpath = "google.golang.org/protobuf/types/known/emptypb",
  3829  +    visibility = ["//visibility:public"],
  3830  +    deps = [
  3831  +        "//reflect/protoreflect",
  3832  +        "//runtime/protoimpl",
  3833  +    ],
  3834  +)
  3835  +
  3836  +alias(
  3837  +    name = "go_default_library",
  3838  +    actual = ":emptypb",
  3839  +    visibility = ["//visibility:public"],
  3840  +)
  3841  diff -urN a/types/known/fieldmaskpb/BUILD.bazel b/types/known/fieldmaskpb/BUILD.bazel
  3842  --- a/types/known/fieldmaskpb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3843  +++ b/types/known/fieldmaskpb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3844  @@ -0,0 +1,31 @@
  3845  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3846  +
  3847  +go_library(
  3848  +    name = "fieldmaskpb",
  3849  +    srcs = ["field_mask.pb.go"],
  3850  +    importpath = "google.golang.org/protobuf/types/known/fieldmaskpb",
  3851  +    visibility = ["//visibility:public"],
  3852  +    deps = [
  3853  +        "//proto",
  3854  +        "//reflect/protoreflect",
  3855  +        "//runtime/protoimpl",
  3856  +    ],
  3857  +)
  3858  +
  3859  +alias(
  3860  +    name = "go_default_library",
  3861  +    actual = ":fieldmaskpb",
  3862  +    visibility = ["//visibility:public"],
  3863  +)
  3864  +
  3865  +go_test(
  3866  +    name = "fieldmaskpb_test",
  3867  +    srcs = ["field_mask_test.go"],
  3868  +    deps = [
  3869  +        ":fieldmaskpb",
  3870  +        "//internal/testprotos/test",
  3871  +        "//proto",
  3872  +        "@com_github_google_go_cmp//cmp:go_default_library",
  3873  +        "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
  3874  +    ],
  3875  +)
  3876  diff -urN a/types/known/sourcecontextpb/BUILD.bazel b/types/known/sourcecontextpb/BUILD.bazel
  3877  --- a/types/known/sourcecontextpb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3878  +++ b/types/known/sourcecontextpb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3879  @@ -0,0 +1,18 @@
  3880  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3881  +
  3882  +go_library(
  3883  +    name = "sourcecontextpb",
  3884  +    srcs = ["source_context.pb.go"],
  3885  +    importpath = "google.golang.org/protobuf/types/known/sourcecontextpb",
  3886  +    visibility = ["//visibility:public"],
  3887  +    deps = [
  3888  +        "//reflect/protoreflect",
  3889  +        "//runtime/protoimpl",
  3890  +    ],
  3891  +)
  3892  +
  3893  +alias(
  3894  +    name = "go_default_library",
  3895  +    actual = ":sourcecontextpb",
  3896  +    visibility = ["//visibility:public"],
  3897  +)
  3898  diff -urN a/types/known/structpb/BUILD.bazel b/types/known/structpb/BUILD.bazel
  3899  --- a/types/known/structpb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3900  +++ b/types/known/structpb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3901  @@ -0,0 +1,31 @@
  3902  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3903  +
  3904  +go_library(
  3905  +    name = "structpb",
  3906  +    srcs = ["struct.pb.go"],
  3907  +    importpath = "google.golang.org/protobuf/types/known/structpb",
  3908  +    visibility = ["//visibility:public"],
  3909  +    deps = [
  3910  +        "//encoding/protojson",
  3911  +        "//reflect/protoreflect",
  3912  +        "//runtime/protoimpl",
  3913  +    ],
  3914  +)
  3915  +
  3916  +alias(
  3917  +    name = "go_default_library",
  3918  +    actual = ":structpb",
  3919  +    visibility = ["//visibility:public"],
  3920  +)
  3921  +
  3922  +go_test(
  3923  +    name = "structpb_test",
  3924  +    srcs = ["struct_test.go"],
  3925  +    deps = [
  3926  +        ":structpb",
  3927  +        "//reflect/protoreflect",
  3928  +        "//testing/protocmp",
  3929  +        "@com_github_google_go_cmp//cmp:go_default_library",
  3930  +        "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
  3931  +    ],
  3932  +)
  3933  diff -urN a/types/known/timestamppb/BUILD.bazel b/types/known/timestamppb/BUILD.bazel
  3934  --- a/types/known/timestamppb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3935  +++ b/types/known/timestamppb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3936  @@ -0,0 +1,30 @@
  3937  +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  3938  +
  3939  +go_library(
  3940  +    name = "timestamppb",
  3941  +    srcs = ["timestamp.pb.go"],
  3942  +    importpath = "google.golang.org/protobuf/types/known/timestamppb",
  3943  +    visibility = ["//visibility:public"],
  3944  +    deps = [
  3945  +        "//reflect/protoreflect",
  3946  +        "//runtime/protoimpl",
  3947  +    ],
  3948  +)
  3949  +
  3950  +alias(
  3951  +    name = "go_default_library",
  3952  +    actual = ":timestamppb",
  3953  +    visibility = ["//visibility:public"],
  3954  +)
  3955  +
  3956  +go_test(
  3957  +    name = "timestamppb_test",
  3958  +    srcs = ["timestamp_test.go"],
  3959  +    deps = [
  3960  +        ":timestamppb",
  3961  +        "//internal/detrand",
  3962  +        "//testing/protocmp",
  3963  +        "@com_github_google_go_cmp//cmp:go_default_library",
  3964  +        "@com_github_google_go_cmp//cmp/cmpopts:go_default_library",
  3965  +    ],
  3966  +)
  3967  diff -urN a/types/known/typepb/BUILD.bazel b/types/known/typepb/BUILD.bazel
  3968  --- a/types/known/typepb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3969  +++ b/types/known/typepb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3970  @@ -0,0 +1,20 @@
  3971  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3972  +
  3973  +go_library(
  3974  +    name = "typepb",
  3975  +    srcs = ["type.pb.go"],
  3976  +    importpath = "google.golang.org/protobuf/types/known/typepb",
  3977  +    visibility = ["//visibility:public"],
  3978  +    deps = [
  3979  +        "//reflect/protoreflect",
  3980  +        "//runtime/protoimpl",
  3981  +        "//types/known/anypb",
  3982  +        "//types/known/sourcecontextpb",
  3983  +    ],
  3984  +)
  3985  +
  3986  +alias(
  3987  +    name = "go_default_library",
  3988  +    actual = ":typepb",
  3989  +    visibility = ["//visibility:public"],
  3990  +)
  3991  diff -urN a/types/known/wrapperspb/BUILD.bazel b/types/known/wrapperspb/BUILD.bazel
  3992  --- a/types/known/wrapperspb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  3993  +++ b/types/known/wrapperspb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  3994  @@ -0,0 +1,18 @@
  3995  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  3996  +
  3997  +go_library(
  3998  +    name = "wrapperspb",
  3999  +    srcs = ["wrappers.pb.go"],
  4000  +    importpath = "google.golang.org/protobuf/types/known/wrapperspb",
  4001  +    visibility = ["//visibility:public"],
  4002  +    deps = [
  4003  +        "//reflect/protoreflect",
  4004  +        "//runtime/protoimpl",
  4005  +    ],
  4006  +)
  4007  +
  4008  +alias(
  4009  +    name = "go_default_library",
  4010  +    actual = ":wrapperspb",
  4011  +    visibility = ["//visibility:public"],
  4012  +)
  4013  diff -urN a/types/pluginpb/BUILD.bazel b/types/pluginpb/BUILD.bazel
  4014  --- a/types/pluginpb/BUILD.bazel	1970-01-01 00:00:00.000000000 +0000
  4015  +++ b/types/pluginpb/BUILD.bazel	2000-01-01 00:00:00.000000000 -0000
  4016  @@ -0,0 +1,19 @@
  4017  +load("@io_bazel_rules_go//go:def.bzl", "go_library")
  4018  +
  4019  +go_library(
  4020  +    name = "pluginpb",
  4021  +    srcs = ["plugin.pb.go"],
  4022  +    importpath = "google.golang.org/protobuf/types/pluginpb",
  4023  +    visibility = ["//visibility:public"],
  4024  +    deps = [
  4025  +        "//reflect/protoreflect",
  4026  +        "//runtime/protoimpl",
  4027  +        "//types/descriptorpb",
  4028  +    ],
  4029  +)
  4030  +
  4031  +alias(
  4032  +    name = "go_default_library",
  4033  +    actual = ":pluginpb",
  4034  +    visibility = ["//visibility:public"],
  4035  +)