1
2
3
4 package plugin_go
5
6 import (
7 fmt "fmt"
8 proto "github.com/gogo/protobuf/proto"
9 descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
10 math "math"
11 )
12
13
14 var _ = proto.Marshal
15 var _ = fmt.Errorf
16 var _ = math.Inf
17
18
19
20
21
22 const _ = proto.GoGoProtoPackageIsVersion3
23
24
25 type Version struct {
26 Major *int32 `protobuf:"varint,1,opt,name=major" json:"major,omitempty"`
27 Minor *int32 `protobuf:"varint,2,opt,name=minor" json:"minor,omitempty"`
28 Patch *int32 `protobuf:"varint,3,opt,name=patch" json:"patch,omitempty"`
29
30
31 Suffix *string `protobuf:"bytes,4,opt,name=suffix" json:"suffix,omitempty"`
32 XXX_NoUnkeyedLiteral struct{} `json:"-"`
33 XXX_unrecognized []byte `json:"-"`
34 XXX_sizecache int32 `json:"-"`
35 }
36
37 func (m *Version) Reset() { *m = Version{} }
38 func (m *Version) String() string { return proto.CompactTextString(m) }
39 func (*Version) ProtoMessage() {}
40 func (*Version) Descriptor() ([]byte, []int) {
41 return fileDescriptor_22a625af4bc1cc87, []int{0}
42 }
43 func (m *Version) XXX_Unmarshal(b []byte) error {
44 return xxx_messageInfo_Version.Unmarshal(m, b)
45 }
46 func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
47 return xxx_messageInfo_Version.Marshal(b, m, deterministic)
48 }
49 func (m *Version) XXX_Merge(src proto.Message) {
50 xxx_messageInfo_Version.Merge(m, src)
51 }
52 func (m *Version) XXX_Size() int {
53 return xxx_messageInfo_Version.Size(m)
54 }
55 func (m *Version) XXX_DiscardUnknown() {
56 xxx_messageInfo_Version.DiscardUnknown(m)
57 }
58
59 var xxx_messageInfo_Version proto.InternalMessageInfo
60
61 func (m *Version) GetMajor() int32 {
62 if m != nil && m.Major != nil {
63 return *m.Major
64 }
65 return 0
66 }
67
68 func (m *Version) GetMinor() int32 {
69 if m != nil && m.Minor != nil {
70 return *m.Minor
71 }
72 return 0
73 }
74
75 func (m *Version) GetPatch() int32 {
76 if m != nil && m.Patch != nil {
77 return *m.Patch
78 }
79 return 0
80 }
81
82 func (m *Version) GetSuffix() string {
83 if m != nil && m.Suffix != nil {
84 return *m.Suffix
85 }
86 return ""
87 }
88
89
90 type CodeGeneratorRequest struct {
91
92
93
94 FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate,json=fileToGenerate" json:"file_to_generate,omitempty"`
95
96 Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"`
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111 ProtoFile []*descriptor.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file,json=protoFile" json:"proto_file,omitempty"`
112
113 CompilerVersion *Version `protobuf:"bytes,3,opt,name=compiler_version,json=compilerVersion" json:"compiler_version,omitempty"`
114 XXX_NoUnkeyedLiteral struct{} `json:"-"`
115 XXX_unrecognized []byte `json:"-"`
116 XXX_sizecache int32 `json:"-"`
117 }
118
119 func (m *CodeGeneratorRequest) Reset() { *m = CodeGeneratorRequest{} }
120 func (m *CodeGeneratorRequest) String() string { return proto.CompactTextString(m) }
121 func (*CodeGeneratorRequest) ProtoMessage() {}
122 func (*CodeGeneratorRequest) Descriptor() ([]byte, []int) {
123 return fileDescriptor_22a625af4bc1cc87, []int{1}
124 }
125 func (m *CodeGeneratorRequest) XXX_Unmarshal(b []byte) error {
126 return xxx_messageInfo_CodeGeneratorRequest.Unmarshal(m, b)
127 }
128 func (m *CodeGeneratorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
129 return xxx_messageInfo_CodeGeneratorRequest.Marshal(b, m, deterministic)
130 }
131 func (m *CodeGeneratorRequest) XXX_Merge(src proto.Message) {
132 xxx_messageInfo_CodeGeneratorRequest.Merge(m, src)
133 }
134 func (m *CodeGeneratorRequest) XXX_Size() int {
135 return xxx_messageInfo_CodeGeneratorRequest.Size(m)
136 }
137 func (m *CodeGeneratorRequest) XXX_DiscardUnknown() {
138 xxx_messageInfo_CodeGeneratorRequest.DiscardUnknown(m)
139 }
140
141 var xxx_messageInfo_CodeGeneratorRequest proto.InternalMessageInfo
142
143 func (m *CodeGeneratorRequest) GetFileToGenerate() []string {
144 if m != nil {
145 return m.FileToGenerate
146 }
147 return nil
148 }
149
150 func (m *CodeGeneratorRequest) GetParameter() string {
151 if m != nil && m.Parameter != nil {
152 return *m.Parameter
153 }
154 return ""
155 }
156
157 func (m *CodeGeneratorRequest) GetProtoFile() []*descriptor.FileDescriptorProto {
158 if m != nil {
159 return m.ProtoFile
160 }
161 return nil
162 }
163
164 func (m *CodeGeneratorRequest) GetCompilerVersion() *Version {
165 if m != nil {
166 return m.CompilerVersion
167 }
168 return nil
169 }
170
171
172 type CodeGeneratorResponse struct {
173
174
175
176
177
178
179
180
181 Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
182 File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
183 XXX_NoUnkeyedLiteral struct{} `json:"-"`
184 XXX_unrecognized []byte `json:"-"`
185 XXX_sizecache int32 `json:"-"`
186 }
187
188 func (m *CodeGeneratorResponse) Reset() { *m = CodeGeneratorResponse{} }
189 func (m *CodeGeneratorResponse) String() string { return proto.CompactTextString(m) }
190 func (*CodeGeneratorResponse) ProtoMessage() {}
191 func (*CodeGeneratorResponse) Descriptor() ([]byte, []int) {
192 return fileDescriptor_22a625af4bc1cc87, []int{2}
193 }
194 func (m *CodeGeneratorResponse) XXX_Unmarshal(b []byte) error {
195 return xxx_messageInfo_CodeGeneratorResponse.Unmarshal(m, b)
196 }
197 func (m *CodeGeneratorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
198 return xxx_messageInfo_CodeGeneratorResponse.Marshal(b, m, deterministic)
199 }
200 func (m *CodeGeneratorResponse) XXX_Merge(src proto.Message) {
201 xxx_messageInfo_CodeGeneratorResponse.Merge(m, src)
202 }
203 func (m *CodeGeneratorResponse) XXX_Size() int {
204 return xxx_messageInfo_CodeGeneratorResponse.Size(m)
205 }
206 func (m *CodeGeneratorResponse) XXX_DiscardUnknown() {
207 xxx_messageInfo_CodeGeneratorResponse.DiscardUnknown(m)
208 }
209
210 var xxx_messageInfo_CodeGeneratorResponse proto.InternalMessageInfo
211
212 func (m *CodeGeneratorResponse) GetError() string {
213 if m != nil && m.Error != nil {
214 return *m.Error
215 }
216 return ""
217 }
218
219 func (m *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File {
220 if m != nil {
221 return m.File
222 }
223 return nil
224 }
225
226
227 type CodeGeneratorResponse_File struct {
228
229
230
231
232
233
234
235
236
237
238
239 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277 InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point,json=insertionPoint" json:"insertion_point,omitempty"`
278
279 Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
280 XXX_NoUnkeyedLiteral struct{} `json:"-"`
281 XXX_unrecognized []byte `json:"-"`
282 XXX_sizecache int32 `json:"-"`
283 }
284
285 func (m *CodeGeneratorResponse_File) Reset() { *m = CodeGeneratorResponse_File{} }
286 func (m *CodeGeneratorResponse_File) String() string { return proto.CompactTextString(m) }
287 func (*CodeGeneratorResponse_File) ProtoMessage() {}
288 func (*CodeGeneratorResponse_File) Descriptor() ([]byte, []int) {
289 return fileDescriptor_22a625af4bc1cc87, []int{2, 0}
290 }
291 func (m *CodeGeneratorResponse_File) XXX_Unmarshal(b []byte) error {
292 return xxx_messageInfo_CodeGeneratorResponse_File.Unmarshal(m, b)
293 }
294 func (m *CodeGeneratorResponse_File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
295 return xxx_messageInfo_CodeGeneratorResponse_File.Marshal(b, m, deterministic)
296 }
297 func (m *CodeGeneratorResponse_File) XXX_Merge(src proto.Message) {
298 xxx_messageInfo_CodeGeneratorResponse_File.Merge(m, src)
299 }
300 func (m *CodeGeneratorResponse_File) XXX_Size() int {
301 return xxx_messageInfo_CodeGeneratorResponse_File.Size(m)
302 }
303 func (m *CodeGeneratorResponse_File) XXX_DiscardUnknown() {
304 xxx_messageInfo_CodeGeneratorResponse_File.DiscardUnknown(m)
305 }
306
307 var xxx_messageInfo_CodeGeneratorResponse_File proto.InternalMessageInfo
308
309 func (m *CodeGeneratorResponse_File) GetName() string {
310 if m != nil && m.Name != nil {
311 return *m.Name
312 }
313 return ""
314 }
315
316 func (m *CodeGeneratorResponse_File) GetInsertionPoint() string {
317 if m != nil && m.InsertionPoint != nil {
318 return *m.InsertionPoint
319 }
320 return ""
321 }
322
323 func (m *CodeGeneratorResponse_File) GetContent() string {
324 if m != nil && m.Content != nil {
325 return *m.Content
326 }
327 return ""
328 }
329
330 func init() {
331 proto.RegisterType((*Version)(nil), "google.protobuf.compiler.Version")
332 proto.RegisterType((*CodeGeneratorRequest)(nil), "google.protobuf.compiler.CodeGeneratorRequest")
333 proto.RegisterType((*CodeGeneratorResponse)(nil), "google.protobuf.compiler.CodeGeneratorResponse")
334 proto.RegisterType((*CodeGeneratorResponse_File)(nil), "google.protobuf.compiler.CodeGeneratorResponse.File")
335 }
336
337 func init() { proto.RegisterFile("plugin.proto", fileDescriptor_22a625af4bc1cc87) }
338
339 var fileDescriptor_22a625af4bc1cc87 = []byte{
340
341 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xcd, 0x6a, 0xd5, 0x40,
342 0x14, 0xc7, 0x89, 0x37, 0xb5, 0xe4, 0xb4, 0x34, 0x65, 0xa8, 0x32, 0x94, 0x2e, 0xe2, 0x45, 0x30,
343 0xab, 0x14, 0x8a, 0xe0, 0xbe, 0x15, 0x75, 0xe1, 0xe2, 0x32, 0x88, 0x0b, 0x41, 0x42, 0x4c, 0x4f,
344 0xe2, 0x48, 0x32, 0x67, 0x9c, 0x99, 0x88, 0x4f, 0xea, 0x7b, 0xf8, 0x06, 0x32, 0x1f, 0xa9, 0x72,
345 0xf1, 0xee, 0xe6, 0xff, 0x3b, 0xf3, 0x71, 0xce, 0x8f, 0x81, 0x53, 0x3d, 0x2d, 0xa3, 0x54, 0x8d,
346 0x36, 0xe4, 0x88, 0xf1, 0x91, 0x68, 0x9c, 0x30, 0xa6, 0x2f, 0xcb, 0xd0, 0xf4, 0x34, 0x6b, 0x39,
347 0xa1, 0xb9, 0xac, 0x62, 0xe5, 0x7a, 0xad, 0x5c, 0xdf, 0xa3, 0xed, 0x8d, 0xd4, 0x8e, 0x4c, 0xdc,
348 0xbd, 0xed, 0xe1, 0xf8, 0x23, 0x1a, 0x2b, 0x49, 0xb1, 0x0b, 0x38, 0x9a, 0xbb, 0x6f, 0x64, 0x78,
349 0x56, 0x65, 0xf5, 0x91, 0x88, 0x21, 0x50, 0xa9, 0xc8, 0xf0, 0x47, 0x89, 0xfa, 0xe0, 0xa9, 0xee,
350 0x5c, 0xff, 0x95, 0x6f, 0x22, 0x0d, 0x81, 0x3d, 0x85, 0xc7, 0x76, 0x19, 0x06, 0xf9, 0x93, 0xe7,
351 0x55, 0x56, 0x17, 0x22, 0xa5, 0xed, 0xef, 0x0c, 0x2e, 0xee, 0xe8, 0x1e, 0xdf, 0xa2, 0x42, 0xd3,
352 0x39, 0x32, 0x02, 0xbf, 0x2f, 0x68, 0x1d, 0xab, 0xe1, 0x7c, 0x90, 0x13, 0xb6, 0x8e, 0xda, 0x31,
353 0xd6, 0x90, 0x67, 0xd5, 0xa6, 0x2e, 0xc4, 0x99, 0xe7, 0x1f, 0x28, 0x9d, 0x40, 0x76, 0x05, 0x85,
354 0xee, 0x4c, 0x37, 0xa3, 0xc3, 0xd8, 0x4a, 0x21, 0xfe, 0x02, 0x76, 0x07, 0x10, 0xc6, 0x69, 0xfd,
355 0x29, 0x5e, 0x56, 0x9b, 0xfa, 0xe4, 0xe6, 0x79, 0xb3, 0xaf, 0xe5, 0x8d, 0x9c, 0xf0, 0xf5, 0x83,
356 0x80, 0x9d, 0xc7, 0xa2, 0x08, 0x55, 0x5f, 0x61, 0xef, 0xe1, 0x7c, 0x15, 0xd7, 0xfe, 0x88, 0x4e,
357 0xc2, 0x78, 0x27, 0x37, 0xcf, 0x9a, 0x43, 0x86, 0x9b, 0x24, 0x4f, 0x94, 0x2b, 0x49, 0x60, 0xfb,
358 0x2b, 0x83, 0x27, 0x7b, 0x33, 0x5b, 0x4d, 0xca, 0xa2, 0x77, 0x87, 0xc6, 0x24, 0xcf, 0x85, 0x88,
359 0x81, 0xbd, 0x83, 0xfc, 0x9f, 0xe6, 0x5f, 0x1e, 0x7e, 0xf1, 0xbf, 0x97, 0x86, 0xd9, 0x44, 0xb8,
360 0xe1, 0xf2, 0x33, 0xe4, 0x61, 0x1e, 0x06, 0xb9, 0xea, 0x66, 0x4c, 0xcf, 0x84, 0x35, 0x7b, 0x01,
361 0xa5, 0x54, 0x16, 0x8d, 0x93, 0xa4, 0x5a, 0x4d, 0x52, 0xb9, 0x24, 0xf3, 0xec, 0x01, 0xef, 0x3c,
362 0x65, 0x1c, 0x8e, 0x7b, 0x52, 0x0e, 0x95, 0xe3, 0x65, 0xd8, 0xb0, 0xc6, 0xdb, 0x57, 0x70, 0xd5,
363 0xd3, 0x7c, 0xb0, 0xbf, 0xdb, 0xd3, 0x5d, 0xf8, 0x9b, 0x41, 0xaf, 0xfd, 0x54, 0xc4, 0x9f, 0xda,
364 0x8e, 0xf4, 0x27, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x72, 0x3d, 0x18, 0xb5, 0x02, 0x00, 0x00,
365 }
366
View as plain text