mirror of
https://github.com/protocolbuffers/protobuf-go.git
synced 2025-03-08 19:14:05 +00:00
all: replace interface{} by any now that we are on Go 1.21
I generated this change using: % sed -i 's,interface{},any,g' **/*.go % git checkout -- **/*.pb.go % $EDITOR cmd/protoc-gen-go/internal_gengo/well_known_types.go % ./regenerate.bash Change-Id: I728f4b69c87ffc8f3b19bf807bf9bf1479bdbab4 Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/585735 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Lasse Folger <lassefolger@google.com>
This commit is contained in:
parent
0e932930c8
commit
cbc3dd69c1
@ -132,7 +132,7 @@ func genReflectFileDescriptor(gen *protogen.Plugin, g *protogen.GeneratedFile, f
|
||||
panic("too many dependencies") // sanity check
|
||||
}
|
||||
|
||||
g.P("var ", goTypesVarName(f), " = []interface{}{")
|
||||
g.P("var ", goTypesVarName(f), " = []any{")
|
||||
for _, s := range goTypes {
|
||||
g.P(s)
|
||||
}
|
||||
@ -170,7 +170,7 @@ func genReflectFileDescriptor(gen *protogen.Plugin, g *protogen.GeneratedFile, f
|
||||
idx := f.allMessagesByPtr[message]
|
||||
typesVar := messageTypesVarName(f)
|
||||
|
||||
g.P(typesVar, "[", idx, "].Exporter = func(v interface{}, i int) interface{} {")
|
||||
g.P(typesVar, "[", idx, "].Exporter = func(v any, i int) any {")
|
||||
g.P("switch v := v.(*", message.GoIdent, "); i {")
|
||||
for i := 0; i < sf.count; i++ {
|
||||
if name := sf.unexported[i]; name != "" {
|
||||
@ -191,7 +191,7 @@ func genReflectFileDescriptor(gen *protogen.Plugin, g *protogen.GeneratedFile, f
|
||||
typesVar := messageTypesVarName(f)
|
||||
|
||||
// Associate the wrapper types by directly passing them to the MessageInfo.
|
||||
g.P(typesVar, "[", idx, "].OneofWrappers = []interface{} {")
|
||||
g.P(typesVar, "[", idx, "].OneofWrappers = []any {")
|
||||
for _, oneof := range message.Oneofs {
|
||||
if !oneof.Desc.IsSynthetic() {
|
||||
for _, field := range oneof.Fields {
|
||||
|
@ -213,11 +213,11 @@ func genPackageKnownComment(f *fileInfo) protogen.Comments {
|
||||
The standard Go "encoding/json" package has functionality to serialize
|
||||
arbitrary types to a large degree. The Value.AsInterface, Struct.AsMap, and
|
||||
ListValue.AsSlice methods can convert the protobuf message representation into
|
||||
a form represented by interface{}, map[string]interface{}, and []interface{}.
|
||||
a form represented by any, map[string]any, and []any.
|
||||
This form can be used with other packages that operate on such data structures
|
||||
and also directly with the standard json package.
|
||||
|
||||
In order to convert the interface{}, map[string]interface{}, and []interface{}
|
||||
In order to convert the any, map[string]any, and []any
|
||||
forms back as Value, Struct, and ListValue messages, use the NewStruct,
|
||||
NewList, and NewValue constructor functions.
|
||||
|
||||
@ -252,28 +252,28 @@ func genPackageKnownComment(f *fileInfo) protogen.Comments {
|
||||
|
||||
To construct a Value message representing the above JSON object:
|
||||
|
||||
m, err := structpb.NewValue(map[string]interface{}{
|
||||
m, err := structpb.NewValue(map[string]any{
|
||||
"firstName": "John",
|
||||
"lastName": "Smith",
|
||||
"isAlive": true,
|
||||
"age": 27,
|
||||
"address": map[string]interface{}{
|
||||
"address": map[string]any{
|
||||
"streetAddress": "21 2nd Street",
|
||||
"city": "New York",
|
||||
"state": "NY",
|
||||
"postalCode": "10021-3100",
|
||||
},
|
||||
"phoneNumbers": []interface{}{
|
||||
map[string]interface{}{
|
||||
"phoneNumbers": []any{
|
||||
map[string]any{
|
||||
"type": "home",
|
||||
"number": "212 555-1234",
|
||||
},
|
||||
map[string]interface{}{
|
||||
map[string]any{
|
||||
"type": "office",
|
||||
"number": "646 555-4567",
|
||||
},
|
||||
},
|
||||
"children": []interface{}{},
|
||||
"children": []any{},
|
||||
"spouse": nil,
|
||||
})
|
||||
if err != nil {
|
||||
@ -634,7 +634,7 @@ func genMessageKnownFunctions(g *protogen.GeneratedFile, f *fileInfo, m *message
|
||||
g.P("// NewStruct constructs a Struct from a general-purpose Go map.")
|
||||
g.P("// The map keys must be valid UTF-8.")
|
||||
g.P("// The map values are converted using NewValue.")
|
||||
g.P("func NewStruct(v map[string]interface{}) (*Struct, error) {")
|
||||
g.P("func NewStruct(v map[string]any) (*Struct, error) {")
|
||||
g.P(" x := &Struct{Fields: make(map[string]*Value, len(v))}")
|
||||
g.P(" for k, v := range v {")
|
||||
g.P(" if !", utf8Package.Ident("ValidString"), "(k) {")
|
||||
@ -652,9 +652,9 @@ func genMessageKnownFunctions(g *protogen.GeneratedFile, f *fileInfo, m *message
|
||||
|
||||
g.P("// AsMap converts x to a general-purpose Go map.")
|
||||
g.P("// The map values are converted by calling Value.AsInterface.")
|
||||
g.P("func (x *Struct) AsMap() map[string]interface{} {")
|
||||
g.P("func (x *Struct) AsMap() map[string]any {")
|
||||
g.P(" f := x.GetFields()")
|
||||
g.P(" vs := make(map[string]interface{}, len(f))")
|
||||
g.P(" vs := make(map[string]any, len(f))")
|
||||
g.P(" for k, v := range f {")
|
||||
g.P(" vs[k] = v.AsInterface()")
|
||||
g.P(" }")
|
||||
@ -675,7 +675,7 @@ func genMessageKnownFunctions(g *protogen.GeneratedFile, f *fileInfo, m *message
|
||||
case genid.ListValue_message_fullname:
|
||||
g.P("// NewList constructs a ListValue from a general-purpose Go slice.")
|
||||
g.P("// The slice elements are converted using NewValue.")
|
||||
g.P("func NewList(v []interface{}) (*ListValue, error) {")
|
||||
g.P("func NewList(v []any) (*ListValue, error) {")
|
||||
g.P(" x := &ListValue{Values: make([]*Value, len(v))}")
|
||||
g.P(" for i, v := range v {")
|
||||
g.P(" var err error")
|
||||
@ -690,9 +690,9 @@ func genMessageKnownFunctions(g *protogen.GeneratedFile, f *fileInfo, m *message
|
||||
|
||||
g.P("// AsSlice converts x to a general-purpose Go slice.")
|
||||
g.P("// The slice elements are converted by calling Value.AsInterface.")
|
||||
g.P("func (x *ListValue) AsSlice() []interface{} {")
|
||||
g.P("func (x *ListValue) AsSlice() []any {")
|
||||
g.P(" vals := x.GetValues()")
|
||||
g.P(" vs := make([]interface{}, len(vals))")
|
||||
g.P(" vs := make([]any, len(vals))")
|
||||
g.P(" for i, v := range vals {")
|
||||
g.P(" vs[i] = v.AsInterface()")
|
||||
g.P(" }")
|
||||
@ -723,13 +723,13 @@ func genMessageKnownFunctions(g *protogen.GeneratedFile, f *fileInfo, m *message
|
||||
g.P("// ║ float32, float64 │ stored as NumberValue ║")
|
||||
g.P("// ║ string │ stored as StringValue; must be valid UTF-8 ║")
|
||||
g.P("// ║ []byte │ stored as StringValue; base64-encoded ║")
|
||||
g.P("// ║ map[string]interface{} │ stored as StructValue ║")
|
||||
g.P("// ║ []interface{} │ stored as ListValue ║")
|
||||
g.P("// ║ map[string]any │ stored as StructValue ║")
|
||||
g.P("// ║ []any │ stored as ListValue ║")
|
||||
g.P("// ╚════════════════════════╧════════════════════════════════════════════╝")
|
||||
g.P("//")
|
||||
g.P("// When converting an int64 or uint64 to a NumberValue, numeric precision loss")
|
||||
g.P("// is possible since they are stored as a float64.")
|
||||
g.P("func NewValue(v interface{}) (*Value, error) {")
|
||||
g.P("func NewValue(v any) (*Value, error) {")
|
||||
g.P(" switch v := v.(type) {")
|
||||
g.P(" case nil:")
|
||||
g.P(" return NewNullValue(), nil")
|
||||
@ -759,13 +759,13 @@ func genMessageKnownFunctions(g *protogen.GeneratedFile, f *fileInfo, m *message
|
||||
g.P(" case []byte:")
|
||||
g.P(" s := ", base64Package.Ident("StdEncoding"), ".EncodeToString(v)")
|
||||
g.P(" return NewStringValue(s), nil")
|
||||
g.P(" case map[string]interface{}:")
|
||||
g.P(" case map[string]any:")
|
||||
g.P(" v2, err := NewStruct(v)")
|
||||
g.P(" if err != nil {")
|
||||
g.P(" return nil, err")
|
||||
g.P(" }")
|
||||
g.P(" return NewStructValue(v2), nil")
|
||||
g.P(" case []interface{}:")
|
||||
g.P(" case []any:")
|
||||
g.P(" v2, err := NewList(v)")
|
||||
g.P(" if err != nil {")
|
||||
g.P(" return nil, err")
|
||||
@ -820,7 +820,7 @@ func genMessageKnownFunctions(g *protogen.GeneratedFile, f *fileInfo, m *message
|
||||
g.P("//")
|
||||
g.P("// Floating-point values (i.e., \"NaN\", \"Infinity\", and \"-Infinity\") are")
|
||||
g.P("// converted as strings to remain compatible with MarshalJSON.")
|
||||
g.P("func (x *Value) AsInterface() interface{} {")
|
||||
g.P("func (x *Value) AsInterface() any {")
|
||||
g.P(" switch v := x.GetKind().(type) {")
|
||||
g.P(" case *Value_NumberValue:")
|
||||
g.P(" if v != nil {")
|
||||
|
@ -175,7 +175,7 @@ func file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDescGZIP()
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_goTypes = []any{
|
||||
(AnnotationsTestEnum)(0), // 0: goproto.protoc.annotations.AnnotationsTestEnum
|
||||
(*AnnotationsTestMessage)(nil), // 1: goproto.protoc.annotations.AnnotationsTestMessage
|
||||
}
|
||||
@ -193,7 +193,7 @@ func file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*AnnotationsTestMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -417,7 +417,7 @@ func file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDescGZIP() []byt
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_comments_comments_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||||
var file_cmd_protoc_gen_go_testdata_comments_comments_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_comments_comments_proto_goTypes = []any{
|
||||
(Enum1)(0), // 0: goproto.protoc.comments.Enum1
|
||||
(*Message1)(nil), // 1: goproto.protoc.comments.Message1
|
||||
(*Message2)(nil), // 2: goproto.protoc.comments.Message2
|
||||
@ -442,7 +442,7 @@ func file_cmd_protoc_gen_go_testdata_comments_comments_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -456,7 +456,7 @@ func file_cmd_protoc_gen_go_testdata_comments_comments_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -468,7 +468,7 @@ func file_cmd_protoc_gen_go_testdata_comments_comments_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message1_Message1A); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -480,7 +480,7 @@ func file_cmd_protoc_gen_go_testdata_comments_comments_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message1_Message1B); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -492,7 +492,7 @@ func file_cmd_protoc_gen_go_testdata_comments_comments_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message2_Message2A); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -504,7 +504,7 @@ func file_cmd_protoc_gen_go_testdata_comments_comments_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message2_Message2B); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -517,7 +517,7 @@ func file_cmd_protoc_gen_go_testdata_comments_comments_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*Message1_Oneof1AField1)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
|
@ -145,7 +145,7 @@ func file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDescGZIP() []b
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_goTypes = []any{
|
||||
(DeprecatedEnum)(0), // 0: goproto.protoc.comments.DeprecatedEnum
|
||||
(*DeprecatedMessage)(nil), // 1: goproto.protoc.comments.DeprecatedMessage
|
||||
}
|
||||
@ -163,7 +163,7 @@ func file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*DeprecatedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -136,7 +136,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDescGZIP() []
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_goTypes = []any{
|
||||
(*BaseMessage)(nil), // 0: goproto.protoc.extension.base.BaseMessage
|
||||
(*MessageSetWireFormatMessage)(nil), // 1: goproto.protoc.extension.base.MessageSetWireFormatMessage
|
||||
}
|
||||
@ -154,7 +154,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*BaseMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -168,7 +168,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*MessageSetWireFormatMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -1196,7 +1196,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_rawDescGZIP() []by
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_goTypes = []any{
|
||||
(Enum)(0), // 0: goproto.protoc.extension.ext.Enum
|
||||
(*Message)(nil), // 1: goproto.protoc.extension.ext.Message
|
||||
(*ExtensionGroup)(nil), // 2: goproto.protoc.extension.ext.ExtensionGroup
|
||||
@ -1280,7 +1280,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1292,7 +1292,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ExtensionGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1304,7 +1304,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ExtendingMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1316,7 +1316,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*RepeatedGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1328,7 +1328,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Extendable); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1342,7 +1342,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*MessageSetWireFormatExtension); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1354,7 +1354,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message_M); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1366,7 +1366,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ExtendingMessage_ExtendingMessageSubmessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -92,7 +92,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDescGZIP()
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_goTypes = []any{
|
||||
(*ExtraMessage)(nil), // 0: goproto.protoc.extension.extra.ExtraMessage
|
||||
}
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_depIdxs = []int32{
|
||||
@ -109,7 +109,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ExtraMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -669,7 +669,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_rawDescGZIP()
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_goTypes = []any{
|
||||
(Enum)(0), // 0: goproto.protoc.extension.proto3.Enum
|
||||
(*Message)(nil), // 1: goproto.protoc.extension.proto3.Message
|
||||
(*descriptorpb.MessageOptions)(nil), // 2: google.protobuf.MessageOptions
|
||||
@ -726,7 +726,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -388,7 +388,7 @@ func file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_rawDescGZIP() [
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_goTypes = []any{
|
||||
(*Message)(nil), // 0: goproto.protoc.fieldnames.Message
|
||||
(*Message_OneofMessageConflict)(nil), // 1: goproto.protoc.fieldnames.Message.OneofMessageConflict
|
||||
}
|
||||
@ -406,7 +406,7 @@ func file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -418,7 +418,7 @@ func file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message_OneofMessageConflict); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -431,7 +431,7 @@ func file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*Message_OneofConflictA)(nil),
|
||||
(*Message_OneofNoConflict)(nil),
|
||||
(*Message_OneofConflictB_)(nil),
|
||||
|
@ -161,7 +161,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDescGZIP() []byte
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_a_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_a_proto_goTypes = []any{
|
||||
(*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
|
||||
@ -185,7 +185,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_a_proto_init() {
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_import_public_b_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Public); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -108,7 +108,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDescGZIP() []byte
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_b_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_b_proto_goTypes = []any{
|
||||
(*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
|
||||
@ -129,7 +129,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_b_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Local); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -113,7 +113,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDescGZIP() []byte
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_c_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_c_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_c_proto_goTypes = []any{
|
||||
(*UsingPublicImport)(nil), // 0: goproto.protoc.import_public.UsingPublicImport
|
||||
(*Local)(nil), // 1: goproto.protoc.import_public.Local
|
||||
(*sub2.Sub2Message)(nil), // 2: goproto.protoc.import_public.sub2.Sub2Message
|
||||
@ -135,7 +135,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_c_proto_init() {
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_import_public_a_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_c_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_c_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*UsingPublicImport); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -473,7 +473,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDescGZIP() []b
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_goTypes = []any{
|
||||
(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
|
||||
@ -498,7 +498,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_init() {
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*M); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -512,7 +512,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*M_Submessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -525,11 +525,11 @@ func file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*M_OneofInt32)(nil),
|
||||
(*M_OneofInt64)(nil),
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1].OneofWrappers = []interface{}{
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1].OneofWrappers = []any{
|
||||
(*M_Submessage_SubmessageOneofInt32)(nil),
|
||||
(*M_Submessage_SubmessageOneofInt64)(nil),
|
||||
}
|
||||
|
@ -81,7 +81,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDescGZIP() []b
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_goTypes = []any{
|
||||
(*M2)(nil), // 0: goproto.protoc.import_public.sub.M2
|
||||
}
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_depIdxs = []int32{
|
||||
@ -98,7 +98,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*M2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -82,7 +82,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_rawDescGZIP() []
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_goTypes = []any{
|
||||
(*Sub2Message)(nil), // 0: goproto.protoc.import_public.sub2.Sub2Message
|
||||
}
|
||||
var file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_depIdxs = []int32{
|
||||
@ -99,7 +99,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Sub2Message); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -79,7 +79,7 @@ func file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_goTypes = []any{
|
||||
(*M)(nil), // 0: fmt.M
|
||||
}
|
||||
var file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_depIdxs = []int32{
|
||||
@ -96,7 +96,7 @@ func file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*M); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -174,7 +174,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDescGZIP() []b
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_goTypes = []any{
|
||||
(E1)(0), // 0: test.a.E1
|
||||
(*M1)(nil), // 1: test.a.M1
|
||||
(*M1_1)(nil), // 2: test.a.M1_1
|
||||
@ -194,7 +194,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*M1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -206,7 +206,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*M1_1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -80,7 +80,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_rawDescGZIP() []b
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_goTypes = []any{
|
||||
(*M2)(nil), // 0: test.a.M2
|
||||
}
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_depIdxs = []int32{
|
||||
@ -97,7 +97,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*M2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -80,7 +80,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_rawDescGZIP() []b
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_goTypes = []any{
|
||||
(*M3)(nil), // 0: test.a.M3
|
||||
}
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_depIdxs = []int32{
|
||||
@ -97,7 +97,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*M3); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -80,7 +80,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_rawDescGZIP() []b
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_goTypes = []any{
|
||||
(*M4)(nil), // 0: test.a.M4
|
||||
}
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_depIdxs = []int32{
|
||||
@ -97,7 +97,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*M4); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -81,7 +81,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_rawDescGZIP() []b
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_goTypes = []any{
|
||||
(*M1)(nil), // 0: test.b.part1.M1
|
||||
}
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_depIdxs = []int32{
|
||||
@ -98,7 +98,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*M1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -81,7 +81,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDescGZIP() []b
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_goTypes = []any{
|
||||
(*M2)(nil), // 0: test.b.part2.M2
|
||||
}
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_depIdxs = []int32{
|
||||
@ -98,7 +98,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*M2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -95,7 +95,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDescGZIP(
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_goTypes = []any{
|
||||
(*A1M1)(nil), // 0: test.A1M1
|
||||
(*test_a_1.M1)(nil), // 1: test.a.M1
|
||||
}
|
||||
@ -114,7 +114,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*A1M1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -95,7 +95,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDescGZIP(
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_goTypes = []any{
|
||||
(*A1M2)(nil), // 0: test.A1M2
|
||||
(*test_a_1.M2)(nil), // 1: test.a.M2
|
||||
}
|
||||
@ -114,7 +114,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*A1M2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -158,7 +158,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDescGZIP()
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_goTypes = []any{
|
||||
(*All)(nil), // 0: test.All
|
||||
(*test_a_1.M1)(nil), // 1: test.a.M1
|
||||
(*test_a_1.M2)(nil), // 2: test.a.M2
|
||||
@ -185,7 +185,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*All); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -112,7 +112,7 @@ func file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_rawDescG
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_goTypes = []any{
|
||||
(*Foo)(nil), // 0: oneoftest.Foo
|
||||
}
|
||||
var file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_depIdxs = []int32{
|
||||
@ -129,7 +129,7 @@ func file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Foo); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -142,7 +142,7 @@ func file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*Foo_GetBar)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
|
@ -157,7 +157,7 @@ func file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_rawDescGZIP() []b
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_goTypes = []any{
|
||||
(Enum)(0), // 0: Enum
|
||||
(*Message)(nil), // 1: Message
|
||||
}
|
||||
@ -176,7 +176,7 @@ func file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
6
cmd/protoc-gen-go/testdata/proto2/enum.pb.go
vendored
6
cmd/protoc-gen-go/testdata/proto2/enum.pb.go
vendored
@ -504,7 +504,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 6)
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_enum_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_enum_proto_goTypes = []any{
|
||||
(EnumType1)(0), // 0: goproto.protoc.proto2.EnumType1
|
||||
(EnumType2)(0), // 1: goproto.protoc.proto2.EnumType2
|
||||
(EnumContainerMessage1_NestedEnumType1A)(0), // 2: goproto.protoc.proto2.EnumContainerMessage1.NestedEnumType1A
|
||||
@ -530,7 +530,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_enum_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*EnumContainerMessage1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -542,7 +542,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_enum_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*EnumContainerMessage1_EnumContainerMessage2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
16
cmd/protoc-gen-go/testdata/proto2/fields.pb.go
vendored
16
cmd/protoc-gen-go/testdata/proto2/fields.pb.go
vendored
@ -1729,7 +1729,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_fields_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_fields_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_fields_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_fields_proto_goTypes = []any{
|
||||
(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
|
||||
@ -1773,7 +1773,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_fields_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1785,7 +1785,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_fields_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage_OptionalGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1797,7 +1797,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_fields_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage_RequiredGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1809,7 +1809,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_fields_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage_RepeatedGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1821,7 +1821,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_fields_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage_OneofGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1833,7 +1833,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_fields_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[8].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage_Message); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1846,7 +1846,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_fields_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*FieldTestMessage_OneofBool)(nil),
|
||||
(*FieldTestMessage_OneofEnum)(nil),
|
||||
(*FieldTestMessage_OneofInt32)(nil),
|
||||
|
@ -194,7 +194,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDescGZIP()
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_goTypes = []any{
|
||||
(*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
|
||||
@ -216,7 +216,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Layer1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -228,7 +228,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Layer1_Layer2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -240,7 +240,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Layer1_Layer2_Layer3); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -101,7 +101,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_goTypes = []any{
|
||||
(*Message)(nil), // 0: goproto.protoc.proto2.Message
|
||||
}
|
||||
var file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_depIdxs = []int32{
|
||||
@ -119,7 +119,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
2
cmd/protoc-gen-go/testdata/proto3/enum.pb.go
vendored
2
cmd/protoc-gen-go/testdata/proto3/enum.pb.go
vendored
@ -93,7 +93,7 @@ func file_cmd_protoc_gen_go_testdata_proto3_enum_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_proto3_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_proto3_enum_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_proto3_enum_proto_goTypes = []any{
|
||||
(Enum)(0), // 0: goproto.protoc.proto3.Enum
|
||||
}
|
||||
var file_cmd_protoc_gen_go_testdata_proto3_enum_proto_depIdxs = []int32{
|
||||
|
@ -600,7 +600,7 @@ func file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_proto3_fields_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
|
||||
var file_cmd_protoc_gen_go_testdata_proto3_fields_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_proto3_fields_proto_goTypes = []any{
|
||||
(FieldTestMessage_Enum)(0), // 0: goproto.protoc.proto3.FieldTestMessage.Enum
|
||||
(*FieldTestMessage)(nil), // 1: goproto.protoc.proto3.FieldTestMessage
|
||||
nil, // 2: goproto.protoc.proto3.FieldTestMessage.MapInt32Int64Entry
|
||||
@ -631,7 +631,7 @@ func file_cmd_protoc_gen_go_testdata_proto3_fields_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -643,7 +643,7 @@ func file_cmd_protoc_gen_go_testdata_proto3_fields_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage_Message); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -513,7 +513,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_rawDescGZIP() []by
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_enumTypes = make([]protoimpl.EnumInfo, 7)
|
||||
var file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_goTypes = []any{
|
||||
(EnumType1)(0), // 0: goproto.protoc.protoeditions.EnumType1
|
||||
(EnumType2)(0), // 1: goproto.protoc.protoeditions.EnumType2
|
||||
(LegacyUnmarshalJSONTest)(0), // 2: goproto.protoc.protoeditions.LegacyUnmarshalJSONTest
|
||||
@ -540,7 +540,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*EnumContainerMessage1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -552,7 +552,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*EnumContainerMessage1_EnumContainerMessage2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -1738,7 +1738,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDescGZIP() []
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_goTypes = []any{
|
||||
(FieldTestMessage_Enum)(0), // 0: goproto.protoc.protoeditions.FieldTestMessage.Enum
|
||||
(*FieldTestMessage)(nil), // 1: goproto.protoc.protoeditions.FieldTestMessage
|
||||
(*FieldTestMessage_OptionalGroup)(nil), // 2: goproto.protoc.protoeditions.FieldTestMessage.OptionalGroup
|
||||
@ -1782,7 +1782,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1794,7 +1794,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage_OptionalGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1806,7 +1806,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage_RequiredGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1818,7 +1818,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage_RepeatedGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1830,7 +1830,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage_OneofGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1842,7 +1842,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[8].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FieldTestMessage_Message); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1855,7 +1855,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*FieldTestMessage_OneofBool)(nil),
|
||||
(*FieldTestMessage_OneofEnum)(nil),
|
||||
(*FieldTestMessage_OneofInt32)(nil),
|
||||
|
@ -198,7 +198,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_goTypes = []any{
|
||||
(*Layer1)(nil), // 0: goproto.protoc.protoeditions.Layer1
|
||||
(*Layer1_Layer2)(nil), // 1: goproto.protoc.protoeditions.Layer1.Layer2
|
||||
(*Layer1_Layer2_Layer3)(nil), // 2: goproto.protoc.protoeditions.Layer1.Layer2.Layer3
|
||||
@ -220,7 +220,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_init()
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Layer1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -232,7 +232,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_init()
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Layer1_Layer2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -244,7 +244,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_init()
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Layer1_Layer2_Layer3); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -192,7 +192,7 @@ func file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDescGZIP
|
||||
}
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_retention_options_message_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_cmd_protoc_gen_go_testdata_retention_options_message_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_retention_options_message_proto_goTypes = []any{
|
||||
(*OptionsMessage)(nil), // 0: testretention.OptionsMessage
|
||||
(*descriptorpb.FileOptions)(nil), // 1: google.protobuf.FileOptions
|
||||
}
|
||||
@ -215,7 +215,7 @@ func file_cmd_protoc_gen_go_testdata_retention_options_message_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_retention_options_message_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_retention_options_message_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*OptionsMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -601,7 +601,7 @@ func file_cmd_protoc_gen_go_testdata_retention_retention_proto_rawDescGZIP() []b
|
||||
|
||||
var file_cmd_protoc_gen_go_testdata_retention_retention_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||
var file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_cmd_protoc_gen_go_testdata_retention_retention_proto_goTypes = []interface{}{
|
||||
var file_cmd_protoc_gen_go_testdata_retention_retention_proto_goTypes = []any{
|
||||
(TopLevelEnum)(0), // 0: testretention.TopLevelEnum
|
||||
(TopLevelMessage_NestedEnum)(0), // 1: testretention.TopLevelMessage.NestedEnum
|
||||
(*Extendee)(nil), // 2: testretention.Extendee
|
||||
@ -658,7 +658,7 @@ func file_cmd_protoc_gen_go_testdata_retention_retention_proto_init() {
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_retention_options_message_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Extendee); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -672,7 +672,7 @@ func file_cmd_protoc_gen_go_testdata_retention_retention_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TopLevelMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -686,7 +686,7 @@ func file_cmd_protoc_gen_go_testdata_retention_retention_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TopLevelMessage_NestedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -699,7 +699,7 @@ func file_cmd_protoc_gen_go_testdata_retention_retention_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[1].OneofWrappers = []interface{}{
|
||||
file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[1].OneofWrappers = []any{
|
||||
(*TopLevelMessage_I)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
|
@ -955,7 +955,7 @@ func (gen *Plugin) NewGeneratedFile(filename string, goImportPath GoImportPath)
|
||||
// P prints a line to the generated output. It converts each parameter to a
|
||||
// string following the same rules as [fmt.Print]. It never inserts spaces
|
||||
// between parameters.
|
||||
func (g *GeneratedFile) P(v ...interface{}) {
|
||||
func (g *GeneratedFile) P(v ...any) {
|
||||
for _, x := range v {
|
||||
switch x := x.(type) {
|
||||
case GoIdent:
|
||||
|
@ -102,7 +102,7 @@ type decoder struct {
|
||||
}
|
||||
|
||||
// newError returns an error object with position info.
|
||||
func (d decoder) newError(pos int, f string, x ...interface{}) error {
|
||||
func (d decoder) newError(pos int, f string, x ...any) error {
|
||||
line, column := d.Position(pos)
|
||||
head := fmt.Sprintf("(line %d:%d): ", line, column)
|
||||
return errors.New(head+f, x...)
|
||||
@ -114,7 +114,7 @@ func (d decoder) unexpectedTokenError(tok json.Token) error {
|
||||
}
|
||||
|
||||
// syntaxError returns a syntax error for given position.
|
||||
func (d decoder) syntaxError(pos int, f string, x ...interface{}) error {
|
||||
func (d decoder) syntaxError(pos int, f string, x ...any) error {
|
||||
line, column := d.Position(pos)
|
||||
head := fmt.Sprintf("syntax error (line %d:%d): ", line, column)
|
||||
return errors.New(head+f, x...)
|
||||
|
@ -84,7 +84,7 @@ type decoder struct {
|
||||
}
|
||||
|
||||
// newError returns an error object with position info.
|
||||
func (d decoder) newError(pos int, f string, x ...interface{}) error {
|
||||
func (d decoder) newError(pos int, f string, x ...any) error {
|
||||
line, column := d.Position(pos)
|
||||
head := fmt.Sprintf("(line %d:%d): ", line, column)
|
||||
return errors.New(head+f, x...)
|
||||
@ -96,7 +96,7 @@ func (d decoder) unexpectedTokenError(tok text.Token) error {
|
||||
}
|
||||
|
||||
// syntaxError returns a syntax error for given position.
|
||||
func (d decoder) syntaxError(pos int, f string, x ...interface{}) error {
|
||||
func (d decoder) syntaxError(pos int, f string, x ...any) error {
|
||||
line, column := d.Position(pos)
|
||||
head := fmt.Sprintf("syntax error (line %d:%d): ", line, column)
|
||||
return errors.New(head+f, x...)
|
||||
|
@ -29,7 +29,7 @@ type (
|
||||
}
|
||||
|
||||
// appendOp represents an Append operation.
|
||||
appendOp = interface{}
|
||||
appendOp = any
|
||||
appendTag struct {
|
||||
inNum Number
|
||||
inType Type
|
||||
@ -53,7 +53,7 @@ type (
|
||||
appendRaw []byte
|
||||
|
||||
// consumeOp represents an Consume operation.
|
||||
consumeOp = interface{}
|
||||
consumeOp = any
|
||||
consumeField struct {
|
||||
wantNum Number
|
||||
wantType Type
|
||||
@ -99,7 +99,7 @@ type (
|
||||
wantErr error
|
||||
}
|
||||
|
||||
ops []interface{}
|
||||
ops []any
|
||||
)
|
||||
|
||||
// dhex decodes a hex-string and returns the bytes and panics if s is invalid.
|
||||
|
@ -740,7 +740,7 @@ func (m *{{.}}) Interface() protoreflect.ProtoMessage {
|
||||
return (*messageIfaceWrapper)(m)
|
||||
{{- end -}}
|
||||
}
|
||||
func (m *{{.}}) protoUnwrap() interface{} {
|
||||
func (m *{{.}}) protoUnwrap() any {
|
||||
return m.pointer().AsIfaceOf(m.messageInfo().GoReflectType.Elem())
|
||||
}
|
||||
func (m *{{.}}) ProtoMethods() *protoiface.Methods {
|
||||
|
@ -195,7 +195,7 @@ var descListTypesTemplate = template.Must(template.New("").Parse(`
|
||||
{{- end}}
|
||||
`))
|
||||
|
||||
func mustExecute(t *template.Template, data interface{}) string {
|
||||
func mustExecute(t *template.Template, data any) string {
|
||||
var b bytes.Buffer
|
||||
if err := t.Execute(&b, data); err != nil {
|
||||
panic(err)
|
||||
|
@ -214,7 +214,7 @@ func (d *Decoder) parseNext() (Token, error) {
|
||||
|
||||
// newSyntaxError returns an error with line and column information useful for
|
||||
// syntax errors.
|
||||
func (d *Decoder) newSyntaxError(pos int, f string, x ...interface{}) error {
|
||||
func (d *Decoder) newSyntaxError(pos int, f string, x ...any) error {
|
||||
e := errors.New(f, x...)
|
||||
line, column := d.Position(pos)
|
||||
return errors.New("syntax error (line %d:%d): %v", line, column, e)
|
||||
|
@ -1385,9 +1385,9 @@ func checkToken(t *testing.T, tok json.Token, idx int, r R, in string) {
|
||||
return
|
||||
}
|
||||
|
||||
func errorf(t *testing.T, in string, fmtStr string, args ...interface{}) {
|
||||
func errorf(t *testing.T, in string, fmtStr string, args ...any) {
|
||||
t.Helper()
|
||||
vargs := []interface{}{in}
|
||||
vargs := []any{in}
|
||||
for _, arg := range args {
|
||||
vargs = append(vargs, arg)
|
||||
}
|
||||
|
@ -601,7 +601,7 @@ func (d *Decoder) consumeToken(kind Kind, size int, attrs uint8) Token {
|
||||
|
||||
// newSyntaxError returns a syntax error with line and column information for
|
||||
// current position.
|
||||
func (d *Decoder) newSyntaxError(f string, x ...interface{}) error {
|
||||
func (d *Decoder) newSyntaxError(f string, x ...any) error {
|
||||
e := errors.New(f, x...)
|
||||
line, column := d.Position(len(d.orig) - len(d.in))
|
||||
return errors.New("syntax error (line %d:%d): %v", line, column, e)
|
||||
|
@ -25,7 +25,7 @@ type R struct {
|
||||
// E is expected error substring from calling Decoder.Read if set.
|
||||
E string
|
||||
// T contains NT (if K is Name) or ST (if K is Scalar) or nil (others)
|
||||
T interface{}
|
||||
T any
|
||||
// P is expected Token.Pos if set > 0.
|
||||
P int
|
||||
// RS is expected result from Token.RawString() if not empty.
|
||||
@ -1706,9 +1706,9 @@ func checkToken(t *testing.T, tok text.Token, idx int, r R, in string) {
|
||||
}
|
||||
}
|
||||
|
||||
func errorf(t *testing.T, in string, fmtStr string, args ...interface{}) {
|
||||
func errorf(t *testing.T, in string, fmtStr string, args ...any) {
|
||||
t.Helper()
|
||||
vargs := []interface{}{in}
|
||||
vargs := []any{in}
|
||||
for _, arg := range args {
|
||||
vargs = append(vargs, arg)
|
||||
}
|
||||
|
@ -17,7 +17,7 @@ var Error = errors.New("protobuf error")
|
||||
|
||||
// New formats a string according to the format specifier and arguments and
|
||||
// returns an error that has a "proto" prefix.
|
||||
func New(f string, x ...interface{}) error {
|
||||
func New(f string, x ...any) error {
|
||||
return &prefixError{s: format(f, x...)}
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ func (e *prefixError) Unwrap() error {
|
||||
|
||||
// Wrap returns an error that has a "proto" prefix, the formatted string described
|
||||
// by the format specifier and arguments, and a suffix of err. The error wraps err.
|
||||
func Wrap(err error, f string, x ...interface{}) error {
|
||||
func Wrap(err error, f string, x ...any) error {
|
||||
return &wrapError{
|
||||
s: format(f, x...),
|
||||
err: err,
|
||||
@ -67,7 +67,7 @@ func (e *wrapError) Is(target error) bool {
|
||||
return target == Error
|
||||
}
|
||||
|
||||
func format(f string, x ...interface{}) string {
|
||||
func format(f string, x ...any) string {
|
||||
// avoid "proto: " prefix when chaining
|
||||
for i := 0; i < len(x); i++ {
|
||||
switch e := x[i].(type) {
|
||||
|
@ -534,7 +534,7 @@ func (sd *Service) unmarshalSeed(b []byte, sb *strs.Builder, pf *File, pd protor
|
||||
}
|
||||
|
||||
var nameBuilderPool = sync.Pool{
|
||||
New: func() interface{} { return new(strs.Builder) },
|
||||
New: func() any { return new(strs.Builder) },
|
||||
}
|
||||
|
||||
func getBuilder() *strs.Builder {
|
||||
|
@ -223,7 +223,7 @@ func TestFile(t *testing.T) {
|
||||
func testFileAccessors(t *testing.T, fd protoreflect.FileDescriptor) {
|
||||
// Represent the descriptor as a map where each key is an accessor method
|
||||
// and the value is either the wanted tail value or another accessor map.
|
||||
type M = map[string]interface{}
|
||||
type M = map[string]any
|
||||
want := M{
|
||||
"Parent": nil,
|
||||
"Index": 0,
|
||||
@ -521,7 +521,7 @@ func testFileAccessors(t *testing.T, fd protoreflect.FileDescriptor) {
|
||||
}
|
||||
checkAccessors(t, "", reflect.ValueOf(fd), want)
|
||||
}
|
||||
func checkAccessors(t *testing.T, p string, rv reflect.Value, want map[string]interface{}) {
|
||||
func checkAccessors(t *testing.T, p string, rv reflect.Value, want map[string]any) {
|
||||
p0 := p
|
||||
defer func() {
|
||||
if ex := recover(); ex != nil {
|
||||
@ -566,7 +566,7 @@ func checkAccessors(t *testing.T, p string, rv reflect.Value, want map[string]in
|
||||
}
|
||||
|
||||
// Check that the accessor output matches.
|
||||
if want, ok := v.(map[string]interface{}); ok {
|
||||
if want, ok := v.(map[string]any); ok {
|
||||
checkAccessors(t, p, rets[0], want)
|
||||
continue
|
||||
}
|
||||
@ -811,7 +811,7 @@ func testFileFormat(t *testing.T, fd protoreflect.FileDescriptor) {
|
||||
path string
|
||||
fmt string
|
||||
want string
|
||||
val interface{}
|
||||
val any
|
||||
}{
|
||||
{"fd", "%v", compactMultiFormat(wantFileDescriptor), fd},
|
||||
{"fd", "%+v", wantFileDescriptor, fd},
|
||||
|
@ -68,7 +68,7 @@ type Builder struct {
|
||||
// and for input and output messages referenced by service methods.
|
||||
// Dependencies must come after declarations, but the ordering of
|
||||
// dependencies themselves is unspecified.
|
||||
GoTypes []interface{}
|
||||
GoTypes []any
|
||||
|
||||
// DependencyIndexes is an ordered list of indexes into GoTypes for the
|
||||
// dependencies of messages, extensions, or services.
|
||||
@ -268,7 +268,7 @@ func (x depIdxs) Get(i, j int32) int32 {
|
||||
|
||||
type (
|
||||
resolverByIndex struct {
|
||||
goTypes []interface{}
|
||||
goTypes []any
|
||||
depIdxs depIdxs
|
||||
fileRegistry
|
||||
}
|
||||
|
@ -22,13 +22,13 @@ type Export struct{}
|
||||
|
||||
// NewError formats a string according to the format specifier and arguments and
|
||||
// returns an error that has a "proto" prefix.
|
||||
func (Export) NewError(f string, x ...interface{}) error {
|
||||
func (Export) NewError(f string, x ...any) error {
|
||||
return errors.New(f, x...)
|
||||
}
|
||||
|
||||
// enum is any enum type generated by protoc-gen-go
|
||||
// and must be a named int32 type.
|
||||
type enum = interface{}
|
||||
type enum = any
|
||||
|
||||
// EnumOf returns the protoreflect.Enum interface over e.
|
||||
// It returns nil if e is nil.
|
||||
@ -81,7 +81,7 @@ func (Export) EnumStringOf(ed protoreflect.EnumDescriptor, n protoreflect.EnumNu
|
||||
|
||||
// message is any message type generated by protoc-gen-go
|
||||
// and must be a pointer to a named struct type.
|
||||
type message = interface{}
|
||||
type message = any
|
||||
|
||||
// legacyMessageWrapper wraps a v2 message as a v1 message.
|
||||
type legacyMessageWrapper struct{ m protoreflect.ProtoMessage }
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
// unwrapper unwraps the value to the underlying value.
|
||||
// This is implemented by List and Map.
|
||||
type unwrapper interface {
|
||||
protoUnwrap() interface{}
|
||||
protoUnwrap() any
|
||||
}
|
||||
|
||||
// A Converter coverts to/from Go reflect.Value types and protobuf protoreflect.Value types.
|
||||
|
@ -136,6 +136,6 @@ func (ls *listReflect) NewElement() protoreflect.Value {
|
||||
func (ls *listReflect) IsValid() bool {
|
||||
return !ls.v.IsNil()
|
||||
}
|
||||
func (ls *listReflect) protoUnwrap() interface{} {
|
||||
func (ls *listReflect) protoUnwrap() any {
|
||||
return ls.v.Interface()
|
||||
}
|
||||
|
@ -116,6 +116,6 @@ func (ms *mapReflect) NewValue() protoreflect.Value {
|
||||
func (ms *mapReflect) IsValid() bool {
|
||||
return !ms.v.IsNil()
|
||||
}
|
||||
func (ms *mapReflect) protoUnwrap() interface{} {
|
||||
func (ms *mapReflect) protoUnwrap() any {
|
||||
return ms.v.Interface()
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ type ExtensionInfo struct {
|
||||
// type returned by InterfaceOf may not be identical.
|
||||
//
|
||||
// Deprecated: Use InterfaceOf(xt.Zero()) instead.
|
||||
ExtensionType interface{}
|
||||
ExtensionType any
|
||||
|
||||
// Field is the field number of the extension.
|
||||
//
|
||||
@ -95,16 +95,16 @@ func (xi *ExtensionInfo) New() protoreflect.Value {
|
||||
func (xi *ExtensionInfo) Zero() protoreflect.Value {
|
||||
return xi.lazyInit().Zero()
|
||||
}
|
||||
func (xi *ExtensionInfo) ValueOf(v interface{}) protoreflect.Value {
|
||||
func (xi *ExtensionInfo) ValueOf(v any) protoreflect.Value {
|
||||
return xi.lazyInit().PBValueOf(reflect.ValueOf(v))
|
||||
}
|
||||
func (xi *ExtensionInfo) InterfaceOf(v protoreflect.Value) interface{} {
|
||||
func (xi *ExtensionInfo) InterfaceOf(v protoreflect.Value) any {
|
||||
return xi.lazyInit().GoValueOf(v).Interface()
|
||||
}
|
||||
func (xi *ExtensionInfo) IsValidValue(v protoreflect.Value) bool {
|
||||
return xi.lazyInit().IsValidPB(v)
|
||||
}
|
||||
func (xi *ExtensionInfo) IsValidInterface(v interface{}) bool {
|
||||
func (xi *ExtensionInfo) IsValidInterface(v any) bool {
|
||||
return xi.lazyInit().IsValidGo(reflect.ValueOf(v))
|
||||
}
|
||||
func (xi *ExtensionInfo) TypeDescriptor() protoreflect.ExtensionTypeDescriptor {
|
||||
|
@ -24,7 +24,7 @@ func TestExtensionType(t *testing.T) {
|
||||
}
|
||||
for _, test := range []struct {
|
||||
xt protoreflect.ExtensionType
|
||||
value interface{}
|
||||
value any
|
||||
}{
|
||||
{
|
||||
xt: testpb.E_OptionalInt32,
|
||||
|
@ -566,7 +566,7 @@ func (p pointer) Apply(f uintptr) pointer {
|
||||
return pointer{p: unsafe.Pointer(uintptr(p.p) + uintptr(f))}
|
||||
}
|
||||
|
||||
func pointerOfIface(v interface{}) pointer {
|
||||
func pointerOfIface(v any) pointer {
|
||||
type ifaceHeader struct {
|
||||
Type unsafe.Pointer
|
||||
Data unsafe.Pointer
|
||||
@ -580,7 +580,7 @@ func (p pointer) AsValueOf(t reflect.Type) reflect.Value {
|
||||
|
||||
// Highly implementation dependent - uses unsafe pointers to figure
|
||||
// out if the lazyExtensionValue is initialized.
|
||||
func extensionIsInitialized(t *testing.T, data interface{}, fieldNo int32) bool {
|
||||
func extensionIsInitialized(t *testing.T, data any, fieldNo int32) bool {
|
||||
ext, ok := reflect.TypeOf(data).Elem().FieldByName("extensionFields")
|
||||
if !ok {
|
||||
t.Fatalf("Failed to retrieve offset of field \"extensionFields\".")
|
||||
|
@ -86,8 +86,8 @@ func (m *AberrantMessage) ExtensionRangeArray() []protoiface.ExtensionRangeV1 {
|
||||
return []protoiface.ExtensionRangeV1{{Start: 10, End: 100}}
|
||||
}
|
||||
|
||||
func (m *AberrantMessage) XXX_OneofFuncs() []interface{} {
|
||||
return []interface{}{
|
||||
func (m *AberrantMessage) XXX_OneofFuncs() []any {
|
||||
return []any{
|
||||
(*OneofBool)(nil),
|
||||
(*OneofInt32)(nil),
|
||||
(*OneofSint32)(nil),
|
||||
|
@ -97,7 +97,7 @@ func (e *legacyEnumWrapper) Number() protoreflect.EnumNumber {
|
||||
func (e *legacyEnumWrapper) ProtoReflect() protoreflect.Enum {
|
||||
return e
|
||||
}
|
||||
func (e *legacyEnumWrapper) protoUnwrap() interface{} {
|
||||
func (e *legacyEnumWrapper) protoUnwrap() any {
|
||||
v := reflect.New(e.goTyp).Elem()
|
||||
v.SetInt(int64(e.num))
|
||||
return v.Interface()
|
||||
|
@ -406,8 +406,8 @@ func TestDescriptor(t *testing.T) {
|
||||
pragma.DoNotImplement
|
||||
}
|
||||
opts := cmp.Options{
|
||||
cmp.Transformer("", func(x list) []interface{} {
|
||||
out := make([]interface{}, x.Len())
|
||||
cmp.Transformer("", func(x list) []any {
|
||||
out := make([]any, x.Len())
|
||||
v := reflect.ValueOf(x)
|
||||
for i := 0; i < x.Len(); i++ {
|
||||
m := v.MethodByName("Get")
|
||||
@ -415,8 +415,8 @@ func TestDescriptor(t *testing.T) {
|
||||
}
|
||||
return out
|
||||
}),
|
||||
cmp.Transformer("", func(x protoreflect.Descriptor) map[string]interface{} {
|
||||
out := make(map[string]interface{})
|
||||
cmp.Transformer("", func(x protoreflect.Descriptor) map[string]any {
|
||||
out := make(map[string]any)
|
||||
v := reflect.ValueOf(x)
|
||||
for i := 0; i < v.NumMethod(); i++ {
|
||||
name := v.Type().Method(i).Name
|
||||
@ -450,7 +450,7 @@ func TestDescriptor(t *testing.T) {
|
||||
}
|
||||
return out
|
||||
}),
|
||||
cmp.Transformer("", func(v protoreflect.Value) interface{} {
|
||||
cmp.Transformer("", func(v protoreflect.Value) any {
|
||||
return v.Interface()
|
||||
}),
|
||||
}
|
||||
|
@ -216,7 +216,7 @@ func aberrantLoadMessageDescReentrant(t reflect.Type, name protoreflect.FullName
|
||||
}
|
||||
for _, fn := range methods {
|
||||
for _, v := range fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))}) {
|
||||
if vs, ok := v.Interface().([]interface{}); ok {
|
||||
if vs, ok := v.Interface().([]any); ok {
|
||||
for _, v := range vs {
|
||||
oneofWrappers = append(oneofWrappers, reflect.TypeOf(v))
|
||||
}
|
||||
@ -567,6 +567,6 @@ func (m aberrantMessage) IsValid() bool {
|
||||
func (m aberrantMessage) ProtoMethods() *protoiface.Methods {
|
||||
return aberrantProtoMethods
|
||||
}
|
||||
func (m aberrantMessage) protoUnwrap() interface{} {
|
||||
func (m aberrantMessage) protoUnwrap() any {
|
||||
return m.v.Interface()
|
||||
}
|
||||
|
@ -345,7 +345,7 @@ func TestLegacyExtensions(t *testing.T) {
|
||||
|
||||
// Check that getting the zero value returns the default value for scalars,
|
||||
// nil for singular messages, and an empty list for repeated fields.
|
||||
defaultValues := map[int]interface{}{
|
||||
defaultValues := map[int]any{
|
||||
0: bool(true),
|
||||
1: int32(-12345),
|
||||
2: uint32(3200),
|
||||
@ -358,7 +358,7 @@ func TestLegacyExtensions(t *testing.T) {
|
||||
9: nil,
|
||||
}
|
||||
for i, xt := range extensionTypes {
|
||||
var got interface{}
|
||||
var got any
|
||||
xd := xt.TypeDescriptor()
|
||||
if !(xd.IsList() || xd.IsMap() || xd.Message() != nil) {
|
||||
got = xt.InterfaceOf(m.Get(xd))
|
||||
@ -382,7 +382,7 @@ func TestLegacyExtensions(t *testing.T) {
|
||||
m1b := &proto2_20180125.Message_ChildMessage{F1: proto.String("m2b")}
|
||||
m2a := &EnumMessages{EnumP2: EnumProto2(0x1b).Enum()}
|
||||
m2b := &EnumMessages{EnumP2: EnumProto2(0x2b).Enum()}
|
||||
setValues := map[int]interface{}{
|
||||
setValues := map[int]any{
|
||||
0: bool(false),
|
||||
1: int32(-54321),
|
||||
2: uint32(6400),
|
||||
@ -413,7 +413,7 @@ func TestLegacyExtensions(t *testing.T) {
|
||||
}
|
||||
|
||||
// Get the values and check for equality.
|
||||
getValues := map[int]interface{}{
|
||||
getValues := map[int]any{
|
||||
0: bool(false),
|
||||
1: int32(-54321),
|
||||
2: uint32(6400),
|
||||
@ -486,8 +486,8 @@ func TestLegacyExtensionConvert(t *testing.T) {
|
||||
cmp.Comparer(func(x, y reflect.Type) bool {
|
||||
return x == y
|
||||
}),
|
||||
cmp.Transformer("", func(x list) []interface{} {
|
||||
out := make([]interface{}, x.Len())
|
||||
cmp.Transformer("", func(x list) []any {
|
||||
out := make([]any, x.Len())
|
||||
v := reflect.ValueOf(x)
|
||||
for i := 0; i < x.Len(); i++ {
|
||||
m := v.MethodByName("Get")
|
||||
@ -495,8 +495,8 @@ func TestLegacyExtensionConvert(t *testing.T) {
|
||||
}
|
||||
return out
|
||||
}),
|
||||
cmp.Transformer("", func(x protoreflect.Descriptor) map[string]interface{} {
|
||||
out := make(map[string]interface{})
|
||||
cmp.Transformer("", func(x protoreflect.Descriptor) map[string]any {
|
||||
out := make(map[string]any)
|
||||
v := reflect.ValueOf(x)
|
||||
for i := 0; i < v.NumMethod(); i++ {
|
||||
name := v.Type().Method(i).Name
|
||||
@ -524,12 +524,12 @@ func TestLegacyExtensionConvert(t *testing.T) {
|
||||
}
|
||||
return out
|
||||
}),
|
||||
cmp.Transformer("", func(xt protoreflect.ExtensionType) map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
cmp.Transformer("", func(xt protoreflect.ExtensionType) map[string]any {
|
||||
return map[string]any{
|
||||
"Descriptor": xt.TypeDescriptor(),
|
||||
}
|
||||
}),
|
||||
cmp.Transformer("", func(v protoreflect.Value) interface{} {
|
||||
cmp.Transformer("", func(v protoreflect.Value) any {
|
||||
return v.Interface()
|
||||
}),
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ type MessageInfo struct {
|
||||
Exporter exporter
|
||||
|
||||
// OneofWrappers is list of pointers to oneof wrapper struct types.
|
||||
OneofWrappers []interface{}
|
||||
OneofWrappers []any
|
||||
|
||||
initMu sync.Mutex // protects all unexported fields
|
||||
initDone uint32
|
||||
@ -47,7 +47,7 @@ type MessageInfo struct {
|
||||
// exporter is a function that returns a reference to the ith field of v,
|
||||
// where v is a pointer to a struct. It returns nil if it does not support
|
||||
// exporting the requested field (e.g., already exported).
|
||||
type exporter func(v interface{}, i int) interface{}
|
||||
type exporter func(v any, i int) any
|
||||
|
||||
// getMessageInfo returns the MessageInfo for any message type that
|
||||
// is generated by our implementation of protoc-gen-go (for v2 and on).
|
||||
@ -201,7 +201,7 @@ fieldLoop:
|
||||
}
|
||||
for _, fn := range methods {
|
||||
for _, v := range fn.Func.Call([]reflect.Value{reflect.Zero(fn.Type.In(0))}) {
|
||||
if vs, ok := v.Interface().([]interface{}); ok {
|
||||
if vs, ok := v.Interface().([]any); ok {
|
||||
oneofWrappers = vs
|
||||
}
|
||||
}
|
||||
@ -256,7 +256,7 @@ func (mi *MessageInfo) Message(i int) protoreflect.MessageType {
|
||||
|
||||
type mapEntryType struct {
|
||||
desc protoreflect.MessageDescriptor
|
||||
valType interface{} // zero value of enum or message type
|
||||
valType any // zero value of enum or message type
|
||||
}
|
||||
|
||||
func (mt mapEntryType) New() protoreflect.Message {
|
||||
|
@ -20,7 +20,7 @@ type reflectMessageInfo struct {
|
||||
// fieldTypes contains the zero value of an enum or message field.
|
||||
// For lists, it contains the element type.
|
||||
// For maps, it contains the entry value type.
|
||||
fieldTypes map[protoreflect.FieldNumber]interface{}
|
||||
fieldTypes map[protoreflect.FieldNumber]any
|
||||
|
||||
// denseFields is a subset of fields where:
|
||||
// 0 < fieldDesc.Number() < len(denseFields)
|
||||
@ -28,7 +28,7 @@ type reflectMessageInfo struct {
|
||||
denseFields []*fieldInfo
|
||||
|
||||
// rangeInfos is a list of all fields (not belonging to a oneof) and oneofs.
|
||||
rangeInfos []interface{} // either *fieldInfo or *oneofInfo
|
||||
rangeInfos []any // either *fieldInfo or *oneofInfo
|
||||
|
||||
getUnknown func(pointer) protoreflect.RawFields
|
||||
setUnknown func(pointer, protoreflect.RawFields)
|
||||
@ -224,7 +224,7 @@ func (mi *MessageInfo) makeFieldTypes(si structInfo) {
|
||||
}
|
||||
if ft != nil {
|
||||
if mi.fieldTypes == nil {
|
||||
mi.fieldTypes = make(map[protoreflect.FieldNumber]interface{})
|
||||
mi.fieldTypes = make(map[protoreflect.FieldNumber]any)
|
||||
}
|
||||
mi.fieldTypes[fd.Number()] = reflect.Zero(ft).Interface()
|
||||
}
|
||||
@ -393,7 +393,7 @@ var (
|
||||
// MessageOf returns a reflective view over a message. The input must be a
|
||||
// pointer to a named Go struct. If the provided type has a ProtoReflect method,
|
||||
// it must be implemented by calling this method.
|
||||
func (mi *MessageInfo) MessageOf(m interface{}) protoreflect.Message {
|
||||
func (mi *MessageInfo) MessageOf(m any) protoreflect.Message {
|
||||
if reflect.TypeOf(m) != mi.GoReflectType {
|
||||
panic(fmt.Sprintf("type mismatch: got %T, want %v", m, mi.GoReflectType))
|
||||
}
|
||||
@ -421,7 +421,7 @@ func (m *messageIfaceWrapper) Reset() {
|
||||
func (m *messageIfaceWrapper) ProtoReflect() protoreflect.Message {
|
||||
return (*messageReflectWrapper)(m)
|
||||
}
|
||||
func (m *messageIfaceWrapper) protoUnwrap() interface{} {
|
||||
func (m *messageIfaceWrapper) protoUnwrap() any {
|
||||
return m.p.AsIfaceOf(m.mi.GoReflectType.Elem())
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ func (m *messageState) New() protoreflect.Message {
|
||||
func (m *messageState) Interface() protoreflect.ProtoMessage {
|
||||
return m.protoUnwrap().(protoreflect.ProtoMessage)
|
||||
}
|
||||
func (m *messageState) protoUnwrap() interface{} {
|
||||
func (m *messageState) protoUnwrap() any {
|
||||
return m.pointer().AsIfaceOf(m.messageInfo().GoReflectType.Elem())
|
||||
}
|
||||
func (m *messageState) ProtoMethods() *protoiface.Methods {
|
||||
@ -154,7 +154,7 @@ func (m *messageReflectWrapper) Interface() protoreflect.ProtoMessage {
|
||||
}
|
||||
return (*messageIfaceWrapper)(m)
|
||||
}
|
||||
func (m *messageReflectWrapper) protoUnwrap() interface{} {
|
||||
func (m *messageReflectWrapper) protoUnwrap() any {
|
||||
return m.pointer().AsIfaceOf(m.messageInfo().GoReflectType.Elem())
|
||||
}
|
||||
func (m *messageReflectWrapper) ProtoMethods() *protoiface.Methods {
|
||||
|
@ -115,17 +115,17 @@ type (
|
||||
// check that map length matches
|
||||
lenMap int
|
||||
// check presence for specific entries in the map
|
||||
hasMap map[interface{}]bool
|
||||
hasMap map[any]bool
|
||||
// check that specific map entries match
|
||||
getMap map[interface{}]protoreflect.Value
|
||||
getMap map[any]protoreflect.Value
|
||||
// set specific map entries
|
||||
setMap map[interface{}]protoreflect.Value
|
||||
setMap map[any]protoreflect.Value
|
||||
// clear specific entries in the map
|
||||
clearMap []interface{}
|
||||
clearMap []any
|
||||
// apply messageOps on each specified message entry
|
||||
messageMap map[interface{}]messageOps
|
||||
messageMap map[any]messageOps
|
||||
// range through all entries and check that they match
|
||||
rangeMap map[interface{}]protoreflect.Value
|
||||
rangeMap map[any]protoreflect.Value
|
||||
)
|
||||
|
||||
func (equalMap) isMapOp() {}
|
||||
@ -798,8 +798,8 @@ var oneofScalarsType = pimpl.MessageInfo{GoReflectType: reflect.TypeOf(new(Oneof
|
||||
|
||||
func (m *OneofScalars) ProtoReflect() protoreflect.Message { return oneofScalarsType.MessageOf(m) }
|
||||
|
||||
func (*OneofScalars) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
func (*OneofScalars) XXX_OneofWrappers() []any {
|
||||
return []any{
|
||||
(*OneofScalars_Bool)(nil),
|
||||
(*OneofScalars_Int32)(nil),
|
||||
(*OneofScalars_Int64)(nil),
|
||||
@ -1011,8 +1011,8 @@ func newFileRegistry(files ...protoreflect.FileDescriptor) *protoregistry.Files
|
||||
|
||||
func (m *EnumMessages) ProtoReflect() protoreflect.Message { return enumMessagesType.MessageOf(m) }
|
||||
|
||||
func (*EnumMessages) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
func (*EnumMessages) XXX_OneofWrappers() []any {
|
||||
return []any{
|
||||
(*EnumMessages_OneofE2)(nil),
|
||||
(*EnumMessages_OneofE3)(nil),
|
||||
(*EnumMessages_OneofM2)(nil),
|
||||
@ -1161,7 +1161,7 @@ var cmpOpts = cmp.Options{
|
||||
my := pimpl.Export{}.MessageOf(y).Interface()
|
||||
return proto.Equal(mx, my)
|
||||
}),
|
||||
cmp.Transformer("UnwrapValue", func(pv protoreflect.Value) interface{} {
|
||||
cmp.Transformer("UnwrapValue", func(pv protoreflect.Value) any {
|
||||
switch v := pv.Interface().(type) {
|
||||
case protoreflect.Message:
|
||||
out := make(map[protoreflect.FieldNumber]protoreflect.Value)
|
||||
@ -1177,7 +1177,7 @@ var cmpOpts = cmp.Options{
|
||||
}
|
||||
return out
|
||||
case protoreflect.Map:
|
||||
out := make(map[interface{}]protoreflect.Value)
|
||||
out := make(map[any]protoreflect.Value)
|
||||
v.Range(func(k protoreflect.MapKey, v protoreflect.Value) bool {
|
||||
out[k.Interface()] = v
|
||||
return true
|
||||
@ -1359,8 +1359,8 @@ func testMaps(t *testing.T, p path, m protoreflect.Map, tt mapOps) {
|
||||
t.Errorf("operation %v, Map.Len = %d, want %d", p, got, want)
|
||||
}
|
||||
case hasMap:
|
||||
got := map[interface{}]bool{}
|
||||
want := map[interface{}]bool(op)
|
||||
got := map[any]bool{}
|
||||
want := map[any]bool(op)
|
||||
for k := range want {
|
||||
got[k] = m.Has(V(k).MapKey())
|
||||
}
|
||||
@ -1368,8 +1368,8 @@ func testMaps(t *testing.T, p path, m protoreflect.Map, tt mapOps) {
|
||||
t.Errorf("operation %v, Map.Has mismatch (-want, +got):\n%s", p, diff)
|
||||
}
|
||||
case getMap:
|
||||
got := map[interface{}]protoreflect.Value{}
|
||||
want := map[interface{}]protoreflect.Value(op)
|
||||
got := map[any]protoreflect.Value{}
|
||||
want := map[any]protoreflect.Value(op)
|
||||
for k := range want {
|
||||
got[k] = m.Get(V(k).MapKey())
|
||||
}
|
||||
@ -1393,8 +1393,8 @@ func testMaps(t *testing.T, p path, m protoreflect.Map, tt mapOps) {
|
||||
testMessage(t, p, m.Get(mk).Message(), tt)
|
||||
}
|
||||
case rangeMap:
|
||||
got := map[interface{}]protoreflect.Value{}
|
||||
want := map[interface{}]protoreflect.Value(op)
|
||||
got := map[any]protoreflect.Value{}
|
||||
want := map[any]protoreflect.Value(op)
|
||||
m.Range(func(k protoreflect.MapKey, v protoreflect.Value) bool {
|
||||
got[k.Interface()] = v
|
||||
return true
|
||||
|
@ -16,7 +16,7 @@ import (
|
||||
const UnsafeEnabled = false
|
||||
|
||||
// Pointer is an opaque pointer type.
|
||||
type Pointer interface{}
|
||||
type Pointer any
|
||||
|
||||
// offset represents the offset to a struct field, accessible from a pointer.
|
||||
// The offset is the field index into a struct.
|
||||
@ -62,7 +62,7 @@ func pointerOfValue(v reflect.Value) pointer {
|
||||
}
|
||||
|
||||
// pointerOfIface returns the pointer portion of an interface.
|
||||
func pointerOfIface(v interface{}) pointer {
|
||||
func pointerOfIface(v any) pointer {
|
||||
return pointer{v: reflect.ValueOf(v)}
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@ func (p pointer) AsValueOf(t reflect.Type) reflect.Value {
|
||||
|
||||
// AsIfaceOf treats p as a pointer to an object of type t and returns the value.
|
||||
// It is equivalent to p.AsValueOf(t).Interface()
|
||||
func (p pointer) AsIfaceOf(t reflect.Type) interface{} {
|
||||
func (p pointer) AsIfaceOf(t reflect.Type) any {
|
||||
return p.AsValueOf(t).Interface()
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ func pointerOfValue(v reflect.Value) pointer {
|
||||
}
|
||||
|
||||
// pointerOfIface returns the pointer portion of an interface.
|
||||
func pointerOfIface(v interface{}) pointer {
|
||||
func pointerOfIface(v any) pointer {
|
||||
type ifaceHeader struct {
|
||||
Type unsafe.Pointer
|
||||
Data unsafe.Pointer
|
||||
@ -80,7 +80,7 @@ func (p pointer) AsValueOf(t reflect.Type) reflect.Value {
|
||||
|
||||
// AsIfaceOf treats p as a pointer to an object of type t and returns the value.
|
||||
// It is equivalent to p.AsValueOf(t).Interface()
|
||||
func (p pointer) AsIfaceOf(t reflect.Type) interface{} {
|
||||
func (p pointer) AsIfaceOf(t reflect.Type) any {
|
||||
// TODO: Use tricky unsafe magic to directly create ifaceHeader.
|
||||
return p.AsValueOf(t).Interface()
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ func appendMessage(b []byte, m protoreflect.Message) []byte {
|
||||
return b
|
||||
}
|
||||
|
||||
var protocmpMessageType = reflect.TypeOf(map[string]interface{}(nil))
|
||||
var protocmpMessageType = reflect.TypeOf(map[string]any(nil))
|
||||
|
||||
func appendKnownMessage(b []byte, m protoreflect.Message) []byte {
|
||||
md := m.Descriptor()
|
||||
@ -98,7 +98,7 @@ func appendKnownMessage(b []byte, m protoreflect.Message) []byte {
|
||||
if v := reflect.ValueOf(m); v.Type().ConvertibleTo(protocmpMessageType) {
|
||||
// For protocmp.Message, directly obtain the sub-message value
|
||||
// which is stored in structured form, rather than as raw bytes.
|
||||
m2 := v.Convert(protocmpMessageType).Interface().(map[string]interface{})
|
||||
m2 := v.Convert(protocmpMessageType).Interface().(map[string]any)
|
||||
v, ok := m2[string(genid.Any_Value_field_name)].(proto.Message)
|
||||
if !ok {
|
||||
return nil
|
||||
|
@ -126,31 +126,31 @@ func TestKeyOrder(t *testing.T) {
|
||||
tests := []struct {
|
||||
label string
|
||||
order KeyOrder
|
||||
keys []interface{}
|
||||
keys []any
|
||||
}{{
|
||||
label: "GenericKeyOrder",
|
||||
order: GenericKeyOrder,
|
||||
keys: []interface{}{false, true},
|
||||
keys: []any{false, true},
|
||||
}, {
|
||||
label: "GenericKeyOrder",
|
||||
order: GenericKeyOrder,
|
||||
keys: []interface{}{int32(-100), int32(-99), int32(-10), int32(-9), int32(-1), int32(0), int32(+1), int32(+9), int32(+10), int32(+99), int32(+100)},
|
||||
keys: []any{int32(-100), int32(-99), int32(-10), int32(-9), int32(-1), int32(0), int32(+1), int32(+9), int32(+10), int32(+99), int32(+100)},
|
||||
}, {
|
||||
label: "GenericKeyOrder",
|
||||
order: GenericKeyOrder,
|
||||
keys: []interface{}{int64(-100), int64(-99), int64(-10), int64(-9), int64(-1), int64(0), int64(+1), int64(+9), int64(+10), int64(+99), int64(+100)},
|
||||
keys: []any{int64(-100), int64(-99), int64(-10), int64(-9), int64(-1), int64(0), int64(+1), int64(+9), int64(+10), int64(+99), int64(+100)},
|
||||
}, {
|
||||
label: "GenericKeyOrder",
|
||||
order: GenericKeyOrder,
|
||||
keys: []interface{}{uint32(0), uint32(1), uint32(9), uint32(10), uint32(99), uint32(100)},
|
||||
keys: []any{uint32(0), uint32(1), uint32(9), uint32(10), uint32(99), uint32(100)},
|
||||
}, {
|
||||
label: "GenericKeyOrder",
|
||||
order: GenericKeyOrder,
|
||||
keys: []interface{}{uint64(0), uint64(1), uint64(9), uint64(10), uint64(99), uint64(100)},
|
||||
keys: []any{uint64(0), uint64(1), uint64(9), uint64(10), uint64(99), uint64(100)},
|
||||
}, {
|
||||
label: "GenericKeyOrder",
|
||||
order: GenericKeyOrder,
|
||||
keys: []interface{}{"", "a", "aa", "ab", "ba", "bb", "\u0080", "\u0080\u0081", "\u0082\u0080"},
|
||||
keys: []any{"", "a", "aa", "ab", "ba", "bb", "\u0080", "\u0080\u0081", "\u0082\u0080"},
|
||||
}}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
@ -18,7 +18,7 @@ type messageField struct {
|
||||
}
|
||||
|
||||
var messageFieldPool = sync.Pool{
|
||||
New: func() interface{} { return new([]messageField) },
|
||||
New: func() any { return new([]messageField) },
|
||||
}
|
||||
|
||||
type (
|
||||
@ -69,7 +69,7 @@ type mapEntry struct {
|
||||
}
|
||||
|
||||
var mapEntryPool = sync.Pool{
|
||||
New: func() interface{} { return new([]mapEntry) },
|
||||
New: func() any { return new([]mapEntry) },
|
||||
}
|
||||
|
||||
type (
|
||||
|
@ -29,7 +29,7 @@ import (
|
||||
// • A string containing the value name may be assigned to an enum field.
|
||||
//
|
||||
// • A slice may be assigned to a list, and a map may be assigned to a map.
|
||||
type Value interface{}
|
||||
type Value any
|
||||
|
||||
// A Message is a template to apply to a message. Keys are field names, including
|
||||
// extension names.
|
||||
@ -101,7 +101,7 @@ func (template Message) Build(m protoreflect.Message) {
|
||||
}
|
||||
}
|
||||
|
||||
func fieldValue(fd protoreflect.FieldDescriptor, v interface{}) protoreflect.Value {
|
||||
func fieldValue(fd protoreflect.FieldDescriptor, v any) protoreflect.Value {
|
||||
switch o := v.(type) {
|
||||
case int:
|
||||
switch fd.Kind() {
|
||||
|
@ -66,7 +66,7 @@ func RegisterType(m Message, s string) {
|
||||
}
|
||||
}
|
||||
|
||||
func RegisterMapType(interface{}, string) {
|
||||
func RegisterMapType(any, string) {
|
||||
// Do nothing.
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ var file_internal_testprotos_annotation_annotation_proto_rawDesc = []byte{
|
||||
0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
|
||||
}
|
||||
|
||||
var file_internal_testprotos_annotation_annotation_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_annotation_annotation_proto_goTypes = []any{
|
||||
(*descriptorpb.MessageOptions)(nil), // 0: google.protobuf.MessageOptions
|
||||
}
|
||||
var file_internal_testprotos_annotation_annotation_proto_depIdxs = []int32{
|
||||
|
@ -227,7 +227,7 @@ func file_internal_testprotos_benchmarks_micro_micro_proto_rawDescGZIP() []byte
|
||||
}
|
||||
|
||||
var file_internal_testprotos_benchmarks_micro_micro_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_internal_testprotos_benchmarks_micro_micro_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_benchmarks_micro_micro_proto_goTypes = []any{
|
||||
(*SixteenRequired)(nil), // 0: goproto.proto.benchmarks.microt.SixteenRequired
|
||||
}
|
||||
var file_internal_testprotos_benchmarks_micro_micro_proto_depIdxs = []int32{
|
||||
@ -244,7 +244,7 @@ func file_internal_testprotos_benchmarks_micro_micro_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_benchmarks_micro_micro_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_benchmarks_micro_micro_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*SixteenRequired); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -714,7 +714,7 @@ func file_conformance_conformance_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_conformance_conformance_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||
var file_conformance_conformance_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_conformance_conformance_proto_goTypes = []interface{}{
|
||||
var file_conformance_conformance_proto_goTypes = []any{
|
||||
(WireFormat)(0), // 0: conformance.WireFormat
|
||||
(TestCategory)(0), // 1: conformance.TestCategory
|
||||
(*FailureSet)(nil), // 2: conformance.FailureSet
|
||||
@ -739,7 +739,7 @@ func file_conformance_conformance_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_conformance_conformance_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_conformance_conformance_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FailureSet); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -751,7 +751,7 @@ func file_conformance_conformance_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_conformance_conformance_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_conformance_conformance_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ConformanceRequest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -763,7 +763,7 @@ func file_conformance_conformance_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_conformance_conformance_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_conformance_conformance_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ConformanceResponse); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -775,7 +775,7 @@ func file_conformance_conformance_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_conformance_conformance_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_conformance_conformance_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*JspbEncodingConfig); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -788,13 +788,13 @@ func file_conformance_conformance_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_conformance_conformance_proto_msgTypes[1].OneofWrappers = []interface{}{
|
||||
file_conformance_conformance_proto_msgTypes[1].OneofWrappers = []any{
|
||||
(*ConformanceRequest_ProtobufPayload)(nil),
|
||||
(*ConformanceRequest_JsonPayload)(nil),
|
||||
(*ConformanceRequest_JspbPayload)(nil),
|
||||
(*ConformanceRequest_TextPayload)(nil),
|
||||
}
|
||||
file_conformance_conformance_proto_msgTypes[2].OneofWrappers = []interface{}{
|
||||
file_conformance_conformance_proto_msgTypes[2].OneofWrappers = []any{
|
||||
(*ConformanceResponse_ParseError)(nil),
|
||||
(*ConformanceResponse_SerializeError)(nil),
|
||||
(*ConformanceResponse_TimeoutError)(nil),
|
||||
|
@ -1898,7 +1898,7 @@ func file_conformance_test_protos_test_messages_edition2023_proto_rawDescGZIP()
|
||||
|
||||
var file_conformance_test_protos_test_messages_edition2023_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||
var file_conformance_test_protos_test_messages_edition2023_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
||||
var file_conformance_test_protos_test_messages_edition2023_proto_goTypes = []interface{}{
|
||||
var file_conformance_test_protos_test_messages_edition2023_proto_goTypes = []any{
|
||||
(ForeignEnumEdition2023)(0), // 0: protobuf_test_messages.editions.ForeignEnumEdition2023
|
||||
(TestAllTypesEdition2023_NestedEnum)(0), // 1: protobuf_test_messages.editions.TestAllTypesEdition2023.NestedEnum
|
||||
(*TestAllTypesEdition2023)(nil), // 2: protobuf_test_messages.editions.TestAllTypesEdition2023
|
||||
@ -1984,7 +1984,7 @@ func file_conformance_test_protos_test_messages_edition2023_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesEdition2023); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1998,7 +1998,7 @@ func file_conformance_test_protos_test_messages_edition2023_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ForeignMessageEdition2023); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2010,7 +2010,7 @@ func file_conformance_test_protos_test_messages_edition2023_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*GroupLikeType); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2022,7 +2022,7 @@ func file_conformance_test_protos_test_messages_edition2023_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesEdition2023_NestedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2034,7 +2034,7 @@ func file_conformance_test_protos_test_messages_edition2023_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[23].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesEdition2023_GroupLikeType); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2047,7 +2047,7 @@ func file_conformance_test_protos_test_messages_edition2023_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*TestAllTypesEdition2023_OneofUint32)(nil),
|
||||
(*TestAllTypesEdition2023_OneofNestedMessage)(nil),
|
||||
(*TestAllTypesEdition2023_OneofString)(nil),
|
||||
|
@ -3888,7 +3888,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_rawDescGZIP() []by
|
||||
|
||||
var file_editions_golden_test_messages_proto2_editions_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
||||
var file_editions_golden_test_messages_proto2_editions_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
|
||||
var file_editions_golden_test_messages_proto2_editions_proto_goTypes = []interface{}{
|
||||
var file_editions_golden_test_messages_proto2_editions_proto_goTypes = []any{
|
||||
(ForeignEnumProto2)(0), // 0: protobuf_test_messages.editions.proto2.ForeignEnumProto2
|
||||
(TestAllTypesProto2_NestedEnum)(0), // 1: protobuf_test_messages.editions.proto2.TestAllTypesProto2.NestedEnum
|
||||
(EnumOnlyProto2_Bool)(0), // 2: protobuf_test_messages.editions.proto2.EnumOnlyProto2.Bool
|
||||
@ -4009,7 +4009,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4023,7 +4023,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ForeignMessageProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4035,7 +4035,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*GroupField); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4047,7 +4047,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*UnknownToTestAllTypes); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4059,7 +4059,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*NullHypothesisProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4071,7 +4071,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*EnumOnlyProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4083,7 +4083,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*OneStringProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4095,7 +4095,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ProtoWithKeywords); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4107,7 +4107,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[8].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllRequiredTypesProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4121,7 +4121,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[9].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_NestedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4133,7 +4133,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[29].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_Data); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4145,7 +4145,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[30].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_MultiWordGroupField); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4157,7 +4157,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[31].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_MessageSetCorrect); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4171,7 +4171,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[32].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_MessageSetCorrectExtension1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4183,7 +4183,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[33].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_MessageSetCorrectExtension2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4195,7 +4195,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[34].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*UnknownToTestAllTypes_OptionalGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4207,7 +4207,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[35].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllRequiredTypesProto2_NestedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4219,7 +4219,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[36].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllRequiredTypesProto2_Data); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4231,7 +4231,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[37].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllRequiredTypesProto2_MessageSetCorrect); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4245,7 +4245,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[38].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllRequiredTypesProto2_MessageSetCorrectExtension1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4257,7 +4257,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[39].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllRequiredTypesProto2_MessageSetCorrectExtension2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4270,7 +4270,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_editions_golden_test_messages_proto2_editions_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*TestAllTypesProto2_OneofUint32)(nil),
|
||||
(*TestAllTypesProto2_OneofNestedMessage)(nil),
|
||||
(*TestAllTypesProto2_OneofString)(nil),
|
||||
|
@ -2552,7 +2552,7 @@ func file_editions_golden_test_messages_proto3_editions_proto_rawDescGZIP() []by
|
||||
|
||||
var file_editions_golden_test_messages_proto3_editions_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
||||
var file_editions_golden_test_messages_proto3_editions_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
||||
var file_editions_golden_test_messages_proto3_editions_proto_goTypes = []interface{}{
|
||||
var file_editions_golden_test_messages_proto3_editions_proto_goTypes = []any{
|
||||
(ForeignEnum)(0), // 0: protobuf_test_messages.editions.proto3.ForeignEnum
|
||||
(TestAllTypesProto3_NestedEnum)(0), // 1: protobuf_test_messages.editions.proto3.TestAllTypesProto3.NestedEnum
|
||||
(TestAllTypesProto3_AliasedEnum)(0), // 2: protobuf_test_messages.editions.proto3.TestAllTypesProto3.AliasedEnum
|
||||
@ -2684,7 +2684,7 @@ func file_editions_golden_test_messages_proto3_editions_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_editions_golden_test_messages_proto3_editions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto3_editions_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto3); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2696,7 +2696,7 @@ func file_editions_golden_test_messages_proto3_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto3_editions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto3_editions_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ForeignMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2708,7 +2708,7 @@ func file_editions_golden_test_messages_proto3_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto3_editions_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto3_editions_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*NullHypothesisProto3); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2720,7 +2720,7 @@ func file_editions_golden_test_messages_proto3_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto3_editions_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto3_editions_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*EnumOnlyProto3); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2732,7 +2732,7 @@ func file_editions_golden_test_messages_proto3_editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto3_editions_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_editions_golden_test_messages_proto3_editions_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto3_NestedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2745,7 +2745,7 @@ func file_editions_golden_test_messages_proto3_editions_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_editions_golden_test_messages_proto3_editions_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_editions_golden_test_messages_proto3_editions_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*TestAllTypesProto3_OneofUint32)(nil),
|
||||
(*TestAllTypesProto3_OneofNestedMessage)(nil),
|
||||
(*TestAllTypesProto3_OneofString)(nil),
|
||||
|
@ -3871,7 +3871,7 @@ func file_google_protobuf_test_messages_proto2_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_google_protobuf_test_messages_proto2_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
||||
var file_google_protobuf_test_messages_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 40)
|
||||
var file_google_protobuf_test_messages_proto2_proto_goTypes = []interface{}{
|
||||
var file_google_protobuf_test_messages_proto2_proto_goTypes = []any{
|
||||
(ForeignEnumProto2)(0), // 0: protobuf_test_messages.proto2.ForeignEnumProto2
|
||||
(TestAllTypesProto2_NestedEnum)(0), // 1: protobuf_test_messages.proto2.TestAllTypesProto2.NestedEnum
|
||||
(EnumOnlyProto2_Bool)(0), // 2: protobuf_test_messages.proto2.EnumOnlyProto2.Bool
|
||||
@ -3992,7 +3992,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4006,7 +4006,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ForeignMessageProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4018,7 +4018,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*GroupField); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4030,7 +4030,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*UnknownToTestAllTypes); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4042,7 +4042,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*NullHypothesisProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4054,7 +4054,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*EnumOnlyProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4066,7 +4066,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*OneStringProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4078,7 +4078,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[7].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ProtoWithKeywords); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4090,7 +4090,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[8].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllRequiredTypesProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4104,7 +4104,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[9].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_NestedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4116,7 +4116,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[29].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_Data); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4128,7 +4128,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[30].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_MultiWordGroupField); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4140,7 +4140,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[31].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_MessageSetCorrect); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4154,7 +4154,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[32].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_MessageSetCorrectExtension1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4166,7 +4166,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[33].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_MessageSetCorrectExtension2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4178,7 +4178,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[34].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*UnknownToTestAllTypes_OptionalGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4190,7 +4190,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[35].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllRequiredTypesProto2_NestedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4202,7 +4202,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[36].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllRequiredTypesProto2_Data); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4214,7 +4214,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[37].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllRequiredTypesProto2_MessageSetCorrect); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4228,7 +4228,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[38].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllRequiredTypesProto2_MessageSetCorrectExtension1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4240,7 +4240,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[39].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllRequiredTypesProto2_MessageSetCorrectExtension2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -4253,7 +4253,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_google_protobuf_test_messages_proto2_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*TestAllTypesProto2_OneofUint32)(nil),
|
||||
(*TestAllTypesProto2_OneofNestedMessage)(nil),
|
||||
(*TestAllTypesProto2_OneofString)(nil),
|
||||
|
@ -2529,7 +2529,7 @@ func file_google_protobuf_test_messages_proto3_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_google_protobuf_test_messages_proto3_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
|
||||
var file_google_protobuf_test_messages_proto3_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
||||
var file_google_protobuf_test_messages_proto3_proto_goTypes = []interface{}{
|
||||
var file_google_protobuf_test_messages_proto3_proto_goTypes = []any{
|
||||
(ForeignEnum)(0), // 0: protobuf_test_messages.proto3.ForeignEnum
|
||||
(TestAllTypesProto3_NestedEnum)(0), // 1: protobuf_test_messages.proto3.TestAllTypesProto3.NestedEnum
|
||||
(TestAllTypesProto3_AliasedEnum)(0), // 2: protobuf_test_messages.proto3.TestAllTypesProto3.AliasedEnum
|
||||
@ -2661,7 +2661,7 @@ func file_google_protobuf_test_messages_proto3_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_google_protobuf_test_messages_proto3_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto3_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto3); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2673,7 +2673,7 @@ func file_google_protobuf_test_messages_proto3_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto3_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto3_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ForeignMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2685,7 +2685,7 @@ func file_google_protobuf_test_messages_proto3_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto3_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto3_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*NullHypothesisProto3); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2697,7 +2697,7 @@ func file_google_protobuf_test_messages_proto3_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto3_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto3_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*EnumOnlyProto3); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2709,7 +2709,7 @@ func file_google_protobuf_test_messages_proto3_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto3_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_google_protobuf_test_messages_proto3_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto3_NestedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -2722,7 +2722,7 @@ func file_google_protobuf_test_messages_proto3_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_google_protobuf_test_messages_proto3_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_google_protobuf_test_messages_proto3_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*TestAllTypesProto3_OneofUint32)(nil),
|
||||
(*TestAllTypesProto3_OneofNestedMessage)(nil),
|
||||
(*TestAllTypesProto3_OneofString)(nil),
|
||||
|
@ -1561,7 +1561,7 @@ func file_internal_testprotos_editionsfuzztest_test2_proto_rawDescGZIP() []byte
|
||||
|
||||
var file_internal_testprotos_editionsfuzztest_test2_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
|
||||
var file_internal_testprotos_editionsfuzztest_test2_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_editionsfuzztest_test2_proto_goTypes = []any{
|
||||
(TestAllTypesProto2_NestedEnum)(0), // 0: goproto.proto.test.TestAllTypesProto2.NestedEnum
|
||||
(*TestAllTypesProto2)(nil), // 1: goproto.proto.test.TestAllTypesProto2
|
||||
(*TestAllTypesProto2_NestedMessage)(nil), // 2: goproto.proto.test.TestAllTypesProto2.NestedMessage
|
||||
@ -1632,7 +1632,7 @@ func file_internal_testprotos_editionsfuzztest_test2_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1644,7 +1644,7 @@ func file_internal_testprotos_editionsfuzztest_test2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_NestedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1656,7 +1656,7 @@ func file_internal_testprotos_editionsfuzztest_test2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_OptionalGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1668,7 +1668,7 @@ func file_internal_testprotos_editionsfuzztest_test2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_RepeatedGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1680,7 +1680,7 @@ func file_internal_testprotos_editionsfuzztest_test2_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[21].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2_OneofGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1693,7 +1693,7 @@ func file_internal_testprotos_editionsfuzztest_test2_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*TestAllTypesProto2_OneofUint32)(nil),
|
||||
(*TestAllTypesProto2_OneofNestedMessage)(nil),
|
||||
(*TestAllTypesProto2_OneofString)(nil),
|
||||
|
@ -1585,7 +1585,7 @@ func file_internal_testprotos_editionsfuzztest_test2editions_proto_rawDescGZIP()
|
||||
|
||||
var file_internal_testprotos_editionsfuzztest_test2editions_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes = make([]protoimpl.MessageInfo, 22)
|
||||
var file_internal_testprotos_editionsfuzztest_test2editions_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_editionsfuzztest_test2editions_proto_goTypes = []any{
|
||||
(TestAllTypesProto2Editions_NestedEnum)(0), // 0: goproto.proto.test.TestAllTypesProto2Editions.NestedEnum
|
||||
(*TestAllTypesProto2Editions)(nil), // 1: goproto.proto.test.TestAllTypesProto2Editions
|
||||
(*TestAllTypesProto2Editions_NestedMessage)(nil), // 2: goproto.proto.test.TestAllTypesProto2Editions.NestedMessage
|
||||
@ -1656,7 +1656,7 @@ func file_internal_testprotos_editionsfuzztest_test2editions_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2Editions); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1668,7 +1668,7 @@ func file_internal_testprotos_editionsfuzztest_test2editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2Editions_NestedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1680,7 +1680,7 @@ func file_internal_testprotos_editionsfuzztest_test2editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2Editions_OptionalGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1692,7 +1692,7 @@ func file_internal_testprotos_editionsfuzztest_test2editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2Editions_RepeatedGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1704,7 +1704,7 @@ func file_internal_testprotos_editionsfuzztest_test2editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[21].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto2Editions_OneofGroup); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1717,7 +1717,7 @@ func file_internal_testprotos_editionsfuzztest_test2editions_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*TestAllTypesProto2Editions_OneofUint32)(nil),
|
||||
(*TestAllTypesProto2Editions_OneofNestedMessage)(nil),
|
||||
(*TestAllTypesProto2Editions_OneofString)(nil),
|
||||
|
@ -1494,7 +1494,7 @@ func file_internal_testprotos_editionsfuzztest_test3_proto_rawDescGZIP() []byte
|
||||
|
||||
var file_internal_testprotos_editionsfuzztest_test3_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||
var file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
|
||||
var file_internal_testprotos_editionsfuzztest_test3_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_editionsfuzztest_test3_proto_goTypes = []any{
|
||||
(ForeignEnumProto3)(0), // 0: goproto.proto.test.ForeignEnumProto3
|
||||
(TestAllTypesProto3_NestedEnum)(0), // 1: goproto.proto.test.TestAllTypesProto3.NestedEnum
|
||||
(*TestAllTypesProto3)(nil), // 2: goproto.proto.test.TestAllTypesProto3
|
||||
@ -1566,7 +1566,7 @@ func file_internal_testprotos_editionsfuzztest_test3_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto3); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1578,7 +1578,7 @@ func file_internal_testprotos_editionsfuzztest_test3_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ForeignMessageProto3); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1590,7 +1590,7 @@ func file_internal_testprotos_editionsfuzztest_test3_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto3_NestedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1603,7 +1603,7 @@ func file_internal_testprotos_editionsfuzztest_test3_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*TestAllTypesProto3_OneofUint32)(nil),
|
||||
(*TestAllTypesProto3_OneofNestedMessage)(nil),
|
||||
(*TestAllTypesProto3_OneofString)(nil),
|
||||
|
@ -1492,7 +1492,7 @@ func file_internal_testprotos_editionsfuzztest_test3editions_proto_rawDescGZIP()
|
||||
|
||||
var file_internal_testprotos_editionsfuzztest_test3editions_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||
var file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes = make([]protoimpl.MessageInfo, 20)
|
||||
var file_internal_testprotos_editionsfuzztest_test3editions_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_editionsfuzztest_test3editions_proto_goTypes = []any{
|
||||
(ForeignEnumProto3Editions)(0), // 0: goproto.proto.test.ForeignEnumProto3Editions
|
||||
(TestAllTypesProto3Editions_NestedEnum)(0), // 1: goproto.proto.test.TestAllTypesProto3Editions.NestedEnum
|
||||
(*TestAllTypesProto3Editions)(nil), // 2: goproto.proto.test.TestAllTypesProto3Editions
|
||||
@ -1564,7 +1564,7 @@ func file_internal_testprotos_editionsfuzztest_test3editions_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto3Editions); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1576,7 +1576,7 @@ func file_internal_testprotos_editionsfuzztest_test3editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ForeignMessageProto3Editions); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1588,7 +1588,7 @@ func file_internal_testprotos_editionsfuzztest_test3editions_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestAllTypesProto3Editions_NestedMessage); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -1601,7 +1601,7 @@ func file_internal_testprotos_editionsfuzztest_test3editions_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*TestAllTypesProto3Editions_OneofUint32)(nil),
|
||||
(*TestAllTypesProto3Editions_OneofNestedMessage)(nil),
|
||||
(*TestAllTypesProto3Editions_OneofString)(nil),
|
||||
|
@ -122,7 +122,7 @@ func file_internal_testprotos_enums_enums_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_internal_testprotos_enums_enums_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_internal_testprotos_enums_enums_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_enums_enums_proto_goTypes = []any{
|
||||
(Enum)(0), // 0: goproto.proto.enums.Enum
|
||||
}
|
||||
var file_internal_testprotos_enums_enums_proto_depIdxs = []int32{
|
||||
|
@ -947,7 +947,7 @@ func file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_internal_testprotos_fieldtrack_fieldtrack_proto_msgTypes = make([]protoimpl.MessageInfo, 18)
|
||||
var file_internal_testprotos_fieldtrack_fieldtrack_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_fieldtrack_fieldtrack_proto_goTypes = []any{
|
||||
(*TestFieldTrack)(nil), // 0: goproto.proto.test.TestFieldTrack
|
||||
nil, // 1: goproto.proto.test.TestFieldTrack.MapStringInt32Entry
|
||||
nil, // 2: goproto.proto.test.TestFieldTrack.MapStringInt64Entry
|
||||
@ -1006,7 +1006,7 @@ func file_internal_testprotos_fieldtrack_fieldtrack_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_fieldtrack_fieldtrack_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_fieldtrack_fieldtrack_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*TestFieldTrack); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -194,7 +194,7 @@ func file_internal_testprotos_fuzz_fuzz_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_internal_testprotos_fuzz_fuzz_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_internal_testprotos_fuzz_fuzz_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_fuzz_fuzz_proto_goTypes = []any{
|
||||
(*Fuzz)(nil), // 0: goproto.proto.fuzz.Fuzz
|
||||
(*test.TestAllTypes)(nil), // 1: goproto.proto.test.TestAllTypes
|
||||
(*test.TestAllExtensions)(nil), // 2: goproto.proto.test.TestAllExtensions
|
||||
@ -227,7 +227,7 @@ func file_internal_testprotos_fuzz_fuzz_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_fuzz_fuzz_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_fuzz_fuzz_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Fuzz); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -266,7 +266,7 @@ func file_internal_testprotos_irregular_test_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_internal_testprotos_irregular_test_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_internal_testprotos_irregular_test_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_irregular_test_proto_goTypes = []any{
|
||||
(*Message)(nil), // 0: goproto.proto.irregular.Message
|
||||
nil, // 1: goproto.proto.irregular.Message.MapMessageEntry
|
||||
nil, // 2: goproto.proto.irregular.Message.MapAberrantMessageEntry
|
||||
@ -300,7 +300,7 @@ func file_internal_testprotos_irregular_test_proto_init() {
|
||||
}
|
||||
file_internal_testprotos_irregular_irregular_proto_init()
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_irregular_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_irregular_test_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -313,7 +313,7 @@ func file_internal_testprotos_irregular_test_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_irregular_test_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_internal_testprotos_irregular_test_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*Message_OneofMessage)(nil),
|
||||
(*Message_OneofAberrantMessage)(nil),
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ func file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_raw
|
||||
}
|
||||
|
||||
var file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
||||
var file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_goTypes = []any{
|
||||
(*Sub)(nil), // 0: lazy_extension_normalized_wire_test.Sub
|
||||
(*Top)(nil), // 1: lazy_extension_normalized_wire_test.Top
|
||||
(*Ext)(nil), // 2: lazy_extension_normalized_wire_test.Ext
|
||||
@ -261,7 +261,7 @@ func file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_ini
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Sub); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -275,7 +275,7 @@ func file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_ini
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Top); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -287,7 +287,7 @@ func file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_ini
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Ext); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -704,7 +704,7 @@ func file_internal_testprotos_lazy_lazy_extension_test_proto_rawDescGZIP() []byt
|
||||
|
||||
var file_internal_testprotos_lazy_lazy_extension_test_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||||
var file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_internal_testprotos_lazy_lazy_extension_test_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_lazy_lazy_extension_test_proto_goTypes = []any{
|
||||
(FlyingFoxSpecies)(0), // 0: lazy_extension_test.FlyingFoxSpecies
|
||||
(PipistrelleSpecies)(0), // 1: lazy_extension_test.PipistrelleSpecies
|
||||
(*Holder)(nil), // 2: lazy_extension_test.Holder
|
||||
@ -750,7 +750,7 @@ func file_internal_testprotos_lazy_lazy_extension_test_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Holder); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -762,7 +762,7 @@ func file_internal_testprotos_lazy_lazy_extension_test_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Rabbit); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -774,7 +774,7 @@ func file_internal_testprotos_lazy_lazy_extension_test_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*FlyingFox); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -786,7 +786,7 @@ func file_internal_testprotos_lazy_lazy_extension_test_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Tree); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -800,7 +800,7 @@ func file_internal_testprotos_lazy_lazy_extension_test_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[4].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Pipistrelle); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -812,7 +812,7 @@ func file_internal_testprotos_lazy_lazy_extension_test_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[5].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Pipistrelles); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -824,7 +824,7 @@ func file_internal_testprotos_lazy_lazy_extension_test_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[6].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*BatNest); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -281,7 +281,7 @@ func file_internal_testprotos_legacy_legacy_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_internal_testprotos_legacy_legacy_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_internal_testprotos_legacy_legacy_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_legacy_legacy_proto_goTypes = []any{
|
||||
(*Legacy)(nil), // 0: google.golang.org.Legacy
|
||||
(*proto2_20160225_2fc053c5.Message)(nil), // 1: google.golang.org.proto2_20160225.Message
|
||||
(*proto3_20160225_2fc053c5.Message)(nil), // 2: google.golang.org.proto3_20160225.Message
|
||||
@ -322,7 +322,7 @@ func file_internal_testprotos_legacy_legacy_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_legacy_legacy_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_legacy_legacy_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Legacy); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -136,7 +136,7 @@ func file_internal_testprotos_messageset_messagesetpb_message_set_proto_rawDescG
|
||||
}
|
||||
|
||||
var file_internal_testprotos_messageset_messagesetpb_message_set_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_internal_testprotos_messageset_messagesetpb_message_set_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_messageset_messagesetpb_message_set_proto_goTypes = []any{
|
||||
(*MessageSet)(nil), // 0: goproto.proto.messageset.MessageSet
|
||||
(*MessageSetContainer)(nil), // 1: goproto.proto.messageset.MessageSetContainer
|
||||
}
|
||||
@ -155,7 +155,7 @@ func file_internal_testprotos_messageset_messagesetpb_message_set_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_messageset_messagesetpb_message_set_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_messageset_messagesetpb_message_set_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*MessageSet); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -169,7 +169,7 @@ func file_internal_testprotos_messageset_messagesetpb_message_set_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_messageset_messagesetpb_message_set_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_messageset_messagesetpb_message_set_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*MessageSetContainer); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -325,7 +325,7 @@ func file_internal_testprotos_messageset_msetextpb_msetextpb_proto_rawDescGZIP()
|
||||
}
|
||||
|
||||
var file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_internal_testprotos_messageset_msetextpb_msetextpb_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_messageset_msetextpb_msetextpb_proto_goTypes = []any{
|
||||
(*Ext1)(nil), // 0: goproto.proto.messageset.Ext1
|
||||
(*Ext2)(nil), // 1: goproto.proto.messageset.Ext2
|
||||
(*ExtRequired)(nil), // 2: goproto.proto.messageset.ExtRequired
|
||||
@ -354,7 +354,7 @@ func file_internal_testprotos_messageset_msetextpb_msetextpb_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Ext1); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -366,7 +366,7 @@ func file_internal_testprotos_messageset_msetextpb_msetextpb_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Ext2); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -378,7 +378,7 @@ func file_internal_testprotos_messageset_msetextpb_msetextpb_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ExtRequired); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -390,7 +390,7 @@ func file_internal_testprotos_messageset_msetextpb_msetextpb_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[3].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*ExtLargeNumber); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -335,7 +335,7 @@ func file_internal_testprotos_news_news_proto_rawDescGZIP() []byte {
|
||||
|
||||
var file_internal_testprotos_news_news_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||
var file_internal_testprotos_news_news_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
||||
var file_internal_testprotos_news_news_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_news_news_proto_goTypes = []any{
|
||||
(Article_Status)(0), // 0: google.golang.org.Article.Status
|
||||
(*Article)(nil), // 1: google.golang.org.Article
|
||||
(*BinaryAttachment)(nil), // 2: google.golang.org.BinaryAttachment
|
||||
@ -362,7 +362,7 @@ func file_internal_testprotos_news_news_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_news_news_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_news_news_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Article); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -374,7 +374,7 @@ func file_internal_testprotos_news_news_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_news_news_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_news_news_proto_msgTypes[1].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*BinaryAttachment); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -386,7 +386,7 @@ func file_internal_testprotos_news_news_proto_init() {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_news_news_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_news_news_proto_msgTypes[2].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*KeyValueAttachment); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
|
@ -54,8 +54,8 @@ type Proto2 struct {
|
||||
func (x *Proto2) ProtoMessage() {}
|
||||
func (x *Proto2) Reset() { *x = Proto2{} }
|
||||
func (x *Proto2) String() string { return prototext.Format(protoimpl.X.ProtoMessageV2Of(x)) }
|
||||
func (x *Proto2) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
func (x *Proto2) XXX_OneofWrappers() []any {
|
||||
return []any{
|
||||
(*Proto2_OneofBool)(nil),
|
||||
(*Proto2_OneofInt32)(nil),
|
||||
(*Proto2_OneofInt64)(nil),
|
||||
@ -161,8 +161,8 @@ type Proto3 struct {
|
||||
func (x *Proto3) ProtoMessage() {}
|
||||
func (x *Proto3) Reset() { *x = Proto3{} }
|
||||
func (x *Proto3) String() string { return prototext.Format(protoimpl.X.ProtoMessageV2Of(x)) }
|
||||
func (x *Proto3) XXX_OneofWrappers() []interface{} {
|
||||
return []interface{}{
|
||||
func (x *Proto3) XXX_OneofWrappers() []any {
|
||||
return []any{
|
||||
(*Proto3_OneofBool)(nil),
|
||||
(*Proto3_OneofInt32)(nil),
|
||||
(*Proto3_OneofInt64)(nil),
|
||||
|
@ -190,7 +190,7 @@ func file_internal_testprotos_order_order_proto_rawDescGZIP() []byte {
|
||||
}
|
||||
|
||||
var file_internal_testprotos_order_order_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_internal_testprotos_order_order_proto_goTypes = []interface{}{
|
||||
var file_internal_testprotos_order_order_proto_goTypes = []any{
|
||||
(*Message)(nil), // 0: goproto.proto.order.Message
|
||||
}
|
||||
var file_internal_testprotos_order_order_proto_depIdxs = []int32{
|
||||
@ -210,7 +210,7 @@ func file_internal_testprotos_order_order_proto_init() {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_internal_testprotos_order_order_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
file_internal_testprotos_order_order_proto_msgTypes[0].Exporter = func(v any, i int) any {
|
||||
switch v := v.(*Message); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
@ -225,7 +225,7 @@ func file_internal_testprotos_order_order_proto_init() {
|
||||
}
|
||||
}
|
||||
}
|
||||
file_internal_testprotos_order_order_proto_msgTypes[0].OneofWrappers = []interface{}{
|
||||
file_internal_testprotos_order_order_proto_msgTypes[0].OneofWrappers = []any{
|
||||
(*Message_Field_10)(nil),
|
||||
}
|
||||
type x struct{}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user