From dcf2fdf3b1660f2e8196df94b7a7cfd42c9c87ab Mon Sep 17 00:00:00 2001 From: melpon Date: Fri, 4 Mar 2022 04:48:57 +0900 Subject: [PATCH] =?UTF-8?q?GitHub=20Actions=20=E4=B8=8A=E3=81=A7=E3=81=AE?= =?UTF-8?q?=E7=94=9F=E6=88=90=E3=81=92=E9=9D=A2=E5=80=92=E3=81=AA=E3=81=AE?= =?UTF-8?q?=E3=81=A7=E8=87=AA=E5=8B=95=E7=94=9F=E6=88=90=E3=81=97=E3=81=9F?= =?UTF-8?q?=E3=83=95=E3=82=A1=E3=82=A4=E3=83=AB=E3=82=82=E8=BF=BD=E5=8A=A0?= =?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=8A=E3=81=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- cmd/generated/extensions.pb.go | 150 +++++++++++++++++++++++++++++++++ 2 files changed, 151 insertions(+), 2 deletions(-) create mode 100644 cmd/generated/extensions.pb.go diff --git a/.gitignore b/.gitignore index c38cdbb..081c51f 100644 --- a/.gitignore +++ b/.gitignore @@ -15,5 +15,4 @@ # vendor/ /_build -/_install -/cmd/generated \ No newline at end of file +/_install \ No newline at end of file diff --git a/cmd/generated/extensions.pb.go b/cmd/generated/extensions.pb.go new file mode 100644 index 0000000..d5aa397 --- /dev/null +++ b/cmd/generated/extensions.pb.go @@ -0,0 +1,150 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.27.1 +// protoc v3.17.3 +// source: extensions.proto + +package generated + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + reflect "reflect" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +var file_extensions_proto_extTypes = []protoimpl.ExtensionInfo{ + { + ExtendedType: (*descriptorpb.MessageOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 5012, + Name: "json_message_optimistic", + Tag: "varint,5012,opt,name=json_message_optimistic", + Filename: "extensions.proto", + }, + { + ExtendedType: (*descriptorpb.MessageOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 5013, + Name: "json_message_discard_if_default", + Tag: "varint,5013,opt,name=json_message_discard_if_default", + Filename: "extensions.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 5012, + Name: "json_optimistic", + Tag: "varint,5012,opt,name=json_optimistic", + Filename: "extensions.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*bool)(nil), + Field: 5013, + Name: "json_discard_if_default", + Tag: "varint,5013,opt,name=json_discard_if_default", + Filename: "extensions.proto", + }, +} + +// Extension fields to descriptorpb.MessageOptions. +var ( + // JSON から読み込む際に、存在しないフィールドがあってもエラーにしない(各型のデフォルト値になる) + // + // optional bool json_message_optimistic = 5012; + E_JsonMessageOptimistic = &file_extensions_proto_extTypes[0] + // JSON に変換する際に、デフォルト値のままだったらフィールドを出力しない + // + // optional bool json_message_discard_if_default = 5013; + E_JsonMessageDiscardIfDefault = &file_extensions_proto_extTypes[1] +) + +// Extension fields to descriptorpb.FieldOptions. +var ( + // optional bool json_optimistic = 5012; + E_JsonOptimistic = &file_extensions_proto_extTypes[2] + // optional bool json_discard_if_default = 5013; + E_JsonDiscardIfDefault = &file_extensions_proto_extTypes[3] +) + +var File_extensions_proto protoreflect.FileDescriptor + +var file_extensions_proto_rawDesc = []byte{ + 0x0a, 0x10, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x6f, 0x72, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x3a, 0x5b, 0x0a, 0x17, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x73, 0x74, 0x69, 0x63, 0x12, + 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x94, 0x27, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x6a, 0x73, 0x6f, 0x6e, 0x4d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x73, 0x74, 0x69, 0x63, 0x88, 0x01, + 0x01, 0x3a, 0x69, 0x0a, 0x1f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, + 0x65, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x66, 0x5f, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x12, 0x1f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x95, 0x27, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1b, 0x6a, 0x73, + 0x6f, 0x6e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x44, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, + 0x49, 0x66, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x88, 0x01, 0x01, 0x3a, 0x4a, 0x0a, 0x0f, + 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x73, 0x74, 0x69, 0x63, 0x12, + 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x94, + 0x27, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6a, 0x73, 0x6f, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6d, + 0x69, 0x73, 0x74, 0x69, 0x63, 0x88, 0x01, 0x01, 0x3a, 0x58, 0x0a, 0x17, 0x6a, 0x73, 0x6f, 0x6e, + 0x5f, 0x64, 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x5f, 0x69, 0x66, 0x5f, 0x64, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x12, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x95, 0x27, 0x20, 0x01, 0x28, 0x08, 0x52, 0x14, 0x6a, 0x73, 0x6f, 0x6e, 0x44, + 0x69, 0x73, 0x63, 0x61, 0x72, 0x64, 0x49, 0x66, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x88, + 0x01, 0x01, 0x42, 0x0f, 0x5a, 0x0d, 0x63, 0x6d, 0x64, 0x2f, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, + 0x74, 0x65, 0x64, 0x58, 0x00, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var file_extensions_proto_goTypes = []interface{}{ + (*descriptorpb.MessageOptions)(nil), // 0: google.protobuf.MessageOptions + (*descriptorpb.FieldOptions)(nil), // 1: google.protobuf.FieldOptions +} +var file_extensions_proto_depIdxs = []int32{ + 0, // 0: json_message_optimistic:extendee -> google.protobuf.MessageOptions + 0, // 1: json_message_discard_if_default:extendee -> google.protobuf.MessageOptions + 1, // 2: json_optimistic:extendee -> google.protobuf.FieldOptions + 1, // 3: json_discard_if_default:extendee -> google.protobuf.FieldOptions + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 0, // [0:4] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_extensions_proto_init() } +func file_extensions_proto_init() { + if File_extensions_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_extensions_proto_rawDesc, + NumEnums: 0, + NumMessages: 0, + NumExtensions: 4, + NumServices: 0, + }, + GoTypes: file_extensions_proto_goTypes, + DependencyIndexes: file_extensions_proto_depIdxs, + ExtensionInfos: file_extensions_proto_extTypes, + }.Build() + File_extensions_proto = out.File + file_extensions_proto_rawDesc = nil + file_extensions_proto_goTypes = nil + file_extensions_proto_depIdxs = nil +}