blob: 5ea3cb0eb92473475d080de4150cf8f4fc002c68 [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 {
21 OptionalMessage *IrregularMessage `protobuf:"bytes,1,opt,name=optional_message,json=optionalMessage" json:"optional_message,omitempty"`
22 RepeatedMessage []*IrregularMessage `protobuf:"bytes,2,rep,name=repeated_message,json=repeatedMessage" json:"repeated_message,omitempty"`
23 RequiredMessage *IrregularMessage `protobuf:"bytes,3,req,name=required_message,json=requiredMessage" json:"required_message,omitempty"`
24 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"`
25 // Types that are valid to be assigned to Union:
26 // *Message_OneofMessage
Joe Tsaic0e4bb22019-07-06 13:05:11 -070027 Union isMessage_Union `protobuf_oneof:"union"`
28 sizeCache protoimpl.SizeCache
29 unknownFields protoimpl.UnknownFields
Damien Neil5b6d0472019-06-14 11:54:07 -070030}
31
32func (x *Message) Reset() {
33 *x = Message{}
34}
35
36func (x *Message) String() string {
37 return protoimpl.X.MessageStringOf(x)
38}
39
40func (*Message) ProtoMessage() {}
41
42func (x *Message) ProtoReflect() protoreflect.Message {
43 return file_irregular_test_proto_msgTypes[0].MessageOf(x)
44}
45
46func (m *Message) XXX_Methods() *protoiface.Methods {
47 return file_irregular_test_proto_msgTypes[0].Methods()
48}
49
50// Deprecated: Use Message.ProtoReflect.Type instead.
51func (*Message) Descriptor() ([]byte, []int) {
52 return file_irregular_test_proto_rawDescGZIP(), []int{0}
53}
54
55func (x *Message) GetOptionalMessage() *IrregularMessage {
56 if x != nil {
57 return x.OptionalMessage
58 }
59 return nil
60}
61
62func (x *Message) GetRepeatedMessage() []*IrregularMessage {
63 if x != nil {
64 return x.RepeatedMessage
65 }
66 return nil
67}
68
69func (x *Message) GetRequiredMessage() *IrregularMessage {
70 if x != nil {
71 return x.RequiredMessage
72 }
73 return nil
74}
75
76func (x *Message) GetMapMessage() map[string]*IrregularMessage {
77 if x != nil {
78 return x.MapMessage
79 }
80 return nil
81}
82
83func (m *Message) GetUnion() isMessage_Union {
84 if m != nil {
85 return m.Union
86 }
87 return nil
88}
89
90func (x *Message) GetOneofMessage() *IrregularMessage {
91 if x, ok := x.GetUnion().(*Message_OneofMessage); ok {
92 return x.OneofMessage
93 }
94 return nil
95}
96
Damien Neil5b6d0472019-06-14 11:54:07 -070097type isMessage_Union interface {
98 isMessage_Union()
99}
100
101type Message_OneofMessage struct {
102 OneofMessage *IrregularMessage `protobuf:"bytes,5,opt,name=oneof_message,json=oneofMessage,oneof"`
103}
104
105func (*Message_OneofMessage) isMessage_Union() {}
106
107var File_irregular_test_proto protoreflect.FileDescriptor
108
109var file_irregular_test_proto_rawDesc = []byte{
110 0x0a, 0x14, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x74, 0x65, 0x73, 0x74,
111 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e,
112 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x1a,
113 0x19, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67,
114 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, 0x04, 0x0a, 0x07, 0x4d,
115 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
116 0x61, 0x6c, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
117 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
118 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67,
119 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x6f, 0x70, 0x74,
120 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10,
121 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
122 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
123 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
124 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67,
125 0x65, 0x52, 0x0f, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61,
126 0x67, 0x65, 0x12, 0x54, 0x0a, 0x10, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x5f, 0x6d,
127 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67,
128 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72,
129 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
130 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x0f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65,
131 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x51, 0x0a, 0x0b, 0x6d, 0x61, 0x70, 0x5f,
132 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e,
133 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x69, 0x72,
134 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x2e,
135 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
136 0x0a, 0x6d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x6f,
137 0x6e, 0x65, 0x6f, 0x66, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01,
138 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f,
139 0x74, 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72,
140 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x48, 0x00, 0x52,
141 0x0c, 0x6f, 0x6e, 0x65, 0x6f, 0x66, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x68, 0x0a,
142 0x0f, 0x4d, 0x61, 0x70, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x6e, 0x74, 0x72, 0x79,
143 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
144 0x65, 0x79, 0x12, 0x3f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
145 0x0b, 0x32, 0x29, 0x2e, 0x67, 0x6f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74,
146 0x6f, 0x2e, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x2e, 0x49, 0x72, 0x72, 0x65,
147 0x67, 0x75, 0x6c, 0x61, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x05, 0x76, 0x61,
148 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x75, 0x6e, 0x69, 0x6f, 0x6e,
149 0x42, 0x3a, 0x5a, 0x38, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e,
150 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x69,
151 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x70, 0x72, 0x6f, 0x74,
152 0x6f, 0x73, 0x2f, 0x69, 0x72, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72,
153}
154
155var (
156 file_irregular_test_proto_rawDescOnce sync.Once
157 file_irregular_test_proto_rawDescData = file_irregular_test_proto_rawDesc
158)
159
160func file_irregular_test_proto_rawDescGZIP() []byte {
161 file_irregular_test_proto_rawDescOnce.Do(func() {
162 file_irregular_test_proto_rawDescData = protoimpl.X.CompressGZIP(file_irregular_test_proto_rawDescData)
163 })
164 return file_irregular_test_proto_rawDescData
165}
166
167var file_irregular_test_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
168var file_irregular_test_proto_goTypes = []interface{}{
169 (*Message)(nil), // 0: goproto.proto.irregular.Message
170 nil, // 1: goproto.proto.irregular.Message.MapMessageEntry
171 (*IrregularMessage)(nil), // 2: goproto.proto.irregular.IrregularMessage
172}
173var file_irregular_test_proto_depIdxs = []int32{
174 2, // goproto.proto.irregular.Message.optional_message:type_name -> goproto.proto.irregular.IrregularMessage
175 2, // goproto.proto.irregular.Message.repeated_message:type_name -> goproto.proto.irregular.IrregularMessage
176 2, // goproto.proto.irregular.Message.required_message:type_name -> goproto.proto.irregular.IrregularMessage
177 1, // goproto.proto.irregular.Message.map_message:type_name -> goproto.proto.irregular.Message.MapMessageEntry
178 2, // goproto.proto.irregular.Message.oneof_message:type_name -> goproto.proto.irregular.IrregularMessage
179 2, // goproto.proto.irregular.Message.MapMessageEntry.value:type_name -> goproto.proto.irregular.IrregularMessage
Joe Tsaid8881392019-06-06 13:01:53 -0700180 6, // starting offset of method output_type sub-list
181 6, // starting offset of method input_type sub-list
182 6, // starting offset of extension type_name sub-list
183 6, // starting offset of extension extendee sub-list
184 0, // starting offset of field type_name sub-list
Damien Neil5b6d0472019-06-14 11:54:07 -0700185}
186
187func init() { file_irregular_test_proto_init() }
188func file_irregular_test_proto_init() {
189 if File_irregular_test_proto != nil {
190 return
191 }
192 file_irregular_irregular_proto_init()
Joe Tsaic0e4bb22019-07-06 13:05:11 -0700193 if !protoimpl.UnsafeEnabled {
194 file_irregular_test_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
195 switch v := v.(*Message); i {
196 case 5:
197 return &v.sizeCache
198 case 6:
199 return &v.unknownFields
200 default:
201 return nil
202 }
203 }
204 }
Joe Tsai09912272019-07-08 10:38:11 -0700205 file_irregular_test_proto_msgTypes[0].OneofWrappers = []interface{}{
206 (*Message_OneofMessage)(nil),
207 }
Joe Tsaid8881392019-06-06 13:01:53 -0700208 out := protoimpl.TypeBuilder{
209 File: protoimpl.DescBuilder{
210 RawDescriptor: file_irregular_test_proto_rawDesc,
211 NumEnums: 0,
212 NumMessages: 2,
213 NumExtensions: 0,
214 NumServices: 0,
215 },
216 GoTypes: file_irregular_test_proto_goTypes,
217 DependencyIndexes: file_irregular_test_proto_depIdxs,
218 MessageInfos: file_irregular_test_proto_msgTypes,
219 }.Build()
220 File_irregular_test_proto = out.File
Damien Neil5b6d0472019-06-14 11:54:07 -0700221 file_irregular_test_proto_rawDesc = nil
222 file_irregular_test_proto_goTypes = nil
223 file_irregular_test_proto_depIdxs = nil
224}