Explorar o código

reflect/protodesc: split descriptor related functionality from prototype

In order to generate descriptor.proto, the generated code would want to depend
on the prototype package to construct the reflection data structures.
However, this is a problem since descriptor itself is one of the dependencies
for prototype. To break this dependency, we do the following:
* Avoid using concrete *descriptorpb.XOptions messages in the public API, and
instead just use protoreflect.ProtoMessage. We do lose some type safety here
as a result.
* Use protobuf reflection to interpret the Options message.
* Split out NewFileFromDescriptorProto into a separate protodesc package since
constructing protobuf reflection from the descriptor proto obviously depends
on the descriptor protos themselves.

As part of this CL, we check in a pre-generated version of descriptor and plugin
that supports protobuf reflection natively and switchover all usages of those
protos to the new definitions. These files were generated by protoc-gen-go
from CL/150074, but hand-modified to remove dependencies on the v1 proto runtime.

Change-Id: I81e03c42eeab480b03764e2fcbe1aae0e058fc57
Reviewed-on: https://go-review.googlesource.com/c/152020
Reviewed-by: Damien Neil <dneil@google.com>
Joe Tsai %!s(int64=7) %!d(string=hai) anos
pai
achega
e1f8d50e17

+ 7 - 6
cmd/protoc-gen-go-grpc/internal_gengogrpc/grpc.go

@@ -10,8 +10,9 @@ import (
 	"strconv"
 	"strings"
 
-	descpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
 	"github.com/golang/protobuf/v2/protogen"
+
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
 )
 
 const (
@@ -62,7 +63,7 @@ func genService(gen *protogen.Plugin, file *protogen.File, g *protogen.Generated
 	g.P("// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.")
 
 	// Client interface.
-	if service.Desc.Options().(*descpb.ServiceOptions).GetDeprecated() {
+	if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() {
 		g.P("//")
 		g.P(deprecationComment)
 	}
@@ -83,7 +84,7 @@ func genService(gen *protogen.Plugin, file *protogen.File, g *protogen.Generated
 	g.P()
 
 	// NewClient factory.
-	if service.Desc.Options().(*descpb.ServiceOptions).GetDeprecated() {
+	if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() {
 		g.P(deprecationComment)
 	}
 	g.P("func New", clientName, " (cc *", grpcPackage.Ident("ClientConn"), ") ", clientName, " {")
@@ -108,7 +109,7 @@ func genService(gen *protogen.Plugin, file *protogen.File, g *protogen.Generated
 	// Server interface.
 	serverType := service.GoName + "Server"
 	g.P("// ", serverType, " is the server API for ", service.GoName, " service.")
-	if service.Desc.Options().(*descpb.ServiceOptions).GetDeprecated() {
+	if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() {
 		g.P("//")
 		g.P(deprecationComment)
 	}
@@ -123,7 +124,7 @@ func genService(gen *protogen.Plugin, file *protogen.File, g *protogen.Generated
 	g.P()
 
 	// Server registration.
-	if service.Desc.Options().(*descpb.ServiceOptions).GetDeprecated() {
+	if service.Desc.Options().(*descriptorpb.ServiceOptions).GetDeprecated() {
 		g.P(deprecationComment)
 	}
 	serviceDescVar := "_" + service.GoName + "_serviceDesc"
@@ -195,7 +196,7 @@ func genClientMethod(gen *protogen.Plugin, file *protogen.File, g *protogen.Gene
 	service := method.ParentService
 	sname := fmt.Sprintf("/%s/%s", service.Desc.FullName(), method.Desc.Name())
 
-	if method.Desc.Options().(*descpb.MethodOptions).GetDeprecated() {
+	if method.Desc.Options().(*descriptorpb.MethodOptions).GetDeprecated() {
 		g.P(deprecationComment)
 	}
 	g.P("func (c *", unexport(service.GoName), "Client) ", clientSignature(g, method), "{")

+ 5 - 4
cmd/protoc-gen-go/golden_test.go

@@ -15,9 +15,10 @@ import (
 	"testing"
 
 	"github.com/golang/protobuf/proto"
-	descpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
 	"github.com/golang/protobuf/v2/internal/protogen/goldentest"
 	"github.com/golang/protobuf/v2/internal/scalar"
+
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
 )
 
 // Set --regenerate to regenerate the golden files.
@@ -47,12 +48,12 @@ func TestAnnotations(t *testing.T) {
 	if err != nil {
 		t.Fatal(err)
 	}
-	gotInfo := &descpb.GeneratedCodeInfo{}
+	gotInfo := &descriptorpb.GeneratedCodeInfo{}
 	if err := proto.UnmarshalText(string(metaFile), gotInfo); err != nil {
 		t.Fatalf("can't parse meta file: %v", err)
 	}
 
-	wantInfo := &descpb.GeneratedCodeInfo{}
+	wantInfo := &descriptorpb.GeneratedCodeInfo{}
 	for _, want := range []struct {
 		prefix, text, suffix string
 		path                 []int32
@@ -80,7 +81,7 @@ func TestAnnotations(t *testing.T) {
 		}
 		begin := pos + len(want.prefix)
 		end := begin + len(want.text)
-		wantInfo.Annotation = append(wantInfo.Annotation, &descpb.GeneratedCodeInfo_Annotation{
+		wantInfo.Annotation = append(wantInfo.Annotation, &descriptorpb.GeneratedCodeInfo_Annotation{
 			Path:       want.path,
 			Begin:      scalar.Int32(int32(begin)),
 			End:        scalar.Int32(int32(end)),

+ 10 - 9
cmd/protoc-gen-go/internal_gengo/main.go

@@ -17,10 +17,11 @@ import (
 	"strings"
 
 	"github.com/golang/protobuf/proto"
-	descpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
 	"github.com/golang/protobuf/v2/internal/encoding/tag"
 	"github.com/golang/protobuf/v2/protogen"
 	"github.com/golang/protobuf/v2/reflect/protoreflect"
+
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
 )
 
 // generatedCodeVersion indicates a version of the generated code.
@@ -214,7 +215,7 @@ func genImport(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileInfo, imp
 func genFileDescriptor(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileInfo) {
 	// Trim the source_code_info from the descriptor.
 	// Marshal and gzip it.
-	descProto := proto.Clone(f.Proto).(*descpb.FileDescriptorProto)
+	descProto := proto.Clone(f.Proto).(*descriptorpb.FileDescriptorProto)
 	descProto.SourceCodeInfo = nil
 	b, err := proto.Marshal(descProto)
 	if err != nil {
@@ -253,13 +254,13 @@ func genEnum(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileInfo, enum
 	g.PrintLeadingComments(enum.Location)
 	g.Annotate(enum.GoIdent.GoName, enum.Location)
 	g.P("type ", enum.GoIdent, " int32",
-		deprecationComment(enum.Desc.Options().(*descpb.EnumOptions).GetDeprecated()))
+		deprecationComment(enum.Desc.Options().(*descriptorpb.EnumOptions).GetDeprecated()))
 	g.P("const (")
 	for _, value := range enum.Values {
 		g.PrintLeadingComments(value.Location)
 		g.Annotate(value.GoIdent.GoName, value.Location)
 		g.P(value.GoIdent, " ", enum.GoIdent, " = ", value.Desc.Number(),
-			deprecationComment(value.Desc.Options().(*descpb.EnumValueOptions).GetDeprecated()))
+			deprecationComment(value.Desc.Options().(*descriptorpb.EnumValueOptions).GetDeprecated()))
 	}
 	g.P(")")
 	g.P()
@@ -349,7 +350,7 @@ func genMessage(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileInfo, me
 	}
 
 	hasComment := g.PrintLeadingComments(message.Location)
-	if message.Desc.Options().(*descpb.MessageOptions).GetDeprecated() {
+	if message.Desc.Options().(*descriptorpb.MessageOptions).GetDeprecated() {
 		if hasComment {
 			g.P("//")
 		}
@@ -387,13 +388,13 @@ func genMessage(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileInfo, me
 		}
 		g.Annotate(message.GoIdent.GoName+"."+field.GoName, field.Location)
 		g.P(field.GoName, " ", goType, " `", strings.Join(tags, " "), "`",
-			deprecationComment(field.Desc.Options().(*descpb.FieldOptions).GetDeprecated()))
+			deprecationComment(field.Desc.Options().(*descriptorpb.FieldOptions).GetDeprecated()))
 	}
 	g.P("XXX_NoUnkeyedLiteral struct{} `json:\"-\"`")
 
 	if message.Desc.ExtensionRanges().Len() > 0 {
 		var tags []string
-		if message.Desc.Options().(*descpb.MessageOptions).GetMessageSetWireFormat() {
+		if message.Desc.Options().(*descriptorpb.MessageOptions).GetMessageSetWireFormat() {
 			tags = append(tags, `protobuf_messageset:"1"`)
 		}
 		tags = append(tags, `json:"-"`)
@@ -531,7 +532,7 @@ func genMessage(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileInfo, me
 		}
 		goType, pointer := fieldGoType(g, field)
 		defaultValue := fieldDefaultValue(g, message, field)
-		if field.Desc.Options().(*descpb.FieldOptions).GetDeprecated() {
+		if field.Desc.Options().(*descriptorpb.FieldOptions).GetDeprecated() {
 			g.P(deprecationComment(true))
 		}
 		g.Annotate(message.GoIdent.GoName+".Get"+field.GoName, field.Location)
@@ -702,7 +703,7 @@ func genExtension(gen *protogen.Plugin, g *protogen.GeneratedFile, f *fileInfo,
 // isExtensionMessageSetELement returns the adjusted name of an extension
 // which extends proto2.bridge.MessageSet.
 func isExtensionMessageSetElement(extension *protogen.Extension) (name protoreflect.FullName, ok bool) {
-	opts := extension.ExtendedType.Desc.Options().(*descpb.MessageOptions)
+	opts := extension.ExtendedType.Desc.Options().(*descriptorpb.MessageOptions)
 	if !opts.GetMessageSetWireFormat() || extension.Desc.Name() != "message_set_extension" {
 		return "", false
 	}

+ 1 - 1
go.mod

@@ -1,7 +1,7 @@
 module github.com/golang/protobuf/v2
 
 require (
-	github.com/golang/protobuf v1.2.1-0.20181129223256-87f1426e5305
+	github.com/golang/protobuf v1.2.1-0.20181130223505-8f3966804431
 	github.com/google/go-cmp v0.2.1-0.20181101181452-745b8ec83783
 	golang.org/x/tools v0.0.0-20180928181343-b3c0be4c978b
 )

+ 2 - 2
go.sum

@@ -1,6 +1,6 @@
 github.com/golang/protobuf v1.2.1-0.20181127190454-8d0c54c12466/go.mod h1:Qd/q+1AKNOZr9uGQzbzCmRO6sUih6GTPZv6a1/R87v0=
-github.com/golang/protobuf v1.2.1-0.20181129223256-87f1426e5305 h1:L8Akf3H3kki1x1DO8Yb3O47G/DspWKG8l8FPNP+Figk=
-github.com/golang/protobuf v1.2.1-0.20181129223256-87f1426e5305/go.mod h1:asK8yRb/+zxJTE0SbTESCku/4OjiDfbPwk4rEyIatUA=
+github.com/golang/protobuf v1.2.1-0.20181130223505-8f3966804431 h1:OtJApg8lwJ831/LP3MINk4iuG5OrqxeBJUx3IMCKWY8=
+github.com/golang/protobuf v1.2.1-0.20181130223505-8f3966804431/go.mod h1:asK8yRb/+zxJTE0SbTESCku/4OjiDfbPwk4rEyIatUA=
 github.com/golang/protobuf/v2 v2.0.0-20181127193627-d7e97bc71bcb/go.mod h1:MgUD+N3FwzDmj2CdMsT5ap7K7jx+c9cQDQ7fVhmH+Xw=
 github.com/google/go-cmp v0.2.1-0.20181101181452-745b8ec83783 h1:wVZ6laEGf86tNDTpR5mxFyFIclJJiXCxuJhcQKnsOHk=
 github.com/google/go-cmp v0.2.1-0.20181101181452-745b8ec83783/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=

+ 3 - 2
internal/cmd/pbdump/pbdump.go

@@ -17,12 +17,13 @@ import (
 	"strconv"
 	"strings"
 
-	descriptorV1 "github.com/golang/protobuf/protoc-gen-go/descriptor"
 	"github.com/golang/protobuf/v2/internal/encoding/pack"
 	"github.com/golang/protobuf/v2/internal/encoding/wire"
 	"github.com/golang/protobuf/v2/internal/scalar"
 	"github.com/golang/protobuf/v2/reflect/protoreflect"
 	"github.com/golang/protobuf/v2/reflect/prototype"
+
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
 )
 
 func main() {
@@ -229,7 +230,7 @@ func (fs fields) messageDescriptor(name protoreflect.FullName) prototype.Message
 			protoreflect.Sfixed32Kind, protoreflect.Fixed32Kind, protoreflect.FloatKind,
 			protoreflect.Sfixed64Kind, protoreflect.Fixed64Kind, protoreflect.DoubleKind:
 			f.Cardinality = protoreflect.Repeated
-			f.Options = &descriptorV1.FieldOptions{Packed: scalar.Bool(true)}
+			f.Options = &descriptorpb.FieldOptions{Packed: scalar.Bool(true)}
 		case protoreflect.MessageKind, protoreflect.GroupKind:
 			s := name.Append(protoreflect.Name(fmt.Sprintf("M%d", n)))
 			f.MessageType = prototype.PlaceholderMessage(s)

+ 5 - 4
internal/encoding/pack/pack_test.go

@@ -11,10 +11,11 @@ import (
 	"math"
 	"testing"
 
-	descriptorV1 "github.com/golang/protobuf/protoc-gen-go/descriptor"
 	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
 	ptype "github.com/golang/protobuf/v2/reflect/prototype"
-	"github.com/google/go-cmp/cmp"
+	cmp "github.com/google/go-cmp/cmp"
+
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
 )
 
 var msgDesc = func() pref.MessageDescriptor {
@@ -43,8 +44,8 @@ var msgDesc = func() pref.MessageDescriptor {
 	return mtyp
 }()
 
-func packedOpt(b bool) *descriptorV1.FieldOptions {
-	return &descriptorV1.FieldOptions{Packed: &b}
+func packedOpt(b bool) *descriptorpb.FieldOptions {
+	return &descriptorpb.FieldOptions{Packed: &b}
 }
 
 // dhex decodes a hex-string and returns the bytes and panics if s is invalid.

+ 6 - 4
internal/encoding/tag/tag.go

@@ -13,11 +13,12 @@ import (
 	"strconv"
 	"strings"
 
-	descriptorV1 "github.com/golang/protobuf/protoc-gen-go/descriptor"
 	ptext "github.com/golang/protobuf/v2/internal/encoding/text"
 	scalar "github.com/golang/protobuf/v2/internal/scalar"
 	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
 	ptype "github.com/golang/protobuf/v2/reflect/prototype"
+
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
 )
 
 var byteType = reflect.TypeOf(byte(0))
@@ -32,7 +33,8 @@ var byteType = reflect.TypeOf(byte(0))
 //
 // This function is a best effort attempt; parsing errors are ignored.
 func Unmarshal(tag string, goType reflect.Type) ptype.Field {
-	f := ptype.Field{Options: new(descriptorV1.FieldOptions)}
+	opts := new(descriptorpb.FieldOptions)
+	f := ptype.Field{Options: opts}
 	for len(tag) > 0 {
 		i := strings.IndexByte(tag, ',')
 		if i < 0 {
@@ -105,9 +107,9 @@ func Unmarshal(tag string, goType reflect.Type) ptype.Field {
 		case strings.HasPrefix(s, "json="):
 			f.JSONName = s[len("json="):]
 		case s == "packed":
-			f.Options.Packed = scalar.Bool(true)
+			opts.Packed = scalar.Bool(true)
 		case strings.HasPrefix(s, "weak="):
-			f.Options.Weak = scalar.Bool(true)
+			opts.Weak = scalar.Bool(true)
 			f.MessageType = ptype.PlaceholderMessage(pref.FullName(s[len("weak="):]))
 		case strings.HasPrefix(s, "def="):
 			// The default tag is special in that everything afterwards is the

+ 1 - 1
internal/impl/message_test.go

@@ -23,8 +23,8 @@ import (
 	// TODO: Remove this when protoV1 registers these hooks for you.
 	_ "github.com/golang/protobuf/v2/internal/legacy"
 
-	descriptorpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
 	proto2_20180125 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v1.0.0-20180125-92554152"
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
 )
 
 // List of test operations to perform on messages, lists, or maps.

+ 3 - 2
internal/legacy/enum.go

@@ -10,10 +10,11 @@ import (
 	"reflect"
 	"sync"
 
-	descriptorV1 "github.com/golang/protobuf/protoc-gen-go/descriptor"
 	pvalue "github.com/golang/protobuf/v2/internal/value"
 	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
 	ptype "github.com/golang/protobuf/v2/reflect/prototype"
+
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
 )
 
 // wrapEnum wraps v as a protoreflect.ProtoEnum,
@@ -114,7 +115,7 @@ func loadEnumDesc(t reflect.Type) pref.EnumDescriptor {
 		}
 
 		// Derive the full name and correct enum descriptor.
-		var ed *descriptorV1.EnumDescriptorProto
+		var ed *descriptorpb.EnumDescriptorProto
 		e.FullName = pref.FullName(fd.GetPackage())
 		if len(idxs) == 1 {
 			ed = fd.EnumType[idxs[0]]

+ 3 - 3
internal/legacy/export.go

@@ -7,7 +7,7 @@ package legacy
 import (
 	"reflect"
 
-	protoV1 "github.com/golang/protobuf/proto"
+	papi "github.com/golang/protobuf/protoapi"
 	pimpl "github.com/golang/protobuf/v2/internal/impl"
 	pvalue "github.com/golang/protobuf/v2/internal/value"
 	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
@@ -37,11 +37,11 @@ func (Export) ExtensionTypeOf(d pref.ExtensionDescriptor, t interface{}) pref.Ex
 	return extensionTypeOf(d, reflect.TypeOf(t))
 }
 
-func (Export) ExtensionDescFromType(t pref.ExtensionType) *protoV1.ExtensionDesc {
+func (Export) ExtensionDescFromType(t pref.ExtensionType) *papi.ExtensionDesc {
 	return extensionDescFromType(t)
 }
 
-func (Export) ExtensionTypeFromDesc(d *protoV1.ExtensionDesc) pref.ExtensionType {
+func (Export) ExtensionTypeFromDesc(d *papi.ExtensionDesc) pref.ExtensionType {
 	return extensionTypeFromDesc(d)
 }
 

+ 6 - 5
internal/legacy/file.go

@@ -14,8 +14,9 @@ import (
 	// chicken and egg problem where we need the descriptor protos to implement
 	// the new API.
 	protoV1 "github.com/golang/protobuf/proto"
-	descriptorV1 "github.com/golang/protobuf/protoc-gen-go/descriptor"
 	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
+
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
 )
 
 // Every enum and message type generated by protoc-gen-go since commit 2fc053c5
@@ -35,7 +36,7 @@ type (
 	}
 )
 
-var fileDescCache sync.Map // map[*byte]*descriptorV1.FileDescriptorProto
+var fileDescCache sync.Map // map[*byte]*descriptorpb.FileDescriptorProto
 
 // loadFileDesc unmarshals b as a compressed FileDescriptorProto message.
 //
@@ -43,14 +44,14 @@ var fileDescCache sync.Map // map[*byte]*descriptorV1.FileDescriptorProto
 // concatenated series of GZIP files (which would require shenanigans that
 // rely on the concatenation properties of both protobufs and GZIP).
 // File descriptors generated by protoc-gen-go do not rely on that property.
-func loadFileDesc(b []byte) *descriptorV1.FileDescriptorProto {
+func loadFileDesc(b []byte) *descriptorpb.FileDescriptorProto {
 	// Fast-path: check whether we already have a cached file descriptor.
 	if v, ok := fileDescCache.Load(&b[0]); ok {
-		return v.(*descriptorV1.FileDescriptorProto)
+		return v.(*descriptorpb.FileDescriptorProto)
 	}
 
 	// Slow-path: decompress and unmarshal the file descriptor proto.
-	m := new(descriptorV1.FileDescriptorProto)
+	m := new(descriptorpb.FileDescriptorProto)
 	zr, err := gzip.NewReader(bytes.NewReader(b))
 	if err != nil {
 		panic(err)

+ 2 - 2
internal/legacy/file_test.go

@@ -9,8 +9,8 @@ import (
 	"testing"
 
 	pragma "github.com/golang/protobuf/v2/internal/pragma"
+	pdesc "github.com/golang/protobuf/v2/reflect/protodesc"
 	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
-	ptype "github.com/golang/protobuf/v2/reflect/prototype"
 	cmp "github.com/google/go-cmp/cmp"
 
 	proto2_20160225 "github.com/golang/protobuf/v2/internal/testprotos/legacy/proto2.v0.0.0-20160225-2fc053c5"
@@ -28,7 +28,7 @@ import (
 )
 
 func mustLoadFileDesc(b []byte, _ []int) pref.FileDescriptor {
-	fd, err := ptype.NewFileFromDescriptorProto(loadFileDesc(b), nil)
+	fd, err := pdesc.NewFile(loadFileDesc(b), nil)
 	if err != nil {
 		panic(err)
 	}

+ 3 - 2
internal/legacy/message.go

@@ -11,12 +11,13 @@ import (
 	"sync"
 	"unicode"
 
-	descriptorV1 "github.com/golang/protobuf/protoc-gen-go/descriptor"
 	ptag "github.com/golang/protobuf/v2/internal/encoding/tag"
 	pimpl "github.com/golang/protobuf/v2/internal/impl"
 	scalar "github.com/golang/protobuf/v2/internal/scalar"
 	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
 	ptype "github.com/golang/protobuf/v2/reflect/prototype"
+
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
 )
 
 // wrapMessage wraps v as a protoreflect.ProtoMessage,
@@ -231,7 +232,7 @@ func (ms *messageDescSet) parseField(tag, tagKey, tagVal string, goType reflect.
 			m := &ptype.StandaloneMessage{
 				Syntax:   parent.Syntax,
 				FullName: parent.FullName.Append(mapEntryName(f.Name)),
-				Options:  &descriptorV1.MessageOptions{MapEntry: scalar.Bool(true)},
+				Options:  &descriptorpb.MessageOptions{MapEntry: scalar.Bool(true)},
 				Fields: []ptype.Field{
 					ms.parseField(tagKey, "", "", t.Key(), nil),
 					ms.parseField(tagVal, "", "", t.Elem(), nil),

+ 12 - 11
protogen/protogen.go

@@ -28,13 +28,14 @@ import (
 	"strings"
 
 	"github.com/golang/protobuf/proto"
-	descpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
-	pluginpb "github.com/golang/protobuf/protoc-gen-go/plugin"
 	"github.com/golang/protobuf/v2/internal/scalar"
+	"github.com/golang/protobuf/v2/reflect/protodesc"
 	"github.com/golang/protobuf/v2/reflect/protoreflect"
 	"github.com/golang/protobuf/v2/reflect/protoregistry"
-	"github.com/golang/protobuf/v2/reflect/prototype"
 	"golang.org/x/tools/go/ast/astutil"
+
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
+	pluginpb "github.com/golang/protobuf/v2/types/plugin"
 )
 
 // Run executes a function as a protoc plugin.
@@ -376,7 +377,7 @@ func (gen *Plugin) FileByName(name string) (f *File, ok bool) {
 // A File describes a .proto source file.
 type File struct {
 	Desc  protoreflect.FileDescriptor
-	Proto *descpb.FileDescriptorProto
+	Proto *descriptorpb.FileDescriptorProto
 
 	GoPackageName GoPackageName // name of this file's Go package
 	GoImportPath  GoImportPath  // import path of this file's Go package
@@ -393,11 +394,11 @@ type File struct {
 	// of "dir/foo". Appending ".pb.go" produces an output file of "dir/foo.pb.go".
 	GeneratedFilenamePrefix string
 
-	sourceInfo map[pathKey][]*descpb.SourceCodeInfo_Location
+	sourceInfo map[pathKey][]*descriptorpb.SourceCodeInfo_Location
 }
 
-func newFile(gen *Plugin, p *descpb.FileDescriptorProto, packageName GoPackageName, importPath GoImportPath) (*File, error) {
-	desc, err := prototype.NewFileFromDescriptorProto(p, gen.fileReg)
+func newFile(gen *Plugin, p *descriptorpb.FileDescriptorProto, packageName GoPackageName, importPath GoImportPath) (*File, error) {
+	desc, err := protodesc.NewFile(p, gen.fileReg)
 	if err != nil {
 		return nil, fmt.Errorf("invalid FileDescriptorProto %q: %v", p.GetName(), err)
 	}
@@ -409,7 +410,7 @@ func newFile(gen *Plugin, p *descpb.FileDescriptorProto, packageName GoPackageNa
 		Proto:         p,
 		GoPackageName: packageName,
 		GoImportPath:  importPath,
-		sourceInfo:    make(map[pathKey][]*descpb.SourceCodeInfo_Location),
+		sourceInfo:    make(map[pathKey][]*descriptorpb.SourceCodeInfo_Location),
 	}
 
 	// Determine the prefix for generated Go files.
@@ -477,7 +478,7 @@ func (f *File) location(path ...int32) Location {
 // If there is no go_package, it returns ("", "").
 // If there's a simple name, it returns (pkg, "").
 // If the option implies an import path, it returns (pkg, impPath).
-func goPackageOption(d *descpb.FileDescriptorProto) (pkg GoPackageName, impPath GoImportPath) {
+func goPackageOption(d *descriptorpb.FileDescriptorProto) (pkg GoPackageName, impPath GoImportPath) {
 	opt := d.GetOptions().GetGoPackage()
 	if opt == "" {
 		return "", ""
@@ -988,13 +989,13 @@ func (g *GeneratedFile) metaFile(content []byte) (string, error) {
 	if err != nil {
 		return "", err
 	}
-	info := &descpb.GeneratedCodeInfo{}
+	info := &descriptorpb.GeneratedCodeInfo{}
 
 	seenAnnotations := make(map[string]bool)
 	annotate := func(s string, ident *ast.Ident) {
 		seenAnnotations[s] = true
 		for _, loc := range g.annotations[s] {
-			info.Annotation = append(info.Annotation, &descpb.GeneratedCodeInfo_Annotation{
+			info.Annotation = append(info.Annotation, &descriptorpb.GeneratedCodeInfo_Annotation{
 				SourceFile: scalar.String(loc.SourceFile),
 				Path:       loc.Path,
 				Begin:      scalar.Int32(int32(fset.Position(ident.Pos()).Offset)),

+ 20 - 9
protogen/protogen_test.go

@@ -17,9 +17,10 @@ import (
 	"testing"
 
 	"github.com/golang/protobuf/proto"
-	descpb "github.com/golang/protobuf/protoc-gen-go/descriptor"
-	pluginpb "github.com/golang/protobuf/protoc-gen-go/plugin"
 	"github.com/golang/protobuf/v2/internal/scalar"
+
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
+	pluginpb "github.com/golang/protobuf/v2/types/plugin"
 )
 
 func TestPluginParameters(t *testing.T) {
@@ -172,11 +173,11 @@ TEST: %v
 
 		req := &pluginpb.CodeGeneratorRequest{
 			Parameter: scalar.String(test.parameter),
-			ProtoFile: []*descpb.FileDescriptorProto{
+			ProtoFile: []*descriptorpb.FileDescriptorProto{
 				{
 					Name:    scalar.String(filename),
 					Package: scalar.String(protoPackageName),
-					Options: &descpb.FileOptions{
+					Options: &descriptorpb.FileOptions{
 						GoPackage: scalar.String(test.goPackageOption),
 					},
 				},
@@ -209,7 +210,7 @@ TEST: %v
 
 func TestPackageNameInference(t *testing.T) {
 	gen, err := New(&pluginpb.CodeGeneratorRequest{
-		ProtoFile: []*descpb.FileDescriptorProto{
+		ProtoFile: []*descriptorpb.FileDescriptorProto{
 			{
 				Name:    scalar.String("dir/file1.proto"),
 				Package: scalar.String("proto.package"),
@@ -217,7 +218,7 @@ func TestPackageNameInference(t *testing.T) {
 			{
 				Name:    scalar.String("dir/file2.proto"),
 				Package: scalar.String("proto.package"),
-				Options: &descpb.FileOptions{
+				Options: &descriptorpb.FileOptions{
 					GoPackage: scalar.String("foo"),
 				},
 			},
@@ -236,18 +237,18 @@ func TestPackageNameInference(t *testing.T) {
 
 func TestInconsistentPackageNames(t *testing.T) {
 	_, err := New(&pluginpb.CodeGeneratorRequest{
-		ProtoFile: []*descpb.FileDescriptorProto{
+		ProtoFile: []*descriptorpb.FileDescriptorProto{
 			{
 				Name:    scalar.String("dir/file1.proto"),
 				Package: scalar.String("proto.package"),
-				Options: &descpb.FileOptions{
+				Options: &descriptorpb.FileOptions{
 					GoPackage: scalar.String("golang.org/x/foo"),
 				},
 			},
 			{
 				Name:    scalar.String("dir/file2.proto"),
 				Package: scalar.String("proto.package"),
-				Options: &descpb.FileOptions{
+				Options: &descriptorpb.FileOptions{
 					GoPackage: scalar.String("golang.org/x/foo;bar"),
 				},
 			},
@@ -382,6 +383,16 @@ func makeRequest(t *testing.T, args ...string) *pluginpb.CodeGeneratorRequest {
 		t.Fatal(err)
 	}
 	req := &pluginpb.CodeGeneratorRequest{}
+
+	// TODO: This is a hack, but the proto v1 UnmarshalText relies on global
+	// enum registration to work. The v2 textpb will not have this issue.
+	proto.RegisterEnum("google.protobuf.FieldDescriptorProto_Type", descriptorpb.FieldDescriptorProto_Type_name, descriptorpb.FieldDescriptorProto_Type_value)
+	proto.RegisterEnum("google.protobuf.FieldDescriptorProto_Label", descriptorpb.FieldDescriptorProto_Label_name, descriptorpb.FieldDescriptorProto_Label_value)
+	proto.RegisterEnum("google.protobuf.FileOptions_OptimizeMode", descriptorpb.FileOptions_OptimizeMode_name, descriptorpb.FileOptions_OptimizeMode_value)
+	proto.RegisterEnum("google.protobuf.FieldOptions_CType", descriptorpb.FieldOptions_CType_name, descriptorpb.FieldOptions_CType_value)
+	proto.RegisterEnum("google.protobuf.FieldOptions_JSType", descriptorpb.FieldOptions_JSType_name, descriptorpb.FieldOptions_JSType_value)
+	proto.RegisterEnum("google.protobuf.MethodOptions_IdempotencyLevel", descriptorpb.MethodOptions_IdempotencyLevel_name, descriptorpb.MethodOptions_IdempotencyLevel_value)
+
 	if err := proto.UnmarshalText(string(b), req); err != nil {
 		t.Fatal(err)
 	}

+ 32 - 28
reflect/prototype/protofile_desc.go → reflect/protodesc/protodesc.go

@@ -2,7 +2,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package prototype
+// Package protodesc provides for converting descriptorpb.FileDescriptorProto
+// to/from the reflective protoreflect.FileDescriptor.
+package protodesc
 
 import (
 	"fmt"
@@ -10,12 +12,13 @@ import (
 	"strconv"
 	"strings"
 
-	descriptorV1 "github.com/golang/protobuf/protoc-gen-go/descriptor"
-
 	"github.com/golang/protobuf/v2/internal/encoding/text"
 	"github.com/golang/protobuf/v2/internal/errors"
 	"github.com/golang/protobuf/v2/reflect/protoreflect"
 	"github.com/golang/protobuf/v2/reflect/protoregistry"
+	"github.com/golang/protobuf/v2/reflect/prototype"
+
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
 )
 
 // TODO: Should we be responsible for validating other parts of the descriptor
@@ -41,9 +44,9 @@ import (
 // However, this will complicate future work for validation since File may now
 // diverge from the stored descriptor proto (see above TODO).
 
-// NewFileFromDescriptorProto creates a new protoreflect.FileDescriptor from
-// the provided descriptor message. The file must represent a valid proto file
-// according to protobuf semantics.
+// NewFile creates a new protoreflect.FileDescriptor from the provided
+// file descriptor message. The file must represent a valid proto file according
+// to protobuf semantics.
 //
 // Any import files, enum types, or message types referenced in the file are
 // resolved using the provided registry. When looking up an import file path,
@@ -52,8 +55,8 @@ import (
 //
 // The caller must relinquish full ownership of the input fd and must not
 // access or mutate any fields.
-func NewFileFromDescriptorProto(fd *descriptorV1.FileDescriptorProto, r *protoregistry.Files) (protoreflect.FileDescriptor, error) {
-	var f File
+func NewFile(fd *descriptorpb.FileDescriptorProto, r *protoregistry.Files) (protoreflect.FileDescriptor, error) {
+	var f prototype.File
 	switch fd.GetSyntax() {
 	case "", "proto2":
 		f.Syntax = protoreflect.Proto2
@@ -91,7 +94,7 @@ func NewFileFromDescriptorProto(fd *descriptorV1.FileDescriptorProto, r *protore
 			return nil, errors.New("duplicate files for import %q", path)
 		}
 		if imp.IsWeak || imp.FileDescriptor == nil {
-			imp.FileDescriptor = PlaceholderFile(path, "")
+			imp.FileDescriptor = prototype.PlaceholderFile(path, "")
 		}
 	}
 
@@ -113,16 +116,16 @@ func NewFileFromDescriptorProto(fd *descriptorV1.FileDescriptorProto, r *protore
 		return nil, err
 	}
 
-	return NewFile(&f)
+	return prototype.NewFile(&f)
 }
 
-func messagesFromDescriptorProto(mds []*descriptorV1.DescriptorProto, syntax protoreflect.Syntax, r *protoregistry.Files) (ms []Message, err error) {
+func messagesFromDescriptorProto(mds []*descriptorpb.DescriptorProto, syntax protoreflect.Syntax, r *protoregistry.Files) (ms []prototype.Message, err error) {
 	for _, md := range mds {
-		var m Message
+		var m prototype.Message
 		m.Name = protoreflect.Name(md.GetName())
 		m.Options = md.GetOptions()
 		for _, fd := range md.GetField() {
-			var f Field
+			var f prototype.Field
 			f.Name = protoreflect.Name(fd.GetName())
 			f.Number = protoreflect.FieldNumber(fd.GetNumber())
 			f.Cardinality = protoreflect.Cardinality(fd.GetLabel())
@@ -142,28 +145,29 @@ func messagesFromDescriptorProto(mds []*descriptorV1.DescriptorProto, syntax pro
 				}
 				f.OneofName = protoreflect.Name(md.GetOneofDecl()[i].GetName())
 			}
+			opts, _ := f.Options.(*descriptorpb.FieldOptions)
 			switch f.Kind {
 			case protoreflect.EnumKind:
 				f.EnumType, err = findEnumDescriptor(fd.GetTypeName(), r)
 				if err != nil {
 					return nil, err
 				}
-				if f.Options.GetWeak() && !f.EnumType.IsPlaceholder() {
-					f.EnumType = PlaceholderEnum(f.EnumType.FullName())
+				if opts.GetWeak() && !f.EnumType.IsPlaceholder() {
+					f.EnumType = prototype.PlaceholderEnum(f.EnumType.FullName())
 				}
 			case protoreflect.MessageKind, protoreflect.GroupKind:
 				f.MessageType, err = findMessageDescriptor(fd.GetTypeName(), r)
 				if err != nil {
 					return nil, err
 				}
-				if f.Options.GetWeak() && !f.MessageType.IsPlaceholder() {
-					f.MessageType = PlaceholderMessage(f.MessageType.FullName())
+				if opts.GetWeak() && !f.MessageType.IsPlaceholder() {
+					f.MessageType = prototype.PlaceholderMessage(f.MessageType.FullName())
 				}
 			}
 			m.Fields = append(m.Fields, f)
 		}
 		for _, od := range md.GetOneofDecl() {
-			m.Oneofs = append(m.Oneofs, Oneof{
+			m.Oneofs = append(m.Oneofs, prototype.Oneof{
 				Name:    protoreflect.Name(od.GetName()),
 				Options: od.Options,
 			})
@@ -194,13 +198,13 @@ func messagesFromDescriptorProto(mds []*descriptorV1.DescriptorProto, syntax pro
 	return ms, nil
 }
 
-func enumsFromDescriptorProto(eds []*descriptorV1.EnumDescriptorProto, r *protoregistry.Files) (es []Enum, err error) {
+func enumsFromDescriptorProto(eds []*descriptorpb.EnumDescriptorProto, r *protoregistry.Files) (es []prototype.Enum, err error) {
 	for _, ed := range eds {
-		var e Enum
+		var e prototype.Enum
 		e.Name = protoreflect.Name(ed.GetName())
 		e.Options = ed.GetOptions()
 		for _, vd := range ed.GetValue() {
-			e.Values = append(e.Values, EnumValue{
+			e.Values = append(e.Values, prototype.EnumValue{
 				Name:    protoreflect.Name(vd.GetName()),
 				Number:  protoreflect.EnumNumber(vd.GetNumber()),
 				Options: vd.Options,
@@ -211,9 +215,9 @@ func enumsFromDescriptorProto(eds []*descriptorV1.EnumDescriptorProto, r *protor
 	return es, nil
 }
 
-func extensionsFromDescriptorProto(xds []*descriptorV1.FieldDescriptorProto, r *protoregistry.Files) (xs []Extension, err error) {
+func extensionsFromDescriptorProto(xds []*descriptorpb.FieldDescriptorProto, r *protoregistry.Files) (xs []prototype.Extension, err error) {
 	for _, xd := range xds {
-		var x Extension
+		var x prototype.Extension
 		x.Name = protoreflect.Name(xd.GetName())
 		x.Number = protoreflect.FieldNumber(xd.GetNumber())
 		x.Cardinality = protoreflect.Cardinality(xd.GetLabel())
@@ -246,13 +250,13 @@ func extensionsFromDescriptorProto(xds []*descriptorV1.FieldDescriptorProto, r *
 	return xs, nil
 }
 
-func servicesFromDescriptorProto(sds []*descriptorV1.ServiceDescriptorProto, r *protoregistry.Files) (ss []Service, err error) {
+func servicesFromDescriptorProto(sds []*descriptorpb.ServiceDescriptorProto, r *protoregistry.Files) (ss []prototype.Service, err error) {
 	for _, sd := range sds {
-		var s Service
+		var s prototype.Service
 		s.Name = protoreflect.Name(sd.GetName())
 		s.Options = sd.GetOptions()
 		for _, md := range sd.GetMethod() {
-			var m Method
+			var m prototype.Method
 			m.Name = protoreflect.Name(md.GetName())
 			m.Options = md.GetOptions()
 			m.InputType, err = findMessageDescriptor(md.GetInputType(), r)
@@ -290,7 +294,7 @@ func findMessageDescriptor(s string, r *protoregistry.Files) (protoreflect.Messa
 		}
 		return m, nil
 	case err == protoregistry.NotFound:
-		return PlaceholderMessage(name), nil
+		return prototype.PlaceholderMessage(name), nil
 	default:
 		return nil, err
 	}
@@ -309,7 +313,7 @@ func findEnumDescriptor(s string, r *protoregistry.Files) (protoreflect.EnumDesc
 		}
 		return e, nil
 	case err == protoregistry.NotFound:
-		return PlaceholderEnum(name), nil
+		return prototype.PlaceholderEnum(name), nil
 	default:
 		return nil, err
 	}

+ 18 - 10
reflect/protoreflect/type.go

@@ -102,6 +102,10 @@ type Descriptor interface {
 	// Support for this functionality is optional and may return (nil, false).
 	DescriptorProto() (Message, bool)
 
+	// TODO: Should DescriptorProto exist if prototype does not depend on
+	// the descriptor package? Should this instead be a function in the
+	// protodesc package?
+
 	// Options returns the descriptor options. The caller must not modify
 	// the returned value.
 	//
@@ -120,12 +124,16 @@ type Descriptor interface {
 	//	| MethodDescriptor    | google.protobuf.MethodOptions            |
 	//	+---------------------+------------------------------------------+
 	//
-	// This method will never return a nil interface value, although the
-	// concrete value contained in the interface may be nil (e.g.,
-	// (*descpb.FileOptions)(nil)).
+	// This method may return a nil interface value if no options are present.
+	Options() ProtoMessage
+
+	// TODO: If no options are set, can Options return a typed nil-pointer
+	// using a form of dependency injection where the descriptor proto
+	// registers the option types with the prototype package?
 	//
-	// TODO: Return ProtoMessage instead of interface{}.
-	Options() interface{}
+	// However, what happens if the descriptor proto is never linked in?
+	// Then we cannot provide this guarantee.
+	// Perhaps this should return a bool as well?
 
 	doNotImplement
 }
@@ -304,6 +312,11 @@ type FieldDescriptor interface {
 	// If true, then it implies Cardinality is Repeated.
 	IsPacked() bool
 
+	// IsWeak reports whether this is a weak field, which does not impose a
+	// direct dependency on the target type.
+	// If true, then MessageDescriptor returns a placeholder type.
+	IsWeak() bool
+
 	// IsMap reports whether this field represents a map.
 	// The value type for the associated field is a Map instead of a List.
 	//
@@ -311,11 +324,6 @@ type FieldDescriptor interface {
 	// and MessageDescriptor.IsMapEntry is true.
 	IsMap() bool
 
-	// IsWeak reports whether this is a weak field, which does not impose a
-	// direct dependency on the target type.
-	// If true, then MessageDescriptor returns a placeholder type.
-	IsWeak() bool
-
 	// Default returns the default value for scalar fields.
 	// For proto2, it is the default value as specified in the proto file,
 	// or the zero value if unspecified.

+ 100 - 0
reflect/prototype/desc_test.go

@@ -0,0 +1,100 @@
+// Copyright 2018 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package prototype
+
+import (
+	"reflect"
+	"testing"
+
+	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
+)
+
+// TestDescriptors tests that the implementations do not declare additional
+// methods that do not exist on the interface types.
+func TestDescriptors(t *testing.T) {
+	tests := []interface{}{
+		[]pref.FileDescriptor{placeholderFile{}, fileDesc{}},
+		[]pref.MessageDescriptor{placeholderMessage{}, standaloneMessage{}, messageDesc{}},
+		[]pref.FieldDescriptor{standaloneExtension{}, fieldDesc{}, extensionDesc{}},
+		[]pref.OneofDescriptor{oneofDesc{}},
+		[]pref.EnumDescriptor{placeholderEnum{}, standaloneEnum{}, enumDesc{}},
+		[]pref.EnumValueDescriptor{enumValueDesc{}},
+		[]pref.ServiceDescriptor{serviceDesc{}},
+		[]pref.MethodDescriptor{methodDesc{}},
+
+		[]pref.FileImports{(*fileImports)(nil)},
+		[]pref.MessageDescriptors{(*messages)(nil)},
+		[]pref.FieldNumbers{(*numbers)(nil)},
+		[]pref.FieldRanges{(*ranges)(nil)},
+		[]pref.FieldDescriptors{(*fields)(nil), (*oneofFields)(nil)},
+		[]pref.OneofDescriptors{(*oneofs)(nil)},
+		[]pref.ExtensionDescriptors{(*extensions)(nil)},
+		[]pref.EnumDescriptors{(*enums)(nil)},
+		[]pref.EnumValueDescriptors{(*enumValues)(nil)},
+		[]pref.ServiceDescriptors{(*services)(nil)},
+		[]pref.MethodDescriptors{(*methods)(nil)},
+	}
+
+	for _, tt := range tests {
+		v := reflect.ValueOf(tt) // []T where T is an interface
+		ifaceType := v.Type().Elem()
+		for i := 0; i < v.Len(); i++ {
+			implType := v.Index(i).Elem().Type()
+
+			var hasName bool
+			for j := 0; j < implType.NumMethod(); j++ {
+				if name := implType.Method(j).Name; name == "Format" {
+					hasName = true
+				} else if _, ok := ifaceType.MethodByName(name); !ok {
+					t.Errorf("spurious method: %v.%v", implType, name)
+				}
+			}
+			if !hasName {
+				t.Errorf("missing method: %v.Format", implType)
+			}
+		}
+	}
+}
+
+// TestDescriptorAccessors tests that descriptorAccessors is up-to-date.
+func TestDescriptorAccessors(t *testing.T) {
+	ignore := map[string]bool{
+		"DefaultEnumValue": true,
+		"DescriptorByName": true,
+		"ProtoType":        true,
+	}
+	rt := reflect.TypeOf((*pref.Descriptor)(nil)).Elem()
+	for i := 0; i < rt.NumMethod(); i++ {
+		ignore[rt.Method(i).Name] = true
+	}
+
+	for rt, m := range descriptorAccessors {
+		got := map[string]bool{}
+		for _, s := range m {
+			got[s] = true
+		}
+		want := map[string]bool{}
+		for i := 0; i < rt.NumMethod(); i++ {
+			want[rt.Method(i).Name] = true
+		}
+
+		// Check if descriptorAccessors contains a non-existent accessor.
+		// If this test fails, remove the accessor from descriptorAccessors.
+		for s := range got {
+			if !want[s] && !ignore[s] {
+				t.Errorf("%v.%v does not exist", rt, s)
+			}
+		}
+
+		// Check if there are new protoreflect interface methods that are not
+		// handled by the formatter. If this fails, either add the method to
+		// ignore or add them to descriptorAccessors.
+		for s := range want {
+			if !got[s] && !ignore[s] {
+				t.Errorf("%v.%v is not called by formatter", rt, s)
+			}
+		}
+	}
+}

+ 4 - 5
reflect/prototype/placeholder_type.go

@@ -7,8 +7,7 @@ package prototype
 import (
 	"fmt"
 
-	descriptorV1 "github.com/golang/protobuf/protoc-gen-go/descriptor"
-	"github.com/golang/protobuf/v2/internal/pragma"
+	pragma "github.com/golang/protobuf/v2/internal/pragma"
 	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
 )
 
@@ -41,7 +40,7 @@ type placeholderFile struct {
 	placeholderName
 }
 
-func (t placeholderFile) Options() interface{}                           { return (*descriptorV1.FileOptions)(nil) }
+func (t placeholderFile) Options() pref.ProtoMessage                     { return nil }
 func (t placeholderFile) Path() string                                   { return t.path }
 func (t placeholderFile) Package() pref.FullName                         { return t.FullName() }
 func (t placeholderFile) Imports() pref.FileImports                      { return &emptyFiles }
@@ -57,7 +56,7 @@ type placeholderMessage struct {
 	placeholderName
 }
 
-func (t placeholderMessage) Options() interface{}                  { return (*descriptorV1.MessageOptions)(nil) }
+func (t placeholderMessage) Options() pref.ProtoMessage            { return nil }
 func (t placeholderMessage) IsMapEntry() bool                      { return false }
 func (t placeholderMessage) Fields() pref.FieldDescriptors         { return &emptyFields }
 func (t placeholderMessage) Oneofs() pref.OneofDescriptors         { return &emptyOneofs }
@@ -73,7 +72,7 @@ type placeholderEnum struct {
 	placeholderName
 }
 
-func (t placeholderEnum) Options() interface{}              { return (*descriptorV1.EnumOptions)(nil) }
+func (t placeholderEnum) Options() pref.ProtoMessage        { return nil }
 func (t placeholderEnum) Values() pref.EnumValueDescriptors { return &emptyEnumValues }
 func (t placeholderEnum) Format(s fmt.State, r rune)        { formatDesc(s, r, t) }
 func (t placeholderEnum) ProtoType(pref.EnumDescriptor)     {}

+ 52 - 14
reflect/prototype/protofile.go

@@ -13,10 +13,7 @@
 // the parent type.
 package prototype
 
-import (
-	descriptorV1 "github.com/golang/protobuf/protoc-gen-go/descriptor"
-	"github.com/golang/protobuf/v2/reflect/protoreflect"
-)
+import "github.com/golang/protobuf/v2/reflect/protoreflect"
 
 // Every struct has a "meta" struct embedded within it as a pointer.
 // The meta type provides additional data structures for efficient lookup on
@@ -44,7 +41,7 @@ type File struct {
 	Enums      []Enum
 	Extensions []Extension
 	Services   []Service
-	Options    *descriptorV1.FileOptions
+	Options    protoreflect.ProtoMessage
 
 	*fileMeta
 }
@@ -54,7 +51,12 @@ type File struct {
 //
 // Fields that reference an enum or message that is being declared within the
 // same File can be represented using a placeholder descriptor. NewFile will
-// automatically resolve the placeholder to point to the concrete type.
+// automatically resolve the placeholder to point to a concrete descriptor.
+// Alternatively, a reference descriptor obtained via Enum.Reference or
+// Message.Reference can be used instead. The placeholder approach makes it
+// possible to declare the file descriptor as a single File literal and
+// is generally easier to use. The reference approach is more performant,
+// but also more error prone.
 //
 // The caller must relinquish full ownership of the input t and must not
 // access or mutate any fields. The input must not contain slices that are
@@ -67,9 +69,29 @@ func NewFile(t *File) (protoreflect.FileDescriptor, error) {
 	if err := validateFile(ft); err != nil {
 		return nil, err
 	}
+
+	// TODO: When using reference descriptors, it is vital that all enums and
+	// messages are touched so that they are initialized before returning.
+	// Otherwise, reference descriptors may still be invalid.
+	//
+	// We can remove this once validateFile is implemented, since it will
+	// inherently touch all the necessary messages and enums.
+	visitMessages(ft)
+
 	return ft, nil
 }
 
+func visitMessages(d interface {
+	Enums() protoreflect.EnumDescriptors
+	Messages() protoreflect.MessageDescriptors
+}) {
+	d.Enums()
+	ms := d.Messages()
+	for i := 0; i < ms.Len(); i++ {
+		visitMessages(ms.Get(i))
+	}
+}
+
 // Message is a constructor for protoreflect.MessageDescriptor.
 type Message struct {
 	Name            protoreflect.Name
@@ -79,11 +101,19 @@ type Message struct {
 	Messages        []Message
 	Enums           []Enum
 	Extensions      []Extension
-	Options         *descriptorV1.MessageOptions
+	Options         protoreflect.ProtoMessage
 
 	*messageMeta
 }
 
+// Reference returns m as a reference protoreflect.MessageDescriptor,
+// which can be used to satisfy internal dependencies within a proto file.
+// Methods on the returned descriptor are not valid until the file that this
+// message belongs to has been constructed via NewFile.
+func (m *Message) Reference() protoreflect.MessageDescriptor {
+	return messageDesc{m}
+}
+
 // Field is a constructor for protoreflect.FieldDescriptor.
 type Field struct {
 	Name        protoreflect.Name
@@ -95,7 +125,7 @@ type Field struct {
 	OneofName   protoreflect.Name
 	MessageType protoreflect.MessageDescriptor
 	EnumType    protoreflect.EnumDescriptor
-	Options     *descriptorV1.FieldOptions
+	Options     protoreflect.ProtoMessage
 
 	*fieldMeta
 }
@@ -103,7 +133,7 @@ type Field struct {
 // Oneof is a constructor for protoreflect.OneofDescriptor.
 type Oneof struct {
 	Name    protoreflect.Name
-	Options *descriptorV1.OneofOptions
+	Options protoreflect.ProtoMessage
 
 	*oneofMeta
 }
@@ -118,7 +148,7 @@ type Extension struct {
 	MessageType  protoreflect.MessageDescriptor
 	EnumType     protoreflect.EnumDescriptor
 	ExtendedType protoreflect.MessageDescriptor
-	Options      *descriptorV1.FieldOptions
+	Options      protoreflect.ProtoMessage
 
 	*extensionMeta
 }
@@ -127,16 +157,24 @@ type Extension struct {
 type Enum struct {
 	Name    protoreflect.Name
 	Values  []EnumValue
-	Options *descriptorV1.EnumOptions
+	Options protoreflect.ProtoMessage
 
 	*enumMeta
 }
 
+// Reference returns e as a reference protoreflect.EnumDescriptor,
+// which can be used to satisfy internal dependencies within a proto file.
+// Methods on the returned descriptor are not valid until the file that this
+// enum belongs to has been constructed via NewFile.
+func (e *Enum) Reference() protoreflect.EnumDescriptor {
+	return enumDesc{e}
+}
+
 // EnumValue is a constructor for protoreflect.EnumValueDescriptor.
 type EnumValue struct {
 	Name    protoreflect.Name
 	Number  protoreflect.EnumNumber
-	Options *descriptorV1.EnumValueOptions
+	Options protoreflect.ProtoMessage
 
 	*enumValueMeta
 }
@@ -145,7 +183,7 @@ type EnumValue struct {
 type Service struct {
 	Name    protoreflect.Name
 	Methods []Method
-	Options *descriptorV1.ServiceOptions
+	Options protoreflect.ProtoMessage
 
 	*serviceMeta
 }
@@ -157,7 +195,7 @@ type Method struct {
 	OutputType        protoreflect.MessageDescriptor
 	IsStreamingClient bool
 	IsStreamingServer bool
-	Options           *descriptorV1.MethodOptions
+	Options           protoreflect.ProtoMessage
 
 	*methodMeta
 }

+ 3 - 3
reflect/prototype/protofile_list.go

@@ -8,15 +8,15 @@ import (
 	"fmt"
 	"sync"
 
-	"github.com/golang/protobuf/v2/internal/pragma"
-	"github.com/golang/protobuf/v2/internal/set"
+	pragma "github.com/golang/protobuf/v2/internal/pragma"
+	pset "github.com/golang/protobuf/v2/internal/set"
 	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
 )
 
 type numbersMeta struct {
 	once sync.Once
 	ns   []pref.FieldNumber
-	nss  set.Ints
+	nss  pset.Ints
 }
 type numbers numbersMeta
 

+ 105 - 55
reflect/prototype/protofile_type.go

@@ -10,8 +10,7 @@ import (
 	"strings"
 	"sync"
 
-	descriptorV1 "github.com/golang/protobuf/protoc-gen-go/descriptor"
-	"github.com/golang/protobuf/v2/internal/pragma"
+	pragma "github.com/golang/protobuf/v2/internal/pragma"
 	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
 )
 
@@ -61,7 +60,7 @@ func (t fileDesc) Name() pref.Name                                  { return t.f
 func (t fileDesc) FullName() pref.FullName                          { return t.f.Package }
 func (t fileDesc) IsPlaceholder() bool                              { return false }
 func (t fileDesc) DescriptorProto() (pref.Message, bool)            { return nil, false }
-func (t fileDesc) Options() interface{}                             { return t.f.Options }
+func (t fileDesc) Options() pref.ProtoMessage                       { return t.f.Options }
 func (t fileDesc) Path() string                                     { return t.f.Path }
 func (t fileDesc) Package() pref.FullName                           { return t.f.Package }
 func (t fileDesc) Imports() pref.FileImports                        { return (*fileImports)(&t.f.Imports) }
@@ -158,6 +157,7 @@ type messageMeta struct {
 	ms messagesMeta
 	es enumsMeta
 	xs extensionsMeta
+	mo messageOptions
 }
 type messageDesc struct{ m *Message }
 
@@ -168,8 +168,8 @@ func (t messageDesc) Name() pref.Name                       { return t.m.Name }
 func (t messageDesc) FullName() pref.FullName               { return t.m.fullName }
 func (t messageDesc) IsPlaceholder() bool                   { return false }
 func (t messageDesc) DescriptorProto() (pref.Message, bool) { return nil, false }
-func (t messageDesc) Options() interface{}                  { return t.m.Options }
-func (t messageDesc) IsMapEntry() bool                      { return t.m.Options.GetMapEntry() }
+func (t messageDesc) Options() pref.ProtoMessage            { return t.m.Options }
+func (t messageDesc) IsMapEntry() bool                      { return t.m.mo.lazyInit(t).isMapEntry }
 func (t messageDesc) Fields() pref.FieldDescriptors         { return t.m.fs.lazyInit(t, t.m.Fields) }
 func (t messageDesc) Oneofs() pref.OneofDescriptors         { return t.m.os.lazyInit(t, t.m.Oneofs) }
 func (t messageDesc) RequiredNumbers() pref.FieldNumbers    { return t.m.ns.lazyInit(t.m.Fields) }
@@ -181,6 +181,22 @@ func (t messageDesc) Format(s fmt.State, r rune)            { formatDesc(s, r, t
 func (t messageDesc) ProtoType(pref.MessageDescriptor)      {}
 func (t messageDesc) ProtoInternal(pragma.DoNotImplement)   {}
 
+type messageOptions struct {
+	once       sync.Once
+	isMapEntry bool
+}
+
+func (p *messageOptions) lazyInit(m pref.MessageDescriptor) *messageOptions {
+	p.once.Do(func() {
+		if m.Options() != nil {
+			const mapEntryFieldNumber = 7 // google.protobuf.MessageOptions.map_entry
+			fs := m.Options().ProtoReflect().KnownFields()
+			p.isMapEntry = fs.Get(mapEntryFieldNumber).Bool()
+		}
+	})
+	return p
+}
+
 type fieldMeta struct {
 	inheritedMeta
 
@@ -189,6 +205,7 @@ type fieldMeta struct {
 	ot oneofReference
 	mt messageReference
 	et enumReference
+	fo fieldOptions
 }
 type fieldDesc struct{ f *Field }
 
@@ -199,14 +216,14 @@ func (t fieldDesc) Name() pref.Name                            { return t.f.Name
 func (t fieldDesc) FullName() pref.FullName                    { return t.f.fullName }
 func (t fieldDesc) IsPlaceholder() bool                        { return false }
 func (t fieldDesc) DescriptorProto() (pref.Message, bool)      { return nil, false }
-func (t fieldDesc) Options() interface{}                       { return t.f.Options }
+func (t fieldDesc) Options() pref.ProtoMessage                 { return t.f.Options }
 func (t fieldDesc) Number() pref.FieldNumber                   { return t.f.Number }
 func (t fieldDesc) Cardinality() pref.Cardinality              { return t.f.Cardinality }
 func (t fieldDesc) Kind() pref.Kind                            { return t.f.Kind }
 func (t fieldDesc) JSONName() string                           { return t.f.js.lazyInit(t.f) }
-func (t fieldDesc) IsPacked() bool                             { return fieldIsPacked(t) }
-func (t fieldDesc) IsMap() bool                                { return isMap(t) }
-func (t fieldDesc) IsWeak() bool                               { return t.f.Options.GetWeak() }
+func (t fieldDesc) IsPacked() bool                             { return t.f.fo.lazyInit(t).isPacked }
+func (t fieldDesc) IsWeak() bool                               { return t.f.fo.lazyInit(t).isWeak }
+func (t fieldDesc) IsMap() bool                                { return t.f.fo.lazyInit(t).isMap }
 func (t fieldDesc) Default() pref.Value                        { return t.f.dv.value(t, t.f.Default) }
 func (t fieldDesc) DefaultEnumValue() pref.EnumValueDescriptor { return t.f.dv.enum(t, t.f.Default) }
 func (t fieldDesc) HasDefault() bool                           { return t.f.Default.IsValid() }
@@ -218,44 +235,6 @@ func (t fieldDesc) Format(s fmt.State, r rune)                 { formatDesc(s, r
 func (t fieldDesc) ProtoType(pref.FieldDescriptor)             {}
 func (t fieldDesc) ProtoInternal(pragma.DoNotImplement)        {}
 
-func fieldIsPacked(t fieldDesc) bool {
-	if t.f.Options != nil && t.f.Options.Packed != nil {
-		return *t.f.Options.Packed
-	}
-	// https://developers.google.com/protocol-buffers/docs/proto3:
-	// "In proto3, repeated fields of scalar numeric types use packed
-	// encoding by default."
-	return (t.f.syntax == pref.Proto3 &&
-		t.f.Cardinality == pref.Repeated &&
-		isScalarNumeric[t.f.Kind])
-}
-
-var isScalarNumeric = map[pref.Kind]bool{
-	pref.BoolKind:     true,
-	pref.EnumKind:     true,
-	pref.Int32Kind:    true,
-	pref.Sint32Kind:   true,
-	pref.Uint32Kind:   true,
-	pref.Int64Kind:    true,
-	pref.Sint64Kind:   true,
-	pref.Uint64Kind:   true,
-	pref.Sfixed32Kind: true,
-	pref.Fixed32Kind:  true,
-	pref.FloatKind:    true,
-	pref.Sfixed64Kind: true,
-	pref.Fixed64Kind:  true,
-	pref.DoubleKind:   true,
-}
-
-func isMap(t pref.FieldDescriptor) bool {
-	if t.Cardinality() == pref.Repeated && t.Kind() == pref.MessageKind {
-		if mt := t.MessageType(); mt != nil {
-			return mt.Options().(*descriptorV1.MessageOptions).GetMapEntry()
-		}
-	}
-	return false
-}
-
 type jsonName struct{ once sync.Once }
 
 func (p *jsonName) lazyInit(f *Field) string {
@@ -301,6 +280,77 @@ func (p *oneofReference) lazyInit(parent pref.Descriptor, name pref.Name) pref.O
 	return p.otyp
 }
 
+type fieldOptions struct {
+	once     sync.Once
+	isPacked bool
+	isWeak   bool
+	isMap    bool
+}
+
+func (p *fieldOptions) lazyInit(f pref.FieldDescriptor) *fieldOptions {
+	p.once.Do(func() {
+		if f.Cardinality() == pref.Repeated {
+			// In proto3, repeated fields of scalar numeric types use
+			// packed encoding by default.
+			// See https://developers.google.com/protocol-buffers/docs/proto3
+			if f.Syntax() == pref.Proto3 {
+				p.isPacked = isScalarNumeric[f.Kind()]
+			}
+			if f.Kind() == pref.MessageKind {
+				p.isMap = f.MessageType().IsMapEntry()
+			}
+		}
+
+		if f.Options() != nil {
+			const packedFieldNumber = 2 // google.protobuf.FieldOptions.packed
+			const weakFieldNumber = 10  // google.protobuf.FieldOptions.weak
+			fs := f.Options().ProtoReflect().KnownFields()
+			if fs.Has(packedFieldNumber) {
+				p.isPacked = fs.Get(packedFieldNumber).Bool()
+			}
+			p.isWeak = fs.Get(weakFieldNumber).Bool()
+		}
+	})
+	return p
+}
+
+// isPacked reports whether the packed options is set.
+func isPacked(m pref.ProtoMessage) (isPacked bool) {
+	if m != nil {
+		const packedFieldNumber = 2 // google.protobuf.FieldOptions.packed
+		fs := m.ProtoReflect().KnownFields()
+		isPacked = fs.Get(packedFieldNumber).Bool()
+	}
+	return isPacked
+}
+
+// isWeak reports whether the weak options is set.
+func isWeak(m pref.ProtoMessage) (isWeak bool) {
+	if m != nil {
+		const weakFieldNumber = 10 // google.protobuf.FieldOptions.weak
+		fs := m.ProtoReflect().KnownFields()
+		isWeak = fs.Get(weakFieldNumber).Bool()
+	}
+	return isWeak
+}
+
+var isScalarNumeric = map[pref.Kind]bool{
+	pref.BoolKind:     true,
+	pref.EnumKind:     true,
+	pref.Int32Kind:    true,
+	pref.Sint32Kind:   true,
+	pref.Uint32Kind:   true,
+	pref.Int64Kind:    true,
+	pref.Sint64Kind:   true,
+	pref.Uint64Kind:   true,
+	pref.Sfixed32Kind: true,
+	pref.Fixed32Kind:  true,
+	pref.FloatKind:    true,
+	pref.Sfixed64Kind: true,
+	pref.Fixed64Kind:  true,
+	pref.DoubleKind:   true,
+}
+
 type oneofMeta struct {
 	inheritedMeta
 
@@ -315,7 +365,7 @@ func (t oneofDesc) Name() pref.Name                       { return t.o.Name }
 func (t oneofDesc) FullName() pref.FullName               { return t.o.fullName }
 func (t oneofDesc) IsPlaceholder() bool                   { return false }
 func (t oneofDesc) DescriptorProto() (pref.Message, bool) { return nil, false }
-func (t oneofDesc) Options() interface{}                  { return t.o.Options }
+func (t oneofDesc) Options() pref.ProtoMessage            { return t.o.Options }
 func (t oneofDesc) Fields() pref.FieldDescriptors         { return t.o.fs.lazyInit(t) }
 func (t oneofDesc) Format(s fmt.State, r rune)            { formatDesc(s, r, t) }
 func (t oneofDesc) ProtoType(pref.OneofDescriptor)        {}
@@ -338,14 +388,14 @@ func (t extensionDesc) Name() pref.Name                            { return t.x.
 func (t extensionDesc) FullName() pref.FullName                    { return t.x.fullName }
 func (t extensionDesc) IsPlaceholder() bool                        { return false }
 func (t extensionDesc) DescriptorProto() (pref.Message, bool)      { return nil, false }
-func (t extensionDesc) Options() interface{}                       { return t.x.Options }
+func (t extensionDesc) Options() pref.ProtoMessage                 { return t.x.Options }
 func (t extensionDesc) Number() pref.FieldNumber                   { return t.x.Number }
 func (t extensionDesc) Cardinality() pref.Cardinality              { return t.x.Cardinality }
 func (t extensionDesc) Kind() pref.Kind                            { return t.x.Kind }
 func (t extensionDesc) JSONName() string                           { return "" }
-func (t extensionDesc) IsPacked() bool                             { return t.x.Options.GetPacked() }
-func (t extensionDesc) IsMap() bool                                { return false }
+func (t extensionDesc) IsPacked() bool                             { return isPacked(t.Options()) }
 func (t extensionDesc) IsWeak() bool                               { return false }
+func (t extensionDesc) IsMap() bool                                { return false }
 func (t extensionDesc) Default() pref.Value                        { return t.x.dv.value(t, t.x.Default) }
 func (t extensionDesc) DefaultEnumValue() pref.EnumValueDescriptor { return t.x.dv.enum(t, t.x.Default) }
 func (t extensionDesc) HasDefault() bool                           { return t.x.Default.IsValid() }
@@ -375,7 +425,7 @@ func (t enumDesc) Name() pref.Name                       { return t.e.Name }
 func (t enumDesc) FullName() pref.FullName               { return t.e.fullName }
 func (t enumDesc) IsPlaceholder() bool                   { return false }
 func (t enumDesc) DescriptorProto() (pref.Message, bool) { return nil, false }
-func (t enumDesc) Options() interface{}                  { return t.e.Options }
+func (t enumDesc) Options() pref.ProtoMessage            { return t.e.Options }
 func (t enumDesc) Values() pref.EnumValueDescriptors     { return t.e.vs.lazyInit(t, t.e.Values) }
 func (t enumDesc) Format(s fmt.State, r rune)            { formatDesc(s, r, t) }
 func (t enumDesc) ProtoType(pref.EnumDescriptor)         {}
@@ -393,7 +443,7 @@ func (t enumValueDesc) Name() pref.Name                       { return t.v.Name
 func (t enumValueDesc) FullName() pref.FullName               { return t.v.fullName }
 func (t enumValueDesc) IsPlaceholder() bool                   { return false }
 func (t enumValueDesc) DescriptorProto() (pref.Message, bool) { return nil, false }
-func (t enumValueDesc) Options() interface{}                  { return t.v.Options }
+func (t enumValueDesc) Options() pref.ProtoMessage            { return t.v.Options }
 func (t enumValueDesc) Number() pref.EnumNumber               { return t.v.Number }
 func (t enumValueDesc) Format(s fmt.State, r rune)            { formatDesc(s, r, t) }
 func (t enumValueDesc) ProtoType(pref.EnumValueDescriptor)    {}
@@ -413,7 +463,7 @@ func (t serviceDesc) Name() pref.Name                       { return t.s.Name }
 func (t serviceDesc) FullName() pref.FullName               { return t.s.fullName }
 func (t serviceDesc) IsPlaceholder() bool                   { return false }
 func (t serviceDesc) DescriptorProto() (pref.Message, bool) { return nil, false }
-func (t serviceDesc) Options() interface{}                  { return t.s.Options }
+func (t serviceDesc) Options() pref.ProtoMessage            { return t.s.Options }
 func (t serviceDesc) Methods() pref.MethodDescriptors       { return t.s.ms.lazyInit(t, t.s.Methods) }
 func (t serviceDesc) Format(s fmt.State, r rune)            { formatDesc(s, r, t) }
 func (t serviceDesc) ProtoType(pref.ServiceDescriptor)      {}
@@ -434,7 +484,7 @@ func (t methodDesc) Name() pref.Name                       { return t.m.Name }
 func (t methodDesc) FullName() pref.FullName               { return t.m.fullName }
 func (t methodDesc) IsPlaceholder() bool                   { return false }
 func (t methodDesc) DescriptorProto() (pref.Message, bool) { return nil, false }
-func (t methodDesc) Options() interface{}                  { return t.m.Options }
+func (t methodDesc) Options() pref.ProtoMessage            { return t.m.Options }
 func (t methodDesc) InputType() pref.MessageDescriptor     { return t.m.mit.lazyInit(t, &t.m.InputType) }
 func (t methodDesc) OutputType() pref.MessageDescriptor    { return t.m.mot.lazyInit(t, &t.m.OutputType) }
 func (t methodDesc) IsStreamingClient() bool               { return t.m.IsStreamingClient }

+ 146 - 0
reflect/prototype/resolve_test.go

@@ -0,0 +1,146 @@
+// Copyright 2018 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+package prototype
+
+import (
+	"testing"
+
+	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
+)
+
+func TestResolve(t *testing.T) {
+	f := &File{
+		Syntax:  pref.Proto2,
+		Package: "test",
+		Messages: []Message{{
+			Name:   "FooMessage",
+			Fields: []Field{{Name: "F", Number: 1, Cardinality: pref.Optional, Kind: pref.BytesKind}},
+			Messages: []Message{{
+				Name:   "FooMessage",
+				Fields: []Field{{Name: "F", Number: 1, Cardinality: pref.Optional, Kind: pref.BytesKind}},
+			}, {
+				Name:   "BarMessage",
+				Fields: []Field{{Name: "F", Number: 1, Cardinality: pref.Optional, Kind: pref.BytesKind}},
+			}},
+			Enums: []Enum{{
+				Name:   "FooEnum",
+				Values: []EnumValue{{Name: "E", Number: 0}},
+			}, {
+				Name:   "BarEnum",
+				Values: []EnumValue{{Name: "E", Number: 0}},
+			}},
+		}, {
+			Name:   "BarMessage",
+			Fields: []Field{{Name: "F", Number: 1, Cardinality: pref.Optional, Kind: pref.BytesKind}},
+		}},
+		Enums: []Enum{{
+			Name:   "FooEnum",
+			Values: []EnumValue{{Name: "E", Number: 0}},
+		}, {
+			Name:   "BarEnum",
+			Values: []EnumValue{{Name: "E", Number: 0}},
+		}},
+	}
+
+	fd, err := NewFile(f)
+	if err != nil {
+		t.Fatalf("NewFile() error: %v", err)
+	}
+
+	tests := []struct {
+		parent pref.Descriptor
+		name   pref.FullName
+		want   pref.Descriptor
+	}{{
+		parent: fd.Enums().Get(0),
+		name:   "test.Foo",
+		want:   nil,
+	}, {
+		parent: fd.Enums().Get(0),
+		name:   "test.FooEnum",
+		want:   fd.Enums().Get(0),
+	}, {
+		parent: fd.Enums().Get(0),
+		name:   "test.BarEnum",
+		want:   fd.Enums().Get(1),
+	}, {
+		parent: fd.Enums().Get(0),
+		name:   "test.BarMessage",
+		want:   fd.Messages().Get(1),
+	}, {
+		parent: fd.Enums().Get(0),
+		name:   "test.FooMessage.BarMessage",
+		want:   fd.Messages().Get(0).Messages().Get(1),
+	}, {
+		parent: fd.Enums().Get(0),
+		name:   "test.FooMessage.Bar",
+		want:   nil,
+	}, {
+		parent: fd.Messages().Get(1),
+		name:   "test.FooMessage.BarEnum",
+		want:   fd.Messages().Get(0).Enums().Get(1),
+	}, {
+		parent: fd.Messages().Get(1),
+		name:   "test.FooEnum",
+		want:   fd.Enums().Get(0),
+	}, {
+		parent: fd.Messages().Get(0),
+		name:   "test.FooEnum",
+		want:   fd.Enums().Get(0),
+	}, {
+		parent: fd.Messages().Get(0),
+		name:   "test.FooEnum.NonExistent",
+		want:   nil,
+	}, {
+		parent: fd.Messages().Get(0),
+		name:   "test.FooMessage.FooEnum",
+		want:   fd.Messages().Get(0).Enums().Get(0),
+	}, {
+		parent: fd.Messages().Get(0),
+		name:   "test.FooMessage",
+		want:   fd.Messages().Get(0),
+	}, {
+		parent: fd.Messages().Get(0),
+		name:   "test.FooMessage.Fizz",
+		want:   nil,
+	}, {
+		parent: fd.Messages().Get(0).Messages().Get(0),
+		name:   "test.FooMessage.FooMessage",
+		want:   fd.Messages().Get(0).Messages().Get(0),
+	}, {
+		parent: fd.Messages().Get(0).Messages().Get(0),
+		name:   "test.FooMessage.BarMessage",
+		want:   fd.Messages().Get(0).Messages().Get(1),
+	}, {
+		parent: fd.Messages().Get(0).Messages().Get(0),
+		name:   "test.BarMessage.FooMessage",
+		want:   nil,
+	}, {
+		parent: fd.Messages().Get(0).Messages().Get(0),
+		name:   "test.BarMessage",
+		want:   fd.Messages().Get(1),
+	}, {
+		parent: fd.Messages().Get(0).Messages().Get(0),
+		name:   "test.BarMessageExtra",
+		want:   nil,
+	}, {
+		parent: fd.Messages().Get(0).Messages().Get(0),
+		name:   "taste.BarMessage",
+		want:   nil,
+	}}
+
+	for _, tt := range tests {
+		got := resolveReference(tt.parent, tt.name)
+		if got != tt.want {
+			fullName := func(d pref.Descriptor) string {
+				if d == nil {
+					return "<nil>"
+				}
+				return string(d.FullName())
+			}
+			t.Errorf("resolveReference(%v, %v) = %v, want %v", fullName(tt.parent), tt.name, fullName(got), fullName(tt.want))
+		}
+	}
+}

+ 8 - 8
reflect/prototype/standalone.go

@@ -5,7 +5,6 @@
 package prototype
 
 import (
-	descriptorV1 "github.com/golang/protobuf/protoc-gen-go/descriptor"
 	"github.com/golang/protobuf/v2/internal/errors"
 	"github.com/golang/protobuf/v2/reflect/protoreflect"
 )
@@ -21,11 +20,12 @@ type StandaloneMessage struct {
 	Fields          []Field
 	Oneofs          []Oneof
 	ExtensionRanges [][2]protoreflect.FieldNumber
-	Options         *descriptorV1.MessageOptions
+	Options         protoreflect.ProtoMessage
 
-	fields fieldsMeta
-	oneofs oneofsMeta
-	nums   numbersMeta
+	fields  fieldsMeta
+	oneofs  oneofsMeta
+	nums    numbersMeta
+	options messageOptions
 }
 
 // NewMessage creates a new protoreflect.MessageDescriptor.
@@ -64,7 +64,7 @@ func NewMessages(ts []*StandaloneMessage) ([]protoreflect.MessageDescriptor, err
 		for i, f := range t.Fields {
 			// Resolve placeholder messages with a concrete standalone message.
 			// If this fails, validateMessage will complain about it later.
-			if !f.Options.GetWeak() && f.MessageType != nil && f.MessageType.IsPlaceholder() {
+			if f.MessageType != nil && f.MessageType.IsPlaceholder() && !isWeak(f.Options) {
 				if m, ok := ms[f.MessageType.FullName()]; ok {
 					t.Fields[i].MessageType = m
 				}
@@ -85,7 +85,7 @@ type StandaloneEnum struct {
 	Syntax   protoreflect.Syntax
 	FullName protoreflect.FullName
 	Values   []EnumValue
-	Options  *descriptorV1.EnumOptions
+	Options  protoreflect.ProtoMessage
 
 	vals enumValuesMeta
 }
@@ -112,7 +112,7 @@ type StandaloneExtension struct {
 	MessageType  protoreflect.MessageDescriptor
 	EnumType     protoreflect.EnumDescriptor
 	ExtendedType protoreflect.MessageDescriptor
-	Options      *descriptorV1.FieldOptions
+	Options      protoreflect.ProtoMessage
 
 	dv defaultValue
 }

+ 6 - 6
reflect/prototype/standalone_type.go

@@ -20,8 +20,8 @@ func (t standaloneMessage) Name() pref.Name                       { return t.m.F
 func (t standaloneMessage) FullName() pref.FullName               { return t.m.FullName }
 func (t standaloneMessage) IsPlaceholder() bool                   { return false }
 func (t standaloneMessage) DescriptorProto() (pref.Message, bool) { return nil, false }
-func (t standaloneMessage) Options() interface{}                  { return t.m.Options }
-func (t standaloneMessage) IsMapEntry() bool                      { return t.m.Options.GetMapEntry() }
+func (t standaloneMessage) Options() pref.ProtoMessage            { return t.m.Options }
+func (t standaloneMessage) IsMapEntry() bool                      { return t.m.options.lazyInit(t).isMapEntry }
 func (t standaloneMessage) Fields() pref.FieldDescriptors         { return t.m.fields.lazyInit(t, t.m.Fields) }
 func (t standaloneMessage) Oneofs() pref.OneofDescriptors         { return t.m.oneofs.lazyInit(t, t.m.Oneofs) }
 func (t standaloneMessage) RequiredNumbers() pref.FieldNumbers    { return t.m.nums.lazyInit(t.m.Fields) }
@@ -42,7 +42,7 @@ func (t standaloneEnum) Name() pref.Name                       { return t.e.Full
 func (t standaloneEnum) FullName() pref.FullName               { return t.e.FullName }
 func (t standaloneEnum) IsPlaceholder() bool                   { return false }
 func (t standaloneEnum) DescriptorProto() (pref.Message, bool) { return nil, false }
-func (t standaloneEnum) Options() interface{}                  { return t.e.Options }
+func (t standaloneEnum) Options() pref.ProtoMessage            { return t.e.Options }
 func (t standaloneEnum) Values() pref.EnumValueDescriptors     { return t.e.vals.lazyInit(t, t.e.Values) }
 func (t standaloneEnum) Format(s fmt.State, r rune)            { formatDesc(s, r, t) }
 func (t standaloneEnum) ProtoType(pref.EnumDescriptor)         {}
@@ -57,14 +57,14 @@ func (t standaloneExtension) Name() pref.Name                       { return t.x
 func (t standaloneExtension) FullName() pref.FullName               { return t.x.FullName }
 func (t standaloneExtension) IsPlaceholder() bool                   { return false }
 func (t standaloneExtension) DescriptorProto() (pref.Message, bool) { return nil, false }
-func (t standaloneExtension) Options() interface{}                  { return t.x.Options }
+func (t standaloneExtension) Options() pref.ProtoMessage            { return t.x.Options }
 func (t standaloneExtension) Number() pref.FieldNumber              { return t.x.Number }
 func (t standaloneExtension) Cardinality() pref.Cardinality         { return t.x.Cardinality }
 func (t standaloneExtension) Kind() pref.Kind                       { return t.x.Kind }
 func (t standaloneExtension) JSONName() string                      { return "" }
-func (t standaloneExtension) IsPacked() bool                        { return t.x.Options.GetPacked() }
-func (t standaloneExtension) IsMap() bool                           { return false }
+func (t standaloneExtension) IsPacked() bool                        { return isPacked(t.Options()) }
 func (t standaloneExtension) IsWeak() bool                          { return false }
+func (t standaloneExtension) IsMap() bool                           { return false }
 func (t standaloneExtension) Default() pref.Value                   { return t.x.dv.value(t, t.x.Default) }
 func (t standaloneExtension) DefaultEnumValue() pref.EnumValueDescriptor {
 	return t.x.dv.enum(t, t.x.Default)

+ 116 - 330
reflect/prototype/type_test.go

@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-package prototype
+package prototype_test
 
 import (
 	"fmt"
@@ -13,118 +13,32 @@ import (
 	"testing"
 
 	protoV1 "github.com/golang/protobuf/proto"
-	descriptorV1 "github.com/golang/protobuf/protoc-gen-go/descriptor"
-
 	scalar "github.com/golang/protobuf/v2/internal/scalar"
+	pdesc "github.com/golang/protobuf/v2/reflect/protodesc"
 	pref "github.com/golang/protobuf/v2/reflect/protoreflect"
-)
-
-// TestDescriptors tests that the implementations do not declare additional
-// methods that do not exist on the interface types.
-func TestDescriptors(t *testing.T) {
-	tests := []interface{}{
-		[]pref.FileDescriptor{placeholderFile{}, fileDesc{}},
-		[]pref.MessageDescriptor{placeholderMessage{}, standaloneMessage{}, messageDesc{}},
-		[]pref.FieldDescriptor{standaloneExtension{}, fieldDesc{}, extensionDesc{}},
-		[]pref.OneofDescriptor{oneofDesc{}},
-		[]pref.EnumDescriptor{placeholderEnum{}, standaloneEnum{}, enumDesc{}},
-		[]pref.EnumValueDescriptor{enumValueDesc{}},
-		[]pref.ServiceDescriptor{serviceDesc{}},
-		[]pref.MethodDescriptor{methodDesc{}},
-
-		[]pref.FileImports{(*fileImports)(nil)},
-		[]pref.MessageDescriptors{(*messages)(nil)},
-		[]pref.FieldNumbers{(*numbers)(nil)},
-		[]pref.FieldRanges{(*ranges)(nil)},
-		[]pref.FieldDescriptors{(*fields)(nil), (*oneofFields)(nil)},
-		[]pref.OneofDescriptors{(*oneofs)(nil)},
-		[]pref.ExtensionDescriptors{(*extensions)(nil)},
-		[]pref.EnumDescriptors{(*enums)(nil)},
-		[]pref.EnumValueDescriptors{(*enumValues)(nil)},
-		[]pref.ServiceDescriptors{(*services)(nil)},
-		[]pref.MethodDescriptors{(*methods)(nil)},
-	}
-
-	for _, tt := range tests {
-		v := reflect.ValueOf(tt) // []T where T is an interface
-		ifaceType := v.Type().Elem()
-		for i := 0; i < v.Len(); i++ {
-			implType := v.Index(i).Elem().Type()
-
-			var hasName bool
-			for j := 0; j < implType.NumMethod(); j++ {
-				if name := implType.Method(j).Name; name == "Format" {
-					hasName = true
-				} else if _, ok := ifaceType.MethodByName(name); !ok {
-					t.Errorf("spurious method: %v.%v", implType, name)
-				}
-			}
-			if !hasName {
-				t.Errorf("missing method: %v.Format", implType)
-			}
-		}
-	}
-}
-
-// TestDescriptorAccessors tests that descriptorAccessors is up-to-date.
-func TestDescriptorAccessors(t *testing.T) {
-	ignore := map[string]bool{
-		"DefaultEnumValue": true,
-		"DescriptorByName": true,
-		"ProtoType":        true,
-	}
-	rt := reflect.TypeOf((*pref.Descriptor)(nil)).Elem()
-	for i := 0; i < rt.NumMethod(); i++ {
-		ignore[rt.Method(i).Name] = true
-	}
-
-	for rt, m := range descriptorAccessors {
-		got := map[string]bool{}
-		for _, s := range m {
-			got[s] = true
-		}
-		want := map[string]bool{}
-		for i := 0; i < rt.NumMethod(); i++ {
-			want[rt.Method(i).Name] = true
-		}
+	ptype "github.com/golang/protobuf/v2/reflect/prototype"
 
-		// Check if descriptorAccessors contains a non-existent accessor.
-		// If this test fails, remove the accessor from descriptorAccessors.
-		for s := range got {
-			if !want[s] && !ignore[s] {
-				t.Errorf("%v.%v does not exist", rt, s)
-			}
-		}
-
-		// Check if there are new protoreflect interface methods that are not
-		// handled by the formatter. If this fails, either add the method to
-		// ignore or add them to descriptorAccessors.
-		for s := range want {
-			if !got[s] && !ignore[s] {
-				t.Errorf("%v.%v is not called by formatter", rt, s)
-			}
-		}
-	}
-}
+	descriptorpb "github.com/golang/protobuf/v2/types/descriptor"
+)
 
-// TODO: Test NewFileFromDescriptorProto with imported files.
+// TODO: Test protodesc.NewFile with imported files.
 
 func TestFile(t *testing.T) {
-	f1 := &File{
+	f1 := &ptype.File{
 		Syntax:  pref.Proto2,
 		Path:    "path/to/file.proto",
 		Package: "test",
-		Options: &descriptorV1.FileOptions{Deprecated: scalar.Bool(true)},
-		Messages: []Message{{
+		Options: &descriptorpb.FileOptions{Deprecated: scalar.Bool(true)},
+		Messages: []ptype.Message{{
 			Name: "A", // "test.A"
-			Options: &descriptorV1.MessageOptions{
+			Options: &descriptorpb.MessageOptions{
 				MapEntry:   scalar.Bool(true),
 				Deprecated: scalar.Bool(true),
 			},
-			Fields: []Field{{
+			Fields: []ptype.Field{{
 				Name:        "key", // "test.A.key"
 				Number:      1,
-				Options:     &descriptorV1.FieldOptions{Deprecated: scalar.Bool(true)},
+				Options:     &descriptorpb.FieldOptions{Deprecated: scalar.Bool(true)},
 				Cardinality: pref.Optional,
 				Kind:        pref.StringKind,
 			}, {
@@ -132,11 +46,11 @@ func TestFile(t *testing.T) {
 				Number:      2,
 				Cardinality: pref.Optional,
 				Kind:        pref.MessageKind,
-				MessageType: PlaceholderMessage("test.B"),
+				MessageType: ptype.PlaceholderMessage("test.B"),
 			}},
 		}, {
 			Name: "B", // "test.B"
-			Fields: []Field{{
+			Fields: []ptype.Field{{
 				Name:        "field_one", // "test.B.field_one"
 				Number:      1,
 				Cardinality: pref.Optional,
@@ -150,14 +64,14 @@ func TestFile(t *testing.T) {
 				Cardinality: pref.Optional,
 				Kind:        pref.EnumKind,
 				Default:     pref.ValueOf(pref.EnumNumber(1)),
-				EnumType:    PlaceholderEnum("test.E1"),
+				EnumType:    ptype.PlaceholderEnum("test.E1"),
 				OneofName:   "O2",
 			}, {
 				Name:        "field_three", // "test.B.field_three"
 				Number:      3,
 				Cardinality: pref.Optional,
 				Kind:        pref.MessageKind,
-				MessageType: PlaceholderMessage("test.C"),
+				MessageType: ptype.PlaceholderMessage("test.C"),
 				OneofName:   "O2",
 			}, {
 				Name:        "field_four", // "test.B.field_four"
@@ -165,24 +79,24 @@ func TestFile(t *testing.T) {
 				Number:      4,
 				Cardinality: pref.Repeated,
 				Kind:        pref.MessageKind,
-				MessageType: PlaceholderMessage("test.A"),
+				MessageType: ptype.PlaceholderMessage("test.A"),
 			}, {
 				Name:        "field_five", // "test.B.field_five"
 				Number:      5,
 				Cardinality: pref.Repeated,
 				Kind:        pref.Int32Kind,
-				Options:     &descriptorV1.FieldOptions{Packed: scalar.Bool(true)},
+				Options:     &descriptorpb.FieldOptions{Packed: scalar.Bool(true)},
 			}, {
 				Name:        "field_six", // "test.B.field_six"
 				Number:      6,
 				Cardinality: pref.Required,
 				Kind:        pref.BytesKind,
 			}},
-			Oneofs: []Oneof{
+			Oneofs: []ptype.Oneof{
 				{
 					Name: "O1", // "test.B.O1"
-					Options: &descriptorV1.OneofOptions{
-						UninterpretedOption: []*descriptorV1.UninterpretedOption{
+					Options: &descriptorpb.OneofOptions{
+						UninterpretedOption: []*descriptorpb.UninterpretedOption{
 							{StringValue: []byte("option")},
 						},
 					},
@@ -192,219 +106,219 @@ func TestFile(t *testing.T) {
 			ExtensionRanges: [][2]pref.FieldNumber{{1000, 2000}, {3000, 3001}},
 		}, {
 			Name: "C", // "test.C"
-			Messages: []Message{{
+			Messages: []ptype.Message{{
 				Name:   "A", // "test.C.A"
-				Fields: []Field{{Name: "F", Number: 1, Cardinality: pref.Required, Kind: pref.BytesKind, Default: pref.ValueOf([]byte("dead\xbe\xef"))}},
+				Fields: []ptype.Field{{Name: "F", Number: 1, Cardinality: pref.Required, Kind: pref.BytesKind, Default: pref.ValueOf([]byte("dead\xbe\xef"))}},
 			}},
-			Enums: []Enum{{
+			Enums: []ptype.Enum{{
 				Name:   "E1", // "test.C.E1"
-				Values: []EnumValue{{Name: "FOO", Number: 0}, {Name: "BAR", Number: 1}},
+				Values: []ptype.EnumValue{{Name: "FOO", Number: 0}, {Name: "BAR", Number: 1}},
 			}},
-			Extensions: []Extension{{
+			Extensions: []ptype.Extension{{
 				Name:         "X", // "test.C.X"
 				Number:       1000,
 				Cardinality:  pref.Repeated,
 				Kind:         pref.MessageKind,
-				Options:      &descriptorV1.FieldOptions{Packed: scalar.Bool(false)},
-				MessageType:  PlaceholderMessage("test.C"),
-				ExtendedType: PlaceholderMessage("test.B"),
+				Options:      &descriptorpb.FieldOptions{Packed: scalar.Bool(false)},
+				MessageType:  ptype.PlaceholderMessage("test.C"),
+				ExtendedType: ptype.PlaceholderMessage("test.B"),
 			}},
 		}},
-		Enums: []Enum{{
+		Enums: []ptype.Enum{{
 			Name:    "E1", // "test.E1"
-			Options: &descriptorV1.EnumOptions{Deprecated: scalar.Bool(true)},
-			Values: []EnumValue{
+			Options: &descriptorpb.EnumOptions{Deprecated: scalar.Bool(true)},
+			Values: []ptype.EnumValue{
 				{
 					Name:    "FOO",
 					Number:  0,
-					Options: &descriptorV1.EnumValueOptions{Deprecated: scalar.Bool(true)},
+					Options: &descriptorpb.EnumValueOptions{Deprecated: scalar.Bool(true)},
 				},
 				{Name: "BAR", Number: 1},
 			},
 		}},
-		Extensions: []Extension{{
+		Extensions: []ptype.Extension{{
 			Name:         "X", // "test.X"
 			Number:       1000,
 			Cardinality:  pref.Repeated,
 			Kind:         pref.MessageKind,
-			Options:      &descriptorV1.FieldOptions{Packed: scalar.Bool(true)},
-			MessageType:  PlaceholderMessage("test.C"),
-			ExtendedType: PlaceholderMessage("test.B"),
+			Options:      &descriptorpb.FieldOptions{Packed: scalar.Bool(true)},
+			MessageType:  ptype.PlaceholderMessage("test.C"),
+			ExtendedType: ptype.PlaceholderMessage("test.B"),
 		}},
-		Services: []Service{{
+		Services: []ptype.Service{{
 			Name:    "S", // "test.S"
-			Options: &descriptorV1.ServiceOptions{Deprecated: scalar.Bool(true)},
-			Methods: []Method{{
+			Options: &descriptorpb.ServiceOptions{Deprecated: scalar.Bool(true)},
+			Methods: []ptype.Method{{
 				Name:              "M", // "test.S.M"
-				InputType:         PlaceholderMessage("test.A"),
-				OutputType:        PlaceholderMessage("test.C.A"),
+				InputType:         ptype.PlaceholderMessage("test.A"),
+				OutputType:        ptype.PlaceholderMessage("test.C.A"),
 				IsStreamingClient: true,
 				IsStreamingServer: true,
-				Options:           &descriptorV1.MethodOptions{Deprecated: scalar.Bool(true)},
+				Options:           &descriptorpb.MethodOptions{Deprecated: scalar.Bool(true)},
 			}},
 		}},
 	}
-	fd1, err := NewFile(f1)
+	fd1, err := ptype.NewFile(f1)
 	if err != nil {
-		t.Fatalf("NewFile() error: %v", err)
+		t.Fatalf("prototype.NewFile() error: %v", err)
 	}
 
-	f2 := &descriptorV1.FileDescriptorProto{
+	f2 := &descriptorpb.FileDescriptorProto{
 		Syntax:  scalar.String("proto2"),
 		Name:    scalar.String("path/to/file.proto"),
 		Package: scalar.String("test"),
-		Options: &descriptorV1.FileOptions{Deprecated: scalar.Bool(true)},
-		MessageType: []*descriptorV1.DescriptorProto{{
+		Options: &descriptorpb.FileOptions{Deprecated: scalar.Bool(true)},
+		MessageType: []*descriptorpb.DescriptorProto{{
 			Name: scalar.String("A"),
-			Options: &descriptorV1.MessageOptions{
+			Options: &descriptorpb.MessageOptions{
 				MapEntry:   scalar.Bool(true),
 				Deprecated: scalar.Bool(true),
 			},
-			Field: []*descriptorV1.FieldDescriptorProto{{
+			Field: []*descriptorpb.FieldDescriptorProto{{
 				Name:    scalar.String("key"),
 				Number:  scalar.Int32(1),
-				Options: &descriptorV1.FieldOptions{Deprecated: scalar.Bool(true)},
-				Label:   descriptorV1.FieldDescriptorProto_Label(pref.Optional).Enum(),
-				Type:    descriptorV1.FieldDescriptorProto_Type(pref.StringKind).Enum(),
+				Options: &descriptorpb.FieldOptions{Deprecated: scalar.Bool(true)},
+				Label:   descriptorpb.FieldDescriptorProto_Label(pref.Optional).Enum(),
+				Type:    descriptorpb.FieldDescriptorProto_Type(pref.StringKind).Enum(),
 			}, {
 				Name:     scalar.String("value"),
 				Number:   scalar.Int32(2),
-				Label:    descriptorV1.FieldDescriptorProto_Label(pref.Optional).Enum(),
-				Type:     descriptorV1.FieldDescriptorProto_Type(pref.MessageKind).Enum(),
+				Label:    descriptorpb.FieldDescriptorProto_Label(pref.Optional).Enum(),
+				Type:     descriptorpb.FieldDescriptorProto_Type(pref.MessageKind).Enum(),
 				TypeName: scalar.String(".test.B"),
 			}},
 		}, {
 			Name: scalar.String("B"),
-			Field: []*descriptorV1.FieldDescriptorProto{{
+			Field: []*descriptorpb.FieldDescriptorProto{{
 				Name:         scalar.String("field_one"),
 				Number:       scalar.Int32(1),
-				Label:        descriptorV1.FieldDescriptorProto_Label(pref.Optional).Enum(),
-				Type:         descriptorV1.FieldDescriptorProto_Type(pref.StringKind).Enum(),
+				Label:        descriptorpb.FieldDescriptorProto_Label(pref.Optional).Enum(),
+				Type:         descriptorpb.FieldDescriptorProto_Type(pref.StringKind).Enum(),
 				DefaultValue: scalar.String("hello, \"world!\"\n"),
 				OneofIndex:   scalar.Int32(0),
 			}, {
 				Name:         scalar.String("field_two"),
 				JsonName:     scalar.String("Field2"),
 				Number:       scalar.Int32(2),
-				Label:        descriptorV1.FieldDescriptorProto_Label(pref.Optional).Enum(),
-				Type:         descriptorV1.FieldDescriptorProto_Type(pref.EnumKind).Enum(),
+				Label:        descriptorpb.FieldDescriptorProto_Label(pref.Optional).Enum(),
+				Type:         descriptorpb.FieldDescriptorProto_Type(pref.EnumKind).Enum(),
 				DefaultValue: scalar.String("BAR"),
 				TypeName:     scalar.String(".test.E1"),
 				OneofIndex:   scalar.Int32(1),
 			}, {
 				Name:       scalar.String("field_three"),
 				Number:     scalar.Int32(3),
-				Label:      descriptorV1.FieldDescriptorProto_Label(pref.Optional).Enum(),
-				Type:       descriptorV1.FieldDescriptorProto_Type(pref.MessageKind).Enum(),
+				Label:      descriptorpb.FieldDescriptorProto_Label(pref.Optional).Enum(),
+				Type:       descriptorpb.FieldDescriptorProto_Type(pref.MessageKind).Enum(),
 				TypeName:   scalar.String(".test.C"),
 				OneofIndex: scalar.Int32(1),
 			}, {
 				Name:     scalar.String("field_four"),
 				JsonName: scalar.String("Field4"),
 				Number:   scalar.Int32(4),
-				Label:    descriptorV1.FieldDescriptorProto_Label(pref.Repeated).Enum(),
-				Type:     descriptorV1.FieldDescriptorProto_Type(pref.MessageKind).Enum(),
+				Label:    descriptorpb.FieldDescriptorProto_Label(pref.Repeated).Enum(),
+				Type:     descriptorpb.FieldDescriptorProto_Type(pref.MessageKind).Enum(),
 				TypeName: scalar.String(".test.A"),
 			}, {
 				Name:    scalar.String("field_five"),
 				Number:  scalar.Int32(5),
-				Label:   descriptorV1.FieldDescriptorProto_Label(pref.Repeated).Enum(),
-				Type:    descriptorV1.FieldDescriptorProto_Type(pref.Int32Kind).Enum(),
-				Options: &descriptorV1.FieldOptions{Packed: scalar.Bool(true)},
+				Label:   descriptorpb.FieldDescriptorProto_Label(pref.Repeated).Enum(),
+				Type:    descriptorpb.FieldDescriptorProto_Type(pref.Int32Kind).Enum(),
+				Options: &descriptorpb.FieldOptions{Packed: scalar.Bool(true)},
 			}, {
 				Name:   scalar.String("field_six"),
 				Number: scalar.Int32(6),
-				Label:  descriptorV1.FieldDescriptorProto_Label(pref.Required).Enum(),
-				Type:   descriptorV1.FieldDescriptorProto_Type(pref.BytesKind).Enum(),
+				Label:  descriptorpb.FieldDescriptorProto_Label(pref.Required).Enum(),
+				Type:   descriptorpb.FieldDescriptorProto_Type(pref.BytesKind).Enum(),
 			}},
-			OneofDecl: []*descriptorV1.OneofDescriptorProto{
+			OneofDecl: []*descriptorpb.OneofDescriptorProto{
 				{
 					Name: scalar.String("O1"),
-					Options: &descriptorV1.OneofOptions{
-						UninterpretedOption: []*descriptorV1.UninterpretedOption{
+					Options: &descriptorpb.OneofOptions{
+						UninterpretedOption: []*descriptorpb.UninterpretedOption{
 							{StringValue: []byte("option")},
 						},
 					},
 				},
 				{Name: scalar.String("O2")},
 			},
-			ExtensionRange: []*descriptorV1.DescriptorProto_ExtensionRange{
+			ExtensionRange: []*descriptorpb.DescriptorProto_ExtensionRange{
 				{Start: scalar.Int32(1000), End: scalar.Int32(2000)},
 				{Start: scalar.Int32(3000), End: scalar.Int32(3001)},
 			},
 		}, {
 			Name: scalar.String("C"),
-			NestedType: []*descriptorV1.DescriptorProto{{
+			NestedType: []*descriptorpb.DescriptorProto{{
 				Name: scalar.String("A"),
-				Field: []*descriptorV1.FieldDescriptorProto{{
+				Field: []*descriptorpb.FieldDescriptorProto{{
 					Name:         scalar.String("F"),
 					Number:       scalar.Int32(1),
-					Label:        descriptorV1.FieldDescriptorProto_Label(pref.Required).Enum(),
-					Type:         descriptorV1.FieldDescriptorProto_Type(pref.BytesKind).Enum(),
+					Label:        descriptorpb.FieldDescriptorProto_Label(pref.Required).Enum(),
+					Type:         descriptorpb.FieldDescriptorProto_Type(pref.BytesKind).Enum(),
 					DefaultValue: scalar.String(`dead\276\357`),
 				}},
 			}},
-			EnumType: []*descriptorV1.EnumDescriptorProto{{
+			EnumType: []*descriptorpb.EnumDescriptorProto{{
 				Name: scalar.String("E1"),
-				Value: []*descriptorV1.EnumValueDescriptorProto{
+				Value: []*descriptorpb.EnumValueDescriptorProto{
 					{Name: scalar.String("FOO"), Number: scalar.Int32(0)},
 					{Name: scalar.String("BAR"), Number: scalar.Int32(1)},
 				},
 			}},
-			Extension: []*descriptorV1.FieldDescriptorProto{{
+			Extension: []*descriptorpb.FieldDescriptorProto{{
 				Name:     scalar.String("X"),
 				Number:   scalar.Int32(1000),
-				Label:    descriptorV1.FieldDescriptorProto_Label(pref.Repeated).Enum(),
-				Type:     descriptorV1.FieldDescriptorProto_Type(pref.MessageKind).Enum(),
+				Label:    descriptorpb.FieldDescriptorProto_Label(pref.Repeated).Enum(),
+				Type:     descriptorpb.FieldDescriptorProto_Type(pref.MessageKind).Enum(),
 				TypeName: scalar.String(".test.C"),
 				Extendee: scalar.String(".test.B"),
 			}},
 		}},
-		EnumType: []*descriptorV1.EnumDescriptorProto{{
+		EnumType: []*descriptorpb.EnumDescriptorProto{{
 			Name:    scalar.String("E1"),
-			Options: &descriptorV1.EnumOptions{Deprecated: scalar.Bool(true)},
-			Value: []*descriptorV1.EnumValueDescriptorProto{
+			Options: &descriptorpb.EnumOptions{Deprecated: scalar.Bool(true)},
+			Value: []*descriptorpb.EnumValueDescriptorProto{
 				{
 					Name:    scalar.String("FOO"),
 					Number:  scalar.Int32(0),
-					Options: &descriptorV1.EnumValueOptions{Deprecated: scalar.Bool(true)},
+					Options: &descriptorpb.EnumValueOptions{Deprecated: scalar.Bool(true)},
 				},
 				{Name: scalar.String("BAR"), Number: scalar.Int32(1)},
 			},
 		}},
-		Extension: []*descriptorV1.FieldDescriptorProto{{
+		Extension: []*descriptorpb.FieldDescriptorProto{{
 			Name:     scalar.String("X"),
 			Number:   scalar.Int32(1000),
-			Label:    descriptorV1.FieldDescriptorProto_Label(pref.Repeated).Enum(),
-			Type:     descriptorV1.FieldDescriptorProto_Type(pref.MessageKind).Enum(),
-			Options:  &descriptorV1.FieldOptions{Packed: scalar.Bool(true)},
+			Label:    descriptorpb.FieldDescriptorProto_Label(pref.Repeated).Enum(),
+			Type:     descriptorpb.FieldDescriptorProto_Type(pref.MessageKind).Enum(),
+			Options:  &descriptorpb.FieldOptions{Packed: scalar.Bool(true)},
 			TypeName: scalar.String(".test.C"),
 			Extendee: scalar.String(".test.B"),
 		}},
-		Service: []*descriptorV1.ServiceDescriptorProto{{
+		Service: []*descriptorpb.ServiceDescriptorProto{{
 			Name:    scalar.String("S"),
-			Options: &descriptorV1.ServiceOptions{Deprecated: scalar.Bool(true)},
-			Method: []*descriptorV1.MethodDescriptorProto{{
+			Options: &descriptorpb.ServiceOptions{Deprecated: scalar.Bool(true)},
+			Method: []*descriptorpb.MethodDescriptorProto{{
 				Name:            scalar.String("M"),
 				InputType:       scalar.String(".test.A"),
 				OutputType:      scalar.String(".test.C.A"),
 				ClientStreaming: scalar.Bool(true),
 				ServerStreaming: scalar.Bool(true),
-				Options:         &descriptorV1.MethodOptions{Deprecated: scalar.Bool(true)},
+				Options:         &descriptorpb.MethodOptions{Deprecated: scalar.Bool(true)},
 			}},
 		}},
 	}
-	fd2, err := NewFileFromDescriptorProto(f2, nil)
+	fd2, err := pdesc.NewFile(f2, nil)
 	if err != nil {
-		t.Fatalf("NewFileFromDescriptorProto() error: %v", err)
+		t.Fatalf("protodesc.NewFile() error: %v", err)
 	}
 
 	tests := []struct {
 		name string
 		desc pref.FileDescriptor
 	}{
-		{"NewFile", fd1},
-		{"NewFileFromDescriptorProto", fd2},
+		{"prototype.NewFile", fd1},
+		{"protodesc.NewFile", fd2},
 	}
 	for _, tt := range tests {
 		tt := tt
@@ -431,7 +345,7 @@ func testFileAccessors(t *testing.T, fd pref.FileDescriptor) {
 		"Path":          "path/to/file.proto",
 		"Package":       pref.FullName("test"),
 		"IsPlaceholder": false,
-		"Options":       &descriptorV1.FileOptions{Deprecated: scalar.Bool(true)},
+		"Options":       &descriptorpb.FileOptions{Deprecated: scalar.Bool(true)},
 		"Messages": M{
 			"Len": 3,
 			"Get:0": M{
@@ -442,7 +356,7 @@ func testFileAccessors(t *testing.T, fd pref.FileDescriptor) {
 				"FullName":      pref.FullName("test.A"),
 				"IsPlaceholder": false,
 				"IsMapEntry":    true,
-				"Options": &descriptorV1.MessageOptions{
+				"Options": &descriptorpb.MessageOptions{
 					MapEntry:   scalar.Bool(true),
 					Deprecated: scalar.Bool(true),
 				},
@@ -456,7 +370,7 @@ func testFileAccessors(t *testing.T, fd pref.FileDescriptor) {
 						"Number":       pref.FieldNumber(1),
 						"Cardinality":  pref.Optional,
 						"Kind":         pref.StringKind,
-						"Options":      &descriptorV1.FieldOptions{Deprecated: scalar.Bool(true)},
+						"Options":      &descriptorpb.FieldOptions{Deprecated: scalar.Bool(true)},
 						"JSONName":     "key",
 						"IsPacked":     false,
 						"IsMap":        false,
@@ -546,8 +460,8 @@ func testFileAccessors(t *testing.T, fd pref.FileDescriptor) {
 					"ByName:O1": M{
 						"FullName": pref.FullName("test.B.O1"),
 						"Index":    0,
-						"Options": &descriptorV1.OneofOptions{
-							UninterpretedOption: []*descriptorV1.UninterpretedOption{
+						"Options": &descriptorpb.OneofOptions{
+							UninterpretedOption: []*descriptorpb.UninterpretedOption{
 								{StringValue: []byte("option")},
 							},
 						},
@@ -604,13 +518,13 @@ func testFileAccessors(t *testing.T, fd pref.FileDescriptor) {
 			"Len": 1,
 			"Get:0": M{
 				"Name":    pref.Name("E1"),
-				"Options": &descriptorV1.EnumOptions{Deprecated: scalar.Bool(true)},
+				"Options": &descriptorpb.EnumOptions{Deprecated: scalar.Bool(true)},
 				"Values": M{
 					"Len":        2,
 					"ByName:Foo": nil,
 					"ByName:FOO": M{
 						"FullName": pref.FullName("test.FOO"),
-						"Options":  &descriptorV1.EnumValueOptions{Deprecated: scalar.Bool(true)},
+						"Options":  &descriptorpb.EnumValueOptions{Deprecated: scalar.Bool(true)},
 					},
 					"ByNumber:2": nil,
 					"ByNumber:1": M{"FullName": pref.FullName("test.BAR")},
@@ -627,7 +541,7 @@ func testFileAccessors(t *testing.T, fd pref.FileDescriptor) {
 				"IsPacked":     true,
 				"MessageType":  M{"FullName": pref.FullName("test.C"), "IsPlaceholder": false},
 				"ExtendedType": M{"FullName": pref.FullName("test.B"), "IsPlaceholder": false},
-				"Options":      &descriptorV1.FieldOptions{Packed: scalar.Bool(true)},
+				"Options":      &descriptorpb.FieldOptions{Packed: scalar.Bool(true)},
 			},
 		},
 		"Services": M{
@@ -637,7 +551,7 @@ func testFileAccessors(t *testing.T, fd pref.FileDescriptor) {
 				"Parent":   M{"FullName": pref.FullName("test")},
 				"Name":     pref.Name("S"),
 				"FullName": pref.FullName("test.S"),
-				"Options":  &descriptorV1.ServiceOptions{Deprecated: scalar.Bool(true)},
+				"Options":  &descriptorpb.ServiceOptions{Deprecated: scalar.Bool(true)},
 				"Methods": M{
 					"Len": 1,
 					"Get:0": M{
@@ -648,7 +562,7 @@ func testFileAccessors(t *testing.T, fd pref.FileDescriptor) {
 						"OutputType":        M{"FullName": pref.FullName("test.C.A"), "IsPlaceholder": false},
 						"IsStreamingClient": true,
 						"IsStreamingServer": true,
-						"Options":           &descriptorV1.MethodOptions{Deprecated: scalar.Bool(true)},
+						"Options":           &descriptorpb.MethodOptions{Deprecated: scalar.Bool(true)},
 					},
 				},
 			},
@@ -684,13 +598,20 @@ func testFileAccessors(t *testing.T, fd pref.FileDescriptor) {
 	checkAccessors(t, "", reflect.ValueOf(fd), want)
 }
 func checkAccessors(t *testing.T, p string, rv reflect.Value, want map[string]interface{}) {
+	p0 := p
+	defer func() {
+		if ex := recover(); ex != nil {
+			t.Errorf("panic at %v: %v", p, ex)
+		}
+	}()
+
 	if rv.Interface() == nil {
 		t.Errorf("%v is nil, want non-nil", p)
 		return
 	}
 	for s, v := range want {
 		// Call the accessor method.
-		p := p + "." + s
+		p = p0 + "." + s
 		var rets []reflect.Value
 		if i := strings.IndexByte(s, ':'); i >= 0 {
 			// Accessor method takes in a single argument, which is encoded
@@ -912,138 +833,3 @@ func compactMultiFormat(s string) string {
 	}
 	return string(b)
 }
-
-func TestResolve(t *testing.T) {
-	f := &File{
-		Syntax:  pref.Proto2,
-		Package: "test",
-		Messages: []Message{{
-			Name:   "FooMessage",
-			Fields: []Field{{Name: "F", Number: 1, Cardinality: pref.Optional, Kind: pref.BytesKind}},
-			Messages: []Message{{
-				Name:   "FooMessage",
-				Fields: []Field{{Name: "F", Number: 1, Cardinality: pref.Optional, Kind: pref.BytesKind}},
-			}, {
-				Name:   "BarMessage",
-				Fields: []Field{{Name: "F", Number: 1, Cardinality: pref.Optional, Kind: pref.BytesKind}},
-			}},
-			Enums: []Enum{{
-				Name:   "FooEnum",
-				Values: []EnumValue{{Name: "E", Number: 0}},
-			}, {
-				Name:   "BarEnum",
-				Values: []EnumValue{{Name: "E", Number: 0}},
-			}},
-		}, {
-			Name:   "BarMessage",
-			Fields: []Field{{Name: "F", Number: 1, Cardinality: pref.Optional, Kind: pref.BytesKind}},
-		}},
-		Enums: []Enum{{
-			Name:   "FooEnum",
-			Values: []EnumValue{{Name: "E", Number: 0}},
-		}, {
-			Name:   "BarEnum",
-			Values: []EnumValue{{Name: "E", Number: 0}},
-		}},
-	}
-
-	fd, err := NewFile(f)
-	if err != nil {
-		t.Fatalf("NewFile() error: %v", err)
-	}
-
-	tests := []struct {
-		parent pref.Descriptor
-		name   pref.FullName
-		want   pref.Descriptor
-	}{{
-		parent: fd.Enums().Get(0),
-		name:   "test.Foo",
-		want:   nil,
-	}, {
-		parent: fd.Enums().Get(0),
-		name:   "test.FooEnum",
-		want:   fd.Enums().Get(0),
-	}, {
-		parent: fd.Enums().Get(0),
-		name:   "test.BarEnum",
-		want:   fd.Enums().Get(1),
-	}, {
-		parent: fd.Enums().Get(0),
-		name:   "test.BarMessage",
-		want:   fd.Messages().Get(1),
-	}, {
-		parent: fd.Enums().Get(0),
-		name:   "test.FooMessage.BarMessage",
-		want:   fd.Messages().Get(0).Messages().Get(1),
-	}, {
-		parent: fd.Enums().Get(0),
-		name:   "test.FooMessage.Bar",
-		want:   nil,
-	}, {
-		parent: fd.Messages().Get(1),
-		name:   "test.FooMessage.BarEnum",
-		want:   fd.Messages().Get(0).Enums().Get(1),
-	}, {
-		parent: fd.Messages().Get(1),
-		name:   "test.FooEnum",
-		want:   fd.Enums().Get(0),
-	}, {
-		parent: fd.Messages().Get(0),
-		name:   "test.FooEnum",
-		want:   fd.Enums().Get(0),
-	}, {
-		parent: fd.Messages().Get(0),
-		name:   "test.FooEnum.NonExistent",
-		want:   nil,
-	}, {
-		parent: fd.Messages().Get(0),
-		name:   "test.FooMessage.FooEnum",
-		want:   fd.Messages().Get(0).Enums().Get(0),
-	}, {
-		parent: fd.Messages().Get(0),
-		name:   "test.FooMessage",
-		want:   fd.Messages().Get(0),
-	}, {
-		parent: fd.Messages().Get(0),
-		name:   "test.FooMessage.Fizz",
-		want:   nil,
-	}, {
-		parent: fd.Messages().Get(0).Messages().Get(0),
-		name:   "test.FooMessage.FooMessage",
-		want:   fd.Messages().Get(0).Messages().Get(0),
-	}, {
-		parent: fd.Messages().Get(0).Messages().Get(0),
-		name:   "test.FooMessage.BarMessage",
-		want:   fd.Messages().Get(0).Messages().Get(1),
-	}, {
-		parent: fd.Messages().Get(0).Messages().Get(0),
-		name:   "test.BarMessage.FooMessage",
-		want:   nil,
-	}, {
-		parent: fd.Messages().Get(0).Messages().Get(0),
-		name:   "test.BarMessage",
-		want:   fd.Messages().Get(1),
-	}, {
-		parent: fd.Messages().Get(0).Messages().Get(0),
-		name:   "test.BarMessageExtra",
-		want:   nil,
-	}, {
-		parent: fd.Messages().Get(0).Messages().Get(0),
-		name:   "taste.BarMessage",
-		want:   nil,
-	}}
-
-	for _, tt := range tests {
-		got := resolveReference(tt.parent, tt.name)
-		if got != tt.want {
-			fullName := func(d pref.Descriptor) string {
-				if d == nil {
-					return "<nil>"
-				}
-				return string(d.FullName())
-			}
-			t.Errorf("resolveReference(%v, %v) = %v, want %v", fullName(tt.parent), tt.name, fullName(got), fullName(tt.want))
-		}
-	}
-}

+ 1 - 3
reflect/prototype/validate.go

@@ -26,9 +26,7 @@ import (
 //	* Placeholder messages and types may only be for weak fields.
 //	* Placeholder full names must be valid.
 //	* The name of each descriptor must be valid.
-//	* Options are consistent with constructor fields:
-//		Message.IsMapEntry and Message.Options.MapEntry
-//		Field.IsPacked and Field.Options.Packed
+//	* Options are of the correct Go type (e.g. *descriptorpb.MessageOptions).
 
 func validateFile(t pref.FileDescriptor) error {
 	return nil

+ 22 - 1
runtime/protoimpl/impl.go

@@ -13,6 +13,27 @@ package protoimpl
 
 import "github.com/golang/protobuf/v2/internal/impl"
 
+// Version is the current minor version of the package.
+// This is incremented every time the API of this package expands.
+const Version = 0 // v2.{Version}.x
+
 var X impl.Export
 
-type MessageType = impl.MessageType
+type (
+	// EnforceVersion is used by code generated by protoc-gen-go
+	// to statically enforce a minimum version of this package.
+	// A compilation failure implies that this package is too old and
+	// needs to be updated to a more recent version.
+	//
+	// This package can be upgraded by running:
+	//	go get -u github.com/golang/protobuf/v2/...
+	//
+	// Example usage by generated code:
+	//	const _ = protoimpl.EnforceVersion(protoimpl.Version - genVersion)
+	//
+	// If genVersion is lower than Version, then this results in a negative
+	// integer overflow failure when evaluating the uint constant.
+	EnforceVersion uint
+
+	MessageType = impl.MessageType
+)

+ 4292 - 0
types/descriptor/descriptor.pb.go

@@ -0,0 +1,4292 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// source: google/protobuf/descriptor.proto
+
+package descriptor
+
+import (
+	"errors"
+
+	proto "github.com/golang/protobuf/protoapi"
+	protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
+	prototype "github.com/golang/protobuf/v2/reflect/prototype"
+	protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
+)
+
+type FieldDescriptorProto_Type int32
+
+const (
+	// 0 is reserved for errors.
+	// Order is weird for historical reasons.
+	FieldDescriptorProto_TYPE_DOUBLE FieldDescriptorProto_Type = 1
+	FieldDescriptorProto_TYPE_FLOAT  FieldDescriptorProto_Type = 2
+	// Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
+	// negative values are likely.
+	FieldDescriptorProto_TYPE_INT64  FieldDescriptorProto_Type = 3
+	FieldDescriptorProto_TYPE_UINT64 FieldDescriptorProto_Type = 4
+	// Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
+	// negative values are likely.
+	FieldDescriptorProto_TYPE_INT32   FieldDescriptorProto_Type = 5
+	FieldDescriptorProto_TYPE_FIXED64 FieldDescriptorProto_Type = 6
+	FieldDescriptorProto_TYPE_FIXED32 FieldDescriptorProto_Type = 7
+	FieldDescriptorProto_TYPE_BOOL    FieldDescriptorProto_Type = 8
+	FieldDescriptorProto_TYPE_STRING  FieldDescriptorProto_Type = 9
+	// Tag-delimited aggregate.
+	// Group type is deprecated and not supported in proto3. However, Proto3
+	// implementations should still be able to parse the group wire format and
+	// treat group fields as unknown fields.
+	FieldDescriptorProto_TYPE_GROUP   FieldDescriptorProto_Type = 10
+	FieldDescriptorProto_TYPE_MESSAGE FieldDescriptorProto_Type = 11
+	// New in version 2.
+	FieldDescriptorProto_TYPE_BYTES    FieldDescriptorProto_Type = 12
+	FieldDescriptorProto_TYPE_UINT32   FieldDescriptorProto_Type = 13
+	FieldDescriptorProto_TYPE_ENUM     FieldDescriptorProto_Type = 14
+	FieldDescriptorProto_TYPE_SFIXED32 FieldDescriptorProto_Type = 15
+	FieldDescriptorProto_TYPE_SFIXED64 FieldDescriptorProto_Type = 16
+	FieldDescriptorProto_TYPE_SINT32   FieldDescriptorProto_Type = 17
+	FieldDescriptorProto_TYPE_SINT64   FieldDescriptorProto_Type = 18
+)
+
+type xxx_FieldDescriptorProto_Type FieldDescriptorProto_Type
+
+func (e FieldDescriptorProto_Type) ProtoReflect() protoreflect.Enum {
+	return (xxx_FieldDescriptorProto_Type)(e)
+}
+func (e xxx_FieldDescriptorProto_Type) Type() protoreflect.EnumType {
+	return xxx_Descriptor_ProtoFile_EnumTypes[0]
+}
+func (e xxx_FieldDescriptorProto_Type) Number() protoreflect.EnumNumber {
+	return protoreflect.EnumNumber(e)
+}
+
+var FieldDescriptorProto_Type_name = map[int32]string{
+	1:  "TYPE_DOUBLE",
+	2:  "TYPE_FLOAT",
+	3:  "TYPE_INT64",
+	4:  "TYPE_UINT64",
+	5:  "TYPE_INT32",
+	6:  "TYPE_FIXED64",
+	7:  "TYPE_FIXED32",
+	8:  "TYPE_BOOL",
+	9:  "TYPE_STRING",
+	10: "TYPE_GROUP",
+	11: "TYPE_MESSAGE",
+	12: "TYPE_BYTES",
+	13: "TYPE_UINT32",
+	14: "TYPE_ENUM",
+	15: "TYPE_SFIXED32",
+	16: "TYPE_SFIXED64",
+	17: "TYPE_SINT32",
+	18: "TYPE_SINT64",
+}
+
+var FieldDescriptorProto_Type_value = map[string]int32{
+	"TYPE_DOUBLE":   1,
+	"TYPE_FLOAT":    2,
+	"TYPE_INT64":    3,
+	"TYPE_UINT64":   4,
+	"TYPE_INT32":    5,
+	"TYPE_FIXED64":  6,
+	"TYPE_FIXED32":  7,
+	"TYPE_BOOL":     8,
+	"TYPE_STRING":   9,
+	"TYPE_GROUP":    10,
+	"TYPE_MESSAGE":  11,
+	"TYPE_BYTES":    12,
+	"TYPE_UINT32":   13,
+	"TYPE_ENUM":     14,
+	"TYPE_SFIXED32": 15,
+	"TYPE_SFIXED64": 16,
+	"TYPE_SINT32":   17,
+	"TYPE_SINT64":   18,
+}
+
+func (x FieldDescriptorProto_Type) Enum() *FieldDescriptorProto_Type {
+	p := new(FieldDescriptorProto_Type)
+	*p = x
+	return p
+}
+
+func (x FieldDescriptorProto_Type) String() string {
+	return FieldDescriptorProto_Type_name[int32(x)]
+}
+
+func (x *FieldDescriptorProto_Type) UnmarshalJSON(data []byte) error {
+	return errors.New("not implemented")
+}
+
+func (FieldDescriptorProto_Type) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{4, 0}
+}
+
+type FieldDescriptorProto_Label int32
+
+const (
+	// 0 is reserved for errors
+	FieldDescriptorProto_LABEL_OPTIONAL FieldDescriptorProto_Label = 1
+	FieldDescriptorProto_LABEL_REQUIRED FieldDescriptorProto_Label = 2
+	FieldDescriptorProto_LABEL_REPEATED FieldDescriptorProto_Label = 3
+)
+
+type xxx_FieldDescriptorProto_Label FieldDescriptorProto_Label
+
+func (e FieldDescriptorProto_Label) ProtoReflect() protoreflect.Enum {
+	return (xxx_FieldDescriptorProto_Label)(e)
+}
+func (e xxx_FieldDescriptorProto_Label) Type() protoreflect.EnumType {
+	return xxx_Descriptor_ProtoFile_EnumTypes[1]
+}
+func (e xxx_FieldDescriptorProto_Label) Number() protoreflect.EnumNumber {
+	return protoreflect.EnumNumber(e)
+}
+
+var FieldDescriptorProto_Label_name = map[int32]string{
+	1: "LABEL_OPTIONAL",
+	2: "LABEL_REQUIRED",
+	3: "LABEL_REPEATED",
+}
+
+var FieldDescriptorProto_Label_value = map[string]int32{
+	"LABEL_OPTIONAL": 1,
+	"LABEL_REQUIRED": 2,
+	"LABEL_REPEATED": 3,
+}
+
+func (x FieldDescriptorProto_Label) Enum() *FieldDescriptorProto_Label {
+	p := new(FieldDescriptorProto_Label)
+	*p = x
+	return p
+}
+
+func (x FieldDescriptorProto_Label) String() string {
+	return FieldDescriptorProto_Label_name[int32(x)]
+}
+
+func (x *FieldDescriptorProto_Label) UnmarshalJSON(data []byte) error {
+	return errors.New("not implemented")
+}
+
+func (FieldDescriptorProto_Label) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{4, 1}
+}
+
+// Generated classes can be optimized for speed or code size.
+type FileOptions_OptimizeMode int32
+
+const (
+	FileOptions_SPEED FileOptions_OptimizeMode = 1
+	// etc.
+	FileOptions_CODE_SIZE    FileOptions_OptimizeMode = 2
+	FileOptions_LITE_RUNTIME FileOptions_OptimizeMode = 3
+)
+
+type xxx_FileOptions_OptimizeMode FileOptions_OptimizeMode
+
+func (e FileOptions_OptimizeMode) ProtoReflect() protoreflect.Enum {
+	return (xxx_FileOptions_OptimizeMode)(e)
+}
+func (e xxx_FileOptions_OptimizeMode) Type() protoreflect.EnumType {
+	return xxx_Descriptor_ProtoFile_EnumTypes[2]
+}
+func (e xxx_FileOptions_OptimizeMode) Number() protoreflect.EnumNumber {
+	return protoreflect.EnumNumber(e)
+}
+
+var FileOptions_OptimizeMode_name = map[int32]string{
+	1: "SPEED",
+	2: "CODE_SIZE",
+	3: "LITE_RUNTIME",
+}
+
+var FileOptions_OptimizeMode_value = map[string]int32{
+	"SPEED":        1,
+	"CODE_SIZE":    2,
+	"LITE_RUNTIME": 3,
+}
+
+func (x FileOptions_OptimizeMode) Enum() *FileOptions_OptimizeMode {
+	p := new(FileOptions_OptimizeMode)
+	*p = x
+	return p
+}
+
+func (x FileOptions_OptimizeMode) String() string {
+	return FileOptions_OptimizeMode_name[int32(x)]
+}
+
+func (x *FileOptions_OptimizeMode) UnmarshalJSON(data []byte) error {
+	return errors.New("not implemented")
+}
+
+func (FileOptions_OptimizeMode) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{10, 0}
+}
+
+type FieldOptions_CType int32
+
+const (
+	// Default mode.
+	FieldOptions_STRING       FieldOptions_CType = 0
+	FieldOptions_CORD         FieldOptions_CType = 1
+	FieldOptions_STRING_PIECE FieldOptions_CType = 2
+)
+
+type xxx_FieldOptions_CType FieldOptions_CType
+
+func (e FieldOptions_CType) ProtoReflect() protoreflect.Enum {
+	return (xxx_FieldOptions_CType)(e)
+}
+func (e xxx_FieldOptions_CType) Type() protoreflect.EnumType {
+	return xxx_Descriptor_ProtoFile_EnumTypes[3]
+}
+func (e xxx_FieldOptions_CType) Number() protoreflect.EnumNumber {
+	return protoreflect.EnumNumber(e)
+}
+
+var FieldOptions_CType_name = map[int32]string{
+	0: "STRING",
+	1: "CORD",
+	2: "STRING_PIECE",
+}
+
+var FieldOptions_CType_value = map[string]int32{
+	"STRING":       0,
+	"CORD":         1,
+	"STRING_PIECE": 2,
+}
+
+func (x FieldOptions_CType) Enum() *FieldOptions_CType {
+	p := new(FieldOptions_CType)
+	*p = x
+	return p
+}
+
+func (x FieldOptions_CType) String() string {
+	return FieldOptions_CType_name[int32(x)]
+}
+
+func (x *FieldOptions_CType) UnmarshalJSON(data []byte) error {
+	return errors.New("not implemented")
+}
+
+func (FieldOptions_CType) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{12, 0}
+}
+
+type FieldOptions_JSType int32
+
+const (
+	// Use the default type.
+	FieldOptions_JS_NORMAL FieldOptions_JSType = 0
+	// Use JavaScript strings.
+	FieldOptions_JS_STRING FieldOptions_JSType = 1
+	// Use JavaScript numbers.
+	FieldOptions_JS_NUMBER FieldOptions_JSType = 2
+)
+
+type xxx_FieldOptions_JSType FieldOptions_JSType
+
+func (e FieldOptions_JSType) ProtoReflect() protoreflect.Enum {
+	return (xxx_FieldOptions_JSType)(e)
+}
+func (e xxx_FieldOptions_JSType) Type() protoreflect.EnumType {
+	return xxx_Descriptor_ProtoFile_EnumTypes[4]
+}
+func (e xxx_FieldOptions_JSType) Number() protoreflect.EnumNumber {
+	return protoreflect.EnumNumber(e)
+}
+
+var FieldOptions_JSType_name = map[int32]string{
+	0: "JS_NORMAL",
+	1: "JS_STRING",
+	2: "JS_NUMBER",
+}
+
+var FieldOptions_JSType_value = map[string]int32{
+	"JS_NORMAL": 0,
+	"JS_STRING": 1,
+	"JS_NUMBER": 2,
+}
+
+func (x FieldOptions_JSType) Enum() *FieldOptions_JSType {
+	p := new(FieldOptions_JSType)
+	*p = x
+	return p
+}
+
+func (x FieldOptions_JSType) String() string {
+	return FieldOptions_JSType_name[int32(x)]
+}
+
+func (x *FieldOptions_JSType) UnmarshalJSON(data []byte) error {
+	return errors.New("not implemented")
+}
+
+func (FieldOptions_JSType) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{12, 1}
+}
+
+// Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
+// or neither? HTTP based RPC implementation may choose GET verb for safe
+// methods, and PUT verb for idempotent methods instead of the default POST.
+type MethodOptions_IdempotencyLevel int32
+
+const (
+	MethodOptions_IDEMPOTENCY_UNKNOWN MethodOptions_IdempotencyLevel = 0
+	MethodOptions_NO_SIDE_EFFECTS     MethodOptions_IdempotencyLevel = 1
+	MethodOptions_IDEMPOTENT          MethodOptions_IdempotencyLevel = 2
+)
+
+type xxx_MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel
+
+func (e MethodOptions_IdempotencyLevel) ProtoReflect() protoreflect.Enum {
+	return (xxx_MethodOptions_IdempotencyLevel)(e)
+}
+func (e xxx_MethodOptions_IdempotencyLevel) Type() protoreflect.EnumType {
+	return xxx_Descriptor_ProtoFile_EnumTypes[5]
+}
+func (e xxx_MethodOptions_IdempotencyLevel) Number() protoreflect.EnumNumber {
+	return protoreflect.EnumNumber(e)
+}
+
+var MethodOptions_IdempotencyLevel_name = map[int32]string{
+	0: "IDEMPOTENCY_UNKNOWN",
+	1: "NO_SIDE_EFFECTS",
+	2: "IDEMPOTENT",
+}
+
+var MethodOptions_IdempotencyLevel_value = map[string]int32{
+	"IDEMPOTENCY_UNKNOWN": 0,
+	"NO_SIDE_EFFECTS":     1,
+	"IDEMPOTENT":          2,
+}
+
+func (x MethodOptions_IdempotencyLevel) Enum() *MethodOptions_IdempotencyLevel {
+	p := new(MethodOptions_IdempotencyLevel)
+	*p = x
+	return p
+}
+
+func (x MethodOptions_IdempotencyLevel) String() string {
+	return MethodOptions_IdempotencyLevel_name[int32(x)]
+}
+
+func (x *MethodOptions_IdempotencyLevel) UnmarshalJSON(data []byte) error {
+	return errors.New("not implemented")
+}
+
+func (MethodOptions_IdempotencyLevel) EnumDescriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{17, 0}
+}
+
+// The protocol compiler can output a FileDescriptorSet containing the .proto
+// files it parses.
+type FileDescriptorSet struct {
+	File                 []*FileDescriptorProto `protobuf:"bytes,1,rep,name=file" json:"file,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
+	XXX_unrecognized     []byte                 `json:"-"`
+	XXX_sizecache        int32                  `json:"-"`
+}
+
+type xxx_FileDescriptorSet struct{ m *FileDescriptorSet }
+
+func (m *FileDescriptorSet) ProtoReflect() protoreflect.Message {
+	return xxx_FileDescriptorSet{m}
+}
+func (m xxx_FileDescriptorSet) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[0].Type
+}
+func (m xxx_FileDescriptorSet) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[0].KnownFieldsOf(m.m)
+}
+func (m xxx_FileDescriptorSet) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[0].UnknownFieldsOf(m.m)
+}
+func (m xxx_FileDescriptorSet) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_FileDescriptorSet) ProtoMutable() {}
+
+func (m *FileDescriptorSet) Reset()         { *m = FileDescriptorSet{} }
+func (m *FileDescriptorSet) String() string { return "not implemented" }
+func (*FileDescriptorSet) ProtoMessage()    {}
+func (*FileDescriptorSet) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{0}
+}
+
+func (m *FileDescriptorSet) GetFile() []*FileDescriptorProto {
+	if m != nil {
+		return m.File
+	}
+	return nil
+}
+
+// Describes a complete .proto file.
+type FileDescriptorProto struct {
+	Name    *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
+	Package *string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"`
+	// Names of files imported by this file.
+	Dependency []string `protobuf:"bytes,3,rep,name=dependency" json:"dependency,omitempty"`
+	// Indexes of the public imported files in the dependency list above.
+	PublicDependency []int32 `protobuf:"varint,10,rep,name=public_dependency,json=publicDependency" json:"public_dependency,omitempty"`
+	// Indexes of the weak imported files in the dependency list.
+	// For Google-internal migration only. Do not use.
+	WeakDependency []int32 `protobuf:"varint,11,rep,name=weak_dependency,json=weakDependency" json:"weak_dependency,omitempty"`
+	// All top-level definitions in this file.
+	MessageType []*DescriptorProto        `protobuf:"bytes,4,rep,name=message_type,json=messageType" json:"message_type,omitempty"`
+	EnumType    []*EnumDescriptorProto    `protobuf:"bytes,5,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"`
+	Service     []*ServiceDescriptorProto `protobuf:"bytes,6,rep,name=service" json:"service,omitempty"`
+	Extension   []*FieldDescriptorProto   `protobuf:"bytes,7,rep,name=extension" json:"extension,omitempty"`
+	Options     *FileOptions              `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"`
+	// This field contains optional information about the original source code.
+	// You may safely remove this entire field without harming runtime
+	// functionality of the descriptors -- the information is needed only by
+	// development tools.
+	SourceCodeInfo *SourceCodeInfo `protobuf:"bytes,9,opt,name=source_code_info,json=sourceCodeInfo" json:"source_code_info,omitempty"`
+	// The syntax of the proto file.
+	// The supported values are "proto2" and "proto3".
+	Syntax               *string  `protobuf:"bytes,12,opt,name=syntax" json:"syntax,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+type xxx_FileDescriptorProto struct{ m *FileDescriptorProto }
+
+func (m *FileDescriptorProto) ProtoReflect() protoreflect.Message {
+	return xxx_FileDescriptorProto{m}
+}
+func (m xxx_FileDescriptorProto) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[1].Type
+}
+func (m xxx_FileDescriptorProto) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[1].KnownFieldsOf(m.m)
+}
+func (m xxx_FileDescriptorProto) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[1].UnknownFieldsOf(m.m)
+}
+func (m xxx_FileDescriptorProto) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_FileDescriptorProto) ProtoMutable() {}
+
+func (m *FileDescriptorProto) Reset()         { *m = FileDescriptorProto{} }
+func (m *FileDescriptorProto) String() string { return "not implemented" }
+func (*FileDescriptorProto) ProtoMessage()    {}
+func (*FileDescriptorProto) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{1}
+}
+
+func (m *FileDescriptorProto) GetName() string {
+	if m != nil && m.Name != nil {
+		return *m.Name
+	}
+	return ""
+}
+
+func (m *FileDescriptorProto) GetPackage() string {
+	if m != nil && m.Package != nil {
+		return *m.Package
+	}
+	return ""
+}
+
+func (m *FileDescriptorProto) GetDependency() []string {
+	if m != nil {
+		return m.Dependency
+	}
+	return nil
+}
+
+func (m *FileDescriptorProto) GetPublicDependency() []int32 {
+	if m != nil {
+		return m.PublicDependency
+	}
+	return nil
+}
+
+func (m *FileDescriptorProto) GetWeakDependency() []int32 {
+	if m != nil {
+		return m.WeakDependency
+	}
+	return nil
+}
+
+func (m *FileDescriptorProto) GetMessageType() []*DescriptorProto {
+	if m != nil {
+		return m.MessageType
+	}
+	return nil
+}
+
+func (m *FileDescriptorProto) GetEnumType() []*EnumDescriptorProto {
+	if m != nil {
+		return m.EnumType
+	}
+	return nil
+}
+
+func (m *FileDescriptorProto) GetService() []*ServiceDescriptorProto {
+	if m != nil {
+		return m.Service
+	}
+	return nil
+}
+
+func (m *FileDescriptorProto) GetExtension() []*FieldDescriptorProto {
+	if m != nil {
+		return m.Extension
+	}
+	return nil
+}
+
+func (m *FileDescriptorProto) GetOptions() *FileOptions {
+	if m != nil {
+		return m.Options
+	}
+	return nil
+}
+
+func (m *FileDescriptorProto) GetSourceCodeInfo() *SourceCodeInfo {
+	if m != nil {
+		return m.SourceCodeInfo
+	}
+	return nil
+}
+
+func (m *FileDescriptorProto) GetSyntax() string {
+	if m != nil && m.Syntax != nil {
+		return *m.Syntax
+	}
+	return ""
+}
+
+// Describes a message type.
+type DescriptorProto struct {
+	Name           *string                           `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
+	Field          []*FieldDescriptorProto           `protobuf:"bytes,2,rep,name=field" json:"field,omitempty"`
+	Extension      []*FieldDescriptorProto           `protobuf:"bytes,6,rep,name=extension" json:"extension,omitempty"`
+	NestedType     []*DescriptorProto                `protobuf:"bytes,3,rep,name=nested_type,json=nestedType" json:"nested_type,omitempty"`
+	EnumType       []*EnumDescriptorProto            `protobuf:"bytes,4,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"`
+	ExtensionRange []*DescriptorProto_ExtensionRange `protobuf:"bytes,5,rep,name=extension_range,json=extensionRange" json:"extension_range,omitempty"`
+	OneofDecl      []*OneofDescriptorProto           `protobuf:"bytes,8,rep,name=oneof_decl,json=oneofDecl" json:"oneof_decl,omitempty"`
+	Options        *MessageOptions                   `protobuf:"bytes,7,opt,name=options" json:"options,omitempty"`
+	ReservedRange  []*DescriptorProto_ReservedRange  `protobuf:"bytes,9,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"`
+	// Reserved field names, which may not be used by fields in the same message.
+	// A given name may only be reserved once.
+	ReservedName         []string `protobuf:"bytes,10,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+type xxx_DescriptorProto struct{ m *DescriptorProto }
+
+func (m *DescriptorProto) ProtoReflect() protoreflect.Message {
+	return xxx_DescriptorProto{m}
+}
+func (m xxx_DescriptorProto) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[2].Type
+}
+func (m xxx_DescriptorProto) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[2].KnownFieldsOf(m.m)
+}
+func (m xxx_DescriptorProto) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[2].UnknownFieldsOf(m.m)
+}
+func (m xxx_DescriptorProto) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_DescriptorProto) ProtoMutable() {}
+
+func (m *DescriptorProto) Reset()         { *m = DescriptorProto{} }
+func (m *DescriptorProto) String() string { return "not implemented" }
+func (*DescriptorProto) ProtoMessage()    {}
+func (*DescriptorProto) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{2}
+}
+
+func (m *DescriptorProto) GetName() string {
+	if m != nil && m.Name != nil {
+		return *m.Name
+	}
+	return ""
+}
+
+func (m *DescriptorProto) GetField() []*FieldDescriptorProto {
+	if m != nil {
+		return m.Field
+	}
+	return nil
+}
+
+func (m *DescriptorProto) GetExtension() []*FieldDescriptorProto {
+	if m != nil {
+		return m.Extension
+	}
+	return nil
+}
+
+func (m *DescriptorProto) GetNestedType() []*DescriptorProto {
+	if m != nil {
+		return m.NestedType
+	}
+	return nil
+}
+
+func (m *DescriptorProto) GetEnumType() []*EnumDescriptorProto {
+	if m != nil {
+		return m.EnumType
+	}
+	return nil
+}
+
+func (m *DescriptorProto) GetExtensionRange() []*DescriptorProto_ExtensionRange {
+	if m != nil {
+		return m.ExtensionRange
+	}
+	return nil
+}
+
+func (m *DescriptorProto) GetOneofDecl() []*OneofDescriptorProto {
+	if m != nil {
+		return m.OneofDecl
+	}
+	return nil
+}
+
+func (m *DescriptorProto) GetOptions() *MessageOptions {
+	if m != nil {
+		return m.Options
+	}
+	return nil
+}
+
+func (m *DescriptorProto) GetReservedRange() []*DescriptorProto_ReservedRange {
+	if m != nil {
+		return m.ReservedRange
+	}
+	return nil
+}
+
+func (m *DescriptorProto) GetReservedName() []string {
+	if m != nil {
+		return m.ReservedName
+	}
+	return nil
+}
+
+type DescriptorProto_ExtensionRange struct {
+	Start                *int32                 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"`
+	End                  *int32                 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"`
+	Options              *ExtensionRangeOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
+	XXX_unrecognized     []byte                 `json:"-"`
+	XXX_sizecache        int32                  `json:"-"`
+}
+
+type xxx_DescriptorProto_ExtensionRange struct {
+	m *DescriptorProto_ExtensionRange
+}
+
+func (m *DescriptorProto_ExtensionRange) ProtoReflect() protoreflect.Message {
+	return xxx_DescriptorProto_ExtensionRange{m}
+}
+func (m xxx_DescriptorProto_ExtensionRange) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[21].Type
+}
+func (m xxx_DescriptorProto_ExtensionRange) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[21].KnownFieldsOf(m.m)
+}
+func (m xxx_DescriptorProto_ExtensionRange) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[21].UnknownFieldsOf(m.m)
+}
+func (m xxx_DescriptorProto_ExtensionRange) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_DescriptorProto_ExtensionRange) ProtoMutable() {}
+
+func (m *DescriptorProto_ExtensionRange) Reset()         { *m = DescriptorProto_ExtensionRange{} }
+func (m *DescriptorProto_ExtensionRange) String() string { return "not implemented" }
+func (*DescriptorProto_ExtensionRange) ProtoMessage()    {}
+func (*DescriptorProto_ExtensionRange) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{2, 0}
+}
+
+func (m *DescriptorProto_ExtensionRange) GetStart() int32 {
+	if m != nil && m.Start != nil {
+		return *m.Start
+	}
+	return 0
+}
+
+func (m *DescriptorProto_ExtensionRange) GetEnd() int32 {
+	if m != nil && m.End != nil {
+		return *m.End
+	}
+	return 0
+}
+
+func (m *DescriptorProto_ExtensionRange) GetOptions() *ExtensionRangeOptions {
+	if m != nil {
+		return m.Options
+	}
+	return nil
+}
+
+// Range of reserved tag numbers. Reserved tag numbers may not be used by
+// fields or extension ranges in the same message. Reserved ranges may
+// not overlap.
+type DescriptorProto_ReservedRange struct {
+	Start                *int32   `protobuf:"varint,1,opt,name=start" json:"start,omitempty"`
+	End                  *int32   `protobuf:"varint,2,opt,name=end" json:"end,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+type xxx_DescriptorProto_ReservedRange struct {
+	m *DescriptorProto_ReservedRange
+}
+
+func (m *DescriptorProto_ReservedRange) ProtoReflect() protoreflect.Message {
+	return xxx_DescriptorProto_ReservedRange{m}
+}
+func (m xxx_DescriptorProto_ReservedRange) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[22].Type
+}
+func (m xxx_DescriptorProto_ReservedRange) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[22].KnownFieldsOf(m.m)
+}
+func (m xxx_DescriptorProto_ReservedRange) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[22].UnknownFieldsOf(m.m)
+}
+func (m xxx_DescriptorProto_ReservedRange) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_DescriptorProto_ReservedRange) ProtoMutable() {}
+
+func (m *DescriptorProto_ReservedRange) Reset()         { *m = DescriptorProto_ReservedRange{} }
+func (m *DescriptorProto_ReservedRange) String() string { return "not implemented" }
+func (*DescriptorProto_ReservedRange) ProtoMessage()    {}
+func (*DescriptorProto_ReservedRange) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{2, 1}
+}
+
+func (m *DescriptorProto_ReservedRange) GetStart() int32 {
+	if m != nil && m.Start != nil {
+		return *m.Start
+	}
+	return 0
+}
+
+func (m *DescriptorProto_ReservedRange) GetEnd() int32 {
+	if m != nil && m.End != nil {
+		return *m.End
+	}
+	return 0
+}
+
+type ExtensionRangeOptions struct {
+	// The parser stores options it doesn't recognize here. See above.
+	UninterpretedOption          []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
+	XXX_NoUnkeyedLiteral         struct{}               `json:"-"`
+	proto.XXX_InternalExtensions `json:"-"`
+	XXX_unrecognized             []byte `json:"-"`
+	XXX_sizecache                int32  `json:"-"`
+}
+
+type xxx_ExtensionRangeOptions struct{ m *ExtensionRangeOptions }
+
+func (m *ExtensionRangeOptions) ProtoReflect() protoreflect.Message {
+	return xxx_ExtensionRangeOptions{m}
+}
+func (m xxx_ExtensionRangeOptions) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[3].Type
+}
+func (m xxx_ExtensionRangeOptions) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[3].KnownFieldsOf(m.m)
+}
+func (m xxx_ExtensionRangeOptions) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[3].UnknownFieldsOf(m.m)
+}
+func (m xxx_ExtensionRangeOptions) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_ExtensionRangeOptions) ProtoMutable() {}
+
+func (m *ExtensionRangeOptions) Reset()         { *m = ExtensionRangeOptions{} }
+func (m *ExtensionRangeOptions) String() string { return "not implemented" }
+func (*ExtensionRangeOptions) ProtoMessage()    {}
+func (*ExtensionRangeOptions) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{3}
+}
+
+var extRange_ExtensionRangeOptions = []proto.ExtensionRange{
+	{Start: 1000, End: 536870911},
+}
+
+func (*ExtensionRangeOptions) ExtensionRangeArray() []proto.ExtensionRange {
+	return extRange_ExtensionRangeOptions
+}
+
+func (m *ExtensionRangeOptions) GetUninterpretedOption() []*UninterpretedOption {
+	if m != nil {
+		return m.UninterpretedOption
+	}
+	return nil
+}
+
+// Describes a field within a message.
+type FieldDescriptorProto struct {
+	Name   *string                     `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
+	Number *int32                      `protobuf:"varint,3,opt,name=number" json:"number,omitempty"`
+	Label  *FieldDescriptorProto_Label `protobuf:"varint,4,opt,name=label,enum=google.protobuf.FieldDescriptorProto_Label" json:"label,omitempty"`
+	// If type_name is set, this need not be set.  If both this and type_name
+	// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
+	Type *FieldDescriptorProto_Type `protobuf:"varint,5,opt,name=type,enum=google.protobuf.FieldDescriptorProto_Type" json:"type,omitempty"`
+	// For message and enum types, this is the name of the type.  If the name
+	// starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
+	// rules are used to find the type (i.e. first the nested types within this
+	// message are searched, then within the parent, on up to the root
+	// namespace).
+	TypeName *string `protobuf:"bytes,6,opt,name=type_name,json=typeName" json:"type_name,omitempty"`
+	// For extensions, this is the name of the type being extended.  It is
+	// resolved in the same manner as type_name.
+	Extendee *string `protobuf:"bytes,2,opt,name=extendee" json:"extendee,omitempty"`
+	// For numeric types, contains the original text representation of the value.
+	// For booleans, "true" or "false".
+	// For strings, contains the default text contents (not escaped in any way).
+	// For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
+	// TODO(kenton):  Base-64 encode?
+	DefaultValue *string `protobuf:"bytes,7,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"`
+	// If set, gives the index of a oneof in the containing type's oneof_decl
+	// list.  This field is a member of that oneof.
+	OneofIndex *int32 `protobuf:"varint,9,opt,name=oneof_index,json=oneofIndex" json:"oneof_index,omitempty"`
+	// JSON name of this field. The value is set by protocol compiler. If the
+	// user has set a "json_name" option on this field, that option's value
+	// will be used. Otherwise, it's deduced from the field's name by converting
+	// it to camelCase.
+	JsonName             *string       `protobuf:"bytes,10,opt,name=json_name,json=jsonName" json:"json_name,omitempty"`
+	Options              *FieldOptions `protobuf:"bytes,8,opt,name=options" json:"options,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
+	XXX_unrecognized     []byte        `json:"-"`
+	XXX_sizecache        int32         `json:"-"`
+}
+
+type xxx_FieldDescriptorProto struct{ m *FieldDescriptorProto }
+
+func (m *FieldDescriptorProto) ProtoReflect() protoreflect.Message {
+	return xxx_FieldDescriptorProto{m}
+}
+func (m xxx_FieldDescriptorProto) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[4].Type
+}
+func (m xxx_FieldDescriptorProto) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[4].KnownFieldsOf(m.m)
+}
+func (m xxx_FieldDescriptorProto) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[4].UnknownFieldsOf(m.m)
+}
+func (m xxx_FieldDescriptorProto) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_FieldDescriptorProto) ProtoMutable() {}
+
+func (m *FieldDescriptorProto) Reset()         { *m = FieldDescriptorProto{} }
+func (m *FieldDescriptorProto) String() string { return "not implemented" }
+func (*FieldDescriptorProto) ProtoMessage()    {}
+func (*FieldDescriptorProto) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{4}
+}
+
+func (m *FieldDescriptorProto) GetName() string {
+	if m != nil && m.Name != nil {
+		return *m.Name
+	}
+	return ""
+}
+
+func (m *FieldDescriptorProto) GetNumber() int32 {
+	if m != nil && m.Number != nil {
+		return *m.Number
+	}
+	return 0
+}
+
+func (m *FieldDescriptorProto) GetLabel() FieldDescriptorProto_Label {
+	if m != nil && m.Label != nil {
+		return *m.Label
+	}
+	return FieldDescriptorProto_LABEL_OPTIONAL
+}
+
+func (m *FieldDescriptorProto) GetType() FieldDescriptorProto_Type {
+	if m != nil && m.Type != nil {
+		return *m.Type
+	}
+	return FieldDescriptorProto_TYPE_DOUBLE
+}
+
+func (m *FieldDescriptorProto) GetTypeName() string {
+	if m != nil && m.TypeName != nil {
+		return *m.TypeName
+	}
+	return ""
+}
+
+func (m *FieldDescriptorProto) GetExtendee() string {
+	if m != nil && m.Extendee != nil {
+		return *m.Extendee
+	}
+	return ""
+}
+
+func (m *FieldDescriptorProto) GetDefaultValue() string {
+	if m != nil && m.DefaultValue != nil {
+		return *m.DefaultValue
+	}
+	return ""
+}
+
+func (m *FieldDescriptorProto) GetOneofIndex() int32 {
+	if m != nil && m.OneofIndex != nil {
+		return *m.OneofIndex
+	}
+	return 0
+}
+
+func (m *FieldDescriptorProto) GetJsonName() string {
+	if m != nil && m.JsonName != nil {
+		return *m.JsonName
+	}
+	return ""
+}
+
+func (m *FieldDescriptorProto) GetOptions() *FieldOptions {
+	if m != nil {
+		return m.Options
+	}
+	return nil
+}
+
+// Describes a oneof.
+type OneofDescriptorProto struct {
+	Name                 *string       `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
+	Options              *OneofOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
+	XXX_unrecognized     []byte        `json:"-"`
+	XXX_sizecache        int32         `json:"-"`
+}
+
+type xxx_OneofDescriptorProto struct{ m *OneofDescriptorProto }
+
+func (m *OneofDescriptorProto) ProtoReflect() protoreflect.Message {
+	return xxx_OneofDescriptorProto{m}
+}
+func (m xxx_OneofDescriptorProto) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[5].Type
+}
+func (m xxx_OneofDescriptorProto) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[5].KnownFieldsOf(m.m)
+}
+func (m xxx_OneofDescriptorProto) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[5].UnknownFieldsOf(m.m)
+}
+func (m xxx_OneofDescriptorProto) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_OneofDescriptorProto) ProtoMutable() {}
+
+func (m *OneofDescriptorProto) Reset()         { *m = OneofDescriptorProto{} }
+func (m *OneofDescriptorProto) String() string { return "not implemented" }
+func (*OneofDescriptorProto) ProtoMessage()    {}
+func (*OneofDescriptorProto) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{5}
+}
+
+func (m *OneofDescriptorProto) GetName() string {
+	if m != nil && m.Name != nil {
+		return *m.Name
+	}
+	return ""
+}
+
+func (m *OneofDescriptorProto) GetOptions() *OneofOptions {
+	if m != nil {
+		return m.Options
+	}
+	return nil
+}
+
+// Describes an enum type.
+type EnumDescriptorProto struct {
+	Name    *string                     `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
+	Value   []*EnumValueDescriptorProto `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
+	Options *EnumOptions                `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"`
+	// Range of reserved numeric values. Reserved numeric values may not be used
+	// by enum values in the same enum declaration. Reserved ranges may not
+	// overlap.
+	ReservedRange []*EnumDescriptorProto_EnumReservedRange `protobuf:"bytes,4,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"`
+	// Reserved enum value names, which may not be reused. A given name may only
+	// be reserved once.
+	ReservedName         []string `protobuf:"bytes,5,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+type xxx_EnumDescriptorProto struct{ m *EnumDescriptorProto }
+
+func (m *EnumDescriptorProto) ProtoReflect() protoreflect.Message {
+	return xxx_EnumDescriptorProto{m}
+}
+func (m xxx_EnumDescriptorProto) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[6].Type
+}
+func (m xxx_EnumDescriptorProto) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[6].KnownFieldsOf(m.m)
+}
+func (m xxx_EnumDescriptorProto) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[6].UnknownFieldsOf(m.m)
+}
+func (m xxx_EnumDescriptorProto) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_EnumDescriptorProto) ProtoMutable() {}
+
+func (m *EnumDescriptorProto) Reset()         { *m = EnumDescriptorProto{} }
+func (m *EnumDescriptorProto) String() string { return "not implemented" }
+func (*EnumDescriptorProto) ProtoMessage()    {}
+func (*EnumDescriptorProto) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{6}
+}
+
+func (m *EnumDescriptorProto) GetName() string {
+	if m != nil && m.Name != nil {
+		return *m.Name
+	}
+	return ""
+}
+
+func (m *EnumDescriptorProto) GetValue() []*EnumValueDescriptorProto {
+	if m != nil {
+		return m.Value
+	}
+	return nil
+}
+
+func (m *EnumDescriptorProto) GetOptions() *EnumOptions {
+	if m != nil {
+		return m.Options
+	}
+	return nil
+}
+
+func (m *EnumDescriptorProto) GetReservedRange() []*EnumDescriptorProto_EnumReservedRange {
+	if m != nil {
+		return m.ReservedRange
+	}
+	return nil
+}
+
+func (m *EnumDescriptorProto) GetReservedName() []string {
+	if m != nil {
+		return m.ReservedName
+	}
+	return nil
+}
+
+// Range of reserved numeric values. Reserved values may not be used by
+// entries in the same enum. Reserved ranges may not overlap.
+//
+// Note that this is distinct from DescriptorProto.ReservedRange in that it
+// is inclusive such that it can appropriately represent the entire int32
+// domain.
+type EnumDescriptorProto_EnumReservedRange struct {
+	Start                *int32   `protobuf:"varint,1,opt,name=start" json:"start,omitempty"`
+	End                  *int32   `protobuf:"varint,2,opt,name=end" json:"end,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+type xxx_EnumDescriptorProto_EnumReservedRange struct {
+	m *EnumDescriptorProto_EnumReservedRange
+}
+
+func (m *EnumDescriptorProto_EnumReservedRange) ProtoReflect() protoreflect.Message {
+	return xxx_EnumDescriptorProto_EnumReservedRange{m}
+}
+func (m xxx_EnumDescriptorProto_EnumReservedRange) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[23].Type
+}
+func (m xxx_EnumDescriptorProto_EnumReservedRange) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[23].KnownFieldsOf(m.m)
+}
+func (m xxx_EnumDescriptorProto_EnumReservedRange) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[23].UnknownFieldsOf(m.m)
+}
+func (m xxx_EnumDescriptorProto_EnumReservedRange) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_EnumDescriptorProto_EnumReservedRange) ProtoMutable() {}
+
+func (m *EnumDescriptorProto_EnumReservedRange) Reset()         { *m = EnumDescriptorProto_EnumReservedRange{} }
+func (m *EnumDescriptorProto_EnumReservedRange) String() string { return "not implemented" }
+func (*EnumDescriptorProto_EnumReservedRange) ProtoMessage()    {}
+func (*EnumDescriptorProto_EnumReservedRange) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{6, 0}
+}
+
+func (m *EnumDescriptorProto_EnumReservedRange) GetStart() int32 {
+	if m != nil && m.Start != nil {
+		return *m.Start
+	}
+	return 0
+}
+
+func (m *EnumDescriptorProto_EnumReservedRange) GetEnd() int32 {
+	if m != nil && m.End != nil {
+		return *m.End
+	}
+	return 0
+}
+
+// Describes a value within an enum.
+type EnumValueDescriptorProto struct {
+	Name                 *string           `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
+	Number               *int32            `protobuf:"varint,2,opt,name=number" json:"number,omitempty"`
+	Options              *EnumValueOptions `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
+	XXX_unrecognized     []byte            `json:"-"`
+	XXX_sizecache        int32             `json:"-"`
+}
+
+type xxx_EnumValueDescriptorProto struct{ m *EnumValueDescriptorProto }
+
+func (m *EnumValueDescriptorProto) ProtoReflect() protoreflect.Message {
+	return xxx_EnumValueDescriptorProto{m}
+}
+func (m xxx_EnumValueDescriptorProto) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[7].Type
+}
+func (m xxx_EnumValueDescriptorProto) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[7].KnownFieldsOf(m.m)
+}
+func (m xxx_EnumValueDescriptorProto) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[7].UnknownFieldsOf(m.m)
+}
+func (m xxx_EnumValueDescriptorProto) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_EnumValueDescriptorProto) ProtoMutable() {}
+
+func (m *EnumValueDescriptorProto) Reset()         { *m = EnumValueDescriptorProto{} }
+func (m *EnumValueDescriptorProto) String() string { return "not implemented" }
+func (*EnumValueDescriptorProto) ProtoMessage()    {}
+func (*EnumValueDescriptorProto) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{7}
+}
+
+func (m *EnumValueDescriptorProto) GetName() string {
+	if m != nil && m.Name != nil {
+		return *m.Name
+	}
+	return ""
+}
+
+func (m *EnumValueDescriptorProto) GetNumber() int32 {
+	if m != nil && m.Number != nil {
+		return *m.Number
+	}
+	return 0
+}
+
+func (m *EnumValueDescriptorProto) GetOptions() *EnumValueOptions {
+	if m != nil {
+		return m.Options
+	}
+	return nil
+}
+
+// Describes a service.
+type ServiceDescriptorProto struct {
+	Name                 *string                  `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
+	Method               []*MethodDescriptorProto `protobuf:"bytes,2,rep,name=method" json:"method,omitempty"`
+	Options              *ServiceOptions          `protobuf:"bytes,3,opt,name=options" json:"options,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}                 `json:"-"`
+	XXX_unrecognized     []byte                   `json:"-"`
+	XXX_sizecache        int32                    `json:"-"`
+}
+
+type xxx_ServiceDescriptorProto struct{ m *ServiceDescriptorProto }
+
+func (m *ServiceDescriptorProto) ProtoReflect() protoreflect.Message {
+	return xxx_ServiceDescriptorProto{m}
+}
+func (m xxx_ServiceDescriptorProto) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[8].Type
+}
+func (m xxx_ServiceDescriptorProto) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[8].KnownFieldsOf(m.m)
+}
+func (m xxx_ServiceDescriptorProto) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[8].UnknownFieldsOf(m.m)
+}
+func (m xxx_ServiceDescriptorProto) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_ServiceDescriptorProto) ProtoMutable() {}
+
+func (m *ServiceDescriptorProto) Reset()         { *m = ServiceDescriptorProto{} }
+func (m *ServiceDescriptorProto) String() string { return "not implemented" }
+func (*ServiceDescriptorProto) ProtoMessage()    {}
+func (*ServiceDescriptorProto) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{8}
+}
+
+func (m *ServiceDescriptorProto) GetName() string {
+	if m != nil && m.Name != nil {
+		return *m.Name
+	}
+	return ""
+}
+
+func (m *ServiceDescriptorProto) GetMethod() []*MethodDescriptorProto {
+	if m != nil {
+		return m.Method
+	}
+	return nil
+}
+
+func (m *ServiceDescriptorProto) GetOptions() *ServiceOptions {
+	if m != nil {
+		return m.Options
+	}
+	return nil
+}
+
+// Describes a method of a service.
+type MethodDescriptorProto struct {
+	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
+	// Input and output type names.  These are resolved in the same way as
+	// FieldDescriptorProto.type_name, but must refer to a message type.
+	InputType  *string        `protobuf:"bytes,2,opt,name=input_type,json=inputType" json:"input_type,omitempty"`
+	OutputType *string        `protobuf:"bytes,3,opt,name=output_type,json=outputType" json:"output_type,omitempty"`
+	Options    *MethodOptions `protobuf:"bytes,4,opt,name=options" json:"options,omitempty"`
+	// Identifies if client streams multiple client messages
+	ClientStreaming *bool `protobuf:"varint,5,opt,name=client_streaming,json=clientStreaming,def=0" json:"client_streaming,omitempty"`
+	// Identifies if server streams multiple server messages
+	ServerStreaming      *bool    `protobuf:"varint,6,opt,name=server_streaming,json=serverStreaming,def=0" json:"server_streaming,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+type xxx_MethodDescriptorProto struct{ m *MethodDescriptorProto }
+
+func (m *MethodDescriptorProto) ProtoReflect() protoreflect.Message {
+	return xxx_MethodDescriptorProto{m}
+}
+func (m xxx_MethodDescriptorProto) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[9].Type
+}
+func (m xxx_MethodDescriptorProto) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[9].KnownFieldsOf(m.m)
+}
+func (m xxx_MethodDescriptorProto) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[9].UnknownFieldsOf(m.m)
+}
+func (m xxx_MethodDescriptorProto) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_MethodDescriptorProto) ProtoMutable() {}
+
+func (m *MethodDescriptorProto) Reset()         { *m = MethodDescriptorProto{} }
+func (m *MethodDescriptorProto) String() string { return "not implemented" }
+func (*MethodDescriptorProto) ProtoMessage()    {}
+func (*MethodDescriptorProto) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{9}
+}
+
+const Default_MethodDescriptorProto_ClientStreaming bool = false
+const Default_MethodDescriptorProto_ServerStreaming bool = false
+
+func (m *MethodDescriptorProto) GetName() string {
+	if m != nil && m.Name != nil {
+		return *m.Name
+	}
+	return ""
+}
+
+func (m *MethodDescriptorProto) GetInputType() string {
+	if m != nil && m.InputType != nil {
+		return *m.InputType
+	}
+	return ""
+}
+
+func (m *MethodDescriptorProto) GetOutputType() string {
+	if m != nil && m.OutputType != nil {
+		return *m.OutputType
+	}
+	return ""
+}
+
+func (m *MethodDescriptorProto) GetOptions() *MethodOptions {
+	if m != nil {
+		return m.Options
+	}
+	return nil
+}
+
+func (m *MethodDescriptorProto) GetClientStreaming() bool {
+	if m != nil && m.ClientStreaming != nil {
+		return *m.ClientStreaming
+	}
+	return Default_MethodDescriptorProto_ClientStreaming
+}
+
+func (m *MethodDescriptorProto) GetServerStreaming() bool {
+	if m != nil && m.ServerStreaming != nil {
+		return *m.ServerStreaming
+	}
+	return Default_MethodDescriptorProto_ServerStreaming
+}
+
+type FileOptions struct {
+	// Sets the Java package where classes generated from this .proto will be
+	// placed.  By default, the proto package is used, but this is often
+	// inappropriate because proto packages do not normally start with backwards
+	// domain names.
+	JavaPackage *string `protobuf:"bytes,1,opt,name=java_package,json=javaPackage" json:"java_package,omitempty"`
+	// If set, all the classes from the .proto file are wrapped in a single
+	// outer class with the given name.  This applies to both Proto1
+	// (equivalent to the old "--one_java_file" option) and Proto2 (where
+	// a .proto always translates to a single class, but you may want to
+	// explicitly choose the class name).
+	JavaOuterClassname *string `protobuf:"bytes,8,opt,name=java_outer_classname,json=javaOuterClassname" json:"java_outer_classname,omitempty"`
+	// If set true, then the Java code generator will generate a separate .java
+	// file for each top-level message, enum, and service defined in the .proto
+	// file.  Thus, these types will *not* be nested inside the outer class
+	// named by java_outer_classname.  However, the outer class will still be
+	// generated to contain the file's getDescriptor() method as well as any
+	// top-level extensions defined in the file.
+	JavaMultipleFiles *bool `protobuf:"varint,10,opt,name=java_multiple_files,json=javaMultipleFiles,def=0" json:"java_multiple_files,omitempty"`
+	// This option does nothing.
+	JavaGenerateEqualsAndHash *bool `protobuf:"varint,20,opt,name=java_generate_equals_and_hash,json=javaGenerateEqualsAndHash" json:"java_generate_equals_and_hash,omitempty"` // Deprecated: Do not use.
+	// If set true, then the Java2 code generator will generate code that
+	// throws an exception whenever an attempt is made to assign a non-UTF-8
+	// byte sequence to a string field.
+	// Message reflection will do the same.
+	// However, an extension field still accepts non-UTF-8 byte sequences.
+	// This option has no effect on when used with the lite runtime.
+	JavaStringCheckUtf8 *bool                     `protobuf:"varint,27,opt,name=java_string_check_utf8,json=javaStringCheckUtf8,def=0" json:"java_string_check_utf8,omitempty"`
+	OptimizeFor         *FileOptions_OptimizeMode `protobuf:"varint,9,opt,name=optimize_for,json=optimizeFor,enum=google.protobuf.FileOptions_OptimizeMode,def=1" json:"optimize_for,omitempty"`
+	// Sets the Go package where structs generated from this .proto will be
+	// placed. If omitted, the Go package will be derived from the following:
+	//   - The basename of the package import path, if provided.
+	//   - Otherwise, the package statement in the .proto file, if present.
+	//   - Otherwise, the basename of the .proto file, without extension.
+	GoPackage *string `protobuf:"bytes,11,opt,name=go_package,json=goPackage" json:"go_package,omitempty"`
+	// Should generic services be generated in each language?  "Generic" services
+	// are not specific to any particular RPC system.  They are generated by the
+	// main code generators in each language (without additional plugins).
+	// Generic services were the only kind of service generation supported by
+	// early versions of google.protobuf.
+	//
+	// Generic services are now considered deprecated in favor of using plugins
+	// that generate code specific to your particular RPC system.  Therefore,
+	// these default to false.  Old code which depends on generic services should
+	// explicitly set them to true.
+	CcGenericServices   *bool `protobuf:"varint,16,opt,name=cc_generic_services,json=ccGenericServices,def=0" json:"cc_generic_services,omitempty"`
+	JavaGenericServices *bool `protobuf:"varint,17,opt,name=java_generic_services,json=javaGenericServices,def=0" json:"java_generic_services,omitempty"`
+	PyGenericServices   *bool `protobuf:"varint,18,opt,name=py_generic_services,json=pyGenericServices,def=0" json:"py_generic_services,omitempty"`
+	PhpGenericServices  *bool `protobuf:"varint,42,opt,name=php_generic_services,json=phpGenericServices,def=0" json:"php_generic_services,omitempty"`
+	// Is this file deprecated?
+	// Depending on the target platform, this can emit Deprecated annotations
+	// for everything in the file, or it will be completely ignored; in the very
+	// least, this is a formalization for deprecating files.
+	Deprecated *bool `protobuf:"varint,23,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
+	// Enables the use of arenas for the proto messages in this file. This applies
+	// only to generated classes for C++.
+	CcEnableArenas *bool `protobuf:"varint,31,opt,name=cc_enable_arenas,json=ccEnableArenas,def=0" json:"cc_enable_arenas,omitempty"`
+	// Sets the objective c class prefix which is prepended to all objective c
+	// generated classes from this .proto. There is no default.
+	ObjcClassPrefix *string `protobuf:"bytes,36,opt,name=objc_class_prefix,json=objcClassPrefix" json:"objc_class_prefix,omitempty"`
+	// Namespace for generated classes; defaults to the package.
+	CsharpNamespace *string `protobuf:"bytes,37,opt,name=csharp_namespace,json=csharpNamespace" json:"csharp_namespace,omitempty"`
+	// By default Swift generators will take the proto package and CamelCase it
+	// replacing '.' with underscore and use that to prefix the types/symbols
+	// defined. When this options is provided, they will use this value instead
+	// to prefix the types/symbols defined.
+	SwiftPrefix *string `protobuf:"bytes,39,opt,name=swift_prefix,json=swiftPrefix" json:"swift_prefix,omitempty"`
+	// Sets the php class prefix which is prepended to all php generated classes
+	// from this .proto. Default is empty.
+	PhpClassPrefix *string `protobuf:"bytes,40,opt,name=php_class_prefix,json=phpClassPrefix" json:"php_class_prefix,omitempty"`
+	// Use this option to change the namespace of php generated classes. Default
+	// is empty. When this option is empty, the package name will be used for
+	// determining the namespace.
+	PhpNamespace *string `protobuf:"bytes,41,opt,name=php_namespace,json=phpNamespace" json:"php_namespace,omitempty"`
+	// Use this option to change the namespace of php generated metadata classes.
+	// Default is empty. When this option is empty, the proto file name will be used
+	// for determining the namespace.
+	PhpMetadataNamespace *string `protobuf:"bytes,44,opt,name=php_metadata_namespace,json=phpMetadataNamespace" json:"php_metadata_namespace,omitempty"`
+	// Use this option to change the package of ruby generated classes. Default
+	// is empty. When this option is not set, the package name will be used for
+	// determining the ruby package.
+	RubyPackage *string `protobuf:"bytes,45,opt,name=ruby_package,json=rubyPackage" json:"ruby_package,omitempty"`
+	// The parser stores options it doesn't recognize here.
+	// See the documentation for the "Options" section above.
+	UninterpretedOption          []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
+	XXX_NoUnkeyedLiteral         struct{}               `json:"-"`
+	proto.XXX_InternalExtensions `json:"-"`
+	XXX_unrecognized             []byte `json:"-"`
+	XXX_sizecache                int32  `json:"-"`
+}
+
+type xxx_FileOptions struct{ m *FileOptions }
+
+func (m *FileOptions) ProtoReflect() protoreflect.Message {
+	return xxx_FileOptions{m}
+}
+func (m xxx_FileOptions) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[10].Type
+}
+func (m xxx_FileOptions) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[10].KnownFieldsOf(m.m)
+}
+func (m xxx_FileOptions) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[10].UnknownFieldsOf(m.m)
+}
+func (m xxx_FileOptions) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_FileOptions) ProtoMutable() {}
+
+func (m *FileOptions) Reset()         { *m = FileOptions{} }
+func (m *FileOptions) String() string { return "not implemented" }
+func (*FileOptions) ProtoMessage()    {}
+func (*FileOptions) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{10}
+}
+
+var extRange_FileOptions = []proto.ExtensionRange{
+	{Start: 1000, End: 536870911},
+}
+
+func (*FileOptions) ExtensionRangeArray() []proto.ExtensionRange {
+	return extRange_FileOptions
+}
+
+const Default_FileOptions_JavaMultipleFiles bool = false
+const Default_FileOptions_JavaStringCheckUtf8 bool = false
+const Default_FileOptions_OptimizeFor FileOptions_OptimizeMode = FileOptions_SPEED
+const Default_FileOptions_CcGenericServices bool = false
+const Default_FileOptions_JavaGenericServices bool = false
+const Default_FileOptions_PyGenericServices bool = false
+const Default_FileOptions_PhpGenericServices bool = false
+const Default_FileOptions_Deprecated bool = false
+const Default_FileOptions_CcEnableArenas bool = false
+
+func (m *FileOptions) GetJavaPackage() string {
+	if m != nil && m.JavaPackage != nil {
+		return *m.JavaPackage
+	}
+	return ""
+}
+
+func (m *FileOptions) GetJavaOuterClassname() string {
+	if m != nil && m.JavaOuterClassname != nil {
+		return *m.JavaOuterClassname
+	}
+	return ""
+}
+
+func (m *FileOptions) GetJavaMultipleFiles() bool {
+	if m != nil && m.JavaMultipleFiles != nil {
+		return *m.JavaMultipleFiles
+	}
+	return Default_FileOptions_JavaMultipleFiles
+}
+
+// Deprecated: Do not use.
+func (m *FileOptions) GetJavaGenerateEqualsAndHash() bool {
+	if m != nil && m.JavaGenerateEqualsAndHash != nil {
+		return *m.JavaGenerateEqualsAndHash
+	}
+	return false
+}
+
+func (m *FileOptions) GetJavaStringCheckUtf8() bool {
+	if m != nil && m.JavaStringCheckUtf8 != nil {
+		return *m.JavaStringCheckUtf8
+	}
+	return Default_FileOptions_JavaStringCheckUtf8
+}
+
+func (m *FileOptions) GetOptimizeFor() FileOptions_OptimizeMode {
+	if m != nil && m.OptimizeFor != nil {
+		return *m.OptimizeFor
+	}
+	return Default_FileOptions_OptimizeFor
+}
+
+func (m *FileOptions) GetGoPackage() string {
+	if m != nil && m.GoPackage != nil {
+		return *m.GoPackage
+	}
+	return ""
+}
+
+func (m *FileOptions) GetCcGenericServices() bool {
+	if m != nil && m.CcGenericServices != nil {
+		return *m.CcGenericServices
+	}
+	return Default_FileOptions_CcGenericServices
+}
+
+func (m *FileOptions) GetJavaGenericServices() bool {
+	if m != nil && m.JavaGenericServices != nil {
+		return *m.JavaGenericServices
+	}
+	return Default_FileOptions_JavaGenericServices
+}
+
+func (m *FileOptions) GetPyGenericServices() bool {
+	if m != nil && m.PyGenericServices != nil {
+		return *m.PyGenericServices
+	}
+	return Default_FileOptions_PyGenericServices
+}
+
+func (m *FileOptions) GetPhpGenericServices() bool {
+	if m != nil && m.PhpGenericServices != nil {
+		return *m.PhpGenericServices
+	}
+	return Default_FileOptions_PhpGenericServices
+}
+
+func (m *FileOptions) GetDeprecated() bool {
+	if m != nil && m.Deprecated != nil {
+		return *m.Deprecated
+	}
+	return Default_FileOptions_Deprecated
+}
+
+func (m *FileOptions) GetCcEnableArenas() bool {
+	if m != nil && m.CcEnableArenas != nil {
+		return *m.CcEnableArenas
+	}
+	return Default_FileOptions_CcEnableArenas
+}
+
+func (m *FileOptions) GetObjcClassPrefix() string {
+	if m != nil && m.ObjcClassPrefix != nil {
+		return *m.ObjcClassPrefix
+	}
+	return ""
+}
+
+func (m *FileOptions) GetCsharpNamespace() string {
+	if m != nil && m.CsharpNamespace != nil {
+		return *m.CsharpNamespace
+	}
+	return ""
+}
+
+func (m *FileOptions) GetSwiftPrefix() string {
+	if m != nil && m.SwiftPrefix != nil {
+		return *m.SwiftPrefix
+	}
+	return ""
+}
+
+func (m *FileOptions) GetPhpClassPrefix() string {
+	if m != nil && m.PhpClassPrefix != nil {
+		return *m.PhpClassPrefix
+	}
+	return ""
+}
+
+func (m *FileOptions) GetPhpNamespace() string {
+	if m != nil && m.PhpNamespace != nil {
+		return *m.PhpNamespace
+	}
+	return ""
+}
+
+func (m *FileOptions) GetPhpMetadataNamespace() string {
+	if m != nil && m.PhpMetadataNamespace != nil {
+		return *m.PhpMetadataNamespace
+	}
+	return ""
+}
+
+func (m *FileOptions) GetRubyPackage() string {
+	if m != nil && m.RubyPackage != nil {
+		return *m.RubyPackage
+	}
+	return ""
+}
+
+func (m *FileOptions) GetUninterpretedOption() []*UninterpretedOption {
+	if m != nil {
+		return m.UninterpretedOption
+	}
+	return nil
+}
+
+type MessageOptions struct {
+	// Set true to use the old proto1 MessageSet wire format for extensions.
+	// This is provided for backwards-compatibility with the MessageSet wire
+	// format.  You should not use this for any other reason:  It's less
+	// efficient, has fewer features, and is more complicated.
+	//
+	// The message must be defined exactly as follows:
+	//   message Foo {
+	//     option message_set_wire_format = true;
+	//     extensions 4 to max;
+	//   }
+	// Note that the message cannot have any defined fields; MessageSets only
+	// have extensions.
+	//
+	// All extensions of your type must be singular messages; e.g. they cannot
+	// be int32s, enums, or repeated messages.
+	//
+	// Because this is an option, the above two restrictions are not enforced by
+	// the protocol compiler.
+	MessageSetWireFormat *bool `protobuf:"varint,1,opt,name=message_set_wire_format,json=messageSetWireFormat,def=0" json:"message_set_wire_format,omitempty"`
+	// Disables the generation of the standard "descriptor()" accessor, which can
+	// conflict with a field of the same name.  This is meant to make migration
+	// from proto1 easier; new code should avoid fields named "descriptor".
+	NoStandardDescriptorAccessor *bool `protobuf:"varint,2,opt,name=no_standard_descriptor_accessor,json=noStandardDescriptorAccessor,def=0" json:"no_standard_descriptor_accessor,omitempty"`
+	// Is this message deprecated?
+	// Depending on the target platform, this can emit Deprecated annotations
+	// for the message, or it will be completely ignored; in the very least,
+	// this is a formalization for deprecating messages.
+	Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
+	// Whether the message is an automatically generated map entry type for the
+	// maps field.
+	//
+	// For maps fields:
+	//     map<KeyType, ValueType> map_field = 1;
+	// The parsed descriptor looks like:
+	//     message MapFieldEntry {
+	//         option map_entry = true;
+	//         optional KeyType key = 1;
+	//         optional ValueType value = 2;
+	//     }
+	//     repeated MapFieldEntry map_field = 1;
+	//
+	// Implementations may choose not to generate the map_entry=true message, but
+	// use a native map in the target language to hold the keys and values.
+	// The reflection APIs in such implementions still need to work as
+	// if the field is a repeated message field.
+	//
+	// NOTE: Do not set the option in .proto files. Always use the maps syntax
+	// instead. The option should only be implicitly set by the proto compiler
+	// parser.
+	MapEntry *bool `protobuf:"varint,7,opt,name=map_entry,json=mapEntry" json:"map_entry,omitempty"`
+	// The parser stores options it doesn't recognize here. See above.
+	UninterpretedOption          []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
+	XXX_NoUnkeyedLiteral         struct{}               `json:"-"`
+	proto.XXX_InternalExtensions `json:"-"`
+	XXX_unrecognized             []byte `json:"-"`
+	XXX_sizecache                int32  `json:"-"`
+}
+
+type xxx_MessageOptions struct{ m *MessageOptions }
+
+func (m *MessageOptions) ProtoReflect() protoreflect.Message {
+	return xxx_MessageOptions{m}
+}
+func (m xxx_MessageOptions) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[11].Type
+}
+func (m xxx_MessageOptions) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[11].KnownFieldsOf(m.m)
+}
+func (m xxx_MessageOptions) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[11].UnknownFieldsOf(m.m)
+}
+func (m xxx_MessageOptions) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_MessageOptions) ProtoMutable() {}
+
+func (m *MessageOptions) Reset()         { *m = MessageOptions{} }
+func (m *MessageOptions) String() string { return "not implemented" }
+func (*MessageOptions) ProtoMessage()    {}
+func (*MessageOptions) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{11}
+}
+
+var extRange_MessageOptions = []proto.ExtensionRange{
+	{Start: 1000, End: 536870911},
+}
+
+func (*MessageOptions) ExtensionRangeArray() []proto.ExtensionRange {
+	return extRange_MessageOptions
+}
+
+const Default_MessageOptions_MessageSetWireFormat bool = false
+const Default_MessageOptions_NoStandardDescriptorAccessor bool = false
+const Default_MessageOptions_Deprecated bool = false
+
+func (m *MessageOptions) GetMessageSetWireFormat() bool {
+	if m != nil && m.MessageSetWireFormat != nil {
+		return *m.MessageSetWireFormat
+	}
+	return Default_MessageOptions_MessageSetWireFormat
+}
+
+func (m *MessageOptions) GetNoStandardDescriptorAccessor() bool {
+	if m != nil && m.NoStandardDescriptorAccessor != nil {
+		return *m.NoStandardDescriptorAccessor
+	}
+	return Default_MessageOptions_NoStandardDescriptorAccessor
+}
+
+func (m *MessageOptions) GetDeprecated() bool {
+	if m != nil && m.Deprecated != nil {
+		return *m.Deprecated
+	}
+	return Default_MessageOptions_Deprecated
+}
+
+func (m *MessageOptions) GetMapEntry() bool {
+	if m != nil && m.MapEntry != nil {
+		return *m.MapEntry
+	}
+	return false
+}
+
+func (m *MessageOptions) GetUninterpretedOption() []*UninterpretedOption {
+	if m != nil {
+		return m.UninterpretedOption
+	}
+	return nil
+}
+
+type FieldOptions struct {
+	// The ctype option instructs the C++ code generator to use a different
+	// representation of the field than it normally would.  See the specific
+	// options below.  This option is not yet implemented in the open source
+	// release -- sorry, we'll try to include it in a future version!
+	Ctype *FieldOptions_CType `protobuf:"varint,1,opt,name=ctype,enum=google.protobuf.FieldOptions_CType,def=0" json:"ctype,omitempty"`
+	// The packed option can be enabled for repeated primitive fields to enable
+	// a more efficient representation on the wire. Rather than repeatedly
+	// writing the tag and type for each element, the entire array is encoded as
+	// a single length-delimited blob. In proto3, only explicit setting it to
+	// false will avoid using packed encoding.
+	Packed *bool `protobuf:"varint,2,opt,name=packed" json:"packed,omitempty"`
+	// The jstype option determines the JavaScript type used for values of the
+	// field.  The option is permitted only for 64 bit integral and fixed types
+	// (int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
+	// is represented as JavaScript string, which avoids loss of precision that
+	// can happen when a large value is converted to a floating point JavaScript.
+	// Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
+	// use the JavaScript "number" type.  The behavior of the default option
+	// JS_NORMAL is implementation dependent.
+	//
+	// This option is an enum to permit additional types to be added, e.g.
+	// goog.math.Integer.
+	Jstype *FieldOptions_JSType `protobuf:"varint,6,opt,name=jstype,enum=google.protobuf.FieldOptions_JSType,def=0" json:"jstype,omitempty"`
+	// Should this field be parsed lazily?  Lazy applies only to message-type
+	// fields.  It means that when the outer message is initially parsed, the
+	// inner message's contents will not be parsed but instead stored in encoded
+	// form.  The inner message will actually be parsed when it is first accessed.
+	//
+	// This is only a hint.  Implementations are free to choose whether to use
+	// eager or lazy parsing regardless of the value of this option.  However,
+	// setting this option true suggests that the protocol author believes that
+	// using lazy parsing on this field is worth the additional bookkeeping
+	// overhead typically needed to implement it.
+	//
+	// This option does not affect the public interface of any generated code;
+	// all method signatures remain the same.  Furthermore, thread-safety of the
+	// interface is not affected by this option; const methods remain safe to
+	// call from multiple threads concurrently, while non-const methods continue
+	// to require exclusive access.
+	//
+	//
+	// Note that implementations may choose not to check required fields within
+	// a lazy sub-message.  That is, calling IsInitialized() on the outer message
+	// may return true even if the inner message has missing required fields.
+	// This is necessary because otherwise the inner message would have to be
+	// parsed in order to perform the check, defeating the purpose of lazy
+	// parsing.  An implementation which chooses not to check required fields
+	// must be consistent about it.  That is, for any particular sub-message, the
+	// implementation must either *always* check its required fields, or *never*
+	// check its required fields, regardless of whether or not the message has
+	// been parsed.
+	Lazy *bool `protobuf:"varint,5,opt,name=lazy,def=0" json:"lazy,omitempty"`
+	// Is this field deprecated?
+	// Depending on the target platform, this can emit Deprecated annotations
+	// for accessors, or it will be completely ignored; in the very least, this
+	// is a formalization for deprecating fields.
+	Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
+	// For Google-internal migration only. Do not use.
+	Weak *bool `protobuf:"varint,10,opt,name=weak,def=0" json:"weak,omitempty"`
+	// The parser stores options it doesn't recognize here. See above.
+	UninterpretedOption          []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
+	XXX_NoUnkeyedLiteral         struct{}               `json:"-"`
+	proto.XXX_InternalExtensions `json:"-"`
+	XXX_unrecognized             []byte `json:"-"`
+	XXX_sizecache                int32  `json:"-"`
+}
+
+type xxx_FieldOptions struct{ m *FieldOptions }
+
+func (m *FieldOptions) ProtoReflect() protoreflect.Message {
+	return xxx_FieldOptions{m}
+}
+func (m xxx_FieldOptions) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[12].Type
+}
+func (m xxx_FieldOptions) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[12].KnownFieldsOf(m.m)
+}
+func (m xxx_FieldOptions) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[12].UnknownFieldsOf(m.m)
+}
+func (m xxx_FieldOptions) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_FieldOptions) ProtoMutable() {}
+
+func (m *FieldOptions) Reset()         { *m = FieldOptions{} }
+func (m *FieldOptions) String() string { return "not implemented" }
+func (*FieldOptions) ProtoMessage()    {}
+func (*FieldOptions) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{12}
+}
+
+var extRange_FieldOptions = []proto.ExtensionRange{
+	{Start: 1000, End: 536870911},
+}
+
+func (*FieldOptions) ExtensionRangeArray() []proto.ExtensionRange {
+	return extRange_FieldOptions
+}
+
+const Default_FieldOptions_Ctype FieldOptions_CType = FieldOptions_STRING
+const Default_FieldOptions_Jstype FieldOptions_JSType = FieldOptions_JS_NORMAL
+const Default_FieldOptions_Lazy bool = false
+const Default_FieldOptions_Deprecated bool = false
+const Default_FieldOptions_Weak bool = false
+
+func (m *FieldOptions) GetCtype() FieldOptions_CType {
+	if m != nil && m.Ctype != nil {
+		return *m.Ctype
+	}
+	return Default_FieldOptions_Ctype
+}
+
+func (m *FieldOptions) GetPacked() bool {
+	if m != nil && m.Packed != nil {
+		return *m.Packed
+	}
+	return false
+}
+
+func (m *FieldOptions) GetJstype() FieldOptions_JSType {
+	if m != nil && m.Jstype != nil {
+		return *m.Jstype
+	}
+	return Default_FieldOptions_Jstype
+}
+
+func (m *FieldOptions) GetLazy() bool {
+	if m != nil && m.Lazy != nil {
+		return *m.Lazy
+	}
+	return Default_FieldOptions_Lazy
+}
+
+func (m *FieldOptions) GetDeprecated() bool {
+	if m != nil && m.Deprecated != nil {
+		return *m.Deprecated
+	}
+	return Default_FieldOptions_Deprecated
+}
+
+func (m *FieldOptions) GetWeak() bool {
+	if m != nil && m.Weak != nil {
+		return *m.Weak
+	}
+	return Default_FieldOptions_Weak
+}
+
+func (m *FieldOptions) GetUninterpretedOption() []*UninterpretedOption {
+	if m != nil {
+		return m.UninterpretedOption
+	}
+	return nil
+}
+
+type OneofOptions struct {
+	// The parser stores options it doesn't recognize here. See above.
+	UninterpretedOption          []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
+	XXX_NoUnkeyedLiteral         struct{}               `json:"-"`
+	proto.XXX_InternalExtensions `json:"-"`
+	XXX_unrecognized             []byte `json:"-"`
+	XXX_sizecache                int32  `json:"-"`
+}
+
+type xxx_OneofOptions struct{ m *OneofOptions }
+
+func (m *OneofOptions) ProtoReflect() protoreflect.Message {
+	return xxx_OneofOptions{m}
+}
+func (m xxx_OneofOptions) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[13].Type
+}
+func (m xxx_OneofOptions) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[13].KnownFieldsOf(m.m)
+}
+func (m xxx_OneofOptions) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[13].UnknownFieldsOf(m.m)
+}
+func (m xxx_OneofOptions) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_OneofOptions) ProtoMutable() {}
+
+func (m *OneofOptions) Reset()         { *m = OneofOptions{} }
+func (m *OneofOptions) String() string { return "not implemented" }
+func (*OneofOptions) ProtoMessage()    {}
+func (*OneofOptions) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{13}
+}
+
+var extRange_OneofOptions = []proto.ExtensionRange{
+	{Start: 1000, End: 536870911},
+}
+
+func (*OneofOptions) ExtensionRangeArray() []proto.ExtensionRange {
+	return extRange_OneofOptions
+}
+
+func (m *OneofOptions) GetUninterpretedOption() []*UninterpretedOption {
+	if m != nil {
+		return m.UninterpretedOption
+	}
+	return nil
+}
+
+type EnumOptions struct {
+	// Set this option to true to allow mapping different tag names to the same
+	// value.
+	AllowAlias *bool `protobuf:"varint,2,opt,name=allow_alias,json=allowAlias" json:"allow_alias,omitempty"`
+	// Is this enum deprecated?
+	// Depending on the target platform, this can emit Deprecated annotations
+	// for the enum, or it will be completely ignored; in the very least, this
+	// is a formalization for deprecating enums.
+	Deprecated *bool `protobuf:"varint,3,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
+	// The parser stores options it doesn't recognize here. See above.
+	UninterpretedOption          []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
+	XXX_NoUnkeyedLiteral         struct{}               `json:"-"`
+	proto.XXX_InternalExtensions `json:"-"`
+	XXX_unrecognized             []byte `json:"-"`
+	XXX_sizecache                int32  `json:"-"`
+}
+
+type xxx_EnumOptions struct{ m *EnumOptions }
+
+func (m *EnumOptions) ProtoReflect() protoreflect.Message {
+	return xxx_EnumOptions{m}
+}
+func (m xxx_EnumOptions) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[14].Type
+}
+func (m xxx_EnumOptions) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[14].KnownFieldsOf(m.m)
+}
+func (m xxx_EnumOptions) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[14].UnknownFieldsOf(m.m)
+}
+func (m xxx_EnumOptions) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_EnumOptions) ProtoMutable() {}
+
+func (m *EnumOptions) Reset()         { *m = EnumOptions{} }
+func (m *EnumOptions) String() string { return "not implemented" }
+func (*EnumOptions) ProtoMessage()    {}
+func (*EnumOptions) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{14}
+}
+
+var extRange_EnumOptions = []proto.ExtensionRange{
+	{Start: 1000, End: 536870911},
+}
+
+func (*EnumOptions) ExtensionRangeArray() []proto.ExtensionRange {
+	return extRange_EnumOptions
+}
+
+const Default_EnumOptions_Deprecated bool = false
+
+func (m *EnumOptions) GetAllowAlias() bool {
+	if m != nil && m.AllowAlias != nil {
+		return *m.AllowAlias
+	}
+	return false
+}
+
+func (m *EnumOptions) GetDeprecated() bool {
+	if m != nil && m.Deprecated != nil {
+		return *m.Deprecated
+	}
+	return Default_EnumOptions_Deprecated
+}
+
+func (m *EnumOptions) GetUninterpretedOption() []*UninterpretedOption {
+	if m != nil {
+		return m.UninterpretedOption
+	}
+	return nil
+}
+
+type EnumValueOptions struct {
+	// Is this enum value deprecated?
+	// Depending on the target platform, this can emit Deprecated annotations
+	// for the enum value, or it will be completely ignored; in the very least,
+	// this is a formalization for deprecating enum values.
+	Deprecated *bool `protobuf:"varint,1,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
+	// The parser stores options it doesn't recognize here. See above.
+	UninterpretedOption          []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
+	XXX_NoUnkeyedLiteral         struct{}               `json:"-"`
+	proto.XXX_InternalExtensions `json:"-"`
+	XXX_unrecognized             []byte `json:"-"`
+	XXX_sizecache                int32  `json:"-"`
+}
+
+type xxx_EnumValueOptions struct{ m *EnumValueOptions }
+
+func (m *EnumValueOptions) ProtoReflect() protoreflect.Message {
+	return xxx_EnumValueOptions{m}
+}
+func (m xxx_EnumValueOptions) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[15].Type
+}
+func (m xxx_EnumValueOptions) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[15].KnownFieldsOf(m.m)
+}
+func (m xxx_EnumValueOptions) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[15].UnknownFieldsOf(m.m)
+}
+func (m xxx_EnumValueOptions) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_EnumValueOptions) ProtoMutable() {}
+
+func (m *EnumValueOptions) Reset()         { *m = EnumValueOptions{} }
+func (m *EnumValueOptions) String() string { return "not implemented" }
+func (*EnumValueOptions) ProtoMessage()    {}
+func (*EnumValueOptions) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{15}
+}
+
+var extRange_EnumValueOptions = []proto.ExtensionRange{
+	{Start: 1000, End: 536870911},
+}
+
+func (*EnumValueOptions) ExtensionRangeArray() []proto.ExtensionRange {
+	return extRange_EnumValueOptions
+}
+
+const Default_EnumValueOptions_Deprecated bool = false
+
+func (m *EnumValueOptions) GetDeprecated() bool {
+	if m != nil && m.Deprecated != nil {
+		return *m.Deprecated
+	}
+	return Default_EnumValueOptions_Deprecated
+}
+
+func (m *EnumValueOptions) GetUninterpretedOption() []*UninterpretedOption {
+	if m != nil {
+		return m.UninterpretedOption
+	}
+	return nil
+}
+
+type ServiceOptions struct {
+	// Is this service deprecated?
+	// Depending on the target platform, this can emit Deprecated annotations
+	// for the service, or it will be completely ignored; in the very least,
+	// this is a formalization for deprecating services.
+	Deprecated *bool `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
+	// The parser stores options it doesn't recognize here. See above.
+	UninterpretedOption          []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
+	XXX_NoUnkeyedLiteral         struct{}               `json:"-"`
+	proto.XXX_InternalExtensions `json:"-"`
+	XXX_unrecognized             []byte `json:"-"`
+	XXX_sizecache                int32  `json:"-"`
+}
+
+type xxx_ServiceOptions struct{ m *ServiceOptions }
+
+func (m *ServiceOptions) ProtoReflect() protoreflect.Message {
+	return xxx_ServiceOptions{m}
+}
+func (m xxx_ServiceOptions) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[16].Type
+}
+func (m xxx_ServiceOptions) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[16].KnownFieldsOf(m.m)
+}
+func (m xxx_ServiceOptions) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[16].UnknownFieldsOf(m.m)
+}
+func (m xxx_ServiceOptions) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_ServiceOptions) ProtoMutable() {}
+
+func (m *ServiceOptions) Reset()         { *m = ServiceOptions{} }
+func (m *ServiceOptions) String() string { return "not implemented" }
+func (*ServiceOptions) ProtoMessage()    {}
+func (*ServiceOptions) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{16}
+}
+
+var extRange_ServiceOptions = []proto.ExtensionRange{
+	{Start: 1000, End: 536870911},
+}
+
+func (*ServiceOptions) ExtensionRangeArray() []proto.ExtensionRange {
+	return extRange_ServiceOptions
+}
+
+const Default_ServiceOptions_Deprecated bool = false
+
+func (m *ServiceOptions) GetDeprecated() bool {
+	if m != nil && m.Deprecated != nil {
+		return *m.Deprecated
+	}
+	return Default_ServiceOptions_Deprecated
+}
+
+func (m *ServiceOptions) GetUninterpretedOption() []*UninterpretedOption {
+	if m != nil {
+		return m.UninterpretedOption
+	}
+	return nil
+}
+
+type MethodOptions struct {
+	// Is this method deprecated?
+	// Depending on the target platform, this can emit Deprecated annotations
+	// for the method, or it will be completely ignored; in the very least,
+	// this is a formalization for deprecating methods.
+	Deprecated       *bool                           `protobuf:"varint,33,opt,name=deprecated,def=0" json:"deprecated,omitempty"`
+	IdempotencyLevel *MethodOptions_IdempotencyLevel `protobuf:"varint,34,opt,name=idempotency_level,json=idempotencyLevel,enum=google.protobuf.MethodOptions_IdempotencyLevel,def=0" json:"idempotency_level,omitempty"`
+	// The parser stores options it doesn't recognize here. See above.
+	UninterpretedOption          []*UninterpretedOption `protobuf:"bytes,999,rep,name=uninterpreted_option,json=uninterpretedOption" json:"uninterpreted_option,omitempty"`
+	XXX_NoUnkeyedLiteral         struct{}               `json:"-"`
+	proto.XXX_InternalExtensions `json:"-"`
+	XXX_unrecognized             []byte `json:"-"`
+	XXX_sizecache                int32  `json:"-"`
+}
+
+type xxx_MethodOptions struct{ m *MethodOptions }
+
+func (m *MethodOptions) ProtoReflect() protoreflect.Message {
+	return xxx_MethodOptions{m}
+}
+func (m xxx_MethodOptions) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[17].Type
+}
+func (m xxx_MethodOptions) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[17].KnownFieldsOf(m.m)
+}
+func (m xxx_MethodOptions) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[17].UnknownFieldsOf(m.m)
+}
+func (m xxx_MethodOptions) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_MethodOptions) ProtoMutable() {}
+
+func (m *MethodOptions) Reset()         { *m = MethodOptions{} }
+func (m *MethodOptions) String() string { return "not implemented" }
+func (*MethodOptions) ProtoMessage()    {}
+func (*MethodOptions) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{17}
+}
+
+var extRange_MethodOptions = []proto.ExtensionRange{
+	{Start: 1000, End: 536870911},
+}
+
+func (*MethodOptions) ExtensionRangeArray() []proto.ExtensionRange {
+	return extRange_MethodOptions
+}
+
+const Default_MethodOptions_Deprecated bool = false
+const Default_MethodOptions_IdempotencyLevel MethodOptions_IdempotencyLevel = MethodOptions_IDEMPOTENCY_UNKNOWN
+
+func (m *MethodOptions) GetDeprecated() bool {
+	if m != nil && m.Deprecated != nil {
+		return *m.Deprecated
+	}
+	return Default_MethodOptions_Deprecated
+}
+
+func (m *MethodOptions) GetIdempotencyLevel() MethodOptions_IdempotencyLevel {
+	if m != nil && m.IdempotencyLevel != nil {
+		return *m.IdempotencyLevel
+	}
+	return Default_MethodOptions_IdempotencyLevel
+}
+
+func (m *MethodOptions) GetUninterpretedOption() []*UninterpretedOption {
+	if m != nil {
+		return m.UninterpretedOption
+	}
+	return nil
+}
+
+// A message representing a option the parser does not recognize. This only
+// appears in options protos created by the compiler::Parser class.
+// DescriptorPool resolves these when building Descriptor objects. Therefore,
+// options protos in descriptor objects (e.g. returned by Descriptor::options(),
+// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
+// in them.
+type UninterpretedOption struct {
+	Name []*UninterpretedOption_NamePart `protobuf:"bytes,2,rep,name=name" json:"name,omitempty"`
+	// The value of the uninterpreted option, in whatever type the tokenizer
+	// identified it as during parsing. Exactly one of these should be set.
+	IdentifierValue      *string  `protobuf:"bytes,3,opt,name=identifier_value,json=identifierValue" json:"identifier_value,omitempty"`
+	PositiveIntValue     *uint64  `protobuf:"varint,4,opt,name=positive_int_value,json=positiveIntValue" json:"positive_int_value,omitempty"`
+	NegativeIntValue     *int64   `protobuf:"varint,5,opt,name=negative_int_value,json=negativeIntValue" json:"negative_int_value,omitempty"`
+	DoubleValue          *float64 `protobuf:"fixed64,6,opt,name=double_value,json=doubleValue" json:"double_value,omitempty"`
+	StringValue          []byte   `protobuf:"bytes,7,opt,name=string_value,json=stringValue" json:"string_value,omitempty"`
+	AggregateValue       *string  `protobuf:"bytes,8,opt,name=aggregate_value,json=aggregateValue" json:"aggregate_value,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+type xxx_UninterpretedOption struct{ m *UninterpretedOption }
+
+func (m *UninterpretedOption) ProtoReflect() protoreflect.Message {
+	return xxx_UninterpretedOption{m}
+}
+func (m xxx_UninterpretedOption) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[18].Type
+}
+func (m xxx_UninterpretedOption) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[18].KnownFieldsOf(m.m)
+}
+func (m xxx_UninterpretedOption) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[18].UnknownFieldsOf(m.m)
+}
+func (m xxx_UninterpretedOption) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_UninterpretedOption) ProtoMutable() {}
+
+func (m *UninterpretedOption) Reset()         { *m = UninterpretedOption{} }
+func (m *UninterpretedOption) String() string { return "not implemented" }
+func (*UninterpretedOption) ProtoMessage()    {}
+func (*UninterpretedOption) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{18}
+}
+
+func (m *UninterpretedOption) GetName() []*UninterpretedOption_NamePart {
+	if m != nil {
+		return m.Name
+	}
+	return nil
+}
+
+func (m *UninterpretedOption) GetIdentifierValue() string {
+	if m != nil && m.IdentifierValue != nil {
+		return *m.IdentifierValue
+	}
+	return ""
+}
+
+func (m *UninterpretedOption) GetPositiveIntValue() uint64 {
+	if m != nil && m.PositiveIntValue != nil {
+		return *m.PositiveIntValue
+	}
+	return 0
+}
+
+func (m *UninterpretedOption) GetNegativeIntValue() int64 {
+	if m != nil && m.NegativeIntValue != nil {
+		return *m.NegativeIntValue
+	}
+	return 0
+}
+
+func (m *UninterpretedOption) GetDoubleValue() float64 {
+	if m != nil && m.DoubleValue != nil {
+		return *m.DoubleValue
+	}
+	return 0
+}
+
+func (m *UninterpretedOption) GetStringValue() []byte {
+	if m != nil {
+		return m.StringValue
+	}
+	return nil
+}
+
+func (m *UninterpretedOption) GetAggregateValue() string {
+	if m != nil && m.AggregateValue != nil {
+		return *m.AggregateValue
+	}
+	return ""
+}
+
+// The name of the uninterpreted option.  Each string represents a segment in
+// a dot-separated name.  is_extension is true iff a segment represents an
+// extension (denoted with parentheses in options specs in .proto files).
+// E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
+// "foo.(bar.baz).qux".
+type UninterpretedOption_NamePart struct {
+	NamePart             *string  `protobuf:"bytes,1,req,name=name_part,json=namePart" json:"name_part,omitempty"`
+	IsExtension          *bool    `protobuf:"varint,2,req,name=is_extension,json=isExtension" json:"is_extension,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+type xxx_UninterpretedOption_NamePart struct{ m *UninterpretedOption_NamePart }
+
+func (m *UninterpretedOption_NamePart) ProtoReflect() protoreflect.Message {
+	return xxx_UninterpretedOption_NamePart{m}
+}
+func (m xxx_UninterpretedOption_NamePart) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[24].Type
+}
+func (m xxx_UninterpretedOption_NamePart) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[24].KnownFieldsOf(m.m)
+}
+func (m xxx_UninterpretedOption_NamePart) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[24].UnknownFieldsOf(m.m)
+}
+func (m xxx_UninterpretedOption_NamePart) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_UninterpretedOption_NamePart) ProtoMutable() {}
+
+func (m *UninterpretedOption_NamePart) Reset()         { *m = UninterpretedOption_NamePart{} }
+func (m *UninterpretedOption_NamePart) String() string { return "not implemented" }
+func (*UninterpretedOption_NamePart) ProtoMessage()    {}
+func (*UninterpretedOption_NamePart) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{18, 0}
+}
+
+func (m *UninterpretedOption_NamePart) GetNamePart() string {
+	if m != nil && m.NamePart != nil {
+		return *m.NamePart
+	}
+	return ""
+}
+
+func (m *UninterpretedOption_NamePart) GetIsExtension() bool {
+	if m != nil && m.IsExtension != nil {
+		return *m.IsExtension
+	}
+	return false
+}
+
+// Encapsulates information about the original source file from which a
+// FileDescriptorProto was generated.
+type SourceCodeInfo struct {
+	// A Location identifies a piece of source code in a .proto file which
+	// corresponds to a particular definition.  This information is intended
+	// to be useful to IDEs, code indexers, documentation generators, and similar
+	// tools.
+	//
+	// For example, say we have a file like:
+	//   message Foo {
+	//     optional string foo = 1;
+	//   }
+	// Let's look at just the field definition:
+	//   optional string foo = 1;
+	//   ^       ^^     ^^  ^  ^^^
+	//   a       bc     de  f  ghi
+	// We have the following locations:
+	//   span   path               represents
+	//   [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
+	//   [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
+	//   [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
+	//   [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
+	//   [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
+	//
+	// Notes:
+	// - A location may refer to a repeated field itself (i.e. not to any
+	//   particular index within it).  This is used whenever a set of elements are
+	//   logically enclosed in a single code segment.  For example, an entire
+	//   extend block (possibly containing multiple extension definitions) will
+	//   have an outer location whose path refers to the "extensions" repeated
+	//   field without an index.
+	// - Multiple locations may have the same path.  This happens when a single
+	//   logical declaration is spread out across multiple places.  The most
+	//   obvious example is the "extend" block again -- there may be multiple
+	//   extend blocks in the same scope, each of which will have the same path.
+	// - A location's span is not always a subset of its parent's span.  For
+	//   example, the "extendee" of an extension declaration appears at the
+	//   beginning of the "extend" block and is shared by all extensions within
+	//   the block.
+	// - Just because a location's span is a subset of some other location's span
+	//   does not mean that it is a descendent.  For example, a "group" defines
+	//   both a type and a field in a single declaration.  Thus, the locations
+	//   corresponding to the type and field and their components will overlap.
+	// - Code which tries to interpret locations should probably be designed to
+	//   ignore those that it doesn't understand, as more types of locations could
+	//   be recorded in the future.
+	Location             []*SourceCodeInfo_Location `protobuf:"bytes,1,rep,name=location" json:"location,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}                   `json:"-"`
+	XXX_unrecognized     []byte                     `json:"-"`
+	XXX_sizecache        int32                      `json:"-"`
+}
+
+type xxx_SourceCodeInfo struct{ m *SourceCodeInfo }
+
+func (m *SourceCodeInfo) ProtoReflect() protoreflect.Message {
+	return xxx_SourceCodeInfo{m}
+}
+func (m xxx_SourceCodeInfo) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[19].Type
+}
+func (m xxx_SourceCodeInfo) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[19].KnownFieldsOf(m.m)
+}
+func (m xxx_SourceCodeInfo) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[19].UnknownFieldsOf(m.m)
+}
+func (m xxx_SourceCodeInfo) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_SourceCodeInfo) ProtoMutable() {}
+
+func (m *SourceCodeInfo) Reset()         { *m = SourceCodeInfo{} }
+func (m *SourceCodeInfo) String() string { return "not implemented" }
+func (*SourceCodeInfo) ProtoMessage()    {}
+func (*SourceCodeInfo) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{19}
+}
+
+func (m *SourceCodeInfo) GetLocation() []*SourceCodeInfo_Location {
+	if m != nil {
+		return m.Location
+	}
+	return nil
+}
+
+type SourceCodeInfo_Location struct {
+	// Identifies which part of the FileDescriptorProto was defined at this
+	// location.
+	//
+	// Each element is a field number or an index.  They form a path from
+	// the root FileDescriptorProto to the place where the definition.  For
+	// example, this path:
+	//   [ 4, 3, 2, 7, 1 ]
+	// refers to:
+	//   file.message_type(3)  // 4, 3
+	//       .field(7)         // 2, 7
+	//       .name()           // 1
+	// This is because FileDescriptorProto.message_type has field number 4:
+	//   repeated DescriptorProto message_type = 4;
+	// and DescriptorProto.field has field number 2:
+	//   repeated FieldDescriptorProto field = 2;
+	// and FieldDescriptorProto.name has field number 1:
+	//   optional string name = 1;
+	//
+	// Thus, the above path gives the location of a field name.  If we removed
+	// the last element:
+	//   [ 4, 3, 2, 7 ]
+	// this path refers to the whole field declaration (from the beginning
+	// of the label to the terminating semicolon).
+	Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"`
+	// Always has exactly three or four elements: start line, start column,
+	// end line (optional, otherwise assumed same as start line), end column.
+	// These are packed into a single field for efficiency.  Note that line
+	// and column numbers are zero-based -- typically you will want to add
+	// 1 to each before displaying to a user.
+	Span []int32 `protobuf:"varint,2,rep,packed,name=span" json:"span,omitempty"`
+	// If this SourceCodeInfo represents a complete declaration, these are any
+	// comments appearing before and after the declaration which appear to be
+	// attached to the declaration.
+	//
+	// A series of line comments appearing on consecutive lines, with no other
+	// tokens appearing on those lines, will be treated as a single comment.
+	//
+	// leading_detached_comments will keep paragraphs of comments that appear
+	// before (but not connected to) the current element. Each paragraph,
+	// separated by empty lines, will be one comment element in the repeated
+	// field.
+	//
+	// Only the comment content is provided; comment markers (e.g. //) are
+	// stripped out.  For block comments, leading whitespace and an asterisk
+	// will be stripped from the beginning of each line other than the first.
+	// Newlines are included in the output.
+	//
+	// Examples:
+	//
+	//   optional int32 foo = 1;  // Comment attached to foo.
+	//   // Comment attached to bar.
+	//   optional int32 bar = 2;
+	//
+	//   optional string baz = 3;
+	//   // Comment attached to baz.
+	//   // Another line attached to baz.
+	//
+	//   // Comment attached to qux.
+	//   //
+	//   // Another line attached to qux.
+	//   optional double qux = 4;
+	//
+	//   // Detached comment for corge. This is not leading or trailing comments
+	//   // to qux or corge because there are blank lines separating it from
+	//   // both.
+	//
+	//   // Detached comment for corge paragraph 2.
+	//
+	//   optional string corge = 5;
+	//   /* Block comment attached
+	//    * to corge.  Leading asterisks
+	//    * will be removed. */
+	//   /* Block comment attached to
+	//    * grault. */
+	//   optional int32 grault = 6;
+	//
+	//   // ignored detached comments.
+	LeadingComments         *string  `protobuf:"bytes,3,opt,name=leading_comments,json=leadingComments" json:"leading_comments,omitempty"`
+	TrailingComments        *string  `protobuf:"bytes,4,opt,name=trailing_comments,json=trailingComments" json:"trailing_comments,omitempty"`
+	LeadingDetachedComments []string `protobuf:"bytes,6,rep,name=leading_detached_comments,json=leadingDetachedComments" json:"leading_detached_comments,omitempty"`
+	XXX_NoUnkeyedLiteral    struct{} `json:"-"`
+	XXX_unrecognized        []byte   `json:"-"`
+	XXX_sizecache           int32    `json:"-"`
+}
+
+type xxx_SourceCodeInfo_Location struct{ m *SourceCodeInfo_Location }
+
+func (m *SourceCodeInfo_Location) ProtoReflect() protoreflect.Message {
+	return xxx_SourceCodeInfo_Location{m}
+}
+func (m xxx_SourceCodeInfo_Location) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[25].Type
+}
+func (m xxx_SourceCodeInfo_Location) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[25].KnownFieldsOf(m.m)
+}
+func (m xxx_SourceCodeInfo_Location) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[25].UnknownFieldsOf(m.m)
+}
+func (m xxx_SourceCodeInfo_Location) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_SourceCodeInfo_Location) ProtoMutable() {}
+
+func (m *SourceCodeInfo_Location) Reset()         { *m = SourceCodeInfo_Location{} }
+func (m *SourceCodeInfo_Location) String() string { return "not implemented" }
+func (*SourceCodeInfo_Location) ProtoMessage()    {}
+func (*SourceCodeInfo_Location) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{19, 0}
+}
+
+func (m *SourceCodeInfo_Location) GetPath() []int32 {
+	if m != nil {
+		return m.Path
+	}
+	return nil
+}
+
+func (m *SourceCodeInfo_Location) GetSpan() []int32 {
+	if m != nil {
+		return m.Span
+	}
+	return nil
+}
+
+func (m *SourceCodeInfo_Location) GetLeadingComments() string {
+	if m != nil && m.LeadingComments != nil {
+		return *m.LeadingComments
+	}
+	return ""
+}
+
+func (m *SourceCodeInfo_Location) GetTrailingComments() string {
+	if m != nil && m.TrailingComments != nil {
+		return *m.TrailingComments
+	}
+	return ""
+}
+
+func (m *SourceCodeInfo_Location) GetLeadingDetachedComments() []string {
+	if m != nil {
+		return m.LeadingDetachedComments
+	}
+	return nil
+}
+
+// Describes the relationship between generated code and its original source
+// file. A GeneratedCodeInfo message is associated with only one generated
+// source file, but may contain references to different source .proto files.
+type GeneratedCodeInfo struct {
+	// An Annotation connects some span of text in generated code to an element
+	// of its generating .proto file.
+	Annotation           []*GeneratedCodeInfo_Annotation `protobuf:"bytes,1,rep,name=annotation" json:"annotation,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}                        `json:"-"`
+	XXX_unrecognized     []byte                          `json:"-"`
+	XXX_sizecache        int32                           `json:"-"`
+}
+
+type xxx_GeneratedCodeInfo struct{ m *GeneratedCodeInfo }
+
+func (m *GeneratedCodeInfo) ProtoReflect() protoreflect.Message {
+	return xxx_GeneratedCodeInfo{m}
+}
+func (m xxx_GeneratedCodeInfo) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[20].Type
+}
+func (m xxx_GeneratedCodeInfo) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[20].KnownFieldsOf(m.m)
+}
+func (m xxx_GeneratedCodeInfo) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[20].UnknownFieldsOf(m.m)
+}
+func (m xxx_GeneratedCodeInfo) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_GeneratedCodeInfo) ProtoMutable() {}
+
+func (m *GeneratedCodeInfo) Reset()         { *m = GeneratedCodeInfo{} }
+func (m *GeneratedCodeInfo) String() string { return "not implemented" }
+func (*GeneratedCodeInfo) ProtoMessage()    {}
+func (*GeneratedCodeInfo) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{20}
+}
+
+func (m *GeneratedCodeInfo) GetAnnotation() []*GeneratedCodeInfo_Annotation {
+	if m != nil {
+		return m.Annotation
+	}
+	return nil
+}
+
+type GeneratedCodeInfo_Annotation struct {
+	// Identifies the element in the original source .proto file. This field
+	// is formatted the same as SourceCodeInfo.Location.path.
+	Path []int32 `protobuf:"varint,1,rep,packed,name=path" json:"path,omitempty"`
+	// Identifies the filesystem path to the original source .proto.
+	SourceFile *string `protobuf:"bytes,2,opt,name=source_file,json=sourceFile" json:"source_file,omitempty"`
+	// Identifies the starting offset in bytes in the generated code
+	// that relates to the identified object.
+	Begin *int32 `protobuf:"varint,3,opt,name=begin" json:"begin,omitempty"`
+	// Identifies the ending offset in bytes in the generated code that
+	// relates to the identified offset. The end offset should be one past
+	// the last relevant byte (so the length of the text = end - begin).
+	End                  *int32   `protobuf:"varint,4,opt,name=end" json:"end,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+type xxx_GeneratedCodeInfo_Annotation struct{ m *GeneratedCodeInfo_Annotation }
+
+func (m *GeneratedCodeInfo_Annotation) ProtoReflect() protoreflect.Message {
+	return xxx_GeneratedCodeInfo_Annotation{m}
+}
+func (m xxx_GeneratedCodeInfo_Annotation) Type() protoreflect.MessageType {
+	return xxx_Descriptor_ProtoFile_MessageTypes[26].Type
+}
+func (m xxx_GeneratedCodeInfo_Annotation) KnownFields() protoreflect.KnownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[26].KnownFieldsOf(m.m)
+}
+func (m xxx_GeneratedCodeInfo_Annotation) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Descriptor_ProtoFile_MessageTypes[26].UnknownFieldsOf(m.m)
+}
+func (m xxx_GeneratedCodeInfo_Annotation) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_GeneratedCodeInfo_Annotation) ProtoMutable() {}
+
+func (m *GeneratedCodeInfo_Annotation) Reset()         { *m = GeneratedCodeInfo_Annotation{} }
+func (m *GeneratedCodeInfo_Annotation) String() string { return "not implemented" }
+func (*GeneratedCodeInfo_Annotation) ProtoMessage()    {}
+func (*GeneratedCodeInfo_Annotation) Descriptor() ([]byte, []int) {
+	return fileDescriptor_e5baabe45344a177, []int{20, 0}
+}
+
+func (m *GeneratedCodeInfo_Annotation) GetPath() []int32 {
+	if m != nil {
+		return m.Path
+	}
+	return nil
+}
+
+func (m *GeneratedCodeInfo_Annotation) GetSourceFile() string {
+	if m != nil && m.SourceFile != nil {
+		return *m.SourceFile
+	}
+	return ""
+}
+
+func (m *GeneratedCodeInfo_Annotation) GetBegin() int32 {
+	if m != nil && m.Begin != nil {
+		return *m.Begin
+	}
+	return 0
+}
+
+func (m *GeneratedCodeInfo_Annotation) GetEnd() int32 {
+	if m != nil && m.End != nil {
+		return *m.End
+	}
+	return 0
+}
+
+var fileDescriptor_e5baabe45344a177 = []byte{
+	// 2589 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xdd, 0x8e, 0xdb, 0xc6,
+	0x15, 0x0e, 0xf5, 0xb7, 0xd2, 0x91, 0x56, 0x3b, 0x3b, 0xbb, 0xb1, 0xe9, 0xcd, 0x8f, 0xd7, 0xca,
+	0x8f, 0xd7, 0x4e, 0xac, 0x0d, 0x1c, 0xdb, 0x71, 0xd6, 0x45, 0x5a, 0xad, 0x44, 0x6f, 0xe4, 0xee,
+	0x4a, 0x2a, 0xa5, 0x6d, 0x7e, 0x80, 0x82, 0x98, 0x25, 0x47, 0x12, 0x6d, 0x8a, 0x64, 0x48, 0xca,
+	0xf6, 0x06, 0xbd, 0x30, 0xd0, 0xab, 0x5e, 0x15, 0xe8, 0x55, 0x51, 0x14, 0xbd, 0xe8, 0x4d, 0x80,
+	0x3e, 0x40, 0x81, 0xde, 0xf5, 0x09, 0x0a, 0xe4, 0x0d, 0x8a, 0xb6, 0x40, 0xfb, 0x08, 0xbd, 0x2c,
+	0x66, 0x86, 0xa4, 0x48, 0x49, 0x1b, 0x6f, 0x02, 0xc4, 0xb9, 0x92, 0xe6, 0x3b, 0xdf, 0x39, 0x73,
+	0xe6, 0xcc, 0x99, 0x99, 0x33, 0x43, 0xd8, 0x1e, 0x39, 0xce, 0xc8, 0xa2, 0xbb, 0xae, 0xe7, 0x04,
+	0xce, 0xc9, 0x74, 0xb8, 0x6b, 0x50, 0x5f, 0xf7, 0x4c, 0x37, 0x70, 0xbc, 0x3a, 0xc7, 0xf0, 0x9a,
+	0x60, 0xd4, 0x23, 0x46, 0xed, 0x08, 0xd6, 0xef, 0x9b, 0x16, 0x6d, 0xc5, 0xc4, 0x3e, 0x0d, 0xf0,
+	0x5d, 0xc8, 0x0d, 0x4d, 0x8b, 0xca, 0xd2, 0x76, 0x76, 0xa7, 0x7c, 0xf3, 0xcd, 0xfa, 0x9c, 0x52,
+	0x3d, 0xad, 0xd1, 0x63, 0xb0, 0xca, 0x35, 0x6a, 0xff, 0xce, 0xc1, 0xc6, 0x12, 0x29, 0xc6, 0x90,
+	0xb3, 0xc9, 0x84, 0x59, 0x94, 0x76, 0x4a, 0x2a, 0xff, 0x8f, 0x65, 0x58, 0x71, 0x89, 0xfe, 0x88,
+	0x8c, 0xa8, 0x9c, 0xe1, 0x70, 0xd4, 0xc4, 0xaf, 0x03, 0x18, 0xd4, 0xa5, 0xb6, 0x41, 0x6d, 0xfd,
+	0x54, 0xce, 0x6e, 0x67, 0x77, 0x4a, 0x6a, 0x02, 0xc1, 0xef, 0xc0, 0xba, 0x3b, 0x3d, 0xb1, 0x4c,
+	0x5d, 0x4b, 0xd0, 0x60, 0x3b, 0xbb, 0x93, 0x57, 0x91, 0x10, 0xb4, 0x66, 0xe4, 0xab, 0xb0, 0xf6,
+	0x84, 0x92, 0x47, 0x49, 0x6a, 0x99, 0x53, 0xab, 0x0c, 0x4e, 0x10, 0x9b, 0x50, 0x99, 0x50, 0xdf,
+	0x27, 0x23, 0xaa, 0x05, 0xa7, 0x2e, 0x95, 0x73, 0x7c, 0xf4, 0xdb, 0x0b, 0xa3, 0x9f, 0x1f, 0x79,
+	0x39, 0xd4, 0x1a, 0x9c, 0xba, 0x14, 0x37, 0xa0, 0x44, 0xed, 0xe9, 0x44, 0x58, 0xc8, 0x9f, 0x11,
+	0x3f, 0xc5, 0x9e, 0x4e, 0xe6, 0xad, 0x14, 0x99, 0x5a, 0x68, 0x62, 0xc5, 0xa7, 0xde, 0x63, 0x53,
+	0xa7, 0x72, 0x81, 0x1b, 0xb8, 0xba, 0x60, 0xa0, 0x2f, 0xe4, 0xf3, 0x36, 0x22, 0x3d, 0xdc, 0x84,
+	0x12, 0x7d, 0x1a, 0x50, 0xdb, 0x37, 0x1d, 0x5b, 0x5e, 0xe1, 0x46, 0xde, 0x5a, 0x32, 0x8b, 0xd4,
+	0x32, 0xe6, 0x4d, 0xcc, 0xf4, 0xf0, 0x1d, 0x58, 0x71, 0xdc, 0xc0, 0x74, 0x6c, 0x5f, 0x2e, 0x6e,
+	0x4b, 0x3b, 0xe5, 0x9b, 0xaf, 0x2e, 0x4d, 0x84, 0xae, 0xe0, 0xa8, 0x11, 0x19, 0xb7, 0x01, 0xf9,
+	0xce, 0xd4, 0xd3, 0xa9, 0xa6, 0x3b, 0x06, 0xd5, 0x4c, 0x7b, 0xe8, 0xc8, 0x25, 0x6e, 0xe0, 0xf2,
+	0xe2, 0x40, 0x38, 0xb1, 0xe9, 0x18, 0xb4, 0x6d, 0x0f, 0x1d, 0xb5, 0xea, 0xa7, 0xda, 0xf8, 0x02,
+	0x14, 0xfc, 0x53, 0x3b, 0x20, 0x4f, 0xe5, 0x0a, 0xcf, 0x90, 0xb0, 0x55, 0xfb, 0x6b, 0x01, 0xd6,
+	0xce, 0x93, 0x62, 0xf7, 0x20, 0x3f, 0x64, 0xa3, 0x94, 0x33, 0xdf, 0x26, 0x06, 0x42, 0x27, 0x1d,
+	0xc4, 0xc2, 0x77, 0x0c, 0x62, 0x03, 0xca, 0x36, 0xf5, 0x03, 0x6a, 0x88, 0x8c, 0xc8, 0x9e, 0x33,
+	0xa7, 0x40, 0x28, 0x2d, 0xa6, 0x54, 0xee, 0x3b, 0xa5, 0xd4, 0xa7, 0xb0, 0x16, 0xbb, 0xa4, 0x79,
+	0xc4, 0x1e, 0x45, 0xb9, 0xb9, 0xfb, 0x3c, 0x4f, 0xea, 0x4a, 0xa4, 0xa7, 0x32, 0x35, 0xb5, 0x4a,
+	0x53, 0x6d, 0xdc, 0x02, 0x70, 0x6c, 0xea, 0x0c, 0x35, 0x83, 0xea, 0x96, 0x5c, 0x3c, 0x23, 0x4a,
+	0x5d, 0x46, 0x59, 0x88, 0x92, 0x23, 0x50, 0xdd, 0xc2, 0x1f, 0xce, 0x52, 0x6d, 0xe5, 0x8c, 0x4c,
+	0x39, 0x12, 0x8b, 0x6c, 0x21, 0xdb, 0x8e, 0xa1, 0xea, 0x51, 0x96, 0xf7, 0xd4, 0x08, 0x47, 0x56,
+	0xe2, 0x4e, 0xd4, 0x9f, 0x3b, 0x32, 0x35, 0x54, 0x13, 0x03, 0x5b, 0xf5, 0x92, 0x4d, 0xfc, 0x06,
+	0xc4, 0x80, 0xc6, 0xd3, 0x0a, 0xf8, 0x2e, 0x54, 0x89, 0xc0, 0x0e, 0x99, 0xd0, 0xad, 0x2f, 0xa1,
+	0x9a, 0x0e, 0x0f, 0xde, 0x84, 0xbc, 0x1f, 0x10, 0x2f, 0xe0, 0x59, 0x98, 0x57, 0x45, 0x03, 0x23,
+	0xc8, 0x52, 0xdb, 0xe0, 0xbb, 0x5c, 0x5e, 0x65, 0x7f, 0xf1, 0x4f, 0x66, 0x03, 0xce, 0xf2, 0x01,
+	0xbf, 0xbd, 0x38, 0xa3, 0x29, 0xcb, 0xf3, 0xe3, 0xde, 0xfa, 0x00, 0x56, 0x53, 0x03, 0x38, 0x6f,
+	0xd7, 0xb5, 0x5f, 0xc2, 0xcb, 0x4b, 0x4d, 0xe3, 0x4f, 0x61, 0x73, 0x6a, 0x9b, 0x76, 0x40, 0x3d,
+	0xd7, 0xa3, 0x2c, 0x63, 0x45, 0x57, 0xf2, 0x7f, 0x56, 0xce, 0xc8, 0xb9, 0xe3, 0x24, 0x5b, 0x58,
+	0x51, 0x37, 0xa6, 0x8b, 0xe0, 0xf5, 0x52, 0xf1, 0xbf, 0x2b, 0xe8, 0xd9, 0xb3, 0x67, 0xcf, 0x32,
+	0xb5, 0xdf, 0x15, 0x60, 0x73, 0xd9, 0x9a, 0x59, 0xba, 0x7c, 0x2f, 0x40, 0xc1, 0x9e, 0x4e, 0x4e,
+	0xa8, 0xc7, 0x83, 0x94, 0x57, 0xc3, 0x16, 0x6e, 0x40, 0xde, 0x22, 0x27, 0xd4, 0x92, 0x73, 0xdb,
+	0xd2, 0x4e, 0xf5, 0xe6, 0x3b, 0xe7, 0x5a, 0x95, 0xf5, 0x43, 0xa6, 0xa2, 0x0a, 0x4d, 0xfc, 0x11,
+	0xe4, 0xc2, 0x2d, 0x9a, 0x59, 0xb8, 0x7e, 0x3e, 0x0b, 0x6c, 0x2d, 0xa9, 0x5c, 0x0f, 0xbf, 0x02,
+	0x25, 0xf6, 0x2b, 0x72, 0xa3, 0xc0, 0x7d, 0x2e, 0x32, 0x80, 0xe5, 0x05, 0xde, 0x82, 0x22, 0x5f,
+	0x26, 0x06, 0x8d, 0x8e, 0xb6, 0xb8, 0xcd, 0x12, 0xcb, 0xa0, 0x43, 0x32, 0xb5, 0x02, 0xed, 0x31,
+	0xb1, 0xa6, 0x94, 0x27, 0x7c, 0x49, 0xad, 0x84, 0xe0, 0xcf, 0x19, 0x86, 0x2f, 0x43, 0x59, 0xac,
+	0x2a, 0xd3, 0x36, 0xe8, 0x53, 0xbe, 0x7b, 0xe6, 0x55, 0xb1, 0xd0, 0xda, 0x0c, 0x61, 0xdd, 0x3f,
+	0xf4, 0x1d, 0x3b, 0x4a, 0x4d, 0xde, 0x05, 0x03, 0x78, 0xf7, 0x1f, 0xcc, 0x6f, 0xdc, 0xaf, 0x2d,
+	0x1f, 0xde, 0x7c, 0x4e, 0xd5, 0xfe, 0x92, 0x81, 0x1c, 0xdf, 0x2f, 0xd6, 0xa0, 0x3c, 0xf8, 0xac,
+	0xa7, 0x68, 0xad, 0xee, 0xf1, 0xfe, 0xa1, 0x82, 0x24, 0x5c, 0x05, 0xe0, 0xc0, 0xfd, 0xc3, 0x6e,
+	0x63, 0x80, 0x32, 0x71, 0xbb, 0xdd, 0x19, 0xdc, 0xb9, 0x85, 0xb2, 0xb1, 0xc2, 0xb1, 0x00, 0x72,
+	0x49, 0xc2, 0xfb, 0x37, 0x51, 0x1e, 0x23, 0xa8, 0x08, 0x03, 0xed, 0x4f, 0x95, 0xd6, 0x9d, 0x5b,
+	0xa8, 0x90, 0x46, 0xde, 0xbf, 0x89, 0x56, 0xf0, 0x2a, 0x94, 0x38, 0xb2, 0xdf, 0xed, 0x1e, 0xa2,
+	0x62, 0x6c, 0xb3, 0x3f, 0x50, 0xdb, 0x9d, 0x03, 0x54, 0x8a, 0x6d, 0x1e, 0xa8, 0xdd, 0xe3, 0x1e,
+	0x82, 0xd8, 0xc2, 0x91, 0xd2, 0xef, 0x37, 0x0e, 0x14, 0x54, 0x8e, 0x19, 0xfb, 0x9f, 0x0d, 0x94,
+	0x3e, 0xaa, 0xa4, 0xdc, 0x7a, 0xff, 0x26, 0x5a, 0x8d, 0xbb, 0x50, 0x3a, 0xc7, 0x47, 0xa8, 0x8a,
+	0xd7, 0x61, 0x55, 0x74, 0x11, 0x39, 0xb1, 0x36, 0x07, 0xdd, 0xb9, 0x85, 0xd0, 0xcc, 0x11, 0x61,
+	0x65, 0x3d, 0x05, 0xdc, 0xb9, 0x85, 0x70, 0xad, 0x09, 0x79, 0x9e, 0x5d, 0x18, 0x43, 0xf5, 0xb0,
+	0xb1, 0xaf, 0x1c, 0x6a, 0xdd, 0xde, 0xa0, 0xdd, 0xed, 0x34, 0x0e, 0x91, 0x34, 0xc3, 0x54, 0xe5,
+	0x67, 0xc7, 0x6d, 0x55, 0x69, 0xa1, 0x4c, 0x12, 0xeb, 0x29, 0x8d, 0x81, 0xd2, 0x42, 0xd9, 0x9a,
+	0x0e, 0x9b, 0xcb, 0xf6, 0xc9, 0xa5, 0x2b, 0x23, 0x31, 0xc5, 0x99, 0x33, 0xa6, 0x98, 0xdb, 0x5a,
+	0x98, 0xe2, 0x7f, 0x65, 0x60, 0x63, 0xc9, 0x59, 0xb1, 0xb4, 0x93, 0x1f, 0x43, 0x5e, 0xa4, 0xa8,
+	0x38, 0x3d, 0xaf, 0x2d, 0x3d, 0x74, 0x78, 0xc2, 0x2e, 0x9c, 0xa0, 0x5c, 0x2f, 0x59, 0x41, 0x64,
+	0xcf, 0xa8, 0x20, 0x98, 0x89, 0x85, 0x3d, 0xfd, 0x17, 0x0b, 0x7b, 0xba, 0x38, 0xf6, 0xee, 0x9c,
+	0xe7, 0xd8, 0xe3, 0xd8, 0xb7, 0xdb, 0xdb, 0xf3, 0x4b, 0xf6, 0xf6, 0x7b, 0xb0, 0xbe, 0x60, 0xe8,
+	0xdc, 0x7b, 0xec, 0xaf, 0x24, 0x90, 0xcf, 0x0a, 0xce, 0x73, 0x76, 0xba, 0x4c, 0x6a, 0xa7, 0xbb,
+	0x37, 0x1f, 0xc1, 0x2b, 0x67, 0x4f, 0xc2, 0xc2, 0x5c, 0x7f, 0x25, 0xc1, 0x85, 0xe5, 0x95, 0xe2,
+	0x52, 0x1f, 0x3e, 0x82, 0xc2, 0x84, 0x06, 0x63, 0x27, 0xaa, 0x96, 0xde, 0x5e, 0x72, 0x06, 0x33,
+	0xf1, 0xfc, 0x64, 0x87, 0x5a, 0xc9, 0x43, 0x3c, 0x7b, 0x56, 0xb9, 0x27, 0xbc, 0x59, 0xf0, 0xf4,
+	0xd7, 0x19, 0x78, 0x79, 0xa9, 0xf1, 0xa5, 0x8e, 0xbe, 0x06, 0x60, 0xda, 0xee, 0x34, 0x10, 0x15,
+	0x91, 0xd8, 0x60, 0x4b, 0x1c, 0xe1, 0x9b, 0x17, 0xdb, 0x3c, 0xa7, 0x41, 0x2c, 0xcf, 0x72, 0x39,
+	0x08, 0x88, 0x13, 0xee, 0xce, 0x1c, 0xcd, 0x71, 0x47, 0x5f, 0x3f, 0x63, 0xa4, 0x0b, 0x89, 0xf9,
+	0x1e, 0x20, 0xdd, 0x32, 0xa9, 0x1d, 0x68, 0x7e, 0xe0, 0x51, 0x32, 0x31, 0xed, 0x11, 0x3f, 0x41,
+	0x8a, 0x7b, 0xf9, 0x21, 0xb1, 0x7c, 0xaa, 0xae, 0x09, 0x71, 0x3f, 0x92, 0x32, 0x0d, 0x9e, 0x40,
+	0x5e, 0x42, 0xa3, 0x90, 0xd2, 0x10, 0xe2, 0x58, 0xa3, 0xf6, 0xdb, 0x12, 0x94, 0x13, 0x75, 0x35,
+	0xbe, 0x02, 0x95, 0x87, 0xe4, 0x31, 0xd1, 0xa2, 0xbb, 0x92, 0x88, 0x44, 0x99, 0x61, 0xbd, 0xf0,
+	0xbe, 0xf4, 0x1e, 0x6c, 0x72, 0x8a, 0x33, 0x0d, 0xa8, 0xa7, 0xe9, 0x16, 0xf1, 0x7d, 0x1e, 0xb4,
+	0x22, 0xa7, 0x62, 0x26, 0xeb, 0x32, 0x51, 0x33, 0x92, 0xe0, 0xdb, 0xb0, 0xc1, 0x35, 0x26, 0x53,
+	0x2b, 0x30, 0x5d, 0x8b, 0x6a, 0xec, 0xf6, 0xe6, 0xf3, 0x93, 0x24, 0xf6, 0x6c, 0x9d, 0x31, 0x8e,
+	0x42, 0x02, 0xf3, 0xc8, 0xc7, 0x2d, 0x78, 0x8d, 0xab, 0x8d, 0xa8, 0x4d, 0x3d, 0x12, 0x50, 0x8d,
+	0x7e, 0x31, 0x25, 0x96, 0xaf, 0x11, 0xdb, 0xd0, 0xc6, 0xc4, 0x1f, 0xcb, 0x9b, 0xcc, 0xc0, 0x7e,
+	0x46, 0x96, 0xd4, 0x4b, 0x8c, 0x78, 0x10, 0xf2, 0x14, 0x4e, 0x6b, 0xd8, 0xc6, 0xc7, 0xc4, 0x1f,
+	0xe3, 0x3d, 0xb8, 0xc0, 0xad, 0xf8, 0x81, 0x67, 0xda, 0x23, 0x4d, 0x1f, 0x53, 0xfd, 0x91, 0x36,
+	0x0d, 0x86, 0x77, 0xe5, 0x57, 0x92, 0xfd, 0x73, 0x0f, 0xfb, 0x9c, 0xd3, 0x64, 0x94, 0xe3, 0x60,
+	0x78, 0x17, 0xf7, 0xa1, 0xc2, 0x26, 0x63, 0x62, 0x7e, 0x49, 0xb5, 0xa1, 0xe3, 0xf1, 0xa3, 0xb1,
+	0xba, 0x64, 0x6b, 0x4a, 0x44, 0xb0, 0xde, 0x0d, 0x15, 0x8e, 0x1c, 0x83, 0xee, 0xe5, 0xfb, 0x3d,
+	0x45, 0x69, 0xa9, 0xe5, 0xc8, 0xca, 0x7d, 0xc7, 0x63, 0x09, 0x35, 0x72, 0xe2, 0x00, 0x97, 0x45,
+	0x42, 0x8d, 0x9c, 0x28, 0xbc, 0xb7, 0x61, 0x43, 0xd7, 0xc5, 0x98, 0x4d, 0x5d, 0x0b, 0xef, 0x58,
+	0xbe, 0x8c, 0x52, 0xc1, 0xd2, 0xf5, 0x03, 0x41, 0x08, 0x73, 0xdc, 0xc7, 0x1f, 0xc2, 0xcb, 0xb3,
+	0x60, 0x25, 0x15, 0xd7, 0x17, 0x46, 0x39, 0xaf, 0x7a, 0x1b, 0x36, 0xdc, 0xd3, 0x45, 0x45, 0x9c,
+	0xea, 0xd1, 0x3d, 0x9d, 0x57, 0xfb, 0x00, 0x36, 0xdd, 0xb1, 0xbb, 0xa8, 0x77, 0x3d, 0xa9, 0x87,
+	0xdd, 0xb1, 0x3b, 0xaf, 0xf8, 0x16, 0xbf, 0x70, 0x7b, 0x54, 0x27, 0x01, 0x35, 0xe4, 0x8b, 0x49,
+	0x7a, 0x42, 0x80, 0x77, 0x01, 0xe9, 0xba, 0x46, 0x6d, 0x72, 0x62, 0x51, 0x8d, 0x78, 0xd4, 0x26,
+	0xbe, 0x7c, 0x39, 0x49, 0xae, 0xea, 0xba, 0xc2, 0xa5, 0x0d, 0x2e, 0xc4, 0xd7, 0x61, 0xdd, 0x39,
+	0x79, 0xa8, 0x8b, 0x94, 0xd4, 0x5c, 0x8f, 0x0e, 0xcd, 0xa7, 0xf2, 0x9b, 0x3c, 0xbe, 0x6b, 0x4c,
+	0xc0, 0x13, 0xb2, 0xc7, 0x61, 0x7c, 0x0d, 0x90, 0xee, 0x8f, 0x89, 0xe7, 0xf2, 0x3d, 0xd9, 0x77,
+	0x89, 0x4e, 0xe5, 0xb7, 0x04, 0x55, 0xe0, 0x9d, 0x08, 0x66, 0x4b, 0xc2, 0x7f, 0x62, 0x0e, 0x83,
+	0xc8, 0xe2, 0x55, 0xb1, 0x24, 0x38, 0x16, 0x5a, 0xdb, 0x01, 0xc4, 0x42, 0x91, 0xea, 0x78, 0x87,
+	0xd3, 0xaa, 0xee, 0xd8, 0x4d, 0xf6, 0xfb, 0x06, 0xac, 0x32, 0xe6, 0xac, 0xd3, 0x6b, 0xa2, 0x20,
+	0x73, 0xc7, 0x89, 0x1e, 0x6f, 0xc1, 0x05, 0x46, 0x9a, 0xd0, 0x80, 0x18, 0x24, 0x20, 0x09, 0xf6,
+	0xbb, 0x9c, 0xcd, 0xe2, 0x7e, 0x14, 0x0a, 0x53, 0x7e, 0x7a, 0xd3, 0x93, 0xd3, 0x38, 0xb3, 0x6e,
+	0x08, 0x3f, 0x19, 0x16, 0xe5, 0xd6, 0xf7, 0x56, 0x74, 0xd7, 0xf6, 0xa0, 0x92, 0x4c, 0x7c, 0x5c,
+	0x02, 0x91, 0xfa, 0x48, 0x62, 0x55, 0x50, 0xb3, 0xdb, 0x62, 0xf5, 0xcb, 0xe7, 0x0a, 0xca, 0xb0,
+	0x3a, 0xea, 0xb0, 0x3d, 0x50, 0x34, 0xf5, 0xb8, 0x33, 0x68, 0x1f, 0x29, 0x28, 0x9b, 0x28, 0xd8,
+	0x1f, 0xe4, 0x8a, 0x6f, 0xa3, 0xab, 0xb5, 0xaf, 0x33, 0x50, 0x4d, 0xdf, 0xc0, 0xf0, 0x8f, 0xe0,
+	0x62, 0xf4, 0x5c, 0xe2, 0xd3, 0x40, 0x7b, 0x62, 0x7a, 0x7c, 0x45, 0x4e, 0x88, 0x38, 0x1d, 0xe3,
+	0x9c, 0xd8, 0x0c, 0x59, 0x7d, 0x1a, 0x7c, 0x62, 0x7a, 0x6c, 0xbd, 0x4d, 0x48, 0x80, 0x0f, 0xe1,
+	0xb2, 0xed, 0x68, 0x7e, 0x40, 0x6c, 0x83, 0x78, 0x86, 0x36, 0x7b, 0xa8, 0xd2, 0x88, 0xae, 0x53,
+	0xdf, 0x77, 0xc4, 0x49, 0x18, 0x5b, 0x79, 0xd5, 0x76, 0xfa, 0x21, 0x79, 0x76, 0x44, 0x34, 0x42,
+	0xea, 0x5c, 0xfe, 0x66, 0xcf, 0xca, 0xdf, 0x57, 0xa0, 0x34, 0x21, 0xae, 0x46, 0xed, 0xc0, 0x3b,
+	0xe5, 0x75, 0x77, 0x51, 0x2d, 0x4e, 0x88, 0xab, 0xb0, 0xf6, 0x0b, 0xb9, 0xfe, 0x3c, 0xc8, 0x15,
+	0x8b, 0xa8, 0xf4, 0x20, 0x57, 0x2c, 0x21, 0xa8, 0xfd, 0x33, 0x0b, 0x95, 0x64, 0x1d, 0xce, 0xae,
+	0x35, 0x3a, 0x3f, 0xb2, 0x24, 0xbe, 0xa9, 0xbd, 0xf1, 0x8d, 0x55, 0x7b, 0xbd, 0xc9, 0xce, 0xb2,
+	0xbd, 0x82, 0xa8, 0x8e, 0x55, 0xa1, 0xc9, 0xea, 0x08, 0x96, 0x6c, 0x54, 0x54, 0x23, 0x45, 0x35,
+	0x6c, 0xe1, 0x03, 0x28, 0x3c, 0xf4, 0xb9, 0xed, 0x02, 0xb7, 0xfd, 0xe6, 0x37, 0xdb, 0x7e, 0xd0,
+	0xe7, 0xc6, 0x4b, 0x0f, 0xfa, 0x5a, 0xa7, 0xab, 0x1e, 0x35, 0x0e, 0xd5, 0x50, 0x1d, 0x5f, 0x82,
+	0x9c, 0x45, 0xbe, 0x3c, 0x4d, 0x9f, 0x7a, 0x1c, 0x3a, 0xef, 0x24, 0x5c, 0x82, 0xdc, 0x13, 0x4a,
+	0x1e, 0xa5, 0xcf, 0x1a, 0x0e, 0x7d, 0x8f, 0x8b, 0x61, 0x17, 0xf2, 0x3c, 0x5e, 0x18, 0x20, 0x8c,
+	0x18, 0x7a, 0x09, 0x17, 0x21, 0xd7, 0xec, 0xaa, 0x6c, 0x41, 0x20, 0xa8, 0x08, 0x54, 0xeb, 0xb5,
+	0x95, 0xa6, 0x82, 0x32, 0xb5, 0xdb, 0x50, 0x10, 0x41, 0x60, 0x8b, 0x25, 0x0e, 0x03, 0x7a, 0x29,
+	0x6c, 0x86, 0x36, 0xa4, 0x48, 0x7a, 0x7c, 0xb4, 0xaf, 0xa8, 0x28, 0x93, 0x9e, 0xea, 0x1c, 0xca,
+	0xd7, 0x7c, 0xa8, 0x24, 0x0b, 0xf1, 0x17, 0x73, 0xc9, 0xfe, 0x9b, 0x04, 0xe5, 0x44, 0x61, 0xcd,
+	0x2a, 0x22, 0x62, 0x59, 0xce, 0x13, 0x8d, 0x58, 0x26, 0xf1, 0xc3, 0xd4, 0x00, 0x0e, 0x35, 0x18,
+	0x72, 0xde, 0xa9, 0x7b, 0x41, 0x4b, 0x24, 0x8f, 0x0a, 0xb5, 0x3f, 0x4a, 0x80, 0xe6, 0x2b, 0xdb,
+	0x39, 0x37, 0xa5, 0x1f, 0xd2, 0xcd, 0xda, 0x1f, 0x24, 0xa8, 0xa6, 0xcb, 0xd9, 0x39, 0xf7, 0xae,
+	0xfc, 0xa0, 0xee, 0xfd, 0x23, 0x03, 0xab, 0xa9, 0x22, 0xf6, 0xbc, 0xde, 0x7d, 0x01, 0xeb, 0xa6,
+	0x41, 0x27, 0xae, 0x13, 0x50, 0x5b, 0x3f, 0xd5, 0x2c, 0xfa, 0x98, 0x5a, 0x72, 0x8d, 0x6f, 0x1a,
+	0xbb, 0xdf, 0x5c, 0x26, 0xd7, 0xdb, 0x33, 0xbd, 0x43, 0xa6, 0xb6, 0xb7, 0xd1, 0x6e, 0x29, 0x47,
+	0xbd, 0xee, 0x40, 0xe9, 0x34, 0x3f, 0xd3, 0x8e, 0x3b, 0x3f, 0xed, 0x74, 0x3f, 0xe9, 0xa8, 0xc8,
+	0x9c, 0xa3, 0x7d, 0x8f, 0xcb, 0xbe, 0x07, 0x68, 0xde, 0x29, 0x7c, 0x11, 0x96, 0xb9, 0x85, 0x5e,
+	0xc2, 0x1b, 0xb0, 0xd6, 0xe9, 0x6a, 0xfd, 0x76, 0x4b, 0xd1, 0x94, 0xfb, 0xf7, 0x95, 0xe6, 0xa0,
+	0x2f, 0x1e, 0x3e, 0x62, 0xf6, 0x20, 0xb5, 0xc0, 0x6b, 0xbf, 0xcf, 0xc2, 0xc6, 0x12, 0x4f, 0x70,
+	0x23, 0xbc, 0xb2, 0x88, 0x5b, 0xd4, 0x8d, 0xf3, 0x78, 0x5f, 0x67, 0x35, 0x43, 0x8f, 0x78, 0x41,
+	0x78, 0xc3, 0xb9, 0x06, 0x2c, 0x4a, 0x76, 0x60, 0x0e, 0x4d, 0xea, 0x85, 0xef, 0x44, 0xe2, 0x1e,
+	0xb3, 0x36, 0xc3, 0xc5, 0x53, 0xd1, 0xbb, 0x80, 0x5d, 0xc7, 0x37, 0x03, 0xf3, 0x31, 0xd5, 0x4c,
+	0x3b, 0x7a, 0x54, 0x62, 0xf7, 0x9a, 0x9c, 0x8a, 0x22, 0x49, 0xdb, 0x0e, 0x62, 0xb6, 0x4d, 0x47,
+	0x64, 0x8e, 0xcd, 0x36, 0xf3, 0xac, 0x8a, 0x22, 0x49, 0xcc, 0xbe, 0x02, 0x15, 0xc3, 0x99, 0xb2,
+	0x62, 0x4f, 0xf0, 0xd8, 0xd9, 0x21, 0xa9, 0x65, 0x81, 0xc5, 0x94, 0xb0, 0x8c, 0x9f, 0xbd, 0x66,
+	0x55, 0xd4, 0xb2, 0xc0, 0x04, 0xe5, 0x2a, 0xac, 0x91, 0xd1, 0xc8, 0x63, 0xc6, 0x23, 0x43, 0xe2,
+	0x62, 0x52, 0x8d, 0x61, 0x4e, 0xdc, 0x7a, 0x00, 0xc5, 0x28, 0x0e, 0xec, 0xa8, 0x66, 0x91, 0xd0,
+	0x5c, 0x71, 0xdb, 0xce, 0xec, 0x94, 0xd4, 0xa2, 0x1d, 0x09, 0xaf, 0x40, 0xc5, 0xf4, 0xb5, 0xd9,
+	0xe3, 0x7c, 0x66, 0x3b, 0xb3, 0x53, 0x54, 0xcb, 0xa6, 0x1f, 0x3f, 0x6c, 0xd6, 0xbe, 0xca, 0x40,
+	0x35, 0xfd, 0x71, 0x01, 0xb7, 0xa0, 0x68, 0x39, 0x3a, 0xe1, 0xa9, 0x25, 0xbe, 0x6c, 0xed, 0x3c,
+	0xe7, 0x7b, 0x44, 0xfd, 0x30, 0xe4, 0xab, 0xb1, 0xe6, 0xd6, 0xdf, 0x25, 0x28, 0x46, 0x30, 0xbe,
+	0x00, 0x39, 0x97, 0x04, 0x63, 0x6e, 0x2e, 0xbf, 0x9f, 0x41, 0x92, 0xca, 0xdb, 0x0c, 0xf7, 0x5d,
+	0x62, 0xf3, 0x14, 0x08, 0x71, 0xd6, 0x66, 0xf3, 0x6a, 0x51, 0x62, 0xf0, 0x5b, 0x8f, 0x33, 0x99,
+	0x50, 0x3b, 0xf0, 0xa3, 0x79, 0x0d, 0xf1, 0x66, 0x08, 0xe3, 0x77, 0x60, 0x3d, 0xf0, 0x88, 0x69,
+	0xa5, 0xb8, 0x39, 0xce, 0x45, 0x91, 0x20, 0x26, 0xef, 0xc1, 0xa5, 0xc8, 0xae, 0x41, 0x03, 0xa2,
+	0x8f, 0xa9, 0x31, 0x53, 0x2a, 0xf0, 0xd7, 0x8d, 0x8b, 0x21, 0xa1, 0x15, 0xca, 0x23, 0xdd, 0xda,
+	0xd7, 0x12, 0xac, 0x47, 0xf7, 0x34, 0x23, 0x0e, 0xd6, 0x11, 0x00, 0xb1, 0x6d, 0x27, 0x48, 0x86,
+	0x6b, 0x31, 0x95, 0x17, 0xf4, 0xea, 0x8d, 0x58, 0x49, 0x4d, 0x18, 0xd8, 0x9a, 0x00, 0xcc, 0x24,
+	0x67, 0x86, 0xed, 0x32, 0x94, 0xc3, 0x2f, 0x47, 0xfc, 0xf3, 0xa3, 0xb8, 0xd9, 0x83, 0x80, 0xd8,
+	0x85, 0x0e, 0x6f, 0x42, 0xfe, 0x84, 0x8e, 0x4c, 0x3b, 0x7c, 0x0f, 0x16, 0x8d, 0xe8, 0xfd, 0x25,
+	0x17, 0xbf, 0xbf, 0xec, 0xff, 0x46, 0x82, 0x0d, 0xdd, 0x99, 0xcc, 0xfb, 0xbb, 0x8f, 0xe6, 0x9e,
+	0x17, 0xfc, 0x8f, 0xa5, 0xcf, 0x3f, 0x1a, 0x99, 0xc1, 0x78, 0x7a, 0x52, 0xd7, 0x9d, 0xc9, 0xee,
+	0xc8, 0xb1, 0x88, 0x3d, 0x9a, 0x7d, 0x3f, 0xe5, 0x7f, 0xf4, 0x1b, 0x23, 0x6a, 0xdf, 0x18, 0x39,
+	0x89, 0xaf, 0xa9, 0xf7, 0x66, 0x7f, 0xff, 0x27, 0x49, 0x7f, 0xca, 0x64, 0x0f, 0x7a, 0xfb, 0x7f,
+	0xce, 0x6c, 0x1d, 0x88, 0xee, 0x7a, 0x51, 0x78, 0x54, 0x3a, 0xb4, 0xa8, 0xce, 0x86, 0xfc, 0xff,
+	0x00, 0x00, 0x00, 0xff, 0xff, 0x3e, 0xe8, 0xef, 0xc4, 0x9b, 0x1d, 0x00, 0x00,
+}
+
+func init() {
+	xxx_Descriptor_ProtoFile_FileDesc.Messages = xxx_Descriptor_ProtoFile_MessageDescs[0:21]
+	xxx_Descriptor_ProtoFile_MessageDescs[2].Messages = xxx_Descriptor_ProtoFile_MessageDescs[21:23]
+	xxx_Descriptor_ProtoFile_MessageDescs[4].Enums = xxx_Descriptor_ProtoFile_EnumDescs[0:2]
+	xxx_Descriptor_ProtoFile_MessageDescs[6].Messages = xxx_Descriptor_ProtoFile_MessageDescs[23:24]
+	xxx_Descriptor_ProtoFile_MessageDescs[10].Enums = xxx_Descriptor_ProtoFile_EnumDescs[2:3]
+	xxx_Descriptor_ProtoFile_MessageDescs[12].Enums = xxx_Descriptor_ProtoFile_EnumDescs[3:5]
+	xxx_Descriptor_ProtoFile_MessageDescs[17].Enums = xxx_Descriptor_ProtoFile_EnumDescs[5:6]
+	xxx_Descriptor_ProtoFile_MessageDescs[18].Messages = xxx_Descriptor_ProtoFile_MessageDescs[24:25]
+	xxx_Descriptor_ProtoFile_MessageDescs[19].Messages = xxx_Descriptor_ProtoFile_MessageDescs[25:26]
+	xxx_Descriptor_ProtoFile_MessageDescs[20].Messages = xxx_Descriptor_ProtoFile_MessageDescs[26:27]
+	xxx_Descriptor_ProtoFile_MessageDescs[0].Fields[0].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[1].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[1].Fields[5].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[2].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[1].Fields[6].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[6].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[1].Fields[7].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[8].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[1].Fields[8].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[4].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[1].Fields[9].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[10].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[1].Fields[10].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[19].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[2].Fields[1].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[4].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[2].Fields[2].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[4].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[2].Fields[3].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[2].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[2].Fields[4].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[6].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[2].Fields[5].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[21].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[2].Fields[6].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[5].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[2].Fields[7].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[11].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[2].Fields[8].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[22].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[3].Fields[0].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[18].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[4].Fields[2].EnumType = xxx_Descriptor_ProtoFile_EnumTypes[1]
+	xxx_Descriptor_ProtoFile_MessageDescs[4].Fields[3].EnumType = xxx_Descriptor_ProtoFile_EnumTypes[0]
+	xxx_Descriptor_ProtoFile_MessageDescs[4].Fields[9].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[12].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[5].Fields[1].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[13].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[6].Fields[1].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[7].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[6].Fields[2].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[14].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[6].Fields[3].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[23].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[7].Fields[2].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[15].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[8].Fields[1].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[9].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[8].Fields[2].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[16].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[9].Fields[3].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[17].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[10].Fields[5].EnumType = xxx_Descriptor_ProtoFile_EnumTypes[2]
+	xxx_Descriptor_ProtoFile_MessageDescs[10].Fields[20].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[18].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[11].Fields[4].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[18].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[12].Fields[0].EnumType = xxx_Descriptor_ProtoFile_EnumTypes[3]
+	xxx_Descriptor_ProtoFile_MessageDescs[12].Fields[2].EnumType = xxx_Descriptor_ProtoFile_EnumTypes[4]
+	xxx_Descriptor_ProtoFile_MessageDescs[12].Fields[6].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[18].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[13].Fields[0].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[18].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[14].Fields[2].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[18].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[15].Fields[1].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[18].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[16].Fields[1].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[18].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[17].Fields[1].EnumType = xxx_Descriptor_ProtoFile_EnumTypes[5]
+	xxx_Descriptor_ProtoFile_MessageDescs[17].Fields[2].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[18].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[18].Fields[0].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[24].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[19].Fields[0].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[25].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[20].Fields[0].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[26].Type
+	xxx_Descriptor_ProtoFile_MessageDescs[21].Fields[2].MessageType = xxx_Descriptor_ProtoFile_MessageTypes[3].Type
+	var err error
+	Descriptor_ProtoFile, err = prototype.NewFile(&xxx_Descriptor_ProtoFile_FileDesc)
+	if err != nil {
+		panic(err)
+	}
+}
+
+const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
+
+var Descriptor_ProtoFile protoreflect.FileDescriptor
+
+var xxx_Descriptor_ProtoFile_FileDesc = prototype.File{
+	Syntax:  protoreflect.Proto2,
+	Path:    "google/protobuf/descriptor.proto",
+	Package: "google.protobuf",
+}
+var xxx_Descriptor_ProtoFile_EnumTypes = [6]protoreflect.EnumType{
+	prototype.GoEnum(
+		xxx_Descriptor_ProtoFile_EnumDescs[0].Reference(),
+		func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
+			return FieldDescriptorProto_Type(n)
+		},
+	),
+	prototype.GoEnum(
+		xxx_Descriptor_ProtoFile_EnumDescs[1].Reference(),
+		func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
+			return FieldDescriptorProto_Label(n)
+		},
+	),
+	prototype.GoEnum(
+		xxx_Descriptor_ProtoFile_EnumDescs[2].Reference(),
+		func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
+			return FileOptions_OptimizeMode(n)
+		},
+	),
+	prototype.GoEnum(
+		xxx_Descriptor_ProtoFile_EnumDescs[3].Reference(),
+		func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
+			return FieldOptions_CType(n)
+		},
+	),
+	prototype.GoEnum(
+		xxx_Descriptor_ProtoFile_EnumDescs[4].Reference(),
+		func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
+			return FieldOptions_JSType(n)
+		},
+	),
+	prototype.GoEnum(
+		xxx_Descriptor_ProtoFile_EnumDescs[5].Reference(),
+		func(_ protoreflect.EnumType, n protoreflect.EnumNumber) protoreflect.ProtoEnum {
+			return MethodOptions_IdempotencyLevel(n)
+		},
+	),
+}
+var xxx_Descriptor_ProtoFile_EnumDescs = [6]prototype.Enum{
+	{
+		Name: "Type",
+		Values: []prototype.EnumValue{
+			{Name: "TYPE_DOUBLE", Number: 1},
+			{Name: "TYPE_FLOAT", Number: 2},
+			{Name: "TYPE_INT64", Number: 3},
+			{Name: "TYPE_UINT64", Number: 4},
+			{Name: "TYPE_INT32", Number: 5},
+			{Name: "TYPE_FIXED64", Number: 6},
+			{Name: "TYPE_FIXED32", Number: 7},
+			{Name: "TYPE_BOOL", Number: 8},
+			{Name: "TYPE_STRING", Number: 9},
+			{Name: "TYPE_GROUP", Number: 10},
+			{Name: "TYPE_MESSAGE", Number: 11},
+			{Name: "TYPE_BYTES", Number: 12},
+			{Name: "TYPE_UINT32", Number: 13},
+			{Name: "TYPE_ENUM", Number: 14},
+			{Name: "TYPE_SFIXED32", Number: 15},
+			{Name: "TYPE_SFIXED64", Number: 16},
+			{Name: "TYPE_SINT32", Number: 17},
+			{Name: "TYPE_SINT64", Number: 18},
+		},
+	},
+	{
+		Name: "Label",
+		Values: []prototype.EnumValue{
+			{Name: "LABEL_OPTIONAL", Number: 1},
+			{Name: "LABEL_REQUIRED", Number: 2},
+			{Name: "LABEL_REPEATED", Number: 3},
+		},
+	},
+	{
+		Name: "OptimizeMode",
+		Values: []prototype.EnumValue{
+			{Name: "SPEED", Number: 1},
+			{Name: "CODE_SIZE", Number: 2},
+			{Name: "LITE_RUNTIME", Number: 3},
+		},
+	},
+	{
+		Name: "CType",
+		Values: []prototype.EnumValue{
+			{Name: "STRING", Number: 0},
+			{Name: "CORD", Number: 1},
+			{Name: "STRING_PIECE", Number: 2},
+		},
+	},
+	{
+		Name: "JSType",
+		Values: []prototype.EnumValue{
+			{Name: "JS_NORMAL", Number: 0},
+			{Name: "JS_STRING", Number: 1},
+			{Name: "JS_NUMBER", Number: 2},
+		},
+	},
+	{
+		Name: "IdempotencyLevel",
+		Values: []prototype.EnumValue{
+			{Name: "IDEMPOTENCY_UNKNOWN", Number: 0},
+			{Name: "NO_SIDE_EFFECTS", Number: 1},
+			{Name: "IDEMPOTENT", Number: 2},
+		},
+	},
+}
+var xxx_Descriptor_ProtoFile_MessageTypes = [27]protoimpl.MessageType{
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[0].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(FileDescriptorSet)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[1].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(FileDescriptorProto)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[2].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(DescriptorProto)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[3].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(ExtensionRangeOptions)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[4].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(FieldDescriptorProto)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[5].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(OneofDescriptorProto)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[6].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(EnumDescriptorProto)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[7].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(EnumValueDescriptorProto)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[8].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(ServiceDescriptorProto)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[9].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(MethodDescriptorProto)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[10].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(FileOptions)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[11].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(MessageOptions)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[12].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(FieldOptions)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[13].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(OneofOptions)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[14].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(EnumOptions)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[15].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(EnumValueOptions)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[16].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(ServiceOptions)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[17].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(MethodOptions)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[18].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(UninterpretedOption)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[19].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(SourceCodeInfo)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[20].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(GeneratedCodeInfo)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[21].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(DescriptorProto_ExtensionRange)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[22].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(DescriptorProto_ReservedRange)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[23].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(EnumDescriptorProto_EnumReservedRange)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[24].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(UninterpretedOption_NamePart)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[25].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(SourceCodeInfo_Location)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Descriptor_ProtoFile_MessageDescs[26].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(GeneratedCodeInfo_Annotation)
+		},
+	)},
+}
+var xxx_Descriptor_ProtoFile_MessageDescs = [27]prototype.Message{
+	{
+		Name: "FileDescriptorSet",
+		Fields: []prototype.Field{
+			{
+				Name:        "file",
+				Number:      1,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "file",
+			},
+		},
+	},
+	{
+		Name: "FileDescriptorProto",
+		Fields: []prototype.Field{
+			{
+				Name:        "name",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "name",
+			},
+			{
+				Name:        "package",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "package",
+			},
+			{
+				Name:        "dependency",
+				Number:      3,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "dependency",
+			},
+			{
+				Name:        "public_dependency",
+				Number:      10,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "publicDependency",
+			},
+			{
+				Name:        "weak_dependency",
+				Number:      11,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "weakDependency",
+			},
+			{
+				Name:        "message_type",
+				Number:      4,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "messageType",
+			},
+			{
+				Name:        "enum_type",
+				Number:      5,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "enumType",
+			},
+			{
+				Name:        "service",
+				Number:      6,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "service",
+			},
+			{
+				Name:        "extension",
+				Number:      7,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "extension",
+			},
+			{
+				Name:        "options",
+				Number:      8,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "options",
+			},
+			{
+				Name:        "source_code_info",
+				Number:      9,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "sourceCodeInfo",
+			},
+			{
+				Name:        "syntax",
+				Number:      12,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "syntax",
+			},
+		},
+	},
+	{
+		Name: "DescriptorProto",
+		Fields: []prototype.Field{
+			{
+				Name:        "name",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "name",
+			},
+			{
+				Name:        "field",
+				Number:      2,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "field",
+			},
+			{
+				Name:        "extension",
+				Number:      6,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "extension",
+			},
+			{
+				Name:        "nested_type",
+				Number:      3,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "nestedType",
+			},
+			{
+				Name:        "enum_type",
+				Number:      4,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "enumType",
+			},
+			{
+				Name:        "extension_range",
+				Number:      5,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "extensionRange",
+			},
+			{
+				Name:        "oneof_decl",
+				Number:      8,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "oneofDecl",
+			},
+			{
+				Name:        "options",
+				Number:      7,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "options",
+			},
+			{
+				Name:        "reserved_range",
+				Number:      9,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "reservedRange",
+			},
+			{
+				Name:        "reserved_name",
+				Number:      10,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "reservedName",
+			},
+		},
+	},
+	{
+		Name: "ExtensionRangeOptions",
+		Fields: []prototype.Field{
+			{
+				Name:        "uninterpreted_option",
+				Number:      999,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "uninterpretedOption",
+			},
+		},
+		ExtensionRanges: [][2]protoreflect.FieldNumber{{1000, 536870912}},
+	},
+	{
+		Name: "FieldDescriptorProto",
+		Fields: []prototype.Field{
+			{
+				Name:        "name",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "name",
+			},
+			{
+				Name:        "number",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "number",
+			},
+			{
+				Name:        "label",
+				Number:      4,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.EnumKind,
+				JSONName:    "label",
+			},
+			{
+				Name:        "type",
+				Number:      5,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.EnumKind,
+				JSONName:    "type",
+			},
+			{
+				Name:        "type_name",
+				Number:      6,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "typeName",
+			},
+			{
+				Name:        "extendee",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "extendee",
+			},
+			{
+				Name:        "default_value",
+				Number:      7,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "defaultValue",
+			},
+			{
+				Name:        "oneof_index",
+				Number:      9,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "oneofIndex",
+			},
+			{
+				Name:        "json_name",
+				Number:      10,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "jsonName",
+			},
+			{
+				Name:        "options",
+				Number:      8,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "options",
+			},
+		},
+	},
+	{
+		Name: "OneofDescriptorProto",
+		Fields: []prototype.Field{
+			{
+				Name:        "name",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "name",
+			},
+			{
+				Name:        "options",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "options",
+			},
+		},
+	},
+	{
+		Name: "EnumDescriptorProto",
+		Fields: []prototype.Field{
+			{
+				Name:        "name",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "name",
+			},
+			{
+				Name:        "value",
+				Number:      2,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "value",
+			},
+			{
+				Name:        "options",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "options",
+			},
+			{
+				Name:        "reserved_range",
+				Number:      4,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "reservedRange",
+			},
+			{
+				Name:        "reserved_name",
+				Number:      5,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "reservedName",
+			},
+		},
+	},
+	{
+		Name: "EnumValueDescriptorProto",
+		Fields: []prototype.Field{
+			{
+				Name:        "name",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "name",
+			},
+			{
+				Name:        "number",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "number",
+			},
+			{
+				Name:        "options",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "options",
+			},
+		},
+	},
+	{
+		Name: "ServiceDescriptorProto",
+		Fields: []prototype.Field{
+			{
+				Name:        "name",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "name",
+			},
+			{
+				Name:        "method",
+				Number:      2,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "method",
+			},
+			{
+				Name:        "options",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "options",
+			},
+		},
+	},
+	{
+		Name: "MethodDescriptorProto",
+		Fields: []prototype.Field{
+			{
+				Name:        "name",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "name",
+			},
+			{
+				Name:        "input_type",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "inputType",
+			},
+			{
+				Name:        "output_type",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "outputType",
+			},
+			{
+				Name:        "options",
+				Number:      4,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "options",
+			},
+			{
+				Name:        "client_streaming",
+				Number:      5,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "clientStreaming",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "server_streaming",
+				Number:      6,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "serverStreaming",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+		},
+	},
+	{
+		Name: "FileOptions",
+		Fields: []prototype.Field{
+			{
+				Name:        "java_package",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "javaPackage",
+			},
+			{
+				Name:        "java_outer_classname",
+				Number:      8,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "javaOuterClassname",
+			},
+			{
+				Name:        "java_multiple_files",
+				Number:      10,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "javaMultipleFiles",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "java_generate_equals_and_hash",
+				Number:      20,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "javaGenerateEqualsAndHash",
+			},
+			{
+				Name:        "java_string_check_utf8",
+				Number:      27,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "javaStringCheckUtf8",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "optimize_for",
+				Number:      9,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.EnumKind,
+				JSONName:    "optimizeFor",
+				Default:     protoreflect.ValueOf(string("SPEED")),
+			},
+			{
+				Name:        "go_package",
+				Number:      11,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "goPackage",
+			},
+			{
+				Name:        "cc_generic_services",
+				Number:      16,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "ccGenericServices",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "java_generic_services",
+				Number:      17,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "javaGenericServices",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "py_generic_services",
+				Number:      18,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "pyGenericServices",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "php_generic_services",
+				Number:      42,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "phpGenericServices",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "deprecated",
+				Number:      23,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "deprecated",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "cc_enable_arenas",
+				Number:      31,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "ccEnableArenas",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "objc_class_prefix",
+				Number:      36,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "objcClassPrefix",
+			},
+			{
+				Name:        "csharp_namespace",
+				Number:      37,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "csharpNamespace",
+			},
+			{
+				Name:        "swift_prefix",
+				Number:      39,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "swiftPrefix",
+			},
+			{
+				Name:        "php_class_prefix",
+				Number:      40,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "phpClassPrefix",
+			},
+			{
+				Name:        "php_namespace",
+				Number:      41,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "phpNamespace",
+			},
+			{
+				Name:        "php_metadata_namespace",
+				Number:      44,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "phpMetadataNamespace",
+			},
+			{
+				Name:        "ruby_package",
+				Number:      45,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "rubyPackage",
+			},
+			{
+				Name:        "uninterpreted_option",
+				Number:      999,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "uninterpretedOption",
+			},
+		},
+		ExtensionRanges: [][2]protoreflect.FieldNumber{{1000, 536870912}},
+	},
+	{
+		Name: "MessageOptions",
+		Fields: []prototype.Field{
+			{
+				Name:        "message_set_wire_format",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "messageSetWireFormat",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "no_standard_descriptor_accessor",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "noStandardDescriptorAccessor",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "deprecated",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "deprecated",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "map_entry",
+				Number:      7,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "mapEntry",
+			},
+			{
+				Name:        "uninterpreted_option",
+				Number:      999,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "uninterpretedOption",
+			},
+		},
+		ExtensionRanges: [][2]protoreflect.FieldNumber{{1000, 536870912}},
+	},
+	{
+		Name: "FieldOptions",
+		Fields: []prototype.Field{
+			{
+				Name:        "ctype",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.EnumKind,
+				JSONName:    "ctype",
+				Default:     protoreflect.ValueOf(string("STRING")),
+			},
+			{
+				Name:        "packed",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "packed",
+			},
+			{
+				Name:        "jstype",
+				Number:      6,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.EnumKind,
+				JSONName:    "jstype",
+				Default:     protoreflect.ValueOf(string("JS_NORMAL")),
+			},
+			{
+				Name:        "lazy",
+				Number:      5,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "lazy",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "deprecated",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "deprecated",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "weak",
+				Number:      10,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "weak",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "uninterpreted_option",
+				Number:      999,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "uninterpretedOption",
+			},
+		},
+		ExtensionRanges: [][2]protoreflect.FieldNumber{{1000, 536870912}},
+	},
+	{
+		Name: "OneofOptions",
+		Fields: []prototype.Field{
+			{
+				Name:        "uninterpreted_option",
+				Number:      999,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "uninterpretedOption",
+			},
+		},
+		ExtensionRanges: [][2]protoreflect.FieldNumber{{1000, 536870912}},
+	},
+	{
+		Name: "EnumOptions",
+		Fields: []prototype.Field{
+			{
+				Name:        "allow_alias",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "allowAlias",
+			},
+			{
+				Name:        "deprecated",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "deprecated",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "uninterpreted_option",
+				Number:      999,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "uninterpretedOption",
+			},
+		},
+		ExtensionRanges: [][2]protoreflect.FieldNumber{{1000, 536870912}},
+	},
+	{
+		Name: "EnumValueOptions",
+		Fields: []prototype.Field{
+			{
+				Name:        "deprecated",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "deprecated",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "uninterpreted_option",
+				Number:      999,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "uninterpretedOption",
+			},
+		},
+		ExtensionRanges: [][2]protoreflect.FieldNumber{{1000, 536870912}},
+	},
+	{
+		Name: "ServiceOptions",
+		Fields: []prototype.Field{
+			{
+				Name:        "deprecated",
+				Number:      33,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "deprecated",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "uninterpreted_option",
+				Number:      999,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "uninterpretedOption",
+			},
+		},
+		ExtensionRanges: [][2]protoreflect.FieldNumber{{1000, 536870912}},
+	},
+	{
+		Name: "MethodOptions",
+		Fields: []prototype.Field{
+			{
+				Name:        "deprecated",
+				Number:      33,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "deprecated",
+				Default:     protoreflect.ValueOf(bool(false)),
+			},
+			{
+				Name:        "idempotency_level",
+				Number:      34,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.EnumKind,
+				JSONName:    "idempotencyLevel",
+				Default:     protoreflect.ValueOf(string("IDEMPOTENCY_UNKNOWN")),
+			},
+			{
+				Name:        "uninterpreted_option",
+				Number:      999,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "uninterpretedOption",
+			},
+		},
+		ExtensionRanges: [][2]protoreflect.FieldNumber{{1000, 536870912}},
+	},
+	{
+		Name: "UninterpretedOption",
+		Fields: []prototype.Field{
+			{
+				Name:        "name",
+				Number:      2,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "name",
+			},
+			{
+				Name:        "identifier_value",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "identifierValue",
+			},
+			{
+				Name:        "positive_int_value",
+				Number:      4,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Uint64Kind,
+				JSONName:    "positiveIntValue",
+			},
+			{
+				Name:        "negative_int_value",
+				Number:      5,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int64Kind,
+				JSONName:    "negativeIntValue",
+			},
+			{
+				Name:        "double_value",
+				Number:      6,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.DoubleKind,
+				JSONName:    "doubleValue",
+			},
+			{
+				Name:        "string_value",
+				Number:      7,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.BytesKind,
+				JSONName:    "stringValue",
+			},
+			{
+				Name:        "aggregate_value",
+				Number:      8,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "aggregateValue",
+			},
+		},
+	},
+	{
+		Name: "SourceCodeInfo",
+		Fields: []prototype.Field{
+			{
+				Name:        "location",
+				Number:      1,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "location",
+			},
+		},
+	},
+	{
+		Name: "GeneratedCodeInfo",
+		Fields: []prototype.Field{
+			{
+				Name:        "annotation",
+				Number:      1,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "annotation",
+			},
+		},
+	},
+	{
+		Name: "ExtensionRange",
+		Fields: []prototype.Field{
+			{
+				Name:        "start",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "start",
+			},
+			{
+				Name:        "end",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "end",
+			},
+			{
+				Name:        "options",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "options",
+			},
+		},
+	},
+	{
+		Name: "ReservedRange",
+		Fields: []prototype.Field{
+			{
+				Name:        "start",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "start",
+			},
+			{
+				Name:        "end",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "end",
+			},
+		},
+	},
+	{
+		Name: "EnumReservedRange",
+		Fields: []prototype.Field{
+			{
+				Name:        "start",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "start",
+			},
+			{
+				Name:        "end",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "end",
+			},
+		},
+	},
+	{
+		Name: "NamePart",
+		Fields: []prototype.Field{
+			{
+				Name:        "name_part",
+				Number:      1,
+				Cardinality: protoreflect.Required,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "namePart",
+			},
+			{
+				Name:        "is_extension",
+				Number:      2,
+				Cardinality: protoreflect.Required,
+				Kind:        protoreflect.BoolKind,
+				JSONName:    "isExtension",
+			},
+		},
+	},
+	{
+		Name: "Location",
+		Fields: []prototype.Field{
+			{
+				Name:        "path",
+				Number:      1,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "path",
+			},
+			{
+				Name:        "span",
+				Number:      2,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "span",
+			},
+			{
+				Name:        "leading_comments",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "leadingComments",
+			},
+			{
+				Name:        "trailing_comments",
+				Number:      4,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "trailingComments",
+			},
+			{
+				Name:        "leading_detached_comments",
+				Number:      6,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "leadingDetachedComments",
+			},
+		},
+	},
+	{
+		Name: "Annotation",
+		Fields: []prototype.Field{
+			{
+				Name:        "path",
+				Number:      1,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "path",
+			},
+			{
+				Name:        "source_file",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "sourceFile",
+			},
+			{
+				Name:        "begin",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "begin",
+			},
+			{
+				Name:        "end",
+				Number:      4,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "end",
+			},
+		},
+	},
+}

+ 883 - 0
types/descriptor/descriptor.proto

@@ -0,0 +1,883 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc.  All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+//     * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+//     * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+//     * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+// Author: kenton@google.com (Kenton Varda)
+//  Based on original Protocol Buffers design by
+//  Sanjay Ghemawat, Jeff Dean, and others.
+//
+// The messages in this file describe the definitions found in .proto files.
+// A valid .proto file can be translated directly to a FileDescriptorProto
+// without any other information (e.g. without reading its imports).
+
+
+syntax = "proto2";
+
+package google.protobuf;
+option go_package = "github.com/golang/protobuf/protoc-gen-go/descriptor;descriptor";
+option java_package = "com.google.protobuf";
+option java_outer_classname = "DescriptorProtos";
+option csharp_namespace = "Google.Protobuf.Reflection";
+option objc_class_prefix = "GPB";
+option cc_enable_arenas = true;
+
+// descriptor.proto must be optimized for speed because reflection-based
+// algorithms don't work during bootstrapping.
+option optimize_for = SPEED;
+
+// The protocol compiler can output a FileDescriptorSet containing the .proto
+// files it parses.
+message FileDescriptorSet {
+  repeated FileDescriptorProto file = 1;
+}
+
+// Describes a complete .proto file.
+message FileDescriptorProto {
+  optional string name = 1;       // file name, relative to root of source tree
+  optional string package = 2;    // e.g. "foo", "foo.bar", etc.
+
+  // Names of files imported by this file.
+  repeated string dependency = 3;
+  // Indexes of the public imported files in the dependency list above.
+  repeated int32 public_dependency = 10;
+  // Indexes of the weak imported files in the dependency list.
+  // For Google-internal migration only. Do not use.
+  repeated int32 weak_dependency = 11;
+
+  // All top-level definitions in this file.
+  repeated DescriptorProto message_type = 4;
+  repeated EnumDescriptorProto enum_type = 5;
+  repeated ServiceDescriptorProto service = 6;
+  repeated FieldDescriptorProto extension = 7;
+
+  optional FileOptions options = 8;
+
+  // This field contains optional information about the original source code.
+  // You may safely remove this entire field without harming runtime
+  // functionality of the descriptors -- the information is needed only by
+  // development tools.
+  optional SourceCodeInfo source_code_info = 9;
+
+  // The syntax of the proto file.
+  // The supported values are "proto2" and "proto3".
+  optional string syntax = 12;
+}
+
+// Describes a message type.
+message DescriptorProto {
+  optional string name = 1;
+
+  repeated FieldDescriptorProto field = 2;
+  repeated FieldDescriptorProto extension = 6;
+
+  repeated DescriptorProto nested_type = 3;
+  repeated EnumDescriptorProto enum_type = 4;
+
+  message ExtensionRange {
+    optional int32 start = 1;
+    optional int32 end = 2;
+
+    optional ExtensionRangeOptions options = 3;
+  }
+  repeated ExtensionRange extension_range = 5;
+
+  repeated OneofDescriptorProto oneof_decl = 8;
+
+  optional MessageOptions options = 7;
+
+  // Range of reserved tag numbers. Reserved tag numbers may not be used by
+  // fields or extension ranges in the same message. Reserved ranges may
+  // not overlap.
+  message ReservedRange {
+    optional int32 start = 1; // Inclusive.
+    optional int32 end = 2;   // Exclusive.
+  }
+  repeated ReservedRange reserved_range = 9;
+  // Reserved field names, which may not be used by fields in the same message.
+  // A given name may only be reserved once.
+  repeated string reserved_name = 10;
+}
+
+message ExtensionRangeOptions {
+  // The parser stores options it doesn't recognize here. See above.
+  repeated UninterpretedOption uninterpreted_option = 999;
+
+  // Clients can define custom options in extensions of this message. See above.
+  extensions 1000 to max;
+}
+
+// Describes a field within a message.
+message FieldDescriptorProto {
+  enum Type {
+    // 0 is reserved for errors.
+    // Order is weird for historical reasons.
+    TYPE_DOUBLE         = 1;
+    TYPE_FLOAT          = 2;
+    // Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
+    // negative values are likely.
+    TYPE_INT64          = 3;
+    TYPE_UINT64         = 4;
+    // Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
+    // negative values are likely.
+    TYPE_INT32          = 5;
+    TYPE_FIXED64        = 6;
+    TYPE_FIXED32        = 7;
+    TYPE_BOOL           = 8;
+    TYPE_STRING         = 9;
+    // Tag-delimited aggregate.
+    // Group type is deprecated and not supported in proto3. However, Proto3
+    // implementations should still be able to parse the group wire format and
+    // treat group fields as unknown fields.
+    TYPE_GROUP          = 10;
+    TYPE_MESSAGE        = 11;  // Length-delimited aggregate.
+
+    // New in version 2.
+    TYPE_BYTES          = 12;
+    TYPE_UINT32         = 13;
+    TYPE_ENUM           = 14;
+    TYPE_SFIXED32       = 15;
+    TYPE_SFIXED64       = 16;
+    TYPE_SINT32         = 17;  // Uses ZigZag encoding.
+    TYPE_SINT64         = 18;  // Uses ZigZag encoding.
+  };
+
+  enum Label {
+    // 0 is reserved for errors
+    LABEL_OPTIONAL      = 1;
+    LABEL_REQUIRED      = 2;
+    LABEL_REPEATED      = 3;
+  };
+
+  optional string name = 1;
+  optional int32 number = 3;
+  optional Label label = 4;
+
+  // If type_name is set, this need not be set.  If both this and type_name
+  // are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
+  optional Type type = 5;
+
+  // For message and enum types, this is the name of the type.  If the name
+  // starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
+  // rules are used to find the type (i.e. first the nested types within this
+  // message are searched, then within the parent, on up to the root
+  // namespace).
+  optional string type_name = 6;
+
+  // For extensions, this is the name of the type being extended.  It is
+  // resolved in the same manner as type_name.
+  optional string extendee = 2;
+
+  // For numeric types, contains the original text representation of the value.
+  // For booleans, "true" or "false".
+  // For strings, contains the default text contents (not escaped in any way).
+  // For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
+  // TODO(kenton):  Base-64 encode?
+  optional string default_value = 7;
+
+  // If set, gives the index of a oneof in the containing type's oneof_decl
+  // list.  This field is a member of that oneof.
+  optional int32 oneof_index = 9;
+
+  // JSON name of this field. The value is set by protocol compiler. If the
+  // user has set a "json_name" option on this field, that option's value
+  // will be used. Otherwise, it's deduced from the field's name by converting
+  // it to camelCase.
+  optional string json_name = 10;
+
+  optional FieldOptions options = 8;
+}
+
+// Describes a oneof.
+message OneofDescriptorProto {
+  optional string name = 1;
+  optional OneofOptions options = 2;
+}
+
+// Describes an enum type.
+message EnumDescriptorProto {
+  optional string name = 1;
+
+  repeated EnumValueDescriptorProto value = 2;
+
+  optional EnumOptions options = 3;
+
+  // Range of reserved numeric values. Reserved values may not be used by
+  // entries in the same enum. Reserved ranges may not overlap.
+  //
+  // Note that this is distinct from DescriptorProto.ReservedRange in that it
+  // is inclusive such that it can appropriately represent the entire int32
+  // domain.
+  message EnumReservedRange {
+    optional int32 start = 1; // Inclusive.
+    optional int32 end = 2;   // Inclusive.
+  }
+
+  // Range of reserved numeric values. Reserved numeric values may not be used
+  // by enum values in the same enum declaration. Reserved ranges may not
+  // overlap.
+  repeated EnumReservedRange reserved_range = 4;
+
+  // Reserved enum value names, which may not be reused. A given name may only
+  // be reserved once.
+  repeated string reserved_name = 5;
+}
+
+// Describes a value within an enum.
+message EnumValueDescriptorProto {
+  optional string name = 1;
+  optional int32 number = 2;
+
+  optional EnumValueOptions options = 3;
+}
+
+// Describes a service.
+message ServiceDescriptorProto {
+  optional string name = 1;
+  repeated MethodDescriptorProto method = 2;
+
+  optional ServiceOptions options = 3;
+}
+
+// Describes a method of a service.
+message MethodDescriptorProto {
+  optional string name = 1;
+
+  // Input and output type names.  These are resolved in the same way as
+  // FieldDescriptorProto.type_name, but must refer to a message type.
+  optional string input_type = 2;
+  optional string output_type = 3;
+
+  optional MethodOptions options = 4;
+
+  // Identifies if client streams multiple client messages
+  optional bool client_streaming = 5 [default=false];
+  // Identifies if server streams multiple server messages
+  optional bool server_streaming = 6 [default=false];
+}
+
+
+// ===================================================================
+// Options
+
+// Each of the definitions above may have "options" attached.  These are
+// just annotations which may cause code to be generated slightly differently
+// or may contain hints for code that manipulates protocol messages.
+//
+// Clients may define custom options as extensions of the *Options messages.
+// These extensions may not yet be known at parsing time, so the parser cannot
+// store the values in them.  Instead it stores them in a field in the *Options
+// message called uninterpreted_option. This field must have the same name
+// across all *Options messages. We then use this field to populate the
+// extensions when we build a descriptor, at which point all protos have been
+// parsed and so all extensions are known.
+//
+// Extension numbers for custom options may be chosen as follows:
+// * For options which will only be used within a single application or
+//   organization, or for experimental options, use field numbers 50000
+//   through 99999.  It is up to you to ensure that you do not use the
+//   same number for multiple options.
+// * For options which will be published and used publicly by multiple
+//   independent entities, e-mail protobuf-global-extension-registry@google.com
+//   to reserve extension numbers. Simply provide your project name (e.g.
+//   Objective-C plugin) and your project website (if available) -- there's no
+//   need to explain how you intend to use them. Usually you only need one
+//   extension number. You can declare multiple options with only one extension
+//   number by putting them in a sub-message. See the Custom Options section of
+//   the docs for examples:
+//   https://developers.google.com/protocol-buffers/docs/proto#options
+//   If this turns out to be popular, a web service will be set up
+//   to automatically assign option numbers.
+
+
+message FileOptions {
+
+  // Sets the Java package where classes generated from this .proto will be
+  // placed.  By default, the proto package is used, but this is often
+  // inappropriate because proto packages do not normally start with backwards
+  // domain names.
+  optional string java_package = 1;
+
+
+  // If set, all the classes from the .proto file are wrapped in a single
+  // outer class with the given name.  This applies to both Proto1
+  // (equivalent to the old "--one_java_file" option) and Proto2 (where
+  // a .proto always translates to a single class, but you may want to
+  // explicitly choose the class name).
+  optional string java_outer_classname = 8;
+
+  // If set true, then the Java code generator will generate a separate .java
+  // file for each top-level message, enum, and service defined in the .proto
+  // file.  Thus, these types will *not* be nested inside the outer class
+  // named by java_outer_classname.  However, the outer class will still be
+  // generated to contain the file's getDescriptor() method as well as any
+  // top-level extensions defined in the file.
+  optional bool java_multiple_files = 10 [default=false];
+
+  // This option does nothing.
+  optional bool java_generate_equals_and_hash = 20 [deprecated=true];
+
+  // If set true, then the Java2 code generator will generate code that
+  // throws an exception whenever an attempt is made to assign a non-UTF-8
+  // byte sequence to a string field.
+  // Message reflection will do the same.
+  // However, an extension field still accepts non-UTF-8 byte sequences.
+  // This option has no effect on when used with the lite runtime.
+  optional bool java_string_check_utf8 = 27 [default=false];
+
+
+  // Generated classes can be optimized for speed or code size.
+  enum OptimizeMode {
+    SPEED = 1;        // Generate complete code for parsing, serialization,
+                      // etc.
+    CODE_SIZE = 2;    // Use ReflectionOps to implement these methods.
+    LITE_RUNTIME = 3; // Generate code using MessageLite and the lite runtime.
+  }
+  optional OptimizeMode optimize_for = 9 [default=SPEED];
+
+  // Sets the Go package where structs generated from this .proto will be
+  // placed. If omitted, the Go package will be derived from the following:
+  //   - The basename of the package import path, if provided.
+  //   - Otherwise, the package statement in the .proto file, if present.
+  //   - Otherwise, the basename of the .proto file, without extension.
+  optional string go_package = 11;
+
+
+
+  // Should generic services be generated in each language?  "Generic" services
+  // are not specific to any particular RPC system.  They are generated by the
+  // main code generators in each language (without additional plugins).
+  // Generic services were the only kind of service generation supported by
+  // early versions of google.protobuf.
+  //
+  // Generic services are now considered deprecated in favor of using plugins
+  // that generate code specific to your particular RPC system.  Therefore,
+  // these default to false.  Old code which depends on generic services should
+  // explicitly set them to true.
+  optional bool cc_generic_services = 16 [default=false];
+  optional bool java_generic_services = 17 [default=false];
+  optional bool py_generic_services = 18 [default=false];
+  optional bool php_generic_services = 42 [default=false];
+
+  // Is this file deprecated?
+  // Depending on the target platform, this can emit Deprecated annotations
+  // for everything in the file, or it will be completely ignored; in the very
+  // least, this is a formalization for deprecating files.
+  optional bool deprecated = 23 [default=false];
+
+  // Enables the use of arenas for the proto messages in this file. This applies
+  // only to generated classes for C++.
+  optional bool cc_enable_arenas = 31 [default=false];
+
+
+  // Sets the objective c class prefix which is prepended to all objective c
+  // generated classes from this .proto. There is no default.
+  optional string objc_class_prefix = 36;
+
+  // Namespace for generated classes; defaults to the package.
+  optional string csharp_namespace = 37;
+
+  // By default Swift generators will take the proto package and CamelCase it
+  // replacing '.' with underscore and use that to prefix the types/symbols
+  // defined. When this options is provided, they will use this value instead
+  // to prefix the types/symbols defined.
+  optional string swift_prefix = 39;
+
+  // Sets the php class prefix which is prepended to all php generated classes
+  // from this .proto. Default is empty.
+  optional string php_class_prefix = 40;
+
+  // Use this option to change the namespace of php generated classes. Default
+  // is empty. When this option is empty, the package name will be used for
+  // determining the namespace.
+  optional string php_namespace = 41;
+
+
+  // Use this option to change the namespace of php generated metadata classes.
+  // Default is empty. When this option is empty, the proto file name will be used
+  // for determining the namespace.
+  optional string php_metadata_namespace = 44;
+
+  // Use this option to change the package of ruby generated classes. Default
+  // is empty. When this option is not set, the package name will be used for
+  // determining the ruby package.
+  optional string ruby_package = 45;
+
+  // The parser stores options it doesn't recognize here.
+  // See the documentation for the "Options" section above.
+  repeated UninterpretedOption uninterpreted_option = 999;
+
+  // Clients can define custom options in extensions of this message.
+  // See the documentation for the "Options" section above.
+  extensions 1000 to max;
+
+  reserved 38;
+}
+
+message MessageOptions {
+  // Set true to use the old proto1 MessageSet wire format for extensions.
+  // This is provided for backwards-compatibility with the MessageSet wire
+  // format.  You should not use this for any other reason:  It's less
+  // efficient, has fewer features, and is more complicated.
+  //
+  // The message must be defined exactly as follows:
+  //   message Foo {
+  //     option message_set_wire_format = true;
+  //     extensions 4 to max;
+  //   }
+  // Note that the message cannot have any defined fields; MessageSets only
+  // have extensions.
+  //
+  // All extensions of your type must be singular messages; e.g. they cannot
+  // be int32s, enums, or repeated messages.
+  //
+  // Because this is an option, the above two restrictions are not enforced by
+  // the protocol compiler.
+  optional bool message_set_wire_format = 1 [default=false];
+
+  // Disables the generation of the standard "descriptor()" accessor, which can
+  // conflict with a field of the same name.  This is meant to make migration
+  // from proto1 easier; new code should avoid fields named "descriptor".
+  optional bool no_standard_descriptor_accessor = 2 [default=false];
+
+  // Is this message deprecated?
+  // Depending on the target platform, this can emit Deprecated annotations
+  // for the message, or it will be completely ignored; in the very least,
+  // this is a formalization for deprecating messages.
+  optional bool deprecated = 3 [default=false];
+
+  // Whether the message is an automatically generated map entry type for the
+  // maps field.
+  //
+  // For maps fields:
+  //     map<KeyType, ValueType> map_field = 1;
+  // The parsed descriptor looks like:
+  //     message MapFieldEntry {
+  //         option map_entry = true;
+  //         optional KeyType key = 1;
+  //         optional ValueType value = 2;
+  //     }
+  //     repeated MapFieldEntry map_field = 1;
+  //
+  // Implementations may choose not to generate the map_entry=true message, but
+  // use a native map in the target language to hold the keys and values.
+  // The reflection APIs in such implementions still need to work as
+  // if the field is a repeated message field.
+  //
+  // NOTE: Do not set the option in .proto files. Always use the maps syntax
+  // instead. The option should only be implicitly set by the proto compiler
+  // parser.
+  optional bool map_entry = 7;
+
+  reserved 8;  // javalite_serializable
+  reserved 9;  // javanano_as_lite
+
+  // The parser stores options it doesn't recognize here. See above.
+  repeated UninterpretedOption uninterpreted_option = 999;
+
+  // Clients can define custom options in extensions of this message. See above.
+  extensions 1000 to max;
+}
+
+message FieldOptions {
+  // The ctype option instructs the C++ code generator to use a different
+  // representation of the field than it normally would.  See the specific
+  // options below.  This option is not yet implemented in the open source
+  // release -- sorry, we'll try to include it in a future version!
+  optional CType ctype = 1 [default = STRING];
+  enum CType {
+    // Default mode.
+    STRING = 0;
+
+    CORD = 1;
+
+    STRING_PIECE = 2;
+  }
+  // The packed option can be enabled for repeated primitive fields to enable
+  // a more efficient representation on the wire. Rather than repeatedly
+  // writing the tag and type for each element, the entire array is encoded as
+  // a single length-delimited blob. In proto3, only explicit setting it to
+  // false will avoid using packed encoding.
+  optional bool packed = 2;
+
+  // The jstype option determines the JavaScript type used for values of the
+  // field.  The option is permitted only for 64 bit integral and fixed types
+  // (int64, uint64, sint64, fixed64, sfixed64).  A field with jstype JS_STRING
+  // is represented as JavaScript string, which avoids loss of precision that
+  // can happen when a large value is converted to a floating point JavaScript.
+  // Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
+  // use the JavaScript "number" type.  The behavior of the default option
+  // JS_NORMAL is implementation dependent.
+  //
+  // This option is an enum to permit additional types to be added, e.g.
+  // goog.math.Integer.
+  optional JSType jstype = 6 [default = JS_NORMAL];
+  enum JSType {
+    // Use the default type.
+    JS_NORMAL = 0;
+
+    // Use JavaScript strings.
+    JS_STRING = 1;
+
+    // Use JavaScript numbers.
+    JS_NUMBER = 2;
+  }
+
+  // Should this field be parsed lazily?  Lazy applies only to message-type
+  // fields.  It means that when the outer message is initially parsed, the
+  // inner message's contents will not be parsed but instead stored in encoded
+  // form.  The inner message will actually be parsed when it is first accessed.
+  //
+  // This is only a hint.  Implementations are free to choose whether to use
+  // eager or lazy parsing regardless of the value of this option.  However,
+  // setting this option true suggests that the protocol author believes that
+  // using lazy parsing on this field is worth the additional bookkeeping
+  // overhead typically needed to implement it.
+  //
+  // This option does not affect the public interface of any generated code;
+  // all method signatures remain the same.  Furthermore, thread-safety of the
+  // interface is not affected by this option; const methods remain safe to
+  // call from multiple threads concurrently, while non-const methods continue
+  // to require exclusive access.
+  //
+  //
+  // Note that implementations may choose not to check required fields within
+  // a lazy sub-message.  That is, calling IsInitialized() on the outer message
+  // may return true even if the inner message has missing required fields.
+  // This is necessary because otherwise the inner message would have to be
+  // parsed in order to perform the check, defeating the purpose of lazy
+  // parsing.  An implementation which chooses not to check required fields
+  // must be consistent about it.  That is, for any particular sub-message, the
+  // implementation must either *always* check its required fields, or *never*
+  // check its required fields, regardless of whether or not the message has
+  // been parsed.
+  optional bool lazy = 5 [default=false];
+
+  // Is this field deprecated?
+  // Depending on the target platform, this can emit Deprecated annotations
+  // for accessors, or it will be completely ignored; in the very least, this
+  // is a formalization for deprecating fields.
+  optional bool deprecated = 3 [default=false];
+
+  // For Google-internal migration only. Do not use.
+  optional bool weak = 10 [default=false];
+
+
+  // The parser stores options it doesn't recognize here. See above.
+  repeated UninterpretedOption uninterpreted_option = 999;
+
+  // Clients can define custom options in extensions of this message. See above.
+  extensions 1000 to max;
+
+  reserved 4;  // removed jtype
+}
+
+message OneofOptions {
+  // The parser stores options it doesn't recognize here. See above.
+  repeated UninterpretedOption uninterpreted_option = 999;
+
+  // Clients can define custom options in extensions of this message. See above.
+  extensions 1000 to max;
+}
+
+message EnumOptions {
+
+  // Set this option to true to allow mapping different tag names to the same
+  // value.
+  optional bool allow_alias = 2;
+
+  // Is this enum deprecated?
+  // Depending on the target platform, this can emit Deprecated annotations
+  // for the enum, or it will be completely ignored; in the very least, this
+  // is a formalization for deprecating enums.
+  optional bool deprecated = 3 [default=false];
+
+  reserved 5;  // javanano_as_lite
+
+  // The parser stores options it doesn't recognize here. See above.
+  repeated UninterpretedOption uninterpreted_option = 999;
+
+  // Clients can define custom options in extensions of this message. See above.
+  extensions 1000 to max;
+}
+
+message EnumValueOptions {
+  // Is this enum value deprecated?
+  // Depending on the target platform, this can emit Deprecated annotations
+  // for the enum value, or it will be completely ignored; in the very least,
+  // this is a formalization for deprecating enum values.
+  optional bool deprecated = 1 [default=false];
+
+  // The parser stores options it doesn't recognize here. See above.
+  repeated UninterpretedOption uninterpreted_option = 999;
+
+  // Clients can define custom options in extensions of this message. See above.
+  extensions 1000 to max;
+}
+
+message ServiceOptions {
+
+  // Note:  Field numbers 1 through 32 are reserved for Google's internal RPC
+  //   framework.  We apologize for hoarding these numbers to ourselves, but
+  //   we were already using them long before we decided to release Protocol
+  //   Buffers.
+
+  // Is this service deprecated?
+  // Depending on the target platform, this can emit Deprecated annotations
+  // for the service, or it will be completely ignored; in the very least,
+  // this is a formalization for deprecating services.
+  optional bool deprecated = 33 [default=false];
+
+  // The parser stores options it doesn't recognize here. See above.
+  repeated UninterpretedOption uninterpreted_option = 999;
+
+  // Clients can define custom options in extensions of this message. See above.
+  extensions 1000 to max;
+}
+
+message MethodOptions {
+
+  // Note:  Field numbers 1 through 32 are reserved for Google's internal RPC
+  //   framework.  We apologize for hoarding these numbers to ourselves, but
+  //   we were already using them long before we decided to release Protocol
+  //   Buffers.
+
+  // Is this method deprecated?
+  // Depending on the target platform, this can emit Deprecated annotations
+  // for the method, or it will be completely ignored; in the very least,
+  // this is a formalization for deprecating methods.
+  optional bool deprecated = 33 [default=false];
+
+  // Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
+  // or neither? HTTP based RPC implementation may choose GET verb for safe
+  // methods, and PUT verb for idempotent methods instead of the default POST.
+  enum IdempotencyLevel {
+    IDEMPOTENCY_UNKNOWN = 0;
+    NO_SIDE_EFFECTS     = 1; // implies idempotent
+    IDEMPOTENT          = 2; // idempotent, but may have side effects
+  }
+  optional IdempotencyLevel idempotency_level =
+      34 [default=IDEMPOTENCY_UNKNOWN];
+
+  // The parser stores options it doesn't recognize here. See above.
+  repeated UninterpretedOption uninterpreted_option = 999;
+
+  // Clients can define custom options in extensions of this message. See above.
+  extensions 1000 to max;
+}
+
+
+// A message representing a option the parser does not recognize. This only
+// appears in options protos created by the compiler::Parser class.
+// DescriptorPool resolves these when building Descriptor objects. Therefore,
+// options protos in descriptor objects (e.g. returned by Descriptor::options(),
+// or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
+// in them.
+message UninterpretedOption {
+  // The name of the uninterpreted option.  Each string represents a segment in
+  // a dot-separated name.  is_extension is true iff a segment represents an
+  // extension (denoted with parentheses in options specs in .proto files).
+  // E.g.,{ ["foo", false], ["bar.baz", true], ["qux", false] } represents
+  // "foo.(bar.baz).qux".
+  message NamePart {
+    required string name_part = 1;
+    required bool is_extension = 2;
+  }
+  repeated NamePart name = 2;
+
+  // The value of the uninterpreted option, in whatever type the tokenizer
+  // identified it as during parsing. Exactly one of these should be set.
+  optional string identifier_value = 3;
+  optional uint64 positive_int_value = 4;
+  optional int64 negative_int_value = 5;
+  optional double double_value = 6;
+  optional bytes string_value = 7;
+  optional string aggregate_value = 8;
+}
+
+// ===================================================================
+// Optional source code info
+
+// Encapsulates information about the original source file from which a
+// FileDescriptorProto was generated.
+message SourceCodeInfo {
+  // A Location identifies a piece of source code in a .proto file which
+  // corresponds to a particular definition.  This information is intended
+  // to be useful to IDEs, code indexers, documentation generators, and similar
+  // tools.
+  //
+  // For example, say we have a file like:
+  //   message Foo {
+  //     optional string foo = 1;
+  //   }
+  // Let's look at just the field definition:
+  //   optional string foo = 1;
+  //   ^       ^^     ^^  ^  ^^^
+  //   a       bc     de  f  ghi
+  // We have the following locations:
+  //   span   path               represents
+  //   [a,i)  [ 4, 0, 2, 0 ]     The whole field definition.
+  //   [a,b)  [ 4, 0, 2, 0, 4 ]  The label (optional).
+  //   [c,d)  [ 4, 0, 2, 0, 5 ]  The type (string).
+  //   [e,f)  [ 4, 0, 2, 0, 1 ]  The name (foo).
+  //   [g,h)  [ 4, 0, 2, 0, 3 ]  The number (1).
+  //
+  // Notes:
+  // - A location may refer to a repeated field itself (i.e. not to any
+  //   particular index within it).  This is used whenever a set of elements are
+  //   logically enclosed in a single code segment.  For example, an entire
+  //   extend block (possibly containing multiple extension definitions) will
+  //   have an outer location whose path refers to the "extensions" repeated
+  //   field without an index.
+  // - Multiple locations may have the same path.  This happens when a single
+  //   logical declaration is spread out across multiple places.  The most
+  //   obvious example is the "extend" block again -- there may be multiple
+  //   extend blocks in the same scope, each of which will have the same path.
+  // - A location's span is not always a subset of its parent's span.  For
+  //   example, the "extendee" of an extension declaration appears at the
+  //   beginning of the "extend" block and is shared by all extensions within
+  //   the block.
+  // - Just because a location's span is a subset of some other location's span
+  //   does not mean that it is a descendent.  For example, a "group" defines
+  //   both a type and a field in a single declaration.  Thus, the locations
+  //   corresponding to the type and field and their components will overlap.
+  // - Code which tries to interpret locations should probably be designed to
+  //   ignore those that it doesn't understand, as more types of locations could
+  //   be recorded in the future.
+  repeated Location location = 1;
+  message Location {
+    // Identifies which part of the FileDescriptorProto was defined at this
+    // location.
+    //
+    // Each element is a field number or an index.  They form a path from
+    // the root FileDescriptorProto to the place where the definition.  For
+    // example, this path:
+    //   [ 4, 3, 2, 7, 1 ]
+    // refers to:
+    //   file.message_type(3)  // 4, 3
+    //       .field(7)         // 2, 7
+    //       .name()           // 1
+    // This is because FileDescriptorProto.message_type has field number 4:
+    //   repeated DescriptorProto message_type = 4;
+    // and DescriptorProto.field has field number 2:
+    //   repeated FieldDescriptorProto field = 2;
+    // and FieldDescriptorProto.name has field number 1:
+    //   optional string name = 1;
+    //
+    // Thus, the above path gives the location of a field name.  If we removed
+    // the last element:
+    //   [ 4, 3, 2, 7 ]
+    // this path refers to the whole field declaration (from the beginning
+    // of the label to the terminating semicolon).
+    repeated int32 path = 1 [packed=true];
+
+    // Always has exactly three or four elements: start line, start column,
+    // end line (optional, otherwise assumed same as start line), end column.
+    // These are packed into a single field for efficiency.  Note that line
+    // and column numbers are zero-based -- typically you will want to add
+    // 1 to each before displaying to a user.
+    repeated int32 span = 2 [packed=true];
+
+    // If this SourceCodeInfo represents a complete declaration, these are any
+    // comments appearing before and after the declaration which appear to be
+    // attached to the declaration.
+    //
+    // A series of line comments appearing on consecutive lines, with no other
+    // tokens appearing on those lines, will be treated as a single comment.
+    //
+    // leading_detached_comments will keep paragraphs of comments that appear
+    // before (but not connected to) the current element. Each paragraph,
+    // separated by empty lines, will be one comment element in the repeated
+    // field.
+    //
+    // Only the comment content is provided; comment markers (e.g. //) are
+    // stripped out.  For block comments, leading whitespace and an asterisk
+    // will be stripped from the beginning of each line other than the first.
+    // Newlines are included in the output.
+    //
+    // Examples:
+    //
+    //   optional int32 foo = 1;  // Comment attached to foo.
+    //   // Comment attached to bar.
+    //   optional int32 bar = 2;
+    //
+    //   optional string baz = 3;
+    //   // Comment attached to baz.
+    //   // Another line attached to baz.
+    //
+    //   // Comment attached to qux.
+    //   //
+    //   // Another line attached to qux.
+    //   optional double qux = 4;
+    //
+    //   // Detached comment for corge. This is not leading or trailing comments
+    //   // to qux or corge because there are blank lines separating it from
+    //   // both.
+    //
+    //   // Detached comment for corge paragraph 2.
+    //
+    //   optional string corge = 5;
+    //   /* Block comment attached
+    //    * to corge.  Leading asterisks
+    //    * will be removed. */
+    //   /* Block comment attached to
+    //    * grault. */
+    //   optional int32 grault = 6;
+    //
+    //   // ignored detached comments.
+    optional string leading_comments = 3;
+    optional string trailing_comments = 4;
+    repeated string leading_detached_comments = 6;
+  }
+}
+
+// Describes the relationship between generated code and its original source
+// file. A GeneratedCodeInfo message is associated with only one generated
+// source file, but may contain references to different source .proto files.
+message GeneratedCodeInfo {
+  // An Annotation connects some span of text in generated code to an element
+  // of its generating .proto file.
+  repeated Annotation annotation = 1;
+  message Annotation {
+    // Identifies the element in the original source .proto file. This field
+    // is formatted the same as SourceCodeInfo.Location.path.
+    repeated int32 path = 1 [packed=true];
+
+    // Identifies the filesystem path to the original source .proto.
+    optional string source_file = 2;
+
+    // Identifies the starting offset in bytes in the generated code
+    // that relates to the identified object.
+    optional int32 begin = 3;
+
+    // Identifies the ending offset in bytes in the generated code that
+    // relates to the identified offset. The end offset should be one past
+    // the last relevant byte (so the length of the text = end - begin).
+    optional int32 end = 4;
+  }
+}

+ 521 - 0
types/plugin/plugin.pb.go

@@ -0,0 +1,521 @@
+// Code generated by protoc-gen-go. DO NOT EDIT.
+// source: google/protobuf/compiler/plugin.proto
+
+package plugin_go
+
+import (
+	protoreflect "github.com/golang/protobuf/v2/reflect/protoreflect"
+	prototype "github.com/golang/protobuf/v2/reflect/prototype"
+	protoimpl "github.com/golang/protobuf/v2/runtime/protoimpl"
+	descriptor "github.com/golang/protobuf/v2/types/descriptor"
+)
+
+// The version number of protocol compiler.
+type Version struct {
+	Major *int32 `protobuf:"varint,1,opt,name=major" json:"major,omitempty"`
+	Minor *int32 `protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"`
+	Patch *int32 `protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"`
+	// A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
+	// be empty for mainline stable releases.
+	Suffix               *string  `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+type xxx_Version struct{ m *Version }
+
+func (m *Version) ProtoReflect() protoreflect.Message {
+	return xxx_Version{m}
+}
+func (m xxx_Version) Type() protoreflect.MessageType {
+	return xxx_Plugin_ProtoFile_MessageTypes[0].Type
+}
+func (m xxx_Version) KnownFields() protoreflect.KnownFields {
+	return xxx_Plugin_ProtoFile_MessageTypes[0].KnownFieldsOf(m.m)
+}
+func (m xxx_Version) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Plugin_ProtoFile_MessageTypes[0].UnknownFieldsOf(m.m)
+}
+func (m xxx_Version) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_Version) ProtoMutable() {}
+
+func (m *Version) Reset()         { *m = Version{} }
+func (m *Version) String() string { return "not implemented" }
+func (*Version) ProtoMessage()    {}
+func (*Version) Descriptor() ([]byte, []int) {
+	return fileDescriptor_3562add825dafed5, []int{0}
+}
+
+func (m *Version) GetMajor() int32 {
+	if m != nil && m.Major != nil {
+		return *m.Major
+	}
+	return 0
+}
+
+func (m *Version) GetMinor() int32 {
+	if m != nil && m.Minor != nil {
+		return *m.Minor
+	}
+	return 0
+}
+
+func (m *Version) GetPatch() int32 {
+	if m != nil && m.Patch != nil {
+		return *m.Patch
+	}
+	return 0
+}
+
+func (m *Version) GetSuffix() string {
+	if m != nil && m.Suffix != nil {
+		return *m.Suffix
+	}
+	return ""
+}
+
+// An encoded CodeGeneratorRequest is written to the plugin's stdin.
+type CodeGeneratorRequest struct {
+	// The .proto files that were explicitly listed on the command-line.  The
+	// code generator should generate code only for these files.  Each file's
+	// descriptor will be included in proto_file, below.
+	FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate,json=fileToGenerate" json:"file_to_generate,omitempty"`
+	// The generator parameter passed on the command-line.
+	Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"`
+	// FileDescriptorProtos for all files in files_to_generate and everything
+	// they import.  The files will appear in topological order, so each file
+	// appears before any file that imports it.
+	//
+	// protoc guarantees that all proto_files will be written after
+	// the fields above, even though this is not technically guaranteed by the
+	// protobuf wire format.  This theoretically could allow a plugin to stream
+	// in the FileDescriptorProtos and handle them one by one rather than read
+	// the entire set into memory at once.  However, as of this writing, this
+	// is not similarly optimized on protoc's end -- it will store all fields in
+	// memory at once before sending them to the plugin.
+	//
+	// Type names of fields and extensions in the FileDescriptorProto are always
+	// fully qualified.
+	ProtoFile []*descriptor.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file,json=protoFile" json:"proto_file,omitempty"`
+	// The version number of protocol compiler.
+	CompilerVersion      *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+type xxx_CodeGeneratorRequest struct{ m *CodeGeneratorRequest }
+
+func (m *CodeGeneratorRequest) ProtoReflect() protoreflect.Message {
+	return xxx_CodeGeneratorRequest{m}
+}
+func (m xxx_CodeGeneratorRequest) Type() protoreflect.MessageType {
+	return xxx_Plugin_ProtoFile_MessageTypes[1].Type
+}
+func (m xxx_CodeGeneratorRequest) KnownFields() protoreflect.KnownFields {
+	return xxx_Plugin_ProtoFile_MessageTypes[1].KnownFieldsOf(m.m)
+}
+func (m xxx_CodeGeneratorRequest) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Plugin_ProtoFile_MessageTypes[1].UnknownFieldsOf(m.m)
+}
+func (m xxx_CodeGeneratorRequest) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_CodeGeneratorRequest) ProtoMutable() {}
+
+func (m *CodeGeneratorRequest) Reset()         { *m = CodeGeneratorRequest{} }
+func (m *CodeGeneratorRequest) String() string { return "not implemented" }
+func (*CodeGeneratorRequest) ProtoMessage()    {}
+func (*CodeGeneratorRequest) Descriptor() ([]byte, []int) {
+	return fileDescriptor_3562add825dafed5, []int{1}
+}
+
+func (m *CodeGeneratorRequest) GetFileToGenerate() []string {
+	if m != nil {
+		return m.FileToGenerate
+	}
+	return nil
+}
+
+func (m *CodeGeneratorRequest) GetParameter() string {
+	if m != nil && m.Parameter != nil {
+		return *m.Parameter
+	}
+	return ""
+}
+
+func (m *CodeGeneratorRequest) GetProtoFile() []*descriptor.FileDescriptorProto {
+	if m != nil {
+		return m.ProtoFile
+	}
+	return nil
+}
+
+func (m *CodeGeneratorRequest) GetCompilerVersion() *Version {
+	if m != nil {
+		return m.CompilerVersion
+	}
+	return nil
+}
+
+// The plugin writes an encoded CodeGeneratorResponse to stdout.
+type CodeGeneratorResponse struct {
+	// Error message.  If non-empty, code generation failed.  The plugin process
+	// should exit with status code zero even if it reports an error in this way.
+	//
+	// This should be used to indicate errors in .proto files which prevent the
+	// code generator from generating correct code.  Errors which indicate a
+	// problem in protoc itself -- such as the input CodeGeneratorRequest being
+	// unparseable -- should be reported by writing a message to stderr and
+	// exiting with a non-zero status code.
+	Error                *string                       `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
+	File                 []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
+	XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
+	XXX_unrecognized     []byte                        `json:"-"`
+	XXX_sizecache        int32                         `json:"-"`
+}
+
+type xxx_CodeGeneratorResponse struct{ m *CodeGeneratorResponse }
+
+func (m *CodeGeneratorResponse) ProtoReflect() protoreflect.Message {
+	return xxx_CodeGeneratorResponse{m}
+}
+func (m xxx_CodeGeneratorResponse) Type() protoreflect.MessageType {
+	return xxx_Plugin_ProtoFile_MessageTypes[2].Type
+}
+func (m xxx_CodeGeneratorResponse) KnownFields() protoreflect.KnownFields {
+	return xxx_Plugin_ProtoFile_MessageTypes[2].KnownFieldsOf(m.m)
+}
+func (m xxx_CodeGeneratorResponse) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Plugin_ProtoFile_MessageTypes[2].UnknownFieldsOf(m.m)
+}
+func (m xxx_CodeGeneratorResponse) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_CodeGeneratorResponse) ProtoMutable() {}
+
+func (m *CodeGeneratorResponse) Reset()         { *m = CodeGeneratorResponse{} }
+func (m *CodeGeneratorResponse) String() string { return "not implemented" }
+func (*CodeGeneratorResponse) ProtoMessage()    {}
+func (*CodeGeneratorResponse) Descriptor() ([]byte, []int) {
+	return fileDescriptor_3562add825dafed5, []int{2}
+}
+
+func (m *CodeGeneratorResponse) GetError() string {
+	if m != nil && m.Error != nil {
+		return *m.Error
+	}
+	return ""
+}
+
+func (m *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File {
+	if m != nil {
+		return m.File
+	}
+	return nil
+}
+
+// Represents a single generated file.
+type CodeGeneratorResponse_File struct {
+	// The file name, relative to the output directory.  The name must not
+	// contain "." or ".." components and must be relative, not be absolute (so,
+	// the file cannot lie outside the output directory).  "/" must be used as
+	// the path separator, not "\".
+	//
+	// If the name is omitted, the content will be appended to the previous
+	// file.  This allows the generator to break large files into small chunks,
+	// and allows the generated text to be streamed back to protoc so that large
+	// files need not reside completely in memory at one time.  Note that as of
+	// this writing protoc does not optimize for this -- it will read the entire
+	// CodeGeneratorResponse before writing files to disk.
+	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
+	// If non-empty, indicates that the named file should already exist, and the
+	// content here is to be inserted into that file at a defined insertion
+	// point.  This feature allows a code generator to extend the output
+	// produced by another code generator.  The original generator may provide
+	// insertion points by placing special annotations in the file that look
+	// like:
+	//   @@protoc_insertion_point(NAME)
+	// The annotation can have arbitrary text before and after it on the line,
+	// which allows it to be placed in a comment.  NAME should be replaced with
+	// an identifier naming the point -- this is what other generators will use
+	// as the insertion_point.  Code inserted at this point will be placed
+	// immediately above the line containing the insertion point (thus multiple
+	// insertions to the same point will come out in the order they were added).
+	// The double-@ is intended to make it unlikely that the generated code
+	// could contain things that look like insertion points by accident.
+	//
+	// For example, the C++ code generator places the following line in the
+	// .pb.h files that it generates:
+	//   // @@protoc_insertion_point(namespace_scope)
+	// This line appears within the scope of the file's package namespace, but
+	// outside of any particular class.  Another plugin can then specify the
+	// insertion_point "namespace_scope" to generate additional classes or
+	// other declarations that should be placed in this scope.
+	//
+	// Note that if the line containing the insertion point begins with
+	// whitespace, the same whitespace will be added to every line of the
+	// inserted text.  This is useful for languages like Python, where
+	// indentation matters.  In these languages, the insertion point comment
+	// should be indented the same amount as any inserted code will need to be
+	// in order to work correctly in that context.
+	//
+	// The code generator that generates the initial file and the one which
+	// inserts into it must both run as part of a single invocation of protoc.
+	// Code generators are executed in the order in which they appear on the
+	// command line.
+	//
+	// If |insertion_point| is present, |name| must also be present.
+	InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"`
+	// The file contents.
+	Content              *string  `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
+	XXX_NoUnkeyedLiteral struct{} `json:"-"`
+	XXX_unrecognized     []byte   `json:"-"`
+	XXX_sizecache        int32    `json:"-"`
+}
+
+type xxx_CodeGeneratorResponse_File struct{ m *CodeGeneratorResponse_File }
+
+func (m *CodeGeneratorResponse_File) ProtoReflect() protoreflect.Message {
+	return xxx_CodeGeneratorResponse_File{m}
+}
+func (m xxx_CodeGeneratorResponse_File) Type() protoreflect.MessageType {
+	return xxx_Plugin_ProtoFile_MessageTypes[3].Type
+}
+func (m xxx_CodeGeneratorResponse_File) KnownFields() protoreflect.KnownFields {
+	return xxx_Plugin_ProtoFile_MessageTypes[3].KnownFieldsOf(m.m)
+}
+func (m xxx_CodeGeneratorResponse_File) UnknownFields() protoreflect.UnknownFields {
+	return xxx_Plugin_ProtoFile_MessageTypes[3].UnknownFieldsOf(m.m)
+}
+func (m xxx_CodeGeneratorResponse_File) Interface() protoreflect.ProtoMessage {
+	return m.m
+}
+func (m xxx_CodeGeneratorResponse_File) ProtoMutable() {}
+
+func (m *CodeGeneratorResponse_File) Reset()         { *m = CodeGeneratorResponse_File{} }
+func (m *CodeGeneratorResponse_File) String() string { return "not implemented" }
+func (*CodeGeneratorResponse_File) ProtoMessage()    {}
+func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int) {
+	return fileDescriptor_3562add825dafed5, []int{2, 0}
+}
+
+func (m *CodeGeneratorResponse_File) GetName() string {
+	if m != nil && m.Name != nil {
+		return *m.Name
+	}
+	return ""
+}
+
+func (m *CodeGeneratorResponse_File) GetInsertionPoint() string {
+	if m != nil && m.InsertionPoint != nil {
+		return *m.InsertionPoint
+	}
+	return ""
+}
+
+func (m *CodeGeneratorResponse_File) GetContent() string {
+	if m != nil && m.Content != nil {
+		return *m.Content
+	}
+	return ""
+}
+
+var fileDescriptor_3562add825dafed5 = []byte{
+	// 417 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcf, 0x6a, 0x14, 0x41,
+	0x10, 0xc6, 0x19, 0x77, 0x63, 0x98, 0x8a, 0x64, 0x43, 0x13, 0xa5, 0x09, 0x39, 0x8c, 0x8b, 0xe2,
+	0x5c, 0x32, 0x0b, 0xc1, 0x8b, 0x78, 0x4b, 0x44, 0x3d, 0x78, 0x58, 0x1a, 0xf1, 0x20, 0xc8, 0x30,
+	0x99, 0xd4, 0x74, 0x5a, 0x66, 0xba, 0xc6, 0xee, 0x1e, 0xf1, 0x49, 0x7d, 0x0f, 0xdf, 0x40, 0xfa,
+	0xcf, 0x24, 0xb2, 0xb8, 0xa7, 0xee, 0xef, 0x57, 0xd5, 0xd5, 0x55, 0x1f, 0x05, 0x2f, 0x25, 0x91,
+	0xec, 0x71, 0x33, 0x1a, 0x72, 0x74, 0x33, 0x75, 0x9b, 0x96, 0x86, 0x51, 0xf5, 0x68, 0x36, 0x63,
+	0x3f, 0x49, 0xa5, 0xab, 0x10, 0x60, 0x3c, 0xa6, 0x55, 0x73, 0x5a, 0x35, 0xa7, 0x9d, 0x15, 0xbb,
+	0x05, 0x6e, 0xd1, 0xb6, 0x46, 0x8d, 0x8e, 0x4c, 0xcc, 0x5e, 0xb7, 0x70, 0xf8, 0x05, 0x8d, 0x55,
+	0xa4, 0xd9, 0x29, 0x1c, 0x0c, 0xcd, 0x77, 0x32, 0x3c, 0x2b, 0xb2, 0xf2, 0x40, 0x44, 0x11, 0xa8,
+	0xd2, 0x64, 0xf8, 0xa3, 0x44, 0xbd, 0xf0, 0x74, 0x6c, 0x5c, 0x7b, 0xc7, 0x17, 0x91, 0x06, 0xc1,
+	0x9e, 0xc1, 0x63, 0x3b, 0x75, 0x9d, 0xfa, 0xc5, 0x97, 0x45, 0x56, 0xe6, 0x22, 0xa9, 0xf5, 0x9f,
+	0x0c, 0x4e, 0xaf, 0xe9, 0x16, 0x3f, 0xa0, 0x46, 0xd3, 0x38, 0x32, 0x02, 0x7f, 0x4c, 0x68, 0x1d,
+	0x2b, 0xe1, 0xa4, 0x53, 0x3d, 0xd6, 0x8e, 0x6a, 0x19, 0x63, 0xc8, 0xb3, 0x62, 0x51, 0xe6, 0xe2,
+	0xd8, 0xf3, 0xcf, 0x94, 0x5e, 0x20, 0x3b, 0x87, 0x7c, 0x6c, 0x4c, 0x33, 0xa0, 0xc3, 0xd8, 0x4a,
+	0x2e, 0x1e, 0x00, 0xbb, 0x06, 0x08, 0xe3, 0xd4, 0xfe, 0x15, 0x5f, 0x15, 0x8b, 0xf2, 0xe8, 0xf2,
+	0x45, 0xb5, 0x6b, 0xcb, 0x7b, 0xd5, 0xe3, 0xbb, 0x7b, 0x03, 0xb6, 0x1e, 0x8b, 0x3c, 0x44, 0x7d,
+	0x84, 0x7d, 0x82, 0x93, 0xd9, 0xb8, 0xfa, 0x67, 0xf4, 0x24, 0x8c, 0x77, 0x74, 0xf9, 0xbc, 0xda,
+	0xe7, 0x70, 0x95, 0xcc, 0x13, 0xab, 0x99, 0x24, 0xb0, 0xfe, 0x9d, 0xc1, 0xd3, 0x9d, 0x99, 0xed,
+	0x48, 0xda, 0xa2, 0xf7, 0x0e, 0x8d, 0x49, 0x3e, 0xe7, 0x22, 0x0a, 0xf6, 0x11, 0x96, 0xff, 0x34,
+	0xff, 0x7a, 0xff, 0x8f, 0xff, 0x2d, 0x1a, 0x66, 0x13, 0xa1, 0xc2, 0xd9, 0x37, 0x58, 0x86, 0x79,
+	0x18, 0x2c, 0x75, 0x33, 0x60, 0xfa, 0x26, 0xdc, 0xd9, 0x2b, 0x58, 0x29, 0x6d, 0xd1, 0x38, 0x45,
+	0xba, 0x1e, 0x49, 0x69, 0x97, 0xcc, 0x3c, 0xbe, 0xc7, 0x5b, 0x4f, 0x19, 0x87, 0xc3, 0x96, 0xb4,
+	0x43, 0xed, 0xf8, 0x2a, 0x24, 0xcc, 0xf2, 0x4a, 0xc2, 0x79, 0x4b, 0xc3, 0xde, 0xfe, 0xae, 0x9e,
+	0x6c, 0xc3, 0x6e, 0x06, 0x7b, 0xed, 0xd7, 0x37, 0x52, 0xb9, 0xbb, 0xe9, 0xc6, 0x87, 0x37, 0x92,
+	0xfa, 0x46, 0xcb, 0x87, 0x65, 0x0c, 0x97, 0xf6, 0x42, 0xa2, 0xbe, 0x90, 0x94, 0x56, 0xfa, 0x6d,
+	0x3c, 0x6a, 0x49, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0xf7, 0x15, 0x40, 0xc5, 0xfe, 0x02, 0x00,
+	0x00,
+}
+
+func init() {
+	xxx_Plugin_ProtoFile_FileDesc.Messages = xxx_Plugin_ProtoFile_MessageDescs[0:3]
+	xxx_Plugin_ProtoFile_MessageDescs[2].Messages = xxx_Plugin_ProtoFile_MessageDescs[3:4]
+	xxx_Plugin_ProtoFile_MessageDescs[1].Fields[2].MessageType = protoimpl.X.MessageTypeOf((*descriptor.FileDescriptorProto)(nil))
+	xxx_Plugin_ProtoFile_MessageDescs[1].Fields[3].MessageType = xxx_Plugin_ProtoFile_MessageTypes[0].Type
+	xxx_Plugin_ProtoFile_MessageDescs[2].Fields[1].MessageType = xxx_Plugin_ProtoFile_MessageTypes[3].Type
+	var err error
+	Plugin_ProtoFile, err = prototype.NewFile(&xxx_Plugin_ProtoFile_FileDesc)
+	if err != nil {
+		panic(err)
+	}
+}
+
+const _ = protoimpl.EnforceVersion(protoimpl.Version - 0)
+
+var Plugin_ProtoFile protoreflect.FileDescriptor
+
+var xxx_Plugin_ProtoFile_FileDesc = prototype.File{
+	Syntax:  protoreflect.Proto2,
+	Path:    "google/protobuf/compiler/plugin.proto",
+	Package: "google.protobuf.compiler",
+	Imports: []protoreflect.FileImport{
+		{FileDescriptor: prototype.PlaceholderFile("google/protobuf/descriptor.proto", "google.protobuf")},
+	},
+}
+var xxx_Plugin_ProtoFile_MessageTypes = [4]protoimpl.MessageType{
+	{Type: prototype.GoMessage(
+		xxx_Plugin_ProtoFile_MessageDescs[0].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(Version)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Plugin_ProtoFile_MessageDescs[1].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(CodeGeneratorRequest)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Plugin_ProtoFile_MessageDescs[2].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(CodeGeneratorResponse)
+		},
+	)},
+	{Type: prototype.GoMessage(
+		xxx_Plugin_ProtoFile_MessageDescs[3].Reference(),
+		func(protoreflect.MessageType) protoreflect.ProtoMessage {
+			return new(CodeGeneratorResponse_File)
+		},
+	)},
+}
+var xxx_Plugin_ProtoFile_MessageDescs = [4]prototype.Message{
+	{
+		Name: "Version",
+		Fields: []prototype.Field{
+			{
+				Name:        "major",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "major",
+			},
+			{
+				Name:        "minor",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "minor",
+			},
+			{
+				Name:        "patch",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.Int32Kind,
+				JSONName:    "patch",
+			},
+			{
+				Name:        "suffix",
+				Number:      4,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "suffix",
+			},
+		},
+	},
+	{
+		Name: "CodeGeneratorRequest",
+		Fields: []prototype.Field{
+			{
+				Name:        "file_to_generate",
+				Number:      1,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "fileToGenerate",
+			},
+			{
+				Name:        "parameter",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "parameter",
+			},
+			{
+				Name:        "proto_file",
+				Number:      15,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "protoFile",
+			},
+			{
+				Name:        "compiler_version",
+				Number:      3,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "compilerVersion",
+			},
+		},
+	},
+	{
+		Name: "CodeGeneratorResponse",
+		Fields: []prototype.Field{
+			{
+				Name:        "error",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "error",
+			},
+			{
+				Name:        "file",
+				Number:      15,
+				Cardinality: protoreflect.Repeated,
+				Kind:        protoreflect.MessageKind,
+				JSONName:    "file",
+			},
+		},
+	},
+	{
+		Name: "File",
+		Fields: []prototype.Field{
+			{
+				Name:        "name",
+				Number:      1,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "name",
+			},
+			{
+				Name:        "insertion_point",
+				Number:      2,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "insertionPoint",
+			},
+			{
+				Name:        "content",
+				Number:      15,
+				Cardinality: protoreflect.Optional,
+				Kind:        protoreflect.StringKind,
+				JSONName:    "content",
+			},
+		},
+	},
+}

+ 167 - 0
types/plugin/plugin.proto

@@ -0,0 +1,167 @@
+// Protocol Buffers - Google's data interchange format
+// Copyright 2008 Google Inc.  All rights reserved.
+// https://developers.google.com/protocol-buffers/
+//
+// Redistribution and use in source and binary forms, with or without
+// modification, are permitted provided that the following conditions are
+// met:
+//
+//     * Redistributions of source code must retain the above copyright
+// notice, this list of conditions and the following disclaimer.
+//     * Redistributions in binary form must reproduce the above
+// copyright notice, this list of conditions and the following disclaimer
+// in the documentation and/or other materials provided with the
+// distribution.
+//     * Neither the name of Google Inc. nor the names of its
+// contributors may be used to endorse or promote products derived from
+// this software without specific prior written permission.
+//
+// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+// Author: kenton@google.com (Kenton Varda)
+//
+// WARNING:  The plugin interface is currently EXPERIMENTAL and is subject to
+//   change.
+//
+// protoc (aka the Protocol Compiler) can be extended via plugins.  A plugin is
+// just a program that reads a CodeGeneratorRequest from stdin and writes a
+// CodeGeneratorResponse to stdout.
+//
+// Plugins written using C++ can use google/protobuf/compiler/plugin.h instead
+// of dealing with the raw protocol defined here.
+//
+// A plugin executable needs only to be placed somewhere in the path.  The
+// plugin should be named "protoc-gen-$NAME", and will then be used when the
+// flag "--${NAME}_out" is passed to protoc.
+
+syntax = "proto2";
+package google.protobuf.compiler;
+option java_package = "com.google.protobuf.compiler";
+option java_outer_classname = "PluginProtos";
+
+option go_package = "github.com/golang/protobuf/protoc-gen-go/plugin;plugin_go";
+
+import "google/protobuf/descriptor.proto";
+
+// The version number of protocol compiler.
+message Version {
+  optional int32 major = 1;
+  optional int32 minor = 2;
+  optional int32 patch = 3;
+  // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
+  // be empty for mainline stable releases.
+  optional string suffix = 4;
+}
+
+// An encoded CodeGeneratorRequest is written to the plugin's stdin.
+message CodeGeneratorRequest {
+  // The .proto files that were explicitly listed on the command-line.  The
+  // code generator should generate code only for these files.  Each file's
+  // descriptor will be included in proto_file, below.
+  repeated string file_to_generate = 1;
+
+  // The generator parameter passed on the command-line.
+  optional string parameter = 2;
+
+  // FileDescriptorProtos for all files in files_to_generate and everything
+  // they import.  The files will appear in topological order, so each file
+  // appears before any file that imports it.
+  //
+  // protoc guarantees that all proto_files will be written after
+  // the fields above, even though this is not technically guaranteed by the
+  // protobuf wire format.  This theoretically could allow a plugin to stream
+  // in the FileDescriptorProtos and handle them one by one rather than read
+  // the entire set into memory at once.  However, as of this writing, this
+  // is not similarly optimized on protoc's end -- it will store all fields in
+  // memory at once before sending them to the plugin.
+  //
+  // Type names of fields and extensions in the FileDescriptorProto are always
+  // fully qualified.
+  repeated FileDescriptorProto proto_file = 15;
+
+  // The version number of protocol compiler.
+  optional Version compiler_version = 3;
+
+}
+
+// The plugin writes an encoded CodeGeneratorResponse to stdout.
+message CodeGeneratorResponse {
+  // Error message.  If non-empty, code generation failed.  The plugin process
+  // should exit with status code zero even if it reports an error in this way.
+  //
+  // This should be used to indicate errors in .proto files which prevent the
+  // code generator from generating correct code.  Errors which indicate a
+  // problem in protoc itself -- such as the input CodeGeneratorRequest being
+  // unparseable -- should be reported by writing a message to stderr and
+  // exiting with a non-zero status code.
+  optional string error = 1;
+
+  // Represents a single generated file.
+  message File {
+    // The file name, relative to the output directory.  The name must not
+    // contain "." or ".." components and must be relative, not be absolute (so,
+    // the file cannot lie outside the output directory).  "/" must be used as
+    // the path separator, not "\".
+    //
+    // If the name is omitted, the content will be appended to the previous
+    // file.  This allows the generator to break large files into small chunks,
+    // and allows the generated text to be streamed back to protoc so that large
+    // files need not reside completely in memory at one time.  Note that as of
+    // this writing protoc does not optimize for this -- it will read the entire
+    // CodeGeneratorResponse before writing files to disk.
+    optional string name = 1;
+
+    // If non-empty, indicates that the named file should already exist, and the
+    // content here is to be inserted into that file at a defined insertion
+    // point.  This feature allows a code generator to extend the output
+    // produced by another code generator.  The original generator may provide
+    // insertion points by placing special annotations in the file that look
+    // like:
+    //   @@protoc_insertion_point(NAME)
+    // The annotation can have arbitrary text before and after it on the line,
+    // which allows it to be placed in a comment.  NAME should be replaced with
+    // an identifier naming the point -- this is what other generators will use
+    // as the insertion_point.  Code inserted at this point will be placed
+    // immediately above the line containing the insertion point (thus multiple
+    // insertions to the same point will come out in the order they were added).
+    // The double-@ is intended to make it unlikely that the generated code
+    // could contain things that look like insertion points by accident.
+    //
+    // For example, the C++ code generator places the following line in the
+    // .pb.h files that it generates:
+    //   // @@protoc_insertion_point(namespace_scope)
+    // This line appears within the scope of the file's package namespace, but
+    // outside of any particular class.  Another plugin can then specify the
+    // insertion_point "namespace_scope" to generate additional classes or
+    // other declarations that should be placed in this scope.
+    //
+    // Note that if the line containing the insertion point begins with
+    // whitespace, the same whitespace will be added to every line of the
+    // inserted text.  This is useful for languages like Python, where
+    // indentation matters.  In these languages, the insertion point comment
+    // should be indented the same amount as any inserted code will need to be
+    // in order to work correctly in that context.
+    //
+    // The code generator that generates the initial file and the one which
+    // inserts into it must both run as part of a single invocation of protoc.
+    // Code generators are executed in the order in which they appear on the
+    // command line.
+    //
+    // If |insertion_point| is present, |name| must also be present.
+    optional string insertion_point = 2;
+
+    // The file contents.
+    optional string content = 15;
+  }
+  repeated File file = 15;
+}