From 97927b145f29a4fb53e6c1a8d3a19a44435d17dc Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Mon, 26 Aug 2024 08:38:20 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20update=20proto=20examples=20(#91?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/oneof/oneof.pb.go | 17 ++++++++------- examples/pingpong/pingpong.pb.go | 15 +++++++------ examples/rangerguard/hello.pb.go | 17 ++++++++------- examples/swagger/swagger-example.pb.go | 29 ++++++++++++++------------ 4 files changed, 45 insertions(+), 33 deletions(-) diff --git a/examples/oneof/oneof.pb.go b/examples/oneof/oneof.pb.go index 79449cf..4eb6260 100644 --- a/examples/oneof/oneof.pb.go +++ b/examples/oneof/oneof.pb.go @@ -1,7 +1,10 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.5 +// protoc-gen-go v1.34.2 +// protoc v5.27.3 // source: oneof.proto package oneof @@ -218,7 +221,7 @@ func file_oneof_proto_rawDescGZIP() []byte { } var file_oneof_proto_msgTypes = make([]protoimpl.MessageInfo, 2) -var file_oneof_proto_goTypes = []interface{}{ +var file_oneof_proto_goTypes = []any{ (*OneOfRequest)(nil), // 0: oneof.OneOfRequest (*OneOfReply)(nil), // 1: oneof.OneOfReply } @@ -238,7 +241,7 @@ func file_oneof_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_oneof_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_oneof_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*OneOfRequest); i { case 0: return &v.state @@ -250,7 +253,7 @@ func file_oneof_proto_init() { return nil } } - file_oneof_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_oneof_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*OneOfReply); i { case 0: return &v.state @@ -263,11 +266,11 @@ func file_oneof_proto_init() { } } } - file_oneof_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_oneof_proto_msgTypes[0].OneofWrappers = []any{ (*OneOfRequest_Text)(nil), (*OneOfRequest_Number)(nil), } - file_oneof_proto_msgTypes[1].OneofWrappers = []interface{}{ + file_oneof_proto_msgTypes[1].OneofWrappers = []any{ (*OneOfReply_Text)(nil), (*OneOfReply_Number)(nil), } diff --git a/examples/pingpong/pingpong.pb.go b/examples/pingpong/pingpong.pb.go index 586f9d5..e60d447 100644 --- a/examples/pingpong/pingpong.pb.go +++ b/examples/pingpong/pingpong.pb.go @@ -1,7 +1,10 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.5 +// protoc-gen-go v1.34.2 +// protoc v5.27.3 // source: pingpong.proto package pingpong @@ -188,7 +191,7 @@ func file_pingpong_proto_rawDescGZIP() []byte { } var file_pingpong_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_pingpong_proto_goTypes = []interface{}{ +var file_pingpong_proto_goTypes = []any{ (*Empty)(nil), // 0: pingpong.Empty (*PingRequest)(nil), // 1: pingpong.PingRequest (*PongReply)(nil), // 2: pingpong.PongReply @@ -211,7 +214,7 @@ func file_pingpong_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_pingpong_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_pingpong_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Empty); i { case 0: return &v.state @@ -223,7 +226,7 @@ func file_pingpong_proto_init() { return nil } } - file_pingpong_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_pingpong_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*PingRequest); i { case 0: return &v.state @@ -235,7 +238,7 @@ func file_pingpong_proto_init() { return nil } } - file_pingpong_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_pingpong_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*PongReply); i { case 0: return &v.state diff --git a/examples/rangerguard/hello.pb.go b/examples/rangerguard/hello.pb.go index 3fd626c..a13665e 100644 --- a/examples/rangerguard/hello.pb.go +++ b/examples/rangerguard/hello.pb.go @@ -1,7 +1,10 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.5 +// protoc-gen-go v1.34.2 +// protoc v5.27.3 // source: hello.proto package rangerguard @@ -251,7 +254,7 @@ func file_hello_proto_rawDescGZIP() []byte { } var file_hello_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_hello_proto_goTypes = []interface{}{ +var file_hello_proto_goTypes = []any{ (*HelloReq)(nil), // 0: io.mondoo.falcon.example.helloworld.HelloReq (*HelloResp)(nil), // 1: io.mondoo.falcon.example.helloworld.HelloResp (*Empty)(nil), // 2: io.mondoo.falcon.example.helloworld.Empty @@ -277,7 +280,7 @@ func file_hello_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_hello_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_hello_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*HelloReq); i { case 0: return &v.state @@ -289,7 +292,7 @@ func file_hello_proto_init() { return nil } } - file_hello_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_hello_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*HelloResp); i { case 0: return &v.state @@ -301,7 +304,7 @@ func file_hello_proto_init() { return nil } } - file_hello_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_hello_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*Empty); i { case 0: return &v.state @@ -313,7 +316,7 @@ func file_hello_proto_init() { return nil } } - file_hello_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_hello_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*Tags); i { case 0: return &v.state diff --git a/examples/swagger/swagger-example.pb.go b/examples/swagger/swagger-example.pb.go index 18bc6a6..17b1a9e 100644 --- a/examples/swagger/swagger-example.pb.go +++ b/examples/swagger/swagger-example.pb.go @@ -1,7 +1,10 @@ +// Copyright (c) Mondoo, Inc. +// SPDX-License-Identifier: MPL-2.0 + // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.5 +// protoc-gen-go v1.34.2 +// protoc v5.27.3 // source: swagger-example.proto package swagger @@ -733,7 +736,7 @@ func file_swagger_example_proto_rawDescGZIP() []byte { var file_swagger_example_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_swagger_example_proto_msgTypes = make([]protoimpl.MessageInfo, 11) -var file_swagger_example_proto_goTypes = []interface{}{ +var file_swagger_example_proto_goTypes = []any{ (ListRequest_Corpus)(0), // 0: swagger.ListRequest.Corpus (*StatsRequest)(nil), // 1: swagger.StatsRequest (*StatsResponse)(nil), // 2: swagger.StatsResponse @@ -773,7 +776,7 @@ func file_swagger_example_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_swagger_example_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_swagger_example_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*StatsRequest); i { case 0: return &v.state @@ -785,7 +788,7 @@ func file_swagger_example_proto_init() { return nil } } - file_swagger_example_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_swagger_example_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*StatsResponse); i { case 0: return &v.state @@ -797,7 +800,7 @@ func file_swagger_example_proto_init() { return nil } } - file_swagger_example_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_swagger_example_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*AddRequest); i { case 0: return &v.state @@ -809,7 +812,7 @@ func file_swagger_example_proto_init() { return nil } } - file_swagger_example_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_swagger_example_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*AddResponse); i { case 0: return &v.state @@ -821,7 +824,7 @@ func file_swagger_example_proto_init() { return nil } } - file_swagger_example_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_swagger_example_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*DeleteRequest); i { case 0: return &v.state @@ -833,7 +836,7 @@ func file_swagger_example_proto_init() { return nil } } - file_swagger_example_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_swagger_example_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*DeleteResponse); i { case 0: return &v.state @@ -845,7 +848,7 @@ func file_swagger_example_proto_init() { return nil } } - file_swagger_example_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_swagger_example_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*ListRequest); i { case 0: return &v.state @@ -857,7 +860,7 @@ func file_swagger_example_proto_init() { return nil } } - file_swagger_example_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_swagger_example_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*ListResponse); i { case 0: return &v.state @@ -869,7 +872,7 @@ func file_swagger_example_proto_init() { return nil } } - file_swagger_example_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_swagger_example_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*Result); i { case 0: return &v.state @@ -881,7 +884,7 @@ func file_swagger_example_proto_init() { return nil } } - file_swagger_example_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_swagger_example_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*User); i { case 0: return &v.state