plugin.pb.go 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. // Code generated by protoc-gen-go from "google/protobuf/compiler/plugin.proto"
  2. // DO NOT EDIT!
  3. package google_protobuf_compiler
  4. import proto "code.google.com/p/goprotobuf/proto"
  5. import "math"
  6. import google_protobuf "code.google.com/p/goprotobuf/protoc-gen-go/descriptor"
  7. // Reference proto and math imports to suppress error if they are not otherwise used.
  8. var _ = proto.GetString
  9. var _ = math.Inf
  10. type CodeGeneratorRequest struct {
  11. FileToGenerate []string `protobuf:"bytes,1,rep,name=file_to_generate" json:"file_to_generate,omitempty"`
  12. Parameter *string `protobuf:"bytes,2,opt,name=parameter" json:"parameter,omitempty"`
  13. ProtoFile []*google_protobuf.FileDescriptorProto `protobuf:"bytes,15,rep,name=proto_file" json:"proto_file,omitempty"`
  14. XXX_unrecognized []byte `json:"-"`
  15. }
  16. func (this *CodeGeneratorRequest) Reset() { *this = CodeGeneratorRequest{} }
  17. func (this *CodeGeneratorRequest) String() string { return proto.CompactTextString(this) }
  18. func (*CodeGeneratorRequest) ProtoMessage() {}
  19. func (this *CodeGeneratorRequest) GetParameter() string {
  20. if this != nil && this.Parameter != nil {
  21. return *this.Parameter
  22. }
  23. return ""
  24. }
  25. type CodeGeneratorResponse struct {
  26. Error *string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
  27. File []*CodeGeneratorResponse_File `protobuf:"bytes,15,rep,name=file" json:"file,omitempty"`
  28. XXX_unrecognized []byte `json:"-"`
  29. }
  30. func (this *CodeGeneratorResponse) Reset() { *this = CodeGeneratorResponse{} }
  31. func (this *CodeGeneratorResponse) String() string { return proto.CompactTextString(this) }
  32. func (*CodeGeneratorResponse) ProtoMessage() {}
  33. func (this *CodeGeneratorResponse) GetError() string {
  34. if this != nil && this.Error != nil {
  35. return *this.Error
  36. }
  37. return ""
  38. }
  39. type CodeGeneratorResponse_File struct {
  40. Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  41. InsertionPoint *string `protobuf:"bytes,2,opt,name=insertion_point" json:"insertion_point,omitempty"`
  42. Content *string `protobuf:"bytes,15,opt,name=content" json:"content,omitempty"`
  43. XXX_unrecognized []byte `json:"-"`
  44. }
  45. func (this *CodeGeneratorResponse_File) Reset() { *this = CodeGeneratorResponse_File{} }
  46. func (this *CodeGeneratorResponse_File) String() string { return proto.CompactTextString(this) }
  47. func (*CodeGeneratorResponse_File) ProtoMessage() {}
  48. func (this *CodeGeneratorResponse_File) GetName() string {
  49. if this != nil && this.Name != nil {
  50. return *this.Name
  51. }
  52. return ""
  53. }
  54. func (this *CodeGeneratorResponse_File) GetInsertionPoint() string {
  55. if this != nil && this.InsertionPoint != nil {
  56. return *this.InsertionPoint
  57. }
  58. return ""
  59. }
  60. func (this *CodeGeneratorResponse_File) GetContent() string {
  61. if this != nil && this.Content != nil {
  62. return *this.Content
  63. }
  64. return ""
  65. }
  66. func init() {
  67. }