protobuf-go/internal/impl
Joe Tsai be5348c905 internal/impl: setup scaffolding for unknown and extension fields
Setup scaffolding for implementing unknown and extension fields.
Add functions to MessageType to produce a protoreflect.KnownFields or
protoreflect.UnknownFields from a message pointer.

Within the implementation of known fields, delegate the logic to the underlying
extension fields (which also implements protoreflect.KnownFields) if the field
number is not found in the set of defined fields.

Change-Id: I2c35f4cdf1c7b58727ce6a582861ef18b8d69a61
Reviewed-on: https://go-review.googlesource.com/c/144280
Reviewed-by: Damien Neil <dneil@google.com>
2018-10-24 17:40:36 +00:00
..
legacy_enum.go internal/impl: derive descriptors for legacy enums and messages 2018-10-22 17:18:39 +00:00
legacy_file.go internal/impl: derive descriptors for legacy enums and messages 2018-10-22 17:18:39 +00:00
legacy_message.go reflect/protoreflect: add Descriptor.Options method 2018-10-23 23:44:11 +00:00
legacy_proto2_test.go internal/impl: derive descriptors for legacy enums and messages 2018-10-22 17:18:39 +00:00
legacy_proto3_test.go internal/impl: derive descriptors for legacy enums and messages 2018-10-22 17:18:39 +00:00
legacy_test.go reflect/protoreflect: add Descriptor.Options method 2018-10-23 23:44:11 +00:00
message_field.go internal/impl: implement oneof fields 2018-10-17 22:20:50 +00:00
message_test.go reflect/protoreflect: add Descriptor.Options method 2018-10-23 23:44:11 +00:00
message.go internal/impl: setup scaffolding for unknown and extension fields 2018-10-24 17:40:36 +00:00
pointer_reflect.go internal/impl: support wrapping Go structs to implement proto.Message 2018-10-03 02:10:04 +00:00
pointer_unsafe.go internal/impl: support wrapping Go structs to implement proto.Message 2018-10-03 02:10:04 +00:00