plugin.pb.go 3.3 KB

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