Skip to content

Commit

Permalink
Merge pull request protocolbuffers#5042 from dsnet/master
Browse files Browse the repository at this point in the history
Document wrapper non-uses
  • Loading branch information
xfxyjwf authored Aug 14, 2018
2 parents d39c7ef + 6b6e155 commit fe2eef4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/google/protobuf/wrappers.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit fe2eef4

Please sign in to comment.