protobuf-go/internal
Joe Tsai 4fddebafc0 all: move v1 types over to the v2 repository
As a goal, v2 should not depend on v1. As another step towards that end,
we move all the types that used to be in the v1 protoapi package over to v2.

For now, we place MessageV1, ExtensionRangeV1, and ExtensionDescV1
in runtime/protoiface since these are types that generated messages will
probably have to reference forever. An alternative location could be
reflect/protoreflect, but it seems unfortunate to have to dirty the
namespace of that package with these types.

We move ExtensionFieldV1, ExtensionFieldsV1, and ExtensionFieldsOf
to internal/impl, since these are related to the implementation of a
generated message.

Since moving these types from v1 to v2 implies that the v1 protoapi
package is useless, we update all usages of v1 protoapi in the v2
repository to point to the relevant v2 type or functionality.

CL/168538 is the corresponding change to alter v1.
There will be a temporary build failure as it is not possible
to submit CL/168519 and CL/168538 atomically.

Change-Id: Ide4025c1b6af5b7f0696f4b65b988b4d10a50f0b
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/168519
Reviewed-by: Herbie Ong <herbie@google.com>
2019-03-22 20:01:07 +00:00
..
cmd internal/fileinit: prevent map entry descriptors from implementing MessageType 2019-03-21 17:47:49 +00:00
detrand internal/detrand: support disabling detrand 2018-11-29 07:49:45 +00:00
encoding encoding/jsonpb: add support for basic unmarshaling 2019-03-15 18:53:18 +00:00
errors internal/errors: fix New in eliding prefix 2019-02-27 22:36:14 +00:00
fieldnum internal/fieldnum: generate field numbers for the google.protobuf package 2019-03-21 00:57:40 +00:00
fileinit all: move v1 types over to the v2 repository 2019-03-22 20:01:07 +00:00
flags internal/flags: add package to control specialized functionality 2018-08-03 22:59:53 +00:00
impl all: move v1 types over to the v2 repository 2019-03-22 20:01:07 +00:00
legacy all: move v1 types over to the v2 repository 2019-03-22 20:01:07 +00:00
mapsort proto: wire encoding support 2019-03-14 19:12:27 +00:00
pragma internal/pragma: package to statically enforce certain properties 2018-08-06 21:47:01 +00:00
prototype internal/prototype: move from reflect/prototype 2019-03-13 20:17:00 +00:00
scalar internal/scalar: add scalar package for primitive wrappers 2018-11-28 07:06:11 +00:00
set internal/set: add set package for set data structures 2018-08-09 21:46:35 +00:00
testprotos all: move v1 types over to the v2 repository 2019-03-22 20:01:07 +00:00
typefmt reflect/protoreflect: add HasJSONName, ReservedRanges, and ReservedNames 2018-12-07 20:10:15 +00:00
value all: move v1 types over to the v2 repository 2019-03-22 20:01:07 +00:00