protoc-gen-go/plugin: delete plugin.pb.golden
Change-Id: If6cd752e92dfdac6f5a1d4baf4277982b238b675
Reviewed-on: https://go-review.googlesource.com/c/protobuf/+/167278
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Joe Tsai authored 5 years ago
Joe Tsai committed 5 years ago
0 | // Code generated by protoc-gen-go. | |
1 | // source: google/protobuf/compiler/plugin.proto | |
2 | // DO NOT EDIT! | |
3 | ||
4 | package google_protobuf_compiler | |
5 | ||
6 | import proto "github.com/golang/protobuf/proto" | |
7 | import "math" | |
8 | import google_protobuf "github.com/golang/protobuf/protoc-gen-go/descriptor" | |
9 | ||
10 | // Reference proto and math imports to suppress error if they are not otherwise used. | |
11 | var _ = proto.GetString | |
12 | var _ = math.Inf | |
13 | ||
14 | type CodeGeneratorRequest struct { | |
15 | FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate" json:"file_to_generate,omitempty"` | |
16 | Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"` | |
17 | ProtoFile []*google_protobuf.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file" json:"proto_file,omitempty"` | |
18 | XXX_unrecognized []byte `json:"-"` | |
19 | } | |
20 | ||
21 | func (this *CodeGeneratorRequest) Reset() { *this = CodeGeneratorRequest{} } | |
22 | func (this *CodeGeneratorRequest) String() string { return proto.CompactTextString(this) } | |
23 | func (*CodeGeneratorRequest) ProtoMessage() {} | |
24 | ||
25 | func (this *CodeGeneratorRequest) GetParameter() string { | |
26 | if this != nil && this.Parameter != nil { | |
27 | return *this.Parameter | |
28 | } | |
29 | return "" | |
30 | } | |
31 | ||
32 | type CodeGeneratorResponse struct { | |
33 | Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"` | |
34 | File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"` | |
35 | XXX_unrecognized []byte `json:"-"` | |
36 | } | |
37 | ||
38 | func (this *CodeGeneratorResponse) Reset() { *this = CodeGeneratorResponse{} } | |
39 | func (this *CodeGeneratorResponse) String() string { return proto.CompactTextString(this) } | |
40 | func (*CodeGeneratorResponse) ProtoMessage() {} | |
41 | ||
42 | func (this *CodeGeneratorResponse) GetError() string { | |
43 | if this != nil && this.Error != nil { | |
44 | return *this.Error | |
45 | } | |
46 | return "" | |
47 | } | |
48 | ||
49 | type CodeGeneratorResponse_File struct { | |
50 | Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` | |
51 | InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point" json:"insertion_point,omitempty"` | |
52 | Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"` | |
53 | XXX_unrecognized []byte `json:"-"` | |
54 | } | |
55 | ||
56 | func (this *CodeGeneratorResponse_File) Reset() { *this = CodeGeneratorResponse_File{} } | |
57 | func (this *CodeGeneratorResponse_File) String() string { return proto.CompactTextString(this) } | |
58 | func (*CodeGeneratorResponse_File) ProtoMessage() {} | |
59 | ||
60 | func (this *CodeGeneratorResponse_File) GetName() string { | |
61 | if this != nil && this.Name != nil { | |
62 | return *this.Name | |
63 | } | |
64 | return "" | |
65 | } | |
66 | ||
67 | func (this *CodeGeneratorResponse_File) GetInsertionPoint() string { | |
68 | if this != nil && this.InsertionPoint != nil { | |
69 | return *this.InsertionPoint | |
70 | } | |
71 | return "" | |
72 | } | |
73 | ||
74 | func (this *CodeGeneratorResponse_File) GetContent() string { | |
75 | if this != nil && this.Content != nil { | |
76 | return *this.Content | |
77 | } | |
78 | return "" | |
79 | } | |
80 | ||
81 | func init() { | |
82 | } |