protobuf-go/cmd/protoc-gen-go/testdata/imports
Damien Neil 232ea15589 reflect/prototype: hoist semantic options into builders
Add fields to the Message and Field builder structs which hold the value
of MessageOptions.map_entry, FieldOptions.packed, and FieldOptions.weak
options. Remove all access to the contents of options messages from the
prototype package.

Change IsPacked to always return false for unpackable field types,
which is consistent with the equivalent C++ API.

This change helps avoid dependency cycles between prototype and the
options messages. (Previously this was resolved by accessing options
with reflection, but just breaking the dependency from prototype to the
options message is cleaner and simpler.)

Change-Id: I756aefe2e04cfa8fea31eaaaa0b5a99d4ac9e851
Reviewed-on: https://go-review.googlesource.com/c/153517
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
2018-12-11 20:25:45 +00:00
..
fmt reflect/protoreflect: replace Mutable with NewMessage 2018-12-10 21:17:16 +00:00
test_a_1 reflect/prototype: hoist semantic options into builders 2018-12-11 20:25:45 +00:00
test_a_2 reflect/protoreflect: replace Mutable with NewMessage 2018-12-10 21:17:16 +00:00
test_b_1 reflect/protoreflect: replace Mutable with NewMessage 2018-12-10 21:17:16 +00:00
test_import_a1m1.pb.go reflect/prototype: hoist semantic options into builders 2018-12-11 20:25:45 +00:00
test_import_a1m1.proto protoc-gen-go: generate imports consistent with previous protoc-gen-go 2018-09-14 22:40:55 +00:00
test_import_a1m2.pb.go reflect/prototype: hoist semantic options into builders 2018-12-11 20:25:45 +00:00
test_import_a1m2.proto protoc-gen-go: generate imports consistent with previous protoc-gen-go 2018-09-14 22:40:55 +00:00
test_import_all.pb.go reflect/prototype: hoist semantic options into builders 2018-12-11 20:25:45 +00:00
test_import_all.proto cmd/protoc-gen-go: generate blank imports for unused proto dependencies 2018-09-19 21:12:48 +00:00