TAGS
20 tagsMerge pull request #1597 from golang/updatedesc all: update descriptor.proto to latest version
Merge pull request #1363 from neild/jsonnull jsonpb: accept 'null' as a valid representation of NullValue in unmarshal
all: deprecate the module (#1306) Use the new deprecation feature to mark this module as deprecated. See https://golang.org/issue/40357. Considerations: * google.golang.org/protobuf/cmd/protoc-gen-go@v1.25.0 and below used to generate a hard dependency on github.com/golang/protobuf, which would be frustrating since it would force an explicit dependency on a deprecated module. However, that is no longer the case in v1.26.0. * google.golang.org/protobuf and github.com/golang/protobuf have a cyclic dependency on each other. However, this should not be a problem since proposal 40357 only marks direct dependencies in the go.mod file, rather than all transitive dependencies in the go.sum file.
jsonpb: Fix marshaling of Duration (#1221) Negative nanosecond should not have negative sign after decimal point. Add check for max and min seconds. Fixes #1219.
proto: use fixed UnmarshalState API Change-Id: I08abfaed1bafd0d650988883be31faefbd312331 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/222679 Reviewed-by: Damien Neil <dneil@google.com>
all: use google.golang.org/protobuf v1.20.0 Change-Id: Ib6c3a09e41548008897bacd54aa8fc6939ea8350 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/221786 Reviewed-by: Herbie Ong <herbie@google.com>
all: use new protogen options API Change-Id: Ib7ef4f9e8a6b7ada1f0cba4ae706be9fb8f7a10c Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/221559 Reviewed-by: Damien Neil <dneil@google.com>
ptypes: regenerate with v3.11.4, update for go1.14 gofmt (#1045) Update .proto files to github.com/protocolbuffers v3.11.4. Add go1.13 and go1.14 to .travis.yml. Avoid one-line funcs in protoc-gen-go output to prevent variable post-gofmt output with go1.14.
proto: add MessageV1, MessageV2, and MessageReflect The MessageV1 and MessageV2 functions convert to/from the v1 and v2 message interfaces. The MessageReflect function provides a reflective view over message. These functions do not have an "Of" suffix to be consistent with the existing MessageName and MessageType functions. Furthermore, we drop the "Of" suffix from functions in the descriptor package to be consistent. This is a safe change since none of those functions have seen a stable release. We move the descriptor.GeneratedXXX types to the proto package for documentation purposes. Fixes #956 Change-Id: I566b74367798e2e3399db9902b58ffeb673199ca Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/219137 Reviewed-by: Damien Neil <dneil@google.com>
grpc: accept interface in NewClient functions (#1025) * grpc: accept interface in NewClient functions * fix deprecated.pb.go and grpc_empty.pb.go * add go.mod and go.sum to testdata/grpc * remove comment
jsonpb: fix marshaling of Duration Fix output for negative nanoseconds with zero second. Add validation on min/max seconds. Fixes #883.
Delete the conformance test (#808) The conformance test is hard to run and heavily dependant on the exact version of protoc installed on the developer's workstation. Delete this from the v1 and leave conformance testing to v2, which has infrastructure built for stricter control over dependencies.
ptypes: More cleanly construct a Timestamp (#797) The existing code is much more complex.