diff --git a/compiler/protogen/protogen.go b/compiler/protogen/protogen.go index 13bd3f29..51085bf6 100644 --- a/compiler/protogen/protogen.go +++ b/compiler/protogen/protogen.go @@ -46,6 +46,8 @@ var typesPackage = "github.com/aperturerobotics/protobuf-go-lite/types/" var trimTypesPrefix = "google.golang.org/protobuf/types/" +var ProtobufGoLitePackage = GoImportPath("github.com/aperturerobotics/protobuf-go-lite") + func fixTypesPrefix(impPath GoImportPath) GoImportPath { if strings.HasPrefix(string(impPath), trimTypesPrefix) { impPath = GoImportPath(typesPackage + strings.TrimPrefix(string(impPath), trimTypesPrefix)) diff --git a/features/clone/clone.go b/features/clone/clone.go index 3bfcfcfd..f6e79368 100644 --- a/features/clone/clone.go +++ b/features/clone/clone.go @@ -138,7 +138,7 @@ func (p *clone) generateCloneMethodsForMessage(proto3 bool, message *protogen.Me p.P(`}`) p.P() - p.P(`func (m *`, ccTypeName, `) `, cloneMessageName, `() any {`) + p.P(`func (m *`, ccTypeName, `) `, cloneMessageName, `() `, p.QualifiedGoIdent(protogen.ProtobufGoLitePackage.Ident("CloneMessage")), ` {`) p.P(`return m.`, cloneName, `()`) p.P(`}`) p.P() diff --git a/protobuf-go-lite.go b/protobuf-go-lite.go index 8648b6a6..699fb25a 100644 --- a/protobuf-go-lite.go +++ b/protobuf-go-lite.go @@ -26,9 +26,19 @@ type Message interface { Reset() } +// CloneMessage is a message with a CloneMessage function. +type CloneMessage interface { + // Message extends the base message type. + Message + // CloneMessageVT clones the object. + CloneMessageVT() CloneMessage +} + // CloneVT is a message with a CloneVT function (VTProtobuf). type CloneVT[T comparable] interface { comparable + // CloneMessage is the non-generic clone interface. + CloneMessage // CloneVT clones the object. CloneVT() T } diff --git a/testproto/disable-json/disable-json.pb.go b/testproto/disable-json/disable-json.pb.go index 33be18ea..7398e4d5 100644 --- a/testproto/disable-json/disable-json.pb.go +++ b/testproto/disable-json/disable-json.pb.go @@ -82,7 +82,7 @@ func (m *MessageDisableJson) CloneVT() *MessageDisableJson { return r } -func (m *MessageDisableJson) CloneMessageVT() any { +func (m *MessageDisableJson) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/testproto/maps/maps.pb.go b/testproto/maps/maps.pb.go index 4f46dc94..09e5b781 100644 --- a/testproto/maps/maps.pb.go +++ b/testproto/maps/maps.pb.go @@ -118,7 +118,7 @@ func (m *MsgWithMaps) CloneVT() *MsgWithMaps { return r } -func (m *MsgWithMaps) CloneMessageVT() any { +func (m *MsgWithMaps) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/testproto/proto2/scalars.pb.go b/testproto/proto2/scalars.pb.go index def20e15..a80d109b 100644 --- a/testproto/proto2/scalars.pb.go +++ b/testproto/proto2/scalars.pb.go @@ -834,7 +834,7 @@ func (m *DoubleMessage) CloneVT() *DoubleMessage { return r } -func (m *DoubleMessage) CloneMessageVT() any { +func (m *DoubleMessage) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -868,7 +868,7 @@ func (m *FloatMessage) CloneVT() *FloatMessage { return r } -func (m *FloatMessage) CloneMessageVT() any { +func (m *FloatMessage) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -902,7 +902,7 @@ func (m *Int32Message) CloneVT() *Int32Message { return r } -func (m *Int32Message) CloneMessageVT() any { +func (m *Int32Message) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -936,7 +936,7 @@ func (m *Int64Message) CloneVT() *Int64Message { return r } -func (m *Int64Message) CloneMessageVT() any { +func (m *Int64Message) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -970,7 +970,7 @@ func (m *Uint32Message) CloneVT() *Uint32Message { return r } -func (m *Uint32Message) CloneMessageVT() any { +func (m *Uint32Message) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -1004,7 +1004,7 @@ func (m *Uint64Message) CloneVT() *Uint64Message { return r } -func (m *Uint64Message) CloneMessageVT() any { +func (m *Uint64Message) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -1038,7 +1038,7 @@ func (m *Sint32Message) CloneVT() *Sint32Message { return r } -func (m *Sint32Message) CloneMessageVT() any { +func (m *Sint32Message) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -1072,7 +1072,7 @@ func (m *Sint64Message) CloneVT() *Sint64Message { return r } -func (m *Sint64Message) CloneMessageVT() any { +func (m *Sint64Message) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -1106,7 +1106,7 @@ func (m *Fixed32Message) CloneVT() *Fixed32Message { return r } -func (m *Fixed32Message) CloneMessageVT() any { +func (m *Fixed32Message) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -1140,7 +1140,7 @@ func (m *Fixed64Message) CloneVT() *Fixed64Message { return r } -func (m *Fixed64Message) CloneMessageVT() any { +func (m *Fixed64Message) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -1174,7 +1174,7 @@ func (m *Sfixed32Message) CloneVT() *Sfixed32Message { return r } -func (m *Sfixed32Message) CloneMessageVT() any { +func (m *Sfixed32Message) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -1208,7 +1208,7 @@ func (m *Sfixed64Message) CloneVT() *Sfixed64Message { return r } -func (m *Sfixed64Message) CloneMessageVT() any { +func (m *Sfixed64Message) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -1242,7 +1242,7 @@ func (m *BoolMessage) CloneVT() *BoolMessage { return r } -func (m *BoolMessage) CloneMessageVT() any { +func (m *BoolMessage) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -1271,7 +1271,7 @@ func (m *StringMessage) CloneVT() *StringMessage { return r } -func (m *StringMessage) CloneMessageVT() any { +func (m *StringMessage) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -1306,7 +1306,7 @@ func (m *BytesMessage) CloneVT() *BytesMessage { return r } -func (m *BytesMessage) CloneMessageVT() any { +func (m *BytesMessage) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -1340,7 +1340,7 @@ func (m *EnumMessage) CloneVT() *EnumMessage { return r } -func (m *EnumMessage) CloneMessageVT() any { +func (m *EnumMessage) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/testproto/proto3opt/opt.pb.go b/testproto/proto3opt/opt.pb.go index 192ae68a..b0ae27bd 100644 --- a/testproto/proto3opt/opt.pb.go +++ b/testproto/proto3opt/opt.pb.go @@ -267,7 +267,7 @@ func (m *OptionalFieldInProto3) CloneVT() *OptionalFieldInProto3 { return r } -func (m *OptionalFieldInProto3) CloneMessageVT() any { +func (m *OptionalFieldInProto3) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/testproto/unsafe/unsafe.pb.go b/testproto/unsafe/unsafe.pb.go index 96912630..5beab29f 100644 --- a/testproto/unsafe/unsafe.pb.go +++ b/testproto/unsafe/unsafe.pb.go @@ -317,7 +317,7 @@ func (m *UnsafeTest_Sub1) CloneVT() *UnsafeTest_Sub1 { return r } -func (m *UnsafeTest_Sub1) CloneMessageVT() any { +func (m *UnsafeTest_Sub1) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -347,7 +347,7 @@ func (m *UnsafeTest_Sub2) CloneVT() *UnsafeTest_Sub2 { return r } -func (m *UnsafeTest_Sub2) CloneMessageVT() any { +func (m *UnsafeTest_Sub2) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -372,7 +372,7 @@ func (m *UnsafeTest_Sub3) CloneVT() *UnsafeTest_Sub3 { return r } -func (m *UnsafeTest_Sub3) CloneMessageVT() any { +func (m *UnsafeTest_Sub3) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -391,7 +391,7 @@ func (m *UnsafeTest_Sub4) CloneVT() *UnsafeTest_Sub4 { return r } -func (m *UnsafeTest_Sub4) CloneMessageVT() any { +func (m *UnsafeTest_Sub4) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -436,7 +436,7 @@ func (m *UnsafeTest_Sub5) CloneVT() *UnsafeTest_Sub5 { return r } -func (m *UnsafeTest_Sub5) CloneMessageVT() any { +func (m *UnsafeTest_Sub5) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -455,7 +455,7 @@ func (m *UnsafeTest) CloneVT() *UnsafeTest { return r } -func (m *UnsafeTest) CloneMessageVT() any { +func (m *UnsafeTest) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/testproto/wkt/wkt.pb.go b/testproto/wkt/wkt.pb.go index 54d859a0..57133472 100644 --- a/testproto/wkt/wkt.pb.go +++ b/testproto/wkt/wkt.pb.go @@ -225,7 +225,7 @@ func (m *MessageWithWKT) CloneVT() *MessageWithWKT { return r } -func (m *MessageWithWKT) CloneMessageVT() any { +func (m *MessageWithWKT) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/types/descriptorpb/descriptor.pb.go b/types/descriptorpb/descriptor.pb.go index 2f8c9856..5b8ce6d7 100644 --- a/types/descriptorpb/descriptor.pb.go +++ b/types/descriptorpb/descriptor.pb.go @@ -3034,7 +3034,7 @@ func (m *FileDescriptorSet) CloneVT() *FileDescriptorSet { return r } -func (m *FileDescriptorSet) CloneMessageVT() any { +func (m *FileDescriptorSet) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3111,7 +3111,7 @@ func (m *FileDescriptorProto) CloneVT() *FileDescriptorProto { return r } -func (m *FileDescriptorProto) CloneMessageVT() any { +func (m *FileDescriptorProto) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3136,7 +3136,7 @@ func (m *DescriptorProto_ExtensionRange) CloneVT() *DescriptorProto_ExtensionRan return r } -func (m *DescriptorProto_ExtensionRange) CloneMessageVT() any { +func (m *DescriptorProto_ExtensionRange) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3160,7 +3160,7 @@ func (m *DescriptorProto_ReservedRange) CloneVT() *DescriptorProto_ReservedRange return r } -func (m *DescriptorProto_ReservedRange) CloneMessageVT() any { +func (m *DescriptorProto_ReservedRange) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3235,7 +3235,7 @@ func (m *DescriptorProto) CloneVT() *DescriptorProto { return r } -func (m *DescriptorProto) CloneMessageVT() any { +func (m *DescriptorProto) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3271,7 +3271,7 @@ func (m *ExtensionRangeOptions_Declaration) CloneVT() *ExtensionRangeOptions_Dec return r } -func (m *ExtensionRangeOptions_Declaration) CloneMessageVT() any { +func (m *ExtensionRangeOptions_Declaration) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3306,7 +3306,7 @@ func (m *ExtensionRangeOptions) CloneVT() *ExtensionRangeOptions { return r } -func (m *ExtensionRangeOptions) CloneMessageVT() any { +func (m *ExtensionRangeOptions) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3363,7 +3363,7 @@ func (m *FieldDescriptorProto) CloneVT() *FieldDescriptorProto { return r } -func (m *FieldDescriptorProto) CloneMessageVT() any { +func (m *FieldDescriptorProto) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3384,7 +3384,7 @@ func (m *OneofDescriptorProto) CloneVT() *OneofDescriptorProto { return r } -func (m *OneofDescriptorProto) CloneMessageVT() any { +func (m *OneofDescriptorProto) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3408,7 +3408,7 @@ func (m *EnumDescriptorProto_EnumReservedRange) CloneVT() *EnumDescriptorProto_E return r } -func (m *EnumDescriptorProto_EnumReservedRange) CloneMessageVT() any { +func (m *EnumDescriptorProto_EnumReservedRange) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3448,7 +3448,7 @@ func (m *EnumDescriptorProto) CloneVT() *EnumDescriptorProto { return r } -func (m *EnumDescriptorProto) CloneMessageVT() any { +func (m *EnumDescriptorProto) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3473,7 +3473,7 @@ func (m *EnumValueDescriptorProto) CloneVT() *EnumValueDescriptorProto { return r } -func (m *EnumValueDescriptorProto) CloneMessageVT() any { +func (m *EnumValueDescriptorProto) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3501,7 +3501,7 @@ func (m *ServiceDescriptorProto) CloneVT() *ServiceDescriptorProto { return r } -func (m *ServiceDescriptorProto) CloneMessageVT() any { +func (m *ServiceDescriptorProto) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3538,7 +3538,7 @@ func (m *MethodDescriptorProto) CloneVT() *MethodDescriptorProto { return r } -func (m *MethodDescriptorProto) CloneMessageVT() any { +func (m *MethodDescriptorProto) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3638,7 +3638,7 @@ func (m *FileOptions) CloneVT() *FileOptions { return r } -func (m *FileOptions) CloneMessageVT() any { +func (m *FileOptions) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3682,7 +3682,7 @@ func (m *MessageOptions) CloneVT() *MessageOptions { return r } -func (m *MessageOptions) CloneMessageVT() any { +func (m *MessageOptions) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3706,7 +3706,7 @@ func (m *FieldOptions_EditionDefault) CloneVT() *FieldOptions_EditionDefault { return r } -func (m *FieldOptions_EditionDefault) CloneMessageVT() any { +func (m *FieldOptions_EditionDefault) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3778,7 +3778,7 @@ func (m *FieldOptions) CloneVT() *FieldOptions { return r } -func (m *FieldOptions) CloneMessageVT() any { +func (m *FieldOptions) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3802,7 +3802,7 @@ func (m *OneofOptions) CloneVT() *OneofOptions { return r } -func (m *OneofOptions) CloneMessageVT() any { +func (m *OneofOptions) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3838,7 +3838,7 @@ func (m *EnumOptions) CloneVT() *EnumOptions { return r } -func (m *EnumOptions) CloneMessageVT() any { +func (m *EnumOptions) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3870,7 +3870,7 @@ func (m *EnumValueOptions) CloneVT() *EnumValueOptions { return r } -func (m *EnumValueOptions) CloneMessageVT() any { +func (m *EnumValueOptions) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3898,7 +3898,7 @@ func (m *ServiceOptions) CloneVT() *ServiceOptions { return r } -func (m *ServiceOptions) CloneMessageVT() any { +func (m *ServiceOptions) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3930,7 +3930,7 @@ func (m *MethodOptions) CloneVT() *MethodOptions { return r } -func (m *MethodOptions) CloneMessageVT() any { +func (m *MethodOptions) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -3954,7 +3954,7 @@ func (m *UninterpretedOption_NamePart) CloneVT() *UninterpretedOption_NamePart { return r } -func (m *UninterpretedOption_NamePart) CloneMessageVT() any { +func (m *UninterpretedOption_NamePart) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -4002,7 +4002,7 @@ func (m *UninterpretedOption) CloneVT() *UninterpretedOption { return r } -func (m *UninterpretedOption) CloneMessageVT() any { +func (m *UninterpretedOption) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -4042,7 +4042,7 @@ func (m *FeatureSet) CloneVT() *FeatureSet { return r } -func (m *FeatureSet) CloneMessageVT() any { +func (m *FeatureSet) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -4063,7 +4063,7 @@ func (m *FeatureSetDefaults_FeatureSetEditionDefault) CloneVT() *FeatureSetDefau return r } -func (m *FeatureSetDefaults_FeatureSetEditionDefault) CloneMessageVT() any { +func (m *FeatureSetDefaults_FeatureSetEditionDefault) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -4094,7 +4094,7 @@ func (m *FeatureSetDefaults) CloneVT() *FeatureSetDefaults { return r } -func (m *FeatureSetDefaults) CloneMessageVT() any { +func (m *FeatureSetDefaults) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -4133,7 +4133,7 @@ func (m *SourceCodeInfo_Location) CloneVT() *SourceCodeInfo_Location { return r } -func (m *SourceCodeInfo_Location) CloneMessageVT() any { +func (m *SourceCodeInfo_Location) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -4156,7 +4156,7 @@ func (m *SourceCodeInfo) CloneVT() *SourceCodeInfo { return r } -func (m *SourceCodeInfo) CloneMessageVT() any { +func (m *SourceCodeInfo) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -4193,7 +4193,7 @@ func (m *GeneratedCodeInfo_Annotation) CloneVT() *GeneratedCodeInfo_Annotation { return r } -func (m *GeneratedCodeInfo_Annotation) CloneMessageVT() any { +func (m *GeneratedCodeInfo_Annotation) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -4216,7 +4216,7 @@ func (m *GeneratedCodeInfo) CloneVT() *GeneratedCodeInfo { return r } -func (m *GeneratedCodeInfo) CloneMessageVT() any { +func (m *GeneratedCodeInfo) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/types/known/anypb/any.pb.go b/types/known/anypb/any.pb.go index 2f6e12d4..38f33954 100644 --- a/types/known/anypb/any.pb.go +++ b/types/known/anypb/any.pb.go @@ -200,7 +200,7 @@ func (m *Any) CloneVT() *Any { return r } -func (m *Any) CloneMessageVT() any { +func (m *Any) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/types/known/apipb/api.pb.go b/types/known/apipb/api.pb.go index c758b7d5..601ec710 100644 --- a/types/known/apipb/api.pb.go +++ b/types/known/apipb/api.pb.go @@ -364,7 +364,7 @@ func (m *Api) CloneVT() *Api { return r } -func (m *Api) CloneMessageVT() any { +func (m *Api) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -393,7 +393,7 @@ func (m *Method) CloneVT() *Method { return r } -func (m *Method) CloneMessageVT() any { +func (m *Method) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -411,7 +411,7 @@ func (m *Mixin) CloneVT() *Mixin { return r } -func (m *Mixin) CloneMessageVT() any { +func (m *Mixin) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/types/known/durationpb/duration.pb.go b/types/known/durationpb/duration.pb.go index bc6e7d50..f95189dc 100644 --- a/types/known/durationpb/duration.pb.go +++ b/types/known/durationpb/duration.pb.go @@ -235,7 +235,7 @@ func (m *Duration) CloneVT() *Duration { return r } -func (m *Duration) CloneMessageVT() any { +func (m *Duration) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/types/known/emptypb/empty.pb.go b/types/known/emptypb/empty.pb.go index 3c4050b1..f4f5358c 100644 --- a/types/known/emptypb/empty.pb.go +++ b/types/known/emptypb/empty.pb.go @@ -70,7 +70,7 @@ func (m *Empty) CloneVT() *Empty { return r } -func (m *Empty) CloneMessageVT() any { +func (m *Empty) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/types/known/sourcecontextpb/source_context.pb.go b/types/known/sourcecontextpb/source_context.pb.go index 9f6873c9..8cabe78c 100644 --- a/types/known/sourcecontextpb/source_context.pb.go +++ b/types/known/sourcecontextpb/source_context.pb.go @@ -77,7 +77,7 @@ func (m *SourceContext) CloneVT() *SourceContext { return r } -func (m *SourceContext) CloneMessageVT() any { +func (m *SourceContext) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/types/known/structpb/struct.pb.go b/types/known/structpb/struct.pb.go index b794c458..c80b4b80 100644 --- a/types/known/structpb/struct.pb.go +++ b/types/known/structpb/struct.pb.go @@ -489,7 +489,7 @@ func (m *Struct) CloneVT() *Struct { return r } -func (m *Struct) CloneMessageVT() any { +func (m *Struct) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -508,7 +508,7 @@ func (m *Value) CloneVT() *Value { return r } -func (m *Value) CloneMessageVT() any { +func (m *Value) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -585,7 +585,7 @@ func (m *ListValue) CloneVT() *ListValue { return r } -func (m *ListValue) CloneMessageVT() any { +func (m *ListValue) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/types/known/timestamppb/timestamp.pb.go b/types/known/timestamppb/timestamp.pb.go index 2183b737..60cec85e 100644 --- a/types/known/timestamppb/timestamp.pb.go +++ b/types/known/timestamppb/timestamp.pb.go @@ -250,7 +250,7 @@ func (m *Timestamp) CloneVT() *Timestamp { return r } -func (m *Timestamp) CloneMessageVT() any { +func (m *Timestamp) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/types/known/typepb/type.pb.go b/types/known/typepb/type.pb.go index 529f0c96..7c18902b 100644 --- a/types/known/typepb/type.pb.go +++ b/types/known/typepb/type.pb.go @@ -584,7 +584,7 @@ func (m *Type) CloneVT() *Type { return r } -func (m *Type) CloneMessageVT() any { +func (m *Type) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -616,7 +616,7 @@ func (m *Field) CloneVT() *Field { return r } -func (m *Field) CloneMessageVT() any { +func (m *Field) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -650,7 +650,7 @@ func (m *Enum) CloneVT() *Enum { return r } -func (m *Enum) CloneMessageVT() any { +func (m *Enum) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -675,7 +675,7 @@ func (m *EnumValue) CloneVT() *EnumValue { return r } -func (m *EnumValue) CloneMessageVT() any { +func (m *EnumValue) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -693,7 +693,7 @@ func (m *Option) CloneVT() *Option { return r } -func (m *Option) CloneMessageVT() any { +func (m *Option) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } diff --git a/types/known/wrapperspb/wrappers.pb.go b/types/known/wrapperspb/wrappers.pb.go index 4418afc3..aab6d332 100644 --- a/types/known/wrapperspb/wrappers.pb.go +++ b/types/known/wrapperspb/wrappers.pb.go @@ -310,7 +310,7 @@ func (m *DoubleValue) CloneVT() *DoubleValue { return r } -func (m *DoubleValue) CloneMessageVT() any { +func (m *DoubleValue) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -327,7 +327,7 @@ func (m *FloatValue) CloneVT() *FloatValue { return r } -func (m *FloatValue) CloneMessageVT() any { +func (m *FloatValue) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -344,7 +344,7 @@ func (m *Int64Value) CloneVT() *Int64Value { return r } -func (m *Int64Value) CloneMessageVT() any { +func (m *Int64Value) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -361,7 +361,7 @@ func (m *UInt64Value) CloneVT() *UInt64Value { return r } -func (m *UInt64Value) CloneMessageVT() any { +func (m *UInt64Value) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -378,7 +378,7 @@ func (m *Int32Value) CloneVT() *Int32Value { return r } -func (m *Int32Value) CloneMessageVT() any { +func (m *Int32Value) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -395,7 +395,7 @@ func (m *UInt32Value) CloneVT() *UInt32Value { return r } -func (m *UInt32Value) CloneMessageVT() any { +func (m *UInt32Value) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -412,7 +412,7 @@ func (m *BoolValue) CloneVT() *BoolValue { return r } -func (m *BoolValue) CloneMessageVT() any { +func (m *BoolValue) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -429,7 +429,7 @@ func (m *StringValue) CloneVT() *StringValue { return r } -func (m *StringValue) CloneMessageVT() any { +func (m *StringValue) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() } @@ -450,7 +450,7 @@ func (m *BytesValue) CloneVT() *BytesValue { return r } -func (m *BytesValue) CloneMessageVT() any { +func (m *BytesValue) CloneMessageVT() protobuf_go_lite.CloneMessage { return m.CloneVT() }