From 66faac0c993e583805dde27033cac7ff3d247756 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 22 Aug 2024 14:32:04 +0200 Subject: [PATCH] compiler/protogen: remove now-unnecessary UnsafeEnabled checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should have been part of CL 606755. related to golang/protobuf#1640 Change-Id: Iae1bfb9e3bd440f879047d3a78e1bba364d7568c Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/607775 LUCI-TryBot-Result: Go LUCI Reviewed-by: Christian Höppner --- cmd/protoc-gen-go/internal_gengo/main.go | 2 - cmd/protoc-gen-go/internal_gengo/reflect.go | 2 +- .../testdata/annotations/annotations.pb.go | 10 +- .../annotations/annotations.pb.go.meta | 2 +- .../testdata/comments/comments.pb.go | 60 ++-- .../testdata/comments/deprecated.pb.go | 10 +- .../testdata/extensions/base/base.pb.go | 20 +- .../testdata/extensions/ext/ext.pb.go | 80 ++--- .../testdata/extensions/extra/extra.pb.go | 10 +- .../testdata/extensions/proto3/ext3.pb.go | 10 +- .../testdata/fieldnames/fieldnames.pb.go | 20 +- .../testdata/import_public/a.pb.go | 10 +- .../testdata/import_public/b.pb.go | 10 +- .../testdata/import_public/c.pb.go | 10 +- .../testdata/import_public/sub/a.pb.go | 20 +- .../testdata/import_public/sub/b.pb.go | 10 +- .../testdata/import_public/sub2/a.pb.go | 10 +- .../testdata/imports/fmt/m.pb.go | 10 +- .../testdata/imports/test_a_1/m1.pb.go | 20 +- .../testdata/imports/test_a_1/m2.pb.go | 10 +- .../testdata/imports/test_a_2/m3.pb.go | 10 +- .../testdata/imports/test_a_2/m4.pb.go | 10 +- .../testdata/imports/test_b_1/m1.pb.go | 10 +- .../testdata/imports/test_b_1/m2.pb.go | 10 +- .../testdata/imports/test_import_a1m1.pb.go | 10 +- .../testdata/imports/test_import_a1m2.pb.go | 10 +- .../testdata/imports/test_import_all.pb.go | 10 +- .../issue780_oneof_conflict/test.pb.go | 10 +- .../testdata/nopackage/nopackage.pb.go | 10 +- cmd/protoc-gen-go/testdata/proto2/enum.pb.go | 20 +- .../testdata/proto2/fields.pb.go | 60 ++-- .../testdata/proto2/nested_messages.pb.go | 30 +- .../testdata/proto2/proto2.pb.go | 10 +- .../testdata/proto3/fields.pb.go | 20 +- .../testdata/protoeditions/enum.pb.go | 20 +- .../testdata/protoeditions/fields.pb.go | 60 ++-- .../testdata/protoeditions/legacy_enum.pb.go | 10 +- .../protoeditions/maps_and_delimited.pb.go | 20 +- .../protoeditions/nested_messages.pb.go | 30 +- .../testdata/retention/options_message.pb.go | 10 +- .../testdata/retention/retention.pb.go | 30 +- .../testprotos/benchmarks/micro/micro.pb.go | 10 +- .../testprotos/conformance/conformance.pb.go | 40 +-- .../editions/test_messages_edition2023.pb.go | 50 ++- .../test_messages_proto2_editions.pb.go | 210 +++++------ .../test_messages_proto3_editions.pb.go | 50 ++- .../conformance/test_messages_proto2.pb.go | 210 +++++------ .../conformance/test_messages_proto3.pb.go | 50 ++- .../testprotos/editionsfuzztest/test2.pb.go | 50 ++- .../editionsfuzztest/test2editions.pb.go | 50 ++- .../testprotos/editionsfuzztest/test3.pb.go | 30 +- .../editionsfuzztest/test3editions.pb.go | 30 +- .../testprotos/fieldtrack/fieldtrack.pb.go | 10 +- internal/testprotos/fuzz/fuzz.pb.go | 10 +- internal/testprotos/irregular/test.pb.go | 10 +- .../lazy_extension_normalized_wire_test.pb.go | 30 +- .../testprotos/lazy/lazy_extension_test.pb.go | 70 ++-- internal/testprotos/legacy/legacy.pb.go | 10 +- .../messageset/messagesetpb/message_set.pb.go | 20 +- .../messageset/msetextpb/msetextpb.pb.go | 40 +-- internal/testprotos/news/news.pb.go | 30 +- internal/testprotos/order/order.pb.go | 10 +- internal/testprotos/race/extender/test.pb.go | 10 +- internal/testprotos/race/message/test.pb.go | 10 +- internal/testprotos/registry/test.pb.go | 40 +-- internal/testprotos/required/required.pb.go | 170 ++++----- internal/testprotos/test/test.pb.go | 270 ++++++-------- internal/testprotos/test/test_import.pb.go | 10 +- internal/testprotos/test/test_public.pb.go | 10 +- .../testprotos/test/weak1/test_weak.pb.go | 10 +- .../testprotos/test/weak2/test_weak.pb.go | 10 +- internal/testprotos/test3/test.pb.go | 30 +- internal/testprotos/test3/test_import.pb.go | 10 +- internal/testprotos/testeditions/test.pb.go | 130 +++---- .../testeditions/test_extension.pb.go | 60 ++-- .../testeditions/test_extension2.pb.go | 10 +- internal/testprotos/textpb2/test.pb.go | 200 +++++------ internal/testprotos/textpb3/test.pb.go | 90 ++--- .../testprotos/textpbeditions/test2.pb.go | 230 +++++------- types/descriptorpb/descriptor.pb.go | 330 +++++++----------- types/gofeaturespb/go_features.pb.go | 10 +- types/known/anypb/any.pb.go | 10 +- types/known/apipb/api.pb.go | 30 +- types/known/durationpb/duration.pb.go | 10 +- types/known/emptypb/empty.pb.go | 10 +- types/known/fieldmaskpb/field_mask.pb.go | 10 +- .../sourcecontextpb/source_context.pb.go | 10 +- types/known/structpb/struct.pb.go | 30 +- types/known/timestamppb/timestamp.pb.go | 10 +- types/known/typepb/type.pb.go | 50 ++- types/known/wrapperspb/wrappers.pb.go | 90 ++--- types/pluginpb/plugin.pb.go | 40 +-- 92 files changed, 1482 insertions(+), 2224 deletions(-) diff --git a/cmd/protoc-gen-go/internal_gengo/main.go b/cmd/protoc-gen-go/internal_gengo/main.go index 1a3a34263..dfd16b272 100644 --- a/cmd/protoc-gen-go/internal_gengo/main.go +++ b/cmd/protoc-gen-go/internal_gengo/main.go @@ -537,12 +537,10 @@ func genMessageBaseMethods(g *protogen.GeneratedFile, f *fileInfo, m *messageInf // Reset method. g.P("func (x *", m.GoIdent, ") Reset() {") g.P("*x = ", m.GoIdent, "{}") - g.P("if ", protoimplPackage.Ident("UnsafeEnabled"), " {") g.P("mi := &", messageTypesVarName(f), "[", f.allMessagesByPtr[m], "]") g.P("ms := ", protoimplPackage.Ident("X"), ".MessageStateOf(", protoimplPackage.Ident("Pointer"), "(x))") g.P("ms.StoreMessageInfo(mi)") g.P("}") - g.P("}") g.P() // String method. diff --git a/cmd/protoc-gen-go/internal_gengo/reflect.go b/cmd/protoc-gen-go/internal_gengo/reflect.go index 419ed8a23..75939d96f 100644 --- a/cmd/protoc-gen-go/internal_gengo/reflect.go +++ b/cmd/protoc-gen-go/internal_gengo/reflect.go @@ -310,7 +310,7 @@ func genMessageReflectMethods(g *protogen.GeneratedFile, f *fileInfo, m *message // ProtoReflect method. g.P("func (x *", m.GoIdent, ") ProtoReflect() ", protoreflectPackage.Ident("Message"), " {") g.P("mi := &", typesVar, "[", idx, "]") - g.P("if ", protoimplPackage.Ident("UnsafeEnabled"), " && x != nil {") + g.P("if x != nil {") g.P("ms := ", protoimplPackage.Ident("X"), ".MessageStateOf(", protoimplPackage.Ident("Pointer"), "(x))") g.P("if ms.LoadMessageInfo() == nil {") g.P("ms.StoreMessageInfo(mi)") diff --git a/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go b/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go index 323426d49..ea9a9a2bf 100644 --- a/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go +++ b/cmd/protoc-gen-go/testdata/annotations/annotations.pb.go @@ -80,11 +80,9 @@ type AnnotationsTestMessage struct { func (x *AnnotationsTestMessage) Reset() { *x = AnnotationsTestMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *AnnotationsTestMessage) String() string { @@ -95,7 +93,7 @@ func (*AnnotationsTestMessage) ProtoMessage() {} func (x *AnnotationsTestMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_annotations_annotations_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 d0d5ea653..63f601e37 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:2136 end:2156} 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:3397 end:3420} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3563 end:3567} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3730 end:3734 semantic:SET} \ No newline at end of file +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:2136 end:2156} 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:3334 end:3357} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3500 end:3504} annotation:{path:4 path:0 path:2 path:1 source_file:"cmd/protoc-gen-go/testdata/annotations/annotations.proto" begin:3667 end:3671 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 9002ba4ac..06b292e65 100644 --- a/cmd/protoc-gen-go/testdata/comments/comments.pb.go +++ b/cmd/protoc-gen-go/testdata/comments/comments.pb.go @@ -94,11 +94,9 @@ type Message1 struct { func (x *Message1) Reset() { *x = Message1{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message1) String() string { @@ -109,7 +107,7 @@ func (*Message1) ProtoMessage() {} func (x *Message1) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -165,11 +163,9 @@ type Message2 struct { func (x *Message2) Reset() { *x = Message2{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message2) String() string { @@ -180,7 +176,7 @@ func (*Message2) ProtoMessage() {} func (x *Message2) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -204,11 +200,9 @@ type Message1_Message1A struct { func (x *Message1_Message1A) Reset() { *x = Message1_Message1A{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message1_Message1A) String() string { @@ -219,7 +213,7 @@ func (*Message1_Message1A) ProtoMessage() {} func (x *Message1_Message1A) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -243,11 +237,9 @@ type Message1_Message1B struct { func (x *Message1_Message1B) Reset() { *x = Message1_Message1B{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message1_Message1B) String() string { @@ -258,7 +250,7 @@ func (*Message1_Message1B) ProtoMessage() {} func (x *Message1_Message1B) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -282,11 +274,9 @@ type Message2_Message2A struct { func (x *Message2_Message2A) Reset() { *x = Message2_Message2A{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message2_Message2A) String() string { @@ -297,7 +287,7 @@ func (*Message2_Message2A) ProtoMessage() {} func (x *Message2_Message2A) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -321,11 +311,9 @@ type Message2_Message2B struct { func (x *Message2_Message2B) Reset() { *x = Message2_Message2B{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message2_Message2B) String() string { @@ -336,7 +324,7 @@ func (*Message2_Message2B) ProtoMessage() {} func (x *Message2_Message2B) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_comments_comments_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go b/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go index 275261453..017d5f6ec 100644 --- a/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go +++ b/cmd/protoc-gen-go/testdata/comments/deprecated.pb.go @@ -71,11 +71,9 @@ type DeprecatedMessage struct { func (x *DeprecatedMessage) Reset() { *x = DeprecatedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DeprecatedMessage) String() string { @@ -86,7 +84,7 @@ func (*DeprecatedMessage) ProtoMessage() {} func (x *DeprecatedMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_comments_deprecated_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 17afef4cf..34fb0a14b 100644 --- a/cmd/protoc-gen-go/testdata/extensions/base/base.pb.go +++ b/cmd/protoc-gen-go/testdata/extensions/base/base.pb.go @@ -25,11 +25,9 @@ type BaseMessage struct { func (x *BaseMessage) Reset() { *x = BaseMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BaseMessage) String() string { @@ -40,7 +38,7 @@ func (*BaseMessage) ProtoMessage() {} func (x *BaseMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -71,11 +69,9 @@ type MessageSetWireFormatMessage struct { func (x *MessageSetWireFormatMessage) Reset() { *x = MessageSetWireFormatMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageSetWireFormatMessage) String() string { @@ -86,7 +82,7 @@ func (*MessageSetWireFormatMessage) ProtoMessage() {} func (x *MessageSetWireFormatMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_extensions_base_base_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 32a8a8e24..1f0624a9f 100644 --- a/cmd/protoc-gen-go/testdata/extensions/ext/ext.pb.go +++ b/cmd/protoc-gen-go/testdata/extensions/ext/ext.pb.go @@ -79,11 +79,9 @@ type Message struct { func (x *Message) Reset() { *x = Message{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message) String() string { @@ -94,7 +92,7 @@ func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -126,11 +124,9 @@ type ExtensionGroup struct { func (x *ExtensionGroup) Reset() { *x = ExtensionGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtensionGroup) String() string { @@ -141,7 +137,7 @@ func (*ExtensionGroup) ProtoMessage() {} func (x *ExtensionGroup) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -172,11 +168,9 @@ type ExtendingMessage struct { func (x *ExtendingMessage) Reset() { *x = ExtendingMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtendingMessage) String() string { @@ -187,7 +181,7 @@ func (*ExtendingMessage) ProtoMessage() {} func (x *ExtendingMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -212,11 +206,9 @@ type RepeatedGroup struct { func (x *RepeatedGroup) Reset() { *x = RepeatedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RepeatedGroup) String() string { @@ -227,7 +219,7 @@ func (*RepeatedGroup) ProtoMessage() {} func (x *RepeatedGroup) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -259,11 +251,9 @@ type Extendable struct { func (x *Extendable) Reset() { *x = Extendable{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Extendable) String() string { @@ -274,7 +264,7 @@ func (*Extendable) ProtoMessage() {} func (x *Extendable) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -298,11 +288,9 @@ type MessageSetWireFormatExtension struct { func (x *MessageSetWireFormatExtension) Reset() { *x = MessageSetWireFormatExtension{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageSetWireFormatExtension) String() string { @@ -313,7 +301,7 @@ func (*MessageSetWireFormatExtension) ProtoMessage() {} func (x *MessageSetWireFormatExtension) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -336,11 +324,9 @@ type Message_M struct { func (x *Message_M) Reset() { *x = Message_M{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message_M) String() string { @@ -351,7 +337,7 @@ func (*Message_M) ProtoMessage() {} func (x *Message_M) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -374,11 +360,9 @@ type ExtendingMessage_ExtendingMessageSubmessage struct { func (x *ExtendingMessage_ExtendingMessageSubmessage) Reset() { *x = ExtendingMessage_ExtendingMessageSubmessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtendingMessage_ExtendingMessageSubmessage) String() string { @@ -389,7 +373,7 @@ func (*ExtendingMessage_ExtendingMessageSubmessage) ProtoMessage() {} func (x *ExtendingMessage_ExtendingMessageSubmessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_extensions_ext_ext_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 c79f4de4d..149963b21 100644 --- a/cmd/protoc-gen-go/testdata/extensions/extra/extra.pb.go +++ b/cmd/protoc-gen-go/testdata/extensions/extra/extra.pb.go @@ -24,11 +24,9 @@ type ExtraMessage struct { func (x *ExtraMessage) Reset() { *x = ExtraMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtraMessage) String() string { @@ -39,7 +37,7 @@ func (*ExtraMessage) ProtoMessage() {} func (x *ExtraMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_extensions_extra_extra_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 64af40758..b7349d39f 100644 --- a/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.pb.go +++ b/cmd/protoc-gen-go/testdata/extensions/proto3/ext3.pb.go @@ -66,11 +66,9 @@ type Message struct { func (x *Message) Reset() { *x = Message{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message) String() string { @@ -81,7 +79,7 @@ func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_extensions_proto3_ext3_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.pb.go b/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.pb.go index 997a26c0a..74639fc04 100644 --- a/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.pb.go +++ b/cmd/protoc-gen-go/testdata/fieldnames/fieldnames.pb.go @@ -65,11 +65,9 @@ type Message struct { func (x *Message) Reset() { *x = Message{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message) String() string { @@ -80,7 +78,7 @@ func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -286,11 +284,9 @@ type Message_OneofMessageConflict struct { func (x *Message_OneofMessageConflict) Reset() { *x = Message_OneofMessageConflict{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message_OneofMessageConflict) String() string { @@ -301,7 +297,7 @@ func (*Message_OneofMessageConflict) ProtoMessage() {} func (x *Message_OneofMessageConflict) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_fieldnames_fieldnames_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 4975c379f..51f11701b 100644 --- a/cmd/protoc-gen-go/testdata/import_public/a.pb.go +++ b/cmd/protoc-gen-go/testdata/import_public/a.pb.go @@ -65,11 +65,9 @@ type Public struct { func (x *Public) Reset() { *x = Public{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Public) String() string { @@ -80,7 +78,7 @@ func (*Public) ProtoMessage() {} func (x *Public) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_import_public_a_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 f2eb62ee3..f12fe4122 100644 --- a/cmd/protoc-gen-go/testdata/import_public/b.pb.go +++ b/cmd/protoc-gen-go/testdata/import_public/b.pb.go @@ -26,11 +26,9 @@ type Local struct { func (x *Local) Reset() { *x = Local{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Local) String() string { @@ -41,7 +39,7 @@ func (*Local) ProtoMessage() {} func (x *Local) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_import_public_b_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 b1fedd3cc..8fd39efe7 100644 --- a/cmd/protoc-gen-go/testdata/import_public/c.pb.go +++ b/cmd/protoc-gen-go/testdata/import_public/c.pb.go @@ -29,11 +29,9 @@ type UsingPublicImport struct { func (x *UsingPublicImport) Reset() { *x = UsingPublicImport{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_import_public_c_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_import_public_c_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UsingPublicImport) String() string { @@ -44,7 +42,7 @@ func (*UsingPublicImport) ProtoMessage() {} func (x *UsingPublicImport) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_import_public_c_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 d81e536b2..a6de1af5f 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 @@ -210,11 +210,9 @@ var ( func (x *M) Reset() { *x = M{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *M) String() string { @@ -225,7 +223,7 @@ func (*M) ProtoMessage() {} func (x *M) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -319,11 +317,9 @@ type M_Submessage struct { func (x *M_Submessage) Reset() { *x = M_Submessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *M_Submessage) String() string { @@ -334,7 +330,7 @@ func (*M_Submessage) ProtoMessage() {} func (x *M_Submessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_a_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 cb011dfd5..b1874e894 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 @@ -22,11 +22,9 @@ type M2 struct { func (x *M2) Reset() { *x = M2{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *M2) String() string { @@ -37,7 +35,7 @@ func (*M2) ProtoMessage() {} func (x *M2) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_import_public_sub_b_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 fb46946be..cb4c1f442 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 @@ -22,11 +22,9 @@ type Sub2Message struct { func (x *Sub2Message) Reset() { *x = Sub2Message{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Sub2Message) String() string { @@ -37,7 +35,7 @@ func (*Sub2Message) ProtoMessage() {} func (x *Sub2Message) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_import_public_sub2_a_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 f7175862b..89e9ab47b 100644 --- a/cmd/protoc-gen-go/testdata/imports/fmt/m.pb.go +++ b/cmd/protoc-gen-go/testdata/imports/fmt/m.pb.go @@ -22,11 +22,9 @@ type M struct { func (x *M) Reset() { *x = M{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *M) String() string { @@ -37,7 +35,7 @@ func (*M) ProtoMessage() {} func (x *M) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_imports_fmt_m_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 1c4e1e3c4..8fa4f343d 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 @@ -65,11 +65,9 @@ type M1 struct { func (x *M1) Reset() { *x = M1{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *M1) String() string { @@ -80,7 +78,7 @@ func (*M1) ProtoMessage() {} func (x *M1) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -105,11 +103,9 @@ type M1_1 struct { func (x *M1_1) Reset() { *x = M1_1{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *M1_1) String() string { @@ -120,7 +116,7 @@ func (*M1_1) ProtoMessage() {} func (x *M1_1) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m1_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 a498ea1f5..a5a3ca3ef 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 @@ -22,11 +22,9 @@ type M2 struct { func (x *M2) Reset() { *x = M2{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *M2) String() string { @@ -37,7 +35,7 @@ func (*M2) ProtoMessage() {} func (x *M2) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_1_m2_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 504d28cef..7b19da6a8 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 @@ -22,11 +22,9 @@ type M3 struct { func (x *M3) Reset() { *x = M3{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *M3) String() string { @@ -37,7 +35,7 @@ func (*M3) ProtoMessage() {} func (x *M3) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_2_m3_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 bd61016f6..b2ef55c23 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 @@ -22,11 +22,9 @@ type M4 struct { func (x *M4) Reset() { *x = M4{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *M4) String() string { @@ -37,7 +35,7 @@ func (*M4) ProtoMessage() {} func (x *M4) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_imports_test_a_2_m4_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 af09fd441..2a6676f7e 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 @@ -22,11 +22,9 @@ type M1 struct { func (x *M1) Reset() { *x = M1{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *M1) String() string { @@ -37,7 +35,7 @@ func (*M1) ProtoMessage() {} func (x *M1) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_imports_test_b_1_m1_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 04ff330ad..64ac0fa6c 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 @@ -22,11 +22,9 @@ type M2 struct { func (x *M2) Reset() { *x = M2{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *M2) String() string { @@ -37,7 +35,7 @@ func (*M2) ProtoMessage() {} func (x *M2) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_imports_test_b_1_m2_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 d48e7aff9..c01ce681e 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 @@ -25,11 +25,9 @@ type A1M1 struct { func (x *A1M1) Reset() { *x = A1M1{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *A1M1) String() string { @@ -40,7 +38,7 @@ func (*A1M1) ProtoMessage() {} func (x *A1M1) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_a1m1_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 22d341599..f1a789918 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 @@ -25,11 +25,9 @@ type A1M2 struct { func (x *A1M2) Reset() { *x = A1M2{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *A1M2) String() string { @@ -40,7 +38,7 @@ func (*A1M2) ProtoMessage() {} func (x *A1M2) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_a1m2_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 374e1c767..b5f68aa94 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 @@ -32,11 +32,9 @@ type All struct { func (x *All) Reset() { *x = All{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *All) String() string { @@ -47,7 +45,7 @@ func (*All) ProtoMessage() {} func (x *All) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_imports_test_import_all_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 f6dd1e00b..8efc16d01 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 @@ -27,11 +27,9 @@ type Foo struct { func (x *Foo) Reset() { *x = Foo{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Foo) String() string { @@ -42,7 +40,7 @@ func (*Foo) ProtoMessage() {} func (x *Foo) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_issue780_oneof_conflict_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/cmd/protoc-gen-go/testdata/nopackage/nopackage.pb.go b/cmd/protoc-gen-go/testdata/nopackage/nopackage.pb.go index e528850ba..dd74638bc 100644 --- a/cmd/protoc-gen-go/testdata/nopackage/nopackage.pb.go +++ b/cmd/protoc-gen-go/testdata/nopackage/nopackage.pb.go @@ -83,11 +83,9 @@ const ( func (x *Message) Reset() { *x = Message{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message) String() string { @@ -98,7 +96,7 @@ func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_nopackage_nopackage_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/cmd/protoc-gen-go/testdata/proto2/enum.pb.go b/cmd/protoc-gen-go/testdata/proto2/enum.pb.go index f0f5a5633..5eb2ba480 100644 --- a/cmd/protoc-gen-go/testdata/proto2/enum.pb.go +++ b/cmd/protoc-gen-go/testdata/proto2/enum.pb.go @@ -362,11 +362,9 @@ const ( func (x *EnumContainerMessage1) Reset() { *x = EnumContainerMessage1{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumContainerMessage1) String() string { @@ -377,7 +375,7 @@ func (*EnumContainerMessage1) ProtoMessage() {} func (x *EnumContainerMessage1) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -414,11 +412,9 @@ type EnumContainerMessage1_EnumContainerMessage2 struct { func (x *EnumContainerMessage1_EnumContainerMessage2) Reset() { *x = EnumContainerMessage1_EnumContainerMessage2{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumContainerMessage1_EnumContainerMessage2) String() string { @@ -429,7 +425,7 @@ func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {} func (x *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto2_enum_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/cmd/protoc-gen-go/testdata/proto2/fields.pb.go b/cmd/protoc-gen-go/testdata/proto2/fields.pb.go index 5f264e3fc..74fcdece2 100644 --- a/cmd/protoc-gen-go/testdata/proto2/fields.pb.go +++ b/cmd/protoc-gen-go/testdata/proto2/fields.pb.go @@ -220,11 +220,9 @@ var ( func (x *FieldTestMessage) Reset() { *x = FieldTestMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage) String() string { @@ -235,7 +233,7 @@ func (*FieldTestMessage) ProtoMessage() {} func (x *FieldTestMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1122,11 +1120,9 @@ type FieldTestMessage_OptionalGroup struct { func (x *FieldTestMessage_OptionalGroup) Reset() { *x = FieldTestMessage_OptionalGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage_OptionalGroup) String() string { @@ -1137,7 +1133,7 @@ func (*FieldTestMessage_OptionalGroup) ProtoMessage() {} func (x *FieldTestMessage_OptionalGroup) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1169,11 +1165,9 @@ type FieldTestMessage_RequiredGroup struct { func (x *FieldTestMessage_RequiredGroup) Reset() { *x = FieldTestMessage_RequiredGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage_RequiredGroup) String() string { @@ -1184,7 +1178,7 @@ func (*FieldTestMessage_RequiredGroup) ProtoMessage() {} func (x *FieldTestMessage_RequiredGroup) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1216,11 +1210,9 @@ type FieldTestMessage_RepeatedGroup struct { func (x *FieldTestMessage_RepeatedGroup) Reset() { *x = FieldTestMessage_RepeatedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage_RepeatedGroup) String() string { @@ -1231,7 +1223,7 @@ func (*FieldTestMessage_RepeatedGroup) ProtoMessage() {} func (x *FieldTestMessage_RepeatedGroup) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1263,11 +1255,9 @@ type FieldTestMessage_OneofGroup struct { func (x *FieldTestMessage_OneofGroup) Reset() { *x = FieldTestMessage_OneofGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage_OneofGroup) String() string { @@ -1278,7 +1268,7 @@ func (*FieldTestMessage_OneofGroup) ProtoMessage() {} func (x *FieldTestMessage_OneofGroup) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1308,11 +1298,9 @@ type FieldTestMessage_Message struct { func (x *FieldTestMessage_Message) Reset() { *x = FieldTestMessage_Message{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage_Message) String() string { @@ -1323,7 +1311,7 @@ func (*FieldTestMessage_Message) ProtoMessage() {} func (x *FieldTestMessage_Message) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto2_fields_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 9c9f1ca30..877d500d3 100644 --- a/cmd/protoc-gen-go/testdata/proto2/nested_messages.pb.go +++ b/cmd/protoc-gen-go/testdata/proto2/nested_messages.pb.go @@ -25,11 +25,9 @@ type Layer1 struct { func (x *Layer1) Reset() { *x = Layer1{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Layer1) String() string { @@ -40,7 +38,7 @@ func (*Layer1) ProtoMessage() {} func (x *Layer1) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -79,11 +77,9 @@ type Layer1_Layer2 struct { func (x *Layer1_Layer2) Reset() { *x = Layer1_Layer2{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Layer1_Layer2) String() string { @@ -94,7 +90,7 @@ func (*Layer1_Layer2) ProtoMessage() {} func (x *Layer1_Layer2) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -124,11 +120,9 @@ type Layer1_Layer2_Layer3 struct { func (x *Layer1_Layer2_Layer3) Reset() { *x = Layer1_Layer2_Layer3{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Layer1_Layer2_Layer3) String() string { @@ -139,7 +133,7 @@ func (*Layer1_Layer2_Layer3) ProtoMessage() {} func (x *Layer1_Layer2_Layer3) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto2_nested_messages_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/cmd/protoc-gen-go/testdata/proto2/proto2.pb.go b/cmd/protoc-gen-go/testdata/proto2/proto2.pb.go index b97348de9..b9069a4d0 100644 --- a/cmd/protoc-gen-go/testdata/proto2/proto2.pb.go +++ b/cmd/protoc-gen-go/testdata/proto2/proto2.pb.go @@ -25,11 +25,9 @@ type Message struct { func (x *Message) Reset() { *x = Message{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message) String() string { @@ -40,7 +38,7 @@ func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto2_proto2_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/cmd/protoc-gen-go/testdata/proto3/fields.pb.go b/cmd/protoc-gen-go/testdata/proto3/fields.pb.go index 60485aeb7..02385e77e 100644 --- a/cmd/protoc-gen-go/testdata/proto3/fields.pb.go +++ b/cmd/protoc-gen-go/testdata/proto3/fields.pb.go @@ -103,11 +103,9 @@ type FieldTestMessage struct { func (x *FieldTestMessage) Reset() { *x = FieldTestMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage) String() string { @@ -118,7 +116,7 @@ func (*FieldTestMessage) ProtoMessage() {} func (x *FieldTestMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -400,11 +398,9 @@ type FieldTestMessage_Message struct { func (x *FieldTestMessage_Message) Reset() { *x = FieldTestMessage_Message{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage_Message) String() string { @@ -415,7 +411,7 @@ func (*FieldTestMessage_Message) ProtoMessage() {} func (x *FieldTestMessage_Message) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_proto3_fields_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/cmd/protoc-gen-go/testdata/protoeditions/enum.pb.go b/cmd/protoc-gen-go/testdata/protoeditions/enum.pb.go index 2ebfce981..7a283f77a 100644 --- a/cmd/protoc-gen-go/testdata/protoeditions/enum.pb.go +++ b/cmd/protoc-gen-go/testdata/protoeditions/enum.pb.go @@ -362,11 +362,9 @@ const ( func (x *EnumContainerMessage1) Reset() { *x = EnumContainerMessage1{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumContainerMessage1) String() string { @@ -377,7 +375,7 @@ func (*EnumContainerMessage1) ProtoMessage() {} func (x *EnumContainerMessage1) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -414,11 +412,9 @@ type EnumContainerMessage1_EnumContainerMessage2 struct { func (x *EnumContainerMessage1_EnumContainerMessage2) Reset() { *x = EnumContainerMessage1_EnumContainerMessage2{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumContainerMessage1_EnumContainerMessage2) String() string { @@ -429,7 +425,7 @@ func (*EnumContainerMessage1_EnumContainerMessage2) ProtoMessage() {} func (x *EnumContainerMessage1_EnumContainerMessage2) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_enum_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/cmd/protoc-gen-go/testdata/protoeditions/fields.pb.go b/cmd/protoc-gen-go/testdata/protoeditions/fields.pb.go index 3a0e36ee1..cf3a1766c 100644 --- a/cmd/protoc-gen-go/testdata/protoeditions/fields.pb.go +++ b/cmd/protoc-gen-go/testdata/protoeditions/fields.pb.go @@ -210,11 +210,9 @@ var ( func (x *FieldTestMessage) Reset() { *x = FieldTestMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage) String() string { @@ -225,7 +223,7 @@ func (*FieldTestMessage) ProtoMessage() {} func (x *FieldTestMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1112,11 +1110,9 @@ type FieldTestMessage_OptionalGroup struct { func (x *FieldTestMessage_OptionalGroup) Reset() { *x = FieldTestMessage_OptionalGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage_OptionalGroup) String() string { @@ -1127,7 +1123,7 @@ func (*FieldTestMessage_OptionalGroup) ProtoMessage() {} func (x *FieldTestMessage_OptionalGroup) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1159,11 +1155,9 @@ type FieldTestMessage_RequiredGroup struct { func (x *FieldTestMessage_RequiredGroup) Reset() { *x = FieldTestMessage_RequiredGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage_RequiredGroup) String() string { @@ -1174,7 +1168,7 @@ func (*FieldTestMessage_RequiredGroup) ProtoMessage() {} func (x *FieldTestMessage_RequiredGroup) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1206,11 +1200,9 @@ type FieldTestMessage_RepeatedGroup struct { func (x *FieldTestMessage_RepeatedGroup) Reset() { *x = FieldTestMessage_RepeatedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage_RepeatedGroup) String() string { @@ -1221,7 +1213,7 @@ func (*FieldTestMessage_RepeatedGroup) ProtoMessage() {} func (x *FieldTestMessage_RepeatedGroup) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1253,11 +1245,9 @@ type FieldTestMessage_OneofGroup struct { func (x *FieldTestMessage_OneofGroup) Reset() { *x = FieldTestMessage_OneofGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage_OneofGroup) String() string { @@ -1268,7 +1258,7 @@ func (*FieldTestMessage_OneofGroup) ProtoMessage() {} func (x *FieldTestMessage_OneofGroup) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1298,11 +1288,9 @@ type FieldTestMessage_Message struct { func (x *FieldTestMessage_Message) Reset() { *x = FieldTestMessage_Message{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldTestMessage_Message) String() string { @@ -1313,7 +1301,7 @@ func (*FieldTestMessage_Message) ProtoMessage() {} func (x *FieldTestMessage_Message) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_fields_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 1b640e100..e821e5b10 100644 --- a/cmd/protoc-gen-go/testdata/protoeditions/legacy_enum.pb.go +++ b/cmd/protoc-gen-go/testdata/protoeditions/legacy_enum.pb.go @@ -186,11 +186,9 @@ type ContainerForNestedEnum struct { func (x *ContainerForNestedEnum) Reset() { *x = ContainerForNestedEnum{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_legacy_enum_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_legacy_enum_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ContainerForNestedEnum) String() string { @@ -201,7 +199,7 @@ func (*ContainerForNestedEnum) ProtoMessage() {} func (x *ContainerForNestedEnum) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_legacy_enum_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 5d3f602bc..21aef7f08 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 @@ -28,11 +28,9 @@ type MessageWithMaps struct { func (x *MessageWithMaps) Reset() { *x = MessageWithMaps{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_maps_and_delimited_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_maps_and_delimited_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageWithMaps) String() string { @@ -43,7 +41,7 @@ func (*MessageWithMaps) ProtoMessage() {} func (x *MessageWithMaps) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_maps_and_delimited_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -104,11 +102,9 @@ type MessageWithMaps_NestedMessage struct { func (x *MessageWithMaps_NestedMessage) Reset() { *x = MessageWithMaps_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_maps_and_delimited_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_maps_and_delimited_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageWithMaps_NestedMessage) String() string { @@ -119,7 +115,7 @@ func (*MessageWithMaps_NestedMessage) ProtoMessage() {} func (x *MessageWithMaps_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_maps_and_delimited_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 f0ef5d8a6..fe15bdf68 100644 --- a/cmd/protoc-gen-go/testdata/protoeditions/nested_messages.pb.go +++ b/cmd/protoc-gen-go/testdata/protoeditions/nested_messages.pb.go @@ -25,11 +25,9 @@ type Layer1 struct { func (x *Layer1) Reset() { *x = Layer1{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Layer1) String() string { @@ -40,7 +38,7 @@ func (*Layer1) ProtoMessage() {} func (x *Layer1) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -79,11 +77,9 @@ type Layer1_Layer2 struct { func (x *Layer1_Layer2) Reset() { *x = Layer1_Layer2{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Layer1_Layer2) String() string { @@ -94,7 +90,7 @@ func (*Layer1_Layer2) ProtoMessage() {} func (x *Layer1_Layer2) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -124,11 +120,9 @@ type Layer1_Layer2_Layer3 struct { func (x *Layer1_Layer2_Layer3) Reset() { *x = Layer1_Layer2_Layer3{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Layer1_Layer2_Layer3) String() string { @@ -139,7 +133,7 @@ func (*Layer1_Layer2_Layer3) ProtoMessage() {} func (x *Layer1_Layer2_Layer3) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_protoeditions_nested_messages_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 149142a75..d2725def0 100755 --- a/cmd/protoc-gen-go/testdata/retention/options_message.pb.go +++ b/cmd/protoc-gen-go/testdata/retention/options_message.pb.go @@ -28,11 +28,9 @@ type OptionsMessage struct { func (x *OptionsMessage) Reset() { *x = OptionsMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OptionsMessage) String() string { @@ -43,7 +41,7 @@ func (*OptionsMessage) ProtoMessage() {} func (x *OptionsMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_retention_options_message_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/cmd/protoc-gen-go/testdata/retention/retention.pb.go b/cmd/protoc-gen-go/testdata/retention/retention.pb.go index cd5b5da56..2b0f93436 100755 --- a/cmd/protoc-gen-go/testdata/retention/retention.pb.go +++ b/cmd/protoc-gen-go/testdata/retention/retention.pb.go @@ -130,11 +130,9 @@ type Extendee struct { func (x *Extendee) Reset() { *x = Extendee{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Extendee) String() string { @@ -145,7 +143,7 @@ func (*Extendee) ProtoMessage() {} func (x *Extendee) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -175,11 +173,9 @@ type TopLevelMessage struct { func (x *TopLevelMessage) Reset() { *x = TopLevelMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TopLevelMessage) String() string { @@ -190,7 +186,7 @@ func (*TopLevelMessage) ProtoMessage() {} func (x *TopLevelMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -244,11 +240,9 @@ type TopLevelMessage_NestedMessage struct { func (x *TopLevelMessage_NestedMessage) Reset() { *x = TopLevelMessage_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TopLevelMessage_NestedMessage) String() string { @@ -259,7 +253,7 @@ func (*TopLevelMessage_NestedMessage) ProtoMessage() {} func (x *TopLevelMessage_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_cmd_protoc_gen_go_testdata_retention_retention_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/benchmarks/micro/micro.pb.go b/internal/testprotos/benchmarks/micro/micro.pb.go index b0326c281..8392e4674 100644 --- a/internal/testprotos/benchmarks/micro/micro.pb.go +++ b/internal/testprotos/benchmarks/micro/micro.pb.go @@ -39,11 +39,9 @@ type SixteenRequired struct { func (x *SixteenRequired) Reset() { *x = SixteenRequired{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_benchmarks_micro_micro_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_benchmarks_micro_micro_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SixteenRequired) String() string { @@ -54,7 +52,7 @@ func (*SixteenRequired) ProtoMessage() {} func (x *SixteenRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_benchmarks_micro_micro_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/conformance/conformance.pb.go b/internal/testprotos/conformance/conformance.pb.go index 83514357f..c8a166c41 100644 --- a/internal/testprotos/conformance/conformance.pb.go +++ b/internal/testprotos/conformance/conformance.pb.go @@ -152,11 +152,9 @@ type FailureSet struct { func (x *FailureSet) Reset() { *x = FailureSet{} - if protoimpl.UnsafeEnabled { - mi := &file_conformance_conformance_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conformance_conformance_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FailureSet) String() string { @@ -167,7 +165,7 @@ func (*FailureSet) ProtoMessage() {} func (x *FailureSet) ProtoReflect() protoreflect.Message { mi := &file_conformance_conformance_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -229,11 +227,9 @@ type ConformanceRequest struct { func (x *ConformanceRequest) Reset() { *x = ConformanceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_conformance_conformance_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conformance_conformance_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConformanceRequest) String() string { @@ -244,7 +240,7 @@ func (*ConformanceRequest) ProtoMessage() {} func (x *ConformanceRequest) ProtoReflect() protoreflect.Message { mi := &file_conformance_conformance_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -380,11 +376,9 @@ type ConformanceResponse struct { func (x *ConformanceResponse) Reset() { *x = ConformanceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_conformance_conformance_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conformance_conformance_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ConformanceResponse) String() string { @@ -395,7 +389,7 @@ func (*ConformanceResponse) ProtoMessage() {} func (x *ConformanceResponse) ProtoReflect() protoreflect.Message { mi := &file_conformance_conformance_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -575,11 +569,9 @@ type JspbEncodingConfig struct { func (x *JspbEncodingConfig) Reset() { *x = JspbEncodingConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_conformance_conformance_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conformance_conformance_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *JspbEncodingConfig) String() string { @@ -590,7 +582,7 @@ func (*JspbEncodingConfig) ProtoMessage() {} func (x *JspbEncodingConfig) ProtoReflect() protoreflect.Message { mi := &file_conformance_conformance_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/conformance/editions/test_messages_edition2023.pb.go b/internal/testprotos/conformance/editions/test_messages_edition2023.pb.go index f845b42f8..952d55b42 100644 --- a/internal/testprotos/conformance/editions/test_messages_edition2023.pb.go +++ b/internal/testprotos/conformance/editions/test_messages_edition2023.pb.go @@ -230,11 +230,9 @@ type TestAllTypesEdition2023 struct { func (x *TestAllTypesEdition2023) Reset() { *x = TestAllTypesEdition2023{} - if protoimpl.UnsafeEnabled { - mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesEdition2023) String() string { @@ -245,7 +243,7 @@ func (*TestAllTypesEdition2023) ProtoMessage() {} func (x *TestAllTypesEdition2023) ProtoReflect() protoreflect.Message { mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1042,11 +1040,9 @@ type ForeignMessageEdition2023 struct { func (x *ForeignMessageEdition2023) Reset() { *x = ForeignMessageEdition2023{} - if protoimpl.UnsafeEnabled { - mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ForeignMessageEdition2023) String() string { @@ -1057,7 +1053,7 @@ func (*ForeignMessageEdition2023) ProtoMessage() {} func (x *ForeignMessageEdition2023) ProtoReflect() protoreflect.Message { mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1089,11 +1085,9 @@ type GroupLikeType struct { func (x *GroupLikeType) Reset() { *x = GroupLikeType{} - if protoimpl.UnsafeEnabled { - mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GroupLikeType) String() string { @@ -1104,7 +1098,7 @@ func (*GroupLikeType) ProtoMessage() {} func (x *GroupLikeType) ProtoReflect() protoreflect.Message { mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1137,11 +1131,9 @@ type TestAllTypesEdition2023_NestedMessage struct { func (x *TestAllTypesEdition2023_NestedMessage) Reset() { *x = TestAllTypesEdition2023_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesEdition2023_NestedMessage) String() string { @@ -1152,7 +1144,7 @@ func (*TestAllTypesEdition2023_NestedMessage) ProtoMessage() {} func (x *TestAllTypesEdition2023_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1193,11 +1185,9 @@ type TestAllTypesEdition2023_GroupLikeType struct { func (x *TestAllTypesEdition2023_GroupLikeType) Reset() { *x = TestAllTypesEdition2023_GroupLikeType{} - if protoimpl.UnsafeEnabled { - mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesEdition2023_GroupLikeType) String() string { @@ -1208,7 +1198,7 @@ func (*TestAllTypesEdition2023_GroupLikeType) ProtoMessage() {} func (x *TestAllTypesEdition2023_GroupLikeType) ProtoReflect() protoreflect.Message { mi := &file_conformance_test_protos_test_messages_edition2023_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 193c6e13e..5ec34265f 100644 --- a/internal/testprotos/conformance/editionsmigration/test_messages_proto2_editions.pb.go +++ b/internal/testprotos/conformance/editionsmigration/test_messages_proto2_editions.pb.go @@ -407,11 +407,9 @@ var ( func (x *TestAllTypesProto2) Reset() { *x = TestAllTypesProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2) String() string { @@ -422,7 +420,7 @@ func (*TestAllTypesProto2) ProtoMessage() {} func (x *TestAllTypesProto2) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1450,11 +1448,9 @@ type ForeignMessageProto2 struct { func (x *ForeignMessageProto2) Reset() { *x = ForeignMessageProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ForeignMessageProto2) String() string { @@ -1465,7 +1461,7 @@ func (*ForeignMessageProto2) ProtoMessage() {} func (x *ForeignMessageProto2) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1498,11 +1494,9 @@ type GroupField struct { func (x *GroupField) Reset() { *x = GroupField{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GroupField) String() string { @@ -1513,7 +1507,7 @@ func (*GroupField) ProtoMessage() {} func (x *GroupField) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1557,11 +1551,9 @@ type UnknownToTestAllTypes struct { func (x *UnknownToTestAllTypes) Reset() { *x = UnknownToTestAllTypes{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnknownToTestAllTypes) String() string { @@ -1572,7 +1564,7 @@ func (*UnknownToTestAllTypes) ProtoMessage() {} func (x *UnknownToTestAllTypes) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1637,11 +1629,9 @@ type NullHypothesisProto2 struct { func (x *NullHypothesisProto2) Reset() { *x = NullHypothesisProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NullHypothesisProto2) String() string { @@ -1652,7 +1642,7 @@ func (*NullHypothesisProto2) ProtoMessage() {} func (x *NullHypothesisProto2) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1675,11 +1665,9 @@ type EnumOnlyProto2 struct { func (x *EnumOnlyProto2) Reset() { *x = EnumOnlyProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumOnlyProto2) String() string { @@ -1690,7 +1678,7 @@ func (*EnumOnlyProto2) ProtoMessage() {} func (x *EnumOnlyProto2) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1715,11 +1703,9 @@ type OneStringProto2 struct { func (x *OneStringProto2) Reset() { *x = OneStringProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OneStringProto2) String() string { @@ -1730,7 +1716,7 @@ func (*OneStringProto2) ProtoMessage() {} func (x *OneStringProto2) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1764,11 +1750,9 @@ type ProtoWithKeywords struct { func (x *ProtoWithKeywords) Reset() { *x = ProtoWithKeywords{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProtoWithKeywords) String() string { @@ -1779,7 +1763,7 @@ func (*ProtoWithKeywords) ProtoMessage() {} func (x *ProtoWithKeywords) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1889,11 +1873,9 @@ var ( func (x *TestAllRequiredTypesProto2) Reset() { *x = TestAllRequiredTypesProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllRequiredTypesProto2) String() string { @@ -1904,7 +1886,7 @@ func (*TestAllRequiredTypesProto2) ProtoMessage() {} func (x *TestAllRequiredTypesProto2) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2203,11 +2185,9 @@ type TestAllTypesProto2_NestedMessage struct { func (x *TestAllTypesProto2_NestedMessage) Reset() { *x = TestAllTypesProto2_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_NestedMessage) String() string { @@ -2218,7 +2198,7 @@ func (*TestAllTypesProto2_NestedMessage) ProtoMessage() {} func (x *TestAllTypesProto2_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2259,11 +2239,9 @@ type TestAllTypesProto2_Data struct { func (x *TestAllTypesProto2_Data) Reset() { *x = TestAllTypesProto2_Data{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_Data) String() string { @@ -2274,7 +2252,7 @@ func (*TestAllTypesProto2_Data) ProtoMessage() {} func (x *TestAllTypesProto2_Data) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2314,11 +2292,9 @@ type TestAllTypesProto2_MultiWordGroupField struct { func (x *TestAllTypesProto2_MultiWordGroupField) Reset() { *x = TestAllTypesProto2_MultiWordGroupField{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_MultiWordGroupField) String() string { @@ -2329,7 +2305,7 @@ func (*TestAllTypesProto2_MultiWordGroupField) ProtoMessage() {} func (x *TestAllTypesProto2_MultiWordGroupField) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2368,11 +2344,9 @@ type TestAllTypesProto2_MessageSetCorrect struct { func (x *TestAllTypesProto2_MessageSetCorrect) Reset() { *x = TestAllTypesProto2_MessageSetCorrect{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_MessageSetCorrect) String() string { @@ -2383,7 +2357,7 @@ func (*TestAllTypesProto2_MessageSetCorrect) ProtoMessage() {} func (x *TestAllTypesProto2_MessageSetCorrect) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2408,11 +2382,9 @@ type TestAllTypesProto2_MessageSetCorrectExtension1 struct { func (x *TestAllTypesProto2_MessageSetCorrectExtension1) Reset() { *x = TestAllTypesProto2_MessageSetCorrectExtension1{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_MessageSetCorrectExtension1) String() string { @@ -2423,7 +2395,7 @@ func (*TestAllTypesProto2_MessageSetCorrectExtension1) ProtoMessage() {} func (x *TestAllTypesProto2_MessageSetCorrectExtension1) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2455,11 +2427,9 @@ type TestAllTypesProto2_MessageSetCorrectExtension2 struct { func (x *TestAllTypesProto2_MessageSetCorrectExtension2) Reset() { *x = TestAllTypesProto2_MessageSetCorrectExtension2{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_MessageSetCorrectExtension2) String() string { @@ -2470,7 +2440,7 @@ func (*TestAllTypesProto2_MessageSetCorrectExtension2) ProtoMessage() {} func (x *TestAllTypesProto2_MessageSetCorrectExtension2) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2502,11 +2472,9 @@ type UnknownToTestAllTypes_OptionalGroup struct { func (x *UnknownToTestAllTypes_OptionalGroup) Reset() { *x = UnknownToTestAllTypes_OptionalGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnknownToTestAllTypes_OptionalGroup) String() string { @@ -2517,7 +2485,7 @@ func (*UnknownToTestAllTypes_OptionalGroup) ProtoMessage() {} func (x *UnknownToTestAllTypes_OptionalGroup) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2551,11 +2519,9 @@ type TestAllRequiredTypesProto2_NestedMessage struct { func (x *TestAllRequiredTypesProto2_NestedMessage) Reset() { *x = TestAllRequiredTypesProto2_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllRequiredTypesProto2_NestedMessage) String() string { @@ -2566,7 +2532,7 @@ func (*TestAllRequiredTypesProto2_NestedMessage) ProtoMessage() {} func (x *TestAllRequiredTypesProto2_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2614,11 +2580,9 @@ type TestAllRequiredTypesProto2_Data struct { func (x *TestAllRequiredTypesProto2_Data) Reset() { *x = TestAllRequiredTypesProto2_Data{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllRequiredTypesProto2_Data) String() string { @@ -2629,7 +2593,7 @@ func (*TestAllRequiredTypesProto2_Data) ProtoMessage() {} func (x *TestAllRequiredTypesProto2_Data) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2668,11 +2632,9 @@ type TestAllRequiredTypesProto2_MessageSetCorrect struct { func (x *TestAllRequiredTypesProto2_MessageSetCorrect) Reset() { *x = TestAllRequiredTypesProto2_MessageSetCorrect{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllRequiredTypesProto2_MessageSetCorrect) String() string { @@ -2683,7 +2645,7 @@ func (*TestAllRequiredTypesProto2_MessageSetCorrect) ProtoMessage() {} func (x *TestAllRequiredTypesProto2_MessageSetCorrect) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2708,11 +2670,9 @@ type TestAllRequiredTypesProto2_MessageSetCorrectExtension1 struct { func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension1) Reset() { *x = TestAllRequiredTypesProto2_MessageSetCorrectExtension1{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension1) String() string { @@ -2723,7 +2683,7 @@ func (*TestAllRequiredTypesProto2_MessageSetCorrectExtension1) ProtoMessage() {} func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension1) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2755,11 +2715,9 @@ type TestAllRequiredTypesProto2_MessageSetCorrectExtension2 struct { func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension2) Reset() { *x = TestAllRequiredTypesProto2_MessageSetCorrectExtension2{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension2) String() string { @@ -2770,7 +2728,7 @@ func (*TestAllRequiredTypesProto2_MessageSetCorrectExtension2) ProtoMessage() {} func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension2) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto2_editions_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 1c4f457f9..70de8dd4f 100644 --- a/internal/testprotos/conformance/editionsmigration/test_messages_proto3_editions.pb.go +++ b/internal/testprotos/conformance/editionsmigration/test_messages_proto3_editions.pb.go @@ -412,11 +412,9 @@ type TestAllTypesProto3 struct { func (x *TestAllTypesProto3) Reset() { *x = TestAllTypesProto3{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto3) String() string { @@ -427,7 +425,7 @@ func (*TestAllTypesProto3) ProtoMessage() {} func (x *TestAllTypesProto3) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1580,11 +1578,9 @@ type ForeignMessage struct { func (x *ForeignMessage) Reset() { *x = ForeignMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ForeignMessage) String() string { @@ -1595,7 +1591,7 @@ func (*ForeignMessage) ProtoMessage() {} func (x *ForeignMessage) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1625,11 +1621,9 @@ type NullHypothesisProto3 struct { func (x *NullHypothesisProto3) Reset() { *x = NullHypothesisProto3{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NullHypothesisProto3) String() string { @@ -1640,7 +1634,7 @@ func (*NullHypothesisProto3) ProtoMessage() {} func (x *NullHypothesisProto3) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1663,11 +1657,9 @@ type EnumOnlyProto3 struct { func (x *EnumOnlyProto3) Reset() { *x = EnumOnlyProto3{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumOnlyProto3) String() string { @@ -1678,7 +1670,7 @@ func (*EnumOnlyProto3) ProtoMessage() {} func (x *EnumOnlyProto3) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1704,11 +1696,9 @@ type TestAllTypesProto3_NestedMessage struct { func (x *TestAllTypesProto3_NestedMessage) Reset() { *x = TestAllTypesProto3_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto3_NestedMessage) String() string { @@ -1719,7 +1709,7 @@ func (*TestAllTypesProto3_NestedMessage) ProtoMessage() {} func (x *TestAllTypesProto3_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_editions_golden_test_messages_proto3_editions_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/conformance/test_messages_proto2.pb.go b/internal/testprotos/conformance/test_messages_proto2.pb.go index aececaa7f..f84889306 100644 --- a/internal/testprotos/conformance/test_messages_proto2.pb.go +++ b/internal/testprotos/conformance/test_messages_proto2.pb.go @@ -448,11 +448,9 @@ var ( func (x *TestAllTypesProto2) Reset() { *x = TestAllTypesProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2) String() string { @@ -463,7 +461,7 @@ func (*TestAllTypesProto2) ProtoMessage() {} func (x *TestAllTypesProto2) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1491,11 +1489,9 @@ type ForeignMessageProto2 struct { func (x *ForeignMessageProto2) Reset() { *x = ForeignMessageProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ForeignMessageProto2) String() string { @@ -1506,7 +1502,7 @@ func (*ForeignMessageProto2) ProtoMessage() {} func (x *ForeignMessageProto2) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1539,11 +1535,9 @@ type GroupField struct { func (x *GroupField) Reset() { *x = GroupField{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GroupField) String() string { @@ -1554,7 +1548,7 @@ func (*GroupField) ProtoMessage() {} func (x *GroupField) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1598,11 +1592,9 @@ type UnknownToTestAllTypes struct { func (x *UnknownToTestAllTypes) Reset() { *x = UnknownToTestAllTypes{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnknownToTestAllTypes) String() string { @@ -1613,7 +1605,7 @@ func (*UnknownToTestAllTypes) ProtoMessage() {} func (x *UnknownToTestAllTypes) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1678,11 +1670,9 @@ type NullHypothesisProto2 struct { func (x *NullHypothesisProto2) Reset() { *x = NullHypothesisProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NullHypothesisProto2) String() string { @@ -1693,7 +1683,7 @@ func (*NullHypothesisProto2) ProtoMessage() {} func (x *NullHypothesisProto2) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1716,11 +1706,9 @@ type EnumOnlyProto2 struct { func (x *EnumOnlyProto2) Reset() { *x = EnumOnlyProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumOnlyProto2) String() string { @@ -1731,7 +1719,7 @@ func (*EnumOnlyProto2) ProtoMessage() {} func (x *EnumOnlyProto2) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1756,11 +1744,9 @@ type OneStringProto2 struct { func (x *OneStringProto2) Reset() { *x = OneStringProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OneStringProto2) String() string { @@ -1771,7 +1757,7 @@ func (*OneStringProto2) ProtoMessage() {} func (x *OneStringProto2) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1805,11 +1791,9 @@ type ProtoWithKeywords struct { func (x *ProtoWithKeywords) Reset() { *x = ProtoWithKeywords{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ProtoWithKeywords) String() string { @@ -1820,7 +1804,7 @@ func (*ProtoWithKeywords) ProtoMessage() {} func (x *ProtoWithKeywords) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1930,11 +1914,9 @@ var ( func (x *TestAllRequiredTypesProto2) Reset() { *x = TestAllRequiredTypesProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllRequiredTypesProto2) String() string { @@ -1945,7 +1927,7 @@ func (*TestAllRequiredTypesProto2) ProtoMessage() {} func (x *TestAllRequiredTypesProto2) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2244,11 +2226,9 @@ type TestAllTypesProto2_NestedMessage struct { func (x *TestAllTypesProto2_NestedMessage) Reset() { *x = TestAllTypesProto2_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_NestedMessage) String() string { @@ -2259,7 +2239,7 @@ func (*TestAllTypesProto2_NestedMessage) ProtoMessage() {} func (x *TestAllTypesProto2_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2300,11 +2280,9 @@ type TestAllTypesProto2_Data struct { func (x *TestAllTypesProto2_Data) Reset() { *x = TestAllTypesProto2_Data{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_Data) String() string { @@ -2315,7 +2293,7 @@ func (*TestAllTypesProto2_Data) ProtoMessage() {} func (x *TestAllTypesProto2_Data) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2355,11 +2333,9 @@ type TestAllTypesProto2_MultiWordGroupField struct { func (x *TestAllTypesProto2_MultiWordGroupField) Reset() { *x = TestAllTypesProto2_MultiWordGroupField{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_MultiWordGroupField) String() string { @@ -2370,7 +2346,7 @@ func (*TestAllTypesProto2_MultiWordGroupField) ProtoMessage() {} func (x *TestAllTypesProto2_MultiWordGroupField) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2409,11 +2385,9 @@ type TestAllTypesProto2_MessageSetCorrect struct { func (x *TestAllTypesProto2_MessageSetCorrect) Reset() { *x = TestAllTypesProto2_MessageSetCorrect{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_MessageSetCorrect) String() string { @@ -2424,7 +2398,7 @@ func (*TestAllTypesProto2_MessageSetCorrect) ProtoMessage() {} func (x *TestAllTypesProto2_MessageSetCorrect) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2449,11 +2423,9 @@ type TestAllTypesProto2_MessageSetCorrectExtension1 struct { func (x *TestAllTypesProto2_MessageSetCorrectExtension1) Reset() { *x = TestAllTypesProto2_MessageSetCorrectExtension1{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_MessageSetCorrectExtension1) String() string { @@ -2464,7 +2436,7 @@ func (*TestAllTypesProto2_MessageSetCorrectExtension1) ProtoMessage() {} func (x *TestAllTypesProto2_MessageSetCorrectExtension1) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2496,11 +2468,9 @@ type TestAllTypesProto2_MessageSetCorrectExtension2 struct { func (x *TestAllTypesProto2_MessageSetCorrectExtension2) Reset() { *x = TestAllTypesProto2_MessageSetCorrectExtension2{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_MessageSetCorrectExtension2) String() string { @@ -2511,7 +2481,7 @@ func (*TestAllTypesProto2_MessageSetCorrectExtension2) ProtoMessage() {} func (x *TestAllTypesProto2_MessageSetCorrectExtension2) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2543,11 +2513,9 @@ type UnknownToTestAllTypes_OptionalGroup struct { func (x *UnknownToTestAllTypes_OptionalGroup) Reset() { *x = UnknownToTestAllTypes_OptionalGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UnknownToTestAllTypes_OptionalGroup) String() string { @@ -2558,7 +2526,7 @@ func (*UnknownToTestAllTypes_OptionalGroup) ProtoMessage() {} func (x *UnknownToTestAllTypes_OptionalGroup) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2592,11 +2560,9 @@ type TestAllRequiredTypesProto2_NestedMessage struct { func (x *TestAllRequiredTypesProto2_NestedMessage) Reset() { *x = TestAllRequiredTypesProto2_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllRequiredTypesProto2_NestedMessage) String() string { @@ -2607,7 +2573,7 @@ func (*TestAllRequiredTypesProto2_NestedMessage) ProtoMessage() {} func (x *TestAllRequiredTypesProto2_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2655,11 +2621,9 @@ type TestAllRequiredTypesProto2_Data struct { func (x *TestAllRequiredTypesProto2_Data) Reset() { *x = TestAllRequiredTypesProto2_Data{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllRequiredTypesProto2_Data) String() string { @@ -2670,7 +2634,7 @@ func (*TestAllRequiredTypesProto2_Data) ProtoMessage() {} func (x *TestAllRequiredTypesProto2_Data) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2709,11 +2673,9 @@ type TestAllRequiredTypesProto2_MessageSetCorrect struct { func (x *TestAllRequiredTypesProto2_MessageSetCorrect) Reset() { *x = TestAllRequiredTypesProto2_MessageSetCorrect{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllRequiredTypesProto2_MessageSetCorrect) String() string { @@ -2724,7 +2686,7 @@ func (*TestAllRequiredTypesProto2_MessageSetCorrect) ProtoMessage() {} func (x *TestAllRequiredTypesProto2_MessageSetCorrect) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2749,11 +2711,9 @@ type TestAllRequiredTypesProto2_MessageSetCorrectExtension1 struct { func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension1) Reset() { *x = TestAllRequiredTypesProto2_MessageSetCorrectExtension1{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension1) String() string { @@ -2764,7 +2724,7 @@ func (*TestAllRequiredTypesProto2_MessageSetCorrectExtension1) ProtoMessage() {} func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension1) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2796,11 +2756,9 @@ type TestAllRequiredTypesProto2_MessageSetCorrectExtension2 struct { func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension2) Reset() { *x = TestAllRequiredTypesProto2_MessageSetCorrectExtension2{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension2) String() string { @@ -2811,7 +2769,7 @@ func (*TestAllRequiredTypesProto2_MessageSetCorrectExtension2) ProtoMessage() {} func (x *TestAllRequiredTypesProto2_MessageSetCorrectExtension2) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto2_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/conformance/test_messages_proto3.pb.go b/internal/testprotos/conformance/test_messages_proto3.pb.go index ea2e8bab5..4460be217 100644 --- a/internal/testprotos/conformance/test_messages_proto3.pb.go +++ b/internal/testprotos/conformance/test_messages_proto3.pb.go @@ -413,11 +413,9 @@ type TestAllTypesProto3 struct { func (x *TestAllTypesProto3) Reset() { *x = TestAllTypesProto3{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto3) String() string { @@ -428,7 +426,7 @@ func (*TestAllTypesProto3) ProtoMessage() {} func (x *TestAllTypesProto3) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1581,11 +1579,9 @@ type ForeignMessage struct { func (x *ForeignMessage) Reset() { *x = ForeignMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ForeignMessage) String() string { @@ -1596,7 +1592,7 @@ func (*ForeignMessage) ProtoMessage() {} func (x *ForeignMessage) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1626,11 +1622,9 @@ type NullHypothesisProto3 struct { func (x *NullHypothesisProto3) Reset() { *x = NullHypothesisProto3{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NullHypothesisProto3) String() string { @@ -1641,7 +1635,7 @@ func (*NullHypothesisProto3) ProtoMessage() {} func (x *NullHypothesisProto3) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1664,11 +1658,9 @@ type EnumOnlyProto3 struct { func (x *EnumOnlyProto3) Reset() { *x = EnumOnlyProto3{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumOnlyProto3) String() string { @@ -1679,7 +1671,7 @@ func (*EnumOnlyProto3) ProtoMessage() {} func (x *EnumOnlyProto3) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1705,11 +1697,9 @@ type TestAllTypesProto3_NestedMessage struct { func (x *TestAllTypesProto3_NestedMessage) Reset() { *x = TestAllTypesProto3_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto3_NestedMessage) String() string { @@ -1720,7 +1710,7 @@ func (*TestAllTypesProto3_NestedMessage) ProtoMessage() {} func (x *TestAllTypesProto3_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_test_messages_proto3_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/editionsfuzztest/test2.pb.go b/internal/testprotos/editionsfuzztest/test2.pb.go index 0cc07d6c4..e9ce2ade6 100644 --- a/internal/testprotos/editionsfuzztest/test2.pb.go +++ b/internal/testprotos/editionsfuzztest/test2.pb.go @@ -198,11 +198,9 @@ var ( func (x *TestAllTypesProto2) Reset() { *x = TestAllTypesProto2{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2) String() string { @@ -213,7 +211,7 @@ func (*TestAllTypesProto2) ProtoMessage() {} func (x *TestAllTypesProto2) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -887,11 +885,9 @@ type TestAllTypesProto2_NestedMessage struct { func (x *TestAllTypesProto2_NestedMessage) Reset() { *x = TestAllTypesProto2_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_NestedMessage) String() string { @@ -902,7 +898,7 @@ func (*TestAllTypesProto2_NestedMessage) ProtoMessage() {} func (x *TestAllTypesProto2_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -943,11 +939,9 @@ type TestAllTypesProto2_OptionalGroup struct { func (x *TestAllTypesProto2_OptionalGroup) Reset() { *x = TestAllTypesProto2_OptionalGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_OptionalGroup) String() string { @@ -958,7 +952,7 @@ func (*TestAllTypesProto2_OptionalGroup) ProtoMessage() {} func (x *TestAllTypesProto2_OptionalGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1005,11 +999,9 @@ type TestAllTypesProto2_RepeatedGroup struct { func (x *TestAllTypesProto2_RepeatedGroup) Reset() { *x = TestAllTypesProto2_RepeatedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_RepeatedGroup) String() string { @@ -1020,7 +1012,7 @@ func (*TestAllTypesProto2_RepeatedGroup) ProtoMessage() {} func (x *TestAllTypesProto2_RepeatedGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1060,11 +1052,9 @@ type TestAllTypesProto2_OneofGroup struct { func (x *TestAllTypesProto2_OneofGroup) Reset() { *x = TestAllTypesProto2_OneofGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2_OneofGroup) String() string { @@ -1075,7 +1065,7 @@ func (*TestAllTypesProto2_OneofGroup) ProtoMessage() {} func (x *TestAllTypesProto2_OneofGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test2_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/editionsfuzztest/test2editions.pb.go b/internal/testprotos/editionsfuzztest/test2editions.pb.go index 24da583b4..84c6daddf 100644 --- a/internal/testprotos/editionsfuzztest/test2editions.pb.go +++ b/internal/testprotos/editionsfuzztest/test2editions.pb.go @@ -199,11 +199,9 @@ var ( func (x *TestAllTypesProto2Editions) Reset() { *x = TestAllTypesProto2Editions{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2Editions) String() string { @@ -214,7 +212,7 @@ func (*TestAllTypesProto2Editions) ProtoMessage() {} func (x *TestAllTypesProto2Editions) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -888,11 +886,9 @@ type TestAllTypesProto2Editions_NestedMessage struct { func (x *TestAllTypesProto2Editions_NestedMessage) Reset() { *x = TestAllTypesProto2Editions_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2Editions_NestedMessage) String() string { @@ -903,7 +899,7 @@ func (*TestAllTypesProto2Editions_NestedMessage) ProtoMessage() {} func (x *TestAllTypesProto2Editions_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -944,11 +940,9 @@ type TestAllTypesProto2Editions_OptionalGroup struct { func (x *TestAllTypesProto2Editions_OptionalGroup) Reset() { *x = TestAllTypesProto2Editions_OptionalGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2Editions_OptionalGroup) String() string { @@ -959,7 +953,7 @@ func (*TestAllTypesProto2Editions_OptionalGroup) ProtoMessage() {} func (x *TestAllTypesProto2Editions_OptionalGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1006,11 +1000,9 @@ type TestAllTypesProto2Editions_RepeatedGroup struct { func (x *TestAllTypesProto2Editions_RepeatedGroup) Reset() { *x = TestAllTypesProto2Editions_RepeatedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2Editions_RepeatedGroup) String() string { @@ -1021,7 +1013,7 @@ func (*TestAllTypesProto2Editions_RepeatedGroup) ProtoMessage() {} func (x *TestAllTypesProto2Editions_RepeatedGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1061,11 +1053,9 @@ type TestAllTypesProto2Editions_OneofGroup struct { func (x *TestAllTypesProto2Editions_OneofGroup) Reset() { *x = TestAllTypesProto2Editions_OneofGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto2Editions_OneofGroup) String() string { @@ -1076,7 +1066,7 @@ func (*TestAllTypesProto2Editions_OneofGroup) ProtoMessage() {} func (x *TestAllTypesProto2Editions_OneofGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test2editions_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/editionsfuzztest/test3.pb.go b/internal/testprotos/editionsfuzztest/test3.pb.go index f8ef79414..a60b54ebf 100644 --- a/internal/testprotos/editionsfuzztest/test3.pb.go +++ b/internal/testprotos/editionsfuzztest/test3.pb.go @@ -213,11 +213,9 @@ type TestAllTypesProto3 struct { func (x *TestAllTypesProto3) Reset() { *x = TestAllTypesProto3{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto3) String() string { @@ -228,7 +226,7 @@ func (*TestAllTypesProto3) ProtoMessage() {} func (x *TestAllTypesProto3) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -900,11 +898,9 @@ type ForeignMessageProto3 struct { func (x *ForeignMessageProto3) Reset() { *x = ForeignMessageProto3{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ForeignMessageProto3) String() string { @@ -915,7 +911,7 @@ func (*ForeignMessageProto3) ProtoMessage() {} func (x *ForeignMessageProto3) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -955,11 +951,9 @@ type TestAllTypesProto3_NestedMessage struct { func (x *TestAllTypesProto3_NestedMessage) Reset() { *x = TestAllTypesProto3_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto3_NestedMessage) String() string { @@ -970,7 +964,7 @@ func (*TestAllTypesProto3_NestedMessage) ProtoMessage() {} func (x *TestAllTypesProto3_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test3_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/editionsfuzztest/test3editions.pb.go b/internal/testprotos/editionsfuzztest/test3editions.pb.go index ee4f87a9a..9e9a33453 100644 --- a/internal/testprotos/editionsfuzztest/test3editions.pb.go +++ b/internal/testprotos/editionsfuzztest/test3editions.pb.go @@ -213,11 +213,9 @@ type TestAllTypesProto3Editions struct { func (x *TestAllTypesProto3Editions) Reset() { *x = TestAllTypesProto3Editions{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto3Editions) String() string { @@ -228,7 +226,7 @@ func (*TestAllTypesProto3Editions) ProtoMessage() {} func (x *TestAllTypesProto3Editions) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -900,11 +898,9 @@ type ForeignMessageProto3Editions struct { func (x *ForeignMessageProto3Editions) Reset() { *x = ForeignMessageProto3Editions{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ForeignMessageProto3Editions) String() string { @@ -915,7 +911,7 @@ func (*ForeignMessageProto3Editions) ProtoMessage() {} func (x *ForeignMessageProto3Editions) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -955,11 +951,9 @@ type TestAllTypesProto3Editions_NestedMessage struct { func (x *TestAllTypesProto3Editions_NestedMessage) Reset() { *x = TestAllTypesProto3Editions_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypesProto3Editions_NestedMessage) String() string { @@ -970,7 +964,7 @@ func (*TestAllTypesProto3Editions_NestedMessage) ProtoMessage() {} func (x *TestAllTypesProto3Editions_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_editionsfuzztest_test3editions_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/fieldtrack/fieldtrack.pb.go b/internal/testprotos/fieldtrack/fieldtrack.pb.go index b6dcbb9b9..6e7d09dcf 100644 --- a/internal/testprotos/fieldtrack/fieldtrack.pb.go +++ b/internal/testprotos/fieldtrack/fieldtrack.pb.go @@ -80,11 +80,9 @@ type TestFieldTrack struct { func (x *TestFieldTrack) Reset() { *x = TestFieldTrack{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_fieldtrack_fieldtrack_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_fieldtrack_fieldtrack_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestFieldTrack) String() string { @@ -95,7 +93,7 @@ func (*TestFieldTrack) ProtoMessage() {} func (x *TestFieldTrack) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_fieldtrack_fieldtrack_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/fuzz/fuzz.pb.go b/internal/testprotos/fuzz/fuzz.pb.go index 41d7a9dca..fdcc284c7 100644 --- a/internal/testprotos/fuzz/fuzz.pb.go +++ b/internal/testprotos/fuzz/fuzz.pb.go @@ -35,11 +35,9 @@ type Fuzz struct { func (x *Fuzz) Reset() { *x = Fuzz{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_fuzz_fuzz_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_fuzz_fuzz_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Fuzz) String() string { @@ -50,7 +48,7 @@ func (*Fuzz) ProtoMessage() {} func (x *Fuzz) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_fuzz_fuzz_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/irregular/test.pb.go b/internal/testprotos/irregular/test.pb.go index 2b97f157b..315b38471 100644 --- a/internal/testprotos/irregular/test.pb.go +++ b/internal/testprotos/irregular/test.pb.go @@ -40,11 +40,9 @@ type Message struct { func (x *Message) Reset() { *x = Message{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_irregular_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_irregular_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message) String() string { @@ -55,7 +53,7 @@ func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_irregular_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) 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 7e9444805..42901da0b 100644 --- a/internal/testprotos/lazy/lazy_extension_normalized_wire_test.pb.go +++ b/internal/testprotos/lazy/lazy_extension_normalized_wire_test.pb.go @@ -26,11 +26,9 @@ type Sub struct { func (x *Sub) Reset() { *x = Sub{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Sub) String() string { @@ -41,7 +39,7 @@ func (*Sub) ProtoMessage() {} func (x *Sub) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -81,11 +79,9 @@ type Top struct { func (x *Top) Reset() { *x = Top{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Top) String() string { @@ -96,7 +92,7 @@ func (*Top) ProtoMessage() {} func (x *Top) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -135,11 +131,9 @@ type Ext struct { func (x *Ext) Reset() { *x = Ext{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Ext) String() string { @@ -150,7 +144,7 @@ func (*Ext) ProtoMessage() {} func (x *Ext) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_lazy_lazy_extension_normalized_wire_test_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/lazy/lazy_extension_test.pb.go b/internal/testprotos/lazy/lazy_extension_test.pb.go index bea98f14c..b5692513b 100644 --- a/internal/testprotos/lazy/lazy_extension_test.pb.go +++ b/internal/testprotos/lazy/lazy_extension_test.pb.go @@ -168,11 +168,9 @@ type Holder struct { func (x *Holder) Reset() { *x = Holder{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Holder) String() string { @@ -183,7 +181,7 @@ func (*Holder) ProtoMessage() {} func (x *Holder) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -216,11 +214,9 @@ type Rabbit struct { func (x *Rabbit) Reset() { *x = Rabbit{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Rabbit) String() string { @@ -231,7 +227,7 @@ func (*Rabbit) ProtoMessage() {} func (x *Rabbit) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -263,11 +259,9 @@ type FlyingFox struct { func (x *FlyingFox) Reset() { *x = FlyingFox{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FlyingFox) String() string { @@ -278,7 +272,7 @@ func (*FlyingFox) ProtoMessage() {} func (x *FlyingFox) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -311,11 +305,9 @@ type Tree struct { func (x *Tree) Reset() { *x = Tree{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Tree) String() string { @@ -326,7 +318,7 @@ func (*Tree) ProtoMessage() {} func (x *Tree) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -358,11 +350,9 @@ type Pipistrelle struct { func (x *Pipistrelle) Reset() { *x = Pipistrelle{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Pipistrelle) String() string { @@ -373,7 +363,7 @@ func (*Pipistrelle) ProtoMessage() {} func (x *Pipistrelle) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -405,11 +395,9 @@ type Pipistrelles struct { func (x *Pipistrelles) Reset() { *x = Pipistrelles{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Pipistrelles) String() string { @@ -420,7 +408,7 @@ func (*Pipistrelles) ProtoMessage() {} func (x *Pipistrelles) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -451,11 +439,9 @@ type BatNest struct { func (x *BatNest) Reset() { *x = BatNest{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BatNest) String() string { @@ -466,7 +452,7 @@ func (*BatNest) ProtoMessage() {} func (x *BatNest) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_lazy_lazy_extension_test_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/legacy/legacy.pb.go b/internal/testprotos/legacy/legacy.pb.go index ab874a88e..2aa69e41f 100644 --- a/internal/testprotos/legacy/legacy.pb.go +++ b/internal/testprotos/legacy/legacy.pb.go @@ -47,11 +47,9 @@ type Legacy struct { func (x *Legacy) Reset() { *x = Legacy{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_legacy_legacy_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_legacy_legacy_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Legacy) String() string { @@ -62,7 +60,7 @@ func (*Legacy) ProtoMessage() {} func (x *Legacy) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_legacy_legacy_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/messageset/messagesetpb/message_set.pb.go b/internal/testprotos/messageset/messagesetpb/message_set.pb.go index a73be5a90..71dea75a3 100644 --- a/internal/testprotos/messageset/messagesetpb/message_set.pb.go +++ b/internal/testprotos/messageset/messagesetpb/message_set.pb.go @@ -23,11 +23,9 @@ type MessageSet struct { func (x *MessageSet) Reset() { *x = MessageSet{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_messageset_messagesetpb_message_set_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_messageset_messagesetpb_message_set_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageSet) String() string { @@ -38,7 +36,7 @@ func (*MessageSet) ProtoMessage() {} func (x *MessageSet) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_messageset_messagesetpb_message_set_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -63,11 +61,9 @@ type MessageSetContainer struct { func (x *MessageSetContainer) Reset() { *x = MessageSetContainer{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_messageset_messagesetpb_message_set_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_messageset_messagesetpb_message_set_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageSetContainer) String() string { @@ -78,7 +74,7 @@ func (*MessageSetContainer) ProtoMessage() {} func (x *MessageSetContainer) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_messageset_messagesetpb_message_set_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/messageset/msetextpb/msetextpb.pb.go b/internal/testprotos/messageset/msetextpb/msetextpb.pb.go index 16acec0d4..4c9f1f58d 100644 --- a/internal/testprotos/messageset/msetextpb/msetextpb.pb.go +++ b/internal/testprotos/messageset/msetextpb/msetextpb.pb.go @@ -26,11 +26,9 @@ type Ext1 struct { func (x *Ext1) Reset() { *x = Ext1{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Ext1) String() string { @@ -41,7 +39,7 @@ func (*Ext1) ProtoMessage() {} func (x *Ext1) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -80,11 +78,9 @@ type Ext2 struct { func (x *Ext2) Reset() { *x = Ext2{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Ext2) String() string { @@ -95,7 +91,7 @@ func (*Ext2) ProtoMessage() {} func (x *Ext2) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -127,11 +123,9 @@ type ExtRequired struct { func (x *ExtRequired) Reset() { *x = ExtRequired{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtRequired) String() string { @@ -142,7 +136,7 @@ func (*ExtRequired) ProtoMessage() {} func (x *ExtRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -172,11 +166,9 @@ type ExtLargeNumber struct { func (x *ExtLargeNumber) Reset() { *x = ExtLargeNumber{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtLargeNumber) String() string { @@ -187,7 +179,7 @@ func (*ExtLargeNumber) ProtoMessage() {} func (x *ExtLargeNumber) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_messageset_msetextpb_msetextpb_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/news/news.pb.go b/internal/testprotos/news/news.pb.go index 145c1c516..5fbfd26c0 100644 --- a/internal/testprotos/news/news.pb.go +++ b/internal/testprotos/news/news.pb.go @@ -81,11 +81,9 @@ type Article struct { func (x *Article) Reset() { *x = Article{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_news_news_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_news_news_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Article) String() string { @@ -96,7 +94,7 @@ func (*Article) ProtoMessage() {} func (x *Article) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_news_news_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -171,11 +169,9 @@ type BinaryAttachment struct { func (x *BinaryAttachment) Reset() { *x = BinaryAttachment{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_news_news_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_news_news_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BinaryAttachment) String() string { @@ -186,7 +182,7 @@ func (*BinaryAttachment) ProtoMessage() {} func (x *BinaryAttachment) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_news_news_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -226,11 +222,9 @@ type KeyValueAttachment struct { func (x *KeyValueAttachment) Reset() { *x = KeyValueAttachment{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_news_news_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_news_news_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KeyValueAttachment) String() string { @@ -241,7 +235,7 @@ func (*KeyValueAttachment) ProtoMessage() {} func (x *KeyValueAttachment) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_news_news_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/order/order.pb.go b/internal/testprotos/order/order.pb.go index 8d7dbe622..b3be3708b 100644 --- a/internal/testprotos/order/order.pb.go +++ b/internal/testprotos/order/order.pb.go @@ -33,11 +33,9 @@ type Message struct { func (x *Message) Reset() { *x = Message{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_order_order_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_order_order_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message) String() string { @@ -48,7 +46,7 @@ func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_order_order_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/race/extender/test.pb.go b/internal/testprotos/race/extender/test.pb.go index 895631a7f..208e43dd3 100644 --- a/internal/testprotos/race/extender/test.pb.go +++ b/internal/testprotos/race/extender/test.pb.go @@ -25,11 +25,9 @@ type OtherMessage struct { func (x *OtherMessage) Reset() { *x = OtherMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_race_extender_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_race_extender_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OtherMessage) String() string { @@ -40,7 +38,7 @@ func (*OtherMessage) ProtoMessage() {} func (x *OtherMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_race_extender_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/race/message/test.pb.go b/internal/testprotos/race/message/test.pb.go index 14773a780..809adde09 100644 --- a/internal/testprotos/race/message/test.pb.go +++ b/internal/testprotos/race/message/test.pb.go @@ -25,11 +25,9 @@ type MyMessage struct { func (x *MyMessage) Reset() { *x = MyMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_race_message_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_race_message_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MyMessage) String() string { @@ -40,7 +38,7 @@ func (*MyMessage) ProtoMessage() {} func (x *MyMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_race_message_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/registry/test.pb.go b/internal/testprotos/registry/test.pb.go index 74e508332..ccf2f529b 100644 --- a/internal/testprotos/registry/test.pb.go +++ b/internal/testprotos/registry/test.pb.go @@ -184,11 +184,9 @@ type Message1 struct { func (x *Message1) Reset() { *x = Message1{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_registry_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_registry_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message1) String() string { @@ -199,7 +197,7 @@ func (*Message1) ProtoMessage() {} func (x *Message1) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_registry_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -222,11 +220,9 @@ type Message2 struct { func (x *Message2) Reset() { *x = Message2{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_registry_test_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_registry_test_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message2) String() string { @@ -237,7 +233,7 @@ func (*Message2) ProtoMessage() {} func (x *Message2) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_registry_test_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -260,11 +256,9 @@ type Message3 struct { func (x *Message3) Reset() { *x = Message3{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_registry_test_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_registry_test_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message3) String() string { @@ -275,7 +269,7 @@ func (*Message3) ProtoMessage() {} func (x *Message3) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_registry_test_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -300,11 +294,9 @@ type Message4 struct { func (x *Message4) Reset() { *x = Message4{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_registry_test_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_registry_test_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message4) String() string { @@ -315,7 +307,7 @@ func (*Message4) ProtoMessage() {} func (x *Message4) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_registry_test_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/required/required.pb.go b/internal/testprotos/required/required.pb.go index 236a055a0..c40392e1e 100644 --- a/internal/testprotos/required/required.pb.go +++ b/internal/testprotos/required/required.pb.go @@ -24,11 +24,9 @@ type Int32 struct { func (x *Int32) Reset() { *x = Int32{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Int32) String() string { @@ -39,7 +37,7 @@ func (*Int32) ProtoMessage() {} func (x *Int32) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -71,11 +69,9 @@ type Int64 struct { func (x *Int64) Reset() { *x = Int64{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Int64) String() string { @@ -86,7 +82,7 @@ func (*Int64) ProtoMessage() {} func (x *Int64) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -118,11 +114,9 @@ type Uint32 struct { func (x *Uint32) Reset() { *x = Uint32{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Uint32) String() string { @@ -133,7 +127,7 @@ func (*Uint32) ProtoMessage() {} func (x *Uint32) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -165,11 +159,9 @@ type Uint64 struct { func (x *Uint64) Reset() { *x = Uint64{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Uint64) String() string { @@ -180,7 +172,7 @@ func (*Uint64) ProtoMessage() {} func (x *Uint64) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -212,11 +204,9 @@ type Sint32 struct { func (x *Sint32) Reset() { *x = Sint32{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Sint32) String() string { @@ -227,7 +217,7 @@ func (*Sint32) ProtoMessage() {} func (x *Sint32) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -259,11 +249,9 @@ type Sint64 struct { func (x *Sint64) Reset() { *x = Sint64{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Sint64) String() string { @@ -274,7 +262,7 @@ func (*Sint64) ProtoMessage() {} func (x *Sint64) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -306,11 +294,9 @@ type Fixed32 struct { func (x *Fixed32) Reset() { *x = Fixed32{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Fixed32) String() string { @@ -321,7 +307,7 @@ func (*Fixed32) ProtoMessage() {} func (x *Fixed32) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -353,11 +339,9 @@ type Fixed64 struct { func (x *Fixed64) Reset() { *x = Fixed64{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Fixed64) String() string { @@ -368,7 +352,7 @@ func (*Fixed64) ProtoMessage() {} func (x *Fixed64) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -400,11 +384,9 @@ type Float struct { func (x *Float) Reset() { *x = Float{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Float) String() string { @@ -415,7 +397,7 @@ func (*Float) ProtoMessage() {} func (x *Float) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -447,11 +429,9 @@ type Double struct { func (x *Double) Reset() { *x = Double{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Double) String() string { @@ -462,7 +442,7 @@ func (*Double) ProtoMessage() {} func (x *Double) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -494,11 +474,9 @@ type Bool struct { func (x *Bool) Reset() { *x = Bool{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Bool) String() string { @@ -509,7 +487,7 @@ func (*Bool) ProtoMessage() {} func (x *Bool) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -541,11 +519,9 @@ type String struct { func (x *String) Reset() { *x = String{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *String) String() string { @@ -556,7 +532,7 @@ func (*String) ProtoMessage() {} func (x *String) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -588,11 +564,9 @@ type Bytes struct { func (x *Bytes) Reset() { *x = Bytes{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Bytes) String() string { @@ -603,7 +577,7 @@ func (*Bytes) ProtoMessage() {} func (x *Bytes) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -635,11 +609,9 @@ type Message struct { func (x *Message) Reset() { *x = Message{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message) String() string { @@ -650,7 +622,7 @@ func (*Message) ProtoMessage() {} func (x *Message) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -682,11 +654,9 @@ type Group struct { func (x *Group) Reset() { *x = Group{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Group) String() string { @@ -697,7 +667,7 @@ func (*Group) ProtoMessage() {} func (x *Group) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -727,11 +697,9 @@ type Message_M struct { func (x *Message_M) Reset() { *x = Message_M{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Message_M) String() string { @@ -742,7 +710,7 @@ func (*Message_M) ProtoMessage() {} func (x *Message_M) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -767,11 +735,9 @@ type Group_Group struct { func (x *Group_Group) Reset() { *x = Group_Group{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_required_required_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_required_required_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Group_Group) String() string { @@ -782,7 +748,7 @@ func (*Group_Group) ProtoMessage() {} func (x *Group_Group) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_required_required_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/test/test.pb.go b/internal/testprotos/test/test.pb.go index d51e71f75..f7a86ca05 100644 --- a/internal/testprotos/test/test.pb.go +++ b/internal/testprotos/test/test.pb.go @@ -377,11 +377,9 @@ var ( func (x *TestAllTypes) Reset() { *x = TestAllTypes{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypes) String() string { @@ -392,7 +390,7 @@ func (*TestAllTypes) ProtoMessage() {} func (x *TestAllTypes) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1134,11 +1132,9 @@ type TestDeprecatedMessage struct { func (x *TestDeprecatedMessage) Reset() { *x = TestDeprecatedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestDeprecatedMessage) String() string { @@ -1149,7 +1145,7 @@ func (*TestDeprecatedMessage) ProtoMessage() {} func (x *TestDeprecatedMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1209,11 +1205,9 @@ type ForeignMessage struct { func (x *ForeignMessage) Reset() { *x = ForeignMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ForeignMessage) String() string { @@ -1224,7 +1218,7 @@ func (*ForeignMessage) ProtoMessage() {} func (x *ForeignMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1261,11 +1255,9 @@ type TestReservedFields struct { func (x *TestReservedFields) Reset() { *x = TestReservedFields{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestReservedFields) String() string { @@ -1276,7 +1268,7 @@ func (*TestReservedFields) ProtoMessage() {} func (x *TestReservedFields) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1300,11 +1292,9 @@ type TestAllExtensions struct { func (x *TestAllExtensions) Reset() { *x = TestAllExtensions{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllExtensions) String() string { @@ -1315,7 +1305,7 @@ func (*TestAllExtensions) ProtoMessage() {} func (x *TestAllExtensions) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1342,11 +1332,9 @@ type OptionalGroup struct { func (x *OptionalGroup) Reset() { *x = OptionalGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OptionalGroup) String() string { @@ -1357,7 +1345,7 @@ func (*OptionalGroup) ProtoMessage() {} func (x *OptionalGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1404,11 +1392,9 @@ type RepeatedGroup struct { func (x *RepeatedGroup) Reset() { *x = RepeatedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RepeatedGroup) String() string { @@ -1419,7 +1405,7 @@ func (*RepeatedGroup) ProtoMessage() {} func (x *RepeatedGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1456,11 +1442,9 @@ type TestNestedExtension struct { func (x *TestNestedExtension) Reset() { *x = TestNestedExtension{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestNestedExtension) String() string { @@ -1471,7 +1455,7 @@ func (*TestNestedExtension) ProtoMessage() {} func (x *TestNestedExtension) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1496,11 +1480,9 @@ type TestRequired struct { func (x *TestRequired) Reset() { *x = TestRequired{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestRequired) String() string { @@ -1511,7 +1493,7 @@ func (*TestRequired) ProtoMessage() {} func (x *TestRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1549,11 +1531,9 @@ type TestRequiredForeign struct { func (x *TestRequiredForeign) Reset() { *x = TestRequiredForeign{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestRequiredForeign) String() string { @@ -1564,7 +1544,7 @@ func (*TestRequiredForeign) ProtoMessage() {} func (x *TestRequiredForeign) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1635,11 +1615,9 @@ type TestRequiredGroupFields struct { func (x *TestRequiredGroupFields) Reset() { *x = TestRequiredGroupFields{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestRequiredGroupFields) String() string { @@ -1650,7 +1628,7 @@ func (*TestRequiredGroupFields) ProtoMessage() {} func (x *TestRequiredGroupFields) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1691,11 +1669,9 @@ type TestWeak struct { func (x *TestWeak) Reset() { *x = TestWeak{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestWeak) String() string { @@ -1706,7 +1682,7 @@ func (*TestWeak) ProtoMessage() {} func (x *TestWeak) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1776,11 +1752,9 @@ type TestPackedTypes struct { func (x *TestPackedTypes) Reset() { *x = TestPackedTypes{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestPackedTypes) String() string { @@ -1791,7 +1765,7 @@ func (*TestPackedTypes) ProtoMessage() {} func (x *TestPackedTypes) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1927,11 +1901,9 @@ type TestUnpackedTypes struct { func (x *TestUnpackedTypes) Reset() { *x = TestUnpackedTypes{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestUnpackedTypes) String() string { @@ -1942,7 +1914,7 @@ func (*TestUnpackedTypes) ProtoMessage() {} func (x *TestUnpackedTypes) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2064,11 +2036,9 @@ type TestPackedExtensions struct { func (x *TestPackedExtensions) Reset() { *x = TestPackedExtensions{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestPackedExtensions) String() string { @@ -2079,7 +2049,7 @@ func (*TestPackedExtensions) ProtoMessage() {} func (x *TestPackedExtensions) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2103,11 +2073,9 @@ type TestUnpackedExtensions struct { func (x *TestUnpackedExtensions) Reset() { *x = TestUnpackedExtensions{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestUnpackedExtensions) String() string { @@ -2118,7 +2086,7 @@ func (*TestUnpackedExtensions) ProtoMessage() {} func (x *TestUnpackedExtensions) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2142,11 +2110,9 @@ type FooRequest struct { func (x *FooRequest) Reset() { *x = FooRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FooRequest) String() string { @@ -2157,7 +2123,7 @@ func (*FooRequest) ProtoMessage() {} func (x *FooRequest) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2180,11 +2146,9 @@ type FooResponse struct { func (x *FooResponse) Reset() { *x = FooResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FooResponse) String() string { @@ -2195,7 +2159,7 @@ func (*FooResponse) ProtoMessage() {} func (x *FooResponse) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2225,11 +2189,9 @@ var ( func (x *WeirdDefault) Reset() { *x = WeirdDefault{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WeirdDefault) String() string { @@ -2240,7 +2202,7 @@ func (*WeirdDefault) ProtoMessage() {} func (x *WeirdDefault) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2290,11 +2252,9 @@ const ( func (x *RemoteDefault) Reset() { *x = RemoteDefault{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RemoteDefault) String() string { @@ -2305,7 +2265,7 @@ func (*RemoteDefault) ProtoMessage() {} func (x *RemoteDefault) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2387,11 +2347,9 @@ type TestAllTypes_NestedMessage struct { func (x *TestAllTypes_NestedMessage) Reset() { *x = TestAllTypes_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypes_NestedMessage) String() string { @@ -2402,7 +2360,7 @@ func (*TestAllTypes_NestedMessage) ProtoMessage() {} func (x *TestAllTypes_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2443,11 +2401,9 @@ type TestAllTypes_OptionalGroup struct { func (x *TestAllTypes_OptionalGroup) Reset() { *x = TestAllTypes_OptionalGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypes_OptionalGroup) String() string { @@ -2458,7 +2414,7 @@ func (*TestAllTypes_OptionalGroup) ProtoMessage() {} func (x *TestAllTypes_OptionalGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2505,11 +2461,9 @@ type TestAllTypes_RepeatedGroup struct { func (x *TestAllTypes_RepeatedGroup) Reset() { *x = TestAllTypes_RepeatedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypes_RepeatedGroup) String() string { @@ -2520,7 +2474,7 @@ func (*TestAllTypes_RepeatedGroup) ProtoMessage() {} func (x *TestAllTypes_RepeatedGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2560,11 +2514,9 @@ type TestAllTypes_OneofGroup struct { func (x *TestAllTypes_OneofGroup) Reset() { *x = TestAllTypes_OneofGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypes_OneofGroup) String() string { @@ -2575,7 +2527,7 @@ func (*TestAllTypes_OneofGroup) ProtoMessage() {} func (x *TestAllTypes_OneofGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2615,11 +2567,9 @@ type TestAllExtensions_NestedMessage struct { func (x *TestAllExtensions_NestedMessage) Reset() { *x = TestAllExtensions_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllExtensions_NestedMessage) String() string { @@ -2630,7 +2580,7 @@ func (*TestAllExtensions_NestedMessage) ProtoMessage() {} func (x *TestAllExtensions_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2669,11 +2619,9 @@ type TestRequiredGroupFields_OptionalGroup struct { func (x *TestRequiredGroupFields_OptionalGroup) Reset() { *x = TestRequiredGroupFields_OptionalGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestRequiredGroupFields_OptionalGroup) String() string { @@ -2684,7 +2632,7 @@ func (*TestRequiredGroupFields_OptionalGroup) ProtoMessage() {} func (x *TestRequiredGroupFields_OptionalGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2716,11 +2664,9 @@ type TestRequiredGroupFields_RepeatedGroup struct { func (x *TestRequiredGroupFields_RepeatedGroup) Reset() { *x = TestRequiredGroupFields_RepeatedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestRequiredGroupFields_RepeatedGroup) String() string { @@ -2731,7 +2677,7 @@ func (*TestRequiredGroupFields_RepeatedGroup) ProtoMessage() {} func (x *TestRequiredGroupFields_RepeatedGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/test/test_import.pb.go b/internal/testprotos/test/test_import.pb.go index 2c34c3514..6059ac05c 100644 --- a/internal/testprotos/test/test_import.pb.go +++ b/internal/testprotos/test/test_import.pb.go @@ -75,11 +75,9 @@ type ImportMessage struct { func (x *ImportMessage) Reset() { *x = ImportMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_import_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_import_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportMessage) String() string { @@ -90,7 +88,7 @@ func (*ImportMessage) ProtoMessage() {} func (x *ImportMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_import_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/test/test_public.pb.go b/internal/testprotos/test/test_public.pb.go index b39cc80c4..70d3313ee 100644 --- a/internal/testprotos/test/test_public.pb.go +++ b/internal/testprotos/test/test_public.pb.go @@ -22,11 +22,9 @@ type PublicImportMessage struct { func (x *PublicImportMessage) Reset() { *x = PublicImportMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_test_public_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_test_public_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PublicImportMessage) String() string { @@ -37,7 +35,7 @@ func (*PublicImportMessage) ProtoMessage() {} func (x *PublicImportMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_test_public_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/test/weak1/test_weak.pb.go b/internal/testprotos/test/weak1/test_weak.pb.go index fa72ec9af..b12ac83ee 100644 --- a/internal/testprotos/test/weak1/test_weak.pb.go +++ b/internal/testprotos/test/weak1/test_weak.pb.go @@ -24,11 +24,9 @@ type WeakImportMessage1 struct { func (x *WeakImportMessage1) Reset() { *x = WeakImportMessage1{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_weak1_test_weak_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_weak1_test_weak_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WeakImportMessage1) String() string { @@ -39,7 +37,7 @@ func (*WeakImportMessage1) ProtoMessage() {} func (x *WeakImportMessage1) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_weak1_test_weak_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/test/weak2/test_weak.pb.go b/internal/testprotos/test/weak2/test_weak.pb.go index 732d3d24f..4d3cde8c4 100644 --- a/internal/testprotos/test/weak2/test_weak.pb.go +++ b/internal/testprotos/test/weak2/test_weak.pb.go @@ -24,11 +24,9 @@ type WeakImportMessage2 struct { func (x *WeakImportMessage2) Reset() { *x = WeakImportMessage2{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test_weak2_test_weak_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test_weak2_test_weak_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *WeakImportMessage2) String() string { @@ -39,7 +37,7 @@ func (*WeakImportMessage2) ProtoMessage() {} func (x *WeakImportMessage2) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test_weak2_test_weak_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/test3/test.pb.go b/internal/testprotos/test3/test.pb.go index a1b5dc1eb..2c68e85da 100644 --- a/internal/testprotos/test3/test.pb.go +++ b/internal/testprotos/test3/test.pb.go @@ -219,11 +219,9 @@ type TestAllTypes struct { func (x *TestAllTypes) Reset() { *x = TestAllTypes{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test3_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test3_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypes) String() string { @@ -234,7 +232,7 @@ func (*TestAllTypes) ProtoMessage() {} func (x *TestAllTypes) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test3_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -948,11 +946,9 @@ type ForeignMessage struct { func (x *ForeignMessage) Reset() { *x = ForeignMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test3_test_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test3_test_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ForeignMessage) String() string { @@ -963,7 +959,7 @@ func (*ForeignMessage) ProtoMessage() {} func (x *ForeignMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test3_test_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1003,11 +999,9 @@ type TestAllTypes_NestedMessage struct { func (x *TestAllTypes_NestedMessage) Reset() { *x = TestAllTypes_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test3_test_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test3_test_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypes_NestedMessage) String() string { @@ -1018,7 +1012,7 @@ func (*TestAllTypes_NestedMessage) ProtoMessage() {} func (x *TestAllTypes_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test3_test_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/test3/test_import.pb.go b/internal/testprotos/test3/test_import.pb.go index 129731d41..ae1efc049 100644 --- a/internal/testprotos/test3/test_import.pb.go +++ b/internal/testprotos/test3/test_import.pb.go @@ -65,11 +65,9 @@ type ImportMessage struct { func (x *ImportMessage) Reset() { *x = ImportMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_test3_test_import_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_test3_test_import_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImportMessage) String() string { @@ -80,7 +78,7 @@ func (*ImportMessage) ProtoMessage() {} func (x *ImportMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_test3_test_import_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/testeditions/test.pb.go b/internal/testprotos/testeditions/test.pb.go index aea3f0d80..4cb224715 100644 --- a/internal/testprotos/testeditions/test.pb.go +++ b/internal/testprotos/testeditions/test.pb.go @@ -262,11 +262,9 @@ var ( func (x *TestAllTypes) Reset() { *x = TestAllTypes{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypes) String() string { @@ -277,7 +275,7 @@ func (*TestAllTypes) ProtoMessage() {} func (x *TestAllTypes) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1098,11 +1096,9 @@ type ForeignMessage struct { func (x *ForeignMessage) Reset() { *x = ForeignMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ForeignMessage) String() string { @@ -1113,7 +1109,7 @@ func (*ForeignMessage) ProtoMessage() {} func (x *ForeignMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1152,11 +1148,9 @@ type TestRequired struct { func (x *TestRequired) Reset() { *x = TestRequired{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestRequired) String() string { @@ -1167,7 +1161,7 @@ func (*TestRequired) ProtoMessage() {} func (x *TestRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1205,11 +1199,9 @@ type TestRequiredForeign struct { func (x *TestRequiredForeign) Reset() { *x = TestRequiredForeign{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestRequiredForeign) String() string { @@ -1220,7 +1212,7 @@ func (*TestRequiredForeign) ProtoMessage() {} func (x *TestRequiredForeign) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1291,11 +1283,9 @@ type TestRequiredGroupFields struct { func (x *TestRequiredGroupFields) Reset() { *x = TestRequiredGroupFields{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestRequiredGroupFields) String() string { @@ -1306,7 +1296,7 @@ func (*TestRequiredGroupFields) ProtoMessage() {} func (x *TestRequiredGroupFields) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1358,11 +1348,9 @@ type TestPackedTypes struct { func (x *TestPackedTypes) Reset() { *x = TestPackedTypes{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestPackedTypes) String() string { @@ -1373,7 +1361,7 @@ func (*TestPackedTypes) ProtoMessage() {} func (x *TestPackedTypes) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1495,11 +1483,9 @@ type TestPackedExtensions struct { func (x *TestPackedExtensions) Reset() { *x = TestPackedExtensions{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestPackedExtensions) String() string { @@ -1510,7 +1496,7 @@ func (*TestPackedExtensions) ProtoMessage() {} func (x *TestPackedExtensions) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1536,11 +1522,9 @@ type TestAllTypes_NestedMessage struct { func (x *TestAllTypes_NestedMessage) Reset() { *x = TestAllTypes_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypes_NestedMessage) String() string { @@ -1551,7 +1535,7 @@ func (*TestAllTypes_NestedMessage) ProtoMessage() {} func (x *TestAllTypes_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1592,11 +1576,9 @@ type TestAllTypes_OptionalGroup struct { func (x *TestAllTypes_OptionalGroup) Reset() { *x = TestAllTypes_OptionalGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypes_OptionalGroup) String() string { @@ -1607,7 +1589,7 @@ func (*TestAllTypes_OptionalGroup) ProtoMessage() {} func (x *TestAllTypes_OptionalGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1654,11 +1636,9 @@ type TestAllTypes_RepeatedGroup struct { func (x *TestAllTypes_RepeatedGroup) Reset() { *x = TestAllTypes_RepeatedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypes_RepeatedGroup) String() string { @@ -1669,7 +1649,7 @@ func (*TestAllTypes_RepeatedGroup) ProtoMessage() {} func (x *TestAllTypes_RepeatedGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1709,11 +1689,9 @@ type TestAllTypes_OneofGroup struct { func (x *TestAllTypes_OneofGroup) Reset() { *x = TestAllTypes_OneofGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllTypes_OneofGroup) String() string { @@ -1724,7 +1702,7 @@ func (*TestAllTypes_OneofGroup) ProtoMessage() {} func (x *TestAllTypes_OneofGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1763,11 +1741,9 @@ type TestRequiredGroupFields_OptionalGroup struct { func (x *TestRequiredGroupFields_OptionalGroup) Reset() { *x = TestRequiredGroupFields_OptionalGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestRequiredGroupFields_OptionalGroup) String() string { @@ -1778,7 +1754,7 @@ func (*TestRequiredGroupFields_OptionalGroup) ProtoMessage() {} func (x *TestRequiredGroupFields_OptionalGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1810,11 +1786,9 @@ type TestRequiredGroupFields_RepeatedGroup struct { func (x *TestRequiredGroupFields_RepeatedGroup) Reset() { *x = TestRequiredGroupFields_RepeatedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestRequiredGroupFields_RepeatedGroup) String() string { @@ -1825,7 +1799,7 @@ func (*TestRequiredGroupFields_RepeatedGroup) ProtoMessage() {} func (x *TestRequiredGroupFields_RepeatedGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/testeditions/test_extension.pb.go b/internal/testprotos/testeditions/test_extension.pb.go index f78366481..af0212b77 100644 --- a/internal/testprotos/testeditions/test_extension.pb.go +++ b/internal/testprotos/testeditions/test_extension.pb.go @@ -23,11 +23,9 @@ type TestAllExtensions struct { func (x *TestAllExtensions) Reset() { *x = TestAllExtensions{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllExtensions) String() string { @@ -38,7 +36,7 @@ func (*TestAllExtensions) ProtoMessage() {} func (x *TestAllExtensions) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -65,11 +63,9 @@ type OptionalGroup struct { func (x *OptionalGroup) Reset() { *x = OptionalGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OptionalGroup) String() string { @@ -80,7 +76,7 @@ func (*OptionalGroup) ProtoMessage() {} func (x *OptionalGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -127,11 +123,9 @@ type RepeatedGroup struct { func (x *RepeatedGroup) Reset() { *x = RepeatedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RepeatedGroup) String() string { @@ -142,7 +136,7 @@ func (*RepeatedGroup) ProtoMessage() {} func (x *RepeatedGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -180,11 +174,9 @@ type TestFeatureResolution struct { func (x *TestFeatureResolution) Reset() { *x = TestFeatureResolution{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestFeatureResolution) String() string { @@ -195,7 +187,7 @@ func (*TestFeatureResolution) ProtoMessage() {} func (x *TestFeatureResolution) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -218,11 +210,9 @@ type RepeatedFieldEncoding struct { func (x *RepeatedFieldEncoding) Reset() { *x = RepeatedFieldEncoding{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *RepeatedFieldEncoding) String() string { @@ -233,7 +223,7 @@ func (*RepeatedFieldEncoding) ProtoMessage() {} func (x *RepeatedFieldEncoding) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -259,11 +249,9 @@ type TestAllExtensions_NestedMessage struct { func (x *TestAllExtensions_NestedMessage) Reset() { *x = TestAllExtensions_NestedMessage{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *TestAllExtensions_NestedMessage) String() string { @@ -274,7 +262,7 @@ func (*TestAllExtensions_NestedMessage) ProtoMessage() {} func (x *TestAllExtensions_NestedMessage) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_extension_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/testeditions/test_extension2.pb.go b/internal/testprotos/testeditions/test_extension2.pb.go index 4656e5375..a19fe548e 100644 --- a/internal/testprotos/testeditions/test_extension2.pb.go +++ b/internal/testprotos/testeditions/test_extension2.pb.go @@ -22,11 +22,9 @@ type OtherRepeatedFieldEncoding struct { func (x *OtherRepeatedFieldEncoding) Reset() { *x = OtherRepeatedFieldEncoding{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_testeditions_test_extension2_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_testeditions_test_extension2_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OtherRepeatedFieldEncoding) String() string { @@ -37,7 +35,7 @@ func (*OtherRepeatedFieldEncoding) ProtoMessage() {} func (x *OtherRepeatedFieldEncoding) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_testeditions_test_extension2_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/textpb2/test.pb.go b/internal/testprotos/textpb2/test.pb.go index 83dc42060..3199a6eb5 100644 --- a/internal/testprotos/textpb2/test.pb.go +++ b/internal/testprotos/textpb2/test.pb.go @@ -166,11 +166,9 @@ type Scalars struct { func (x *Scalars) Reset() { *x = Scalars{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Scalars) String() string { @@ -181,7 +179,7 @@ func (*Scalars) ProtoMessage() {} func (x *Scalars) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -315,11 +313,9 @@ type Enums struct { func (x *Enums) Reset() { *x = Enums{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Enums) String() string { @@ -330,7 +326,7 @@ func (*Enums) ProtoMessage() {} func (x *Enums) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -392,11 +388,9 @@ type Repeats struct { func (x *Repeats) Reset() { *x = Repeats{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Repeats) String() string { @@ -407,7 +401,7 @@ func (*Repeats) ProtoMessage() {} func (x *Repeats) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -497,11 +491,9 @@ type Maps struct { func (x *Maps) Reset() { *x = Maps{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Maps) String() string { @@ -512,7 +504,7 @@ func (*Maps) ProtoMessage() {} func (x *Maps) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -553,11 +545,9 @@ type Nested struct { func (x *Nested) Reset() { *x = Nested{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Nested) String() string { @@ -568,7 +558,7 @@ func (*Nested) ProtoMessage() {} func (x *Nested) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -611,11 +601,9 @@ type Nests struct { func (x *Nests) Reset() { *x = Nests{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Nests) String() string { @@ -626,7 +614,7 @@ func (*Nests) ProtoMessage() {} func (x *Nests) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -685,11 +673,9 @@ type Requireds struct { func (x *Requireds) Reset() { *x = Requireds{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Requireds) String() string { @@ -700,7 +686,7 @@ func (*Requireds) ProtoMessage() {} func (x *Requireds) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -769,11 +755,9 @@ type PartialRequired struct { func (x *PartialRequired) Reset() { *x = PartialRequired{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PartialRequired) String() string { @@ -784,7 +768,7 @@ func (*PartialRequired) ProtoMessage() {} func (x *PartialRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -823,11 +807,9 @@ type NestedWithRequired struct { func (x *NestedWithRequired) Reset() { *x = NestedWithRequired{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NestedWithRequired) String() string { @@ -838,7 +820,7 @@ func (*NestedWithRequired) ProtoMessage() {} func (x *NestedWithRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -876,11 +858,9 @@ type IndirectRequired struct { func (x *IndirectRequired) Reset() { *x = IndirectRequired{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IndirectRequired) String() string { @@ -891,7 +871,7 @@ func (*IndirectRequired) ProtoMessage() {} func (x *IndirectRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -964,11 +944,9 @@ type Extensions struct { func (x *Extensions) Reset() { *x = Extensions{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Extensions) String() string { @@ -979,7 +957,7 @@ func (*Extensions) ProtoMessage() {} func (x *Extensions) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1023,11 +1001,9 @@ type ExtensionsContainer struct { func (x *ExtensionsContainer) Reset() { *x = ExtensionsContainer{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtensionsContainer) String() string { @@ -1038,7 +1014,7 @@ func (*ExtensionsContainer) ProtoMessage() {} func (x *ExtensionsContainer) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1062,11 +1038,9 @@ type MessageSet struct { func (x *MessageSet) Reset() { *x = MessageSet{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageSet) String() string { @@ -1077,7 +1051,7 @@ func (*MessageSet) ProtoMessage() {} func (x *MessageSet) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1102,11 +1076,9 @@ type MessageSetExtension struct { func (x *MessageSetExtension) Reset() { *x = MessageSetExtension{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageSetExtension) String() string { @@ -1117,7 +1089,7 @@ func (*MessageSetExtension) ProtoMessage() {} func (x *MessageSetExtension) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1148,11 +1120,9 @@ type FakeMessageSet struct { func (x *FakeMessageSet) Reset() { *x = FakeMessageSet{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FakeMessageSet) String() string { @@ -1163,7 +1133,7 @@ func (*FakeMessageSet) ProtoMessage() {} func (x *FakeMessageSet) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1188,11 +1158,9 @@ type FakeMessageSetExtension struct { func (x *FakeMessageSetExtension) Reset() { *x = FakeMessageSetExtension{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FakeMessageSetExtension) String() string { @@ -1203,7 +1171,7 @@ func (*FakeMessageSetExtension) ProtoMessage() {} func (x *FakeMessageSetExtension) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1253,11 +1221,9 @@ type KnownTypes struct { func (x *KnownTypes) Reset() { *x = KnownTypes{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KnownTypes) String() string { @@ -1268,7 +1234,7 @@ func (*KnownTypes) ProtoMessage() {} func (x *KnownTypes) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1421,11 +1387,9 @@ type Nests_OptGroup struct { func (x *Nests_OptGroup) Reset() { *x = Nests_OptGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Nests_OptGroup) String() string { @@ -1436,7 +1400,7 @@ func (*Nests_OptGroup) ProtoMessage() {} func (x *Nests_OptGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1482,11 +1446,9 @@ type Nests_RptGroup struct { func (x *Nests_RptGroup) Reset() { *x = Nests_RptGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Nests_RptGroup) String() string { @@ -1497,7 +1459,7 @@ func (*Nests_RptGroup) ProtoMessage() {} func (x *Nests_RptGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1529,11 +1491,9 @@ type Nests_OptGroup_OptNestedGroup struct { func (x *Nests_OptGroup_OptNestedGroup) Reset() { *x = Nests_OptGroup_OptNestedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Nests_OptGroup_OptNestedGroup) String() string { @@ -1544,7 +1504,7 @@ func (*Nests_OptGroup_OptNestedGroup) ProtoMessage() {} func (x *Nests_OptGroup_OptNestedGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb2_test_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/textpb3/test.pb.go b/internal/testprotos/textpb3/test.pb.go index f9f4d4cf9..a9c4d1277 100644 --- a/internal/testprotos/textpb3/test.pb.go +++ b/internal/testprotos/textpb3/test.pb.go @@ -145,11 +145,9 @@ type Scalars struct { func (x *Scalars) Reset() { *x = Scalars{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Scalars) String() string { @@ -160,7 +158,7 @@ func (*Scalars) ProtoMessage() {} func (x *Scalars) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -299,11 +297,9 @@ type Repeats struct { func (x *Repeats) Reset() { *x = Repeats{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Repeats) String() string { @@ -314,7 +310,7 @@ func (*Repeats) ProtoMessage() {} func (x *Repeats) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -412,11 +408,9 @@ type Proto3Optional struct { func (x *Proto3Optional) Reset() { *x = Proto3Optional{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Proto3Optional) String() string { @@ -427,7 +421,7 @@ func (*Proto3Optional) ProtoMessage() {} func (x *Proto3Optional) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -531,11 +525,9 @@ type Enums struct { func (x *Enums) Reset() { *x = Enums{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Enums) String() string { @@ -546,7 +538,7 @@ func (*Enums) ProtoMessage() {} func (x *Enums) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -586,11 +578,9 @@ type Nests struct { func (x *Nests) Reset() { *x = Nests{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Nests) String() string { @@ -601,7 +591,7 @@ func (*Nests) ProtoMessage() {} func (x *Nests) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -635,11 +625,9 @@ type Nested struct { func (x *Nested) Reset() { *x = Nested{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Nested) String() string { @@ -650,7 +638,7 @@ func (*Nested) ProtoMessage() {} func (x *Nested) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -695,11 +683,9 @@ type Oneofs struct { func (x *Oneofs) Reset() { *x = Oneofs{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Oneofs) String() string { @@ -710,7 +696,7 @@ func (*Oneofs) ProtoMessage() {} func (x *Oneofs) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -790,11 +776,9 @@ type Maps struct { func (x *Maps) Reset() { *x = Maps{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Maps) String() string { @@ -805,7 +789,7 @@ func (*Maps) ProtoMessage() {} func (x *Maps) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -866,11 +850,9 @@ type JSONNames struct { func (x *JSONNames) Reset() { *x = JSONNames{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *JSONNames) String() string { @@ -881,7 +863,7 @@ func (*JSONNames) ProtoMessage() {} func (x *JSONNames) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpb3_test_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/internal/testprotos/textpbeditions/test2.pb.go b/internal/testprotos/textpbeditions/test2.pb.go index ae22c7f91..2965e6e09 100644 --- a/internal/testprotos/textpbeditions/test2.pb.go +++ b/internal/testprotos/textpbeditions/test2.pb.go @@ -250,11 +250,9 @@ type Scalars struct { func (x *Scalars) Reset() { *x = Scalars{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Scalars) String() string { @@ -265,7 +263,7 @@ func (*Scalars) ProtoMessage() {} func (x *Scalars) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -410,11 +408,9 @@ type ImplicitScalars struct { func (x *ImplicitScalars) Reset() { *x = ImplicitScalars{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ImplicitScalars) String() string { @@ -425,7 +421,7 @@ func (*ImplicitScalars) ProtoMessage() {} func (x *ImplicitScalars) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -555,11 +551,9 @@ type UTF8Validated struct { func (x *UTF8Validated) Reset() { *x = UTF8Validated{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UTF8Validated) String() string { @@ -570,7 +564,7 @@ func (*UTF8Validated) ProtoMessage() {} func (x *UTF8Validated) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -602,11 +596,9 @@ type NestsUTF8Validated struct { func (x *NestsUTF8Validated) Reset() { *x = NestsUTF8Validated{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NestsUTF8Validated) String() string { @@ -617,7 +609,7 @@ func (*NestsUTF8Validated) ProtoMessage() {} func (x *NestsUTF8Validated) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -655,11 +647,9 @@ type Enums struct { func (x *Enums) Reset() { *x = Enums{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Enums) String() string { @@ -670,7 +660,7 @@ func (*Enums) ProtoMessage() {} func (x *Enums) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -746,11 +736,9 @@ type Repeats struct { func (x *Repeats) Reset() { *x = Repeats{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Repeats) String() string { @@ -761,7 +749,7 @@ func (*Repeats) ProtoMessage() {} func (x *Repeats) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -851,11 +839,9 @@ type Maps struct { func (x *Maps) Reset() { *x = Maps{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Maps) String() string { @@ -866,7 +852,7 @@ func (*Maps) ProtoMessage() {} func (x *Maps) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -907,11 +893,9 @@ type Nested struct { func (x *Nested) Reset() { *x = Nested{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Nested) String() string { @@ -922,7 +906,7 @@ func (*Nested) ProtoMessage() {} func (x *Nested) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -966,11 +950,9 @@ type Nests struct { func (x *Nests) Reset() { *x = Nests{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Nests) String() string { @@ -981,7 +963,7 @@ func (*Nests) ProtoMessage() {} func (x *Nests) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1047,11 +1029,9 @@ type Requireds struct { func (x *Requireds) Reset() { *x = Requireds{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Requireds) String() string { @@ -1062,7 +1042,7 @@ func (*Requireds) ProtoMessage() {} func (x *Requireds) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1131,11 +1111,9 @@ type PartialRequired struct { func (x *PartialRequired) Reset() { *x = PartialRequired{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *PartialRequired) String() string { @@ -1146,7 +1124,7 @@ func (*PartialRequired) ProtoMessage() {} func (x *PartialRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1185,11 +1163,9 @@ type NestedWithRequired struct { func (x *NestedWithRequired) Reset() { *x = NestedWithRequired{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *NestedWithRequired) String() string { @@ -1200,7 +1176,7 @@ func (*NestedWithRequired) ProtoMessage() {} func (x *NestedWithRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1238,11 +1214,9 @@ type IndirectRequired struct { func (x *IndirectRequired) Reset() { *x = IndirectRequired{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *IndirectRequired) String() string { @@ -1253,7 +1227,7 @@ func (*IndirectRequired) ProtoMessage() {} func (x *IndirectRequired) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1326,11 +1300,9 @@ type Extensions struct { func (x *Extensions) Reset() { *x = Extensions{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Extensions) String() string { @@ -1341,7 +1313,7 @@ func (*Extensions) ProtoMessage() {} func (x *Extensions) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1385,11 +1357,9 @@ type ExtensionsContainer struct { func (x *ExtensionsContainer) Reset() { *x = ExtensionsContainer{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtensionsContainer) String() string { @@ -1400,7 +1370,7 @@ func (*ExtensionsContainer) ProtoMessage() {} func (x *ExtensionsContainer) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1424,11 +1394,9 @@ type MessageSet struct { func (x *MessageSet) Reset() { *x = MessageSet{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageSet) String() string { @@ -1439,7 +1407,7 @@ func (*MessageSet) ProtoMessage() {} func (x *MessageSet) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1464,11 +1432,9 @@ type MessageSetExtension struct { func (x *MessageSetExtension) Reset() { *x = MessageSetExtension{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageSetExtension) String() string { @@ -1479,7 +1445,7 @@ func (*MessageSetExtension) ProtoMessage() {} func (x *MessageSetExtension) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1510,11 +1476,9 @@ type FakeMessageSet struct { func (x *FakeMessageSet) Reset() { *x = FakeMessageSet{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FakeMessageSet) String() string { @@ -1525,7 +1489,7 @@ func (*FakeMessageSet) ProtoMessage() {} func (x *FakeMessageSet) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1550,11 +1514,9 @@ type FakeMessageSetExtension struct { func (x *FakeMessageSetExtension) Reset() { *x = FakeMessageSetExtension{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FakeMessageSetExtension) String() string { @@ -1565,7 +1527,7 @@ func (*FakeMessageSetExtension) ProtoMessage() {} func (x *FakeMessageSetExtension) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1615,11 +1577,9 @@ type KnownTypes struct { func (x *KnownTypes) Reset() { *x = KnownTypes{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *KnownTypes) String() string { @@ -1630,7 +1590,7 @@ func (*KnownTypes) ProtoMessage() {} func (x *KnownTypes) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1784,11 +1744,9 @@ type Nests_OptGroup struct { func (x *Nests_OptGroup) Reset() { *x = Nests_OptGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Nests_OptGroup) String() string { @@ -1799,7 +1757,7 @@ func (*Nests_OptGroup) ProtoMessage() {} func (x *Nests_OptGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1852,11 +1810,9 @@ type Nests_RptGroup struct { func (x *Nests_RptGroup) Reset() { *x = Nests_RptGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Nests_RptGroup) String() string { @@ -1867,7 +1823,7 @@ func (*Nests_RptGroup) ProtoMessage() {} func (x *Nests_RptGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1899,11 +1855,9 @@ type Nests_OptGroup_OptNestedGroup struct { func (x *Nests_OptGroup_OptNestedGroup) Reset() { *x = Nests_OptGroup_OptNestedGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Nests_OptGroup_OptNestedGroup) String() string { @@ -1914,7 +1868,7 @@ func (*Nests_OptGroup_OptNestedGroup) ProtoMessage() {} func (x *Nests_OptGroup_OptNestedGroup) ProtoReflect() protoreflect.Message { mi := &file_internal_testprotos_textpbeditions_test2_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/descriptorpb/descriptor.pb.go b/types/descriptorpb/descriptor.pb.go index 12590ad7e..6dea75cd5 100644 --- a/types/descriptorpb/descriptor.pb.go +++ b/types/descriptorpb/descriptor.pb.go @@ -1217,11 +1217,9 @@ type FileDescriptorSet struct { func (x *FileDescriptorSet) Reset() { *x = FileDescriptorSet{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FileDescriptorSet) String() string { @@ -1232,7 +1230,7 @@ func (*FileDescriptorSet) ProtoMessage() {} func (x *FileDescriptorSet) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1291,11 +1289,9 @@ type FileDescriptorProto struct { func (x *FileDescriptorProto) Reset() { *x = FileDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FileDescriptorProto) String() string { @@ -1306,7 +1302,7 @@ func (*FileDescriptorProto) ProtoMessage() {} func (x *FileDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1434,11 +1430,9 @@ type DescriptorProto struct { func (x *DescriptorProto) Reset() { *x = DescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DescriptorProto) String() string { @@ -1449,7 +1443,7 @@ func (*DescriptorProto) ProtoMessage() {} func (x *DescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1561,11 +1555,9 @@ const ( func (x *ExtensionRangeOptions) Reset() { *x = ExtensionRangeOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtensionRangeOptions) String() string { @@ -1576,7 +1568,7 @@ func (*ExtensionRangeOptions) ProtoMessage() {} func (x *ExtensionRangeOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1680,11 +1672,9 @@ type FieldDescriptorProto struct { func (x *FieldDescriptorProto) Reset() { *x = FieldDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldDescriptorProto) String() string { @@ -1695,7 +1685,7 @@ func (*FieldDescriptorProto) ProtoMessage() {} func (x *FieldDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1799,11 +1789,9 @@ type OneofDescriptorProto struct { func (x *OneofDescriptorProto) Reset() { *x = OneofDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OneofDescriptorProto) String() string { @@ -1814,7 +1802,7 @@ func (*OneofDescriptorProto) ProtoMessage() {} func (x *OneofDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1863,11 +1851,9 @@ type EnumDescriptorProto struct { func (x *EnumDescriptorProto) Reset() { *x = EnumDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumDescriptorProto) String() string { @@ -1878,7 +1864,7 @@ func (*EnumDescriptorProto) ProtoMessage() {} func (x *EnumDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1941,11 +1927,9 @@ type EnumValueDescriptorProto struct { func (x *EnumValueDescriptorProto) Reset() { *x = EnumValueDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumValueDescriptorProto) String() string { @@ -1956,7 +1940,7 @@ func (*EnumValueDescriptorProto) ProtoMessage() {} func (x *EnumValueDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2005,11 +1989,9 @@ type ServiceDescriptorProto struct { func (x *ServiceDescriptorProto) Reset() { *x = ServiceDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ServiceDescriptorProto) String() string { @@ -2020,7 +2002,7 @@ func (*ServiceDescriptorProto) ProtoMessage() {} func (x *ServiceDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2082,11 +2064,9 @@ const ( func (x *MethodDescriptorProto) Reset() { *x = MethodDescriptorProto{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MethodDescriptorProto) String() string { @@ -2097,7 +2077,7 @@ func (*MethodDescriptorProto) ProtoMessage() {} func (x *MethodDescriptorProto) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2267,11 +2247,9 @@ const ( func (x *FileOptions) Reset() { *x = FileOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FileOptions) String() string { @@ -2282,7 +2260,7 @@ func (*FileOptions) ProtoMessage() {} func (x *FileOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2534,11 +2512,9 @@ const ( func (x *MessageOptions) Reset() { *x = MessageOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MessageOptions) String() string { @@ -2549,7 +2525,7 @@ func (*MessageOptions) ProtoMessage() {} func (x *MessageOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2707,11 +2683,9 @@ const ( func (x *FieldOptions) Reset() { *x = FieldOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldOptions) String() string { @@ -2722,7 +2696,7 @@ func (*FieldOptions) ProtoMessage() {} func (x *FieldOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2849,11 +2823,9 @@ type OneofOptions struct { func (x *OneofOptions) Reset() { *x = OneofOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *OneofOptions) String() string { @@ -2864,7 +2836,7 @@ func (*OneofOptions) ProtoMessage() {} func (x *OneofOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2929,11 +2901,9 @@ const ( func (x *EnumOptions) Reset() { *x = EnumOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumOptions) String() string { @@ -2944,7 +2914,7 @@ func (*EnumOptions) ProtoMessage() {} func (x *EnumOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3026,11 +2996,9 @@ const ( func (x *EnumValueOptions) Reset() { *x = EnumValueOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumValueOptions) String() string { @@ -3041,7 +3009,7 @@ func (*EnumValueOptions) ProtoMessage() {} func (x *EnumValueOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3115,11 +3083,9 @@ const ( func (x *ServiceOptions) Reset() { *x = ServiceOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ServiceOptions) String() string { @@ -3130,7 +3096,7 @@ func (*ServiceOptions) ProtoMessage() {} func (x *ServiceOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3192,11 +3158,9 @@ const ( func (x *MethodOptions) Reset() { *x = MethodOptions{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *MethodOptions) String() string { @@ -3207,7 +3171,7 @@ func (*MethodOptions) ProtoMessage() {} func (x *MethodOptions) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3274,11 +3238,9 @@ type UninterpretedOption struct { func (x *UninterpretedOption) Reset() { *x = UninterpretedOption{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UninterpretedOption) String() string { @@ -3289,7 +3251,7 @@ func (*UninterpretedOption) ProtoMessage() {} func (x *UninterpretedOption) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3375,11 +3337,9 @@ type FeatureSet struct { func (x *FeatureSet) Reset() { *x = FeatureSet{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FeatureSet) String() string { @@ -3390,7 +3350,7 @@ func (*FeatureSet) ProtoMessage() {} func (x *FeatureSet) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3467,11 +3427,9 @@ type FeatureSetDefaults struct { func (x *FeatureSetDefaults) Reset() { *x = FeatureSetDefaults{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FeatureSetDefaults) String() string { @@ -3482,7 +3440,7 @@ func (*FeatureSetDefaults) ProtoMessage() {} func (x *FeatureSetDefaults) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3578,11 +3536,9 @@ type SourceCodeInfo struct { func (x *SourceCodeInfo) Reset() { *x = SourceCodeInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SourceCodeInfo) String() string { @@ -3593,7 +3549,7 @@ func (*SourceCodeInfo) ProtoMessage() {} func (x *SourceCodeInfo) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3630,11 +3586,9 @@ type GeneratedCodeInfo struct { func (x *GeneratedCodeInfo) Reset() { *x = GeneratedCodeInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GeneratedCodeInfo) String() string { @@ -3645,7 +3599,7 @@ func (*GeneratedCodeInfo) ProtoMessage() {} func (x *GeneratedCodeInfo) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3679,11 +3633,9 @@ type DescriptorProto_ExtensionRange struct { func (x *DescriptorProto_ExtensionRange) Reset() { *x = DescriptorProto_ExtensionRange{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DescriptorProto_ExtensionRange) String() string { @@ -3694,7 +3646,7 @@ func (*DescriptorProto_ExtensionRange) ProtoMessage() {} func (x *DescriptorProto_ExtensionRange) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3744,11 +3696,9 @@ type DescriptorProto_ReservedRange struct { func (x *DescriptorProto_ReservedRange) Reset() { *x = DescriptorProto_ReservedRange{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DescriptorProto_ReservedRange) String() string { @@ -3759,7 +3709,7 @@ func (*DescriptorProto_ReservedRange) ProtoMessage() {} func (x *DescriptorProto_ReservedRange) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3813,11 +3763,9 @@ type ExtensionRangeOptions_Declaration struct { func (x *ExtensionRangeOptions_Declaration) Reset() { *x = ExtensionRangeOptions_Declaration{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ExtensionRangeOptions_Declaration) String() string { @@ -3828,7 +3776,7 @@ func (*ExtensionRangeOptions_Declaration) ProtoMessage() {} func (x *ExtensionRangeOptions_Declaration) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3895,11 +3843,9 @@ type EnumDescriptorProto_EnumReservedRange struct { func (x *EnumDescriptorProto_EnumReservedRange) Reset() { *x = EnumDescriptorProto_EnumReservedRange{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumDescriptorProto_EnumReservedRange) String() string { @@ -3910,7 +3856,7 @@ func (*EnumDescriptorProto_EnumReservedRange) ProtoMessage() {} func (x *EnumDescriptorProto_EnumReservedRange) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -3950,11 +3896,9 @@ type FieldOptions_EditionDefault struct { func (x *FieldOptions_EditionDefault) Reset() { *x = FieldOptions_EditionDefault{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldOptions_EditionDefault) String() string { @@ -3965,7 +3909,7 @@ func (*FieldOptions_EditionDefault) ProtoMessage() {} func (x *FieldOptions_EditionDefault) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4018,11 +3962,9 @@ type FieldOptions_FeatureSupport struct { func (x *FieldOptions_FeatureSupport) Reset() { *x = FieldOptions_FeatureSupport{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldOptions_FeatureSupport) String() string { @@ -4033,7 +3975,7 @@ func (*FieldOptions_FeatureSupport) ProtoMessage() {} func (x *FieldOptions_FeatureSupport) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4092,11 +4034,9 @@ type UninterpretedOption_NamePart struct { func (x *UninterpretedOption_NamePart) Reset() { *x = UninterpretedOption_NamePart{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UninterpretedOption_NamePart) String() string { @@ -4107,7 +4047,7 @@ func (*UninterpretedOption_NamePart) ProtoMessage() {} func (x *UninterpretedOption_NamePart) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4154,11 +4094,9 @@ type FeatureSetDefaults_FeatureSetEditionDefault struct { func (x *FeatureSetDefaults_FeatureSetEditionDefault) Reset() { *x = FeatureSetDefaults_FeatureSetEditionDefault{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FeatureSetDefaults_FeatureSetEditionDefault) String() string { @@ -4169,7 +4107,7 @@ func (*FeatureSetDefaults_FeatureSetEditionDefault) ProtoMessage() {} func (x *FeatureSetDefaults_FeatureSetEditionDefault) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4305,11 +4243,9 @@ type SourceCodeInfo_Location struct { func (x *SourceCodeInfo_Location) Reset() { *x = SourceCodeInfo_Location{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SourceCodeInfo_Location) String() string { @@ -4320,7 +4256,7 @@ func (*SourceCodeInfo_Location) ProtoMessage() {} func (x *SourceCodeInfo_Location) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -4392,11 +4328,9 @@ type GeneratedCodeInfo_Annotation struct { func (x *GeneratedCodeInfo_Annotation) Reset() { *x = GeneratedCodeInfo_Annotation{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_descriptor_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_descriptor_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GeneratedCodeInfo_Annotation) String() string { @@ -4407,7 +4341,7 @@ func (*GeneratedCodeInfo_Annotation) ProtoMessage() {} func (x *GeneratedCodeInfo_Annotation) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_descriptor_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/gofeaturespb/go_features.pb.go b/types/gofeaturespb/go_features.pb.go index 18eb1e3c0..c7e860fcd 100644 --- a/types/gofeaturespb/go_features.pb.go +++ b/types/gofeaturespb/go_features.pb.go @@ -29,11 +29,9 @@ type GoFeatures struct { func (x *GoFeatures) Reset() { *x = GoFeatures{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_go_features_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_go_features_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *GoFeatures) String() string { @@ -44,7 +42,7 @@ func (*GoFeatures) ProtoMessage() {} func (x *GoFeatures) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_go_features_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/known/anypb/any.pb.go b/types/known/anypb/any.pb.go index 1b5f576e0..87da199a3 100644 --- a/types/known/anypb/any.pb.go +++ b/types/known/anypb/any.pb.go @@ -368,11 +368,9 @@ func (x *Any) UnmarshalNew() (proto.Message, error) { func (x *Any) Reset() { *x = Any{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_any_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_any_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Any) String() string { @@ -383,7 +381,7 @@ func (*Any) ProtoMessage() {} func (x *Any) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_any_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/known/apipb/api.pb.go b/types/known/apipb/api.pb.go index 3512d3dcf..fdc3aef2c 100644 --- a/types/known/apipb/api.pb.go +++ b/types/known/apipb/api.pb.go @@ -94,11 +94,9 @@ type Api struct { func (x *Api) Reset() { *x = Api{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_api_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_api_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Api) String() string { @@ -109,7 +107,7 @@ func (*Api) ProtoMessage() {} func (x *Api) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_api_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -197,11 +195,9 @@ type Method struct { func (x *Method) Reset() { *x = Method{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_api_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_api_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Method) String() string { @@ -212,7 +208,7 @@ func (*Method) ProtoMessage() {} func (x *Method) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_api_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -368,11 +364,9 @@ type Mixin struct { func (x *Mixin) Reset() { *x = Mixin{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_api_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_api_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Mixin) String() string { @@ -383,7 +377,7 @@ func (*Mixin) ProtoMessage() {} func (x *Mixin) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_api_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/known/durationpb/duration.pb.go b/types/known/durationpb/duration.pb.go index aef4a8cac..b99d4d241 100644 --- a/types/known/durationpb/duration.pb.go +++ b/types/known/durationpb/duration.pb.go @@ -245,11 +245,9 @@ func (x *Duration) check() uint { func (x *Duration) Reset() { *x = Duration{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_duration_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_duration_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Duration) String() string { @@ -260,7 +258,7 @@ func (*Duration) ProtoMessage() {} func (x *Duration) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_duration_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/known/emptypb/empty.pb.go b/types/known/emptypb/empty.pb.go index b6806b507..1761bc9c6 100644 --- a/types/known/emptypb/empty.pb.go +++ b/types/known/emptypb/empty.pb.go @@ -55,11 +55,9 @@ type Empty struct { func (x *Empty) Reset() { *x = Empty{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_empty_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_empty_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Empty) String() string { @@ -70,7 +68,7 @@ func (*Empty) ProtoMessage() {} func (x *Empty) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_empty_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/known/fieldmaskpb/field_mask.pb.go b/types/known/fieldmaskpb/field_mask.pb.go index ae59fd936..19de8d371 100644 --- a/types/known/fieldmaskpb/field_mask.pb.go +++ b/types/known/fieldmaskpb/field_mask.pb.go @@ -467,11 +467,9 @@ func rangeFields(path string, f func(field string) bool) bool { func (x *FieldMask) Reset() { *x = FieldMask{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_field_mask_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_field_mask_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FieldMask) String() string { @@ -482,7 +480,7 @@ func (*FieldMask) ProtoMessage() {} func (x *FieldMask) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_field_mask_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/known/sourcecontextpb/source_context.pb.go b/types/known/sourcecontextpb/source_context.pb.go index f8d07959a..4d15e9748 100644 --- a/types/known/sourcecontextpb/source_context.pb.go +++ b/types/known/sourcecontextpb/source_context.pb.go @@ -54,11 +54,9 @@ type SourceContext struct { func (x *SourceContext) Reset() { *x = SourceContext{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_source_context_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_source_context_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *SourceContext) String() string { @@ -69,7 +67,7 @@ func (*SourceContext) ProtoMessage() {} func (x *SourceContext) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_source_context_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/known/structpb/struct.pb.go b/types/known/structpb/struct.pb.go index 990148971..8f206a661 100644 --- a/types/known/structpb/struct.pb.go +++ b/types/known/structpb/struct.pb.go @@ -234,11 +234,9 @@ func (x *Struct) UnmarshalJSON(b []byte) error { func (x *Struct) Reset() { *x = Struct{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_struct_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_struct_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Struct) String() string { @@ -249,7 +247,7 @@ func (*Struct) ProtoMessage() {} func (x *Struct) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_struct_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -457,11 +455,9 @@ func (x *Value) UnmarshalJSON(b []byte) error { func (x *Value) Reset() { *x = Value{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_struct_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_struct_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Value) String() string { @@ -472,7 +468,7 @@ func (*Value) ProtoMessage() {} func (x *Value) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_struct_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -629,11 +625,9 @@ func (x *ListValue) UnmarshalJSON(b []byte) error { func (x *ListValue) Reset() { *x = ListValue{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_struct_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_struct_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *ListValue) String() string { @@ -644,7 +638,7 @@ func (*ListValue) ProtoMessage() {} func (x *ListValue) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_struct_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/known/timestamppb/timestamp.pb.go b/types/known/timestamppb/timestamp.pb.go index 5542bfbc2..0d20722d7 100644 --- a/types/known/timestamppb/timestamp.pb.go +++ b/types/known/timestamppb/timestamp.pb.go @@ -254,11 +254,9 @@ func (x *Timestamp) check() uint { func (x *Timestamp) Reset() { *x = Timestamp{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_timestamp_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_timestamp_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Timestamp) String() string { @@ -269,7 +267,7 @@ func (*Timestamp) ProtoMessage() {} func (x *Timestamp) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_timestamp_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/known/typepb/type.pb.go b/types/known/typepb/type.pb.go index 3bae326cf..f0ca52a01 100644 --- a/types/known/typepb/type.pb.go +++ b/types/known/typepb/type.pb.go @@ -293,11 +293,9 @@ type Type struct { func (x *Type) Reset() { *x = Type{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_type_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_type_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Type) String() string { @@ -308,7 +306,7 @@ func (*Type) ProtoMessage() {} func (x *Type) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_type_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -404,11 +402,9 @@ type Field struct { func (x *Field) Reset() { *x = Field{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_type_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_type_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Field) String() string { @@ -419,7 +415,7 @@ func (*Field) ProtoMessage() {} func (x *Field) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_type_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -526,11 +522,9 @@ type Enum struct { func (x *Enum) Reset() { *x = Enum{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_type_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_type_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Enum) String() string { @@ -541,7 +535,7 @@ func (*Enum) ProtoMessage() {} func (x *Enum) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_type_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -614,11 +608,9 @@ type EnumValue struct { func (x *EnumValue) Reset() { *x = EnumValue{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_type_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_type_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *EnumValue) String() string { @@ -629,7 +621,7 @@ func (*EnumValue) ProtoMessage() {} func (x *EnumValue) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_type_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -686,11 +678,9 @@ type Option struct { func (x *Option) Reset() { *x = Option{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_type_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_type_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Option) String() string { @@ -701,7 +691,7 @@ func (*Option) ProtoMessage() {} func (x *Option) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_type_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/known/wrapperspb/wrappers.pb.go b/types/known/wrapperspb/wrappers.pb.go index 7563b39d2..006060e56 100644 --- a/types/known/wrapperspb/wrappers.pb.go +++ b/types/known/wrapperspb/wrappers.pb.go @@ -69,11 +69,9 @@ func Double(v float64) *DoubleValue { func (x *DoubleValue) Reset() { *x = DoubleValue{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_wrappers_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_wrappers_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *DoubleValue) String() string { @@ -84,7 +82,7 @@ func (*DoubleValue) ProtoMessage() {} func (x *DoubleValue) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_wrappers_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -125,11 +123,9 @@ func Float(v float32) *FloatValue { func (x *FloatValue) Reset() { *x = FloatValue{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_wrappers_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_wrappers_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *FloatValue) String() string { @@ -140,7 +136,7 @@ func (*FloatValue) ProtoMessage() {} func (x *FloatValue) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_wrappers_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -181,11 +177,9 @@ func Int64(v int64) *Int64Value { func (x *Int64Value) Reset() { *x = Int64Value{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_wrappers_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_wrappers_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Int64Value) String() string { @@ -196,7 +190,7 @@ func (*Int64Value) ProtoMessage() {} func (x *Int64Value) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_wrappers_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -237,11 +231,9 @@ func UInt64(v uint64) *UInt64Value { func (x *UInt64Value) Reset() { *x = UInt64Value{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_wrappers_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_wrappers_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UInt64Value) String() string { @@ -252,7 +244,7 @@ func (*UInt64Value) ProtoMessage() {} func (x *UInt64Value) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_wrappers_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -293,11 +285,9 @@ func Int32(v int32) *Int32Value { func (x *Int32Value) Reset() { *x = Int32Value{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_wrappers_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_wrappers_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Int32Value) String() string { @@ -308,7 +298,7 @@ func (*Int32Value) ProtoMessage() {} func (x *Int32Value) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_wrappers_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -349,11 +339,9 @@ func UInt32(v uint32) *UInt32Value { func (x *UInt32Value) Reset() { *x = UInt32Value{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_wrappers_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_wrappers_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *UInt32Value) String() string { @@ -364,7 +352,7 @@ func (*UInt32Value) ProtoMessage() {} func (x *UInt32Value) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_wrappers_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -405,11 +393,9 @@ func Bool(v bool) *BoolValue { func (x *BoolValue) Reset() { *x = BoolValue{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_wrappers_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_wrappers_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BoolValue) String() string { @@ -420,7 +406,7 @@ func (*BoolValue) ProtoMessage() {} func (x *BoolValue) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_wrappers_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -461,11 +447,9 @@ func String(v string) *StringValue { func (x *StringValue) Reset() { *x = StringValue{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_wrappers_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_wrappers_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *StringValue) String() string { @@ -476,7 +460,7 @@ func (*StringValue) ProtoMessage() {} func (x *StringValue) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_wrappers_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -517,11 +501,9 @@ func Bytes(v []byte) *BytesValue { func (x *BytesValue) Reset() { *x = BytesValue{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_wrappers_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_wrappers_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *BytesValue) String() string { @@ -532,7 +514,7 @@ func (*BytesValue) ProtoMessage() {} func (x *BytesValue) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_wrappers_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) diff --git a/types/pluginpb/plugin.pb.go b/types/pluginpb/plugin.pb.go index 613bf143b..c6d90cab3 100644 --- a/types/pluginpb/plugin.pb.go +++ b/types/pluginpb/plugin.pb.go @@ -107,11 +107,9 @@ type Version struct { func (x *Version) Reset() { *x = Version{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *Version) String() string { @@ -122,7 +120,7 @@ func (*Version) ProtoMessage() {} func (x *Version) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -207,11 +205,9 @@ type CodeGeneratorRequest struct { func (x *CodeGeneratorRequest) Reset() { *x = CodeGeneratorRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CodeGeneratorRequest) String() string { @@ -222,7 +218,7 @@ func (*CodeGeneratorRequest) ProtoMessage() {} func (x *CodeGeneratorRequest) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -305,11 +301,9 @@ type CodeGeneratorResponse struct { func (x *CodeGeneratorResponse) Reset() { *x = CodeGeneratorResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CodeGeneratorResponse) String() string { @@ -320,7 +314,7 @@ func (*CodeGeneratorResponse) ProtoMessage() {} func (x *CodeGeneratorResponse) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -440,11 +434,9 @@ type CodeGeneratorResponse_File struct { func (x *CodeGeneratorResponse_File) Reset() { *x = CodeGeneratorResponse_File{} - if protoimpl.UnsafeEnabled { - mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } + mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) } func (x *CodeGeneratorResponse_File) String() string { @@ -455,7 +447,7 @@ func (*CodeGeneratorResponse_File) ProtoMessage() {} func (x *CodeGeneratorResponse_File) ProtoReflect() protoreflect.Message { mi := &file_google_protobuf_compiler_plugin_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { + if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi)