diff --git a/cybozu/validate/options.pb.go b/cybozu/validate/options.pb.go index bec38cc..7552d0c 100644 --- a/cybozu/validate/options.pb.go +++ b/cybozu/validate/options.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: cybozu/validate/options.proto @@ -1606,7 +1606,7 @@ func file_cybozu_validate_options_proto_rawDescGZIP() []byte { var file_cybozu_validate_options_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_cybozu_validate_options_proto_msgTypes = make([]protoimpl.MessageInfo, 13) -var file_cybozu_validate_options_proto_goTypes = []interface{}{ +var file_cybozu_validate_options_proto_goTypes = []any{ (StringRules_UnicodeNormalizationForm)(0), // 0: cybozu.validate.StringRules.UnicodeNormalizationForm (*FieldRules)(nil), // 1: cybozu.validate.FieldRules (*ItemsRules)(nil), // 2: cybozu.validate.ItemsRules @@ -1663,7 +1663,7 @@ func file_cybozu_validate_options_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_cybozu_validate_options_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*FieldRules); i { case 0: return &v.state @@ -1675,7 +1675,7 @@ func file_cybozu_validate_options_proto_init() { return nil } } - file_cybozu_validate_options_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*ItemsRules); i { case 0: return &v.state @@ -1687,7 +1687,7 @@ func file_cybozu_validate_options_proto_init() { return nil } } - file_cybozu_validate_options_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*FloatRules); i { case 0: return &v.state @@ -1699,7 +1699,7 @@ func file_cybozu_validate_options_proto_init() { return nil } } - file_cybozu_validate_options_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*DoubleRules); i { case 0: return &v.state @@ -1711,7 +1711,7 @@ func file_cybozu_validate_options_proto_init() { return nil } } - file_cybozu_validate_options_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*Int32Rules); i { case 0: return &v.state @@ -1723,7 +1723,7 @@ func file_cybozu_validate_options_proto_init() { return nil } } - file_cybozu_validate_options_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*Int64Rules); i { case 0: return &v.state @@ -1735,7 +1735,7 @@ func file_cybozu_validate_options_proto_init() { return nil } } - file_cybozu_validate_options_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*Uint32Rules); i { case 0: return &v.state @@ -1747,7 +1747,7 @@ func file_cybozu_validate_options_proto_init() { return nil } } - file_cybozu_validate_options_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*Uint64Rules); i { case 0: return &v.state @@ -1759,7 +1759,7 @@ func file_cybozu_validate_options_proto_init() { return nil } } - file_cybozu_validate_options_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*BoolRules); i { case 0: return &v.state @@ -1771,7 +1771,7 @@ func file_cybozu_validate_options_proto_init() { return nil } } - file_cybozu_validate_options_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*StringRules); i { case 0: return &v.state @@ -1783,7 +1783,7 @@ func file_cybozu_validate_options_proto_init() { return nil } } - file_cybozu_validate_options_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[10].Exporter = func(v any, i int) any { switch v := v.(*BytesRules); i { case 0: return &v.state @@ -1795,7 +1795,7 @@ func file_cybozu_validate_options_proto_init() { return nil } } - file_cybozu_validate_options_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[11].Exporter = func(v any, i int) any { switch v := v.(*EnumRules); i { case 0: return &v.state @@ -1807,7 +1807,7 @@ func file_cybozu_validate_options_proto_init() { return nil } } - file_cybozu_validate_options_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_cybozu_validate_options_proto_msgTypes[12].Exporter = func(v any, i int) any { switch v := v.(*MessageRules); i { case 0: return &v.state @@ -1820,7 +1820,7 @@ func file_cybozu_validate_options_proto_init() { } } } - file_cybozu_validate_options_proto_msgTypes[0].OneofWrappers = []interface{}{ + file_cybozu_validate_options_proto_msgTypes[0].OneofWrappers = []any{ (*FieldRules_Float)(nil), (*FieldRules_Double)(nil), (*FieldRules_Int32)(nil), @@ -1841,19 +1841,19 @@ func file_cybozu_validate_options_proto_init() { (*FieldRules_Repeated)(nil), (*FieldRules_Map)(nil), } - file_cybozu_validate_options_proto_msgTypes[1].OneofWrappers = []interface{}{} - file_cybozu_validate_options_proto_msgTypes[2].OneofWrappers = []interface{}{} - file_cybozu_validate_options_proto_msgTypes[3].OneofWrappers = []interface{}{} - file_cybozu_validate_options_proto_msgTypes[4].OneofWrappers = []interface{}{} - file_cybozu_validate_options_proto_msgTypes[5].OneofWrappers = []interface{}{} - file_cybozu_validate_options_proto_msgTypes[6].OneofWrappers = []interface{}{} - file_cybozu_validate_options_proto_msgTypes[7].OneofWrappers = []interface{}{} - file_cybozu_validate_options_proto_msgTypes[9].OneofWrappers = []interface{}{ + file_cybozu_validate_options_proto_msgTypes[1].OneofWrappers = []any{} + file_cybozu_validate_options_proto_msgTypes[2].OneofWrappers = []any{} + file_cybozu_validate_options_proto_msgTypes[3].OneofWrappers = []any{} + file_cybozu_validate_options_proto_msgTypes[4].OneofWrappers = []any{} + file_cybozu_validate_options_proto_msgTypes[5].OneofWrappers = []any{} + file_cybozu_validate_options_proto_msgTypes[6].OneofWrappers = []any{} + file_cybozu_validate_options_proto_msgTypes[7].OneofWrappers = []any{} + file_cybozu_validate_options_proto_msgTypes[9].OneofWrappers = []any{ (*StringRules_Email)(nil), (*StringRules_Uri)(nil), (*StringRules_E164)(nil), } - file_cybozu_validate_options_proto_msgTypes[10].OneofWrappers = []interface{}{} + file_cybozu_validate_options_proto_msgTypes[10].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/examples/validation.pb.go b/examples/validation.pb.go index a185083..018f903 100644 --- a/examples/validation.pb.go +++ b/examples/validation.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.34.1 +// protoc-gen-go v1.34.2 // protoc (unknown) // source: examples/validation.proto @@ -1310,7 +1310,7 @@ func file_examples_validation_proto_rawDescGZIP() []byte { var file_examples_validation_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_examples_validation_proto_msgTypes = make([]protoimpl.MessageInfo, 15) -var file_examples_validation_proto_goTypes = []interface{}{ +var file_examples_validation_proto_goTypes = []any{ (Enums_Enum)(0), // 0: examples.Enums.Enum (*Ignored)(nil), // 1: examples.Ignored (*Scalars)(nil), // 2: examples.Scalars @@ -1359,7 +1359,7 @@ func file_examples_validation_proto_init() { return } if !protoimpl.UnsafeEnabled { - file_examples_validation_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_examples_validation_proto_msgTypes[0].Exporter = func(v any, i int) any { switch v := v.(*Ignored); i { case 0: return &v.state @@ -1371,7 +1371,7 @@ func file_examples_validation_proto_init() { return nil } } - file_examples_validation_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_examples_validation_proto_msgTypes[1].Exporter = func(v any, i int) any { switch v := v.(*Scalars); i { case 0: return &v.state @@ -1383,7 +1383,7 @@ func file_examples_validation_proto_init() { return nil } } - file_examples_validation_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_examples_validation_proto_msgTypes[2].Exporter = func(v any, i int) any { switch v := v.(*OptionalScalars); i { case 0: return &v.state @@ -1395,7 +1395,7 @@ func file_examples_validation_proto_init() { return nil } } - file_examples_validation_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_examples_validation_proto_msgTypes[3].Exporter = func(v any, i int) any { switch v := v.(*RepeatedScalars); i { case 0: return &v.state @@ -1407,7 +1407,7 @@ func file_examples_validation_proto_init() { return nil } } - file_examples_validation_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_examples_validation_proto_msgTypes[4].Exporter = func(v any, i int) any { switch v := v.(*Strings); i { case 0: return &v.state @@ -1419,7 +1419,7 @@ func file_examples_validation_proto_init() { return nil } } - file_examples_validation_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_examples_validation_proto_msgTypes[5].Exporter = func(v any, i int) any { switch v := v.(*Maps); i { case 0: return &v.state @@ -1431,7 +1431,7 @@ func file_examples_validation_proto_init() { return nil } } - file_examples_validation_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_examples_validation_proto_msgTypes[6].Exporter = func(v any, i int) any { switch v := v.(*Enums); i { case 0: return &v.state @@ -1443,7 +1443,7 @@ func file_examples_validation_proto_init() { return nil } } - file_examples_validation_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_examples_validation_proto_msgTypes[7].Exporter = func(v any, i int) any { switch v := v.(*Oneofs); i { case 0: return &v.state @@ -1455,7 +1455,7 @@ func file_examples_validation_proto_init() { return nil } } - file_examples_validation_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_examples_validation_proto_msgTypes[8].Exporter = func(v any, i int) any { switch v := v.(*Composed); i { case 0: return &v.state @@ -1467,7 +1467,7 @@ func file_examples_validation_proto_init() { return nil } } - file_examples_validation_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_examples_validation_proto_msgTypes[9].Exporter = func(v any, i int) any { switch v := v.(*Nested); i { case 0: return &v.state @@ -1479,7 +1479,7 @@ func file_examples_validation_proto_init() { return nil } } - file_examples_validation_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_examples_validation_proto_msgTypes[14].Exporter = func(v any, i int) any { switch v := v.(*Nested_Inner); i { case 0: return &v.state @@ -1492,9 +1492,9 @@ func file_examples_validation_proto_init() { } } } - file_examples_validation_proto_msgTypes[2].OneofWrappers = []interface{}{} - file_examples_validation_proto_msgTypes[6].OneofWrappers = []interface{}{} - file_examples_validation_proto_msgTypes[7].OneofWrappers = []interface{}{ + file_examples_validation_proto_msgTypes[2].OneofWrappers = []any{} + file_examples_validation_proto_msgTypes[6].OneofWrappers = []any{} + file_examples_validation_proto_msgTypes[7].OneofWrappers = []any{ (*Oneofs_Int32)(nil), (*Oneofs_String_)(nil), (*Oneofs_Ts)(nil),