blob: ccc2a4caf09f12d958acd9c3491f8e0b7f6511f2 [file] [log] [blame]
David Symondsafbae882012-09-24 13:21:21 +10001// Code generated by protoc-gen-go.
2// source: google/protobuf/compiler/plugin.proto
Rob Pikeaaa3a622010-03-20 22:32:34 -07003// DO NOT EDIT!
4
5package google_protobuf_compiler
6
Rob Pike3f6f2d82011-12-18 13:55:35 -08007import proto "code.google.com/p/goprotobuf/proto"
David Symondsafbae882012-09-24 13:21:21 +10008import json "encoding/json"
9import math "math"
Rob Pikeb7907bf2012-02-13 14:25:20 +110010import google_protobuf "code.google.com/p/goprotobuf/protoc-gen-go/descriptor"
Rob Pikeaaa3a622010-03-20 22:32:34 -070011
David Symonds62539862012-08-04 10:06:55 +100012// Reference proto, json, and math imports to suppress error if they are not otherwise used.
13var _ = proto.Marshal
14var _ = &json.SyntaxError{}
David Symondsfa6a18d2011-01-19 09:30:28 +110015var _ = math.Inf
David Symonds8935abf2011-07-04 15:53:16 +100016
Rob Pikeaaa3a622010-03-20 22:32:34 -070017type CodeGeneratorRequest struct {
David Symonds8bb32ca2012-06-28 10:22:09 -070018 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 Pikeaaa3a622010-03-20 22:32:34 -070022}
David Symonds8935abf2011-07-04 15:53:16 +100023
David Symonds22e7eb42013-03-23 12:17:58 +110024func (m *CodeGeneratorRequest) Reset() { *m = CodeGeneratorRequest{} }
25func (m *CodeGeneratorRequest) String() string { return proto.CompactTextString(m) }
26func (*CodeGeneratorRequest) ProtoMessage() {}
Rob Pikeaaa3a622010-03-20 22:32:34 -070027
David Symonds22e7eb42013-03-23 12:17:58 +110028func (m *CodeGeneratorRequest) GetFileToGenerate() []string {
29 if m != nil {
30 return m.FileToGenerate
31 }
32 return nil
33}
34
35func (m *CodeGeneratorRequest) GetParameter() string {
36 if m != nil && m.Parameter != nil {
37 return *m.Parameter
David Symonds8bb32ca2012-06-28 10:22:09 -070038 }
39 return ""
40}
41
David Symonds22e7eb42013-03-23 12:17:58 +110042func (m *CodeGeneratorRequest) GetProtoFile() []*google_protobuf.FileDescriptorProto {
43 if m != nil {
44 return m.ProtoFile
45 }
46 return nil
47}
48
Rob Pikeaaa3a622010-03-20 22:32:34 -070049type CodeGeneratorResponse struct {
David Symonds8bb32ca2012-06-28 10:22:09 -070050 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 Pikeaaa3a622010-03-20 22:32:34 -070053}
Rob Pikeaaa3a622010-03-20 22:32:34 -070054
David Symonds22e7eb42013-03-23 12:17:58 +110055func (m *CodeGeneratorResponse) Reset() { *m = CodeGeneratorResponse{} }
56func (m *CodeGeneratorResponse) String() string { return proto.CompactTextString(m) }
57func (*CodeGeneratorResponse) ProtoMessage() {}
David Symonds8935abf2011-07-04 15:53:16 +100058
David Symonds22e7eb42013-03-23 12:17:58 +110059func (m *CodeGeneratorResponse) GetError() string {
60 if m != nil && m.Error != nil {
61 return *m.Error
David Symonds8bb32ca2012-06-28 10:22:09 -070062 }
63 return ""
64}
65
David Symonds22e7eb42013-03-23 12:17:58 +110066func (m *CodeGeneratorResponse) GetFile() []*CodeGeneratorResponse_File {
67 if m != nil {
68 return m.File
69 }
70 return nil
71}
72
Rob Pikeaaa3a622010-03-20 22:32:34 -070073type CodeGeneratorResponse_File struct {
David Symonds8bb32ca2012-06-28 10:22:09 -070074 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 Pikeaaa3a622010-03-20 22:32:34 -070078}
David Symonds8935abf2011-07-04 15:53:16 +100079
David Symonds22e7eb42013-03-23 12:17:58 +110080func (m *CodeGeneratorResponse_File) Reset() { *m = CodeGeneratorResponse_File{} }
81func (m *CodeGeneratorResponse_File) String() string { return proto.CompactTextString(m) }
82func (*CodeGeneratorResponse_File) ProtoMessage() {}
Rob Pikeaaa3a622010-03-20 22:32:34 -070083
David Symonds22e7eb42013-03-23 12:17:58 +110084func (m *CodeGeneratorResponse_File) GetName() string {
85 if m != nil && m.Name != nil {
86 return *m.Name
David Symonds8bb32ca2012-06-28 10:22:09 -070087 }
88 return ""
89}
90
David Symonds22e7eb42013-03-23 12:17:58 +110091func (m *CodeGeneratorResponse_File) GetInsertionPoint() string {
92 if m != nil && m.InsertionPoint != nil {
93 return *m.InsertionPoint
David Symonds8bb32ca2012-06-28 10:22:09 -070094 }
95 return ""
96}
97
David Symonds22e7eb42013-03-23 12:17:58 +110098func (m *CodeGeneratorResponse_File) GetContent() string {
99 if m != nil && m.Content != nil {
100 return *m.Content
David Symonds8bb32ca2012-06-28 10:22:09 -0700101 }
102 return ""
103}
104
Rob Pikeaaa3a622010-03-20 22:32:34 -0700105func init() {
106}