Change the default visibility for packages to //visibility:private
and then change individual build rules back to their prior visibility.

The motivation for this change is making sure future additions are
private by default so that new rules are not accidentally public.

Some of the rules that are currently public were not meant to be, and
the fact that they are marked public does not mean they should be
used. As always, the rule is never spell out anything with the word
internal (or any synonym for internal). Some of these accidentally
public rules will be manually corrected with future changes.

PiperOrigin-RevId: 941195120
Change-Id: I13f072b2c027e0e864c3a95a098f2c1f6b2bd8fb
diff --git a/absl/status/BUILD.bazel b/absl/status/BUILD.bazel
index a8e45cb..b2e4e11 100644
--- a/absl/status/BUILD.bazel
+++ b/absl/status/BUILD.bazel
@@ -28,7 +28,7 @@
 )
 
 package(
-    default_visibility = ["//visibility:public"],
+    default_visibility = ["//visibility:private"],
     features = [
         "header_modules",
         "layering_check",
@@ -52,6 +52,7 @@
     ],
     copts = ABSL_DEFAULT_COPTS,
     linkopts = ABSL_DEFAULT_LINKOPTS,
+    visibility = ["//visibility:public"],
     deps = [
         "//absl/base:atomic_hook",
         "//absl/base:config",
@@ -116,6 +117,7 @@
     ],
     copts = ABSL_DEFAULT_COPTS,
     linkopts = ABSL_DEFAULT_LINKOPTS,
+    visibility = ["//visibility:public"],
     deps = [
         ":status",
         "//absl/base",
@@ -172,6 +174,7 @@
     hdrs = ["status_builder.h"],
     copts = ABSL_DEFAULT_COPTS,
     linkopts = ABSL_DEFAULT_LINKOPTS,
+    visibility = ["//visibility:public"],
     deps = [
         ":status",
         "//absl/base:config",
@@ -211,6 +214,7 @@
 cc_library(
     name = "status_macros",
     hdrs = ["status_macros.h"],
+    visibility = ["//visibility:public"],
     deps = [
         ":status",
         ":status_builder",