tsdb_plugin.pb.go 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: tsdb_plugin.proto
  3. /*
  4. Package proto is a generated protocol buffer package.
  5. It is generated from these files:
  6. tsdb_plugin.proto
  7. It has these top-level messages:
  8. TsdbRequest
  9. TsdbQuery
  10. TsdbResponse
  11. TsdbSeries
  12. */
  13. package proto
  14. import proto1 "github.com/golang/protobuf/proto"
  15. import fmt "fmt"
  16. import math "math"
  17. import (
  18. context "golang.org/x/net/context"
  19. grpc "google.golang.org/grpc"
  20. )
  21. // Reference imports to suppress errors if they are not otherwise used.
  22. var _ = proto1.Marshal
  23. var _ = fmt.Errorf
  24. var _ = math.Inf
  25. // This is a compile-time assertion to ensure that this generated file
  26. // is compatible with the proto package it is being compiled against.
  27. // A compilation error at this line likely means your copy of the
  28. // proto package needs to be updated.
  29. const _ = proto1.ProtoPackageIsVersion2 // please upgrade the proto package
  30. // Message represents a simple message sent to the Echo service.
  31. type TsdbRequest struct {
  32. From int64 `protobuf:"varint,1,opt,name=from" json:"from,omitempty"`
  33. To int64 `protobuf:"varint,2,opt,name=to" json:"to,omitempty"`
  34. Queries []*TsdbQuery `protobuf:"bytes,3,rep,name=queries" json:"queries,omitempty"`
  35. }
  36. func (m *TsdbRequest) Reset() { *m = TsdbRequest{} }
  37. func (m *TsdbRequest) String() string { return proto1.CompactTextString(m) }
  38. func (*TsdbRequest) ProtoMessage() {}
  39. func (*TsdbRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
  40. func (m *TsdbRequest) GetFrom() int64 {
  41. if m != nil {
  42. return m.From
  43. }
  44. return 0
  45. }
  46. func (m *TsdbRequest) GetTo() int64 {
  47. if m != nil {
  48. return m.To
  49. }
  50. return 0
  51. }
  52. func (m *TsdbRequest) GetQueries() []*TsdbQuery {
  53. if m != nil {
  54. return m.Queries
  55. }
  56. return nil
  57. }
  58. type TsdbQuery struct {
  59. QueryJson string `protobuf:"bytes,1,opt,name=queryJson" json:"queryJson,omitempty"`
  60. }
  61. func (m *TsdbQuery) Reset() { *m = TsdbQuery{} }
  62. func (m *TsdbQuery) String() string { return proto1.CompactTextString(m) }
  63. func (*TsdbQuery) ProtoMessage() {}
  64. func (*TsdbQuery) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
  65. func (m *TsdbQuery) GetQueryJson() string {
  66. if m != nil {
  67. return m.QueryJson
  68. }
  69. return ""
  70. }
  71. type TsdbResponse struct {
  72. Error string `protobuf:"bytes,1,opt,name=error" json:"error,omitempty"`
  73. ErrorString string `protobuf:"bytes,2,opt,name=errorString" json:"errorString,omitempty"`
  74. RefId string `protobuf:"bytes,3,opt,name=refId" json:"refId,omitempty"`
  75. MetaJson string `protobuf:"bytes,4,opt,name=metaJson" json:"metaJson,omitempty"`
  76. Series []*TsdbSeries `protobuf:"bytes,5,rep,name=series" json:"series,omitempty"`
  77. }
  78. func (m *TsdbResponse) Reset() { *m = TsdbResponse{} }
  79. func (m *TsdbResponse) String() string { return proto1.CompactTextString(m) }
  80. func (*TsdbResponse) ProtoMessage() {}
  81. func (*TsdbResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
  82. func (m *TsdbResponse) GetError() string {
  83. if m != nil {
  84. return m.Error
  85. }
  86. return ""
  87. }
  88. func (m *TsdbResponse) GetErrorString() string {
  89. if m != nil {
  90. return m.ErrorString
  91. }
  92. return ""
  93. }
  94. func (m *TsdbResponse) GetRefId() string {
  95. if m != nil {
  96. return m.RefId
  97. }
  98. return ""
  99. }
  100. func (m *TsdbResponse) GetMetaJson() string {
  101. if m != nil {
  102. return m.MetaJson
  103. }
  104. return ""
  105. }
  106. func (m *TsdbResponse) GetSeries() []*TsdbSeries {
  107. if m != nil {
  108. return m.Series
  109. }
  110. return nil
  111. }
  112. type TsdbSeries struct {
  113. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  114. }
  115. func (m *TsdbSeries) Reset() { *m = TsdbSeries{} }
  116. func (m *TsdbSeries) String() string { return proto1.CompactTextString(m) }
  117. func (*TsdbSeries) ProtoMessage() {}
  118. func (*TsdbSeries) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
  119. func (m *TsdbSeries) GetName() string {
  120. if m != nil {
  121. return m.Name
  122. }
  123. return ""
  124. }
  125. func init() {
  126. proto1.RegisterType((*TsdbRequest)(nil), "plugins.TsdbRequest")
  127. proto1.RegisterType((*TsdbQuery)(nil), "plugins.TsdbQuery")
  128. proto1.RegisterType((*TsdbResponse)(nil), "plugins.TsdbResponse")
  129. proto1.RegisterType((*TsdbSeries)(nil), "plugins.TsdbSeries")
  130. }
  131. // Reference imports to suppress errors if they are not otherwise used.
  132. var _ context.Context
  133. var _ grpc.ClientConn
  134. // This is a compile-time assertion to ensure that this generated file
  135. // is compatible with the grpc package it is being compiled against.
  136. const _ = grpc.SupportPackageIsVersion4
  137. // Client API for TsdbPlugin service
  138. type TsdbPluginClient interface {
  139. Get(ctx context.Context, in *TsdbRequest, opts ...grpc.CallOption) (*TsdbResponse, error)
  140. }
  141. type tsdbPluginClient struct {
  142. cc *grpc.ClientConn
  143. }
  144. func NewTsdbPluginClient(cc *grpc.ClientConn) TsdbPluginClient {
  145. return &tsdbPluginClient{cc}
  146. }
  147. func (c *tsdbPluginClient) Get(ctx context.Context, in *TsdbRequest, opts ...grpc.CallOption) (*TsdbResponse, error) {
  148. out := new(TsdbResponse)
  149. err := grpc.Invoke(ctx, "/plugins.TsdbPlugin/Get", in, out, c.cc, opts...)
  150. if err != nil {
  151. return nil, err
  152. }
  153. return out, nil
  154. }
  155. // Server API for TsdbPlugin service
  156. type TsdbPluginServer interface {
  157. Get(context.Context, *TsdbRequest) (*TsdbResponse, error)
  158. }
  159. func RegisterTsdbPluginServer(s *grpc.Server, srv TsdbPluginServer) {
  160. s.RegisterService(&_TsdbPlugin_serviceDesc, srv)
  161. }
  162. func _TsdbPlugin_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  163. in := new(TsdbRequest)
  164. if err := dec(in); err != nil {
  165. return nil, err
  166. }
  167. if interceptor == nil {
  168. return srv.(TsdbPluginServer).Get(ctx, in)
  169. }
  170. info := &grpc.UnaryServerInfo{
  171. Server: srv,
  172. FullMethod: "/plugins.TsdbPlugin/Get",
  173. }
  174. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  175. return srv.(TsdbPluginServer).Get(ctx, req.(*TsdbRequest))
  176. }
  177. return interceptor(ctx, in, info, handler)
  178. }
  179. var _TsdbPlugin_serviceDesc = grpc.ServiceDesc{
  180. ServiceName: "plugins.TsdbPlugin",
  181. HandlerType: (*TsdbPluginServer)(nil),
  182. Methods: []grpc.MethodDesc{
  183. {
  184. MethodName: "Get",
  185. Handler: _TsdbPlugin_Get_Handler,
  186. },
  187. },
  188. Streams: []grpc.StreamDesc{},
  189. Metadata: "tsdb_plugin.proto",
  190. }
  191. func init() { proto1.RegisterFile("tsdb_plugin.proto", fileDescriptor0) }
  192. var fileDescriptor0 = []byte{
  193. // 280 bytes of a gzipped FileDescriptorProto
  194. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x51, 0xc1, 0x4e, 0x83, 0x40,
  195. 0x10, 0x0d, 0x50, 0x8a, 0x0c, 0xc6, 0xc4, 0xb1, 0x26, 0xa4, 0xf1, 0x40, 0x38, 0xd5, 0x68, 0x38,
  196. 0xe0, 0x0f, 0x18, 0x2f, 0x46, 0x4f, 0xba, 0xf5, 0xe4, 0xa5, 0x29, 0x61, 0xda, 0x90, 0x08, 0x4b,
  197. 0x77, 0x97, 0x43, 0x3f, 0xc8, 0xff, 0x34, 0xcc, 0xae, 0xad, 0xf5, 0xc4, 0xbc, 0xb7, 0x6f, 0xde,
  198. 0xcc, 0x1b, 0xe0, 0xd2, 0xe8, 0xba, 0x5a, 0xf5, 0x5f, 0xc3, 0xb6, 0xe9, 0x8a, 0x5e, 0x49, 0x23,
  199. 0x31, 0xb2, 0x48, 0xe7, 0x2b, 0x48, 0x3e, 0x74, 0x5d, 0x09, 0xda, 0x0d, 0xa4, 0x0d, 0x22, 0x4c,
  200. 0x36, 0x4a, 0xb6, 0xa9, 0x97, 0x79, 0x8b, 0x40, 0x70, 0x8d, 0x17, 0xe0, 0x1b, 0x99, 0xfa, 0xcc,
  201. 0xf8, 0x46, 0xe2, 0x3d, 0x44, 0xbb, 0x81, 0x54, 0x43, 0x3a, 0x0d, 0xb2, 0x60, 0x91, 0x94, 0x58,
  202. 0x38, 0xb7, 0x62, 0xb4, 0x7a, 0x1f, 0x48, 0xed, 0xc5, 0xaf, 0x24, 0xbf, 0x85, 0xf8, 0xc0, 0xe2,
  203. 0x0d, 0xc4, 0x23, 0xbf, 0x7f, 0xd5, 0xb2, 0xe3, 0x19, 0xb1, 0x38, 0x12, 0xf9, 0xb7, 0x07, 0xe7,
  204. 0x76, 0x19, 0xdd, 0xcb, 0x4e, 0x13, 0xce, 0x20, 0x24, 0xa5, 0xa4, 0x72, 0x52, 0x0b, 0x30, 0x83,
  205. 0x84, 0x8b, 0xa5, 0x51, 0x4d, 0xb7, 0xe5, 0xc5, 0x62, 0xf1, 0x97, 0x1a, 0xfb, 0x14, 0x6d, 0x5e,
  206. 0xea, 0x34, 0xb0, 0x7d, 0x0c, 0x70, 0x0e, 0x67, 0x2d, 0x99, 0x35, 0xcf, 0x9e, 0xf0, 0xc3, 0x01,
  207. 0xe3, 0x1d, 0x4c, 0xb5, 0x8d, 0x14, 0x72, 0xa4, 0xab, 0x93, 0x48, 0x4b, 0x7e, 0x12, 0x4e, 0x92,
  208. 0x67, 0x00, 0x47, 0x76, 0x3c, 0x59, 0xb7, 0x6e, 0xc9, 0xed, 0xc8, 0x75, 0xf9, 0x68, 0x15, 0x6f,
  209. 0xec, 0x81, 0x25, 0x04, 0xcf, 0x64, 0x70, 0x76, 0xe2, 0xe9, 0x2e, 0x3e, 0xbf, 0xfe, 0xc7, 0xda,
  210. 0xe8, 0x4f, 0xd1, 0x67, 0xc8, 0x7f, 0xaa, 0x9a, 0xf2, 0xe7, 0xe1, 0x27, 0x00, 0x00, 0xff, 0xff,
  211. 0x11, 0xda, 0x61, 0xe4, 0xc5, 0x01, 0x00, 0x00,
  212. }