blob: f25f9718420de6f026a0f7a301065498792a0c01 [file] [log] [blame]
Damien Neil5b6d0472019-06-14 11:54:07 -07001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: irregular/test.proto
3
4package irregular
5
6import (
7 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
Damien Neil5b6d0472019-06-14 11:54:07 -07008 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
Joe Tsaiaf570872019-07-14 23:04:40 -07009 reflect "reflect"
Damien Neil5b6d0472019-06-14 11:54:07 -070010 sync "sync"
11)
12
13const (
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
20type Message struct {
Joe Tsai82760ce2019-06-20 03:09:57 -070021 state protoimpl.MessageState
Damien Neil5b6d0472019-06-14 11:54:07 -070022 OptionalMessage *IrregularMessage `protobuf:"bytes,1,opt,name=optional_message,json=optionalMessage" json:"optional_message,omitempty"`
23 RepeatedMessage []*IrregularMessage `protobuf:"bytes,2,rep,name=repeated_message,json=repeatedMessage" json:"repeated_message,omitempty"`
24 RequiredMessage *IrregularMessage `protobuf:"bytes,3,req,name=required_message,json=requiredMessage" json:"required_message,omitempty"`
25 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"`
26 // Types that are valid to be assigned to Union:
27 // *Message_OneofMessage
Joe Tsaic0e4bb22019-07-06 13:05:11 -070028 Union isMessage_Union `protobuf_oneof:"union"`
29 sizeCache protoimpl.SizeCache
30 unknownFields protoimpl.UnknownFields
Damien Neil5b6d0472019-06-14 11:54:07 -070031}
32
33func (x *Message) Reset() {
34 *x = Message{}
35}
36
37func (x *Message) String() string {
38 return protoimpl.X.MessageStringOf(x)
39}
40
41func (*Message) ProtoMessage() {}
42
43func (x *Message) ProtoReflect() protoreflect.Message {
Joe Tsai82760ce2019-06-20 03:09:57 -070044 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 Neil5b6d0472019-06-14 11:54:07 -070053}
54
Joe Tsai43761bd2019-07-17 18:06:47 -070055// Deprecated: Use Message.ProtoReflect.Descriptor instead.
Damien Neil5b6d0472019-06-14 11:54:07 -070056func (*Message) Descriptor() ([]byte, []int) {
57 return file_irregular_test_proto_rawDescGZIP(), []int{0}
58}
59
60func (x *Message) GetOptionalMessage() *IrregularMessage {
61 if x != nil {
62 return x.OptionalMessage
63 }
64 return nil
65}
66
67func (x *Message) GetRepeatedMessage() []*IrregularMessage {
68 if x != nil {
69 return x.RepeatedMessage
70 }
71 return nil
72}
73
74func (x *Message) GetRequiredMessage() *IrregularMessage {
75 if x != nil {
76 return x.RequiredMessage
77 }
78 return nil
79}
80
81func (x *Message) GetMapMessage() map[string]*IrregularMessage {
82 if x != nil {
83 return x.MapMessage
84 }
85 return nil
86}
87
88func (m *Message) GetUnion() isMessage_Union {
89 if m != nil {
90 return m.Union
91 }
92 return nil
93}
94
95func (x *Message) GetOneofMessage() *IrregularMessage {
96 if x, ok := x.GetUnion().(*Message_OneofMessage); ok {
97 return x.OneofMessage
98 }
99 return nil
100}
101
Damien Neil5b6d0472019-06-14 11:54:07 -0700102type isMessage_Union interface {
103 isMessage_Union()
104}
105
106type Message_OneofMessage struct {
107 OneofMessage *IrregularMessage `protobuf:"bytes,5,opt,name=oneof_message,json=oneofMessage,oneof"`
108}
109
110func (*Message_OneofMessage) isMessage_Union() {}
111
112var File_irregular_test_proto protoreflect.FileDescriptor
113
114var 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
160var (
161 file_irregular_test_proto_rawDescOnce sync.Once
162 file_irregular_test_proto_rawDescData = file_irregular_test_proto_rawDesc
163)
164
165func 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
172var file_irregular_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
173var 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}
178var 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 Tsaid8881392019-06-06 13:01:53 -0700185 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 Neil5b6d0472019-06-14 11:54:07 -0700190}
191
192func init() { file_irregular_test_proto_init() }
193func file_irregular_test_proto_init() {
194 if File_irregular_test_proto != nil {
195 return
196 }
197 file_irregular_irregular_proto_init()
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700198 if !protoimpl.UnsafeEnabled {
199 file_irregular_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
200 switch v := v.(*Message); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700201 case 0:
202 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700203 case 6:
Joe Tsai82760ce2019-06-20 03:09:57 -0700204 return &v.sizeCache
205 case 7:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700206 return &v.unknownFields
207 default:
208 return nil
209 }
210 }
211 }
Joe Tsai09912272019-07-08 10:38:11 -0700212 file_irregular_test_proto_msgTypes[0].OneofWrappers = []interface{}{
213 (*Message_OneofMessage)(nil),
214 }
Joe Tsaiaf570872019-07-14 23:04:40 -0700215 type x struct{}
Joe Tsaid8881392019-06-06 13:01:53 -0700216 out := protoimpl.TypeBuilder{
217 File: protoimpl.DescBuilder{
Joe Tsaiaf570872019-07-14 23:04:40 -0700218 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
Joe Tsaid8881392019-06-06 13:01:53 -0700219 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 Neil5b6d0472019-06-14 11:54:07 -0700230 file_irregular_test_proto_rawDesc = nil
231 file_irregular_test_proto_goTypes = nil
232 file_irregular_test_proto_depIdxs = nil
233}