1 // Code generated by protoc-gen-go.
2 // source: google/protobuf/compiler/plugin.proto
5 package google_protobuf_compiler
7 import proto "github.com/golang/protobuf/proto"
9 import google_protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor"
11 // Reference proto and math imports to suppress error if they are not otherwise used.
12 var _ = proto.GetString
15 type CodeGeneratorRequest struct {
16 FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate" json:"file_to_generate,omitempty"`
17 Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"`
18 ProtoFile []*google_protobuf.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file" json:"proto_file,omitempty"`
19 XXX_unrecognized []byte `json:"-"`
22 func (this *CodeGeneratorRequest) Reset() { *this = CodeGeneratorRequest{} }
23 func (this *CodeGeneratorRequest) String() string { return proto.CompactTextString(this) }
24 func (*CodeGeneratorRequest) ProtoMessage() {}
26 func (this *CodeGeneratorRequest) GetParameter() string {
27 if this != nil && this.Parameter != nil {
28 return *this.Parameter
33 type CodeGeneratorResponse struct {
34 Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
35 File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
36 XXX_unrecognized []byte `json:"-"`
39 func (this *CodeGeneratorResponse) Reset() { *this = CodeGeneratorResponse{} }
40 func (this *CodeGeneratorResponse) String() string { return proto.CompactTextString(this) }
41 func (*CodeGeneratorResponse) ProtoMessage() {}
43 func (this *CodeGeneratorResponse) GetError() string {
44 if this != nil && this.Error != nil {
50 type CodeGeneratorResponse_File struct {
51 Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
52 InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point" json:"insertion_point,omitempty"`
53 Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
54 XXX_unrecognized []byte `json:"-"`
57 func (this *CodeGeneratorResponse_File) Reset() { *this = CodeGeneratorResponse_File{} }
58 func (this *CodeGeneratorResponse_File) String() string { return proto.CompactTextString(this) }
59 func (*CodeGeneratorResponse_File) ProtoMessage() {}
61 func (this *CodeGeneratorResponse_File) GetName() string {
62 if this != nil && this.Name != nil {
68 func (this *CodeGeneratorResponse_File) GetInsertionPoint() string {
69 if this != nil && this.InsertionPoint != nil {
70 return *this.InsertionPoint
75 func (this *CodeGeneratorResponse_File) GetContent() string {
76 if this != nil && this.Content != nil {