cmd/protoc-gen-go: drop xxx_ prefix for package-level variables
Lower-casing the FileDescriptor variable provides for shorter and
more readable global variable names. This has a very minor benefit
that the read-only data section of a binary is slightly smaller
since function names do end up in the final binary.
Change-Id: I077364905e5c9adea69873b3ea580fddc68b9eb8
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/172119
Reviewed-by: Herbie Ong <herbie@google.com>
diff --git a/cmd/protoc-gen-go-grpc/testdata/grpc/deprecation.pb.go b/cmd/protoc-gen-go-grpc/testdata/grpc/deprecation.pb.go
index 12279d6..396e85c 100644
--- a/cmd/protoc-gen-go-grpc/testdata/grpc/deprecation.pb.go
+++ b/cmd/protoc-gen-go-grpc/testdata/grpc/deprecation.pb.go
@@ -14,7 +14,7 @@
var File_grpc_deprecation_proto protoreflect.FileDescriptor
-var xxx_File_grpc_deprecation_proto_rawDesc = []byte{
+var file_grpc_deprecation_proto_rawDesc = []byte{
0x0a, 0x16, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x13, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x1a, 0x0f, 0x67,
@@ -34,40 +34,40 @@
}
var (
- xxx_File_grpc_deprecation_proto_rawDesc_once sync.Once
- xxx_File_grpc_deprecation_proto_rawDesc_data = xxx_File_grpc_deprecation_proto_rawDesc
+ file_grpc_deprecation_proto_rawDescOnce sync.Once
+ file_grpc_deprecation_proto_rawDescData = file_grpc_deprecation_proto_rawDesc
)
-func xxx_File_grpc_deprecation_proto_rawDescGZIP() []byte {
- xxx_File_grpc_deprecation_proto_rawDesc_once.Do(func() {
- xxx_File_grpc_deprecation_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_grpc_deprecation_proto_rawDesc_data)
+func file_grpc_deprecation_proto_rawDescGZIP() []byte {
+ file_grpc_deprecation_proto_rawDescOnce.Do(func() {
+ file_grpc_deprecation_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_deprecation_proto_rawDescData)
})
- return xxx_File_grpc_deprecation_proto_rawDesc_data
+ return file_grpc_deprecation_proto_rawDescData
}
-var xxx_File_grpc_deprecation_proto_goTypes = []interface{}{
+var file_grpc_deprecation_proto_goTypes = []interface{}{
(*Request)(nil), // 0: goproto.protoc.grpc.Request
(*Response)(nil), // 1: goproto.protoc.grpc.Response
}
-var xxx_File_grpc_deprecation_proto_depIdxs = []int32{
+var file_grpc_deprecation_proto_depIdxs = []int32{
0, // goproto.protoc.grpc.DeprecatedService.DeprecatedCall:input_type -> goproto.protoc.grpc.Request
1, // goproto.protoc.grpc.DeprecatedService.DeprecatedCall:output_type -> goproto.protoc.grpc.Response
}
-func init() { xxx_File_grpc_deprecation_proto_init() }
-func xxx_File_grpc_deprecation_proto_init() {
+func init() { file_grpc_deprecation_proto_init() }
+func file_grpc_deprecation_proto_init() {
if File_grpc_deprecation_proto != nil {
return
}
- xxx_File_grpc_grpc_proto_init()
+ file_grpc_grpc_proto_init()
File_grpc_deprecation_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_grpc_deprecation_proto_rawDesc,
- GoTypes: xxx_File_grpc_deprecation_proto_goTypes,
- DependencyIndexes: xxx_File_grpc_deprecation_proto_depIdxs,
+ RawDescriptor: file_grpc_deprecation_proto_rawDesc,
+ GoTypes: file_grpc_deprecation_proto_goTypes,
+ DependencyIndexes: file_grpc_deprecation_proto_depIdxs,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_grpc_deprecation_proto_rawDesc = nil
- xxx_File_grpc_deprecation_proto_goTypes = nil
- xxx_File_grpc_deprecation_proto_depIdxs = nil
+ file_grpc_deprecation_proto_rawDesc = nil
+ file_grpc_deprecation_proto_goTypes = nil
+ file_grpc_deprecation_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go-grpc/testdata/grpc/grpc.pb.go b/cmd/protoc-gen-go-grpc/testdata/grpc/grpc.pb.go
index 56a2c11..ca53790 100644
--- a/cmd/protoc-gen-go-grpc/testdata/grpc/grpc.pb.go
+++ b/cmd/protoc-gen-go-grpc/testdata/grpc/grpc.pb.go
@@ -30,16 +30,16 @@
func (*Request) ProtoMessage() {}
func (x *Request) ProtoReflect() protoreflect.Message {
- return xxx_File_grpc_grpc_proto_messageTypes[0].MessageOf(x)
+ return file_grpc_grpc_proto_msgTypes[0].MessageOf(x)
}
func (m *Request) XXX_Methods() *protoiface.Methods {
- return xxx_File_grpc_grpc_proto_messageTypes[0].Methods()
+ return file_grpc_grpc_proto_msgTypes[0].Methods()
}
// Deprecated: Use Request.ProtoReflect.Type instead.
func (*Request) Descriptor() ([]byte, []int) {
- return xxx_File_grpc_grpc_proto_rawDescGZIP(), []int{0}
+ return file_grpc_grpc_proto_rawDescGZIP(), []int{0}
}
type Response struct {
@@ -59,21 +59,21 @@
func (*Response) ProtoMessage() {}
func (x *Response) ProtoReflect() protoreflect.Message {
- return xxx_File_grpc_grpc_proto_messageTypes[1].MessageOf(x)
+ return file_grpc_grpc_proto_msgTypes[1].MessageOf(x)
}
func (m *Response) XXX_Methods() *protoiface.Methods {
- return xxx_File_grpc_grpc_proto_messageTypes[1].Methods()
+ return file_grpc_grpc_proto_msgTypes[1].Methods()
}
// Deprecated: Use Response.ProtoReflect.Type instead.
func (*Response) Descriptor() ([]byte, []int) {
- return xxx_File_grpc_grpc_proto_rawDescGZIP(), []int{1}
+ return file_grpc_grpc_proto_rawDescGZIP(), []int{1}
}
var File_grpc_grpc_proto protoreflect.FileDescriptor
-var xxx_File_grpc_grpc_proto_rawDesc = []byte{
+var file_grpc_grpc_proto_rawDesc = []byte{
0x0a, 0x0f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x12, 0x13, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x63, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x22, 0x09, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
@@ -107,23 +107,23 @@
}
var (
- xxx_File_grpc_grpc_proto_rawDesc_once sync.Once
- xxx_File_grpc_grpc_proto_rawDesc_data = xxx_File_grpc_grpc_proto_rawDesc
+ file_grpc_grpc_proto_rawDescOnce sync.Once
+ file_grpc_grpc_proto_rawDescData = file_grpc_grpc_proto_rawDesc
)
-func xxx_File_grpc_grpc_proto_rawDescGZIP() []byte {
- xxx_File_grpc_grpc_proto_rawDesc_once.Do(func() {
- xxx_File_grpc_grpc_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_grpc_grpc_proto_rawDesc_data)
+func file_grpc_grpc_proto_rawDescGZIP() []byte {
+ file_grpc_grpc_proto_rawDescOnce.Do(func() {
+ file_grpc_grpc_proto_rawDescData = protoimpl.X.CompressGZIP(file_grpc_grpc_proto_rawDescData)
})
- return xxx_File_grpc_grpc_proto_rawDesc_data
+ return file_grpc_grpc_proto_rawDescData
}
-var xxx_File_grpc_grpc_proto_messageTypes = make([]protoimpl.MessageType, 2)
-var xxx_File_grpc_grpc_proto_goTypes = []interface{}{
+var file_grpc_grpc_proto_msgTypes = make([]protoimpl.MessageType, 2)
+var file_grpc_grpc_proto_goTypes = []interface{}{
(*Request)(nil), // 0: goproto.protoc.grpc.Request
(*Response)(nil), // 1: goproto.protoc.grpc.Response
}
-var xxx_File_grpc_grpc_proto_depIdxs = []int32{
+var file_grpc_grpc_proto_depIdxs = []int32{
0, // goproto.protoc.grpc.test_service.unary_call:input_type -> goproto.protoc.grpc.Request
1, // goproto.protoc.grpc.test_service.unary_call:output_type -> goproto.protoc.grpc.Response
0, // goproto.protoc.grpc.test_service.downstream_call:input_type -> goproto.protoc.grpc.Request
@@ -134,20 +134,20 @@
1, // goproto.protoc.grpc.test_service.bidi_call:output_type -> goproto.protoc.grpc.Response
}
-func init() { xxx_File_grpc_grpc_proto_init() }
-func xxx_File_grpc_grpc_proto_init() {
+func init() { file_grpc_grpc_proto_init() }
+func file_grpc_grpc_proto_init() {
if File_grpc_grpc_proto != nil {
return
}
File_grpc_grpc_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_grpc_grpc_proto_rawDesc,
- GoTypes: xxx_File_grpc_grpc_proto_goTypes,
- DependencyIndexes: xxx_File_grpc_grpc_proto_depIdxs,
- MessageOutputTypes: xxx_File_grpc_grpc_proto_messageTypes,
+ RawDescriptor: file_grpc_grpc_proto_rawDesc,
+ GoTypes: file_grpc_grpc_proto_goTypes,
+ DependencyIndexes: file_grpc_grpc_proto_depIdxs,
+ MessageOutputTypes: file_grpc_grpc_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_grpc_grpc_proto_rawDesc = nil
- xxx_File_grpc_grpc_proto_goTypes = nil
- xxx_File_grpc_grpc_proto_depIdxs = nil
+ file_grpc_grpc_proto_rawDesc = nil
+ file_grpc_grpc_proto_goTypes = nil
+ file_grpc_grpc_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/internal_gengo/reflect.go b/cmd/protoc-gen-go/internal_gengo/reflect.go
index 4c684e4..0b584a4 100644
--- a/cmd/protoc-gen-go/internal_gengo/reflect.go
+++ b/cmd/protoc-gen-go/internal_gengo/reflect.go
@@ -7,6 +7,8 @@
import (
"fmt"
"math"
+ "strings"
+ "unicode/utf8"
"github.com/golang/protobuf/v2/proto"
"github.com/golang/protobuf/v2/protogen"
@@ -208,8 +210,8 @@
g.P("}")
g.P()
- onceVar := rawDescVarName(f) + "_once"
- dataVar := rawDescVarName(f) + "_data"
+ onceVar := rawDescVarName(f) + "Once"
+ dataVar := rawDescVarName(f) + "Data"
g.P("var (")
g.P(onceVar, " ", syncPackage.Ident("Once"))
g.P(dataVar, " = ", rawDescVarName(f))
@@ -256,24 +258,30 @@
g.P("}")
}
+func fileVarName(f *protogen.File, suffix string) string {
+ prefix := f.GoDescriptorIdent.GoName
+ _, n := utf8.DecodeRuneInString(prefix)
+ prefix = strings.ToLower(prefix[:n]) + prefix[n:]
+ return prefix + "_" + suffix
+}
func rawDescVarName(f *fileInfo) string {
- return "xxx_" + f.GoDescriptorIdent.GoName + "_rawDesc"
+ return fileVarName(f.File, "rawDesc")
}
func goTypesVarName(f *fileInfo) string {
- return "xxx_" + f.GoDescriptorIdent.GoName + "_goTypes"
+ return fileVarName(f.File, "goTypes")
}
func depIdxsVarName(f *fileInfo) string {
- return "xxx_" + f.GoDescriptorIdent.GoName + "_depIdxs"
+ return fileVarName(f.File, "depIdxs")
}
func enumTypesVarName(f *fileInfo) string {
- return "xxx_" + f.GoDescriptorIdent.GoName + "_enumTypes"
+ return fileVarName(f.File, "enumTypes")
}
func messageTypesVarName(f *fileInfo) string {
- return "xxx_" + f.GoDescriptorIdent.GoName + "_messageTypes"
+ return fileVarName(f.File, "msgTypes")
}
func extDecsVarName(f *fileInfo) string {
- return "xxx_" + f.GoDescriptorIdent.GoName + "_extDescs"
+ return fileVarName(f.File, "extDescs")
}
func initFuncName(f *protogen.File) string {
- return "xxx_" + f.GoDescriptorIdent.GoName + "_init"
+ return fileVarName(f, "init")
}
diff --git a/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go b/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go
index 97c1814..7a77394 100644
--- a/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go
+++ b/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go
@@ -40,7 +40,7 @@
}
func (AnnotationsTestEnum) Type() protoreflect.EnumType {
- return xxx_File_annotations_annotations_proto_enumTypes[0]
+ return file_annotations_annotations_proto_enumTypes[0]
}
func (x AnnotationsTestEnum) Number() protoreflect.EnumNumber {
@@ -59,7 +59,7 @@
// Deprecated: Use AnnotationsTestEnum.Type instead.
func (AnnotationsTestEnum) EnumDescriptor() ([]byte, []int) {
- return xxx_File_annotations_annotations_proto_rawDescGZIP(), []int{0}
+ return file_annotations_annotations_proto_rawDescGZIP(), []int{0}
}
type AnnotationsTestMessage struct {
@@ -80,16 +80,16 @@
func (*AnnotationsTestMessage) ProtoMessage() {}
func (x *AnnotationsTestMessage) ProtoReflect() protoreflect.Message {
- return xxx_File_annotations_annotations_proto_messageTypes[0].MessageOf(x)
+ return file_annotations_annotations_proto_msgTypes[0].MessageOf(x)
}
func (m *AnnotationsTestMessage) XXX_Methods() *protoiface.Methods {
- return xxx_File_annotations_annotations_proto_messageTypes[0].Methods()
+ return file_annotations_annotations_proto_msgTypes[0].Methods()
}
// Deprecated: Use AnnotationsTestMessage.ProtoReflect.Type instead.
func (*AnnotationsTestMessage) Descriptor() ([]byte, []int) {
- return xxx_File_annotations_annotations_proto_rawDescGZIP(), []int{0}
+ return file_annotations_annotations_proto_rawDescGZIP(), []int{0}
}
func (x *AnnotationsTestMessage) GetAnnotationsTestField() string {
@@ -101,7 +101,7 @@
var File_annotations_annotations_proto protoreflect.FileDescriptor
-var xxx_File_annotations_annotations_proto_rawDesc = []byte{
+var file_annotations_annotations_proto_rawDesc = []byte{
0x0a, 0x1d, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x6e,
0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x1a, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e,
@@ -122,40 +122,40 @@
}
var (
- xxx_File_annotations_annotations_proto_rawDesc_once sync.Once
- xxx_File_annotations_annotations_proto_rawDesc_data = xxx_File_annotations_annotations_proto_rawDesc
+ file_annotations_annotations_proto_rawDescOnce sync.Once
+ file_annotations_annotations_proto_rawDescData = file_annotations_annotations_proto_rawDesc
)
-func xxx_File_annotations_annotations_proto_rawDescGZIP() []byte {
- xxx_File_annotations_annotations_proto_rawDesc_once.Do(func() {
- xxx_File_annotations_annotations_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_annotations_annotations_proto_rawDesc_data)
+func file_annotations_annotations_proto_rawDescGZIP() []byte {
+ file_annotations_annotations_proto_rawDescOnce.Do(func() {
+ file_annotations_annotations_proto_rawDescData = protoimpl.X.CompressGZIP(file_annotations_annotations_proto_rawDescData)
})
- return xxx_File_annotations_annotations_proto_rawDesc_data
+ return file_annotations_annotations_proto_rawDescData
}
-var xxx_File_annotations_annotations_proto_enumTypes = make([]protoreflect.EnumType, 1)
-var xxx_File_annotations_annotations_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_annotations_annotations_proto_goTypes = []interface{}{
+var file_annotations_annotations_proto_enumTypes = make([]protoreflect.EnumType, 1)
+var file_annotations_annotations_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_annotations_annotations_proto_goTypes = []interface{}{
(AnnotationsTestEnum)(0), // 0: goproto.protoc.annotations.AnnotationsTestEnum
(*AnnotationsTestMessage)(nil), // 1: goproto.protoc.annotations.AnnotationsTestMessage
}
-var xxx_File_annotations_annotations_proto_depIdxs = []int32{}
+var file_annotations_annotations_proto_depIdxs = []int32{}
-func init() { xxx_File_annotations_annotations_proto_init() }
-func xxx_File_annotations_annotations_proto_init() {
+func init() { file_annotations_annotations_proto_init() }
+func file_annotations_annotations_proto_init() {
if File_annotations_annotations_proto != nil {
return
}
File_annotations_annotations_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_annotations_annotations_proto_rawDesc,
- GoTypes: xxx_File_annotations_annotations_proto_goTypes,
- DependencyIndexes: xxx_File_annotations_annotations_proto_depIdxs,
- EnumOutputTypes: xxx_File_annotations_annotations_proto_enumTypes,
- MessageOutputTypes: xxx_File_annotations_annotations_proto_messageTypes,
+ RawDescriptor: file_annotations_annotations_proto_rawDesc,
+ GoTypes: file_annotations_annotations_proto_goTypes,
+ DependencyIndexes: file_annotations_annotations_proto_depIdxs,
+ EnumOutputTypes: file_annotations_annotations_proto_enumTypes,
+ MessageOutputTypes: file_annotations_annotations_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_annotations_annotations_proto_rawDesc = nil
- xxx_File_annotations_annotations_proto_goTypes = nil
- xxx_File_annotations_annotations_proto_depIdxs = nil
+ file_annotations_annotations_proto_rawDesc = nil
+ file_annotations_annotations_proto_goTypes = nil
+ file_annotations_annotations_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go.meta b/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go.meta
index 6f00230..9c18454 100644
--- a/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go.meta
+++ b/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go.meta
@@ -1 +1 @@
-annotation:{path:5 path:0 source_file:"annotations/annotations.proto" begin:461 end:480} annotation:{path:5 path:0 path:2 path:0 source_file:"annotations/annotations.proto" begin:497 end:544} annotation:{path:4 path:0 source_file:"annotations/annotations.proto" begin:1740 end:1762} annotation:{path:4 path:0 path:2 path:0 source_file:"annotations/annotations.proto" begin:1773 end:1793} annotation:{path:4 path:0 path:2 path:0 source_file:"annotations/annotations.proto" begin:2774 end:2797}
\ No newline at end of file
+annotation:{path:5 path:0 source_file:"annotations/annotations.proto" begin:461 end:480} annotation:{path:5 path:0 path:2 path:0 source_file:"annotations/annotations.proto" begin:497 end:544} annotation:{path:4 path:0 source_file:"annotations/annotations.proto" begin:1732 end:1754} annotation:{path:4 path:0 path:2 path:0 source_file:"annotations/annotations.proto" begin:1765 end:1785} annotation:{path:4 path:0 path:2 path:0 source_file:"annotations/annotations.proto" begin:2746 end:2769}
\ No newline at end of file
diff --git a/cmd/protoc-gen-go/testdata/comments/comments.pb.go b/cmd/protoc-gen-go/testdata/comments/comments.pb.go
index af8e8c5..8ff9b29 100644
--- a/cmd/protoc-gen-go/testdata/comments/comments.pb.go
+++ b/cmd/protoc-gen-go/testdata/comments/comments.pb.go
@@ -41,16 +41,16 @@
func (*Message1) ProtoMessage() {}
func (x *Message1) ProtoReflect() protoreflect.Message {
- return xxx_File_comments_comments_proto_messageTypes[0].MessageOf(x)
+ return file_comments_comments_proto_msgTypes[0].MessageOf(x)
}
func (m *Message1) XXX_Methods() *protoiface.Methods {
- return xxx_File_comments_comments_proto_messageTypes[0].Methods()
+ return file_comments_comments_proto_msgTypes[0].Methods()
}
// Deprecated: Use Message1.ProtoReflect.Type instead.
func (*Message1) Descriptor() ([]byte, []int) {
- return xxx_File_comments_comments_proto_rawDescGZIP(), []int{0}
+ return file_comments_comments_proto_rawDescGZIP(), []int{0}
}
func (x *Message1) GetField1A() string {
@@ -109,16 +109,16 @@
func (*Message2) ProtoMessage() {}
func (x *Message2) ProtoReflect() protoreflect.Message {
- return xxx_File_comments_comments_proto_messageTypes[1].MessageOf(x)
+ return file_comments_comments_proto_msgTypes[1].MessageOf(x)
}
func (m *Message2) XXX_Methods() *protoiface.Methods {
- return xxx_File_comments_comments_proto_messageTypes[1].Methods()
+ return file_comments_comments_proto_msgTypes[1].Methods()
}
// Deprecated: Use Message2.ProtoReflect.Type instead.
func (*Message2) Descriptor() ([]byte, []int) {
- return xxx_File_comments_comments_proto_rawDescGZIP(), []int{1}
+ return file_comments_comments_proto_rawDescGZIP(), []int{1}
}
// COMMENT: Message1A
@@ -139,16 +139,16 @@
func (*Message1_Message1A) ProtoMessage() {}
func (x *Message1_Message1A) ProtoReflect() protoreflect.Message {
- return xxx_File_comments_comments_proto_messageTypes[2].MessageOf(x)
+ return file_comments_comments_proto_msgTypes[2].MessageOf(x)
}
func (m *Message1_Message1A) XXX_Methods() *protoiface.Methods {
- return xxx_File_comments_comments_proto_messageTypes[2].Methods()
+ return file_comments_comments_proto_msgTypes[2].Methods()
}
// Deprecated: Use Message1_Message1A.ProtoReflect.Type instead.
func (*Message1_Message1A) Descriptor() ([]byte, []int) {
- return xxx_File_comments_comments_proto_rawDescGZIP(), []int{0, 0}
+ return file_comments_comments_proto_rawDescGZIP(), []int{0, 0}
}
// COMMENT: Message1B
@@ -169,16 +169,16 @@
func (*Message1_Message1B) ProtoMessage() {}
func (x *Message1_Message1B) ProtoReflect() protoreflect.Message {
- return xxx_File_comments_comments_proto_messageTypes[3].MessageOf(x)
+ return file_comments_comments_proto_msgTypes[3].MessageOf(x)
}
func (m *Message1_Message1B) XXX_Methods() *protoiface.Methods {
- return xxx_File_comments_comments_proto_messageTypes[3].Methods()
+ return file_comments_comments_proto_msgTypes[3].Methods()
}
// Deprecated: Use Message1_Message1B.ProtoReflect.Type instead.
func (*Message1_Message1B) Descriptor() ([]byte, []int) {
- return xxx_File_comments_comments_proto_rawDescGZIP(), []int{0, 1}
+ return file_comments_comments_proto_rawDescGZIP(), []int{0, 1}
}
// COMMENT: Message2A
@@ -199,16 +199,16 @@
func (*Message2_Message2A) ProtoMessage() {}
func (x *Message2_Message2A) ProtoReflect() protoreflect.Message {
- return xxx_File_comments_comments_proto_messageTypes[4].MessageOf(x)
+ return file_comments_comments_proto_msgTypes[4].MessageOf(x)
}
func (m *Message2_Message2A) XXX_Methods() *protoiface.Methods {
- return xxx_File_comments_comments_proto_messageTypes[4].Methods()
+ return file_comments_comments_proto_msgTypes[4].Methods()
}
// Deprecated: Use Message2_Message2A.ProtoReflect.Type instead.
func (*Message2_Message2A) Descriptor() ([]byte, []int) {
- return xxx_File_comments_comments_proto_rawDescGZIP(), []int{1, 0}
+ return file_comments_comments_proto_rawDescGZIP(), []int{1, 0}
}
// COMMENT: Message2B
@@ -229,21 +229,21 @@
func (*Message2_Message2B) ProtoMessage() {}
func (x *Message2_Message2B) ProtoReflect() protoreflect.Message {
- return xxx_File_comments_comments_proto_messageTypes[5].MessageOf(x)
+ return file_comments_comments_proto_msgTypes[5].MessageOf(x)
}
func (m *Message2_Message2B) XXX_Methods() *protoiface.Methods {
- return xxx_File_comments_comments_proto_messageTypes[5].Methods()
+ return file_comments_comments_proto_msgTypes[5].Methods()
}
// Deprecated: Use Message2_Message2B.ProtoReflect.Type instead.
func (*Message2_Message2B) Descriptor() ([]byte, []int) {
- return xxx_File_comments_comments_proto_rawDescGZIP(), []int{1, 1}
+ return file_comments_comments_proto_rawDescGZIP(), []int{1, 1}
}
var File_comments_comments_proto protoreflect.FileDescriptor
-var xxx_File_comments_comments_proto_rawDesc = []byte{
+var file_comments_comments_proto_rawDesc = []byte{
0x0a, 0x17, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
@@ -264,19 +264,19 @@
}
var (
- xxx_File_comments_comments_proto_rawDesc_once sync.Once
- xxx_File_comments_comments_proto_rawDesc_data = xxx_File_comments_comments_proto_rawDesc
+ file_comments_comments_proto_rawDescOnce sync.Once
+ file_comments_comments_proto_rawDescData = file_comments_comments_proto_rawDesc
)
-func xxx_File_comments_comments_proto_rawDescGZIP() []byte {
- xxx_File_comments_comments_proto_rawDesc_once.Do(func() {
- xxx_File_comments_comments_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_comments_comments_proto_rawDesc_data)
+func file_comments_comments_proto_rawDescGZIP() []byte {
+ file_comments_comments_proto_rawDescOnce.Do(func() {
+ file_comments_comments_proto_rawDescData = protoimpl.X.CompressGZIP(file_comments_comments_proto_rawDescData)
})
- return xxx_File_comments_comments_proto_rawDesc_data
+ return file_comments_comments_proto_rawDescData
}
-var xxx_File_comments_comments_proto_messageTypes = make([]protoimpl.MessageType, 6)
-var xxx_File_comments_comments_proto_goTypes = []interface{}{
+var file_comments_comments_proto_msgTypes = make([]protoimpl.MessageType, 6)
+var file_comments_comments_proto_goTypes = []interface{}{
(*Message1)(nil), // 0: goproto.protoc.comments.Message1
(*Message2)(nil), // 1: goproto.protoc.comments.Message2
(*Message1_Message1A)(nil), // 2: goproto.protoc.comments.Message1.Message1A
@@ -284,22 +284,22 @@
(*Message2_Message2A)(nil), // 4: goproto.protoc.comments.Message2.Message2A
(*Message2_Message2B)(nil), // 5: goproto.protoc.comments.Message2.Message2B
}
-var xxx_File_comments_comments_proto_depIdxs = []int32{}
+var file_comments_comments_proto_depIdxs = []int32{}
-func init() { xxx_File_comments_comments_proto_init() }
-func xxx_File_comments_comments_proto_init() {
+func init() { file_comments_comments_proto_init() }
+func file_comments_comments_proto_init() {
if File_comments_comments_proto != nil {
return
}
File_comments_comments_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_comments_comments_proto_rawDesc,
- GoTypes: xxx_File_comments_comments_proto_goTypes,
- DependencyIndexes: xxx_File_comments_comments_proto_depIdxs,
- MessageOutputTypes: xxx_File_comments_comments_proto_messageTypes,
+ RawDescriptor: file_comments_comments_proto_rawDesc,
+ GoTypes: file_comments_comments_proto_goTypes,
+ DependencyIndexes: file_comments_comments_proto_depIdxs,
+ MessageOutputTypes: file_comments_comments_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_comments_comments_proto_rawDesc = nil
- xxx_File_comments_comments_proto_goTypes = nil
- xxx_File_comments_comments_proto_depIdxs = nil
+ file_comments_comments_proto_rawDesc = nil
+ file_comments_comments_proto_goTypes = nil
+ file_comments_comments_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go b/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go
index f30e424..dac53da 100644
--- a/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go
+++ b/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go
@@ -33,7 +33,7 @@
}
func (DeprecatedEnum) Type() protoreflect.EnumType {
- return xxx_File_comments_deprecated_proto_enumTypes[0]
+ return file_comments_deprecated_proto_enumTypes[0]
}
func (x DeprecatedEnum) Number() protoreflect.EnumNumber {
@@ -42,7 +42,7 @@
// Deprecated: Use DeprecatedEnum.Type instead.
func (DeprecatedEnum) EnumDescriptor() ([]byte, []int) {
- return xxx_File_comments_deprecated_proto_rawDescGZIP(), []int{0}
+ return file_comments_deprecated_proto_rawDescGZIP(), []int{0}
}
// Deprecated: Do not use.
@@ -64,16 +64,16 @@
func (*DeprecatedMessage) ProtoMessage() {}
func (x *DeprecatedMessage) ProtoReflect() protoreflect.Message {
- return xxx_File_comments_deprecated_proto_messageTypes[0].MessageOf(x)
+ return file_comments_deprecated_proto_msgTypes[0].MessageOf(x)
}
func (m *DeprecatedMessage) XXX_Methods() *protoiface.Methods {
- return xxx_File_comments_deprecated_proto_messageTypes[0].Methods()
+ return file_comments_deprecated_proto_msgTypes[0].Methods()
}
// Deprecated: Use DeprecatedMessage.ProtoReflect.Type instead.
func (*DeprecatedMessage) Descriptor() ([]byte, []int) {
- return xxx_File_comments_deprecated_proto_rawDescGZIP(), []int{0}
+ return file_comments_deprecated_proto_rawDescGZIP(), []int{0}
}
// Deprecated: Do not use.
@@ -86,7 +86,7 @@
var File_comments_deprecated_proto protoreflect.FileDescriptor
-var xxx_File_comments_deprecated_proto_rawDesc = []byte{
+var file_comments_deprecated_proto_rawDesc = []byte{
0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x2f, 0x64, 0x65, 0x70, 0x72, 0x65,
0x63, 0x61, 0x74, 0x65, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
@@ -106,40 +106,40 @@
}
var (
- xxx_File_comments_deprecated_proto_rawDesc_once sync.Once
- xxx_File_comments_deprecated_proto_rawDesc_data = xxx_File_comments_deprecated_proto_rawDesc
+ file_comments_deprecated_proto_rawDescOnce sync.Once
+ file_comments_deprecated_proto_rawDescData = file_comments_deprecated_proto_rawDesc
)
-func xxx_File_comments_deprecated_proto_rawDescGZIP() []byte {
- xxx_File_comments_deprecated_proto_rawDesc_once.Do(func() {
- xxx_File_comments_deprecated_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_comments_deprecated_proto_rawDesc_data)
+func file_comments_deprecated_proto_rawDescGZIP() []byte {
+ file_comments_deprecated_proto_rawDescOnce.Do(func() {
+ file_comments_deprecated_proto_rawDescData = protoimpl.X.CompressGZIP(file_comments_deprecated_proto_rawDescData)
})
- return xxx_File_comments_deprecated_proto_rawDesc_data
+ return file_comments_deprecated_proto_rawDescData
}
-var xxx_File_comments_deprecated_proto_enumTypes = make([]protoreflect.EnumType, 1)
-var xxx_File_comments_deprecated_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_comments_deprecated_proto_goTypes = []interface{}{
+var file_comments_deprecated_proto_enumTypes = make([]protoreflect.EnumType, 1)
+var file_comments_deprecated_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_comments_deprecated_proto_goTypes = []interface{}{
(DeprecatedEnum)(0), // 0: goproto.protoc.comments.DeprecatedEnum
(*DeprecatedMessage)(nil), // 1: goproto.protoc.comments.DeprecatedMessage
}
-var xxx_File_comments_deprecated_proto_depIdxs = []int32{}
+var file_comments_deprecated_proto_depIdxs = []int32{}
-func init() { xxx_File_comments_deprecated_proto_init() }
-func xxx_File_comments_deprecated_proto_init() {
+func init() { file_comments_deprecated_proto_init() }
+func file_comments_deprecated_proto_init() {
if File_comments_deprecated_proto != nil {
return
}
File_comments_deprecated_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_comments_deprecated_proto_rawDesc,
- GoTypes: xxx_File_comments_deprecated_proto_goTypes,
- DependencyIndexes: xxx_File_comments_deprecated_proto_depIdxs,
- EnumOutputTypes: xxx_File_comments_deprecated_proto_enumTypes,
- MessageOutputTypes: xxx_File_comments_deprecated_proto_messageTypes,
+ RawDescriptor: file_comments_deprecated_proto_rawDesc,
+ GoTypes: file_comments_deprecated_proto_goTypes,
+ DependencyIndexes: file_comments_deprecated_proto_depIdxs,
+ EnumOutputTypes: file_comments_deprecated_proto_enumTypes,
+ MessageOutputTypes: file_comments_deprecated_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_comments_deprecated_proto_rawDesc = nil
- xxx_File_comments_deprecated_proto_goTypes = nil
- xxx_File_comments_deprecated_proto_depIdxs = nil
+ file_comments_deprecated_proto_rawDesc = nil
+ file_comments_deprecated_proto_goTypes = nil
+ file_comments_deprecated_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/extensions/base/base.pb.go b/cmd/protoc-gen-go/testdata/extensions/base/base.pb.go
index b53d3dc..cfc0d70 100644
--- a/cmd/protoc-gen-go/testdata/extensions/base/base.pb.go
+++ b/cmd/protoc-gen-go/testdata/extensions/base/base.pb.go
@@ -32,16 +32,16 @@
func (*BaseMessage) ProtoMessage() {}
func (x *BaseMessage) ProtoReflect() protoreflect.Message {
- return xxx_File_extensions_base_base_proto_messageTypes[0].MessageOf(x)
+ return file_extensions_base_base_proto_msgTypes[0].MessageOf(x)
}
func (m *BaseMessage) XXX_Methods() *protoiface.Methods {
- return xxx_File_extensions_base_base_proto_messageTypes[0].Methods()
+ return file_extensions_base_base_proto_msgTypes[0].Methods()
}
// Deprecated: Use BaseMessage.ProtoReflect.Type instead.
func (*BaseMessage) Descriptor() ([]byte, []int) {
- return xxx_File_extensions_base_base_proto_rawDescGZIP(), []int{0}
+ return file_extensions_base_base_proto_rawDescGZIP(), []int{0}
}
var extRange_BaseMessage = []protoiface.ExtensionRangeV1{
@@ -79,16 +79,16 @@
func (*MessageSetWireFormatMessage) ProtoMessage() {}
func (x *MessageSetWireFormatMessage) ProtoReflect() protoreflect.Message {
- return xxx_File_extensions_base_base_proto_messageTypes[1].MessageOf(x)
+ return file_extensions_base_base_proto_msgTypes[1].MessageOf(x)
}
func (m *MessageSetWireFormatMessage) XXX_Methods() *protoiface.Methods {
- return xxx_File_extensions_base_base_proto_messageTypes[1].Methods()
+ return file_extensions_base_base_proto_msgTypes[1].Methods()
}
// Deprecated: Use MessageSetWireFormatMessage.ProtoReflect.Type instead.
func (*MessageSetWireFormatMessage) Descriptor() ([]byte, []int) {
- return xxx_File_extensions_base_base_proto_rawDescGZIP(), []int{1}
+ return file_extensions_base_base_proto_rawDescGZIP(), []int{1}
}
var extRange_MessageSetWireFormatMessage = []protoiface.ExtensionRangeV1{
@@ -102,7 +102,7 @@
var File_extensions_base_base_proto protoreflect.FileDescriptor
-var xxx_File_extensions_base_base_proto_rawDesc = []byte{
+var file_extensions_base_base_proto_rawDesc = []byte{
0x0a, 0x1a, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x62, 0x61, 0x73,
0x65, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x67, 0x6f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x65, 0x78, 0x74,
@@ -121,38 +121,38 @@
}
var (
- xxx_File_extensions_base_base_proto_rawDesc_once sync.Once
- xxx_File_extensions_base_base_proto_rawDesc_data = xxx_File_extensions_base_base_proto_rawDesc
+ file_extensions_base_base_proto_rawDescOnce sync.Once
+ file_extensions_base_base_proto_rawDescData = file_extensions_base_base_proto_rawDesc
)
-func xxx_File_extensions_base_base_proto_rawDescGZIP() []byte {
- xxx_File_extensions_base_base_proto_rawDesc_once.Do(func() {
- xxx_File_extensions_base_base_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_extensions_base_base_proto_rawDesc_data)
+func file_extensions_base_base_proto_rawDescGZIP() []byte {
+ file_extensions_base_base_proto_rawDescOnce.Do(func() {
+ file_extensions_base_base_proto_rawDescData = protoimpl.X.CompressGZIP(file_extensions_base_base_proto_rawDescData)
})
- return xxx_File_extensions_base_base_proto_rawDesc_data
+ return file_extensions_base_base_proto_rawDescData
}
-var xxx_File_extensions_base_base_proto_messageTypes = make([]protoimpl.MessageType, 2)
-var xxx_File_extensions_base_base_proto_goTypes = []interface{}{
+var file_extensions_base_base_proto_msgTypes = make([]protoimpl.MessageType, 2)
+var file_extensions_base_base_proto_goTypes = []interface{}{
(*BaseMessage)(nil), // 0: goproto.protoc.extension.base.BaseMessage
(*MessageSetWireFormatMessage)(nil), // 1: goproto.protoc.extension.base.MessageSetWireFormatMessage
}
-var xxx_File_extensions_base_base_proto_depIdxs = []int32{}
+var file_extensions_base_base_proto_depIdxs = []int32{}
-func init() { xxx_File_extensions_base_base_proto_init() }
-func xxx_File_extensions_base_base_proto_init() {
+func init() { file_extensions_base_base_proto_init() }
+func file_extensions_base_base_proto_init() {
if File_extensions_base_base_proto != nil {
return
}
File_extensions_base_base_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_extensions_base_base_proto_rawDesc,
- GoTypes: xxx_File_extensions_base_base_proto_goTypes,
- DependencyIndexes: xxx_File_extensions_base_base_proto_depIdxs,
- MessageOutputTypes: xxx_File_extensions_base_base_proto_messageTypes,
+ RawDescriptor: file_extensions_base_base_proto_rawDesc,
+ GoTypes: file_extensions_base_base_proto_goTypes,
+ DependencyIndexes: file_extensions_base_base_proto_depIdxs,
+ MessageOutputTypes: file_extensions_base_base_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_extensions_base_base_proto_rawDesc = nil
- xxx_File_extensions_base_base_proto_goTypes = nil
- xxx_File_extensions_base_base_proto_depIdxs = nil
+ file_extensions_base_base_proto_rawDesc = nil
+ file_extensions_base_base_proto_goTypes = nil
+ file_extensions_base_base_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/extensions/ext/ext.pb.go b/cmd/protoc-gen-go/testdata/extensions/ext/ext.pb.go
index 0799cc9..e4740a4 100644
--- a/cmd/protoc-gen-go/testdata/extensions/ext/ext.pb.go
+++ b/cmd/protoc-gen-go/testdata/extensions/ext/ext.pb.go
@@ -42,7 +42,7 @@
}
func (Enum) Type() protoreflect.EnumType {
- return xxx_File_extensions_ext_ext_proto_enumTypes[0]
+ return file_extensions_ext_ext_proto_enumTypes[0]
}
func (x Enum) Number() protoreflect.EnumNumber {
@@ -61,7 +61,7 @@
// Deprecated: Use Enum.Type instead.
func (Enum) EnumDescriptor() ([]byte, []int) {
- return xxx_File_extensions_ext_ext_proto_rawDescGZIP(), []int{0}
+ return file_extensions_ext_ext_proto_rawDescGZIP(), []int{0}
}
type Message struct {
@@ -82,16 +82,16 @@
func (*Message) ProtoMessage() {}
func (x *Message) ProtoReflect() protoreflect.Message {
- return xxx_File_extensions_ext_ext_proto_messageTypes[0].MessageOf(x)
+ return file_extensions_ext_ext_proto_msgTypes[0].MessageOf(x)
}
func (m *Message) XXX_Methods() *protoiface.Methods {
- return xxx_File_extensions_ext_ext_proto_messageTypes[0].Methods()
+ return file_extensions_ext_ext_proto_msgTypes[0].Methods()
}
// Deprecated: Use Message.ProtoReflect.Type instead.
func (*Message) Descriptor() ([]byte, []int) {
- return xxx_File_extensions_ext_ext_proto_rawDescGZIP(), []int{0}
+ return file_extensions_ext_ext_proto_rawDescGZIP(), []int{0}
}
func (x *Message) GetData() []byte {
@@ -119,16 +119,16 @@
func (*ExtensionGroup) ProtoMessage() {}
func (x *ExtensionGroup) ProtoReflect() protoreflect.Message {
- return xxx_File_extensions_ext_ext_proto_messageTypes[1].MessageOf(x)
+ return file_extensions_ext_ext_proto_msgTypes[1].MessageOf(x)
}
func (m *ExtensionGroup) XXX_Methods() *protoiface.Methods {
- return xxx_File_extensions_ext_ext_proto_messageTypes[1].Methods()
+ return file_extensions_ext_ext_proto_msgTypes[1].Methods()
}
// Deprecated: Use ExtensionGroup.ProtoReflect.Type instead.
func (*ExtensionGroup) Descriptor() ([]byte, []int) {
- return xxx_File_extensions_ext_ext_proto_rawDescGZIP(), []int{1}
+ return file_extensions_ext_ext_proto_rawDescGZIP(), []int{1}
}
func (x *ExtensionGroup) GetExtensionGroup() string {
@@ -156,16 +156,16 @@
func (*ExtendingMessage) ProtoMessage() {}
func (x *ExtendingMessage) ProtoReflect() protoreflect.Message {
- return xxx_File_extensions_ext_ext_proto_messageTypes[2].MessageOf(x)
+ return file_extensions_ext_ext_proto_msgTypes[2].MessageOf(x)
}
func (m *ExtendingMessage) XXX_Methods() *protoiface.Methods {
- return xxx_File_extensions_ext_ext_proto_messageTypes[2].Methods()
+ return file_extensions_ext_ext_proto_msgTypes[2].Methods()
}
// Deprecated: Use ExtendingMessage.ProtoReflect.Type instead.
func (*ExtendingMessage) Descriptor() ([]byte, []int) {
- return xxx_File_extensions_ext_ext_proto_rawDescGZIP(), []int{2}
+ return file_extensions_ext_ext_proto_rawDescGZIP(), []int{2}
}
type RepeatedGroup struct {
@@ -186,16 +186,16 @@
func (*RepeatedGroup) ProtoMessage() {}
func (x *RepeatedGroup) ProtoReflect() protoreflect.Message {
- return xxx_File_extensions_ext_ext_proto_messageTypes[3].MessageOf(x)
+ return file_extensions_ext_ext_proto_msgTypes[3].MessageOf(x)
}
func (m *RepeatedGroup) XXX_Methods() *protoiface.Methods {
- return xxx_File_extensions_ext_ext_proto_messageTypes[3].Methods()
+ return file_extensions_ext_ext_proto_msgTypes[3].Methods()
}
// Deprecated: Use RepeatedGroup.ProtoReflect.Type instead.
func (*RepeatedGroup) Descriptor() ([]byte, []int) {
- return xxx_File_extensions_ext_ext_proto_rawDescGZIP(), []int{3}
+ return file_extensions_ext_ext_proto_rawDescGZIP(), []int{3}
}
func (x *RepeatedGroup) GetRepeatedXGroup() []string {
@@ -224,16 +224,16 @@
func (*Extendable) ProtoMessage() {}
func (x *Extendable) ProtoReflect() protoreflect.Message {
- return xxx_File_extensions_ext_ext_proto_messageTypes[4].MessageOf(x)
+ return file_extensions_ext_ext_proto_msgTypes[4].MessageOf(x)
}
func (m *Extendable) XXX_Methods() *protoiface.Methods {
- return xxx_File_extensions_ext_ext_proto_messageTypes[4].Methods()
+ return file_extensions_ext_ext_proto_msgTypes[4].Methods()
}
// Deprecated: Use Extendable.ProtoReflect.Type instead.
func (*Extendable) Descriptor() ([]byte, []int) {
- return xxx_File_extensions_ext_ext_proto_rawDescGZIP(), []int{4}
+ return file_extensions_ext_ext_proto_rawDescGZIP(), []int{4}
}
var extRange_Extendable = []protoiface.ExtensionRangeV1{
@@ -263,16 +263,16 @@
func (*MessageSetWireFormatExtension) ProtoMessage() {}
func (x *MessageSetWireFormatExtension) ProtoReflect() protoreflect.Message {
- return xxx_File_extensions_ext_ext_proto_messageTypes[5].MessageOf(x)
+ return file_extensions_ext_ext_proto_msgTypes[5].MessageOf(x)
}
func (m *MessageSetWireFormatExtension) XXX_Methods() *protoiface.Methods {
- return xxx_File_extensions_ext_ext_proto_messageTypes[5].Methods()
+ return file_extensions_ext_ext_proto_msgTypes[5].Methods()
}
// Deprecated: Use MessageSetWireFormatExtension.ProtoReflect.Type instead.
func (*MessageSetWireFormatExtension) Descriptor() ([]byte, []int) {
- return xxx_File_extensions_ext_ext_proto_rawDescGZIP(), []int{5}
+ return file_extensions_ext_ext_proto_rawDescGZIP(), []int{5}
}
type Message_M struct {
@@ -292,16 +292,16 @@
func (*Message_M) ProtoMessage() {}
func (x *Message_M) ProtoReflect() protoreflect.Message {
- return xxx_File_extensions_ext_ext_proto_messageTypes[6].MessageOf(x)
+ return file_extensions_ext_ext_proto_msgTypes[6].MessageOf(x)
}
func (m *Message_M) XXX_Methods() *protoiface.Methods {
- return xxx_File_extensions_ext_ext_proto_messageTypes[6].Methods()
+ return file_extensions_ext_ext_proto_msgTypes[6].Methods()
}
// Deprecated: Use Message_M.ProtoReflect.Type instead.
func (*Message_M) Descriptor() ([]byte, []int) {
- return xxx_File_extensions_ext_ext_proto_rawDescGZIP(), []int{0, 0}
+ return file_extensions_ext_ext_proto_rawDescGZIP(), []int{0, 0}
}
type ExtendingMessage_ExtendingMessageSubmessage struct {
@@ -321,19 +321,19 @@
func (*ExtendingMessage_ExtendingMessageSubmessage) ProtoMessage() {}
func (x *ExtendingMessage_ExtendingMessageSubmessage) ProtoReflect() protoreflect.Message {
- return xxx_File_extensions_ext_ext_proto_messageTypes[7].MessageOf(x)
+ return file_extensions_ext_ext_proto_msgTypes[7].MessageOf(x)
}
func (m *ExtendingMessage_ExtendingMessageSubmessage) XXX_Methods() *protoiface.Methods {
- return xxx_File_extensions_ext_ext_proto_messageTypes[7].Methods()
+ return file_extensions_ext_ext_proto_msgTypes[7].Methods()
}
// Deprecated: Use ExtendingMessage_ExtendingMessageSubmessage.ProtoReflect.Type instead.
func (*ExtendingMessage_ExtendingMessageSubmessage) Descriptor() ([]byte, []int) {
- return xxx_File_extensions_ext_ext_proto_rawDescGZIP(), []int{2, 0}
+ return file_extensions_ext_ext_proto_rawDescGZIP(), []int{2, 0}
}
-var xxx_File_extensions_ext_ext_proto_extDescs = []protoiface.ExtensionDescV1{
+var file_extensions_ext_ext_proto_extDescs = []protoiface.ExtensionDescV1{
{
ExtendedType: (*base.BaseMessage)(nil),
ExtensionType: (*bool)(nil),
@@ -689,140 +689,140 @@
}
var (
// extend goproto.protoc.extension.base.BaseMessage { optional bool extension_bool = 101; }
- E_ExtensionBool = &xxx_File_extensions_ext_ext_proto_extDescs[0]
+ E_ExtensionBool = &file_extensions_ext_ext_proto_extDescs[0]
// extend goproto.protoc.extension.base.BaseMessage { optional goproto.protoc.extension.ext.Enum extension_enum = 102; }
- E_ExtensionEnum = &xxx_File_extensions_ext_ext_proto_extDescs[1]
+ E_ExtensionEnum = &file_extensions_ext_ext_proto_extDescs[1]
// extend goproto.protoc.extension.base.BaseMessage { optional int32 extension_int32 = 103; }
- E_ExtensionInt32 = &xxx_File_extensions_ext_ext_proto_extDescs[2]
+ E_ExtensionInt32 = &file_extensions_ext_ext_proto_extDescs[2]
// extend goproto.protoc.extension.base.BaseMessage { optional sint32 extension_sint32 = 104; }
- E_ExtensionSint32 = &xxx_File_extensions_ext_ext_proto_extDescs[3]
+ E_ExtensionSint32 = &file_extensions_ext_ext_proto_extDescs[3]
// extend goproto.protoc.extension.base.BaseMessage { optional uint32 extension_uint32 = 105; }
- E_ExtensionUint32 = &xxx_File_extensions_ext_ext_proto_extDescs[4]
+ E_ExtensionUint32 = &file_extensions_ext_ext_proto_extDescs[4]
// extend goproto.protoc.extension.base.BaseMessage { optional int64 extension_int64 = 106; }
- E_ExtensionInt64 = &xxx_File_extensions_ext_ext_proto_extDescs[5]
+ E_ExtensionInt64 = &file_extensions_ext_ext_proto_extDescs[5]
// extend goproto.protoc.extension.base.BaseMessage { optional sint64 extension_sint64 = 107; }
- E_ExtensionSint64 = &xxx_File_extensions_ext_ext_proto_extDescs[6]
+ E_ExtensionSint64 = &file_extensions_ext_ext_proto_extDescs[6]
// extend goproto.protoc.extension.base.BaseMessage { optional uint64 extension_uint64 = 108; }
- E_ExtensionUint64 = &xxx_File_extensions_ext_ext_proto_extDescs[7]
+ E_ExtensionUint64 = &file_extensions_ext_ext_proto_extDescs[7]
// extend goproto.protoc.extension.base.BaseMessage { optional sfixed32 extension_sfixed32 = 109; }
- E_ExtensionSfixed32 = &xxx_File_extensions_ext_ext_proto_extDescs[8]
+ E_ExtensionSfixed32 = &file_extensions_ext_ext_proto_extDescs[8]
// extend goproto.protoc.extension.base.BaseMessage { optional fixed32 extension_fixed32 = 110; }
- E_ExtensionFixed32 = &xxx_File_extensions_ext_ext_proto_extDescs[9]
+ E_ExtensionFixed32 = &file_extensions_ext_ext_proto_extDescs[9]
// extend goproto.protoc.extension.base.BaseMessage { optional float extension_float = 111; }
- E_ExtensionFloat = &xxx_File_extensions_ext_ext_proto_extDescs[10]
+ E_ExtensionFloat = &file_extensions_ext_ext_proto_extDescs[10]
// extend goproto.protoc.extension.base.BaseMessage { optional sfixed64 extension_sfixed64 = 112; }
- E_ExtensionSfixed64 = &xxx_File_extensions_ext_ext_proto_extDescs[11]
+ E_ExtensionSfixed64 = &file_extensions_ext_ext_proto_extDescs[11]
// extend goproto.protoc.extension.base.BaseMessage { optional fixed64 extension_fixed64 = 113; }
- E_ExtensionFixed64 = &xxx_File_extensions_ext_ext_proto_extDescs[12]
+ E_ExtensionFixed64 = &file_extensions_ext_ext_proto_extDescs[12]
// extend goproto.protoc.extension.base.BaseMessage { optional double extension_double = 114; }
- E_ExtensionDouble = &xxx_File_extensions_ext_ext_proto_extDescs[13]
+ E_ExtensionDouble = &file_extensions_ext_ext_proto_extDescs[13]
// extend goproto.protoc.extension.base.BaseMessage { optional string extension_string = 115; }
- E_ExtensionString = &xxx_File_extensions_ext_ext_proto_extDescs[14]
+ E_ExtensionString = &file_extensions_ext_ext_proto_extDescs[14]
// extend goproto.protoc.extension.base.BaseMessage { optional bytes extension_bytes = 116; }
- E_ExtensionBytes = &xxx_File_extensions_ext_ext_proto_extDescs[15]
+ E_ExtensionBytes = &file_extensions_ext_ext_proto_extDescs[15]
// extend goproto.protoc.extension.base.BaseMessage { optional goproto.protoc.extension.ext.Message extension_Message = 117; }
- E_Extension_Message = &xxx_File_extensions_ext_ext_proto_extDescs[16]
+ E_Extension_Message = &file_extensions_ext_ext_proto_extDescs[16]
// extend goproto.protoc.extension.base.BaseMessage { optional goproto.protoc.extension.ext.Message.M extension_MessageM = 118; }
- E_Extension_MessageM = &xxx_File_extensions_ext_ext_proto_extDescs[17]
+ E_Extension_MessageM = &file_extensions_ext_ext_proto_extDescs[17]
// extend goproto.protoc.extension.base.BaseMessage { optional goproto.protoc.extension.ext.ExtensionGroup extensiongroup = 119; }
- E_Extensiongroup = &xxx_File_extensions_ext_ext_proto_extDescs[18]
+ E_Extensiongroup = &file_extensions_ext_ext_proto_extDescs[18]
// extend goproto.protoc.extension.base.BaseMessage { optional goproto.protoc.extension.extra.ExtraMessage extra_message = 9; }
- E_ExtraMessage = &xxx_File_extensions_ext_ext_proto_extDescs[19]
+ E_ExtraMessage = &file_extensions_ext_ext_proto_extDescs[19]
// extend goproto.protoc.extension.base.BaseMessage { repeated bool repeated_x_bool = 301; }
- E_RepeatedXBool = &xxx_File_extensions_ext_ext_proto_extDescs[20]
+ E_RepeatedXBool = &file_extensions_ext_ext_proto_extDescs[20]
// extend goproto.protoc.extension.base.BaseMessage { repeated goproto.protoc.extension.ext.Enum repeated_x_enum = 302; }
- E_RepeatedXEnum = &xxx_File_extensions_ext_ext_proto_extDescs[21]
+ E_RepeatedXEnum = &file_extensions_ext_ext_proto_extDescs[21]
// extend goproto.protoc.extension.base.BaseMessage { repeated int32 repeated_x_int32 = 303; }
- E_RepeatedXInt32 = &xxx_File_extensions_ext_ext_proto_extDescs[22]
+ E_RepeatedXInt32 = &file_extensions_ext_ext_proto_extDescs[22]
// extend goproto.protoc.extension.base.BaseMessage { repeated sint32 repeated_x_sint32 = 304; }
- E_RepeatedXSint32 = &xxx_File_extensions_ext_ext_proto_extDescs[23]
+ E_RepeatedXSint32 = &file_extensions_ext_ext_proto_extDescs[23]
// extend goproto.protoc.extension.base.BaseMessage { repeated uint32 repeated_x_uint32 = 305; }
- E_RepeatedXUint32 = &xxx_File_extensions_ext_ext_proto_extDescs[24]
+ E_RepeatedXUint32 = &file_extensions_ext_ext_proto_extDescs[24]
// extend goproto.protoc.extension.base.BaseMessage { repeated int64 repeated_x_int64 = 306; }
- E_RepeatedXInt64 = &xxx_File_extensions_ext_ext_proto_extDescs[25]
+ E_RepeatedXInt64 = &file_extensions_ext_ext_proto_extDescs[25]
// extend goproto.protoc.extension.base.BaseMessage { repeated sint64 repeated_x_sint64 = 307; }
- E_RepeatedXSint64 = &xxx_File_extensions_ext_ext_proto_extDescs[26]
+ E_RepeatedXSint64 = &file_extensions_ext_ext_proto_extDescs[26]
// extend goproto.protoc.extension.base.BaseMessage { repeated uint64 repeated_x_uint64 = 308; }
- E_RepeatedXUint64 = &xxx_File_extensions_ext_ext_proto_extDescs[27]
+ E_RepeatedXUint64 = &file_extensions_ext_ext_proto_extDescs[27]
// extend goproto.protoc.extension.base.BaseMessage { repeated sfixed32 repeated_x_sfixed32 = 309; }
- E_RepeatedXSfixed32 = &xxx_File_extensions_ext_ext_proto_extDescs[28]
+ E_RepeatedXSfixed32 = &file_extensions_ext_ext_proto_extDescs[28]
// extend goproto.protoc.extension.base.BaseMessage { repeated fixed32 repeated_x_fixed32 = 310; }
- E_RepeatedXFixed32 = &xxx_File_extensions_ext_ext_proto_extDescs[29]
+ E_RepeatedXFixed32 = &file_extensions_ext_ext_proto_extDescs[29]
// extend goproto.protoc.extension.base.BaseMessage { repeated float repeated_x_float = 311; }
- E_RepeatedXFloat = &xxx_File_extensions_ext_ext_proto_extDescs[30]
+ E_RepeatedXFloat = &file_extensions_ext_ext_proto_extDescs[30]
// extend goproto.protoc.extension.base.BaseMessage { repeated sfixed64 repeated_x_sfixed64 = 312; }
- E_RepeatedXSfixed64 = &xxx_File_extensions_ext_ext_proto_extDescs[31]
+ E_RepeatedXSfixed64 = &file_extensions_ext_ext_proto_extDescs[31]
// extend goproto.protoc.extension.base.BaseMessage { repeated fixed64 repeated_x_fixed64 = 313; }
- E_RepeatedXFixed64 = &xxx_File_extensions_ext_ext_proto_extDescs[32]
+ E_RepeatedXFixed64 = &file_extensions_ext_ext_proto_extDescs[32]
// extend goproto.protoc.extension.base.BaseMessage { repeated double repeated_x_double = 314; }
- E_RepeatedXDouble = &xxx_File_extensions_ext_ext_proto_extDescs[33]
+ E_RepeatedXDouble = &file_extensions_ext_ext_proto_extDescs[33]
// extend goproto.protoc.extension.base.BaseMessage { repeated string repeated_x_string = 315; }
- E_RepeatedXString = &xxx_File_extensions_ext_ext_proto_extDescs[34]
+ E_RepeatedXString = &file_extensions_ext_ext_proto_extDescs[34]
// extend goproto.protoc.extension.base.BaseMessage { repeated bytes repeated_x_bytes = 316; }
- E_RepeatedXBytes = &xxx_File_extensions_ext_ext_proto_extDescs[35]
+ E_RepeatedXBytes = &file_extensions_ext_ext_proto_extDescs[35]
// extend goproto.protoc.extension.base.BaseMessage { repeated goproto.protoc.extension.ext.Message repeated_x_Message = 317; }
- E_RepeatedX_Message = &xxx_File_extensions_ext_ext_proto_extDescs[36]
+ E_RepeatedX_Message = &file_extensions_ext_ext_proto_extDescs[36]
// extend goproto.protoc.extension.base.BaseMessage { repeated goproto.protoc.extension.ext.RepeatedGroup repeatedgroup = 318; }
- E_Repeatedgroup = &xxx_File_extensions_ext_ext_proto_extDescs[37]
+ E_Repeatedgroup = &file_extensions_ext_ext_proto_extDescs[37]
// extend goproto.protoc.extension.base.BaseMessage { optional goproto.protoc.extension.ext.Extendable extendable_field = 400; }
- E_ExtendableField = &xxx_File_extensions_ext_ext_proto_extDescs[38]
+ E_ExtendableField = &file_extensions_ext_ext_proto_extDescs[38]
// extend goproto.protoc.extension.ext.Extendable { optional string extendable_string_field = 1; }
- E_ExtendableStringField = &xxx_File_extensions_ext_ext_proto_extDescs[39]
+ E_ExtendableStringField = &file_extensions_ext_ext_proto_extDescs[39]
// extend goproto.protoc.extension.base.MessageSetWireFormatMessage { optional goproto.protoc.extension.ext.MessageSetWireFormatExtension message_set_extension = 101; }
- E_MessageSetExtension = &xxx_File_extensions_ext_ext_proto_extDescs[40]
+ E_MessageSetExtension = &file_extensions_ext_ext_proto_extDescs[40]
// extend goproto.protoc.extension.base.BaseMessage { optional string extending_message_string = 200; }
- E_ExtendingMessage_ExtendingMessageString = &xxx_File_extensions_ext_ext_proto_extDescs[41]
+ E_ExtendingMessage_ExtendingMessageString = &file_extensions_ext_ext_proto_extDescs[41]
// extend goproto.protoc.extension.base.BaseMessage { optional goproto.protoc.extension.ext.ExtendingMessage.ExtendingMessageSubmessage extending_message_submessage = 201; }
- E_ExtendingMessage_ExtendingMessageSubmessage = &xxx_File_extensions_ext_ext_proto_extDescs[42]
+ E_ExtendingMessage_ExtendingMessageSubmessage = &file_extensions_ext_ext_proto_extDescs[42]
// extend goproto.protoc.extension.base.MessageSetWireFormatMessage { optional goproto.protoc.extension.ext.MessageSetWireFormatExtension message_set_extension = 100; }
- E_MessageSetWireFormatExtension_MessageSetExtension = &xxx_File_extensions_ext_ext_proto_extDescs[43]
+ E_MessageSetWireFormatExtension_MessageSetExtension = &file_extensions_ext_ext_proto_extDescs[43]
)
var File_extensions_ext_ext_proto protoreflect.FileDescriptor
-var xxx_File_extensions_ext_ext_proto_rawDesc = []byte{
+var file_extensions_ext_ext_proto_rawDesc = []byte{
0x0a, 0x18, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x65, 0x78, 0x74,
0x2f, 0x65, 0x78, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x67, 0x6f, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x65, 0x78, 0x74, 0x65, 0x6e,
@@ -1139,20 +1139,20 @@
}
var (
- xxx_File_extensions_ext_ext_proto_rawDesc_once sync.Once
- xxx_File_extensions_ext_ext_proto_rawDesc_data = xxx_File_extensions_ext_ext_proto_rawDesc
+ file_extensions_ext_ext_proto_rawDescOnce sync.Once
+ file_extensions_ext_ext_proto_rawDescData = file_extensions_ext_ext_proto_rawDesc
)
-func xxx_File_extensions_ext_ext_proto_rawDescGZIP() []byte {
- xxx_File_extensions_ext_ext_proto_rawDesc_once.Do(func() {
- xxx_File_extensions_ext_ext_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_extensions_ext_ext_proto_rawDesc_data)
+func file_extensions_ext_ext_proto_rawDescGZIP() []byte {
+ file_extensions_ext_ext_proto_rawDescOnce.Do(func() {
+ file_extensions_ext_ext_proto_rawDescData = protoimpl.X.CompressGZIP(file_extensions_ext_ext_proto_rawDescData)
})
- return xxx_File_extensions_ext_ext_proto_rawDesc_data
+ return file_extensions_ext_ext_proto_rawDescData
}
-var xxx_File_extensions_ext_ext_proto_enumTypes = make([]protoreflect.EnumType, 1)
-var xxx_File_extensions_ext_ext_proto_messageTypes = make([]protoimpl.MessageType, 8)
-var xxx_File_extensions_ext_ext_proto_goTypes = []interface{}{
+var file_extensions_ext_ext_proto_enumTypes = make([]protoreflect.EnumType, 1)
+var file_extensions_ext_ext_proto_msgTypes = make([]protoimpl.MessageType, 8)
+var file_extensions_ext_ext_proto_goTypes = []interface{}{
(Enum)(0), // 0: goproto.protoc.extension.ext.Enum
(*Message)(nil), // 1: goproto.protoc.extension.ext.Message
(*ExtensionGroup)(nil), // 2: goproto.protoc.extension.ext.ExtensionGroup
@@ -1166,7 +1166,7 @@
(*base.MessageSetWireFormatMessage)(nil), // 10: goproto.protoc.extension.base.MessageSetWireFormatMessage
(*extra.ExtraMessage)(nil), // 11: goproto.protoc.extension.extra.ExtraMessage
}
-var xxx_File_extensions_ext_ext_proto_depIdxs = []int32{
+var file_extensions_ext_ext_proto_depIdxs = []int32{
9, // goproto.protoc.extension.ext.extension_bool:extendee -> goproto.protoc.extension.base.BaseMessage
9, // goproto.protoc.extension.ext.extension_enum:extendee -> goproto.protoc.extension.base.BaseMessage
9, // goproto.protoc.extension.ext.extension_int32:extendee -> goproto.protoc.extension.base.BaseMessage
@@ -1225,24 +1225,24 @@
6, // goproto.protoc.extension.ext.MessageSetWireFormatExtension.message_set_extension:type_name -> goproto.protoc.extension.ext.MessageSetWireFormatExtension
}
-func init() { xxx_File_extensions_ext_ext_proto_init() }
-func xxx_File_extensions_ext_ext_proto_init() {
+func init() { file_extensions_ext_ext_proto_init() }
+func file_extensions_ext_ext_proto_init() {
if File_extensions_ext_ext_proto != nil {
return
}
extensionTypes := make([]protoreflect.ExtensionType, 44)
File_extensions_ext_ext_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_extensions_ext_ext_proto_rawDesc,
- GoTypes: xxx_File_extensions_ext_ext_proto_goTypes,
- DependencyIndexes: xxx_File_extensions_ext_ext_proto_depIdxs,
- LegacyExtensions: xxx_File_extensions_ext_ext_proto_extDescs,
- EnumOutputTypes: xxx_File_extensions_ext_ext_proto_enumTypes,
- MessageOutputTypes: xxx_File_extensions_ext_ext_proto_messageTypes,
+ RawDescriptor: file_extensions_ext_ext_proto_rawDesc,
+ GoTypes: file_extensions_ext_ext_proto_goTypes,
+ DependencyIndexes: file_extensions_ext_ext_proto_depIdxs,
+ LegacyExtensions: file_extensions_ext_ext_proto_extDescs,
+ EnumOutputTypes: file_extensions_ext_ext_proto_enumTypes,
+ MessageOutputTypes: file_extensions_ext_ext_proto_msgTypes,
ExtensionOutputTypes: extensionTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_extensions_ext_ext_proto_rawDesc = nil
- xxx_File_extensions_ext_ext_proto_goTypes = nil
- xxx_File_extensions_ext_ext_proto_depIdxs = nil
+ file_extensions_ext_ext_proto_rawDesc = nil
+ file_extensions_ext_ext_proto_goTypes = nil
+ file_extensions_ext_ext_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/extensions/extra/extra.pb.go b/cmd/protoc-gen-go/testdata/extensions/extra/extra.pb.go
index e8367a6..ad3b377 100644
--- a/cmd/protoc-gen-go/testdata/extensions/extra/extra.pb.go
+++ b/cmd/protoc-gen-go/testdata/extensions/extra/extra.pb.go
@@ -31,16 +31,16 @@
func (*ExtraMessage) ProtoMessage() {}
func (x *ExtraMessage) ProtoReflect() protoreflect.Message {
- return xxx_File_extensions_extra_extra_proto_messageTypes[0].MessageOf(x)
+ return file_extensions_extra_extra_proto_msgTypes[0].MessageOf(x)
}
func (m *ExtraMessage) XXX_Methods() *protoiface.Methods {
- return xxx_File_extensions_extra_extra_proto_messageTypes[0].Methods()
+ return file_extensions_extra_extra_proto_msgTypes[0].Methods()
}
// Deprecated: Use ExtraMessage.ProtoReflect.Type instead.
func (*ExtraMessage) Descriptor() ([]byte, []int) {
- return xxx_File_extensions_extra_extra_proto_rawDescGZIP(), []int{0}
+ return file_extensions_extra_extra_proto_rawDescGZIP(), []int{0}
}
func (x *ExtraMessage) GetData() []byte {
@@ -52,7 +52,7 @@
var File_extensions_extra_extra_proto protoreflect.FileDescriptor
-var xxx_File_extensions_extra_extra_proto_rawDesc = []byte{
+var file_extensions_extra_extra_proto_rawDesc = []byte{
0x0a, 0x1c, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x65, 0x78, 0x74,
0x72, 0x61, 0x2f, 0x65, 0x78, 0x74, 0x72, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e,
0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x65,
@@ -67,37 +67,37 @@
}
var (
- xxx_File_extensions_extra_extra_proto_rawDesc_once sync.Once
- xxx_File_extensions_extra_extra_proto_rawDesc_data = xxx_File_extensions_extra_extra_proto_rawDesc
+ file_extensions_extra_extra_proto_rawDescOnce sync.Once
+ file_extensions_extra_extra_proto_rawDescData = file_extensions_extra_extra_proto_rawDesc
)
-func xxx_File_extensions_extra_extra_proto_rawDescGZIP() []byte {
- xxx_File_extensions_extra_extra_proto_rawDesc_once.Do(func() {
- xxx_File_extensions_extra_extra_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_extensions_extra_extra_proto_rawDesc_data)
+func file_extensions_extra_extra_proto_rawDescGZIP() []byte {
+ file_extensions_extra_extra_proto_rawDescOnce.Do(func() {
+ file_extensions_extra_extra_proto_rawDescData = protoimpl.X.CompressGZIP(file_extensions_extra_extra_proto_rawDescData)
})
- return xxx_File_extensions_extra_extra_proto_rawDesc_data
+ return file_extensions_extra_extra_proto_rawDescData
}
-var xxx_File_extensions_extra_extra_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_extensions_extra_extra_proto_goTypes = []interface{}{
+var file_extensions_extra_extra_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_extensions_extra_extra_proto_goTypes = []interface{}{
(*ExtraMessage)(nil), // 0: goproto.protoc.extension.extra.ExtraMessage
}
-var xxx_File_extensions_extra_extra_proto_depIdxs = []int32{}
+var file_extensions_extra_extra_proto_depIdxs = []int32{}
-func init() { xxx_File_extensions_extra_extra_proto_init() }
-func xxx_File_extensions_extra_extra_proto_init() {
+func init() { file_extensions_extra_extra_proto_init() }
+func file_extensions_extra_extra_proto_init() {
if File_extensions_extra_extra_proto != nil {
return
}
File_extensions_extra_extra_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_extensions_extra_extra_proto_rawDesc,
- GoTypes: xxx_File_extensions_extra_extra_proto_goTypes,
- DependencyIndexes: xxx_File_extensions_extra_extra_proto_depIdxs,
- MessageOutputTypes: xxx_File_extensions_extra_extra_proto_messageTypes,
+ RawDescriptor: file_extensions_extra_extra_proto_rawDesc,
+ GoTypes: file_extensions_extra_extra_proto_goTypes,
+ DependencyIndexes: file_extensions_extra_extra_proto_depIdxs,
+ MessageOutputTypes: file_extensions_extra_extra_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_extensions_extra_extra_proto_rawDesc = nil
- xxx_File_extensions_extra_extra_proto_goTypes = nil
- xxx_File_extensions_extra_extra_proto_depIdxs = nil
+ file_extensions_extra_extra_proto_rawDesc = nil
+ file_extensions_extra_extra_proto_goTypes = nil
+ file_extensions_extra_extra_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.pb.go b/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.pb.go
index 4aac7fb..47a791d 100644
--- a/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.pb.go
+++ b/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.pb.go
@@ -35,7 +35,7 @@
}
func (Enum) Type() protoreflect.EnumType {
- return xxx_File_extensions_proto3_ext3_proto_enumTypes[0]
+ return file_extensions_proto3_ext3_proto_enumTypes[0]
}
func (x Enum) Number() protoreflect.EnumNumber {
@@ -44,7 +44,7 @@
// Deprecated: Use Enum.Type instead.
func (Enum) EnumDescriptor() ([]byte, []int) {
- return xxx_File_extensions_proto3_ext3_proto_rawDescGZIP(), []int{0}
+ return file_extensions_proto3_ext3_proto_rawDescGZIP(), []int{0}
}
type Message struct {
@@ -64,19 +64,19 @@
func (*Message) ProtoMessage() {}
func (x *Message) ProtoReflect() protoreflect.Message {
- return xxx_File_extensions_proto3_ext3_proto_messageTypes[0].MessageOf(x)
+ return file_extensions_proto3_ext3_proto_msgTypes[0].MessageOf(x)
}
func (m *Message) XXX_Methods() *protoiface.Methods {
- return xxx_File_extensions_proto3_ext3_proto_messageTypes[0].Methods()
+ return file_extensions_proto3_ext3_proto_msgTypes[0].Methods()
}
// Deprecated: Use Message.ProtoReflect.Type instead.
func (*Message) Descriptor() ([]byte, []int) {
- return xxx_File_extensions_proto3_ext3_proto_rawDescGZIP(), []int{0}
+ return file_extensions_proto3_ext3_proto_rawDescGZIP(), []int{0}
}
-var xxx_File_extensions_proto3_ext3_proto_extDescs = []protoiface.ExtensionDescV1{
+var file_extensions_proto3_ext3_proto_extDescs = []protoiface.ExtensionDescV1{
{
ExtendedType: (*descriptor.MessageOptions)(nil),
ExtensionType: (*bool)(nil),
@@ -352,110 +352,110 @@
}
var (
// extend google.protobuf.MessageOptions { optional bool extension_bool = 1001; }
- E_ExtensionBool = &xxx_File_extensions_proto3_ext3_proto_extDescs[0]
+ E_ExtensionBool = &file_extensions_proto3_ext3_proto_extDescs[0]
// extend google.protobuf.MessageOptions { optional goproto.protoc.extension.proto3.Enum extension_enum = 1002; }
- E_ExtensionEnum = &xxx_File_extensions_proto3_ext3_proto_extDescs[1]
+ E_ExtensionEnum = &file_extensions_proto3_ext3_proto_extDescs[1]
// extend google.protobuf.MessageOptions { optional int32 extension_int32 = 1003; }
- E_ExtensionInt32 = &xxx_File_extensions_proto3_ext3_proto_extDescs[2]
+ E_ExtensionInt32 = &file_extensions_proto3_ext3_proto_extDescs[2]
// extend google.protobuf.MessageOptions { optional sint32 extension_sint32 = 1004; }
- E_ExtensionSint32 = &xxx_File_extensions_proto3_ext3_proto_extDescs[3]
+ E_ExtensionSint32 = &file_extensions_proto3_ext3_proto_extDescs[3]
// extend google.protobuf.MessageOptions { optional uint32 extension_uint32 = 1005; }
- E_ExtensionUint32 = &xxx_File_extensions_proto3_ext3_proto_extDescs[4]
+ E_ExtensionUint32 = &file_extensions_proto3_ext3_proto_extDescs[4]
// extend google.protobuf.MessageOptions { optional int64 extension_int64 = 1006; }
- E_ExtensionInt64 = &xxx_File_extensions_proto3_ext3_proto_extDescs[5]
+ E_ExtensionInt64 = &file_extensions_proto3_ext3_proto_extDescs[5]
// extend google.protobuf.MessageOptions { optional sint64 extension_sint64 = 1007; }
- E_ExtensionSint64 = &xxx_File_extensions_proto3_ext3_proto_extDescs[6]
+ E_ExtensionSint64 = &file_extensions_proto3_ext3_proto_extDescs[6]
// extend google.protobuf.MessageOptions { optional uint64 extension_uint64 = 1008; }
- E_ExtensionUint64 = &xxx_File_extensions_proto3_ext3_proto_extDescs[7]
+ E_ExtensionUint64 = &file_extensions_proto3_ext3_proto_extDescs[7]
// extend google.protobuf.MessageOptions { optional sfixed32 extension_sfixed32 = 1009; }
- E_ExtensionSfixed32 = &xxx_File_extensions_proto3_ext3_proto_extDescs[8]
+ E_ExtensionSfixed32 = &file_extensions_proto3_ext3_proto_extDescs[8]
// extend google.protobuf.MessageOptions { optional fixed32 extension_fixed32 = 1010; }
- E_ExtensionFixed32 = &xxx_File_extensions_proto3_ext3_proto_extDescs[9]
+ E_ExtensionFixed32 = &file_extensions_proto3_ext3_proto_extDescs[9]
// extend google.protobuf.MessageOptions { optional float extension_float = 1011; }
- E_ExtensionFloat = &xxx_File_extensions_proto3_ext3_proto_extDescs[10]
+ E_ExtensionFloat = &file_extensions_proto3_ext3_proto_extDescs[10]
// extend google.protobuf.MessageOptions { optional sfixed64 extension_sfixed64 = 1012; }
- E_ExtensionSfixed64 = &xxx_File_extensions_proto3_ext3_proto_extDescs[11]
+ E_ExtensionSfixed64 = &file_extensions_proto3_ext3_proto_extDescs[11]
// extend google.protobuf.MessageOptions { optional fixed64 extension_fixed64 = 1013; }
- E_ExtensionFixed64 = &xxx_File_extensions_proto3_ext3_proto_extDescs[12]
+ E_ExtensionFixed64 = &file_extensions_proto3_ext3_proto_extDescs[12]
// extend google.protobuf.MessageOptions { optional double extension_double = 1014; }
- E_ExtensionDouble = &xxx_File_extensions_proto3_ext3_proto_extDescs[13]
+ E_ExtensionDouble = &file_extensions_proto3_ext3_proto_extDescs[13]
// extend google.protobuf.MessageOptions { optional string extension_string = 1015; }
- E_ExtensionString = &xxx_File_extensions_proto3_ext3_proto_extDescs[14]
+ E_ExtensionString = &file_extensions_proto3_ext3_proto_extDescs[14]
// extend google.protobuf.MessageOptions { optional bytes extension_bytes = 1016; }
- E_ExtensionBytes = &xxx_File_extensions_proto3_ext3_proto_extDescs[15]
+ E_ExtensionBytes = &file_extensions_proto3_ext3_proto_extDescs[15]
// extend google.protobuf.MessageOptions { optional goproto.protoc.extension.proto3.Message extension_Message = 1017; }
- E_Extension_Message = &xxx_File_extensions_proto3_ext3_proto_extDescs[16]
+ E_Extension_Message = &file_extensions_proto3_ext3_proto_extDescs[16]
// extend google.protobuf.MessageOptions { repeated bool repeated_extension_bool = 2001; }
- E_RepeatedExtensionBool = &xxx_File_extensions_proto3_ext3_proto_extDescs[17]
+ E_RepeatedExtensionBool = &file_extensions_proto3_ext3_proto_extDescs[17]
// extend google.protobuf.MessageOptions { repeated goproto.protoc.extension.proto3.Enum repeated_extension_enum = 2002; }
- E_RepeatedExtensionEnum = &xxx_File_extensions_proto3_ext3_proto_extDescs[18]
+ E_RepeatedExtensionEnum = &file_extensions_proto3_ext3_proto_extDescs[18]
// extend google.protobuf.MessageOptions { repeated int32 repeated_extension_int32 = 2003; }
- E_RepeatedExtensionInt32 = &xxx_File_extensions_proto3_ext3_proto_extDescs[19]
+ E_RepeatedExtensionInt32 = &file_extensions_proto3_ext3_proto_extDescs[19]
// extend google.protobuf.MessageOptions { repeated sint32 repeated_extension_sint32 = 2004; }
- E_RepeatedExtensionSint32 = &xxx_File_extensions_proto3_ext3_proto_extDescs[20]
+ E_RepeatedExtensionSint32 = &file_extensions_proto3_ext3_proto_extDescs[20]
// extend google.protobuf.MessageOptions { repeated uint32 repeated_extension_uint32 = 2005; }
- E_RepeatedExtensionUint32 = &xxx_File_extensions_proto3_ext3_proto_extDescs[21]
+ E_RepeatedExtensionUint32 = &file_extensions_proto3_ext3_proto_extDescs[21]
// extend google.protobuf.MessageOptions { repeated int64 repeated_extension_int64 = 2006; }
- E_RepeatedExtensionInt64 = &xxx_File_extensions_proto3_ext3_proto_extDescs[22]
+ E_RepeatedExtensionInt64 = &file_extensions_proto3_ext3_proto_extDescs[22]
// extend google.protobuf.MessageOptions { repeated sint64 repeated_extension_sint64 = 2007; }
- E_RepeatedExtensionSint64 = &xxx_File_extensions_proto3_ext3_proto_extDescs[23]
+ E_RepeatedExtensionSint64 = &file_extensions_proto3_ext3_proto_extDescs[23]
// extend google.protobuf.MessageOptions { repeated uint64 repeated_extension_uint64 = 2008; }
- E_RepeatedExtensionUint64 = &xxx_File_extensions_proto3_ext3_proto_extDescs[24]
+ E_RepeatedExtensionUint64 = &file_extensions_proto3_ext3_proto_extDescs[24]
// extend google.protobuf.MessageOptions { repeated sfixed32 repeated_extension_sfixed32 = 2009; }
- E_RepeatedExtensionSfixed32 = &xxx_File_extensions_proto3_ext3_proto_extDescs[25]
+ E_RepeatedExtensionSfixed32 = &file_extensions_proto3_ext3_proto_extDescs[25]
// extend google.protobuf.MessageOptions { repeated fixed32 repeated_extension_fixed32 = 2010; }
- E_RepeatedExtensionFixed32 = &xxx_File_extensions_proto3_ext3_proto_extDescs[26]
+ E_RepeatedExtensionFixed32 = &file_extensions_proto3_ext3_proto_extDescs[26]
// extend google.protobuf.MessageOptions { repeated float repeated_extension_float = 2011; }
- E_RepeatedExtensionFloat = &xxx_File_extensions_proto3_ext3_proto_extDescs[27]
+ E_RepeatedExtensionFloat = &file_extensions_proto3_ext3_proto_extDescs[27]
// extend google.protobuf.MessageOptions { repeated sfixed64 repeated_extension_sfixed64 = 2012; }
- E_RepeatedExtensionSfixed64 = &xxx_File_extensions_proto3_ext3_proto_extDescs[28]
+ E_RepeatedExtensionSfixed64 = &file_extensions_proto3_ext3_proto_extDescs[28]
// extend google.protobuf.MessageOptions { repeated fixed64 repeated_extension_fixed64 = 2013; }
- E_RepeatedExtensionFixed64 = &xxx_File_extensions_proto3_ext3_proto_extDescs[29]
+ E_RepeatedExtensionFixed64 = &file_extensions_proto3_ext3_proto_extDescs[29]
// extend google.protobuf.MessageOptions { repeated double repeated_extension_double = 2014; }
- E_RepeatedExtensionDouble = &xxx_File_extensions_proto3_ext3_proto_extDescs[30]
+ E_RepeatedExtensionDouble = &file_extensions_proto3_ext3_proto_extDescs[30]
// extend google.protobuf.MessageOptions { repeated string repeated_extension_string = 2015; }
- E_RepeatedExtensionString = &xxx_File_extensions_proto3_ext3_proto_extDescs[31]
+ E_RepeatedExtensionString = &file_extensions_proto3_ext3_proto_extDescs[31]
// extend google.protobuf.MessageOptions { repeated bytes repeated_extension_bytes = 2016; }
- E_RepeatedExtensionBytes = &xxx_File_extensions_proto3_ext3_proto_extDescs[32]
+ E_RepeatedExtensionBytes = &file_extensions_proto3_ext3_proto_extDescs[32]
// extend google.protobuf.MessageOptions { repeated goproto.protoc.extension.proto3.Message repeated_extension_Message = 2017; }
- E_RepeatedExtension_Message = &xxx_File_extensions_proto3_ext3_proto_extDescs[33]
+ E_RepeatedExtension_Message = &file_extensions_proto3_ext3_proto_extDescs[33]
)
var File_extensions_proto3_ext3_proto protoreflect.FileDescriptor
-var xxx_File_extensions_proto3_ext3_proto_rawDesc = []byte{
+var file_extensions_proto3_ext3_proto_rawDesc = []byte{
0x0a, 0x1c, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33, 0x2f, 0x65, 0x78, 0x74, 0x33, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f,
0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x65,
@@ -664,25 +664,25 @@
}
var (
- xxx_File_extensions_proto3_ext3_proto_rawDesc_once sync.Once
- xxx_File_extensions_proto3_ext3_proto_rawDesc_data = xxx_File_extensions_proto3_ext3_proto_rawDesc
+ file_extensions_proto3_ext3_proto_rawDescOnce sync.Once
+ file_extensions_proto3_ext3_proto_rawDescData = file_extensions_proto3_ext3_proto_rawDesc
)
-func xxx_File_extensions_proto3_ext3_proto_rawDescGZIP() []byte {
- xxx_File_extensions_proto3_ext3_proto_rawDesc_once.Do(func() {
- xxx_File_extensions_proto3_ext3_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_extensions_proto3_ext3_proto_rawDesc_data)
+func file_extensions_proto3_ext3_proto_rawDescGZIP() []byte {
+ file_extensions_proto3_ext3_proto_rawDescOnce.Do(func() {
+ file_extensions_proto3_ext3_proto_rawDescData = protoimpl.X.CompressGZIP(file_extensions_proto3_ext3_proto_rawDescData)
})
- return xxx_File_extensions_proto3_ext3_proto_rawDesc_data
+ return file_extensions_proto3_ext3_proto_rawDescData
}
-var xxx_File_extensions_proto3_ext3_proto_enumTypes = make([]protoreflect.EnumType, 1)
-var xxx_File_extensions_proto3_ext3_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_extensions_proto3_ext3_proto_goTypes = []interface{}{
+var file_extensions_proto3_ext3_proto_enumTypes = make([]protoreflect.EnumType, 1)
+var file_extensions_proto3_ext3_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_extensions_proto3_ext3_proto_goTypes = []interface{}{
(Enum)(0), // 0: goproto.protoc.extension.proto3.Enum
(*Message)(nil), // 1: goproto.protoc.extension.proto3.Message
(*descriptor.MessageOptions)(nil), // 2: google.protobuf.MessageOptions
}
-var xxx_File_extensions_proto3_ext3_proto_depIdxs = []int32{
+var file_extensions_proto3_ext3_proto_depIdxs = []int32{
2, // goproto.protoc.extension.proto3.extension_bool:extendee -> google.protobuf.MessageOptions
2, // goproto.protoc.extension.proto3.extension_enum:extendee -> google.protobuf.MessageOptions
2, // goproto.protoc.extension.proto3.extension_int32:extendee -> google.protobuf.MessageOptions
@@ -723,24 +723,24 @@
1, // goproto.protoc.extension.proto3.repeated_extension_Message:type_name -> goproto.protoc.extension.proto3.Message
}
-func init() { xxx_File_extensions_proto3_ext3_proto_init() }
-func xxx_File_extensions_proto3_ext3_proto_init() {
+func init() { file_extensions_proto3_ext3_proto_init() }
+func file_extensions_proto3_ext3_proto_init() {
if File_extensions_proto3_ext3_proto != nil {
return
}
extensionTypes := make([]protoreflect.ExtensionType, 34)
File_extensions_proto3_ext3_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_extensions_proto3_ext3_proto_rawDesc,
- GoTypes: xxx_File_extensions_proto3_ext3_proto_goTypes,
- DependencyIndexes: xxx_File_extensions_proto3_ext3_proto_depIdxs,
- LegacyExtensions: xxx_File_extensions_proto3_ext3_proto_extDescs,
- EnumOutputTypes: xxx_File_extensions_proto3_ext3_proto_enumTypes,
- MessageOutputTypes: xxx_File_extensions_proto3_ext3_proto_messageTypes,
+ RawDescriptor: file_extensions_proto3_ext3_proto_rawDesc,
+ GoTypes: file_extensions_proto3_ext3_proto_goTypes,
+ DependencyIndexes: file_extensions_proto3_ext3_proto_depIdxs,
+ LegacyExtensions: file_extensions_proto3_ext3_proto_extDescs,
+ EnumOutputTypes: file_extensions_proto3_ext3_proto_enumTypes,
+ MessageOutputTypes: file_extensions_proto3_ext3_proto_msgTypes,
ExtensionOutputTypes: extensionTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_extensions_proto3_ext3_proto_rawDesc = nil
- xxx_File_extensions_proto3_ext3_proto_goTypes = nil
- xxx_File_extensions_proto3_ext3_proto_depIdxs = nil
+ file_extensions_proto3_ext3_proto_rawDesc = nil
+ file_extensions_proto3_ext3_proto_goTypes = nil
+ file_extensions_proto3_ext3_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.pb.go b/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.pb.go
index 88e0b7d..2165567 100644
--- a/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.pb.go
+++ b/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.pb.go
@@ -69,16 +69,16 @@
func (*Message) ProtoMessage() {}
func (x *Message) ProtoReflect() protoreflect.Message {
- return xxx_File_fieldnames_fieldnames_proto_messageTypes[0].MessageOf(x)
+ return file_fieldnames_fieldnames_proto_msgTypes[0].MessageOf(x)
}
func (m *Message) XXX_Methods() *protoiface.Methods {
- return xxx_File_fieldnames_fieldnames_proto_messageTypes[0].Methods()
+ return file_fieldnames_fieldnames_proto_msgTypes[0].Methods()
}
// Deprecated: Use Message.ProtoReflect.Type instead.
func (*Message) Descriptor() ([]byte, []int) {
- return xxx_File_fieldnames_fieldnames_proto_rawDescGZIP(), []int{0}
+ return file_fieldnames_fieldnames_proto_rawDescGZIP(), []int{0}
}
func (x *Message) GetFieldOne() string {
@@ -291,21 +291,21 @@
func (*Message_OneofMessageConflict) ProtoMessage() {}
func (x *Message_OneofMessageConflict) ProtoReflect() protoreflect.Message {
- return xxx_File_fieldnames_fieldnames_proto_messageTypes[1].MessageOf(x)
+ return file_fieldnames_fieldnames_proto_msgTypes[1].MessageOf(x)
}
func (m *Message_OneofMessageConflict) XXX_Methods() *protoiface.Methods {
- return xxx_File_fieldnames_fieldnames_proto_messageTypes[1].Methods()
+ return file_fieldnames_fieldnames_proto_msgTypes[1].Methods()
}
// Deprecated: Use Message_OneofMessageConflict.ProtoReflect.Type instead.
func (*Message_OneofMessageConflict) Descriptor() ([]byte, []int) {
- return xxx_File_fieldnames_fieldnames_proto_rawDescGZIP(), []int{0, 0}
+ return file_fieldnames_fieldnames_proto_rawDescGZIP(), []int{0, 0}
}
var File_fieldnames_fieldnames_proto protoreflect.FileDescriptor
-var xxx_File_fieldnames_fieldnames_proto_rawDesc = []byte{
+var file_fieldnames_fieldnames_proto_rawDesc = []byte{
0x0a, 0x1b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x2f, 0x66, 0x69, 0x65,
0x6c, 0x64, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x67,
0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x66, 0x69,
@@ -361,38 +361,38 @@
}
var (
- xxx_File_fieldnames_fieldnames_proto_rawDesc_once sync.Once
- xxx_File_fieldnames_fieldnames_proto_rawDesc_data = xxx_File_fieldnames_fieldnames_proto_rawDesc
+ file_fieldnames_fieldnames_proto_rawDescOnce sync.Once
+ file_fieldnames_fieldnames_proto_rawDescData = file_fieldnames_fieldnames_proto_rawDesc
)
-func xxx_File_fieldnames_fieldnames_proto_rawDescGZIP() []byte {
- xxx_File_fieldnames_fieldnames_proto_rawDesc_once.Do(func() {
- xxx_File_fieldnames_fieldnames_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_fieldnames_fieldnames_proto_rawDesc_data)
+func file_fieldnames_fieldnames_proto_rawDescGZIP() []byte {
+ file_fieldnames_fieldnames_proto_rawDescOnce.Do(func() {
+ file_fieldnames_fieldnames_proto_rawDescData = protoimpl.X.CompressGZIP(file_fieldnames_fieldnames_proto_rawDescData)
})
- return xxx_File_fieldnames_fieldnames_proto_rawDesc_data
+ return file_fieldnames_fieldnames_proto_rawDescData
}
-var xxx_File_fieldnames_fieldnames_proto_messageTypes = make([]protoimpl.MessageType, 2)
-var xxx_File_fieldnames_fieldnames_proto_goTypes = []interface{}{
+var file_fieldnames_fieldnames_proto_msgTypes = make([]protoimpl.MessageType, 2)
+var file_fieldnames_fieldnames_proto_goTypes = []interface{}{
(*Message)(nil), // 0: goproto.protoc.fieldnames.Message
(*Message_OneofMessageConflict)(nil), // 1: goproto.protoc.fieldnames.Message.OneofMessageConflict
}
-var xxx_File_fieldnames_fieldnames_proto_depIdxs = []int32{}
+var file_fieldnames_fieldnames_proto_depIdxs = []int32{}
-func init() { xxx_File_fieldnames_fieldnames_proto_init() }
-func xxx_File_fieldnames_fieldnames_proto_init() {
+func init() { file_fieldnames_fieldnames_proto_init() }
+func file_fieldnames_fieldnames_proto_init() {
if File_fieldnames_fieldnames_proto != nil {
return
}
File_fieldnames_fieldnames_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_fieldnames_fieldnames_proto_rawDesc,
- GoTypes: xxx_File_fieldnames_fieldnames_proto_goTypes,
- DependencyIndexes: xxx_File_fieldnames_fieldnames_proto_depIdxs,
- MessageOutputTypes: xxx_File_fieldnames_fieldnames_proto_messageTypes,
+ RawDescriptor: file_fieldnames_fieldnames_proto_rawDesc,
+ GoTypes: file_fieldnames_fieldnames_proto_goTypes,
+ DependencyIndexes: file_fieldnames_fieldnames_proto_depIdxs,
+ MessageOutputTypes: file_fieldnames_fieldnames_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_fieldnames_fieldnames_proto_rawDesc = nil
- xxx_File_fieldnames_fieldnames_proto_goTypes = nil
- xxx_File_fieldnames_fieldnames_proto_depIdxs = nil
+ file_fieldnames_fieldnames_proto_rawDesc = nil
+ file_fieldnames_fieldnames_proto_goTypes = nil
+ file_fieldnames_fieldnames_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/import_public/a.pb.go b/cmd/protoc-gen-go/testdata/import_public/a.pb.go
index d527901..cf638df 100644
--- a/cmd/protoc-gen-go/testdata/import_public/a.pb.go
+++ b/cmd/protoc-gen-go/testdata/import_public/a.pb.go
@@ -77,16 +77,16 @@
func (*Public) ProtoMessage() {}
func (x *Public) ProtoReflect() protoreflect.Message {
- return xxx_File_import_public_a_proto_messageTypes[0].MessageOf(x)
+ return file_import_public_a_proto_msgTypes[0].MessageOf(x)
}
func (m *Public) XXX_Methods() *protoiface.Methods {
- return xxx_File_import_public_a_proto_messageTypes[0].Methods()
+ return file_import_public_a_proto_msgTypes[0].Methods()
}
// Deprecated: Use Public.ProtoReflect.Type instead.
func (*Public) Descriptor() ([]byte, []int) {
- return xxx_File_import_public_a_proto_rawDescGZIP(), []int{0}
+ return file_import_public_a_proto_rawDescGZIP(), []int{0}
}
func (x *Public) GetM() *sub.M {
@@ -112,7 +112,7 @@
var File_import_public_a_proto protoreflect.FileDescriptor
-var xxx_File_import_public_a_proto_rawDesc = []byte{
+var file_import_public_a_proto_rawDesc = []byte{
0x0a, 0x15, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f,
0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70,
@@ -140,45 +140,45 @@
}
var (
- xxx_File_import_public_a_proto_rawDesc_once sync.Once
- xxx_File_import_public_a_proto_rawDesc_data = xxx_File_import_public_a_proto_rawDesc
+ file_import_public_a_proto_rawDescOnce sync.Once
+ file_import_public_a_proto_rawDescData = file_import_public_a_proto_rawDesc
)
-func xxx_File_import_public_a_proto_rawDescGZIP() []byte {
- xxx_File_import_public_a_proto_rawDesc_once.Do(func() {
- xxx_File_import_public_a_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_import_public_a_proto_rawDesc_data)
+func file_import_public_a_proto_rawDescGZIP() []byte {
+ file_import_public_a_proto_rawDescOnce.Do(func() {
+ file_import_public_a_proto_rawDescData = protoimpl.X.CompressGZIP(file_import_public_a_proto_rawDescData)
})
- return xxx_File_import_public_a_proto_rawDesc_data
+ return file_import_public_a_proto_rawDescData
}
-var xxx_File_import_public_a_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_import_public_a_proto_goTypes = []interface{}{
+var file_import_public_a_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_import_public_a_proto_goTypes = []interface{}{
(*Public)(nil), // 0: goproto.protoc.import_public.Public
(*sub.M)(nil), // 1: goproto.protoc.import_public.sub.M
(sub.E)(0), // 2: goproto.protoc.import_public.sub.E
(*Local)(nil), // 3: goproto.protoc.import_public.Local
}
-var xxx_File_import_public_a_proto_depIdxs = []int32{
+var file_import_public_a_proto_depIdxs = []int32{
1, // goproto.protoc.import_public.Public.m:type_name -> goproto.protoc.import_public.sub.M
2, // goproto.protoc.import_public.Public.e:type_name -> goproto.protoc.import_public.sub.E
3, // goproto.protoc.import_public.Public.local:type_name -> goproto.protoc.import_public.Local
}
-func init() { xxx_File_import_public_a_proto_init() }
-func xxx_File_import_public_a_proto_init() {
+func init() { file_import_public_a_proto_init() }
+func file_import_public_a_proto_init() {
if File_import_public_a_proto != nil {
return
}
- xxx_File_import_public_b_proto_init()
+ file_import_public_b_proto_init()
File_import_public_a_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_import_public_a_proto_rawDesc,
- GoTypes: xxx_File_import_public_a_proto_goTypes,
- DependencyIndexes: xxx_File_import_public_a_proto_depIdxs,
- MessageOutputTypes: xxx_File_import_public_a_proto_messageTypes,
+ RawDescriptor: file_import_public_a_proto_rawDesc,
+ GoTypes: file_import_public_a_proto_goTypes,
+ DependencyIndexes: file_import_public_a_proto_depIdxs,
+ MessageOutputTypes: file_import_public_a_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_import_public_a_proto_rawDesc = nil
- xxx_File_import_public_a_proto_goTypes = nil
- xxx_File_import_public_a_proto_depIdxs = nil
+ file_import_public_a_proto_rawDesc = nil
+ file_import_public_a_proto_goTypes = nil
+ file_import_public_a_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/import_public/b.pb.go b/cmd/protoc-gen-go/testdata/import_public/b.pb.go
index 8cd06e7..18e9f92 100644
--- a/cmd/protoc-gen-go/testdata/import_public/b.pb.go
+++ b/cmd/protoc-gen-go/testdata/import_public/b.pb.go
@@ -33,16 +33,16 @@
func (*Local) ProtoMessage() {}
func (x *Local) ProtoReflect() protoreflect.Message {
- return xxx_File_import_public_b_proto_messageTypes[0].MessageOf(x)
+ return file_import_public_b_proto_msgTypes[0].MessageOf(x)
}
func (m *Local) XXX_Methods() *protoiface.Methods {
- return xxx_File_import_public_b_proto_messageTypes[0].Methods()
+ return file_import_public_b_proto_msgTypes[0].Methods()
}
// Deprecated: Use Local.ProtoReflect.Type instead.
func (*Local) Descriptor() ([]byte, []int) {
- return xxx_File_import_public_b_proto_rawDescGZIP(), []int{0}
+ return file_import_public_b_proto_rawDescGZIP(), []int{0}
}
func (x *Local) GetM() *sub.M {
@@ -61,7 +61,7 @@
var File_import_public_b_proto protoreflect.FileDescriptor
-var xxx_File_import_public_b_proto_rawDesc = []byte{
+var file_import_public_b_proto_rawDesc = []byte{
0x0a, 0x15, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f,
0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1c, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70,
@@ -82,42 +82,42 @@
}
var (
- xxx_File_import_public_b_proto_rawDesc_once sync.Once
- xxx_File_import_public_b_proto_rawDesc_data = xxx_File_import_public_b_proto_rawDesc
+ file_import_public_b_proto_rawDescOnce sync.Once
+ file_import_public_b_proto_rawDescData = file_import_public_b_proto_rawDesc
)
-func xxx_File_import_public_b_proto_rawDescGZIP() []byte {
- xxx_File_import_public_b_proto_rawDesc_once.Do(func() {
- xxx_File_import_public_b_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_import_public_b_proto_rawDesc_data)
+func file_import_public_b_proto_rawDescGZIP() []byte {
+ file_import_public_b_proto_rawDescOnce.Do(func() {
+ file_import_public_b_proto_rawDescData = protoimpl.X.CompressGZIP(file_import_public_b_proto_rawDescData)
})
- return xxx_File_import_public_b_proto_rawDesc_data
+ return file_import_public_b_proto_rawDescData
}
-var xxx_File_import_public_b_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_import_public_b_proto_goTypes = []interface{}{
+var file_import_public_b_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_import_public_b_proto_goTypes = []interface{}{
(*Local)(nil), // 0: goproto.protoc.import_public.Local
(*sub.M)(nil), // 1: goproto.protoc.import_public.sub.M
(sub.E)(0), // 2: goproto.protoc.import_public.sub.E
}
-var xxx_File_import_public_b_proto_depIdxs = []int32{
+var file_import_public_b_proto_depIdxs = []int32{
1, // goproto.protoc.import_public.Local.m:type_name -> goproto.protoc.import_public.sub.M
2, // goproto.protoc.import_public.Local.e:type_name -> goproto.protoc.import_public.sub.E
}
-func init() { xxx_File_import_public_b_proto_init() }
-func xxx_File_import_public_b_proto_init() {
+func init() { file_import_public_b_proto_init() }
+func file_import_public_b_proto_init() {
if File_import_public_b_proto != nil {
return
}
File_import_public_b_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_import_public_b_proto_rawDesc,
- GoTypes: xxx_File_import_public_b_proto_goTypes,
- DependencyIndexes: xxx_File_import_public_b_proto_depIdxs,
- MessageOutputTypes: xxx_File_import_public_b_proto_messageTypes,
+ RawDescriptor: file_import_public_b_proto_rawDesc,
+ GoTypes: file_import_public_b_proto_goTypes,
+ DependencyIndexes: file_import_public_b_proto_depIdxs,
+ MessageOutputTypes: file_import_public_b_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_import_public_b_proto_rawDesc = nil
- xxx_File_import_public_b_proto_goTypes = nil
- xxx_File_import_public_b_proto_depIdxs = nil
+ file_import_public_b_proto_rawDesc = nil
+ file_import_public_b_proto_goTypes = nil
+ file_import_public_b_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/import_public/sub/a.pb.go b/cmd/protoc-gen-go/testdata/import_public/sub/a.pb.go
index 304e716..64b3e59 100644
--- a/cmd/protoc-gen-go/testdata/import_public/sub/a.pb.go
+++ b/cmd/protoc-gen-go/testdata/import_public/sub/a.pb.go
@@ -46,7 +46,7 @@
}
func (E) Type() protoreflect.EnumType {
- return xxx_File_import_public_sub_a_proto_enumTypes[0]
+ return file_import_public_sub_a_proto_enumTypes[0]
}
func (x E) Number() protoreflect.EnumNumber {
@@ -65,7 +65,7 @@
// Deprecated: Use E.Type instead.
func (E) EnumDescriptor() ([]byte, []int) {
- return xxx_File_import_public_sub_a_proto_rawDescGZIP(), []int{0}
+ return file_import_public_sub_a_proto_rawDescGZIP(), []int{0}
}
type M_Subenum int32
@@ -95,7 +95,7 @@
}
func (M_Subenum) Type() protoreflect.EnumType {
- return xxx_File_import_public_sub_a_proto_enumTypes[1]
+ return file_import_public_sub_a_proto_enumTypes[1]
}
func (x M_Subenum) Number() protoreflect.EnumNumber {
@@ -114,7 +114,7 @@
// Deprecated: Use M_Subenum.Type instead.
func (M_Subenum) EnumDescriptor() ([]byte, []int) {
- return xxx_File_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0}
+ return file_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0}
}
type M_Submessage_Submessage_Subenum int32
@@ -144,7 +144,7 @@
}
func (M_Submessage_Submessage_Subenum) Type() protoreflect.EnumType {
- return xxx_File_import_public_sub_a_proto_enumTypes[2]
+ return file_import_public_sub_a_proto_enumTypes[2]
}
func (x M_Submessage_Submessage_Subenum) Number() protoreflect.EnumNumber {
@@ -163,7 +163,7 @@
// Deprecated: Use M_Submessage_Submessage_Subenum.Type instead.
func (M_Submessage_Submessage_Subenum) EnumDescriptor() ([]byte, []int) {
- return xxx_File_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0, 0}
+ return file_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0, 0}
}
type M struct {
@@ -193,16 +193,16 @@
func (*M) ProtoMessage() {}
func (x *M) ProtoReflect() protoreflect.Message {
- return xxx_File_import_public_sub_a_proto_messageTypes[0].MessageOf(x)
+ return file_import_public_sub_a_proto_msgTypes[0].MessageOf(x)
}
func (m *M) XXX_Methods() *protoiface.Methods {
- return xxx_File_import_public_sub_a_proto_messageTypes[0].Methods()
+ return file_import_public_sub_a_proto_msgTypes[0].Methods()
}
// Deprecated: Use M.ProtoReflect.Type instead.
func (*M) Descriptor() ([]byte, []int) {
- return xxx_File_import_public_sub_a_proto_rawDescGZIP(), []int{0}
+ return file_import_public_sub_a_proto_rawDescGZIP(), []int{0}
}
var extRange_M = []protoiface.ExtensionRangeV1{
@@ -313,16 +313,16 @@
func (*M_Submessage) ProtoMessage() {}
func (x *M_Submessage) ProtoReflect() protoreflect.Message {
- return xxx_File_import_public_sub_a_proto_messageTypes[1].MessageOf(x)
+ return file_import_public_sub_a_proto_msgTypes[1].MessageOf(x)
}
func (m *M_Submessage) XXX_Methods() *protoiface.Methods {
- return xxx_File_import_public_sub_a_proto_messageTypes[1].Methods()
+ return file_import_public_sub_a_proto_msgTypes[1].Methods()
}
// Deprecated: Use M_Submessage.ProtoReflect.Type instead.
func (*M_Submessage) Descriptor() ([]byte, []int) {
- return xxx_File_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0}
+ return file_import_public_sub_a_proto_rawDescGZIP(), []int{0, 0}
}
func (m *M_Submessage) GetSubmessageOneofField() isM_Submessage_SubmessageOneofField {
@@ -370,7 +370,7 @@
func (*M_Submessage_SubmessageOneofInt64) isM_Submessage_SubmessageOneofField() {}
-var xxx_File_import_public_sub_a_proto_extDescs = []protoiface.ExtensionDescV1{
+var file_import_public_sub_a_proto_extDescs = []protoiface.ExtensionDescV1{
{
ExtendedType: (*M)(nil),
ExtensionType: (*string)(nil),
@@ -382,11 +382,11 @@
}
var (
// extend goproto.protoc.import_public.sub.M { optional string extension_field = 100; }
- E_ExtensionField = &xxx_File_import_public_sub_a_proto_extDescs[0]
+ E_ExtensionField = &file_import_public_sub_a_proto_extDescs[0]
)
var File_import_public_sub_a_proto protoreflect.FileDescriptor
-var xxx_File_import_public_sub_a_proto_rawDesc = []byte{
+var file_import_public_sub_a_proto_rawDesc = []byte{
0x0a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f,
0x73, 0x75, 0x62, 0x2f, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f,
@@ -436,20 +436,20 @@
}
var (
- xxx_File_import_public_sub_a_proto_rawDesc_once sync.Once
- xxx_File_import_public_sub_a_proto_rawDesc_data = xxx_File_import_public_sub_a_proto_rawDesc
+ file_import_public_sub_a_proto_rawDescOnce sync.Once
+ file_import_public_sub_a_proto_rawDescData = file_import_public_sub_a_proto_rawDesc
)
-func xxx_File_import_public_sub_a_proto_rawDescGZIP() []byte {
- xxx_File_import_public_sub_a_proto_rawDesc_once.Do(func() {
- xxx_File_import_public_sub_a_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_import_public_sub_a_proto_rawDesc_data)
+func file_import_public_sub_a_proto_rawDescGZIP() []byte {
+ file_import_public_sub_a_proto_rawDescOnce.Do(func() {
+ file_import_public_sub_a_proto_rawDescData = protoimpl.X.CompressGZIP(file_import_public_sub_a_proto_rawDescData)
})
- return xxx_File_import_public_sub_a_proto_rawDesc_data
+ return file_import_public_sub_a_proto_rawDescData
}
-var xxx_File_import_public_sub_a_proto_enumTypes = make([]protoreflect.EnumType, 3)
-var xxx_File_import_public_sub_a_proto_messageTypes = make([]protoimpl.MessageType, 2)
-var xxx_File_import_public_sub_a_proto_goTypes = []interface{}{
+var file_import_public_sub_a_proto_enumTypes = make([]protoreflect.EnumType, 3)
+var file_import_public_sub_a_proto_msgTypes = make([]protoimpl.MessageType, 2)
+var file_import_public_sub_a_proto_goTypes = []interface{}{
(E)(0), // 0: goproto.protoc.import_public.sub.E
(M_Subenum)(0), // 1: goproto.protoc.import_public.sub.M.Subenum
(M_Submessage_Submessage_Subenum)(0), // 2: goproto.protoc.import_public.sub.M.Submessage.Submessage_Subenum
@@ -457,30 +457,30 @@
(*M_Submessage)(nil), // 4: goproto.protoc.import_public.sub.M.Submessage
(*M2)(nil), // 5: goproto.protoc.import_public.sub.M2
}
-var xxx_File_import_public_sub_a_proto_depIdxs = []int32{
+var file_import_public_sub_a_proto_depIdxs = []int32{
3, // goproto.protoc.import_public.sub.extension_field:extendee -> goproto.protoc.import_public.sub.M
5, // goproto.protoc.import_public.sub.M.m2:type_name -> goproto.protoc.import_public.sub.M2
}
-func init() { xxx_File_import_public_sub_a_proto_init() }
-func xxx_File_import_public_sub_a_proto_init() {
+func init() { file_import_public_sub_a_proto_init() }
+func file_import_public_sub_a_proto_init() {
if File_import_public_sub_a_proto != nil {
return
}
- xxx_File_import_public_sub_b_proto_init()
+ file_import_public_sub_b_proto_init()
extensionTypes := make([]protoreflect.ExtensionType, 1)
File_import_public_sub_a_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_import_public_sub_a_proto_rawDesc,
- GoTypes: xxx_File_import_public_sub_a_proto_goTypes,
- DependencyIndexes: xxx_File_import_public_sub_a_proto_depIdxs,
- LegacyExtensions: xxx_File_import_public_sub_a_proto_extDescs,
- EnumOutputTypes: xxx_File_import_public_sub_a_proto_enumTypes,
- MessageOutputTypes: xxx_File_import_public_sub_a_proto_messageTypes,
+ RawDescriptor: file_import_public_sub_a_proto_rawDesc,
+ GoTypes: file_import_public_sub_a_proto_goTypes,
+ DependencyIndexes: file_import_public_sub_a_proto_depIdxs,
+ LegacyExtensions: file_import_public_sub_a_proto_extDescs,
+ EnumOutputTypes: file_import_public_sub_a_proto_enumTypes,
+ MessageOutputTypes: file_import_public_sub_a_proto_msgTypes,
ExtensionOutputTypes: extensionTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_import_public_sub_a_proto_rawDesc = nil
- xxx_File_import_public_sub_a_proto_goTypes = nil
- xxx_File_import_public_sub_a_proto_depIdxs = nil
+ file_import_public_sub_a_proto_rawDesc = nil
+ file_import_public_sub_a_proto_goTypes = nil
+ file_import_public_sub_a_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/import_public/sub/b.pb.go b/cmd/protoc-gen-go/testdata/import_public/sub/b.pb.go
index da7e13f..05ae47e 100644
--- a/cmd/protoc-gen-go/testdata/import_public/sub/b.pb.go
+++ b/cmd/protoc-gen-go/testdata/import_public/sub/b.pb.go
@@ -30,21 +30,21 @@
func (*M2) ProtoMessage() {}
func (x *M2) ProtoReflect() protoreflect.Message {
- return xxx_File_import_public_sub_b_proto_messageTypes[0].MessageOf(x)
+ return file_import_public_sub_b_proto_msgTypes[0].MessageOf(x)
}
func (m *M2) XXX_Methods() *protoiface.Methods {
- return xxx_File_import_public_sub_b_proto_messageTypes[0].Methods()
+ return file_import_public_sub_b_proto_msgTypes[0].Methods()
}
// Deprecated: Use M2.ProtoReflect.Type instead.
func (*M2) Descriptor() ([]byte, []int) {
- return xxx_File_import_public_sub_b_proto_rawDescGZIP(), []int{0}
+ return file_import_public_sub_b_proto_rawDescGZIP(), []int{0}
}
var File_import_public_sub_b_proto protoreflect.FileDescriptor
-var xxx_File_import_public_sub_b_proto_rawDesc = []byte{
+var file_import_public_sub_b_proto_rawDesc = []byte{
0x0a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f,
0x73, 0x75, 0x62, 0x2f, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x20, 0x67, 0x6f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70, 0x6f,
@@ -58,37 +58,37 @@
}
var (
- xxx_File_import_public_sub_b_proto_rawDesc_once sync.Once
- xxx_File_import_public_sub_b_proto_rawDesc_data = xxx_File_import_public_sub_b_proto_rawDesc
+ file_import_public_sub_b_proto_rawDescOnce sync.Once
+ file_import_public_sub_b_proto_rawDescData = file_import_public_sub_b_proto_rawDesc
)
-func xxx_File_import_public_sub_b_proto_rawDescGZIP() []byte {
- xxx_File_import_public_sub_b_proto_rawDesc_once.Do(func() {
- xxx_File_import_public_sub_b_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_import_public_sub_b_proto_rawDesc_data)
+func file_import_public_sub_b_proto_rawDescGZIP() []byte {
+ file_import_public_sub_b_proto_rawDescOnce.Do(func() {
+ file_import_public_sub_b_proto_rawDescData = protoimpl.X.CompressGZIP(file_import_public_sub_b_proto_rawDescData)
})
- return xxx_File_import_public_sub_b_proto_rawDesc_data
+ return file_import_public_sub_b_proto_rawDescData
}
-var xxx_File_import_public_sub_b_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_import_public_sub_b_proto_goTypes = []interface{}{
+var file_import_public_sub_b_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_import_public_sub_b_proto_goTypes = []interface{}{
(*M2)(nil), // 0: goproto.protoc.import_public.sub.M2
}
-var xxx_File_import_public_sub_b_proto_depIdxs = []int32{}
+var file_import_public_sub_b_proto_depIdxs = []int32{}
-func init() { xxx_File_import_public_sub_b_proto_init() }
-func xxx_File_import_public_sub_b_proto_init() {
+func init() { file_import_public_sub_b_proto_init() }
+func file_import_public_sub_b_proto_init() {
if File_import_public_sub_b_proto != nil {
return
}
File_import_public_sub_b_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_import_public_sub_b_proto_rawDesc,
- GoTypes: xxx_File_import_public_sub_b_proto_goTypes,
- DependencyIndexes: xxx_File_import_public_sub_b_proto_depIdxs,
- MessageOutputTypes: xxx_File_import_public_sub_b_proto_messageTypes,
+ RawDescriptor: file_import_public_sub_b_proto_rawDesc,
+ GoTypes: file_import_public_sub_b_proto_goTypes,
+ DependencyIndexes: file_import_public_sub_b_proto_depIdxs,
+ MessageOutputTypes: file_import_public_sub_b_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_import_public_sub_b_proto_rawDesc = nil
- xxx_File_import_public_sub_b_proto_goTypes = nil
- xxx_File_import_public_sub_b_proto_depIdxs = nil
+ file_import_public_sub_b_proto_rawDesc = nil
+ file_import_public_sub_b_proto_goTypes = nil
+ file_import_public_sub_b_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/import_public/sub2/a.pb.go b/cmd/protoc-gen-go/testdata/import_public/sub2/a.pb.go
index 1061cda..63a7023 100644
--- a/cmd/protoc-gen-go/testdata/import_public/sub2/a.pb.go
+++ b/cmd/protoc-gen-go/testdata/import_public/sub2/a.pb.go
@@ -30,21 +30,21 @@
func (*Sub2Message) ProtoMessage() {}
func (x *Sub2Message) ProtoReflect() protoreflect.Message {
- return xxx_File_import_public_sub2_a_proto_messageTypes[0].MessageOf(x)
+ return file_import_public_sub2_a_proto_msgTypes[0].MessageOf(x)
}
func (m *Sub2Message) XXX_Methods() *protoiface.Methods {
- return xxx_File_import_public_sub2_a_proto_messageTypes[0].Methods()
+ return file_import_public_sub2_a_proto_msgTypes[0].Methods()
}
// Deprecated: Use Sub2Message.ProtoReflect.Type instead.
func (*Sub2Message) Descriptor() ([]byte, []int) {
- return xxx_File_import_public_sub2_a_proto_rawDescGZIP(), []int{0}
+ return file_import_public_sub2_a_proto_rawDescGZIP(), []int{0}
}
var File_import_public_sub2_a_proto protoreflect.FileDescriptor
-var xxx_File_import_public_sub2_a_proto_rawDesc = []byte{
+var file_import_public_sub2_a_proto_rawDesc = []byte{
0x0a, 0x1a, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x2f,
0x73, 0x75, 0x62, 0x32, 0x2f, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x67, 0x6f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x69, 0x6d, 0x70,
@@ -58,37 +58,37 @@
}
var (
- xxx_File_import_public_sub2_a_proto_rawDesc_once sync.Once
- xxx_File_import_public_sub2_a_proto_rawDesc_data = xxx_File_import_public_sub2_a_proto_rawDesc
+ file_import_public_sub2_a_proto_rawDescOnce sync.Once
+ file_import_public_sub2_a_proto_rawDescData = file_import_public_sub2_a_proto_rawDesc
)
-func xxx_File_import_public_sub2_a_proto_rawDescGZIP() []byte {
- xxx_File_import_public_sub2_a_proto_rawDesc_once.Do(func() {
- xxx_File_import_public_sub2_a_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_import_public_sub2_a_proto_rawDesc_data)
+func file_import_public_sub2_a_proto_rawDescGZIP() []byte {
+ file_import_public_sub2_a_proto_rawDescOnce.Do(func() {
+ file_import_public_sub2_a_proto_rawDescData = protoimpl.X.CompressGZIP(file_import_public_sub2_a_proto_rawDescData)
})
- return xxx_File_import_public_sub2_a_proto_rawDesc_data
+ return file_import_public_sub2_a_proto_rawDescData
}
-var xxx_File_import_public_sub2_a_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_import_public_sub2_a_proto_goTypes = []interface{}{
+var file_import_public_sub2_a_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_import_public_sub2_a_proto_goTypes = []interface{}{
(*Sub2Message)(nil), // 0: goproto.protoc.import_public.sub2.Sub2Message
}
-var xxx_File_import_public_sub2_a_proto_depIdxs = []int32{}
+var file_import_public_sub2_a_proto_depIdxs = []int32{}
-func init() { xxx_File_import_public_sub2_a_proto_init() }
-func xxx_File_import_public_sub2_a_proto_init() {
+func init() { file_import_public_sub2_a_proto_init() }
+func file_import_public_sub2_a_proto_init() {
if File_import_public_sub2_a_proto != nil {
return
}
File_import_public_sub2_a_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_import_public_sub2_a_proto_rawDesc,
- GoTypes: xxx_File_import_public_sub2_a_proto_goTypes,
- DependencyIndexes: xxx_File_import_public_sub2_a_proto_depIdxs,
- MessageOutputTypes: xxx_File_import_public_sub2_a_proto_messageTypes,
+ RawDescriptor: file_import_public_sub2_a_proto_rawDesc,
+ GoTypes: file_import_public_sub2_a_proto_goTypes,
+ DependencyIndexes: file_import_public_sub2_a_proto_depIdxs,
+ MessageOutputTypes: file_import_public_sub2_a_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_import_public_sub2_a_proto_rawDesc = nil
- xxx_File_import_public_sub2_a_proto_goTypes = nil
- xxx_File_import_public_sub2_a_proto_depIdxs = nil
+ file_import_public_sub2_a_proto_rawDesc = nil
+ file_import_public_sub2_a_proto_goTypes = nil
+ file_import_public_sub2_a_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/imports/fmt/m.pb.go b/cmd/protoc-gen-go/testdata/imports/fmt/m.pb.go
index bcbf842..68966e2 100644
--- a/cmd/protoc-gen-go/testdata/imports/fmt/m.pb.go
+++ b/cmd/protoc-gen-go/testdata/imports/fmt/m.pb.go
@@ -30,21 +30,21 @@
func (*M) ProtoMessage() {}
func (x *M) ProtoReflect() protoreflect.Message {
- return xxx_File_imports_fmt_m_proto_messageTypes[0].MessageOf(x)
+ return file_imports_fmt_m_proto_msgTypes[0].MessageOf(x)
}
func (m *M) XXX_Methods() *protoiface.Methods {
- return xxx_File_imports_fmt_m_proto_messageTypes[0].Methods()
+ return file_imports_fmt_m_proto_msgTypes[0].Methods()
}
// Deprecated: Use M.ProtoReflect.Type instead.
func (*M) Descriptor() ([]byte, []int) {
- return xxx_File_imports_fmt_m_proto_rawDescGZIP(), []int{0}
+ return file_imports_fmt_m_proto_rawDescGZIP(), []int{0}
}
var File_imports_fmt_m_proto protoreflect.FileDescriptor
-var xxx_File_imports_fmt_m_proto_rawDesc = []byte{
+var file_imports_fmt_m_proto_rawDesc = []byte{
0x0a, 0x13, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x66, 0x6d, 0x74, 0x2f, 0x6d, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x03, 0x66, 0x6d, 0x74, 0x22, 0x03, 0x0a, 0x01, 0x4d, 0x42,
0x46, 0x5a, 0x44, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f,
@@ -55,37 +55,37 @@
}
var (
- xxx_File_imports_fmt_m_proto_rawDesc_once sync.Once
- xxx_File_imports_fmt_m_proto_rawDesc_data = xxx_File_imports_fmt_m_proto_rawDesc
+ file_imports_fmt_m_proto_rawDescOnce sync.Once
+ file_imports_fmt_m_proto_rawDescData = file_imports_fmt_m_proto_rawDesc
)
-func xxx_File_imports_fmt_m_proto_rawDescGZIP() []byte {
- xxx_File_imports_fmt_m_proto_rawDesc_once.Do(func() {
- xxx_File_imports_fmt_m_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_imports_fmt_m_proto_rawDesc_data)
+func file_imports_fmt_m_proto_rawDescGZIP() []byte {
+ file_imports_fmt_m_proto_rawDescOnce.Do(func() {
+ file_imports_fmt_m_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_fmt_m_proto_rawDescData)
})
- return xxx_File_imports_fmt_m_proto_rawDesc_data
+ return file_imports_fmt_m_proto_rawDescData
}
-var xxx_File_imports_fmt_m_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_imports_fmt_m_proto_goTypes = []interface{}{
+var file_imports_fmt_m_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_imports_fmt_m_proto_goTypes = []interface{}{
(*M)(nil), // 0: fmt.M
}
-var xxx_File_imports_fmt_m_proto_depIdxs = []int32{}
+var file_imports_fmt_m_proto_depIdxs = []int32{}
-func init() { xxx_File_imports_fmt_m_proto_init() }
-func xxx_File_imports_fmt_m_proto_init() {
+func init() { file_imports_fmt_m_proto_init() }
+func file_imports_fmt_m_proto_init() {
if File_imports_fmt_m_proto != nil {
return
}
File_imports_fmt_m_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_imports_fmt_m_proto_rawDesc,
- GoTypes: xxx_File_imports_fmt_m_proto_goTypes,
- DependencyIndexes: xxx_File_imports_fmt_m_proto_depIdxs,
- MessageOutputTypes: xxx_File_imports_fmt_m_proto_messageTypes,
+ RawDescriptor: file_imports_fmt_m_proto_rawDesc,
+ GoTypes: file_imports_fmt_m_proto_goTypes,
+ DependencyIndexes: file_imports_fmt_m_proto_depIdxs,
+ MessageOutputTypes: file_imports_fmt_m_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_imports_fmt_m_proto_rawDesc = nil
- xxx_File_imports_fmt_m_proto_goTypes = nil
- xxx_File_imports_fmt_m_proto_depIdxs = nil
+ file_imports_fmt_m_proto_rawDesc = nil
+ file_imports_fmt_m_proto_goTypes = nil
+ file_imports_fmt_m_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/imports/test_a_1/m1.pb.go b/cmd/protoc-gen-go/testdata/imports/test_a_1/m1.pb.go
index 0a431cc..29e87c0 100644
--- a/cmd/protoc-gen-go/testdata/imports/test_a_1/m1.pb.go
+++ b/cmd/protoc-gen-go/testdata/imports/test_a_1/m1.pb.go
@@ -34,7 +34,7 @@
}
func (E1) Type() protoreflect.EnumType {
- return xxx_File_imports_test_a_1_m1_proto_enumTypes[0]
+ return file_imports_test_a_1_m1_proto_enumTypes[0]
}
func (x E1) Number() protoreflect.EnumNumber {
@@ -43,7 +43,7 @@
// Deprecated: Use E1.Type instead.
func (E1) EnumDescriptor() ([]byte, []int) {
- return xxx_File_imports_test_a_1_m1_proto_rawDescGZIP(), []int{0}
+ return file_imports_test_a_1_m1_proto_rawDescGZIP(), []int{0}
}
type M1 struct {
@@ -63,16 +63,16 @@
func (*M1) ProtoMessage() {}
func (x *M1) ProtoReflect() protoreflect.Message {
- return xxx_File_imports_test_a_1_m1_proto_messageTypes[0].MessageOf(x)
+ return file_imports_test_a_1_m1_proto_msgTypes[0].MessageOf(x)
}
func (m *M1) XXX_Methods() *protoiface.Methods {
- return xxx_File_imports_test_a_1_m1_proto_messageTypes[0].Methods()
+ return file_imports_test_a_1_m1_proto_msgTypes[0].Methods()
}
// Deprecated: Use M1.ProtoReflect.Type instead.
func (*M1) Descriptor() ([]byte, []int) {
- return xxx_File_imports_test_a_1_m1_proto_rawDescGZIP(), []int{0}
+ return file_imports_test_a_1_m1_proto_rawDescGZIP(), []int{0}
}
type M1_1 struct {
@@ -93,16 +93,16 @@
func (*M1_1) ProtoMessage() {}
func (x *M1_1) ProtoReflect() protoreflect.Message {
- return xxx_File_imports_test_a_1_m1_proto_messageTypes[1].MessageOf(x)
+ return file_imports_test_a_1_m1_proto_msgTypes[1].MessageOf(x)
}
func (m *M1_1) XXX_Methods() *protoiface.Methods {
- return xxx_File_imports_test_a_1_m1_proto_messageTypes[1].Methods()
+ return file_imports_test_a_1_m1_proto_msgTypes[1].Methods()
}
// Deprecated: Use M1_1.ProtoReflect.Type instead.
func (*M1_1) Descriptor() ([]byte, []int) {
- return xxx_File_imports_test_a_1_m1_proto_rawDescGZIP(), []int{1}
+ return file_imports_test_a_1_m1_proto_rawDescGZIP(), []int{1}
}
func (x *M1_1) GetM1() *M1 {
@@ -114,7 +114,7 @@
var File_imports_test_a_1_m1_proto protoreflect.FileDescriptor
-var xxx_File_imports_test_a_1_m1_proto_rawDesc = []byte{
+var file_imports_test_a_1_m1_proto_rawDesc = []byte{
0x0a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61,
0x5f, 0x31, 0x2f, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73,
0x74, 0x2e, 0x61, 0x22, 0x04, 0x0a, 0x02, 0x4d, 0x31, 0x22, 0x22, 0x0a, 0x04, 0x4d, 0x31, 0x5f,
@@ -130,43 +130,43 @@
}
var (
- xxx_File_imports_test_a_1_m1_proto_rawDesc_once sync.Once
- xxx_File_imports_test_a_1_m1_proto_rawDesc_data = xxx_File_imports_test_a_1_m1_proto_rawDesc
+ file_imports_test_a_1_m1_proto_rawDescOnce sync.Once
+ file_imports_test_a_1_m1_proto_rawDescData = file_imports_test_a_1_m1_proto_rawDesc
)
-func xxx_File_imports_test_a_1_m1_proto_rawDescGZIP() []byte {
- xxx_File_imports_test_a_1_m1_proto_rawDesc_once.Do(func() {
- xxx_File_imports_test_a_1_m1_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_imports_test_a_1_m1_proto_rawDesc_data)
+func file_imports_test_a_1_m1_proto_rawDescGZIP() []byte {
+ file_imports_test_a_1_m1_proto_rawDescOnce.Do(func() {
+ file_imports_test_a_1_m1_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_test_a_1_m1_proto_rawDescData)
})
- return xxx_File_imports_test_a_1_m1_proto_rawDesc_data
+ return file_imports_test_a_1_m1_proto_rawDescData
}
-var xxx_File_imports_test_a_1_m1_proto_enumTypes = make([]protoreflect.EnumType, 1)
-var xxx_File_imports_test_a_1_m1_proto_messageTypes = make([]protoimpl.MessageType, 2)
-var xxx_File_imports_test_a_1_m1_proto_goTypes = []interface{}{
+var file_imports_test_a_1_m1_proto_enumTypes = make([]protoreflect.EnumType, 1)
+var file_imports_test_a_1_m1_proto_msgTypes = make([]protoimpl.MessageType, 2)
+var file_imports_test_a_1_m1_proto_goTypes = []interface{}{
(E1)(0), // 0: test.a.E1
(*M1)(nil), // 1: test.a.M1
(*M1_1)(nil), // 2: test.a.M1_1
}
-var xxx_File_imports_test_a_1_m1_proto_depIdxs = []int32{
+var file_imports_test_a_1_m1_proto_depIdxs = []int32{
1, // test.a.M1_1.m1:type_name -> test.a.M1
}
-func init() { xxx_File_imports_test_a_1_m1_proto_init() }
-func xxx_File_imports_test_a_1_m1_proto_init() {
+func init() { file_imports_test_a_1_m1_proto_init() }
+func file_imports_test_a_1_m1_proto_init() {
if File_imports_test_a_1_m1_proto != nil {
return
}
File_imports_test_a_1_m1_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_imports_test_a_1_m1_proto_rawDesc,
- GoTypes: xxx_File_imports_test_a_1_m1_proto_goTypes,
- DependencyIndexes: xxx_File_imports_test_a_1_m1_proto_depIdxs,
- EnumOutputTypes: xxx_File_imports_test_a_1_m1_proto_enumTypes,
- MessageOutputTypes: xxx_File_imports_test_a_1_m1_proto_messageTypes,
+ RawDescriptor: file_imports_test_a_1_m1_proto_rawDesc,
+ GoTypes: file_imports_test_a_1_m1_proto_goTypes,
+ DependencyIndexes: file_imports_test_a_1_m1_proto_depIdxs,
+ EnumOutputTypes: file_imports_test_a_1_m1_proto_enumTypes,
+ MessageOutputTypes: file_imports_test_a_1_m1_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_imports_test_a_1_m1_proto_rawDesc = nil
- xxx_File_imports_test_a_1_m1_proto_goTypes = nil
- xxx_File_imports_test_a_1_m1_proto_depIdxs = nil
+ file_imports_test_a_1_m1_proto_rawDesc = nil
+ file_imports_test_a_1_m1_proto_goTypes = nil
+ file_imports_test_a_1_m1_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/imports/test_a_1/m2.pb.go b/cmd/protoc-gen-go/testdata/imports/test_a_1/m2.pb.go
index 32fd4cd..9b6e876 100644
--- a/cmd/protoc-gen-go/testdata/imports/test_a_1/m2.pb.go
+++ b/cmd/protoc-gen-go/testdata/imports/test_a_1/m2.pb.go
@@ -30,21 +30,21 @@
func (*M2) ProtoMessage() {}
func (x *M2) ProtoReflect() protoreflect.Message {
- return xxx_File_imports_test_a_1_m2_proto_messageTypes[0].MessageOf(x)
+ return file_imports_test_a_1_m2_proto_msgTypes[0].MessageOf(x)
}
func (m *M2) XXX_Methods() *protoiface.Methods {
- return xxx_File_imports_test_a_1_m2_proto_messageTypes[0].Methods()
+ return file_imports_test_a_1_m2_proto_msgTypes[0].Methods()
}
// Deprecated: Use M2.ProtoReflect.Type instead.
func (*M2) Descriptor() ([]byte, []int) {
- return xxx_File_imports_test_a_1_m2_proto_rawDescGZIP(), []int{0}
+ return file_imports_test_a_1_m2_proto_rawDescGZIP(), []int{0}
}
var File_imports_test_a_1_m2_proto protoreflect.FileDescriptor
-var xxx_File_imports_test_a_1_m2_proto_rawDesc = []byte{
+var file_imports_test_a_1_m2_proto_rawDesc = []byte{
0x0a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61,
0x5f, 0x31, 0x2f, 0x6d, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73,
0x74, 0x2e, 0x61, 0x22, 0x04, 0x0a, 0x02, 0x4d, 0x32, 0x42, 0x4b, 0x5a, 0x49, 0x67, 0x69, 0x74,
@@ -56,37 +56,37 @@
}
var (
- xxx_File_imports_test_a_1_m2_proto_rawDesc_once sync.Once
- xxx_File_imports_test_a_1_m2_proto_rawDesc_data = xxx_File_imports_test_a_1_m2_proto_rawDesc
+ file_imports_test_a_1_m2_proto_rawDescOnce sync.Once
+ file_imports_test_a_1_m2_proto_rawDescData = file_imports_test_a_1_m2_proto_rawDesc
)
-func xxx_File_imports_test_a_1_m2_proto_rawDescGZIP() []byte {
- xxx_File_imports_test_a_1_m2_proto_rawDesc_once.Do(func() {
- xxx_File_imports_test_a_1_m2_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_imports_test_a_1_m2_proto_rawDesc_data)
+func file_imports_test_a_1_m2_proto_rawDescGZIP() []byte {
+ file_imports_test_a_1_m2_proto_rawDescOnce.Do(func() {
+ file_imports_test_a_1_m2_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_test_a_1_m2_proto_rawDescData)
})
- return xxx_File_imports_test_a_1_m2_proto_rawDesc_data
+ return file_imports_test_a_1_m2_proto_rawDescData
}
-var xxx_File_imports_test_a_1_m2_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_imports_test_a_1_m2_proto_goTypes = []interface{}{
+var file_imports_test_a_1_m2_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_imports_test_a_1_m2_proto_goTypes = []interface{}{
(*M2)(nil), // 0: test.a.M2
}
-var xxx_File_imports_test_a_1_m2_proto_depIdxs = []int32{}
+var file_imports_test_a_1_m2_proto_depIdxs = []int32{}
-func init() { xxx_File_imports_test_a_1_m2_proto_init() }
-func xxx_File_imports_test_a_1_m2_proto_init() {
+func init() { file_imports_test_a_1_m2_proto_init() }
+func file_imports_test_a_1_m2_proto_init() {
if File_imports_test_a_1_m2_proto != nil {
return
}
File_imports_test_a_1_m2_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_imports_test_a_1_m2_proto_rawDesc,
- GoTypes: xxx_File_imports_test_a_1_m2_proto_goTypes,
- DependencyIndexes: xxx_File_imports_test_a_1_m2_proto_depIdxs,
- MessageOutputTypes: xxx_File_imports_test_a_1_m2_proto_messageTypes,
+ RawDescriptor: file_imports_test_a_1_m2_proto_rawDesc,
+ GoTypes: file_imports_test_a_1_m2_proto_goTypes,
+ DependencyIndexes: file_imports_test_a_1_m2_proto_depIdxs,
+ MessageOutputTypes: file_imports_test_a_1_m2_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_imports_test_a_1_m2_proto_rawDesc = nil
- xxx_File_imports_test_a_1_m2_proto_goTypes = nil
- xxx_File_imports_test_a_1_m2_proto_depIdxs = nil
+ file_imports_test_a_1_m2_proto_rawDesc = nil
+ file_imports_test_a_1_m2_proto_goTypes = nil
+ file_imports_test_a_1_m2_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/imports/test_a_2/m3.pb.go b/cmd/protoc-gen-go/testdata/imports/test_a_2/m3.pb.go
index 42d38fc..9b914b2 100644
--- a/cmd/protoc-gen-go/testdata/imports/test_a_2/m3.pb.go
+++ b/cmd/protoc-gen-go/testdata/imports/test_a_2/m3.pb.go
@@ -30,21 +30,21 @@
func (*M3) ProtoMessage() {}
func (x *M3) ProtoReflect() protoreflect.Message {
- return xxx_File_imports_test_a_2_m3_proto_messageTypes[0].MessageOf(x)
+ return file_imports_test_a_2_m3_proto_msgTypes[0].MessageOf(x)
}
func (m *M3) XXX_Methods() *protoiface.Methods {
- return xxx_File_imports_test_a_2_m3_proto_messageTypes[0].Methods()
+ return file_imports_test_a_2_m3_proto_msgTypes[0].Methods()
}
// Deprecated: Use M3.ProtoReflect.Type instead.
func (*M3) Descriptor() ([]byte, []int) {
- return xxx_File_imports_test_a_2_m3_proto_rawDescGZIP(), []int{0}
+ return file_imports_test_a_2_m3_proto_rawDescGZIP(), []int{0}
}
var File_imports_test_a_2_m3_proto protoreflect.FileDescriptor
-var xxx_File_imports_test_a_2_m3_proto_rawDesc = []byte{
+var file_imports_test_a_2_m3_proto_rawDesc = []byte{
0x0a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61,
0x5f, 0x32, 0x2f, 0x6d, 0x33, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73,
0x74, 0x2e, 0x61, 0x22, 0x04, 0x0a, 0x02, 0x4d, 0x33, 0x42, 0x4b, 0x5a, 0x49, 0x67, 0x69, 0x74,
@@ -56,37 +56,37 @@
}
var (
- xxx_File_imports_test_a_2_m3_proto_rawDesc_once sync.Once
- xxx_File_imports_test_a_2_m3_proto_rawDesc_data = xxx_File_imports_test_a_2_m3_proto_rawDesc
+ file_imports_test_a_2_m3_proto_rawDescOnce sync.Once
+ file_imports_test_a_2_m3_proto_rawDescData = file_imports_test_a_2_m3_proto_rawDesc
)
-func xxx_File_imports_test_a_2_m3_proto_rawDescGZIP() []byte {
- xxx_File_imports_test_a_2_m3_proto_rawDesc_once.Do(func() {
- xxx_File_imports_test_a_2_m3_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_imports_test_a_2_m3_proto_rawDesc_data)
+func file_imports_test_a_2_m3_proto_rawDescGZIP() []byte {
+ file_imports_test_a_2_m3_proto_rawDescOnce.Do(func() {
+ file_imports_test_a_2_m3_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_test_a_2_m3_proto_rawDescData)
})
- return xxx_File_imports_test_a_2_m3_proto_rawDesc_data
+ return file_imports_test_a_2_m3_proto_rawDescData
}
-var xxx_File_imports_test_a_2_m3_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_imports_test_a_2_m3_proto_goTypes = []interface{}{
+var file_imports_test_a_2_m3_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_imports_test_a_2_m3_proto_goTypes = []interface{}{
(*M3)(nil), // 0: test.a.M3
}
-var xxx_File_imports_test_a_2_m3_proto_depIdxs = []int32{}
+var file_imports_test_a_2_m3_proto_depIdxs = []int32{}
-func init() { xxx_File_imports_test_a_2_m3_proto_init() }
-func xxx_File_imports_test_a_2_m3_proto_init() {
+func init() { file_imports_test_a_2_m3_proto_init() }
+func file_imports_test_a_2_m3_proto_init() {
if File_imports_test_a_2_m3_proto != nil {
return
}
File_imports_test_a_2_m3_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_imports_test_a_2_m3_proto_rawDesc,
- GoTypes: xxx_File_imports_test_a_2_m3_proto_goTypes,
- DependencyIndexes: xxx_File_imports_test_a_2_m3_proto_depIdxs,
- MessageOutputTypes: xxx_File_imports_test_a_2_m3_proto_messageTypes,
+ RawDescriptor: file_imports_test_a_2_m3_proto_rawDesc,
+ GoTypes: file_imports_test_a_2_m3_proto_goTypes,
+ DependencyIndexes: file_imports_test_a_2_m3_proto_depIdxs,
+ MessageOutputTypes: file_imports_test_a_2_m3_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_imports_test_a_2_m3_proto_rawDesc = nil
- xxx_File_imports_test_a_2_m3_proto_goTypes = nil
- xxx_File_imports_test_a_2_m3_proto_depIdxs = nil
+ file_imports_test_a_2_m3_proto_rawDesc = nil
+ file_imports_test_a_2_m3_proto_goTypes = nil
+ file_imports_test_a_2_m3_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/imports/test_a_2/m4.pb.go b/cmd/protoc-gen-go/testdata/imports/test_a_2/m4.pb.go
index 4c83df3..ff9b36c 100644
--- a/cmd/protoc-gen-go/testdata/imports/test_a_2/m4.pb.go
+++ b/cmd/protoc-gen-go/testdata/imports/test_a_2/m4.pb.go
@@ -30,21 +30,21 @@
func (*M4) ProtoMessage() {}
func (x *M4) ProtoReflect() protoreflect.Message {
- return xxx_File_imports_test_a_2_m4_proto_messageTypes[0].MessageOf(x)
+ return file_imports_test_a_2_m4_proto_msgTypes[0].MessageOf(x)
}
func (m *M4) XXX_Methods() *protoiface.Methods {
- return xxx_File_imports_test_a_2_m4_proto_messageTypes[0].Methods()
+ return file_imports_test_a_2_m4_proto_msgTypes[0].Methods()
}
// Deprecated: Use M4.ProtoReflect.Type instead.
func (*M4) Descriptor() ([]byte, []int) {
- return xxx_File_imports_test_a_2_m4_proto_rawDescGZIP(), []int{0}
+ return file_imports_test_a_2_m4_proto_rawDescGZIP(), []int{0}
}
var File_imports_test_a_2_m4_proto protoreflect.FileDescriptor
-var xxx_File_imports_test_a_2_m4_proto_rawDesc = []byte{
+var file_imports_test_a_2_m4_proto_rawDesc = []byte{
0x0a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x61,
0x5f, 0x32, 0x2f, 0x6d, 0x34, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06, 0x74, 0x65, 0x73,
0x74, 0x2e, 0x61, 0x22, 0x04, 0x0a, 0x02, 0x4d, 0x34, 0x42, 0x4b, 0x5a, 0x49, 0x67, 0x69, 0x74,
@@ -56,37 +56,37 @@
}
var (
- xxx_File_imports_test_a_2_m4_proto_rawDesc_once sync.Once
- xxx_File_imports_test_a_2_m4_proto_rawDesc_data = xxx_File_imports_test_a_2_m4_proto_rawDesc
+ file_imports_test_a_2_m4_proto_rawDescOnce sync.Once
+ file_imports_test_a_2_m4_proto_rawDescData = file_imports_test_a_2_m4_proto_rawDesc
)
-func xxx_File_imports_test_a_2_m4_proto_rawDescGZIP() []byte {
- xxx_File_imports_test_a_2_m4_proto_rawDesc_once.Do(func() {
- xxx_File_imports_test_a_2_m4_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_imports_test_a_2_m4_proto_rawDesc_data)
+func file_imports_test_a_2_m4_proto_rawDescGZIP() []byte {
+ file_imports_test_a_2_m4_proto_rawDescOnce.Do(func() {
+ file_imports_test_a_2_m4_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_test_a_2_m4_proto_rawDescData)
})
- return xxx_File_imports_test_a_2_m4_proto_rawDesc_data
+ return file_imports_test_a_2_m4_proto_rawDescData
}
-var xxx_File_imports_test_a_2_m4_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_imports_test_a_2_m4_proto_goTypes = []interface{}{
+var file_imports_test_a_2_m4_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_imports_test_a_2_m4_proto_goTypes = []interface{}{
(*M4)(nil), // 0: test.a.M4
}
-var xxx_File_imports_test_a_2_m4_proto_depIdxs = []int32{}
+var file_imports_test_a_2_m4_proto_depIdxs = []int32{}
-func init() { xxx_File_imports_test_a_2_m4_proto_init() }
-func xxx_File_imports_test_a_2_m4_proto_init() {
+func init() { file_imports_test_a_2_m4_proto_init() }
+func file_imports_test_a_2_m4_proto_init() {
if File_imports_test_a_2_m4_proto != nil {
return
}
File_imports_test_a_2_m4_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_imports_test_a_2_m4_proto_rawDesc,
- GoTypes: xxx_File_imports_test_a_2_m4_proto_goTypes,
- DependencyIndexes: xxx_File_imports_test_a_2_m4_proto_depIdxs,
- MessageOutputTypes: xxx_File_imports_test_a_2_m4_proto_messageTypes,
+ RawDescriptor: file_imports_test_a_2_m4_proto_rawDesc,
+ GoTypes: file_imports_test_a_2_m4_proto_goTypes,
+ DependencyIndexes: file_imports_test_a_2_m4_proto_depIdxs,
+ MessageOutputTypes: file_imports_test_a_2_m4_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_imports_test_a_2_m4_proto_rawDesc = nil
- xxx_File_imports_test_a_2_m4_proto_goTypes = nil
- xxx_File_imports_test_a_2_m4_proto_depIdxs = nil
+ file_imports_test_a_2_m4_proto_rawDesc = nil
+ file_imports_test_a_2_m4_proto_goTypes = nil
+ file_imports_test_a_2_m4_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/imports/test_b_1/m1.pb.go b/cmd/protoc-gen-go/testdata/imports/test_b_1/m1.pb.go
index c5bf4d8..8b4fc40 100644
--- a/cmd/protoc-gen-go/testdata/imports/test_b_1/m1.pb.go
+++ b/cmd/protoc-gen-go/testdata/imports/test_b_1/m1.pb.go
@@ -30,21 +30,21 @@
func (*M1) ProtoMessage() {}
func (x *M1) ProtoReflect() protoreflect.Message {
- return xxx_File_imports_test_b_1_m1_proto_messageTypes[0].MessageOf(x)
+ return file_imports_test_b_1_m1_proto_msgTypes[0].MessageOf(x)
}
func (m *M1) XXX_Methods() *protoiface.Methods {
- return xxx_File_imports_test_b_1_m1_proto_messageTypes[0].Methods()
+ return file_imports_test_b_1_m1_proto_msgTypes[0].Methods()
}
// Deprecated: Use M1.ProtoReflect.Type instead.
func (*M1) Descriptor() ([]byte, []int) {
- return xxx_File_imports_test_b_1_m1_proto_rawDescGZIP(), []int{0}
+ return file_imports_test_b_1_m1_proto_rawDescGZIP(), []int{0}
}
var File_imports_test_b_1_m1_proto protoreflect.FileDescriptor
-var xxx_File_imports_test_b_1_m1_proto_rawDesc = []byte{
+var file_imports_test_b_1_m1_proto_rawDesc = []byte{
0x0a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x62,
0x5f, 0x31, 0x2f, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x74, 0x65, 0x73,
0x74, 0x2e, 0x62, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x31, 0x22, 0x04, 0x0a, 0x02, 0x4d, 0x31, 0x42,
@@ -57,37 +57,37 @@
}
var (
- xxx_File_imports_test_b_1_m1_proto_rawDesc_once sync.Once
- xxx_File_imports_test_b_1_m1_proto_rawDesc_data = xxx_File_imports_test_b_1_m1_proto_rawDesc
+ file_imports_test_b_1_m1_proto_rawDescOnce sync.Once
+ file_imports_test_b_1_m1_proto_rawDescData = file_imports_test_b_1_m1_proto_rawDesc
)
-func xxx_File_imports_test_b_1_m1_proto_rawDescGZIP() []byte {
- xxx_File_imports_test_b_1_m1_proto_rawDesc_once.Do(func() {
- xxx_File_imports_test_b_1_m1_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_imports_test_b_1_m1_proto_rawDesc_data)
+func file_imports_test_b_1_m1_proto_rawDescGZIP() []byte {
+ file_imports_test_b_1_m1_proto_rawDescOnce.Do(func() {
+ file_imports_test_b_1_m1_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_test_b_1_m1_proto_rawDescData)
})
- return xxx_File_imports_test_b_1_m1_proto_rawDesc_data
+ return file_imports_test_b_1_m1_proto_rawDescData
}
-var xxx_File_imports_test_b_1_m1_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_imports_test_b_1_m1_proto_goTypes = []interface{}{
+var file_imports_test_b_1_m1_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_imports_test_b_1_m1_proto_goTypes = []interface{}{
(*M1)(nil), // 0: test.b.part1.M1
}
-var xxx_File_imports_test_b_1_m1_proto_depIdxs = []int32{}
+var file_imports_test_b_1_m1_proto_depIdxs = []int32{}
-func init() { xxx_File_imports_test_b_1_m1_proto_init() }
-func xxx_File_imports_test_b_1_m1_proto_init() {
+func init() { file_imports_test_b_1_m1_proto_init() }
+func file_imports_test_b_1_m1_proto_init() {
if File_imports_test_b_1_m1_proto != nil {
return
}
File_imports_test_b_1_m1_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_imports_test_b_1_m1_proto_rawDesc,
- GoTypes: xxx_File_imports_test_b_1_m1_proto_goTypes,
- DependencyIndexes: xxx_File_imports_test_b_1_m1_proto_depIdxs,
- MessageOutputTypes: xxx_File_imports_test_b_1_m1_proto_messageTypes,
+ RawDescriptor: file_imports_test_b_1_m1_proto_rawDesc,
+ GoTypes: file_imports_test_b_1_m1_proto_goTypes,
+ DependencyIndexes: file_imports_test_b_1_m1_proto_depIdxs,
+ MessageOutputTypes: file_imports_test_b_1_m1_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_imports_test_b_1_m1_proto_rawDesc = nil
- xxx_File_imports_test_b_1_m1_proto_goTypes = nil
- xxx_File_imports_test_b_1_m1_proto_depIdxs = nil
+ file_imports_test_b_1_m1_proto_rawDesc = nil
+ file_imports_test_b_1_m1_proto_goTypes = nil
+ file_imports_test_b_1_m1_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.pb.go b/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.pb.go
index bd2f632..0e8e245 100644
--- a/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.pb.go
+++ b/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.pb.go
@@ -30,21 +30,21 @@
func (*M2) ProtoMessage() {}
func (x *M2) ProtoReflect() protoreflect.Message {
- return xxx_File_imports_test_b_1_m2_proto_messageTypes[0].MessageOf(x)
+ return file_imports_test_b_1_m2_proto_msgTypes[0].MessageOf(x)
}
func (m *M2) XXX_Methods() *protoiface.Methods {
- return xxx_File_imports_test_b_1_m2_proto_messageTypes[0].Methods()
+ return file_imports_test_b_1_m2_proto_msgTypes[0].Methods()
}
// Deprecated: Use M2.ProtoReflect.Type instead.
func (*M2) Descriptor() ([]byte, []int) {
- return xxx_File_imports_test_b_1_m2_proto_rawDescGZIP(), []int{0}
+ return file_imports_test_b_1_m2_proto_rawDescGZIP(), []int{0}
}
var File_imports_test_b_1_m2_proto protoreflect.FileDescriptor
-var xxx_File_imports_test_b_1_m2_proto_rawDesc = []byte{
+var file_imports_test_b_1_m2_proto_rawDesc = []byte{
0x0a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x62,
0x5f, 0x31, 0x2f, 0x6d, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x74, 0x65, 0x73,
0x74, 0x2e, 0x62, 0x2e, 0x70, 0x61, 0x72, 0x74, 0x32, 0x22, 0x04, 0x0a, 0x02, 0x4d, 0x32, 0x42,
@@ -57,37 +57,37 @@
}
var (
- xxx_File_imports_test_b_1_m2_proto_rawDesc_once sync.Once
- xxx_File_imports_test_b_1_m2_proto_rawDesc_data = xxx_File_imports_test_b_1_m2_proto_rawDesc
+ file_imports_test_b_1_m2_proto_rawDescOnce sync.Once
+ file_imports_test_b_1_m2_proto_rawDescData = file_imports_test_b_1_m2_proto_rawDesc
)
-func xxx_File_imports_test_b_1_m2_proto_rawDescGZIP() []byte {
- xxx_File_imports_test_b_1_m2_proto_rawDesc_once.Do(func() {
- xxx_File_imports_test_b_1_m2_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_imports_test_b_1_m2_proto_rawDesc_data)
+func file_imports_test_b_1_m2_proto_rawDescGZIP() []byte {
+ file_imports_test_b_1_m2_proto_rawDescOnce.Do(func() {
+ file_imports_test_b_1_m2_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_test_b_1_m2_proto_rawDescData)
})
- return xxx_File_imports_test_b_1_m2_proto_rawDesc_data
+ return file_imports_test_b_1_m2_proto_rawDescData
}
-var xxx_File_imports_test_b_1_m2_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_imports_test_b_1_m2_proto_goTypes = []interface{}{
+var file_imports_test_b_1_m2_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_imports_test_b_1_m2_proto_goTypes = []interface{}{
(*M2)(nil), // 0: test.b.part2.M2
}
-var xxx_File_imports_test_b_1_m2_proto_depIdxs = []int32{}
+var file_imports_test_b_1_m2_proto_depIdxs = []int32{}
-func init() { xxx_File_imports_test_b_1_m2_proto_init() }
-func xxx_File_imports_test_b_1_m2_proto_init() {
+func init() { file_imports_test_b_1_m2_proto_init() }
+func file_imports_test_b_1_m2_proto_init() {
if File_imports_test_b_1_m2_proto != nil {
return
}
File_imports_test_b_1_m2_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_imports_test_b_1_m2_proto_rawDesc,
- GoTypes: xxx_File_imports_test_b_1_m2_proto_goTypes,
- DependencyIndexes: xxx_File_imports_test_b_1_m2_proto_depIdxs,
- MessageOutputTypes: xxx_File_imports_test_b_1_m2_proto_messageTypes,
+ RawDescriptor: file_imports_test_b_1_m2_proto_rawDesc,
+ GoTypes: file_imports_test_b_1_m2_proto_goTypes,
+ DependencyIndexes: file_imports_test_b_1_m2_proto_depIdxs,
+ MessageOutputTypes: file_imports_test_b_1_m2_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_imports_test_b_1_m2_proto_rawDesc = nil
- xxx_File_imports_test_b_1_m2_proto_goTypes = nil
- xxx_File_imports_test_b_1_m2_proto_depIdxs = nil
+ file_imports_test_b_1_m2_proto_rawDesc = nil
+ file_imports_test_b_1_m2_proto_goTypes = nil
+ file_imports_test_b_1_m2_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/imports/test_import_a1m1.pb.go b/cmd/protoc-gen-go/testdata/imports/test_import_a1m1.pb.go
index b29d33d..8297ccc 100644
--- a/cmd/protoc-gen-go/testdata/imports/test_import_a1m1.pb.go
+++ b/cmd/protoc-gen-go/testdata/imports/test_import_a1m1.pb.go
@@ -32,16 +32,16 @@
func (*A1M1) ProtoMessage() {}
func (x *A1M1) ProtoReflect() protoreflect.Message {
- return xxx_File_imports_test_import_a1m1_proto_messageTypes[0].MessageOf(x)
+ return file_imports_test_import_a1m1_proto_msgTypes[0].MessageOf(x)
}
func (m *A1M1) XXX_Methods() *protoiface.Methods {
- return xxx_File_imports_test_import_a1m1_proto_messageTypes[0].Methods()
+ return file_imports_test_import_a1m1_proto_msgTypes[0].Methods()
}
// Deprecated: Use A1M1.ProtoReflect.Type instead.
func (*A1M1) Descriptor() ([]byte, []int) {
- return xxx_File_imports_test_import_a1m1_proto_rawDescGZIP(), []int{0}
+ return file_imports_test_import_a1m1_proto_rawDescGZIP(), []int{0}
}
func (x *A1M1) GetF() *test_a_1.M1 {
@@ -53,7 +53,7 @@
var File_imports_test_import_a1m1_proto protoreflect.FileDescriptor
-var xxx_File_imports_test_import_a1m1_proto_rawDesc = []byte{
+var file_imports_test_import_a1m1_proto_rawDesc = []byte{
0x0a, 0x1e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69,
0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x31, 0x6d, 0x31, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x04, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f,
@@ -68,40 +68,40 @@
}
var (
- xxx_File_imports_test_import_a1m1_proto_rawDesc_once sync.Once
- xxx_File_imports_test_import_a1m1_proto_rawDesc_data = xxx_File_imports_test_import_a1m1_proto_rawDesc
+ file_imports_test_import_a1m1_proto_rawDescOnce sync.Once
+ file_imports_test_import_a1m1_proto_rawDescData = file_imports_test_import_a1m1_proto_rawDesc
)
-func xxx_File_imports_test_import_a1m1_proto_rawDescGZIP() []byte {
- xxx_File_imports_test_import_a1m1_proto_rawDesc_once.Do(func() {
- xxx_File_imports_test_import_a1m1_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_imports_test_import_a1m1_proto_rawDesc_data)
+func file_imports_test_import_a1m1_proto_rawDescGZIP() []byte {
+ file_imports_test_import_a1m1_proto_rawDescOnce.Do(func() {
+ file_imports_test_import_a1m1_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_test_import_a1m1_proto_rawDescData)
})
- return xxx_File_imports_test_import_a1m1_proto_rawDesc_data
+ return file_imports_test_import_a1m1_proto_rawDescData
}
-var xxx_File_imports_test_import_a1m1_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_imports_test_import_a1m1_proto_goTypes = []interface{}{
+var file_imports_test_import_a1m1_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_imports_test_import_a1m1_proto_goTypes = []interface{}{
(*A1M1)(nil), // 0: test.A1M1
(*test_a_1.M1)(nil), // 1: test.a.M1
}
-var xxx_File_imports_test_import_a1m1_proto_depIdxs = []int32{
+var file_imports_test_import_a1m1_proto_depIdxs = []int32{
1, // test.A1M1.f:type_name -> test.a.M1
}
-func init() { xxx_File_imports_test_import_a1m1_proto_init() }
-func xxx_File_imports_test_import_a1m1_proto_init() {
+func init() { file_imports_test_import_a1m1_proto_init() }
+func file_imports_test_import_a1m1_proto_init() {
if File_imports_test_import_a1m1_proto != nil {
return
}
File_imports_test_import_a1m1_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_imports_test_import_a1m1_proto_rawDesc,
- GoTypes: xxx_File_imports_test_import_a1m1_proto_goTypes,
- DependencyIndexes: xxx_File_imports_test_import_a1m1_proto_depIdxs,
- MessageOutputTypes: xxx_File_imports_test_import_a1m1_proto_messageTypes,
+ RawDescriptor: file_imports_test_import_a1m1_proto_rawDesc,
+ GoTypes: file_imports_test_import_a1m1_proto_goTypes,
+ DependencyIndexes: file_imports_test_import_a1m1_proto_depIdxs,
+ MessageOutputTypes: file_imports_test_import_a1m1_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_imports_test_import_a1m1_proto_rawDesc = nil
- xxx_File_imports_test_import_a1m1_proto_goTypes = nil
- xxx_File_imports_test_import_a1m1_proto_depIdxs = nil
+ file_imports_test_import_a1m1_proto_rawDesc = nil
+ file_imports_test_import_a1m1_proto_goTypes = nil
+ file_imports_test_import_a1m1_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/imports/test_import_a1m2.pb.go b/cmd/protoc-gen-go/testdata/imports/test_import_a1m2.pb.go
index a819ff1..4ac0733 100644
--- a/cmd/protoc-gen-go/testdata/imports/test_import_a1m2.pb.go
+++ b/cmd/protoc-gen-go/testdata/imports/test_import_a1m2.pb.go
@@ -32,16 +32,16 @@
func (*A1M2) ProtoMessage() {}
func (x *A1M2) ProtoReflect() protoreflect.Message {
- return xxx_File_imports_test_import_a1m2_proto_messageTypes[0].MessageOf(x)
+ return file_imports_test_import_a1m2_proto_msgTypes[0].MessageOf(x)
}
func (m *A1M2) XXX_Methods() *protoiface.Methods {
- return xxx_File_imports_test_import_a1m2_proto_messageTypes[0].Methods()
+ return file_imports_test_import_a1m2_proto_msgTypes[0].Methods()
}
// Deprecated: Use A1M2.ProtoReflect.Type instead.
func (*A1M2) Descriptor() ([]byte, []int) {
- return xxx_File_imports_test_import_a1m2_proto_rawDescGZIP(), []int{0}
+ return file_imports_test_import_a1m2_proto_rawDescGZIP(), []int{0}
}
func (x *A1M2) GetF() *test_a_1.M2 {
@@ -53,7 +53,7 @@
var File_imports_test_import_a1m2_proto protoreflect.FileDescriptor
-var xxx_File_imports_test_import_a1m2_proto_rawDesc = []byte{
+var file_imports_test_import_a1m2_proto_rawDesc = []byte{
0x0a, 0x1e, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69,
0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x31, 0x6d, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x04, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f,
@@ -68,40 +68,40 @@
}
var (
- xxx_File_imports_test_import_a1m2_proto_rawDesc_once sync.Once
- xxx_File_imports_test_import_a1m2_proto_rawDesc_data = xxx_File_imports_test_import_a1m2_proto_rawDesc
+ file_imports_test_import_a1m2_proto_rawDescOnce sync.Once
+ file_imports_test_import_a1m2_proto_rawDescData = file_imports_test_import_a1m2_proto_rawDesc
)
-func xxx_File_imports_test_import_a1m2_proto_rawDescGZIP() []byte {
- xxx_File_imports_test_import_a1m2_proto_rawDesc_once.Do(func() {
- xxx_File_imports_test_import_a1m2_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_imports_test_import_a1m2_proto_rawDesc_data)
+func file_imports_test_import_a1m2_proto_rawDescGZIP() []byte {
+ file_imports_test_import_a1m2_proto_rawDescOnce.Do(func() {
+ file_imports_test_import_a1m2_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_test_import_a1m2_proto_rawDescData)
})
- return xxx_File_imports_test_import_a1m2_proto_rawDesc_data
+ return file_imports_test_import_a1m2_proto_rawDescData
}
-var xxx_File_imports_test_import_a1m2_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_imports_test_import_a1m2_proto_goTypes = []interface{}{
+var file_imports_test_import_a1m2_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_imports_test_import_a1m2_proto_goTypes = []interface{}{
(*A1M2)(nil), // 0: test.A1M2
(*test_a_1.M2)(nil), // 1: test.a.M2
}
-var xxx_File_imports_test_import_a1m2_proto_depIdxs = []int32{
+var file_imports_test_import_a1m2_proto_depIdxs = []int32{
1, // test.A1M2.f:type_name -> test.a.M2
}
-func init() { xxx_File_imports_test_import_a1m2_proto_init() }
-func xxx_File_imports_test_import_a1m2_proto_init() {
+func init() { file_imports_test_import_a1m2_proto_init() }
+func file_imports_test_import_a1m2_proto_init() {
if File_imports_test_import_a1m2_proto != nil {
return
}
File_imports_test_import_a1m2_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_imports_test_import_a1m2_proto_rawDesc,
- GoTypes: xxx_File_imports_test_import_a1m2_proto_goTypes,
- DependencyIndexes: xxx_File_imports_test_import_a1m2_proto_depIdxs,
- MessageOutputTypes: xxx_File_imports_test_import_a1m2_proto_messageTypes,
+ RawDescriptor: file_imports_test_import_a1m2_proto_rawDesc,
+ GoTypes: file_imports_test_import_a1m2_proto_goTypes,
+ DependencyIndexes: file_imports_test_import_a1m2_proto_depIdxs,
+ MessageOutputTypes: file_imports_test_import_a1m2_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_imports_test_import_a1m2_proto_rawDesc = nil
- xxx_File_imports_test_import_a1m2_proto_goTypes = nil
- xxx_File_imports_test_import_a1m2_proto_depIdxs = nil
+ file_imports_test_import_a1m2_proto_rawDesc = nil
+ file_imports_test_import_a1m2_proto_goTypes = nil
+ file_imports_test_import_a1m2_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/imports/test_import_all.pb.go b/cmd/protoc-gen-go/testdata/imports/test_import_all.pb.go
index e6bde82..89d4569 100644
--- a/cmd/protoc-gen-go/testdata/imports/test_import_all.pb.go
+++ b/cmd/protoc-gen-go/testdata/imports/test_import_all.pb.go
@@ -39,16 +39,16 @@
func (*All) ProtoMessage() {}
func (x *All) ProtoReflect() protoreflect.Message {
- return xxx_File_imports_test_import_all_proto_messageTypes[0].MessageOf(x)
+ return file_imports_test_import_all_proto_msgTypes[0].MessageOf(x)
}
func (m *All) XXX_Methods() *protoiface.Methods {
- return xxx_File_imports_test_import_all_proto_messageTypes[0].Methods()
+ return file_imports_test_import_all_proto_msgTypes[0].Methods()
}
// Deprecated: Use All.ProtoReflect.Type instead.
func (*All) Descriptor() ([]byte, []int) {
- return xxx_File_imports_test_import_all_proto_rawDescGZIP(), []int{0}
+ return file_imports_test_import_all_proto_rawDescGZIP(), []int{0}
}
func (x *All) GetAm1() *test_a_1.M1 {
@@ -88,7 +88,7 @@
var File_imports_test_import_all_proto protoreflect.FileDescriptor
-var xxx_File_imports_test_import_all_proto_rawDesc = []byte{
+var file_imports_test_import_all_proto_rawDesc = []byte{
0x0a, 0x1d, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x5f, 0x69,
0x6d, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x61, 0x6c, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12,
0x04, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x69, 0x6d, 0x70, 0x6f, 0x72, 0x74, 0x73, 0x2f, 0x74,
@@ -121,19 +121,19 @@
}
var (
- xxx_File_imports_test_import_all_proto_rawDesc_once sync.Once
- xxx_File_imports_test_import_all_proto_rawDesc_data = xxx_File_imports_test_import_all_proto_rawDesc
+ file_imports_test_import_all_proto_rawDescOnce sync.Once
+ file_imports_test_import_all_proto_rawDescData = file_imports_test_import_all_proto_rawDesc
)
-func xxx_File_imports_test_import_all_proto_rawDescGZIP() []byte {
- xxx_File_imports_test_import_all_proto_rawDesc_once.Do(func() {
- xxx_File_imports_test_import_all_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_imports_test_import_all_proto_rawDesc_data)
+func file_imports_test_import_all_proto_rawDescGZIP() []byte {
+ file_imports_test_import_all_proto_rawDescOnce.Do(func() {
+ file_imports_test_import_all_proto_rawDescData = protoimpl.X.CompressGZIP(file_imports_test_import_all_proto_rawDescData)
})
- return xxx_File_imports_test_import_all_proto_rawDesc_data
+ return file_imports_test_import_all_proto_rawDescData
}
-var xxx_File_imports_test_import_all_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_imports_test_import_all_proto_goTypes = []interface{}{
+var file_imports_test_import_all_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_imports_test_import_all_proto_goTypes = []interface{}{
(*All)(nil), // 0: test.All
(*test_a_1.M1)(nil), // 1: test.a.M1
(*test_a_1.M2)(nil), // 2: test.a.M2
@@ -141,7 +141,7 @@
(*test_b_1.M2)(nil), // 4: test.b.part2.M2
(*fmt.M)(nil), // 5: fmt.M
}
-var xxx_File_imports_test_import_all_proto_depIdxs = []int32{
+var file_imports_test_import_all_proto_depIdxs = []int32{
1, // test.All.am1:type_name -> test.a.M1
2, // test.All.am2:type_name -> test.a.M2
3, // test.All.bm1:type_name -> test.b.part1.M1
@@ -149,20 +149,20 @@
5, // test.All.fmt:type_name -> fmt.M
}
-func init() { xxx_File_imports_test_import_all_proto_init() }
-func xxx_File_imports_test_import_all_proto_init() {
+func init() { file_imports_test_import_all_proto_init() }
+func file_imports_test_import_all_proto_init() {
if File_imports_test_import_all_proto != nil {
return
}
File_imports_test_import_all_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_imports_test_import_all_proto_rawDesc,
- GoTypes: xxx_File_imports_test_import_all_proto_goTypes,
- DependencyIndexes: xxx_File_imports_test_import_all_proto_depIdxs,
- MessageOutputTypes: xxx_File_imports_test_import_all_proto_messageTypes,
+ RawDescriptor: file_imports_test_import_all_proto_rawDesc,
+ GoTypes: file_imports_test_import_all_proto_goTypes,
+ DependencyIndexes: file_imports_test_import_all_proto_depIdxs,
+ MessageOutputTypes: file_imports_test_import_all_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_imports_test_import_all_proto_rawDesc = nil
- xxx_File_imports_test_import_all_proto_goTypes = nil
- xxx_File_imports_test_import_all_proto_depIdxs = nil
+ file_imports_test_import_all_proto_rawDesc = nil
+ file_imports_test_import_all_proto_goTypes = nil
+ file_imports_test_import_all_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.pb.go b/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.pb.go
index a484165..514b1c8 100644
--- a/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.pb.go
+++ b/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.pb.go
@@ -33,16 +33,16 @@
func (*Foo) ProtoMessage() {}
func (x *Foo) ProtoReflect() protoreflect.Message {
- return xxx_File_issue780_oneof_conflict_test_proto_messageTypes[0].MessageOf(x)
+ return file_issue780_oneof_conflict_test_proto_msgTypes[0].MessageOf(x)
}
func (m *Foo) XXX_Methods() *protoiface.Methods {
- return xxx_File_issue780_oneof_conflict_test_proto_messageTypes[0].Methods()
+ return file_issue780_oneof_conflict_test_proto_msgTypes[0].Methods()
}
// Deprecated: Use Foo.ProtoReflect.Type instead.
func (*Foo) Descriptor() ([]byte, []int) {
- return xxx_File_issue780_oneof_conflict_test_proto_rawDescGZIP(), []int{0}
+ return file_issue780_oneof_conflict_test_proto_rawDescGZIP(), []int{0}
}
func (m *Foo) GetBar() isFoo_Bar {
@@ -78,7 +78,7 @@
var File_issue780_oneof_conflict_test_proto protoreflect.FileDescriptor
-var xxx_File_issue780_oneof_conflict_test_proto_rawDesc = []byte{
+var file_issue780_oneof_conflict_test_proto_rawDesc = []byte{
0x0a, 0x22, 0x69, 0x73, 0x73, 0x75, 0x65, 0x37, 0x38, 0x30, 0x5f, 0x6f, 0x6e, 0x65, 0x6f, 0x66,
0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x6c, 0x69, 0x63, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x12, 0x09, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x74, 0x65, 0x73, 0x74, 0x22,
@@ -88,37 +88,37 @@
}
var (
- xxx_File_issue780_oneof_conflict_test_proto_rawDesc_once sync.Once
- xxx_File_issue780_oneof_conflict_test_proto_rawDesc_data = xxx_File_issue780_oneof_conflict_test_proto_rawDesc
+ file_issue780_oneof_conflict_test_proto_rawDescOnce sync.Once
+ file_issue780_oneof_conflict_test_proto_rawDescData = file_issue780_oneof_conflict_test_proto_rawDesc
)
-func xxx_File_issue780_oneof_conflict_test_proto_rawDescGZIP() []byte {
- xxx_File_issue780_oneof_conflict_test_proto_rawDesc_once.Do(func() {
- xxx_File_issue780_oneof_conflict_test_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_issue780_oneof_conflict_test_proto_rawDesc_data)
+func file_issue780_oneof_conflict_test_proto_rawDescGZIP() []byte {
+ file_issue780_oneof_conflict_test_proto_rawDescOnce.Do(func() {
+ file_issue780_oneof_conflict_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_issue780_oneof_conflict_test_proto_rawDescData)
})
- return xxx_File_issue780_oneof_conflict_test_proto_rawDesc_data
+ return file_issue780_oneof_conflict_test_proto_rawDescData
}
-var xxx_File_issue780_oneof_conflict_test_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_issue780_oneof_conflict_test_proto_goTypes = []interface{}{
+var file_issue780_oneof_conflict_test_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_issue780_oneof_conflict_test_proto_goTypes = []interface{}{
(*Foo)(nil), // 0: oneoftest.Foo
}
-var xxx_File_issue780_oneof_conflict_test_proto_depIdxs = []int32{}
+var file_issue780_oneof_conflict_test_proto_depIdxs = []int32{}
-func init() { xxx_File_issue780_oneof_conflict_test_proto_init() }
-func xxx_File_issue780_oneof_conflict_test_proto_init() {
+func init() { file_issue780_oneof_conflict_test_proto_init() }
+func file_issue780_oneof_conflict_test_proto_init() {
if File_issue780_oneof_conflict_test_proto != nil {
return
}
File_issue780_oneof_conflict_test_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_issue780_oneof_conflict_test_proto_rawDesc,
- GoTypes: xxx_File_issue780_oneof_conflict_test_proto_goTypes,
- DependencyIndexes: xxx_File_issue780_oneof_conflict_test_proto_depIdxs,
- MessageOutputTypes: xxx_File_issue780_oneof_conflict_test_proto_messageTypes,
+ RawDescriptor: file_issue780_oneof_conflict_test_proto_rawDesc,
+ GoTypes: file_issue780_oneof_conflict_test_proto_goTypes,
+ DependencyIndexes: file_issue780_oneof_conflict_test_proto_depIdxs,
+ MessageOutputTypes: file_issue780_oneof_conflict_test_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_issue780_oneof_conflict_test_proto_rawDesc = nil
- xxx_File_issue780_oneof_conflict_test_proto_goTypes = nil
- xxx_File_issue780_oneof_conflict_test_proto_depIdxs = nil
+ file_issue780_oneof_conflict_test_proto_rawDesc = nil
+ file_issue780_oneof_conflict_test_proto_goTypes = nil
+ file_issue780_oneof_conflict_test_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/nopackage/nopackage.pb.go b/cmd/protoc-gen-go/testdata/nopackage/nopackage.pb.go
index f20c1fb..5398c1f 100644
--- a/cmd/protoc-gen-go/testdata/nopackage/nopackage.pb.go
+++ b/cmd/protoc-gen-go/testdata/nopackage/nopackage.pb.go
@@ -40,7 +40,7 @@
}
func (Enum) Type() protoreflect.EnumType {
- return xxx_File_nopackage_nopackage_proto_enumTypes[0]
+ return file_nopackage_nopackage_proto_enumTypes[0]
}
func (x Enum) Number() protoreflect.EnumNumber {
@@ -59,7 +59,7 @@
// Deprecated: Use Enum.Type instead.
func (Enum) EnumDescriptor() ([]byte, []int) {
- return xxx_File_nopackage_nopackage_proto_rawDescGZIP(), []int{0}
+ return file_nopackage_nopackage_proto_rawDescGZIP(), []int{0}
}
type Message struct {
@@ -81,16 +81,16 @@
func (*Message) ProtoMessage() {}
func (x *Message) ProtoReflect() protoreflect.Message {
- return xxx_File_nopackage_nopackage_proto_messageTypes[0].MessageOf(x)
+ return file_nopackage_nopackage_proto_msgTypes[0].MessageOf(x)
}
func (m *Message) XXX_Methods() *protoiface.Methods {
- return xxx_File_nopackage_nopackage_proto_messageTypes[0].Methods()
+ return file_nopackage_nopackage_proto_msgTypes[0].Methods()
}
// Deprecated: Use Message.ProtoReflect.Type instead.
func (*Message) Descriptor() ([]byte, []int) {
- return xxx_File_nopackage_nopackage_proto_rawDescGZIP(), []int{0}
+ return file_nopackage_nopackage_proto_rawDescGZIP(), []int{0}
}
const Default_Message_EnumField Enum = Enum_ZERO
@@ -111,7 +111,7 @@
var File_nopackage_nopackage_proto protoreflect.FileDescriptor
-var xxx_File_nopackage_nopackage_proto_rawDesc = []byte{
+var file_nopackage_nopackage_proto_rawDesc = []byte{
0x0a, 0x19, 0x6e, 0x6f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x2f, 0x6e, 0x6f, 0x70, 0x61,
0x63, 0x6b, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x58, 0x0a, 0x07, 0x4d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67,
@@ -124,42 +124,42 @@
}
var (
- xxx_File_nopackage_nopackage_proto_rawDesc_once sync.Once
- xxx_File_nopackage_nopackage_proto_rawDesc_data = xxx_File_nopackage_nopackage_proto_rawDesc
+ file_nopackage_nopackage_proto_rawDescOnce sync.Once
+ file_nopackage_nopackage_proto_rawDescData = file_nopackage_nopackage_proto_rawDesc
)
-func xxx_File_nopackage_nopackage_proto_rawDescGZIP() []byte {
- xxx_File_nopackage_nopackage_proto_rawDesc_once.Do(func() {
- xxx_File_nopackage_nopackage_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_nopackage_nopackage_proto_rawDesc_data)
+func file_nopackage_nopackage_proto_rawDescGZIP() []byte {
+ file_nopackage_nopackage_proto_rawDescOnce.Do(func() {
+ file_nopackage_nopackage_proto_rawDescData = protoimpl.X.CompressGZIP(file_nopackage_nopackage_proto_rawDescData)
})
- return xxx_File_nopackage_nopackage_proto_rawDesc_data
+ return file_nopackage_nopackage_proto_rawDescData
}
-var xxx_File_nopackage_nopackage_proto_enumTypes = make([]protoreflect.EnumType, 1)
-var xxx_File_nopackage_nopackage_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_nopackage_nopackage_proto_goTypes = []interface{}{
+var file_nopackage_nopackage_proto_enumTypes = make([]protoreflect.EnumType, 1)
+var file_nopackage_nopackage_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_nopackage_nopackage_proto_goTypes = []interface{}{
(Enum)(0), // 0: Enum
(*Message)(nil), // 1: Message
}
-var xxx_File_nopackage_nopackage_proto_depIdxs = []int32{
+var file_nopackage_nopackage_proto_depIdxs = []int32{
0, // Message.enum_field:type_name -> Enum
}
-func init() { xxx_File_nopackage_nopackage_proto_init() }
-func xxx_File_nopackage_nopackage_proto_init() {
+func init() { file_nopackage_nopackage_proto_init() }
+func file_nopackage_nopackage_proto_init() {
if File_nopackage_nopackage_proto != nil {
return
}
File_nopackage_nopackage_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_nopackage_nopackage_proto_rawDesc,
- GoTypes: xxx_File_nopackage_nopackage_proto_goTypes,
- DependencyIndexes: xxx_File_nopackage_nopackage_proto_depIdxs,
- EnumOutputTypes: xxx_File_nopackage_nopackage_proto_enumTypes,
- MessageOutputTypes: xxx_File_nopackage_nopackage_proto_messageTypes,
+ RawDescriptor: file_nopackage_nopackage_proto_rawDesc,
+ GoTypes: file_nopackage_nopackage_proto_goTypes,
+ DependencyIndexes: file_nopackage_nopackage_proto_depIdxs,
+ EnumOutputTypes: file_nopackage_nopackage_proto_enumTypes,
+ MessageOutputTypes: file_nopackage_nopackage_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_nopackage_nopackage_proto_rawDesc = nil
- xxx_File_nopackage_nopackage_proto_goTypes = nil
- xxx_File_nopackage_nopackage_proto_depIdxs = nil
+ file_nopackage_nopackage_proto_rawDesc = nil
+ file_nopackage_nopackage_proto_goTypes = nil
+ file_nopackage_nopackage_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/proto2/enum.pb.go b/cmd/protoc-gen-go/testdata/proto2/enum.pb.go
index 71a52f5..071d96a 100644
--- a/cmd/protoc-gen-go/testdata/proto2/enum.pb.go
+++ b/cmd/protoc-gen-go/testdata/proto2/enum.pb.go
@@ -46,7 +46,7 @@
}
func (EnumType1) Type() protoreflect.EnumType {
- return xxx_File_proto2_enum_proto_enumTypes[0]
+ return file_proto2_enum_proto_enumTypes[0]
}
func (x EnumType1) Number() protoreflect.EnumNumber {
@@ -65,7 +65,7 @@
// Deprecated: Use EnumType1.Type instead.
func (EnumType1) EnumDescriptor() ([]byte, []int) {
- return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0}
+ return file_proto2_enum_proto_rawDescGZIP(), []int{0}
}
type EnumType2 int32
@@ -98,7 +98,7 @@
}
func (EnumType2) Type() protoreflect.EnumType {
- return xxx_File_proto2_enum_proto_enumTypes[1]
+ return file_proto2_enum_proto_enumTypes[1]
}
func (x EnumType2) Number() protoreflect.EnumNumber {
@@ -117,7 +117,7 @@
// Deprecated: Use EnumType2.Type instead.
func (EnumType2) EnumDescriptor() ([]byte, []int) {
- return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{1}
+ return file_proto2_enum_proto_rawDescGZIP(), []int{1}
}
// NestedEnumType1A comment.
@@ -149,7 +149,7 @@
}
func (EnumContainerMessage1_NestedEnumType1A) Type() protoreflect.EnumType {
- return xxx_File_proto2_enum_proto_enumTypes[2]
+ return file_proto2_enum_proto_enumTypes[2]
}
func (x EnumContainerMessage1_NestedEnumType1A) Number() protoreflect.EnumNumber {
@@ -168,7 +168,7 @@
// Deprecated: Use EnumContainerMessage1_NestedEnumType1A.Type instead.
func (EnumContainerMessage1_NestedEnumType1A) EnumDescriptor() ([]byte, []int) {
- return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
+ return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
}
type EnumContainerMessage1_NestedEnumType1B int32
@@ -198,7 +198,7 @@
}
func (EnumContainerMessage1_NestedEnumType1B) Type() protoreflect.EnumType {
- return xxx_File_proto2_enum_proto_enumTypes[3]
+ return file_proto2_enum_proto_enumTypes[3]
}
func (x EnumContainerMessage1_NestedEnumType1B) Number() protoreflect.EnumNumber {
@@ -217,7 +217,7 @@
// Deprecated: Use EnumContainerMessage1_NestedEnumType1B.Type instead.
func (EnumContainerMessage1_NestedEnumType1B) EnumDescriptor() ([]byte, []int) {
- return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 1}
+ return file_proto2_enum_proto_rawDescGZIP(), []int{0, 1}
}
// NestedEnumType2A comment.
@@ -249,7 +249,7 @@
}
func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Type() protoreflect.EnumType {
- return xxx_File_proto2_enum_proto_enumTypes[4]
+ return file_proto2_enum_proto_enumTypes[4]
}
func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) Number() protoreflect.EnumNumber {
@@ -268,7 +268,7 @@
// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A.Type instead.
func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2A) EnumDescriptor() ([]byte, []int) {
- return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 0}
+ return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 0}
}
type EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B int32
@@ -298,7 +298,7 @@
}
func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Type() protoreflect.EnumType {
- return xxx_File_proto2_enum_proto_enumTypes[5]
+ return file_proto2_enum_proto_enumTypes[5]
}
func (x EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) Number() protoreflect.EnumNumber {
@@ -317,7 +317,7 @@
// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B.Type instead.
func (EnumContainerMessage1_EnumContainerMessage2_NestedEnumType2B) EnumDescriptor() ([]byte, []int) {
- return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 1}
+ return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0, 1}
}
type EnumContainerMessage1 struct {
@@ -339,16 +339,16 @@
func (*EnumContainerMessage1) ProtoMessage() {}
func (x *EnumContainerMessage1) ProtoReflect() protoreflect.Message {
- return xxx_File_proto2_enum_proto_messageTypes[0].MessageOf(x)
+ return file_proto2_enum_proto_msgTypes[0].MessageOf(x)
}
func (m *EnumContainerMessage1) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto2_enum_proto_messageTypes[0].Methods()
+ return file_proto2_enum_proto_msgTypes[0].Methods()
}
// Deprecated: Use EnumContainerMessage1.ProtoReflect.Type instead.
func (*EnumContainerMessage1) Descriptor() ([]byte, []int) {
- return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0}
+ return file_proto2_enum_proto_rawDescGZIP(), []int{0}
}
const Default_EnumContainerMessage1_DefaultDuplicate1 EnumType2 = EnumType2_duplicate1
@@ -385,21 +385,21 @@
func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {}
func (x *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message {
- return xxx_File_proto2_enum_proto_messageTypes[1].MessageOf(x)
+ return file_proto2_enum_proto_msgTypes[1].MessageOf(x)
}
func (m *EnumContainerMessage1_EnumContainerMessage2) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto2_enum_proto_messageTypes[1].Methods()
+ return file_proto2_enum_proto_msgTypes[1].Methods()
}
// Deprecated: Use EnumContainerMessage1_EnumContainerMessage2.ProtoReflect.Type instead.
func (*EnumContainerMessage1_EnumContainerMessage2) Descriptor() ([]byte, []int) {
- return xxx_File_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
+ return file_proto2_enum_proto_rawDescGZIP(), []int{0, 0}
}
var File_proto2_enum_proto protoreflect.FileDescriptor
-var xxx_File_proto2_enum_proto_rawDesc = []byte{
+var file_proto2_enum_proto_rawDesc = []byte{
0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x8e, 0x03, 0x0a, 0x15, 0x45,
@@ -442,20 +442,20 @@
}
var (
- xxx_File_proto2_enum_proto_rawDesc_once sync.Once
- xxx_File_proto2_enum_proto_rawDesc_data = xxx_File_proto2_enum_proto_rawDesc
+ file_proto2_enum_proto_rawDescOnce sync.Once
+ file_proto2_enum_proto_rawDescData = file_proto2_enum_proto_rawDesc
)
-func xxx_File_proto2_enum_proto_rawDescGZIP() []byte {
- xxx_File_proto2_enum_proto_rawDesc_once.Do(func() {
- xxx_File_proto2_enum_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_proto2_enum_proto_rawDesc_data)
+func file_proto2_enum_proto_rawDescGZIP() []byte {
+ file_proto2_enum_proto_rawDescOnce.Do(func() {
+ file_proto2_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_enum_proto_rawDescData)
})
- return xxx_File_proto2_enum_proto_rawDesc_data
+ return file_proto2_enum_proto_rawDescData
}
-var xxx_File_proto2_enum_proto_enumTypes = make([]protoreflect.EnumType, 6)
-var xxx_File_proto2_enum_proto_messageTypes = make([]protoimpl.MessageType, 2)
-var xxx_File_proto2_enum_proto_goTypes = []interface{}{
+var file_proto2_enum_proto_enumTypes = make([]protoreflect.EnumType, 6)
+var file_proto2_enum_proto_msgTypes = make([]protoimpl.MessageType, 2)
+var file_proto2_enum_proto_goTypes = []interface{}{
(EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1
(EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2
(EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A
@@ -465,26 +465,26 @@
(*EnumContainerMessage1)(nil), // 6: goproto.protoc.proto2.EnumContainerMessage1
(*EnumContainerMessage1_EnumContainerMessage2)(nil), // 7: goproto.protoc.proto2.EnumContainerMessage1.EnumContainerMessage2
}
-var xxx_File_proto2_enum_proto_depIdxs = []int32{
+var file_proto2_enum_proto_depIdxs = []int32{
1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate1:type_name -> goproto.protoc.proto2.EnumType2
1, // goproto.protoc.proto2.EnumContainerMessage1.default_duplicate2:type_name -> goproto.protoc.proto2.EnumType2
}
-func init() { xxx_File_proto2_enum_proto_init() }
-func xxx_File_proto2_enum_proto_init() {
+func init() { file_proto2_enum_proto_init() }
+func file_proto2_enum_proto_init() {
if File_proto2_enum_proto != nil {
return
}
File_proto2_enum_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_proto2_enum_proto_rawDesc,
- GoTypes: xxx_File_proto2_enum_proto_goTypes,
- DependencyIndexes: xxx_File_proto2_enum_proto_depIdxs,
- EnumOutputTypes: xxx_File_proto2_enum_proto_enumTypes,
- MessageOutputTypes: xxx_File_proto2_enum_proto_messageTypes,
+ RawDescriptor: file_proto2_enum_proto_rawDesc,
+ GoTypes: file_proto2_enum_proto_goTypes,
+ DependencyIndexes: file_proto2_enum_proto_depIdxs,
+ EnumOutputTypes: file_proto2_enum_proto_enumTypes,
+ MessageOutputTypes: file_proto2_enum_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_proto2_enum_proto_rawDesc = nil
- xxx_File_proto2_enum_proto_goTypes = nil
- xxx_File_proto2_enum_proto_depIdxs = nil
+ file_proto2_enum_proto_rawDesc = nil
+ file_proto2_enum_proto_goTypes = nil
+ file_proto2_enum_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/proto2/fields.pb.go b/cmd/protoc-gen-go/testdata/proto2/fields.pb.go
index 41dd12e..eb2a01a 100644
--- a/cmd/protoc-gen-go/testdata/proto2/fields.pb.go
+++ b/cmd/protoc-gen-go/testdata/proto2/fields.pb.go
@@ -44,7 +44,7 @@
}
func (FieldTestMessage_Enum) Type() protoreflect.EnumType {
- return xxx_File_proto2_fields_proto_enumTypes[0]
+ return file_proto2_fields_proto_enumTypes[0]
}
func (x FieldTestMessage_Enum) Number() protoreflect.EnumNumber {
@@ -63,7 +63,7 @@
// Deprecated: Use FieldTestMessage_Enum.Type instead.
func (FieldTestMessage_Enum) EnumDescriptor() ([]byte, []int) {
- return xxx_File_proto2_fields_proto_rawDescGZIP(), []int{0, 0}
+ return file_proto2_fields_proto_rawDescGZIP(), []int{0, 0}
}
type FieldTestMessage struct {
@@ -189,16 +189,16 @@
func (*FieldTestMessage) ProtoMessage() {}
func (x *FieldTestMessage) ProtoReflect() protoreflect.Message {
- return xxx_File_proto2_fields_proto_messageTypes[0].MessageOf(x)
+ return file_proto2_fields_proto_msgTypes[0].MessageOf(x)
}
func (m *FieldTestMessage) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto2_fields_proto_messageTypes[0].Methods()
+ return file_proto2_fields_proto_msgTypes[0].Methods()
}
// Deprecated: Use FieldTestMessage.ProtoReflect.Type instead.
func (*FieldTestMessage) Descriptor() ([]byte, []int) {
- return xxx_File_proto2_fields_proto_rawDescGZIP(), []int{0}
+ return file_proto2_fields_proto_rawDescGZIP(), []int{0}
}
const Default_FieldTestMessage_DefaultBool bool = true
@@ -1136,16 +1136,16 @@
func (*FieldTestMessage_OptionalGroup) ProtoMessage() {}
func (x *FieldTestMessage_OptionalGroup) ProtoReflect() protoreflect.Message {
- return xxx_File_proto2_fields_proto_messageTypes[1].MessageOf(x)
+ return file_proto2_fields_proto_msgTypes[1].MessageOf(x)
}
func (m *FieldTestMessage_OptionalGroup) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto2_fields_proto_messageTypes[1].Methods()
+ return file_proto2_fields_proto_msgTypes[1].Methods()
}
// Deprecated: Use FieldTestMessage_OptionalGroup.ProtoReflect.Type instead.
func (*FieldTestMessage_OptionalGroup) Descriptor() ([]byte, []int) {
- return xxx_File_proto2_fields_proto_rawDescGZIP(), []int{0, 0}
+ return file_proto2_fields_proto_rawDescGZIP(), []int{0, 0}
}
func (x *FieldTestMessage_OptionalGroup) GetOptionalGroup() string {
@@ -1173,16 +1173,16 @@
func (*FieldTestMessage_RequiredGroup) ProtoMessage() {}
func (x *FieldTestMessage_RequiredGroup) ProtoReflect() protoreflect.Message {
- return xxx_File_proto2_fields_proto_messageTypes[2].MessageOf(x)
+ return file_proto2_fields_proto_msgTypes[2].MessageOf(x)
}
func (m *FieldTestMessage_RequiredGroup) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto2_fields_proto_messageTypes[2].Methods()
+ return file_proto2_fields_proto_msgTypes[2].Methods()
}
// Deprecated: Use FieldTestMessage_RequiredGroup.ProtoReflect.Type instead.
func (*FieldTestMessage_RequiredGroup) Descriptor() ([]byte, []int) {
- return xxx_File_proto2_fields_proto_rawDescGZIP(), []int{0, 1}
+ return file_proto2_fields_proto_rawDescGZIP(), []int{0, 1}
}
func (x *FieldTestMessage_RequiredGroup) GetRequiredGroup() string {
@@ -1210,16 +1210,16 @@
func (*FieldTestMessage_RepeatedGroup) ProtoMessage() {}
func (x *FieldTestMessage_RepeatedGroup) ProtoReflect() protoreflect.Message {
- return xxx_File_proto2_fields_proto_messageTypes[3].MessageOf(x)
+ return file_proto2_fields_proto_msgTypes[3].MessageOf(x)
}
func (m *FieldTestMessage_RepeatedGroup) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto2_fields_proto_messageTypes[3].Methods()
+ return file_proto2_fields_proto_msgTypes[3].Methods()
}
// Deprecated: Use FieldTestMessage_RepeatedGroup.ProtoReflect.Type instead.
func (*FieldTestMessage_RepeatedGroup) Descriptor() ([]byte, []int) {
- return xxx_File_proto2_fields_proto_rawDescGZIP(), []int{0, 2}
+ return file_proto2_fields_proto_rawDescGZIP(), []int{0, 2}
}
func (x *FieldTestMessage_RepeatedGroup) GetRepeatedGroup() []string {
@@ -1247,16 +1247,16 @@
func (*FieldTestMessage_OneofGroup) ProtoMessage() {}
func (x *FieldTestMessage_OneofGroup) ProtoReflect() protoreflect.Message {
- return xxx_File_proto2_fields_proto_messageTypes[7].MessageOf(x)
+ return file_proto2_fields_proto_msgTypes[7].MessageOf(x)
}
func (m *FieldTestMessage_OneofGroup) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto2_fields_proto_messageTypes[7].Methods()
+ return file_proto2_fields_proto_msgTypes[7].Methods()
}
// Deprecated: Use FieldTestMessage_OneofGroup.ProtoReflect.Type instead.
func (*FieldTestMessage_OneofGroup) Descriptor() ([]byte, []int) {
- return xxx_File_proto2_fields_proto_rawDescGZIP(), []int{0, 6}
+ return file_proto2_fields_proto_rawDescGZIP(), []int{0, 6}
}
func (x *FieldTestMessage_OneofGroup) GetOneofGroupField() string {
@@ -1283,21 +1283,21 @@
func (*FieldTestMessage_Message) ProtoMessage() {}
func (x *FieldTestMessage_Message) ProtoReflect() protoreflect.Message {
- return xxx_File_proto2_fields_proto_messageTypes[8].MessageOf(x)
+ return file_proto2_fields_proto_msgTypes[8].MessageOf(x)
}
func (m *FieldTestMessage_Message) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto2_fields_proto_messageTypes[8].Methods()
+ return file_proto2_fields_proto_msgTypes[8].Methods()
}
// Deprecated: Use FieldTestMessage_Message.ProtoReflect.Type instead.
func (*FieldTestMessage_Message) Descriptor() ([]byte, []int) {
- return xxx_File_proto2_fields_proto_rawDescGZIP(), []int{0, 7}
+ return file_proto2_fields_proto_rawDescGZIP(), []int{0, 7}
}
var File_proto2_fields_proto protoreflect.FileDescriptor
-var xxx_File_proto2_fields_proto_rawDesc = []byte{
+var file_proto2_fields_proto_rawDesc = []byte{
0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0xa7, 0x2d, 0x0a,
@@ -1671,20 +1671,20 @@
}
var (
- xxx_File_proto2_fields_proto_rawDesc_once sync.Once
- xxx_File_proto2_fields_proto_rawDesc_data = xxx_File_proto2_fields_proto_rawDesc
+ file_proto2_fields_proto_rawDescOnce sync.Once
+ file_proto2_fields_proto_rawDescData = file_proto2_fields_proto_rawDesc
)
-func xxx_File_proto2_fields_proto_rawDescGZIP() []byte {
- xxx_File_proto2_fields_proto_rawDesc_once.Do(func() {
- xxx_File_proto2_fields_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_proto2_fields_proto_rawDesc_data)
+func file_proto2_fields_proto_rawDescGZIP() []byte {
+ file_proto2_fields_proto_rawDescOnce.Do(func() {
+ file_proto2_fields_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_fields_proto_rawDescData)
})
- return xxx_File_proto2_fields_proto_rawDesc_data
+ return file_proto2_fields_proto_rawDescData
}
-var xxx_File_proto2_fields_proto_enumTypes = make([]protoreflect.EnumType, 1)
-var xxx_File_proto2_fields_proto_messageTypes = make([]protoimpl.MessageType, 9)
-var xxx_File_proto2_fields_proto_goTypes = []interface{}{
+var file_proto2_fields_proto_enumTypes = make([]protoreflect.EnumType, 1)
+var file_proto2_fields_proto_msgTypes = make([]protoimpl.MessageType, 9)
+var file_proto2_fields_proto_goTypes = []interface{}{
(FieldTestMessage_Enum)(0), // 0: goproto.protoc.proto2.FieldTestMessage.Enum
(*FieldTestMessage)(nil), // 1: goproto.protoc.proto2.FieldTestMessage
(*FieldTestMessage_OptionalGroup)(nil), // 2: goproto.protoc.proto2.FieldTestMessage.OptionalGroup
@@ -1696,7 +1696,7 @@
(*FieldTestMessage_OneofGroup)(nil), // 8: goproto.protoc.proto2.FieldTestMessage.OneofGroup
(*FieldTestMessage_Message)(nil), // 9: goproto.protoc.proto2.FieldTestMessage.Message
}
-var xxx_File_proto2_fields_proto_depIdxs = []int32{
+var file_proto2_fields_proto_depIdxs = []int32{
0, // goproto.protoc.proto2.FieldTestMessage.optional_enum:type_name -> goproto.protoc.proto2.FieldTestMessage.Enum
9, // goproto.protoc.proto2.FieldTestMessage.optional_Message:type_name -> goproto.protoc.proto2.FieldTestMessage.Message
2, // goproto.protoc.proto2.FieldTestMessage.optionalgroup:type_name -> goproto.protoc.proto2.FieldTestMessage.OptionalGroup
@@ -1717,21 +1717,21 @@
0, // goproto.protoc.proto2.FieldTestMessage.MapFixed64EnumEntry.value:type_name -> goproto.protoc.proto2.FieldTestMessage.Enum
}
-func init() { xxx_File_proto2_fields_proto_init() }
-func xxx_File_proto2_fields_proto_init() {
+func init() { file_proto2_fields_proto_init() }
+func file_proto2_fields_proto_init() {
if File_proto2_fields_proto != nil {
return
}
File_proto2_fields_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_proto2_fields_proto_rawDesc,
- GoTypes: xxx_File_proto2_fields_proto_goTypes,
- DependencyIndexes: xxx_File_proto2_fields_proto_depIdxs,
- EnumOutputTypes: xxx_File_proto2_fields_proto_enumTypes,
- MessageOutputTypes: xxx_File_proto2_fields_proto_messageTypes,
+ RawDescriptor: file_proto2_fields_proto_rawDesc,
+ GoTypes: file_proto2_fields_proto_goTypes,
+ DependencyIndexes: file_proto2_fields_proto_depIdxs,
+ EnumOutputTypes: file_proto2_fields_proto_enumTypes,
+ MessageOutputTypes: file_proto2_fields_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_proto2_fields_proto_rawDesc = nil
- xxx_File_proto2_fields_proto_goTypes = nil
- xxx_File_proto2_fields_proto_depIdxs = nil
+ file_proto2_fields_proto_rawDesc = nil
+ file_proto2_fields_proto_goTypes = nil
+ file_proto2_fields_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/proto2/nested_messages.pb.go b/cmd/protoc-gen-go/testdata/proto2/nested_messages.pb.go
index 6a2227a..49cc234 100644
--- a/cmd/protoc-gen-go/testdata/proto2/nested_messages.pb.go
+++ b/cmd/protoc-gen-go/testdata/proto2/nested_messages.pb.go
@@ -32,16 +32,16 @@
func (*Layer1) ProtoMessage() {}
func (x *Layer1) ProtoReflect() protoreflect.Message {
- return xxx_File_proto2_nested_messages_proto_messageTypes[0].MessageOf(x)
+ return file_proto2_nested_messages_proto_msgTypes[0].MessageOf(x)
}
func (m *Layer1) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto2_nested_messages_proto_messageTypes[0].Methods()
+ return file_proto2_nested_messages_proto_msgTypes[0].Methods()
}
// Deprecated: Use Layer1.ProtoReflect.Type instead.
func (*Layer1) Descriptor() ([]byte, []int) {
- return xxx_File_proto2_nested_messages_proto_rawDescGZIP(), []int{0}
+ return file_proto2_nested_messages_proto_rawDescGZIP(), []int{0}
}
func (x *Layer1) GetL2() *Layer1_Layer2 {
@@ -76,16 +76,16 @@
func (*Layer1_Layer2) ProtoMessage() {}
func (x *Layer1_Layer2) ProtoReflect() protoreflect.Message {
- return xxx_File_proto2_nested_messages_proto_messageTypes[1].MessageOf(x)
+ return file_proto2_nested_messages_proto_msgTypes[1].MessageOf(x)
}
func (m *Layer1_Layer2) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto2_nested_messages_proto_messageTypes[1].Methods()
+ return file_proto2_nested_messages_proto_msgTypes[1].Methods()
}
// Deprecated: Use Layer1_Layer2.ProtoReflect.Type instead.
func (*Layer1_Layer2) Descriptor() ([]byte, []int) {
- return xxx_File_proto2_nested_messages_proto_rawDescGZIP(), []int{0, 0}
+ return file_proto2_nested_messages_proto_rawDescGZIP(), []int{0, 0}
}
func (x *Layer1_Layer2) GetL3() *Layer1_Layer2_Layer3 {
@@ -112,21 +112,21 @@
func (*Layer1_Layer2_Layer3) ProtoMessage() {}
func (x *Layer1_Layer2_Layer3) ProtoReflect() protoreflect.Message {
- return xxx_File_proto2_nested_messages_proto_messageTypes[2].MessageOf(x)
+ return file_proto2_nested_messages_proto_msgTypes[2].MessageOf(x)
}
func (m *Layer1_Layer2_Layer3) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto2_nested_messages_proto_messageTypes[2].Methods()
+ return file_proto2_nested_messages_proto_msgTypes[2].Methods()
}
// Deprecated: Use Layer1_Layer2_Layer3.ProtoReflect.Type instead.
func (*Layer1_Layer2_Layer3) Descriptor() ([]byte, []int) {
- return xxx_File_proto2_nested_messages_proto_rawDescGZIP(), []int{0, 0, 0}
+ return file_proto2_nested_messages_proto_rawDescGZIP(), []int{0, 0, 0}
}
var File_proto2_nested_messages_proto protoreflect.FileDescriptor
-var xxx_File_proto2_nested_messages_proto_rawDesc = []byte{
+var file_proto2_nested_messages_proto_rawDesc = []byte{
0x0a, 0x1c, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x6e, 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f,
0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15,
0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70,
@@ -151,43 +151,43 @@
}
var (
- xxx_File_proto2_nested_messages_proto_rawDesc_once sync.Once
- xxx_File_proto2_nested_messages_proto_rawDesc_data = xxx_File_proto2_nested_messages_proto_rawDesc
+ file_proto2_nested_messages_proto_rawDescOnce sync.Once
+ file_proto2_nested_messages_proto_rawDescData = file_proto2_nested_messages_proto_rawDesc
)
-func xxx_File_proto2_nested_messages_proto_rawDescGZIP() []byte {
- xxx_File_proto2_nested_messages_proto_rawDesc_once.Do(func() {
- xxx_File_proto2_nested_messages_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_proto2_nested_messages_proto_rawDesc_data)
+func file_proto2_nested_messages_proto_rawDescGZIP() []byte {
+ file_proto2_nested_messages_proto_rawDescOnce.Do(func() {
+ file_proto2_nested_messages_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_nested_messages_proto_rawDescData)
})
- return xxx_File_proto2_nested_messages_proto_rawDesc_data
+ return file_proto2_nested_messages_proto_rawDescData
}
-var xxx_File_proto2_nested_messages_proto_messageTypes = make([]protoimpl.MessageType, 3)
-var xxx_File_proto2_nested_messages_proto_goTypes = []interface{}{
+var file_proto2_nested_messages_proto_msgTypes = make([]protoimpl.MessageType, 3)
+var file_proto2_nested_messages_proto_goTypes = []interface{}{
(*Layer1)(nil), // 0: goproto.protoc.proto2.Layer1
(*Layer1_Layer2)(nil), // 1: goproto.protoc.proto2.Layer1.Layer2
(*Layer1_Layer2_Layer3)(nil), // 2: goproto.protoc.proto2.Layer1.Layer2.Layer3
}
-var xxx_File_proto2_nested_messages_proto_depIdxs = []int32{
+var file_proto2_nested_messages_proto_depIdxs = []int32{
1, // goproto.protoc.proto2.Layer1.l2:type_name -> goproto.protoc.proto2.Layer1.Layer2
2, // goproto.protoc.proto2.Layer1.l3:type_name -> goproto.protoc.proto2.Layer1.Layer2.Layer3
2, // goproto.protoc.proto2.Layer1.Layer2.l3:type_name -> goproto.protoc.proto2.Layer1.Layer2.Layer3
}
-func init() { xxx_File_proto2_nested_messages_proto_init() }
-func xxx_File_proto2_nested_messages_proto_init() {
+func init() { file_proto2_nested_messages_proto_init() }
+func file_proto2_nested_messages_proto_init() {
if File_proto2_nested_messages_proto != nil {
return
}
File_proto2_nested_messages_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_proto2_nested_messages_proto_rawDesc,
- GoTypes: xxx_File_proto2_nested_messages_proto_goTypes,
- DependencyIndexes: xxx_File_proto2_nested_messages_proto_depIdxs,
- MessageOutputTypes: xxx_File_proto2_nested_messages_proto_messageTypes,
+ RawDescriptor: file_proto2_nested_messages_proto_rawDesc,
+ GoTypes: file_proto2_nested_messages_proto_goTypes,
+ DependencyIndexes: file_proto2_nested_messages_proto_depIdxs,
+ MessageOutputTypes: file_proto2_nested_messages_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_proto2_nested_messages_proto_rawDesc = nil
- xxx_File_proto2_nested_messages_proto_goTypes = nil
- xxx_File_proto2_nested_messages_proto_depIdxs = nil
+ file_proto2_nested_messages_proto_rawDesc = nil
+ file_proto2_nested_messages_proto_goTypes = nil
+ file_proto2_nested_messages_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/proto2/proto2.pb.go b/cmd/protoc-gen-go/testdata/proto2/proto2.pb.go
index fa6458d..7001b59 100644
--- a/cmd/protoc-gen-go/testdata/proto2/proto2.pb.go
+++ b/cmd/protoc-gen-go/testdata/proto2/proto2.pb.go
@@ -32,16 +32,16 @@
func (*Message) ProtoMessage() {}
func (x *Message) ProtoReflect() protoreflect.Message {
- return xxx_File_proto2_proto2_proto_messageTypes[0].MessageOf(x)
+ return file_proto2_proto2_proto_msgTypes[0].MessageOf(x)
}
func (m *Message) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto2_proto2_proto_messageTypes[0].Methods()
+ return file_proto2_proto2_proto_msgTypes[0].Methods()
}
// Deprecated: Use Message.ProtoReflect.Type instead.
func (*Message) Descriptor() ([]byte, []int) {
- return xxx_File_proto2_proto2_proto_rawDescGZIP(), []int{0}
+ return file_proto2_proto2_proto_rawDescGZIP(), []int{0}
}
func (x *Message) GetI32() int32 {
@@ -60,7 +60,7 @@
var File_proto2_proto2_proto protoreflect.FileDescriptor
-var xxx_File_proto2_proto2_proto_rawDesc = []byte{
+var file_proto2_proto2_proto_rawDesc = []byte{
0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x22, 0x49, 0x0a, 0x07,
@@ -76,39 +76,39 @@
}
var (
- xxx_File_proto2_proto2_proto_rawDesc_once sync.Once
- xxx_File_proto2_proto2_proto_rawDesc_data = xxx_File_proto2_proto2_proto_rawDesc
+ file_proto2_proto2_proto_rawDescOnce sync.Once
+ file_proto2_proto2_proto_rawDescData = file_proto2_proto2_proto_rawDesc
)
-func xxx_File_proto2_proto2_proto_rawDescGZIP() []byte {
- xxx_File_proto2_proto2_proto_rawDesc_once.Do(func() {
- xxx_File_proto2_proto2_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_proto2_proto2_proto_rawDesc_data)
+func file_proto2_proto2_proto_rawDescGZIP() []byte {
+ file_proto2_proto2_proto_rawDescOnce.Do(func() {
+ file_proto2_proto2_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto2_proto2_proto_rawDescData)
})
- return xxx_File_proto2_proto2_proto_rawDesc_data
+ return file_proto2_proto2_proto_rawDescData
}
-var xxx_File_proto2_proto2_proto_messageTypes = make([]protoimpl.MessageType, 1)
-var xxx_File_proto2_proto2_proto_goTypes = []interface{}{
+var file_proto2_proto2_proto_msgTypes = make([]protoimpl.MessageType, 1)
+var file_proto2_proto2_proto_goTypes = []interface{}{
(*Message)(nil), // 0: goproto.protoc.proto2.Message
}
-var xxx_File_proto2_proto2_proto_depIdxs = []int32{
+var file_proto2_proto2_proto_depIdxs = []int32{
0, // goproto.protoc.proto2.Message.m:type_name -> goproto.protoc.proto2.Message
}
-func init() { xxx_File_proto2_proto2_proto_init() }
-func xxx_File_proto2_proto2_proto_init() {
+func init() { file_proto2_proto2_proto_init() }
+func file_proto2_proto2_proto_init() {
if File_proto2_proto2_proto != nil {
return
}
File_proto2_proto2_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_proto2_proto2_proto_rawDesc,
- GoTypes: xxx_File_proto2_proto2_proto_goTypes,
- DependencyIndexes: xxx_File_proto2_proto2_proto_depIdxs,
- MessageOutputTypes: xxx_File_proto2_proto2_proto_messageTypes,
+ RawDescriptor: file_proto2_proto2_proto_rawDesc,
+ GoTypes: file_proto2_proto2_proto_goTypes,
+ DependencyIndexes: file_proto2_proto2_proto_depIdxs,
+ MessageOutputTypes: file_proto2_proto2_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_proto2_proto2_proto_rawDesc = nil
- xxx_File_proto2_proto2_proto_goTypes = nil
- xxx_File_proto2_proto2_proto_depIdxs = nil
+ file_proto2_proto2_proto_rawDesc = nil
+ file_proto2_proto2_proto_goTypes = nil
+ file_proto2_proto2_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/proto3/enum.pb.go b/cmd/protoc-gen-go/testdata/proto3/enum.pb.go
index 2cfa3a7..629ecd2 100644
--- a/cmd/protoc-gen-go/testdata/proto3/enum.pb.go
+++ b/cmd/protoc-gen-go/testdata/proto3/enum.pb.go
@@ -39,7 +39,7 @@
}
func (Enum) Type() protoreflect.EnumType {
- return xxx_File_proto3_enum_proto_enumTypes[0]
+ return file_proto3_enum_proto_enumTypes[0]
}
func (x Enum) Number() protoreflect.EnumNumber {
@@ -48,12 +48,12 @@
// Deprecated: Use Enum.Type instead.
func (Enum) EnumDescriptor() ([]byte, []int) {
- return xxx_File_proto3_enum_proto_rawDescGZIP(), []int{0}
+ return file_proto3_enum_proto_rawDescGZIP(), []int{0}
}
var File_proto3_enum_proto protoreflect.FileDescriptor
-var xxx_File_proto3_enum_proto_rawDesc = []byte{
+var file_proto3_enum_proto_rawDesc = []byte{
0x0a, 0x11, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2a, 0x22, 0x0a, 0x04, 0x45, 0x6e,
@@ -67,37 +67,37 @@
}
var (
- xxx_File_proto3_enum_proto_rawDesc_once sync.Once
- xxx_File_proto3_enum_proto_rawDesc_data = xxx_File_proto3_enum_proto_rawDesc
+ file_proto3_enum_proto_rawDescOnce sync.Once
+ file_proto3_enum_proto_rawDescData = file_proto3_enum_proto_rawDesc
)
-func xxx_File_proto3_enum_proto_rawDescGZIP() []byte {
- xxx_File_proto3_enum_proto_rawDesc_once.Do(func() {
- xxx_File_proto3_enum_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_proto3_enum_proto_rawDesc_data)
+func file_proto3_enum_proto_rawDescGZIP() []byte {
+ file_proto3_enum_proto_rawDescOnce.Do(func() {
+ file_proto3_enum_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto3_enum_proto_rawDescData)
})
- return xxx_File_proto3_enum_proto_rawDesc_data
+ return file_proto3_enum_proto_rawDescData
}
-var xxx_File_proto3_enum_proto_enumTypes = make([]protoreflect.EnumType, 1)
-var xxx_File_proto3_enum_proto_goTypes = []interface{}{
+var file_proto3_enum_proto_enumTypes = make([]protoreflect.EnumType, 1)
+var file_proto3_enum_proto_goTypes = []interface{}{
(Enum)(0), // 0: goproto.protoc.proto3.Enum
}
-var xxx_File_proto3_enum_proto_depIdxs = []int32{}
+var file_proto3_enum_proto_depIdxs = []int32{}
-func init() { xxx_File_proto3_enum_proto_init() }
-func xxx_File_proto3_enum_proto_init() {
+func init() { file_proto3_enum_proto_init() }
+func file_proto3_enum_proto_init() {
if File_proto3_enum_proto != nil {
return
}
File_proto3_enum_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_proto3_enum_proto_rawDesc,
- GoTypes: xxx_File_proto3_enum_proto_goTypes,
- DependencyIndexes: xxx_File_proto3_enum_proto_depIdxs,
- EnumOutputTypes: xxx_File_proto3_enum_proto_enumTypes,
+ RawDescriptor: file_proto3_enum_proto_rawDesc,
+ GoTypes: file_proto3_enum_proto_goTypes,
+ DependencyIndexes: file_proto3_enum_proto_depIdxs,
+ EnumOutputTypes: file_proto3_enum_proto_enumTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_proto3_enum_proto_rawDesc = nil
- xxx_File_proto3_enum_proto_goTypes = nil
- xxx_File_proto3_enum_proto_depIdxs = nil
+ file_proto3_enum_proto_rawDesc = nil
+ file_proto3_enum_proto_goTypes = nil
+ file_proto3_enum_proto_depIdxs = nil
}
diff --git a/cmd/protoc-gen-go/testdata/proto3/fields.pb.go b/cmd/protoc-gen-go/testdata/proto3/fields.pb.go
index 058ada4..f62795e 100644
--- a/cmd/protoc-gen-go/testdata/proto3/fields.pb.go
+++ b/cmd/protoc-gen-go/testdata/proto3/fields.pb.go
@@ -34,7 +34,7 @@
}
func (FieldTestMessage_Enum) Type() protoreflect.EnumType {
- return xxx_File_proto3_fields_proto_enumTypes[0]
+ return file_proto3_fields_proto_enumTypes[0]
}
func (x FieldTestMessage_Enum) Number() protoreflect.EnumNumber {
@@ -43,7 +43,7 @@
// Deprecated: Use FieldTestMessage_Enum.Type instead.
func (FieldTestMessage_Enum) EnumDescriptor() ([]byte, []int) {
- return xxx_File_proto3_fields_proto_rawDescGZIP(), []int{0, 0}
+ return file_proto3_fields_proto_rawDescGZIP(), []int{0, 0}
}
type FieldTestMessage struct {
@@ -100,16 +100,16 @@
func (*FieldTestMessage) ProtoMessage() {}
func (x *FieldTestMessage) ProtoReflect() protoreflect.Message {
- return xxx_File_proto3_fields_proto_messageTypes[0].MessageOf(x)
+ return file_proto3_fields_proto_msgTypes[0].MessageOf(x)
}
func (m *FieldTestMessage) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto3_fields_proto_messageTypes[0].Methods()
+ return file_proto3_fields_proto_msgTypes[0].Methods()
}
// Deprecated: Use FieldTestMessage.ProtoReflect.Type instead.
func (*FieldTestMessage) Descriptor() ([]byte, []int) {
- return xxx_File_proto3_fields_proto_rawDescGZIP(), []int{0}
+ return file_proto3_fields_proto_rawDescGZIP(), []int{0}
}
func (x *FieldTestMessage) GetOptionalBool() string {
@@ -388,21 +388,21 @@
func (*FieldTestMessage_Message) ProtoMessage() {}
func (x *FieldTestMessage_Message) ProtoReflect() protoreflect.Message {
- return xxx_File_proto3_fields_proto_messageTypes[4].MessageOf(x)
+ return file_proto3_fields_proto_msgTypes[4].MessageOf(x)
}
func (m *FieldTestMessage_Message) XXX_Methods() *protoiface.Methods {
- return xxx_File_proto3_fields_proto_messageTypes[4].Methods()
+ return file_proto3_fields_proto_msgTypes[4].Methods()
}
// Deprecated: Use FieldTestMessage_Message.ProtoReflect.Type instead.
func (*FieldTestMessage_Message) Descriptor() ([]byte, []int) {
- return xxx_File_proto3_fields_proto_rawDescGZIP(), []int{0, 3}
+ return file_proto3_fields_proto_rawDescGZIP(), []int{0, 3}
}
var File_proto3_fields_proto protoreflect.FileDescriptor
-var xxx_File_proto3_fields_proto_rawDesc = []byte{
+var file_proto3_fields_proto_rawDesc = []byte{
0x0a, 0x13, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x22, 0xd0, 0x11, 0x0a,
@@ -555,20 +555,20 @@
}
var (
- xxx_File_proto3_fields_proto_rawDesc_once sync.Once
- xxx_File_proto3_fields_proto_rawDesc_data = xxx_File_proto3_fields_proto_rawDesc
+ file_proto3_fields_proto_rawDescOnce sync.Once
+ file_proto3_fields_proto_rawDescData = file_proto3_fields_proto_rawDesc
)
-func xxx_File_proto3_fields_proto_rawDescGZIP() []byte {
- xxx_File_proto3_fields_proto_rawDesc_once.Do(func() {
- xxx_File_proto3_fields_proto_rawDesc_data = protoimpl.X.CompressGZIP(xxx_File_proto3_fields_proto_rawDesc_data)
+func file_proto3_fields_proto_rawDescGZIP() []byte {
+ file_proto3_fields_proto_rawDescOnce.Do(func() {
+ file_proto3_fields_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto3_fields_proto_rawDescData)
})
- return xxx_File_proto3_fields_proto_rawDesc_data
+ return file_proto3_fields_proto_rawDescData
}
-var xxx_File_proto3_fields_proto_enumTypes = make([]protoreflect.EnumType, 1)
-var xxx_File_proto3_fields_proto_messageTypes = make([]protoimpl.MessageType, 5)
-var xxx_File_proto3_fields_proto_goTypes = []interface{}{
+var file_proto3_fields_proto_enumTypes = make([]protoreflect.EnumType, 1)
+var file_proto3_fields_proto_msgTypes = make([]protoimpl.MessageType, 5)
+var file_proto3_fields_proto_goTypes = []interface{}{
(FieldTestMessage_Enum)(0), // 0: goproto.protoc.proto3.FieldTestMessage.Enum
(*FieldTestMessage)(nil), // 1: goproto.protoc.proto3.FieldTestMessage
nil, // 2: goproto.protoc.proto3.FieldTestMessage.MapInt32Int64Entry
@@ -576,7 +576,7 @@
nil, // 4: goproto.protoc.proto3.FieldTestMessage.MapFixed64EnumEntry
(*FieldTestMessage_Message)(nil), // 5: goproto.protoc.proto3.FieldTestMessage.Message
}
-var xxx_File_proto3_fields_proto_depIdxs = []int32{
+var file_proto3_fields_proto_depIdxs = []int32{
0, // goproto.protoc.proto3.FieldTestMessage.optional_enum:type_name -> goproto.protoc.proto3.FieldTestMessage.Enum
5, // goproto.protoc.proto3.FieldTestMessage.optional_Message:type_name -> goproto.protoc.proto3.FieldTestMessage.Message
0, // goproto.protoc.proto3.FieldTestMessage.repeated_enum:type_name -> goproto.protoc.proto3.FieldTestMessage.Enum
@@ -588,21 +588,21 @@
0, // goproto.protoc.proto3.FieldTestMessage.MapFixed64EnumEntry.value:type_name -> goproto.protoc.proto3.FieldTestMessage.Enum
}
-func init() { xxx_File_proto3_fields_proto_init() }
-func xxx_File_proto3_fields_proto_init() {
+func init() { file_proto3_fields_proto_init() }
+func file_proto3_fields_proto_init() {
if File_proto3_fields_proto != nil {
return
}
File_proto3_fields_proto = protoimpl.FileBuilder{
- RawDescriptor: xxx_File_proto3_fields_proto_rawDesc,
- GoTypes: xxx_File_proto3_fields_proto_goTypes,
- DependencyIndexes: xxx_File_proto3_fields_proto_depIdxs,
- EnumOutputTypes: xxx_File_proto3_fields_proto_enumTypes,
- MessageOutputTypes: xxx_File_proto3_fields_proto_messageTypes,
+ RawDescriptor: file_proto3_fields_proto_rawDesc,
+ GoTypes: file_proto3_fields_proto_goTypes,
+ DependencyIndexes: file_proto3_fields_proto_depIdxs,
+ EnumOutputTypes: file_proto3_fields_proto_enumTypes,
+ MessageOutputTypes: file_proto3_fields_proto_msgTypes,
FilesRegistry: protoregistry.GlobalFiles,
TypesRegistry: protoregistry.GlobalTypes,
}.Init()
- xxx_File_proto3_fields_proto_rawDesc = nil
- xxx_File_proto3_fields_proto_goTypes = nil
- xxx_File_proto3_fields_proto_depIdxs = nil
+ file_proto3_fields_proto_rawDesc = nil
+ file_proto3_fields_proto_goTypes = nil
+ file_proto3_fields_proto_depIdxs = nil
}