| David Symonds | afbae88 | 2012-09-24 13:21:21 +1000 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. |
| 2 | // source: google/protobuf/compiler/plugin.proto |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 3 | // DO NOT EDIT! |
| 4 | |
| 5 | package google_protobuf_compiler |
| 6 | |
| Rob Pike | 3f6f2d8 | 2011-12-18 13:55:35 -0800 | [diff] [blame] | 7 | import proto "code.google.com/p/goprotobuf/proto" |
| David Symonds | afbae88 | 2012-09-24 13:21:21 +1000 | [diff] [blame] | 8 | import json "encoding/json" |
| 9 | import math "math" |
| Rob Pike | b7907bf | 2012-02-13 14:25:20 +1100 | [diff] [blame] | 10 | import google_protobuf "code.google.com/p/goprotobuf/protoc-gen-go/descriptor" |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 11 | |
| David Symonds | 6253986 | 2012-08-04 10:06:55 +1000 | [diff] [blame] | 12 | // Reference proto, json, and math imports to suppress error if they are not otherwise used. |
| 13 | var _ = proto.Marshal |
| 14 | var _ = &json.SyntaxError{} |
| David Symonds | fa6a18d | 2011-01-19 09:30:28 +1100 | [diff] [blame] | 15 | var _ = math.Inf |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 16 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 17 | type CodeGeneratorRequest struct { |
| David Symonds | 8bb32ca | 2012-06-28 10:22:09 -0700 | [diff] [blame] | 18 | FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate" json:"file_to_generate,omitempty"` |
| 19 | Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"` |
| 20 | ProtoFile []*google_protobuf.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file" json:"proto_file,omitempty"` |
| 21 | XXX_unrecognized []byte `json:"-"` |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 22 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 23 | |
| David Symonds | 22e7eb4 | 2013-03-23 12:17:58 +1100 | [diff] [blame^] | 24 | func (m *CodeGeneratorRequest) Reset() { *m = CodeGeneratorRequest{} } |
| 25 | func (m *CodeGeneratorRequest) String() string { return proto.CompactTextString(m) } |
| 26 | func (*CodeGeneratorRequest) ProtoMessage() {} |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 27 | |
| David Symonds | 22e7eb4 | 2013-03-23 12:17:58 +1100 | [diff] [blame^] | 28 | func (m *CodeGeneratorRequest) GetFileToGenerate() []string { |
| 29 | if m != nil { |
| 30 | return m.FileToGenerate |
| 31 | } |
| 32 | return nil |
| 33 | } |
| 34 | |
| 35 | func (m *CodeGeneratorRequest) GetParameter() string { |
| 36 | if m != nil && m.Parameter != nil { |
| 37 | return *m.Parameter |
| David Symonds | 8bb32ca | 2012-06-28 10:22:09 -0700 | [diff] [blame] | 38 | } |
| 39 | return "" |
| 40 | } |
| 41 | |
| David Symonds | 22e7eb4 | 2013-03-23 12:17:58 +1100 | [diff] [blame^] | 42 | func (m *CodeGeneratorRequest) GetProtoFile() []*google_protobuf.FileDescriptorProto { |
| 43 | if m != nil { |
| 44 | return m.ProtoFile |
| 45 | } |
| 46 | return nil |
| 47 | } |
| 48 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 49 | type CodeGeneratorResponse struct { |
| David Symonds | 8bb32ca | 2012-06-28 10:22:09 -0700 | [diff] [blame] | 50 | Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` |
| 51 | File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"` |
| 52 | XXX_unrecognized []byte `json:"-"` |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 53 | } |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 54 | |
| David Symonds | 22e7eb4 | 2013-03-23 12:17:58 +1100 | [diff] [blame^] | 55 | func (m *CodeGeneratorResponse) Reset() { *m = CodeGeneratorResponse{} } |
| 56 | func (m *CodeGeneratorResponse) String() string { return proto.CompactTextString(m) } |
| 57 | func (*CodeGeneratorResponse) ProtoMessage() {} |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 58 | |
| David Symonds | 22e7eb4 | 2013-03-23 12:17:58 +1100 | [diff] [blame^] | 59 | func (m *CodeGeneratorResponse) GetError() string { |
| 60 | if m != nil && m.Error != nil { |
| 61 | return *m.Error |
| David Symonds | 8bb32ca | 2012-06-28 10:22:09 -0700 | [diff] [blame] | 62 | } |
| 63 | return "" |
| 64 | } |
| 65 | |
| David Symonds | 22e7eb4 | 2013-03-23 12:17:58 +1100 | [diff] [blame^] | 66 | func (m *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File { |
| 67 | if m != nil { |
| 68 | return m.File |
| 69 | } |
| 70 | return nil |
| 71 | } |
| 72 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 73 | type CodeGeneratorResponse_File struct { |
| David Symonds | 8bb32ca | 2012-06-28 10:22:09 -0700 | [diff] [blame] | 74 | Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` |
| 75 | InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point" json:"insertion_point,omitempty"` |
| 76 | Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"` |
| 77 | XXX_unrecognized []byte `json:"-"` |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 78 | } |
| David Symonds | 8935abf | 2011-07-04 15:53:16 +1000 | [diff] [blame] | 79 | |
| David Symonds | 22e7eb4 | 2013-03-23 12:17:58 +1100 | [diff] [blame^] | 80 | func (m *CodeGeneratorResponse_File) Reset() { *m = CodeGeneratorResponse_File{} } |
| 81 | func (m *CodeGeneratorResponse_File) String() string { return proto.CompactTextString(m) } |
| 82 | func (*CodeGeneratorResponse_File) ProtoMessage() {} |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 83 | |
| David Symonds | 22e7eb4 | 2013-03-23 12:17:58 +1100 | [diff] [blame^] | 84 | func (m *CodeGeneratorResponse_File) GetName() string { |
| 85 | if m != nil && m.Name != nil { |
| 86 | return *m.Name |
| David Symonds | 8bb32ca | 2012-06-28 10:22:09 -0700 | [diff] [blame] | 87 | } |
| 88 | return "" |
| 89 | } |
| 90 | |
| David Symonds | 22e7eb4 | 2013-03-23 12:17:58 +1100 | [diff] [blame^] | 91 | func (m *CodeGeneratorResponse_File) GetInsertionPoint() string { |
| 92 | if m != nil && m.InsertionPoint != nil { |
| 93 | return *m.InsertionPoint |
| David Symonds | 8bb32ca | 2012-06-28 10:22:09 -0700 | [diff] [blame] | 94 | } |
| 95 | return "" |
| 96 | } |
| 97 | |
| David Symonds | 22e7eb4 | 2013-03-23 12:17:58 +1100 | [diff] [blame^] | 98 | func (m *CodeGeneratorResponse_File) GetContent() string { |
| 99 | if m != nil && m.Content != nil { |
| 100 | return *m.Content |
| David Symonds | 8bb32ca | 2012-06-28 10:22:09 -0700 | [diff] [blame] | 101 | } |
| 102 | return "" |
| 103 | } |
| 104 | |
| Rob Pike | aaa3a62 | 2010-03-20 22:32:34 -0700 | [diff] [blame] | 105 | func init() { |
| 106 | } |