Skip to content
Permalink
Branch: master
Commits on Apr 9, 2019
  1. reflect/protoreflect: add KnownFields.WhichOneof

    dsnet committed Apr 3, 2019
    Add a method that provides efficiently querying for which member field
    in a oneof is actually set. This is useful when dealing with oneofs
    with many member fields.
    
    Change-Id: I918b566c432f8bdd24dcecbb5501d231ffefef29
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/170580
    Reviewed-by: Damien Neil <dneil@google.com>
Commits on Apr 8, 2019
  1. cmd/protoc-gen-go: generate oneof types seperately

    dsnet committed Apr 8, 2019
    Seperate out the generation of the oneof wrapper types from the
    code block that is about getter methods.
    
    Change-Id: Ief44ef953d0b5ad8c998a8542c830ca70468a3bf
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/171029
    Reviewed-by: Damien Neil <dneil@google.com>
Commits on Apr 4, 2019
  1. test.bash: update to protoc3.7.1 and go1.11.6 and go1.12.1

    dsnet committed Apr 3, 2019
    Change-Id: I787ffa48dc075c74fe51737dfc98f23371c0b189
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/170628
    Reviewed-by: Herbie Ong <herbie@google.com>
Commits on Apr 3, 2019
  1. internal/set: remove Int32s, Int64s, and Strings

    dsnet committed Apr 3, 2019
    So far only Ints is being used and it does not seem like the
    other set types will ever be used. Remove them.
    We can always add them back if we need them again.
    
    Change-Id: I9a9e8ce76bd231d1fe5b726af7da690dc4019bb8
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/170625
    Reviewed-by: Herbie Ong <herbie@google.com>
Commits on Apr 1, 2019
  1. cmd/protoc-gen-go: perform some code cleanup

    dsnet committed Apr 1, 2019
    Minor changes:
    * Use x as the receiver since "e" and "m" are meaningless in the presence
    of user-defined enum and message names.
    * Consistently keep enum methods together, rather awkwardly split apart
    by the value maps.
    
    Change-Id: I68e5666efb56ac7a4d062fb223b9f826dc72aba9
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/170357
    Reviewed-by: Herbie Ong <herbie@google.com>
  2. cmd/protoc-gen-go: lazily GZIP-encode the raw descriptor

    dsnet committed Mar 28, 2019
    This reduces the init-time cost slightly since the GZIP'd
    raw descriptor is constructed lazily on demand.
    
    Change-Id: I482c6a2201b8786e425d7dee5612fdfd60ab1500
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/169917
    Reviewed-by: Herbie Ong <herbie@google.com>
  3. runtime/protoiface: doc cleanup

    dsnet committed Apr 1, 2019
    Change-Id: I6503053ed4c39c791bd9118ceacdbdde2006eb2b
    Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/170337
    Reviewed-by: Herbie Ong <herbie@google.com>
You can’t perform that action at this time.