diff --git a/cmd/protoc-gen-go/internal_gengo/main.go b/cmd/protoc-gen-go/internal_gengo/main.go index 9302b7702..a58058c47 100644 --- a/cmd/protoc-gen-go/internal_gengo/main.go +++ b/cmd/protoc-gen-go/internal_gengo/main.go @@ -50,6 +50,7 @@ const ( syncPackage = protogen.GoImportPath("sync") timePackage = protogen.GoImportPath("time") utf8Package = protogen.GoImportPath("unicode/utf8") + unsafePackage = protogen.GoImportPath("unsafe") ) // Protobuf library dependencies. diff --git a/cmd/protoc-gen-go/internal_gengo/reflect.go b/cmd/protoc-gen-go/internal_gengo/reflect.go index 2cf204f26..d44e55e76 100644 --- a/cmd/protoc-gen-go/internal_gengo/reflect.go +++ b/cmd/protoc-gen-go/internal_gengo/reflect.go @@ -187,7 +187,12 @@ func genReflectFileDescriptor(gen *protogen.Plugin, g *protogen.GeneratedFile, f g.P("out := ", protoimplPackage.Ident("TypeBuilder"), "{") g.P("File: ", protoimplPackage.Ident("DescBuilder"), "{") g.P("GoPackagePath: ", reflectPackage.Ident("TypeOf"), "(x{}).PkgPath(),") - g.P("RawDescriptor: []byte(", rawDescVarName(f), "),") + // Avoid a copy of the descriptor by using an inlined version of + // [strs.UnsafeBytes] (gencode cannot depend on internal/strs). + // This means modification of the RawDescriptor byte slice + // will crash the program. But generated RawDescriptors + // are never supposed to be modified anyway. + g.P("RawDescriptor: ", unsafePackage.Ident("Slice"), "(", unsafePackage.Ident("StringData"), "(", rawDescVarName(f), "), len(", rawDescVarName(f), ")),") g.P("NumEnums: ", len(f.allEnums), ",") g.P("NumMessages: ", len(f.allMessages), ",") g.P("NumExtensions: ", len(f.allExtensions), ",") diff --git a/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go b/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go index 19e5a8809..f7bada24d 100644 --- a/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go +++ b/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type AnnotationsTestEnum int32 @@ -170,7 +171,7 @@ func file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go.meta b/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go.meta index 6aec4480c..1e0ce1464 100644 --- a/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go.meta +++ b/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go.meta @@ -1 +1 @@ -annotation:{path:5 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:512 end:531} annotation:{path:5 path:0 path:2 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:548 end:595} annotation:{path:4 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:1954 end:1976} annotation:{path:4 path:0 path:2 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:2053 end:2073} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:2256 end:2266} annotation:{path:4 path:0 path:2 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3437 end:3460} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3603 end:3607} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3770 end:3774 semantic:SET} \ No newline at end of file +annotation:{path:5 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:529 end:548} annotation:{path:5 path:0 path:2 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:565 end:612} annotation:{path:4 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:1971 end:1993} annotation:{path:4 path:0 path:2 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:2070 end:2090} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:2273 end:2283} annotation:{path:4 path:0 path:2 path:0 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3454 end:3477} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3620 end:3624} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3787 end:3791 semantic:SET} \ No newline at end of file diff --git a/cmd/protoc-gen-go/testdata/comments/comments.pb.go b/cmd/protoc-gen-go/testdata/comments/comments.pb.go index 3ec583169..71b5791d5 100644 --- a/cmd/protoc-gen-go/testdata/comments/comments.pb.go +++ b/cmd/protoc-gen-go/testdata/comments/comments.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) // COMMENT: Enum1.Leading @@ -408,7 +409,7 @@ func file_cmd_protoc_gen_go_testdata_comments_comments_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_comments_comments_proto_rawDesc)), NumEnums: 1, NumMessages: 6, NumExtensions: 1, diff --git a/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go b/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go index 34c47087a..58d829b1f 100644 --- a/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go +++ b/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) // Deprecated: The entire proto file cmd/protoc-gen-go/testdata/comments/deprecated.proto is marked as deprecated. @@ -145,7 +146,7 @@ func file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/enumprefix/enumprefix.pb.go b/cmd/protoc-gen-go/testdata/enumprefix/enumprefix.pb.go index cf5ae3c05..989ce5425 100644 --- a/cmd/protoc-gen-go/testdata/enumprefix/enumprefix.pb.go +++ b/cmd/protoc-gen-go/testdata/enumprefix/enumprefix.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Strip int32 @@ -217,7 +218,7 @@ func file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_enumprefix_enumprefix_proto_rawDesc)), NumEnums: 4, NumMessages: 0, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/extensions/base/base.pb.go b/cmd/protoc-gen-go/testdata/extensions/base/base.pb.go index 6913ed0db..f4edfdb69 100644 --- a/cmd/protoc-gen-go/testdata/extensions/base/base.pb.go +++ b/cmd/protoc-gen-go/testdata/extensions/base/base.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type BaseMessage struct { @@ -134,7 +135,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/extensions/ext/ext.pb.go b/cmd/protoc-gen-go/testdata/extensions/ext/ext.pb.go index 6a96cbb3d..9f946e1f9 100644 --- a/cmd/protoc-gen-go/testdata/extensions/ext/ext.pb.go +++ b/cmd/protoc-gen-go/testdata/extensions/ext/ext.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Enum int32 @@ -945,7 +946,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_rawDesc)), NumEnums: 1, NumMessages: 8, NumExtensions: 44, diff --git a/cmd/protoc-gen-go/testdata/extensions/extra/extra.pb.go b/cmd/protoc-gen-go/testdata/extensions/extra/extra.pb.go index 04f0040a2..0774258ba 100644 --- a/cmd/protoc-gen-go/testdata/extensions/extra/extra.pb.go +++ b/cmd/protoc-gen-go/testdata/extensions/extra/extra.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ExtraMessage struct { @@ -95,7 +96,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.pb.go b/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.pb.go index 8d3d61e64..3440f00a9 100644 --- a/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.pb.go +++ b/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.pb.go @@ -13,6 +13,7 @@ import ( descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Enum int32 @@ -519,7 +520,7 @@ func file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 34, diff --git a/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.pb.go b/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.pb.go index d3f9db113..52b088acf 100644 --- a/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.pb.go +++ b/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) // Assorted edge cases in field name conflict resolution. @@ -363,7 +364,7 @@ func file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/import_public/a.pb.go b/cmd/protoc-gen-go/testdata/import_public/a.pb.go index 208976c86..8612d3ca4 100644 --- a/cmd/protoc-gen-go/testdata/import_public/a.pb.go +++ b/cmd/protoc-gen-go/testdata/import_public/a.pb.go @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) // Symbols defined in public import of cmd/protoc-gen-go/testdata/import_public/sub/a.proto. @@ -157,7 +158,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_a_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_a_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/import_public/b.pb.go b/cmd/protoc-gen-go/testdata/import_public/b.pb.go index be811f7e4..75f278b76 100644 --- a/cmd/protoc-gen-go/testdata/import_public/b.pb.go +++ b/cmd/protoc-gen-go/testdata/import_public/b.pb.go @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Local struct { @@ -108,7 +109,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_b_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_b_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/import_public/c.pb.go b/cmd/protoc-gen-go/testdata/import_public/c.pb.go index 47a5e4896..95020cc55 100644 --- a/cmd/protoc-gen-go/testdata/import_public/c.pb.go +++ b/cmd/protoc-gen-go/testdata/import_public/c.pb.go @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type UsingPublicImport struct { @@ -112,7 +113,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_c_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_c_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/import_public/sub/a.pb.go b/cmd/protoc-gen-go/testdata/import_public/sub/a.pb.go index 3688b9fde..bae4a0cf7 100644 --- a/cmd/protoc-gen-go/testdata/import_public/sub/a.pb.go +++ b/cmd/protoc-gen-go/testdata/import_public/sub/a.pb.go @@ -14,6 +14,7 @@ import ( math "math" reflect "reflect" sync "sync" + unsafe "unsafe" ) // Symbols defined in public import of cmd/protoc-gen-go/testdata/import_public/sub2/a.proto. @@ -459,7 +460,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_rawDesc)), NumEnums: 3, NumMessages: 2, NumExtensions: 1, diff --git a/cmd/protoc-gen-go/testdata/import_public/sub/b.pb.go b/cmd/protoc-gen-go/testdata/import_public/sub/b.pb.go index f8e21f925..c58b16485 100644 --- a/cmd/protoc-gen-go/testdata/import_public/sub/b.pb.go +++ b/cmd/protoc-gen-go/testdata/import_public/sub/b.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type M2 struct { @@ -87,7 +88,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/import_public/sub2/a.pb.go b/cmd/protoc-gen-go/testdata/import_public/sub2/a.pb.go index c6c6b6b03..29b26a11f 100644 --- a/cmd/protoc-gen-go/testdata/import_public/sub2/a.pb.go +++ b/cmd/protoc-gen-go/testdata/import_public/sub2/a.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Sub2Message struct { @@ -87,7 +88,7 @@ func file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/imports/fmt/m.pb.go b/cmd/protoc-gen-go/testdata/imports/fmt/m.pb.go index 24d78a5c6..c7eae6b1a 100644 --- a/cmd/protoc-gen-go/testdata/imports/fmt/m.pb.go +++ b/cmd/protoc-gen-go/testdata/imports/fmt/m.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type M struct { @@ -87,7 +88,7 @@ func file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/imports/test_a_1/m1.pb.go b/cmd/protoc-gen-go/testdata/imports/test_a_1/m1.pb.go index 64d9cb488..700eac58b 100644 --- a/cmd/protoc-gen-go/testdata/imports/test_a_1/m1.pb.go +++ b/cmd/protoc-gen-go/testdata/imports/test_a_1/m1.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type E1 int32 @@ -178,7 +179,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_rawDesc)), NumEnums: 1, NumMessages: 2, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/imports/test_a_1/m2.pb.go b/cmd/protoc-gen-go/testdata/imports/test_a_1/m2.pb.go index 293c55dcb..b187a8c17 100644 --- a/cmd/protoc-gen-go/testdata/imports/test_a_1/m2.pb.go +++ b/cmd/protoc-gen-go/testdata/imports/test_a_1/m2.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type M2 struct { @@ -87,7 +88,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/imports/test_a_2/m3.pb.go b/cmd/protoc-gen-go/testdata/imports/test_a_2/m3.pb.go index 8798b84c4..14613d28a 100644 --- a/cmd/protoc-gen-go/testdata/imports/test_a_2/m3.pb.go +++ b/cmd/protoc-gen-go/testdata/imports/test_a_2/m3.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type M3 struct { @@ -87,7 +88,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/imports/test_a_2/m4.pb.go b/cmd/protoc-gen-go/testdata/imports/test_a_2/m4.pb.go index 7294c4a52..fd06023ba 100644 --- a/cmd/protoc-gen-go/testdata/imports/test_a_2/m4.pb.go +++ b/cmd/protoc-gen-go/testdata/imports/test_a_2/m4.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type M4 struct { @@ -87,7 +88,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/imports/test_b_1/m1.pb.go b/cmd/protoc-gen-go/testdata/imports/test_b_1/m1.pb.go index 610450422..82cf84c41 100644 --- a/cmd/protoc-gen-go/testdata/imports/test_b_1/m1.pb.go +++ b/cmd/protoc-gen-go/testdata/imports/test_b_1/m1.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type M1 struct { @@ -87,7 +88,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.pb.go b/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.pb.go index b548576cb..1faafba89 100644 --- a/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.pb.go +++ b/cmd/protoc-gen-go/testdata/imports/test_b_1/m2.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type M2 struct { @@ -87,7 +88,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/imports/test_import_a1m1.pb.go b/cmd/protoc-gen-go/testdata/imports/test_import_a1m1.pb.go index bf940e574..341abc3fc 100644 --- a/cmd/protoc-gen-go/testdata/imports/test_import_a1m1.pb.go +++ b/cmd/protoc-gen-go/testdata/imports/test_import_a1m1.pb.go @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type A1M1 struct { @@ -98,7 +99,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/imports/test_import_a1m2.pb.go b/cmd/protoc-gen-go/testdata/imports/test_import_a1m2.pb.go index 92adc7114..b974d5ecf 100644 --- a/cmd/protoc-gen-go/testdata/imports/test_import_a1m2.pb.go +++ b/cmd/protoc-gen-go/testdata/imports/test_import_a1m2.pb.go @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type A1M2 struct { @@ -98,7 +99,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/imports/test_import_all.pb.go b/cmd/protoc-gen-go/testdata/imports/test_import_all.pb.go index f4683a37c..2d0ec3043 100644 --- a/cmd/protoc-gen-go/testdata/imports/test_import_all.pb.go +++ b/cmd/protoc-gen-go/testdata/imports/test_import_all.pb.go @@ -16,6 +16,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type All struct { @@ -141,7 +142,7 @@ func file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.pb.go b/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.pb.go index 9ddabcbe4..224933c1d 100644 --- a/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.pb.go +++ b/cmd/protoc-gen-go/testdata/issue780_oneof_conflict/test.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Foo struct { @@ -120,7 +121,7 @@ func file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid/test_name_clash_hybrid.pb.go b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid/test_name_clash_hybrid.pb.go index bbfb9c4d4..1ec86a7a6 100644 --- a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid/test_name_clash_hybrid.pb.go +++ b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid/test_name_clash_hybrid.pb.go @@ -33,6 +33,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type M1 struct { @@ -3672,7 +3673,7 @@ func file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid_proto_init out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 20, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid/test_name_clash_hybrid_protoopaque.pb.go b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid/test_name_clash_hybrid_protoopaque.pb.go index 068d91dd6..bd6ea4803 100644 --- a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid/test_name_clash_hybrid_protoopaque.pb.go +++ b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid/test_name_clash_hybrid_protoopaque.pb.go @@ -33,6 +33,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type M1 struct { @@ -3385,7 +3386,7 @@ func file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid_proto_init out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 20, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid3/test_name_clash_hybrid3.pb.go b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid3/test_name_clash_hybrid3.pb.go index da039f26e..3f4efbdfd 100644 --- a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid3/test_name_clash_hybrid3.pb.go +++ b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid3/test_name_clash_hybrid3.pb.go @@ -33,6 +33,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type M0 struct { @@ -3763,7 +3764,7 @@ func file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid3_proto_ini out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid3_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid3_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid3_proto_rawDesc)), NumEnums: 0, NumMessages: 21, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid3/test_name_clash_hybrid3_protoopaque.pb.go b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid3/test_name_clash_hybrid3_protoopaque.pb.go index b7268ac5e..1b66171e5 100644 --- a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid3/test_name_clash_hybrid3_protoopaque.pb.go +++ b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_hybrid3/test_name_clash_hybrid3_protoopaque.pb.go @@ -33,6 +33,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type M0 struct { @@ -3271,7 +3272,7 @@ func file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid3_proto_ini out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid3_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid3_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_hybrid3_proto_rawDesc)), NumEnums: 0, NumMessages: 21, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_opaque/test_name_clash_opaque.pb.go b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_opaque/test_name_clash_opaque.pb.go index 2ff44f0f0..005672ab8 100644 --- a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_opaque/test_name_clash_opaque.pb.go +++ b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_opaque/test_name_clash_opaque.pb.go @@ -31,6 +31,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type M1 struct { @@ -3383,7 +3384,7 @@ func file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_opaque_proto_init out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_opaque_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_opaque_proto_rawDesc)), NumEnums: 0, NumMessages: 20, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_opaque3/test_name_clash_opaque3.pb.go b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_opaque3/test_name_clash_opaque3.pb.go index b0da4efcb..2b475f05e 100644 --- a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_opaque3/test_name_clash_opaque3.pb.go +++ b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_opaque3/test_name_clash_opaque3.pb.go @@ -31,6 +31,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type M0 struct { @@ -3269,7 +3270,7 @@ func file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_opaque3_proto_ini out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_opaque3_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_opaque3_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_opaque3_proto_rawDesc)), NumEnums: 0, NumMessages: 21, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_open/test_name_clash_open.pb.go b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_open/test_name_clash_open.pb.go index 168c67419..08688c1d0 100644 --- a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_open/test_name_clash_open.pb.go +++ b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_open/test_name_clash_open.pb.go @@ -32,6 +32,7 @@ import ( _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" sync "sync" + unsafe "unsafe" ) type M1 struct { @@ -856,7 +857,7 @@ func file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_init() out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_open3/test_name_clash_open3.pb.go b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_open3/test_name_clash_open3.pb.go index 9af4d4ff1..3dad284b2 100644 --- a/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_open3/test_name_clash_open3.pb.go +++ b/cmd/protoc-gen-go/testdata/nameclash/test_name_clash_open3/test_name_clash_open3.pb.go @@ -32,6 +32,7 @@ import ( _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" sync "sync" + unsafe "unsafe" ) type M0 struct { @@ -920,7 +921,7 @@ func file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open3_proto_init( out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open3_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open3_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_nameclash_test_name_clash_open3_proto_rawDesc)), NumEnums: 0, NumMessages: 10, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/nopackage/nopackage.pb.go b/cmd/protoc-gen-go/testdata/nopackage/nopackage.pb.go index 817bb1cb8..472af9b12 100644 --- a/cmd/protoc-gen-go/testdata/nopackage/nopackage.pb.go +++ b/cmd/protoc-gen-go/testdata/nopackage/nopackage.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Enum int32 @@ -164,7 +165,7 @@ func file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/proto2/enum.pb.go b/cmd/protoc-gen-go/testdata/proto2/enum.pb.go index 37ef41469..2dc6fe42a 100644 --- a/cmd/protoc-gen-go/testdata/proto2/enum.pb.go +++ b/cmd/protoc-gen-go/testdata/proto2/enum.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) // EnumType1 comment. @@ -486,7 +487,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_enum_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_proto2_enum_proto_rawDesc)), NumEnums: 6, NumMessages: 2, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/proto2/fields.pb.go b/cmd/protoc-gen-go/testdata/proto2/fields.pb.go index 8b62d3477..d83e95e86 100644 --- a/cmd/protoc-gen-go/testdata/proto2/fields.pb.go +++ b/cmd/protoc-gen-go/testdata/proto2/fields.pb.go @@ -13,6 +13,7 @@ import ( math "math" reflect "reflect" sync "sync" + unsafe "unsafe" ) type FieldTestMessage_Enum int32 @@ -1451,7 +1452,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_fields_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_proto2_fields_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_proto2_fields_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_proto2_fields_proto_rawDesc)), NumEnums: 1, NumMessages: 9, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/proto2/nested_messages.pb.go b/cmd/protoc-gen-go/testdata/proto2/nested_messages.pb.go index 7455a0c82..829ee66f2 100644 --- a/cmd/protoc-gen-go/testdata/proto2/nested_messages.pb.go +++ b/cmd/protoc-gen-go/testdata/proto2/nested_messages.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Layer1 struct { @@ -188,7 +189,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/proto2/proto2.pb.go b/cmd/protoc-gen-go/testdata/proto2/proto2.pb.go index 6a537ee31..9c0fa4fe5 100644 --- a/cmd/protoc-gen-go/testdata/proto2/proto2.pb.go +++ b/cmd/protoc-gen-go/testdata/proto2/proto2.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Message struct { @@ -104,7 +105,7 @@ func file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/proto3/enum.pb.go b/cmd/protoc-gen-go/testdata/proto3/enum.pb.go index 62eec7732..b5fce1a9a 100644 --- a/cmd/protoc-gen-go/testdata/proto3/enum.pb.go +++ b/cmd/protoc-gen-go/testdata/proto3/enum.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Enum int32 @@ -100,7 +101,7 @@ func file_cmd_protoc_gen_go_testdata_proto3_enum_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_proto3_enum_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_proto3_enum_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_proto3_enum_proto_rawDesc)), NumEnums: 1, NumMessages: 0, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/proto3/fields.pb.go b/cmd/protoc-gen-go/testdata/proto3/fields.pb.go index a0f8f5512..9894d865c 100644 --- a/cmd/protoc-gen-go/testdata/proto3/fields.pb.go +++ b/cmd/protoc-gen-go/testdata/proto3/fields.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type FieldTestMessage_Enum int32 @@ -477,7 +478,7 @@ func file_cmd_protoc_gen_go_testdata_proto3_fields_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_proto3_fields_proto_rawDesc)), NumEnums: 1, NumMessages: 5, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/protoeditions/enum.pb.go b/cmd/protoc-gen-go/testdata/protoeditions/enum.pb.go index 3e316834e..50bd13165 100644 --- a/cmd/protoc-gen-go/testdata/protoeditions/enum.pb.go +++ b/cmd/protoc-gen-go/testdata/protoeditions/enum.pb.go @@ -13,6 +13,7 @@ import ( _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" sync "sync" + unsafe "unsafe" ) // EnumType1 comment. @@ -487,7 +488,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_rawDesc)), NumEnums: 7, NumMessages: 2, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/protoeditions/fields.pb.go b/cmd/protoc-gen-go/testdata/protoeditions/fields.pb.go index cf010a465..a2e1642e2 100644 --- a/cmd/protoc-gen-go/testdata/protoeditions/fields.pb.go +++ b/cmd/protoc-gen-go/testdata/protoeditions/fields.pb.go @@ -13,6 +13,7 @@ import ( math "math" reflect "reflect" sync "sync" + unsafe "unsafe" ) type FieldTestMessage_Enum int32 @@ -1441,7 +1442,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_rawDesc)), NumEnums: 1, NumMessages: 9, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/protoeditions/legacy_enum.pb.go b/cmd/protoc-gen-go/testdata/protoeditions/legacy_enum.pb.go index dc6269172..ca2458428 100644 --- a/cmd/protoc-gen-go/testdata/protoeditions/legacy_enum.pb.go +++ b/cmd/protoc-gen-go/testdata/protoeditions/legacy_enum.pb.go @@ -13,6 +13,7 @@ import ( _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" sync "sync" + unsafe "unsafe" ) // EnumTypeWithLegacyUnmarshalJSON comment. @@ -255,7 +256,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_legacy_enum_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_protoeditions_legacy_enum_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_protoeditions_legacy_enum_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_protoeditions_legacy_enum_proto_rawDesc)), NumEnums: 3, NumMessages: 1, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/protoeditions/maps_and_delimited.pb.go b/cmd/protoc-gen-go/testdata/protoeditions/maps_and_delimited.pb.go index 15d975297..d0150ed38 100644 --- a/cmd/protoc-gen-go/testdata/protoeditions/maps_and_delimited.pb.go +++ b/cmd/protoc-gen-go/testdata/protoeditions/maps_and_delimited.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type MessageWithMaps struct { @@ -189,7 +190,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_maps_and_delimited_proto_init out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_protoeditions_maps_and_delimited_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_protoeditions_maps_and_delimited_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_protoeditions_maps_and_delimited_proto_rawDesc)), NumEnums: 0, NumMessages: 5, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/protoeditions/nested_messages.pb.go b/cmd/protoc-gen-go/testdata/protoeditions/nested_messages.pb.go index 5f56af7a5..0cc38c3a4 100644 --- a/cmd/protoc-gen-go/testdata/protoeditions/nested_messages.pb.go +++ b/cmd/protoc-gen-go/testdata/protoeditions/nested_messages.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Layer1 struct { @@ -188,7 +189,7 @@ func file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_init() out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, diff --git a/cmd/protoc-gen-go/testdata/retention/options_message.pb.go b/cmd/protoc-gen-go/testdata/retention/options_message.pb.go index 97667fea3..8835cd912 100755 --- a/cmd/protoc-gen-go/testdata/retention/options_message.pb.go +++ b/cmd/protoc-gen-go/testdata/retention/options_message.pb.go @@ -13,6 +13,7 @@ import ( descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) // Retention attributes set on fields nested within a message @@ -166,7 +167,7 @@ func file_cmd_protoc_gen_go_testdata_retention_options_message_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_retention_options_message_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 4, diff --git a/cmd/protoc-gen-go/testdata/retention/retention.pb.go b/cmd/protoc-gen-go/testdata/retention/retention.pb.go index 6da1944c0..6ee08bf8c 100755 --- a/cmd/protoc-gen-go/testdata/retention/retention.pb.go +++ b/cmd/protoc-gen-go/testdata/retention/retention.pb.go @@ -13,6 +13,7 @@ import ( descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) type TopLevelEnum int32 @@ -533,7 +534,7 @@ func file_cmd_protoc_gen_go_testdata_retention_retention_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_cmd_protoc_gen_go_testdata_retention_retention_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_cmd_protoc_gen_go_testdata_retention_retention_proto_rawDesc), len(file_cmd_protoc_gen_go_testdata_retention_retention_proto_rawDesc)), NumEnums: 2, NumMessages: 3, NumExtensions: 14, diff --git a/internal/testprotos/annotation/annotation.pb.go b/internal/testprotos/annotation/annotation.pb.go index 5eec8904d..1abbf8c7c 100644 --- a/internal/testprotos/annotation/annotation.pb.go +++ b/internal/testprotos/annotation/annotation.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" + unsafe "unsafe" ) var file_internal_testprotos_annotation_annotation_proto_extTypes = []protoimpl.ExtensionInfo{ @@ -61,7 +62,7 @@ func file_internal_testprotos_annotation_annotation_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_annotation_annotation_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_annotation_annotation_proto_rawDesc), len(file_internal_testprotos_annotation_annotation_proto_rawDesc)), NumEnums: 0, NumMessages: 0, NumExtensions: 1, diff --git a/internal/testprotos/benchmarks/micro/micro.pb.go b/internal/testprotos/benchmarks/micro/micro.pb.go index c84c494d5..58ad20f0c 100644 --- a/internal/testprotos/benchmarks/micro/micro.pb.go +++ b/internal/testprotos/benchmarks/micro/micro.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type SixteenRequired struct { @@ -215,7 +216,7 @@ func file_internal_testprotos_benchmarks_micro_micro_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_benchmarks_micro_micro_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_benchmarks_micro_micro_proto_rawDesc), len(file_internal_testprotos_benchmarks_micro_micro_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/conformance/conformance.pb.go b/internal/testprotos/conformance/conformance.pb.go index 449e03e2f..fd805b74b 100644 --- a/internal/testprotos/conformance/conformance.pb.go +++ b/internal/testprotos/conformance/conformance.pb.go @@ -15,6 +15,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type WireFormat int32 @@ -759,7 +760,7 @@ func file_conformance_conformance_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_conformance_conformance_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_conformance_conformance_proto_rawDesc), len(file_conformance_conformance_proto_rawDesc)), NumEnums: 2, NumMessages: 5, NumExtensions: 0, diff --git a/internal/testprotos/conformance/editions/test_messages_edition2023.pb.go b/internal/testprotos/conformance/editions/test_messages_edition2023.pb.go index 3bf1f65a5..1439d1b8b 100644 --- a/internal/testprotos/conformance/editions/test_messages_edition2023.pb.go +++ b/internal/testprotos/conformance/editions/test_messages_edition2023.pb.go @@ -15,6 +15,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ForeignEnumEdition2023 int32 @@ -1447,7 +1448,7 @@ func file_conformance_test_protos_test_messages_edition2023_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_conformance_test_protos_test_messages_edition2023_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_conformance_test_protos_test_messages_edition2023_proto_rawDesc), len(file_conformance_test_protos_test_messages_edition2023_proto_rawDesc)), NumEnums: 2, NumMessages: 25, NumExtensions: 3, diff --git a/internal/testprotos/conformance/editionsmigration/test_messages_proto2_editions.pb.go b/internal/testprotos/conformance/editionsmigration/test_messages_proto2_editions.pb.go index 9580449dc..d53a1d84f 100644 --- a/internal/testprotos/conformance/editionsmigration/test_messages_proto2_editions.pb.go +++ b/internal/testprotos/conformance/editionsmigration/test_messages_proto2_editions.pb.go @@ -21,6 +21,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ForeignEnumProto2 int32 @@ -2979,7 +2980,7 @@ func file_editions_golden_test_messages_proto2_editions_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_editions_golden_test_messages_proto2_editions_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_editions_golden_test_messages_proto2_editions_proto_rawDesc), len(file_editions_golden_test_messages_proto2_editions_proto_rawDesc)), NumEnums: 4, NumMessages: 40, NumExtensions: 6, diff --git a/internal/testprotos/conformance/editionsmigration/test_messages_proto3_editions.pb.go b/internal/testprotos/conformance/editionsmigration/test_messages_proto3_editions.pb.go index e7c38c9e6..d3edc8185 100644 --- a/internal/testprotos/conformance/editionsmigration/test_messages_proto3_editions.pb.go +++ b/internal/testprotos/conformance/editionsmigration/test_messages_proto3_editions.pb.go @@ -27,6 +27,7 @@ import ( wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ForeignEnum int32 @@ -1920,7 +1921,7 @@ func file_editions_golden_test_messages_proto3_editions_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_editions_golden_test_messages_proto3_editions_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_editions_golden_test_messages_proto3_editions_proto_rawDesc), len(file_editions_golden_test_messages_proto3_editions_proto_rawDesc)), NumEnums: 4, NumMessages: 24, NumExtensions: 0, diff --git a/internal/testprotos/conformance/test_messages_proto2.pb.go b/internal/testprotos/conformance/test_messages_proto2.pb.go index 2f98f474b..85e289fe3 100644 --- a/internal/testprotos/conformance/test_messages_proto2.pb.go +++ b/internal/testprotos/conformance/test_messages_proto2.pb.go @@ -22,6 +22,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ForeignEnumProto2 int32 @@ -3020,7 +3021,7 @@ func file_google_protobuf_test_messages_proto2_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_test_messages_proto2_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_test_messages_proto2_proto_rawDesc), len(file_google_protobuf_test_messages_proto2_proto_rawDesc)), NumEnums: 4, NumMessages: 40, NumExtensions: 6, diff --git a/internal/testprotos/conformance/test_messages_proto3.pb.go b/internal/testprotos/conformance/test_messages_proto3.pb.go index 380c46161..63c1f15b2 100644 --- a/internal/testprotos/conformance/test_messages_proto3.pb.go +++ b/internal/testprotos/conformance/test_messages_proto3.pb.go @@ -28,6 +28,7 @@ import ( wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ForeignEnum int32 @@ -1921,7 +1922,7 @@ func file_google_protobuf_test_messages_proto3_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_test_messages_proto3_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_test_messages_proto3_proto_rawDesc), len(file_google_protobuf_test_messages_proto3_proto_rawDesc)), NumEnums: 4, NumMessages: 24, NumExtensions: 0, diff --git a/internal/testprotos/editionsfuzztest/test2.pb.go b/internal/testprotos/editionsfuzztest/test2.pb.go index efaa101a7..f85db5652 100644 --- a/internal/testprotos/editionsfuzztest/test2.pb.go +++ b/internal/testprotos/editionsfuzztest/test2.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type TestAllTypesProto2_NestedEnum int32 @@ -1216,7 +1217,7 @@ func file_internal_testprotos_editionsfuzztest_test2_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_editionsfuzztest_test2_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_editionsfuzztest_test2_proto_rawDesc), len(file_internal_testprotos_editionsfuzztest_test2_proto_rawDesc)), NumEnums: 1, NumMessages: 22, NumExtensions: 0, diff --git a/internal/testprotos/editionsfuzztest/test2editions.pb.go b/internal/testprotos/editionsfuzztest/test2editions.pb.go index 116cb70be..85e37e422 100644 --- a/internal/testprotos/editionsfuzztest/test2editions.pb.go +++ b/internal/testprotos/editionsfuzztest/test2editions.pb.go @@ -13,6 +13,7 @@ import ( _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" sync "sync" + unsafe "unsafe" ) type TestAllTypesProto2Editions_NestedEnum int32 @@ -1217,7 +1218,7 @@ func file_internal_testprotos_editionsfuzztest_test2editions_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_editionsfuzztest_test2editions_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_editionsfuzztest_test2editions_proto_rawDesc), len(file_internal_testprotos_editionsfuzztest_test2editions_proto_rawDesc)), NumEnums: 1, NumMessages: 22, NumExtensions: 0, diff --git a/internal/testprotos/editionsfuzztest/test3.pb.go b/internal/testprotos/editionsfuzztest/test3.pb.go index 3410514ae..eca159f49 100644 --- a/internal/testprotos/editionsfuzztest/test3.pb.go +++ b/internal/testprotos/editionsfuzztest/test3.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ForeignEnumProto3 int32 @@ -1112,7 +1113,7 @@ func file_internal_testprotos_editionsfuzztest_test3_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_editionsfuzztest_test3_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_editionsfuzztest_test3_proto_rawDesc), len(file_internal_testprotos_editionsfuzztest_test3_proto_rawDesc)), NumEnums: 2, NumMessages: 20, NumExtensions: 0, diff --git a/internal/testprotos/editionsfuzztest/test3editions.pb.go b/internal/testprotos/editionsfuzztest/test3editions.pb.go index 4bf7811d5..e2b0582b1 100644 --- a/internal/testprotos/editionsfuzztest/test3editions.pb.go +++ b/internal/testprotos/editionsfuzztest/test3editions.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ForeignEnumProto3Editions int32 @@ -1112,7 +1113,7 @@ func file_internal_testprotos_editionsfuzztest_test3editions_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_editionsfuzztest_test3editions_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_editionsfuzztest_test3editions_proto_rawDesc), len(file_internal_testprotos_editionsfuzztest_test3editions_proto_rawDesc)), NumEnums: 2, NumMessages: 20, NumExtensions: 0, diff --git a/internal/testprotos/enums/enums.pb.go b/internal/testprotos/enums/enums.pb.go index 7f8332c2b..a8990ffee 100644 --- a/internal/testprotos/enums/enums.pb.go +++ b/internal/testprotos/enums/enums.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Enum int32 @@ -115,7 +116,7 @@ func file_internal_testprotos_enums_enums_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_enums_enums_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_enums_enums_proto_rawDesc), len(file_internal_testprotos_enums_enums_proto_rawDesc)), NumEnums: 1, NumMessages: 0, NumExtensions: 0, diff --git a/internal/testprotos/enums/enums_hybrid/enums.hybrid.pb.go b/internal/testprotos/enums/enums_hybrid/enums.hybrid.pb.go index 18ae36d73..3aab7be13 100644 --- a/internal/testprotos/enums/enums_hybrid/enums.hybrid.pb.go +++ b/internal/testprotos/enums/enums_hybrid/enums.hybrid.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Enum int32 @@ -100,7 +101,7 @@ func file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_rawDesc), len(file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_rawDesc)), NumEnums: 1, NumMessages: 0, NumExtensions: 0, diff --git a/internal/testprotos/enums/enums_hybrid/enums.hybrid_protoopaque.pb.go b/internal/testprotos/enums/enums_hybrid/enums.hybrid_protoopaque.pb.go index e4f3d38e1..8c8478ba3 100644 --- a/internal/testprotos/enums/enums_hybrid/enums.hybrid_protoopaque.pb.go +++ b/internal/testprotos/enums/enums_hybrid/enums.hybrid_protoopaque.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Enum int32 @@ -100,7 +101,7 @@ func file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_rawDesc), len(file_internal_testprotos_enums_enums_hybrid_enums_hybrid_proto_rawDesc)), NumEnums: 1, NumMessages: 0, NumExtensions: 0, diff --git a/internal/testprotos/enums/enums_opaque/enums.opaque.pb.go b/internal/testprotos/enums/enums_opaque/enums.opaque.pb.go index c1f72268c..7e6c76c2f 100644 --- a/internal/testprotos/enums/enums_opaque/enums.opaque.pb.go +++ b/internal/testprotos/enums/enums_opaque/enums.opaque.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Enum int32 @@ -98,7 +99,7 @@ func file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_rawDesc), len(file_internal_testprotos_enums_enums_opaque_enums_opaque_proto_rawDesc)), NumEnums: 1, NumMessages: 0, NumExtensions: 0, diff --git a/internal/testprotos/examples/ext/extexample.pb.go b/internal/testprotos/examples/ext/extexample.pb.go index 46b711b07..8bb0ec1af 100644 --- a/internal/testprotos/examples/ext/extexample.pb.go +++ b/internal/testprotos/examples/ext/extexample.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Concert struct { @@ -136,7 +137,7 @@ func file_internal_testprotos_examples_ext_extexample_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_examples_ext_extexample_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_examples_ext_extexample_proto_rawDesc), len(file_internal_testprotos_examples_ext_extexample_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 1, diff --git a/internal/testprotos/fieldtrack/fieldtrack.pb.go b/internal/testprotos/fieldtrack/fieldtrack.pb.go index ce9f3ecde..7b26dd106 100644 --- a/internal/testprotos/fieldtrack/fieldtrack.pb.go +++ b/internal/testprotos/fieldtrack/fieldtrack.pb.go @@ -15,6 +15,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type TestFieldTrack struct { @@ -634,7 +635,7 @@ func file_internal_testprotos_fieldtrack_fieldtrack_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDesc), len(file_internal_testprotos_fieldtrack_fieldtrack_proto_rawDesc)), NumEnums: 0, NumMessages: 18, NumExtensions: 0, diff --git a/internal/testprotos/fuzz/fuzz.pb.go b/internal/testprotos/fuzz/fuzz.pb.go index 215f40ea8..3f0754d92 100644 --- a/internal/testprotos/fuzz/fuzz.pb.go +++ b/internal/testprotos/fuzz/fuzz.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) // Fuzz is a container for every message we want to make available to the @@ -171,7 +172,7 @@ func file_internal_testprotos_fuzz_fuzz_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_fuzz_fuzz_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_fuzz_fuzz_proto_rawDesc), len(file_internal_testprotos_fuzz_fuzz_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/irregular/test.pb.go b/internal/testprotos/irregular/test.pb.go index fcdb76947..a09793cf8 100644 --- a/internal/testprotos/irregular/test.pb.go +++ b/internal/testprotos/irregular/test.pb.go @@ -16,6 +16,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Message struct { @@ -222,7 +223,7 @@ func file_internal_testprotos_irregular_test_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_irregular_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_irregular_test_proto_rawDesc), len(file_internal_testprotos_irregular_test_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, diff --git a/internal/testprotos/lazy/lazy_extension_normalized_wire_test.pb.go b/internal/testprotos/lazy/lazy_extension_normalized_wire_test.pb.go index a274126a4..6fdf71c1b 100644 --- a/internal/testprotos/lazy/lazy_extension_normalized_wire_test.pb.go +++ b/internal/testprotos/lazy/lazy_extension_normalized_wire_test.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Sub struct { @@ -223,7 +224,7 @@ func file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_ini out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_rawDesc), len(file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 1, diff --git a/internal/testprotos/lazy/lazy_extension_test.pb.go b/internal/testprotos/lazy/lazy_extension_test.pb.go index ee31b06a0..aedbf4253 100644 --- a/internal/testprotos/lazy/lazy_extension_test.pb.go +++ b/internal/testprotos/lazy/lazy_extension_test.pb.go @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type FlyingFoxSpecies int32 @@ -629,7 +630,7 @@ func file_internal_testprotos_lazy_lazy_extension_test_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_lazy_lazy_extension_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_lazy_lazy_extension_test_proto_rawDesc), len(file_internal_testprotos_lazy_lazy_extension_test_proto_rawDesc)), NumEnums: 2, NumMessages: 7, NumExtensions: 9, diff --git a/internal/testprotos/lazy/lazy_hybrid/lazy_tree.hybrid.pb.go b/internal/testprotos/lazy/lazy_hybrid/lazy_tree.hybrid.pb.go index de231eaa9..e9c8de6ca 100644 --- a/internal/testprotos/lazy/lazy_hybrid/lazy_tree.hybrid.pb.go +++ b/internal/testprotos/lazy/lazy_hybrid/lazy_tree.hybrid.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Node struct { @@ -493,7 +494,7 @@ func file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_rawDesc), len(file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/lazy/lazy_hybrid/lazy_tree.hybrid_protoopaque.pb.go b/internal/testprotos/lazy/lazy_hybrid/lazy_tree.hybrid_protoopaque.pb.go index 69326b0cb..77dab436b 100644 --- a/internal/testprotos/lazy/lazy_hybrid/lazy_tree.hybrid_protoopaque.pb.go +++ b/internal/testprotos/lazy/lazy_hybrid/lazy_tree.hybrid_protoopaque.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Node struct { @@ -586,7 +587,7 @@ func file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_rawDesc), len(file_internal_testprotos_lazy_lazy_hybrid_lazy_tree_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/lazy/lazy_normalized_wire_test.pb.go b/internal/testprotos/lazy/lazy_normalized_wire_test.pb.go index 90af03d3b..3139a1269 100644 --- a/internal/testprotos/lazy/lazy_normalized_wire_test.pb.go +++ b/internal/testprotos/lazy/lazy_normalized_wire_test.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type FSub struct { @@ -166,7 +167,7 @@ func file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDesc), len(file_internal_testprotos_lazy_lazy_normalized_wire_test_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, diff --git a/internal/testprotos/lazy/lazy_opaque/lazy_tree.opaque.pb.go b/internal/testprotos/lazy/lazy_opaque/lazy_tree.opaque.pb.go index 57b475c28..46867c3d9 100644 --- a/internal/testprotos/lazy/lazy_opaque/lazy_tree.opaque.pb.go +++ b/internal/testprotos/lazy/lazy_opaque/lazy_tree.opaque.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Node struct { @@ -584,7 +585,7 @@ func file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_rawDesc), len(file_internal_testprotos_lazy_lazy_opaque_lazy_tree_opaque_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/lazy/lazy_tree.pb.go b/internal/testprotos/lazy/lazy_tree.pb.go index 77d1153ae..6807052ab 100644 --- a/internal/testprotos/lazy/lazy_tree.pb.go +++ b/internal/testprotos/lazy/lazy_tree.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Node struct { @@ -216,7 +217,7 @@ func file_internal_testprotos_lazy_lazy_tree_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_lazy_lazy_tree_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_lazy_lazy_tree_proto_rawDesc), len(file_internal_testprotos_lazy_lazy_tree_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/legacy/legacy.pb.go b/internal/testprotos/legacy/legacy.pb.go index c2e4d5f16..ddf4d7bf4 100644 --- a/internal/testprotos/legacy/legacy.pb.go +++ b/internal/testprotos/legacy/legacy.pb.go @@ -24,6 +24,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Legacy struct { @@ -219,7 +220,7 @@ func file_internal_testprotos_legacy_legacy_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_legacy_legacy_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_legacy_legacy_proto_rawDesc), len(file_internal_testprotos_legacy_legacy_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/messageset/messagesetpb/message_set.pb.go b/internal/testprotos/messageset/messagesetpb/message_set.pb.go index 1aa1c8dab..e9cc89882 100644 --- a/internal/testprotos/messageset/messagesetpb/message_set.pb.go +++ b/internal/testprotos/messageset/messagesetpb/message_set.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type MessageSet struct { @@ -134,7 +135,7 @@ func file_internal_testprotos_messageset_messagesetpb_message_set_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_messageset_messagesetpb_message_set_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_messageset_messagesetpb_message_set_proto_rawDesc), len(file_internal_testprotos_messageset_messagesetpb_message_set_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, diff --git a/internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid/message_set.hybrid.pb.go b/internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid/message_set.hybrid.pb.go index 047b954db..12a3a90a2 100644 --- a/internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid/message_set.hybrid.pb.go +++ b/internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid/message_set.hybrid.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type MessageSet struct { @@ -157,7 +158,7 @@ func file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_messag out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_rawDesc), len(file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, diff --git a/internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid/message_set.hybrid_protoopaque.pb.go b/internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid/message_set.hybrid_protoopaque.pb.go index b82577612..1c30b6b8a 100644 --- a/internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid/message_set.hybrid_protoopaque.pb.go +++ b/internal/testprotos/messageset/messagesetpb/messagesetpb_hybrid/message_set.hybrid_protoopaque.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type MessageSet struct { @@ -157,7 +158,7 @@ func file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_messag out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_rawDesc), len(file_internal_testprotos_messageset_messagesetpb_messagesetpb_hybrid_message_set_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, diff --git a/internal/testprotos/messageset/messagesetpb/messagesetpb_opaque/message_set.opaque.pb.go b/internal/testprotos/messageset/messagesetpb/messagesetpb_opaque/message_set.opaque.pb.go index 1971ac355..5cafe99c2 100644 --- a/internal/testprotos/messageset/messagesetpb/messagesetpb_opaque/message_set.opaque.pb.go +++ b/internal/testprotos/messageset/messagesetpb/messagesetpb_opaque/message_set.opaque.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type MessageSet struct { @@ -155,7 +156,7 @@ func file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_messag out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_rawDesc), len(file_internal_testprotos_messageset_messagesetpb_messagesetpb_opaque_message_set_opaque_proto_rawDesc)), NumEnums: 0, NumMessages: 2, NumExtensions: 0, diff --git a/internal/testprotos/messageset/msetextpb/msetextpb.pb.go b/internal/testprotos/messageset/msetextpb/msetextpb.pb.go index 8497d8daa..851980120 100644 --- a/internal/testprotos/messageset/msetextpb/msetextpb.pb.go +++ b/internal/testprotos/messageset/msetextpb/msetextpb.pb.go @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Ext1 struct { @@ -287,7 +288,7 @@ func file_internal_testprotos_messageset_msetextpb_msetextpb_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_messageset_msetextpb_msetextpb_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_messageset_msetextpb_msetextpb_proto_rawDesc), len(file_internal_testprotos_messageset_msetextpb_msetextpb_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 4, diff --git a/internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid.pb.go b/internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid.pb.go index 1c1d5af4e..f2572a195 100644 --- a/internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid.pb.go +++ b/internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid.pb.go @@ -15,6 +15,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Ext1 struct { @@ -375,7 +376,7 @@ func file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hy out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_rawDesc), len(file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 4, diff --git a/internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid_protoopaque.pb.go b/internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid_protoopaque.pb.go index ab62a009a..079f7bc60 100644 --- a/internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid_protoopaque.pb.go +++ b/internal/testprotos/messageset/msetextpb/msetextpb_hybrid/msetextpb.hybrid_protoopaque.pb.go @@ -15,6 +15,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Ext1 struct { @@ -401,7 +402,7 @@ func file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hy out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_rawDesc), len(file_internal_testprotos_messageset_msetextpb_msetextpb_hybrid_msetextpb_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 4, diff --git a/internal/testprotos/messageset/msetextpb/msetextpb_opaque/msetextpb.opaque.pb.go b/internal/testprotos/messageset/msetextpb/msetextpb_opaque/msetextpb.opaque.pb.go index e02f3472e..c898e385c 100644 --- a/internal/testprotos/messageset/msetextpb/msetextpb_opaque/msetextpb.opaque.pb.go +++ b/internal/testprotos/messageset/msetextpb/msetextpb_opaque/msetextpb.opaque.pb.go @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Ext1 struct { @@ -399,7 +400,7 @@ func file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_op out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_rawDesc), len(file_internal_testprotos_messageset_msetextpb_msetextpb_opaque_msetextpb_opaque_proto_rawDesc)), NumEnums: 0, NumMessages: 4, NumExtensions: 4, diff --git a/internal/testprotos/mixed/mixed.pb.go b/internal/testprotos/mixed/mixed.pb.go index 91a3ac88d..9036432f4 100644 --- a/internal/testprotos/mixed/mixed.pb.go +++ b/internal/testprotos/mixed/mixed.pb.go @@ -17,6 +17,7 @@ import ( _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Open struct { @@ -859,7 +860,7 @@ func file_internal_testprotos_mixed_mixed_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_mixed_mixed_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_mixed_mixed_proto_rawDesc), len(file_internal_testprotos_mixed_mixed_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 0, diff --git a/internal/testprotos/news/news.pb.go b/internal/testprotos/news/news.pb.go index 721f123ca..e08d9c816 100644 --- a/internal/testprotos/news/news.pb.go +++ b/internal/testprotos/news/news.pb.go @@ -14,6 +14,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Article_Status int32 @@ -309,7 +310,7 @@ func file_internal_testprotos_news_news_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_news_news_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_news_news_proto_rawDesc), len(file_internal_testprotos_news_news_proto_rawDesc)), NumEnums: 1, NumMessages: 4, NumExtensions: 0, diff --git a/internal/testprotos/order/order.pb.go b/internal/testprotos/order/order.pb.go index fd93884ad..c3038f954 100644 --- a/internal/testprotos/order/order.pb.go +++ b/internal/testprotos/order/order.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Message struct { @@ -187,7 +188,7 @@ func file_internal_testprotos_order_order_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_order_order_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_order_order_proto_rawDesc), len(file_internal_testprotos_order_order_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 3, diff --git a/internal/testprotos/race/extender/test.pb.go b/internal/testprotos/race/extender/test.pb.go index f1bbdb79d..68fff5aa6 100644 --- a/internal/testprotos/race/extender/test.pb.go +++ b/internal/testprotos/race/extender/test.pb.go @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type OtherMessage struct { @@ -115,7 +116,7 @@ func file_internal_testprotos_race_extender_test_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_race_extender_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_race_extender_test_proto_rawDesc), len(file_internal_testprotos_race_extender_test_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 1, diff --git a/internal/testprotos/race/message/test.pb.go b/internal/testprotos/race/message/test.pb.go index 973d1451b..f484b2ac4 100644 --- a/internal/testprotos/race/message/test.pb.go +++ b/internal/testprotos/race/message/test.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type MyMessage struct { @@ -96,7 +97,7 @@ func file_internal_testprotos_race_message_test_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_race_message_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_race_message_test_proto_rawDesc), len(file_internal_testprotos_race_message_test_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/registry/test.pb.go b/internal/testprotos/registry/test.pb.go index d2f1d1c7a..54f5a8563 100644 --- a/internal/testprotos/registry/test.pb.go +++ b/internal/testprotos/registry/test.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Enum1 int32 @@ -449,7 +450,7 @@ func file_internal_testprotos_registry_test_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_registry_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_registry_test_proto_rawDesc), len(file_internal_testprotos_registry_test_proto_rawDesc)), NumEnums: 3, NumMessages: 4, NumExtensions: 6, diff --git a/internal/testprotos/required/required.pb.go b/internal/testprotos/required/required.pb.go index df467bebb..92b5e930c 100644 --- a/internal/testprotos/required/required.pb.go +++ b/internal/testprotos/required/required.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Int32 struct { @@ -809,7 +810,7 @@ func file_internal_testprotos_required_required_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_required_required_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_required_required_proto_rawDesc), len(file_internal_testprotos_required_required_proto_rawDesc)), NumEnums: 0, NumMessages: 17, NumExtensions: 0, diff --git a/internal/testprotos/required/required_hybrid/required.hybrid.pb.go b/internal/testprotos/required/required_hybrid/required.hybrid.pb.go index a9fc6679a..f297b5678 100644 --- a/internal/testprotos/required/required_hybrid/required.hybrid.pb.go +++ b/internal/testprotos/required/required_hybrid/required.hybrid.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Int32 struct { @@ -1193,7 +1194,7 @@ func file_internal_testprotos_required_required_hybrid_required_hybrid_proto_ini out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_required_required_hybrid_required_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_required_required_hybrid_required_hybrid_proto_rawDesc), len(file_internal_testprotos_required_required_hybrid_required_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 17, NumExtensions: 0, diff --git a/internal/testprotos/required/required_hybrid/required.hybrid_protoopaque.pb.go b/internal/testprotos/required/required_hybrid/required.hybrid_protoopaque.pb.go index 04562077d..99020e8bf 100644 --- a/internal/testprotos/required/required_hybrid/required.hybrid_protoopaque.pb.go +++ b/internal/testprotos/required/required_hybrid/required.hybrid_protoopaque.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Int32 struct { @@ -1294,7 +1295,7 @@ func file_internal_testprotos_required_required_hybrid_required_hybrid_proto_ini out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_required_required_hybrid_required_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_required_required_hybrid_required_hybrid_proto_rawDesc), len(file_internal_testprotos_required_required_hybrid_required_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 17, NumExtensions: 0, diff --git a/internal/testprotos/required/required_opaque/required.opaque.pb.go b/internal/testprotos/required/required_opaque/required.opaque.pb.go index b922821ba..ffdec7288 100644 --- a/internal/testprotos/required/required_opaque/required.opaque.pb.go +++ b/internal/testprotos/required/required_opaque/required.opaque.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type Int32 struct { @@ -1292,7 +1293,7 @@ func file_internal_testprotos_required_required_opaque_required_opaque_proto_ini out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_required_required_opaque_required_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_required_required_opaque_required_opaque_proto_rawDesc), len(file_internal_testprotos_required_required_opaque_required_opaque_proto_rawDesc)), NumEnums: 0, NumMessages: 17, NumExtensions: 0, diff --git a/internal/testprotos/test/ext.pb.go b/internal/testprotos/test/ext.pb.go index 9ca924d39..6d3ca9c08 100644 --- a/internal/testprotos/test/ext.pb.go +++ b/internal/testprotos/test/ext.pb.go @@ -11,6 +11,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" + unsafe "unsafe" ) var file_internal_testprotos_test_ext_proto_extTypes = []protoimpl.ExtensionInfo{ @@ -56,7 +57,7 @@ func file_internal_testprotos_test_ext_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test_ext_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test_ext_proto_rawDesc), len(file_internal_testprotos_test_ext_proto_rawDesc)), NumEnums: 0, NumMessages: 0, NumExtensions: 1, diff --git a/internal/testprotos/test/test.pb.go b/internal/testprotos/test/test.pb.go index 50b72d8fa..2c8104e5c 100644 --- a/internal/testprotos/test/test.pb.go +++ b/internal/testprotos/test/test.pb.go @@ -15,6 +15,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ForeignEnum int32 @@ -4893,7 +4894,7 @@ func file_internal_testprotos_test_test_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test_test_proto_rawDesc), len(file_internal_testprotos_test_test_proto_rawDesc)), NumEnums: 4, NumMessages: 48, NumExtensions: 82, diff --git a/internal/testprotos/test/test_import.pb.go b/internal/testprotos/test/test_import.pb.go index c234d1d88..d42e29abb 100644 --- a/internal/testprotos/test/test_import.pb.go +++ b/internal/testprotos/test/test_import.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ImportEnum int32 @@ -142,7 +143,7 @@ func file_internal_testprotos_test_test_import_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test_test_import_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test_test_import_proto_rawDesc), len(file_internal_testprotos_test_test_import_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/test/test_public.pb.go b/internal/testprotos/test/test_public.pb.go index 41471e311..de6fa77ee 100644 --- a/internal/testprotos/test/test_public.pb.go +++ b/internal/testprotos/test/test_public.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type PublicImportMessage struct { @@ -87,7 +88,7 @@ func file_internal_testprotos_test_test_public_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test_test_public_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test_test_public_proto_rawDesc), len(file_internal_testprotos_test_test_public_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/test/weak1/test_weak.pb.go b/internal/testprotos/test/weak1/test_weak.pb.go index b54aaa06d..dc84e57f1 100644 --- a/internal/testprotos/test/weak1/test_weak.pb.go +++ b/internal/testprotos/test/weak1/test_weak.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type WeakImportMessage1 struct { @@ -95,7 +96,7 @@ func file_internal_testprotos_test_weak1_test_weak_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test_weak1_test_weak_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test_weak1_test_weak_proto_rawDesc), len(file_internal_testprotos_test_weak1_test_weak_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/test/weak2/test_weak.pb.go b/internal/testprotos/test/weak2/test_weak.pb.go index eb8054305..05b4835a3 100644 --- a/internal/testprotos/test/weak2/test_weak.pb.go +++ b/internal/testprotos/test/weak2/test_weak.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type WeakImportMessage2 struct { @@ -95,7 +96,7 @@ func file_internal_testprotos_test_weak2_test_weak_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test_weak2_test_weak_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test_weak2_test_weak_proto_rawDesc), len(file_internal_testprotos_test_weak2_test_weak_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/test3/test.pb.go b/internal/testprotos/test3/test.pb.go index 9b701d3e3..6ef4c05ae 100644 --- a/internal/testprotos/test3/test.pb.go +++ b/internal/testprotos/test3/test.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ForeignEnum int32 @@ -1169,7 +1170,7 @@ func file_internal_testprotos_test3_test_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test3_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test3_test_proto_rawDesc), len(file_internal_testprotos_test3_test_proto_rawDesc)), NumEnums: 2, NumMessages: 20, NumExtensions: 0, diff --git a/internal/testprotos/test3/test3_hybrid/test.hybrid.pb.go b/internal/testprotos/test3/test3_hybrid/test.hybrid.pb.go index 1810f32fc..9661e1d1b 100644 --- a/internal/testprotos/test3/test3_hybrid/test.hybrid.pb.go +++ b/internal/testprotos/test3/test3_hybrid/test.hybrid.pb.go @@ -13,6 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" + unsafe "unsafe" ) type ForeignEnum int32 @@ -2221,7 +2222,7 @@ func file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_rawDesc), len(file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_rawDesc)), NumEnums: 2, NumMessages: 20, NumExtensions: 0, diff --git a/internal/testprotos/test3/test3_hybrid/test.hybrid_protoopaque.pb.go b/internal/testprotos/test3/test3_hybrid/test.hybrid_protoopaque.pb.go index 0d67d6d0d..7165ad3b2 100644 --- a/internal/testprotos/test3/test3_hybrid/test.hybrid_protoopaque.pb.go +++ b/internal/testprotos/test3/test3_hybrid/test.hybrid_protoopaque.pb.go @@ -13,6 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" + unsafe "unsafe" ) type ForeignEnum int32 @@ -2310,7 +2311,7 @@ func file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_rawDesc), len(file_internal_testprotos_test3_test3_hybrid_test_hybrid_proto_rawDesc)), NumEnums: 2, NumMessages: 20, NumExtensions: 0, diff --git a/internal/testprotos/test3/test3_hybrid/test_import.hybrid.pb.go b/internal/testprotos/test3/test3_hybrid/test_import.hybrid.pb.go index 674e58dfa..ccce83df1 100644 --- a/internal/testprotos/test3/test3_hybrid/test_import.hybrid.pb.go +++ b/internal/testprotos/test3/test3_hybrid/test_import.hybrid.pb.go @@ -13,6 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" + unsafe "unsafe" ) type ImportEnum int32 @@ -123,7 +124,7 @@ func file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_init() out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_rawDesc), len(file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/test3/test3_hybrid/test_import.hybrid_protoopaque.pb.go b/internal/testprotos/test3/test3_hybrid/test_import.hybrid_protoopaque.pb.go index 61d30f56d..bda4c4246 100644 --- a/internal/testprotos/test3/test3_hybrid/test_import.hybrid_protoopaque.pb.go +++ b/internal/testprotos/test3/test3_hybrid/test_import.hybrid_protoopaque.pb.go @@ -13,6 +13,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" + unsafe "unsafe" ) type ImportEnum int32 @@ -123,7 +124,7 @@ func file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_init() out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_rawDesc), len(file_internal_testprotos_test3_test3_hybrid_test_import_hybrid_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/test3/test3_opaque/test.opaque.pb.go b/internal/testprotos/test3/test3_opaque/test.opaque.pb.go index b90ebfe47..d4ccc3200 100644 --- a/internal/testprotos/test3/test3_opaque/test.opaque.pb.go +++ b/internal/testprotos/test3/test3_opaque/test.opaque.pb.go @@ -11,6 +11,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" + unsafe "unsafe" ) type ForeignEnum int32 @@ -2308,7 +2309,7 @@ func file_internal_testprotos_test3_test3_opaque_test_opaque_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test3_test3_opaque_test_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test3_test3_opaque_test_opaque_proto_rawDesc), len(file_internal_testprotos_test3_test3_opaque_test_opaque_proto_rawDesc)), NumEnums: 2, NumMessages: 20, NumExtensions: 0, diff --git a/internal/testprotos/test3/test3_opaque/test_import.opaque.pb.go b/internal/testprotos/test3/test3_opaque/test_import.opaque.pb.go index bebcc64e6..24d13c060 100644 --- a/internal/testprotos/test3/test3_opaque/test_import.opaque.pb.go +++ b/internal/testprotos/test3/test3_opaque/test_import.opaque.pb.go @@ -11,6 +11,7 @@ import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" + unsafe "unsafe" ) type ImportEnum int32 @@ -121,7 +122,7 @@ func file_internal_testprotos_test3_test3_opaque_test_import_opaque_proto_init() out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test3_test3_opaque_test_import_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test3_test3_opaque_test_import_opaque_proto_rawDesc), len(file_internal_testprotos_test3_test3_opaque_test_import_opaque_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/test3/test_extension.pb.go b/internal/testprotos/test3/test_extension.pb.go index 5b136818c..4c822f32a 100644 --- a/internal/testprotos/test3/test_extension.pb.go +++ b/internal/testprotos/test3/test_extension.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" + unsafe "unsafe" ) var file_internal_testprotos_test3_test_extension_proto_extTypes = []protoimpl.ExtensionInfo{ @@ -615,7 +616,7 @@ func file_internal_testprotos_test3_test_extension_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test3_test_extension_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test3_test_extension_proto_rawDesc), len(file_internal_testprotos_test3_test_extension_proto_rawDesc)), NumEnums: 0, NumMessages: 0, NumExtensions: 51, diff --git a/internal/testprotos/test3/test_import.pb.go b/internal/testprotos/test3/test_import.pb.go index 3506bc3dc..2504928a7 100644 --- a/internal/testprotos/test3/test_import.pb.go +++ b/internal/testprotos/test3/test_import.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ImportEnum int32 @@ -132,7 +133,7 @@ func file_internal_testprotos_test3_test_import_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_test3_test_import_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_test3_test_import_proto_rawDesc), len(file_internal_testprotos_test3_test_import_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/testeditions/test.pb.go b/internal/testprotos/testeditions/test.pb.go index e8d76969b..3b2dcb901 100644 --- a/internal/testprotos/testeditions/test.pb.go +++ b/internal/testprotos/testeditions/test.pb.go @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ForeignEnum int32 @@ -3308,7 +3309,7 @@ func file_internal_testprotos_testeditions_test_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_test_proto_rawDesc), len(file_internal_testprotos_testeditions_test_proto_rawDesc)), NumEnums: 2, NumMessages: 34, NumExtensions: 14, diff --git a/internal/testprotos/testeditions/test_extension.pb.go b/internal/testprotos/testeditions/test_extension.pb.go index 5f9dab440..63513ac9e 100644 --- a/internal/testprotos/testeditions/test_extension.pb.go +++ b/internal/testprotos/testeditions/test_extension.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type TestAllExtensions struct { @@ -982,7 +983,7 @@ func file_internal_testprotos_testeditions_test_extension_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_test_extension_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_test_extension_proto_rawDesc), len(file_internal_testprotos_testeditions_test_extension_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 57, diff --git a/internal/testprotos/testeditions/test_extension2.pb.go b/internal/testprotos/testeditions/test_extension2.pb.go index d12d581df..975a01b97 100644 --- a/internal/testprotos/testeditions/test_extension2.pb.go +++ b/internal/testprotos/testeditions/test_extension2.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type OtherRepeatedFieldEncoding struct { @@ -140,7 +141,7 @@ func file_internal_testprotos_testeditions_test_extension2_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_test_extension2_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_test_extension2_proto_rawDesc), len(file_internal_testprotos_testeditions_test_extension2_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 4, diff --git a/internal/testprotos/testeditions/test_import.pb.go b/internal/testprotos/testeditions/test_import.pb.go index 6669bc2cb..664e84730 100644 --- a/internal/testprotos/testeditions/test_import.pb.go +++ b/internal/testprotos/testeditions/test_import.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type ImportEnum int32 @@ -132,7 +133,7 @@ func file_internal_testprotos_testeditions_test_import_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_test_import_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_test_import_proto_rawDesc), len(file_internal_testprotos_testeditions_test_import_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/testeditions/testeditions_hybrid/test.hybrid.pb.go b/internal/testprotos/testeditions/testeditions_hybrid/test.hybrid.pb.go index b48bbd213..26872612d 100644 --- a/internal/testprotos/testeditions/testeditions_hybrid/test.hybrid.pb.go +++ b/internal/testprotos/testeditions/testeditions_hybrid/test.hybrid.pb.go @@ -15,6 +15,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type ForeignEnum int32 @@ -7099,7 +7100,7 @@ func file_internal_testprotos_testeditions_testeditions_hybrid_test_hybrid_proto out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_testeditions_hybrid_test_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_testeditions_hybrid_test_hybrid_proto_rawDesc), len(file_internal_testprotos_testeditions_testeditions_hybrid_test_hybrid_proto_rawDesc)), NumEnums: 2, NumMessages: 34, NumExtensions: 14, diff --git a/internal/testprotos/testeditions/testeditions_hybrid/test.hybrid_protoopaque.pb.go b/internal/testprotos/testeditions/testeditions_hybrid/test.hybrid_protoopaque.pb.go index ce1226b2e..4c4970f4e 100644 --- a/internal/testprotos/testeditions/testeditions_hybrid/test.hybrid_protoopaque.pb.go +++ b/internal/testprotos/testeditions/testeditions_hybrid/test.hybrid_protoopaque.pb.go @@ -15,6 +15,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type ForeignEnum int32 @@ -7434,7 +7435,7 @@ func file_internal_testprotos_testeditions_testeditions_hybrid_test_hybrid_proto out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_testeditions_hybrid_test_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_testeditions_hybrid_test_hybrid_proto_rawDesc), len(file_internal_testprotos_testeditions_testeditions_hybrid_test_hybrid_proto_rawDesc)), NumEnums: 2, NumMessages: 34, NumExtensions: 14, diff --git a/internal/testprotos/testeditions/testeditions_hybrid/test_extension.hybrid.pb.go b/internal/testprotos/testeditions/testeditions_hybrid/test_extension.hybrid.pb.go index 3810a1e65..56dcdfbe2 100644 --- a/internal/testprotos/testeditions/testeditions_hybrid/test_extension.hybrid.pb.go +++ b/internal/testprotos/testeditions/testeditions_hybrid/test_extension.hybrid.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type TestAllExtensions struct { @@ -1135,7 +1136,7 @@ func file_internal_testprotos_testeditions_testeditions_hybrid_test_extension_hy out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_testeditions_hybrid_test_extension_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_testeditions_hybrid_test_extension_hybrid_proto_rawDesc), len(file_internal_testprotos_testeditions_testeditions_hybrid_test_extension_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 57, diff --git a/internal/testprotos/testeditions/testeditions_hybrid/test_extension.hybrid_protoopaque.pb.go b/internal/testprotos/testeditions/testeditions_hybrid/test_extension.hybrid_protoopaque.pb.go index 203f6c54b..0aaa3a2e0 100644 --- a/internal/testprotos/testeditions/testeditions_hybrid/test_extension.hybrid_protoopaque.pb.go +++ b/internal/testprotos/testeditions/testeditions_hybrid/test_extension.hybrid_protoopaque.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type TestAllExtensions struct { @@ -1161,7 +1162,7 @@ func file_internal_testprotos_testeditions_testeditions_hybrid_test_extension_hy out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_testeditions_hybrid_test_extension_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_testeditions_hybrid_test_extension_hybrid_proto_rawDesc), len(file_internal_testprotos_testeditions_testeditions_hybrid_test_extension_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 57, diff --git a/internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid.pb.go b/internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid.pb.go index 23011dbb0..47880bf6d 100644 --- a/internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid.pb.go +++ b/internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type OtherRepeatedFieldEncoding struct { @@ -139,7 +140,7 @@ func file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_h out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_rawDesc), len(file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 4, diff --git a/internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid_protoopaque.pb.go b/internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid_protoopaque.pb.go index e1e436a28..503eed621 100644 --- a/internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid_protoopaque.pb.go +++ b/internal/testprotos/testeditions/testeditions_hybrid/test_extension2.hybrid_protoopaque.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type OtherRepeatedFieldEncoding struct { @@ -139,7 +140,7 @@ func file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_h out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_rawDesc), len(file_internal_testprotos_testeditions_testeditions_hybrid_test_extension2_hybrid_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 4, diff --git a/internal/testprotos/testeditions/testeditions_hybrid/test_import.hybrid.pb.go b/internal/testprotos/testeditions/testeditions_hybrid/test_import.hybrid.pb.go index 0517b31e4..558531d3c 100644 --- a/internal/testprotos/testeditions/testeditions_hybrid/test_import.hybrid.pb.go +++ b/internal/testprotos/testeditions/testeditions_hybrid/test_import.hybrid.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type ImportEnum int32 @@ -126,7 +127,7 @@ func file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybri out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_rawDesc), len(file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/testeditions/testeditions_hybrid/test_import.hybrid_protoopaque.pb.go b/internal/testprotos/testeditions/testeditions_hybrid/test_import.hybrid_protoopaque.pb.go index 1cc35bd43..1b7cb707b 100644 --- a/internal/testprotos/testeditions/testeditions_hybrid/test_import.hybrid_protoopaque.pb.go +++ b/internal/testprotos/testeditions/testeditions_hybrid/test_import.hybrid_protoopaque.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type ImportEnum int32 @@ -126,7 +127,7 @@ func file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybri out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_rawDesc), len(file_internal_testprotos_testeditions_testeditions_hybrid_test_import_hybrid_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/testeditions/testeditions_opaque/test.opaque.pb.go b/internal/testprotos/testeditions/testeditions_opaque/test.opaque.pb.go index 6f8552ed1..94c73aab2 100644 --- a/internal/testprotos/testeditions/testeditions_opaque/test.opaque.pb.go +++ b/internal/testprotos/testeditions/testeditions_opaque/test.opaque.pb.go @@ -13,6 +13,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type ForeignEnum int32 @@ -7432,7 +7433,7 @@ func file_internal_testprotos_testeditions_testeditions_opaque_test_opaque_proto out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_testeditions_opaque_test_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_testeditions_opaque_test_opaque_proto_rawDesc), len(file_internal_testprotos_testeditions_testeditions_opaque_test_opaque_proto_rawDesc)), NumEnums: 2, NumMessages: 34, NumExtensions: 14, diff --git a/internal/testprotos/testeditions/testeditions_opaque/test_extension.opaque.pb.go b/internal/testprotos/testeditions/testeditions_opaque/test_extension.opaque.pb.go index b9cf8e3ea..7192b8af4 100644 --- a/internal/testprotos/testeditions/testeditions_opaque/test_extension.opaque.pb.go +++ b/internal/testprotos/testeditions/testeditions_opaque/test_extension.opaque.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type TestAllExtensions struct { @@ -1159,7 +1160,7 @@ func file_internal_testprotos_testeditions_testeditions_opaque_test_extension_op out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_testeditions_opaque_test_extension_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_testeditions_opaque_test_extension_opaque_proto_rawDesc), len(file_internal_testprotos_testeditions_testeditions_opaque_test_extension_opaque_proto_rawDesc)), NumEnums: 0, NumMessages: 6, NumExtensions: 57, diff --git a/internal/testprotos/testeditions/testeditions_opaque/test_extension2.opaque.pb.go b/internal/testprotos/testeditions/testeditions_opaque/test_extension2.opaque.pb.go index de2fd40a3..5eebffa18 100644 --- a/internal/testprotos/testeditions/testeditions_opaque/test_extension2.opaque.pb.go +++ b/internal/testprotos/testeditions/testeditions_opaque/test_extension2.opaque.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type OtherRepeatedFieldEncoding struct { @@ -137,7 +138,7 @@ func file_internal_testprotos_testeditions_testeditions_opaque_test_extension2_o out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_testeditions_opaque_test_extension2_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_testeditions_opaque_test_extension2_opaque_proto_rawDesc), len(file_internal_testprotos_testeditions_testeditions_opaque_test_extension2_opaque_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 4, diff --git a/internal/testprotos/testeditions/testeditions_opaque/test_import.opaque.pb.go b/internal/testprotos/testeditions/testeditions_opaque/test_import.opaque.pb.go index 09f0f6a5a..71a446b90 100644 --- a/internal/testprotos/testeditions/testeditions_opaque/test_import.opaque.pb.go +++ b/internal/testprotos/testeditions/testeditions_opaque/test_import.opaque.pb.go @@ -12,6 +12,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" _ "google.golang.org/protobuf/types/gofeaturespb" reflect "reflect" + unsafe "unsafe" ) type ImportEnum int32 @@ -124,7 +125,7 @@ func file_internal_testprotos_testeditions_testeditions_opaque_test_import_opaqu out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_testeditions_testeditions_opaque_test_import_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_testeditions_testeditions_opaque_test_import_opaque_proto_rawDesc), len(file_internal_testprotos_testeditions_testeditions_opaque_test_import_opaque_proto_rawDesc)), NumEnums: 1, NumMessages: 1, NumExtensions: 0, diff --git a/internal/testprotos/textpb2/test.pb.go b/internal/testprotos/textpb2/test.pb.go index a281993d0..681b8be4c 100644 --- a/internal/testprotos/textpb2/test.pb.go +++ b/internal/testprotos/textpb2/test.pb.go @@ -21,6 +21,7 @@ import ( wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Enum int32 @@ -1940,7 +1941,7 @@ func file_internal_testprotos_textpb2_test_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_textpb2_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_textpb2_test_proto_rawDesc), len(file_internal_testprotos_textpb2_test_proto_rawDesc)), NumEnums: 2, NumMessages: 24, NumExtensions: 21, diff --git a/internal/testprotos/textpb3/test.pb.go b/internal/testprotos/textpb3/test.pb.go index 1079511c1..ae3cd8f4a 100644 --- a/internal/testprotos/textpb3/test.pb.go +++ b/internal/testprotos/textpb3/test.pb.go @@ -14,6 +14,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Enum int32 @@ -1160,7 +1161,7 @@ func file_internal_testprotos_textpb3_test_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_textpb3_test_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_textpb3_test_proto_rawDesc), len(file_internal_testprotos_textpb3_test_proto_rawDesc)), NumEnums: 3, NumMessages: 16, NumExtensions: 0, diff --git a/internal/testprotos/textpbeditions/test2.pb.go b/internal/testprotos/textpbeditions/test2.pb.go index c7068b313..209db3338 100644 --- a/internal/testprotos/textpbeditions/test2.pb.go +++ b/internal/testprotos/textpbeditions/test2.pb.go @@ -21,6 +21,7 @@ import ( wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" sync "sync" + unsafe "unsafe" ) type Enum int32 @@ -2265,7 +2266,7 @@ func file_internal_testprotos_textpbeditions_test2_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_textpbeditions_test2_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_textpbeditions_test2_proto_rawDesc), len(file_internal_testprotos_textpbeditions_test2_proto_rawDesc)), NumEnums: 4, NumMessages: 26, NumExtensions: 21, diff --git a/internal/testprotos/textpbeditions/textpbeditions_hybrid/test2.hybrid.pb.go b/internal/testprotos/textpbeditions/textpbeditions_hybrid/test2.hybrid.pb.go index 9d3937a75..80a54ade2 100644 --- a/internal/testprotos/textpbeditions/textpbeditions_hybrid/test2.hybrid.pb.go +++ b/internal/testprotos/textpbeditions/textpbeditions_hybrid/test2.hybrid.pb.go @@ -23,6 +23,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" + unsafe "unsafe" ) type Enum int32 @@ -3719,7 +3720,7 @@ func file_internal_testprotos_textpbeditions_textpbeditions_hybrid_test2_hybrid_ out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_textpbeditions_textpbeditions_hybrid_test2_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_textpbeditions_textpbeditions_hybrid_test2_hybrid_proto_rawDesc), len(file_internal_testprotos_textpbeditions_textpbeditions_hybrid_test2_hybrid_proto_rawDesc)), NumEnums: 4, NumMessages: 26, NumExtensions: 21, diff --git a/internal/testprotos/textpbeditions/textpbeditions_hybrid/test2.hybrid_protoopaque.pb.go b/internal/testprotos/textpbeditions/textpbeditions_hybrid/test2.hybrid_protoopaque.pb.go index a4109621b..21b4b1ab1 100644 --- a/internal/testprotos/textpbeditions/textpbeditions_hybrid/test2.hybrid_protoopaque.pb.go +++ b/internal/testprotos/textpbeditions/textpbeditions_hybrid/test2.hybrid_protoopaque.pb.go @@ -23,6 +23,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" + unsafe "unsafe" ) type Enum int32 @@ -3947,7 +3948,7 @@ func file_internal_testprotos_textpbeditions_textpbeditions_hybrid_test2_hybrid_ out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_textpbeditions_textpbeditions_hybrid_test2_hybrid_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_textpbeditions_textpbeditions_hybrid_test2_hybrid_proto_rawDesc), len(file_internal_testprotos_textpbeditions_textpbeditions_hybrid_test2_hybrid_proto_rawDesc)), NumEnums: 4, NumMessages: 26, NumExtensions: 21, diff --git a/internal/testprotos/textpbeditions/textpbeditions_opaque/test2.opaque.pb.go b/internal/testprotos/textpbeditions/textpbeditions_opaque/test2.opaque.pb.go index 6c08a5dd4..67f0fd026 100644 --- a/internal/testprotos/textpbeditions/textpbeditions_opaque/test2.opaque.pb.go +++ b/internal/testprotos/textpbeditions/textpbeditions_opaque/test2.opaque.pb.go @@ -21,6 +21,7 @@ import ( timestamppb "google.golang.org/protobuf/types/known/timestamppb" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" reflect "reflect" + unsafe "unsafe" ) type Enum int32 @@ -3945,7 +3946,7 @@ func file_internal_testprotos_textpbeditions_textpbeditions_opaque_test2_opaque_ out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_internal_testprotos_textpbeditions_textpbeditions_opaque_test2_opaque_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_internal_testprotos_textpbeditions_textpbeditions_opaque_test2_opaque_proto_rawDesc), len(file_internal_testprotos_textpbeditions_textpbeditions_opaque_test2_opaque_proto_rawDesc)), NumEnums: 4, NumMessages: 26, NumExtensions: 21, diff --git a/types/descriptorpb/descriptor.pb.go b/types/descriptorpb/descriptor.pb.go index 5734ed4b1..003b4712d 100644 --- a/types/descriptorpb/descriptor.pb.go +++ b/types/descriptorpb/descriptor.pb.go @@ -46,6 +46,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) // The full set of known editions. @@ -4522,7 +4523,7 @@ func file_google_protobuf_descriptor_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_descriptor_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_descriptor_proto_rawDesc), len(file_google_protobuf_descriptor_proto_rawDesc)), NumEnums: 17, NumMessages: 33, NumExtensions: 0, diff --git a/types/gofeaturespb/go_features.pb.go b/types/gofeaturespb/go_features.pb.go index 218199d46..151a3f9da 100644 --- a/types/gofeaturespb/go_features.pb.go +++ b/types/gofeaturespb/go_features.pb.go @@ -16,6 +16,7 @@ import ( descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) type GoFeatures_APILevel int32 @@ -270,7 +271,7 @@ func file_google_protobuf_go_features_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_go_features_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_go_features_proto_rawDesc), len(file_google_protobuf_go_features_proto_rawDesc)), NumEnums: 2, NumMessages: 1, NumExtensions: 1, diff --git a/types/known/anypb/any.pb.go b/types/known/anypb/any.pb.go index 4f6b06b24..fe7c253b6 100644 --- a/types/known/anypb/any.pb.go +++ b/types/known/anypb/any.pb.go @@ -122,6 +122,7 @@ import ( reflect "reflect" strings "strings" sync "sync" + unsafe "unsafe" ) // `Any` contains an arbitrary serialized protocol buffer message along with a @@ -446,7 +447,7 @@ func file_google_protobuf_any_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_any_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_any_proto_rawDesc), len(file_google_protobuf_any_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/types/known/apipb/api.pb.go b/types/known/apipb/api.pb.go index 351ac56df..2f84b22df 100644 --- a/types/known/apipb/api.pb.go +++ b/types/known/apipb/api.pb.go @@ -40,6 +40,7 @@ import ( typepb "google.golang.org/protobuf/types/known/typepb" reflect "reflect" sync "sync" + unsafe "unsafe" ) // Api is a light-weight descriptor for an API Interface. @@ -452,7 +453,7 @@ func file_google_protobuf_api_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_api_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_api_proto_rawDesc), len(file_google_protobuf_api_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, diff --git a/types/known/durationpb/duration.pb.go b/types/known/durationpb/duration.pb.go index a429b9183..b8af126e7 100644 --- a/types/known/durationpb/duration.pb.go +++ b/types/known/durationpb/duration.pb.go @@ -80,6 +80,7 @@ import ( reflect "reflect" sync "sync" time "time" + unsafe "unsafe" ) // A Duration represents a signed, fixed-length span of time represented @@ -323,7 +324,7 @@ func file_google_protobuf_duration_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_duration_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_duration_proto_rawDesc), len(file_google_protobuf_duration_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/types/known/emptypb/empty.pb.go b/types/known/emptypb/empty.pb.go index a04fdd654..f150d8b48 100644 --- a/types/known/emptypb/empty.pb.go +++ b/types/known/emptypb/empty.pb.go @@ -38,6 +38,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) // A generic empty message that you can re-use to avoid defining duplicated @@ -120,7 +121,7 @@ func file_google_protobuf_empty_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_empty_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_empty_proto_rawDesc), len(file_google_protobuf_empty_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/types/known/fieldmaskpb/field_mask.pb.go b/types/known/fieldmaskpb/field_mask.pb.go index 3b79d8969..2b8e9ee91 100644 --- a/types/known/fieldmaskpb/field_mask.pb.go +++ b/types/known/fieldmaskpb/field_mask.pb.go @@ -83,6 +83,7 @@ import ( sort "sort" strings "strings" sync "sync" + unsafe "unsafe" ) // `FieldMask` represents a set of symbolic field paths, for example: @@ -538,7 +539,7 @@ func file_google_protobuf_field_mask_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_field_mask_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_field_mask_proto_rawDesc), len(file_google_protobuf_field_mask_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/types/known/sourcecontextpb/source_context.pb.go b/types/known/sourcecontextpb/source_context.pb.go index 60d3ede46..5017aa10e 100644 --- a/types/known/sourcecontextpb/source_context.pb.go +++ b/types/known/sourcecontextpb/source_context.pb.go @@ -38,6 +38,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) // `SourceContext` represents information about the source of a @@ -125,7 +126,7 @@ func file_google_protobuf_source_context_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_source_context_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_source_context_proto_rawDesc), len(file_google_protobuf_source_context_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/types/known/structpb/struct.pb.go b/types/known/structpb/struct.pb.go index 1b98a923f..ba8af89bf 100644 --- a/types/known/structpb/struct.pb.go +++ b/types/known/structpb/struct.pb.go @@ -128,6 +128,7 @@ import ( reflect "reflect" sync "sync" utf8 "unicode/utf8" + unsafe "unsafe" ) // `NullValue` is a singleton enumeration to represent the null value for the @@ -725,7 +726,7 @@ func file_google_protobuf_struct_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_struct_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_struct_proto_rawDesc), len(file_google_protobuf_struct_proto_rawDesc)), NumEnums: 1, NumMessages: 4, NumExtensions: 0, diff --git a/types/known/timestamppb/timestamp.pb.go b/types/known/timestamppb/timestamp.pb.go index 8c11695a1..548106c9d 100644 --- a/types/known/timestamppb/timestamp.pb.go +++ b/types/known/timestamppb/timestamp.pb.go @@ -78,6 +78,7 @@ import ( reflect "reflect" sync "sync" time "time" + unsafe "unsafe" ) // A Timestamp represents a point in time independent of any time zone or local @@ -332,7 +333,7 @@ func file_google_protobuf_timestamp_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_timestamp_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_timestamp_proto_rawDesc), len(file_google_protobuf_timestamp_proto_rawDesc)), NumEnums: 0, NumMessages: 1, NumExtensions: 0, diff --git a/types/known/typepb/type.pb.go b/types/known/typepb/type.pb.go index a488cc2b1..e9c74e20d 100644 --- a/types/known/typepb/type.pb.go +++ b/types/known/typepb/type.pb.go @@ -40,6 +40,7 @@ import ( sourcecontextpb "google.golang.org/protobuf/types/known/sourcecontextpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) // The syntax in which a protocol buffer element is defined. @@ -775,7 +776,7 @@ func file_google_protobuf_type_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_type_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_type_proto_rawDesc), len(file_google_protobuf_type_proto_rawDesc)), NumEnums: 3, NumMessages: 5, NumExtensions: 0, diff --git a/types/known/wrapperspb/wrappers.pb.go b/types/known/wrapperspb/wrappers.pb.go index 8ca54b2e9..ea9e9f8f3 100644 --- a/types/known/wrapperspb/wrappers.pb.go +++ b/types/known/wrapperspb/wrappers.pb.go @@ -48,6 +48,7 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" + unsafe "unsafe" ) // Wrapper message for `double`. @@ -572,7 +573,7 @@ func file_google_protobuf_wrappers_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_wrappers_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_wrappers_proto_rawDesc), len(file_google_protobuf_wrappers_proto_rawDesc)), NumEnums: 0, NumMessages: 9, NumExtensions: 0, diff --git a/types/pluginpb/plugin.pb.go b/types/pluginpb/plugin.pb.go index f518720e1..faafa966c 100644 --- a/types/pluginpb/plugin.pb.go +++ b/types/pluginpb/plugin.pb.go @@ -29,6 +29,7 @@ import ( descriptorpb "google.golang.org/protobuf/types/descriptorpb" reflect "reflect" sync "sync" + unsafe "unsafe" ) // Sync with code_generator.h. @@ -535,7 +536,7 @@ func file_google_protobuf_compiler_plugin_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: []byte(file_google_protobuf_compiler_plugin_proto_rawDesc), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_google_protobuf_compiler_plugin_proto_rawDesc), len(file_google_protobuf_compiler_plugin_proto_rawDesc)), NumEnums: 1, NumMessages: 4, NumExtensions: 0,