Damien Neil | 5b6d047 | 2019-06-14 11:54:07 -0700 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: irregular/test.proto |
| 3 | |
| 4 | package irregular |
| 5 | |
| 6 | import ( |
| 7 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
Damien Neil | 5b6d047 | 2019-06-14 11:54:07 -0700 | [diff] [blame] | 8 | protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
Joe Tsai | af57087 | 2019-07-14 23:04:40 -0700 | [diff] [blame] | 9 | reflect "reflect" |
Damien Neil | 5b6d047 | 2019-06-14 11:54:07 -0700 | [diff] [blame] | 10 | sync "sync" |
| 11 | ) |
| 12 | |
| 13 | const ( |
| 14 | // Verify that runtime/protoimpl is sufficiently up-to-date. |
| 15 | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 0) |
| 16 | // Verify that this generated code is sufficiently up-to-date. |
| 17 | _ = protoimpl.EnforceVersion(0 - protoimpl.MinVersion) |
| 18 | ) |
| 19 | |
| 20 | type Message struct { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 21 | state protoimpl.MessageState |
Joe Tsai | 38b6196 | 2019-08-05 13:09:30 -0700 | [diff] [blame] | 22 | sizeCache protoimpl.SizeCache |
| 23 | unknownFields protoimpl.UnknownFields |
Damien Neil | 5b6d047 | 2019-06-14 11:54:07 -0700 | [diff] [blame] | 24 | OptionalMessage *IrregularMessage `protobuf:"bytes,1,opt,name=optional_message,json=optionalMessage" json:"optional_message,omitempty"` |
| 25 | RepeatedMessage []*IrregularMessage `protobuf:"bytes,2,rep,name=repeated_message,json=repeatedMessage" json:"repeated_message,omitempty"` |
| 26 | RequiredMessage *IrregularMessage `protobuf:"bytes,3,req,name=required_message,json=requiredMessage" json:"required_message,omitempty"` |
| 27 | MapMessage map[string]*IrregularMessage `protobuf:"bytes,4,rep,name=map_message,json=mapMessage" json:"map_message,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` |
| 28 | // Types that are valid to be assigned to Union: |
| 29 | // *Message_OneofMessage |
Joe Tsai | 38b6196 | 2019-08-05 13:09:30 -0700 | [diff] [blame] | 30 | Union isMessage_Union `protobuf_oneof:"union"` |
Damien Neil | 5b6d047 | 2019-06-14 11:54:07 -0700 | [diff] [blame] | 31 | } |
| 32 | |
| 33 | func (x *Message) Reset() { |
| 34 | *x = Message{} |
| 35 | } |
| 36 | |
| 37 | func (x *Message) String() string { |
| 38 | return protoimpl.X.MessageStringOf(x) |
| 39 | } |
| 40 | |
| 41 | func (*Message) ProtoMessage() {} |
| 42 | |
| 43 | func (x *Message) ProtoReflect() protoreflect.Message { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 44 | mi := &file_irregular_test_proto_msgTypes[0] |
| 45 | if protoimpl.UnsafeEnabled && x != nil { |
| 46 | ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 47 | if ms.LoadMessageInfo() == nil { |
| 48 | ms.StoreMessageInfo(mi) |
| 49 | } |
| 50 | return ms |
| 51 | } |
| 52 | return mi.MessageOf(x) |
Damien Neil | 5b6d047 | 2019-06-14 11:54:07 -0700 | [diff] [blame] | 53 | } |
| 54 | |
Joe Tsai | 43761bd | 2019-07-17 18:06:47 -0700 | [diff] [blame] | 55 | // Deprecated: Use Message.ProtoReflect.Descriptor instead. |
Damien Neil | 5b6d047 | 2019-06-14 11:54:07 -0700 | [diff] [blame] | 56 | func (*Message) Descriptor() ([]byte, []int) { |
| 57 | return file_irregular_test_proto_rawDescGZIP(), []int{0} |
| 58 | } |
| 59 | |
| 60 | func (x *Message) GetOptionalMessage() *IrregularMessage { |
| 61 | if x != nil { |
| 62 | return x.OptionalMessage |
| 63 | } |
| 64 | return nil |
| 65 | } |
| 66 | |
| 67 | func (x *Message) GetRepeatedMessage() []*IrregularMessage { |
| 68 | if x != nil { |
| 69 | return x.RepeatedMessage |
| 70 | } |
| 71 | return nil |
| 72 | } |
| 73 | |
| 74 | func (x *Message) GetRequiredMessage() *IrregularMessage { |
| 75 | if x != nil { |
| 76 | return x.RequiredMessage |
| 77 | } |
| 78 | return nil |
| 79 | } |
| 80 | |
| 81 | func (x *Message) GetMapMessage() map[string]*IrregularMessage { |
| 82 | if x != nil { |
| 83 | return x.MapMessage |
| 84 | } |
| 85 | return nil |
| 86 | } |
| 87 | |
| 88 | func (m *Message) GetUnion() isMessage_Union { |
| 89 | if m != nil { |
| 90 | return m.Union |
| 91 | } |
| 92 | return nil |
| 93 | } |
| 94 | |
| 95 | func (x *Message) GetOneofMessage() *IrregularMessage { |
| 96 | if x, ok := x.GetUnion().(*Message_OneofMessage); ok { |
| 97 | return x.OneofMessage |
| 98 | } |
| 99 | return nil |
| 100 | } |
| 101 | |
Damien Neil | 5b6d047 | 2019-06-14 11:54:07 -0700 | [diff] [blame] | 102 | type isMessage_Union interface { |
| 103 | isMessage_Union() |
| 104 | } |
| 105 | |
| 106 | type Message_OneofMessage struct { |
| 107 | OneofMessage *IrregularMessage `protobuf:"bytes,5,opt,name=oneof_message,json=oneofMessage,oneof"` |
| 108 | } |
| 109 | |
| 110 | func (*Message_OneofMessage) isMessage_Union() {} |
| 111 | |
| 112 | var File_irregular_test_proto protoreflect.FileDescriptor |
| 113 | |
| 114 | var file_irregular_test_proto_rawDesc = []byte{ |
| 115 | 0x0a, 0x14, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74, |
| 116 | 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, |
| 117 | 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x1a, |
| 118 | 0x19, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67, |
| 119 | 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x04, 0x0a, 0x07, 0x4d, |
| 120 | 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, |
| 121 | 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, |
| 122 | 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 123 | 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, |
| 124 | 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x6f, 0x70, 0x74, |
| 125 | 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, |
| 126 | 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, |
| 127 | 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, |
| 128 | 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, |
| 129 | 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, |
| 130 | 0x65, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, |
| 131 | 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x6d, |
| 132 | 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, |
| 133 | 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, |
| 134 | 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, |
| 135 | 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, |
| 136 | 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x6d, 0x61, 0x70, 0x5f, |
| 137 | 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, |
| 138 | 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, |
| 139 | 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e, |
| 140 | 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, |
| 141 | 0x0a, 0x6d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x6f, |
| 142 | 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, |
| 143 | 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, |
| 144 | 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, |
| 145 | 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52, |
| 146 | 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x68, 0x0a, |
| 147 | 0x0f, 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, |
| 148 | 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, |
| 149 | 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 150 | 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 151 | 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, |
| 152 | 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x76, 0x61, |
| 153 | 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e, |
| 154 | 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, |
| 155 | 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69, |
| 156 | 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74, |
| 157 | 0x6f, 0x73, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, |
| 158 | } |
| 159 | |
| 160 | var ( |
| 161 | file_irregular_test_proto_rawDescOnce sync.Once |
| 162 | file_irregular_test_proto_rawDescData = file_irregular_test_proto_rawDesc |
| 163 | ) |
| 164 | |
| 165 | func file_irregular_test_proto_rawDescGZIP() []byte { |
| 166 | file_irregular_test_proto_rawDescOnce.Do(func() { |
| 167 | file_irregular_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_irregular_test_proto_rawDescData) |
| 168 | }) |
| 169 | return file_irregular_test_proto_rawDescData |
| 170 | } |
| 171 | |
| 172 | var file_irregular_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| 173 | var file_irregular_test_proto_goTypes = []interface{}{ |
| 174 | (*Message)(nil), // 0: goproto.proto.irregular.Message |
| 175 | nil, // 1: goproto.proto.irregular.Message.MapMessageEntry |
| 176 | (*IrregularMessage)(nil), // 2: goproto.proto.irregular.IrregularMessage |
| 177 | } |
| 178 | var file_irregular_test_proto_depIdxs = []int32{ |
| 179 | 2, // goproto.proto.irregular.Message.optional_message:type_name -> goproto.proto.irregular.IrregularMessage |
| 180 | 2, // goproto.proto.irregular.Message.repeated_message:type_name -> goproto.proto.irregular.IrregularMessage |
| 181 | 2, // goproto.proto.irregular.Message.required_message:type_name -> goproto.proto.irregular.IrregularMessage |
| 182 | 1, // goproto.proto.irregular.Message.map_message:type_name -> goproto.proto.irregular.Message.MapMessageEntry |
| 183 | 2, // goproto.proto.irregular.Message.oneof_message:type_name -> goproto.proto.irregular.IrregularMessage |
| 184 | 2, // goproto.proto.irregular.Message.MapMessageEntry.value:type_name -> goproto.proto.irregular.IrregularMessage |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 185 | 6, // starting offset of method output_type sub-list |
| 186 | 6, // starting offset of method input_type sub-list |
| 187 | 6, // starting offset of extension type_name sub-list |
| 188 | 6, // starting offset of extension extendee sub-list |
| 189 | 0, // starting offset of field type_name sub-list |
Damien Neil | 5b6d047 | 2019-06-14 11:54:07 -0700 | [diff] [blame] | 190 | } |
| 191 | |
| 192 | func init() { file_irregular_test_proto_init() } |
| 193 | func file_irregular_test_proto_init() { |
| 194 | if File_irregular_test_proto != nil { |
| 195 | return |
| 196 | } |
| 197 | file_irregular_irregular_proto_init() |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 198 | if !protoimpl.UnsafeEnabled { |
| 199 | file_irregular_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 200 | switch v := v.(*Message); i { |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 201 | case 0: |
| 202 | return &v.state |
Joe Tsai | 38b6196 | 2019-08-05 13:09:30 -0700 | [diff] [blame] | 203 | case 1: |
Joe Tsai | 82760ce | 2019-06-20 03:09:57 -0700 | [diff] [blame] | 204 | return &v.sizeCache |
Joe Tsai | 38b6196 | 2019-08-05 13:09:30 -0700 | [diff] [blame] | 205 | case 2: |
Joe Tsai | c0e4bb2 | 2019-07-06 13:05:11 -0700 | [diff] [blame] | 206 | return &v.unknownFields |
| 207 | default: |
| 208 | return nil |
| 209 | } |
| 210 | } |
| 211 | } |
Joe Tsai | 0991227 | 2019-07-08 10:38:11 -0700 | [diff] [blame] | 212 | file_irregular_test_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| 213 | (*Message_OneofMessage)(nil), |
| 214 | } |
Joe Tsai | af57087 | 2019-07-14 23:04:40 -0700 | [diff] [blame] | 215 | type x struct{} |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 216 | out := protoimpl.TypeBuilder{ |
| 217 | File: protoimpl.DescBuilder{ |
Joe Tsai | af57087 | 2019-07-14 23:04:40 -0700 | [diff] [blame] | 218 | GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
Joe Tsai | d888139 | 2019-06-06 13:01:53 -0700 | [diff] [blame] | 219 | RawDescriptor: file_irregular_test_proto_rawDesc, |
| 220 | NumEnums: 0, |
| 221 | NumMessages: 2, |
| 222 | NumExtensions: 0, |
| 223 | NumServices: 0, |
| 224 | }, |
| 225 | GoTypes: file_irregular_test_proto_goTypes, |
| 226 | DependencyIndexes: file_irregular_test_proto_depIdxs, |
| 227 | MessageInfos: file_irregular_test_proto_msgTypes, |
| 228 | }.Build() |
| 229 | File_irregular_test_proto = out.File |
Damien Neil | 5b6d047 | 2019-06-14 11:54:07 -0700 | [diff] [blame] | 230 | file_irregular_test_proto_rawDesc = nil |
| 231 | file_irregular_test_proto_goTypes = nil |
| 232 | file_irregular_test_proto_depIdxs = nil |
| 233 | } |