blob: 6a26b23697045d6af90e6a1cd7ffe1900f026e12 [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 protoiface "google.golang.org/protobuf/runtime/protoiface"
9 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
10 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 Tsai82760ce2019-06-20 03:09:57 -070055func (x *Message) XXX_Methods() *protoiface.Methods {
Damien Neil5b6d0472019-06-14 11:54:07 -070056 return file_irregular_test_proto_msgTypes[0].Methods()
57}
58
59// Deprecated: Use Message.ProtoReflect.Type instead.
60func (*Message) Descriptor() ([]byte, []int) {
61 return file_irregular_test_proto_rawDescGZIP(), []int{0}
62}
63
64func (x *Message) GetOptionalMessage() *IrregularMessage {
65 if x != nil {
66 return x.OptionalMessage
67 }
68 return nil
69}
70
71func (x *Message) GetRepeatedMessage() []*IrregularMessage {
72 if x != nil {
73 return x.RepeatedMessage
74 }
75 return nil
76}
77
78func (x *Message) GetRequiredMessage() *IrregularMessage {
79 if x != nil {
80 return x.RequiredMessage
81 }
82 return nil
83}
84
85func (x *Message) GetMapMessage() map[string]*IrregularMessage {
86 if x != nil {
87 return x.MapMessage
88 }
89 return nil
90}
91
92func (m *Message) GetUnion() isMessage_Union {
93 if m != nil {
94 return m.Union
95 }
96 return nil
97}
98
99func (x *Message) GetOneofMessage() *IrregularMessage {
100 if x, ok := x.GetUnion().(*Message_OneofMessage); ok {
101 return x.OneofMessage
102 }
103 return nil
104}
105
Damien Neil5b6d0472019-06-14 11:54:07 -0700106type isMessage_Union interface {
107 isMessage_Union()
108}
109
110type Message_OneofMessage struct {
111 OneofMessage *IrregularMessage `protobuf:"bytes,5,opt,name=oneof_message,json=oneofMessage,oneof"`
112}
113
114func (*Message_OneofMessage) isMessage_Union() {}
115
116var File_irregular_test_proto protoreflect.FileDescriptor
117
118var file_irregular_test_proto_rawDesc = []byte{
119 0x0a, 0x14, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74,
120 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
121 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x1a,
122 0x19, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67,
123 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x04, 0x0a, 0x07, 0x4d,
124 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
125 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
126 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
127 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67,
128 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x6f, 0x70, 0x74,
129 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10,
130 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
131 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
132 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
133 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
134 0x65, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61,
135 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x6d,
136 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67,
137 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72,
138 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
139 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
140 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x6d, 0x61, 0x70, 0x5f,
141 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e,
142 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72,
143 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
144 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
145 0x0a, 0x6d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x6f,
146 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01,
147 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
148 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72,
149 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52,
150 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x68, 0x0a,
151 0x0f, 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79,
152 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
153 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
154 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
155 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65,
156 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x76, 0x61,
157 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e,
158 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
159 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69,
160 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
161 0x6f, 0x73, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
162}
163
164var (
165 file_irregular_test_proto_rawDescOnce sync.Once
166 file_irregular_test_proto_rawDescData = file_irregular_test_proto_rawDesc
167)
168
169func file_irregular_test_proto_rawDescGZIP() []byte {
170 file_irregular_test_proto_rawDescOnce.Do(func() {
171 file_irregular_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_irregular_test_proto_rawDescData)
172 })
173 return file_irregular_test_proto_rawDescData
174}
175
176var file_irregular_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
177var file_irregular_test_proto_goTypes = []interface{}{
178 (*Message)(nil), // 0: goproto.proto.irregular.Message
179 nil, // 1: goproto.proto.irregular.Message.MapMessageEntry
180 (*IrregularMessage)(nil), // 2: goproto.proto.irregular.IrregularMessage
181}
182var file_irregular_test_proto_depIdxs = []int32{
183 2, // goproto.proto.irregular.Message.optional_message:type_name -> goproto.proto.irregular.IrregularMessage
184 2, // goproto.proto.irregular.Message.repeated_message:type_name -> goproto.proto.irregular.IrregularMessage
185 2, // goproto.proto.irregular.Message.required_message:type_name -> goproto.proto.irregular.IrregularMessage
186 1, // goproto.proto.irregular.Message.map_message:type_name -> goproto.proto.irregular.Message.MapMessageEntry
187 2, // goproto.proto.irregular.Message.oneof_message:type_name -> goproto.proto.irregular.IrregularMessage
188 2, // goproto.proto.irregular.Message.MapMessageEntry.value:type_name -> goproto.proto.irregular.IrregularMessage
Joe Tsaid8881392019-06-06 13:01:53 -0700189 6, // starting offset of method output_type sub-list
190 6, // starting offset of method input_type sub-list
191 6, // starting offset of extension type_name sub-list
192 6, // starting offset of extension extendee sub-list
193 0, // starting offset of field type_name sub-list
Damien Neil5b6d0472019-06-14 11:54:07 -0700194}
195
196func init() { file_irregular_test_proto_init() }
197func file_irregular_test_proto_init() {
198 if File_irregular_test_proto != nil {
199 return
200 }
201 file_irregular_irregular_proto_init()
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700202 if !protoimpl.UnsafeEnabled {
203 file_irregular_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
204 switch v := v.(*Message); i {
Joe Tsai82760ce2019-06-20 03:09:57 -0700205 case 0:
206 return &v.state
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700207 case 6:
Joe Tsai82760ce2019-06-20 03:09:57 -0700208 return &v.sizeCache
209 case 7:
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700210 return &v.unknownFields
211 default:
212 return nil
213 }
214 }
215 }
Joe Tsai09912272019-07-08 10:38:11 -0700216 file_irregular_test_proto_msgTypes[0].OneofWrappers = []interface{}{
217 (*Message_OneofMessage)(nil),
218 }
Joe Tsaid8881392019-06-06 13:01:53 -0700219 out := protoimpl.TypeBuilder{
220 File: protoimpl.DescBuilder{
221 RawDescriptor: file_irregular_test_proto_rawDesc,
222 NumEnums: 0,
223 NumMessages: 2,
224 NumExtensions: 0,
225 NumServices: 0,
226 },
227 GoTypes: file_irregular_test_proto_goTypes,
228 DependencyIndexes: file_irregular_test_proto_depIdxs,
229 MessageInfos: file_irregular_test_proto_msgTypes,
230 }.Build()
231 File_irregular_test_proto = out.File
Damien Neil5b6d0472019-06-14 11:54:07 -0700232 file_irregular_test_proto_rawDesc = nil
233 file_irregular_test_proto_goTypes = nil
234 file_irregular_test_proto_depIdxs = nil
235}