aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2018-08-13 16:40:31 -0700
committerJoe Tsai <joetsai@digital-static.net>2018-08-13 16:44:47 -0700
commit6b6e155ff9c1f68e8745f711b07bfd8fc15756b7 (patch)
tree7d23203f78f13ec5eaeecb9a830b9857ec3a7a7f /src
parentd39c7ef6ebda148ef52fcb9dc276339120aa3036 (diff)
downloadprotobuf-6b6e155ff9c1f68e8745f711b07bfd8fc15756b7.tar.gz
protobuf-6b6e155ff9c1f68e8745f711b07bfd8fc15756b7.tar.bz2
protobuf-6b6e155ff9c1f68e8745f711b07bfd8fc15756b7.zip
Document wrapper non-uses
Document the cases where the wrapper well-known types are not useful.
Diffstat (limited to 'src')
-rw-r--r--src/google/protobuf/wrappers.proto5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/google/protobuf/wrappers.proto b/src/google/protobuf/wrappers.proto
index 01947639..1940fd19 100644
--- a/src/google/protobuf/wrappers.proto
+++ b/src/google/protobuf/wrappers.proto
@@ -32,6 +32,11 @@
// for embedding primitives in the `google.protobuf.Any` type and for places
// where we need to distinguish between the absence of a primitive
// typed field and its default value.
+//
+// These wrappers have no meaningful use within repeated fields as they lack
+// the ability to detect presence on individual elements.
+// These wrappers have no meaningful use within a map or a oneof since individual
+// entries of a map or fields of a oneof can already detect presence.
syntax = "proto3";