command.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: v2ray.com/core/app/stats/command/command.proto
  3. package command
  4. import (
  5. context "context"
  6. fmt "fmt"
  7. proto "github.com/golang/protobuf/proto"
  8. grpc "google.golang.org/grpc"
  9. codes "google.golang.org/grpc/codes"
  10. status "google.golang.org/grpc/status"
  11. math "math"
  12. )
  13. // Reference imports to suppress errors if they are not otherwise used.
  14. var _ = proto.Marshal
  15. var _ = fmt.Errorf
  16. var _ = math.Inf
  17. // This is a compile-time assertion to ensure that this generated file
  18. // is compatible with the proto package it is being compiled against.
  19. // A compilation error at this line likely means your copy of the
  20. // proto package needs to be updated.
  21. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  22. type GetStatsRequest struct {
  23. // Name of the stat counter.
  24. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  25. // Whether or not to reset the counter to fetching its value.
  26. Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"`
  27. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  28. XXX_unrecognized []byte `json:"-"`
  29. XXX_sizecache int32 `json:"-"`
  30. }
  31. func (m *GetStatsRequest) Reset() { *m = GetStatsRequest{} }
  32. func (m *GetStatsRequest) String() string { return proto.CompactTextString(m) }
  33. func (*GetStatsRequest) ProtoMessage() {}
  34. func (*GetStatsRequest) Descriptor() ([]byte, []int) {
  35. return fileDescriptor_c902411c4948f26b, []int{0}
  36. }
  37. func (m *GetStatsRequest) XXX_Unmarshal(b []byte) error {
  38. return xxx_messageInfo_GetStatsRequest.Unmarshal(m, b)
  39. }
  40. func (m *GetStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  41. return xxx_messageInfo_GetStatsRequest.Marshal(b, m, deterministic)
  42. }
  43. func (m *GetStatsRequest) XXX_Merge(src proto.Message) {
  44. xxx_messageInfo_GetStatsRequest.Merge(m, src)
  45. }
  46. func (m *GetStatsRequest) XXX_Size() int {
  47. return xxx_messageInfo_GetStatsRequest.Size(m)
  48. }
  49. func (m *GetStatsRequest) XXX_DiscardUnknown() {
  50. xxx_messageInfo_GetStatsRequest.DiscardUnknown(m)
  51. }
  52. var xxx_messageInfo_GetStatsRequest proto.InternalMessageInfo
  53. func (m *GetStatsRequest) GetName() string {
  54. if m != nil {
  55. return m.Name
  56. }
  57. return ""
  58. }
  59. func (m *GetStatsRequest) GetReset_() bool {
  60. if m != nil {
  61. return m.Reset_
  62. }
  63. return false
  64. }
  65. type Stat struct {
  66. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  67. Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
  68. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  69. XXX_unrecognized []byte `json:"-"`
  70. XXX_sizecache int32 `json:"-"`
  71. }
  72. func (m *Stat) Reset() { *m = Stat{} }
  73. func (m *Stat) String() string { return proto.CompactTextString(m) }
  74. func (*Stat) ProtoMessage() {}
  75. func (*Stat) Descriptor() ([]byte, []int) {
  76. return fileDescriptor_c902411c4948f26b, []int{1}
  77. }
  78. func (m *Stat) XXX_Unmarshal(b []byte) error {
  79. return xxx_messageInfo_Stat.Unmarshal(m, b)
  80. }
  81. func (m *Stat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  82. return xxx_messageInfo_Stat.Marshal(b, m, deterministic)
  83. }
  84. func (m *Stat) XXX_Merge(src proto.Message) {
  85. xxx_messageInfo_Stat.Merge(m, src)
  86. }
  87. func (m *Stat) XXX_Size() int {
  88. return xxx_messageInfo_Stat.Size(m)
  89. }
  90. func (m *Stat) XXX_DiscardUnknown() {
  91. xxx_messageInfo_Stat.DiscardUnknown(m)
  92. }
  93. var xxx_messageInfo_Stat proto.InternalMessageInfo
  94. func (m *Stat) GetName() string {
  95. if m != nil {
  96. return m.Name
  97. }
  98. return ""
  99. }
  100. func (m *Stat) GetValue() int64 {
  101. if m != nil {
  102. return m.Value
  103. }
  104. return 0
  105. }
  106. type GetStatsResponse struct {
  107. Stat *Stat `protobuf:"bytes,1,opt,name=stat,proto3" json:"stat,omitempty"`
  108. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  109. XXX_unrecognized []byte `json:"-"`
  110. XXX_sizecache int32 `json:"-"`
  111. }
  112. func (m *GetStatsResponse) Reset() { *m = GetStatsResponse{} }
  113. func (m *GetStatsResponse) String() string { return proto.CompactTextString(m) }
  114. func (*GetStatsResponse) ProtoMessage() {}
  115. func (*GetStatsResponse) Descriptor() ([]byte, []int) {
  116. return fileDescriptor_c902411c4948f26b, []int{2}
  117. }
  118. func (m *GetStatsResponse) XXX_Unmarshal(b []byte) error {
  119. return xxx_messageInfo_GetStatsResponse.Unmarshal(m, b)
  120. }
  121. func (m *GetStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  122. return xxx_messageInfo_GetStatsResponse.Marshal(b, m, deterministic)
  123. }
  124. func (m *GetStatsResponse) XXX_Merge(src proto.Message) {
  125. xxx_messageInfo_GetStatsResponse.Merge(m, src)
  126. }
  127. func (m *GetStatsResponse) XXX_Size() int {
  128. return xxx_messageInfo_GetStatsResponse.Size(m)
  129. }
  130. func (m *GetStatsResponse) XXX_DiscardUnknown() {
  131. xxx_messageInfo_GetStatsResponse.DiscardUnknown(m)
  132. }
  133. var xxx_messageInfo_GetStatsResponse proto.InternalMessageInfo
  134. func (m *GetStatsResponse) GetStat() *Stat {
  135. if m != nil {
  136. return m.Stat
  137. }
  138. return nil
  139. }
  140. type QueryStatsRequest struct {
  141. Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`
  142. Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"`
  143. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  144. XXX_unrecognized []byte `json:"-"`
  145. XXX_sizecache int32 `json:"-"`
  146. }
  147. func (m *QueryStatsRequest) Reset() { *m = QueryStatsRequest{} }
  148. func (m *QueryStatsRequest) String() string { return proto.CompactTextString(m) }
  149. func (*QueryStatsRequest) ProtoMessage() {}
  150. func (*QueryStatsRequest) Descriptor() ([]byte, []int) {
  151. return fileDescriptor_c902411c4948f26b, []int{3}
  152. }
  153. func (m *QueryStatsRequest) XXX_Unmarshal(b []byte) error {
  154. return xxx_messageInfo_QueryStatsRequest.Unmarshal(m, b)
  155. }
  156. func (m *QueryStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  157. return xxx_messageInfo_QueryStatsRequest.Marshal(b, m, deterministic)
  158. }
  159. func (m *QueryStatsRequest) XXX_Merge(src proto.Message) {
  160. xxx_messageInfo_QueryStatsRequest.Merge(m, src)
  161. }
  162. func (m *QueryStatsRequest) XXX_Size() int {
  163. return xxx_messageInfo_QueryStatsRequest.Size(m)
  164. }
  165. func (m *QueryStatsRequest) XXX_DiscardUnknown() {
  166. xxx_messageInfo_QueryStatsRequest.DiscardUnknown(m)
  167. }
  168. var xxx_messageInfo_QueryStatsRequest proto.InternalMessageInfo
  169. func (m *QueryStatsRequest) GetPattern() string {
  170. if m != nil {
  171. return m.Pattern
  172. }
  173. return ""
  174. }
  175. func (m *QueryStatsRequest) GetReset_() bool {
  176. if m != nil {
  177. return m.Reset_
  178. }
  179. return false
  180. }
  181. type QueryStatsResponse struct {
  182. Stat []*Stat `protobuf:"bytes,1,rep,name=stat,proto3" json:"stat,omitempty"`
  183. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  184. XXX_unrecognized []byte `json:"-"`
  185. XXX_sizecache int32 `json:"-"`
  186. }
  187. func (m *QueryStatsResponse) Reset() { *m = QueryStatsResponse{} }
  188. func (m *QueryStatsResponse) String() string { return proto.CompactTextString(m) }
  189. func (*QueryStatsResponse) ProtoMessage() {}
  190. func (*QueryStatsResponse) Descriptor() ([]byte, []int) {
  191. return fileDescriptor_c902411c4948f26b, []int{4}
  192. }
  193. func (m *QueryStatsResponse) XXX_Unmarshal(b []byte) error {
  194. return xxx_messageInfo_QueryStatsResponse.Unmarshal(m, b)
  195. }
  196. func (m *QueryStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  197. return xxx_messageInfo_QueryStatsResponse.Marshal(b, m, deterministic)
  198. }
  199. func (m *QueryStatsResponse) XXX_Merge(src proto.Message) {
  200. xxx_messageInfo_QueryStatsResponse.Merge(m, src)
  201. }
  202. func (m *QueryStatsResponse) XXX_Size() int {
  203. return xxx_messageInfo_QueryStatsResponse.Size(m)
  204. }
  205. func (m *QueryStatsResponse) XXX_DiscardUnknown() {
  206. xxx_messageInfo_QueryStatsResponse.DiscardUnknown(m)
  207. }
  208. var xxx_messageInfo_QueryStatsResponse proto.InternalMessageInfo
  209. func (m *QueryStatsResponse) GetStat() []*Stat {
  210. if m != nil {
  211. return m.Stat
  212. }
  213. return nil
  214. }
  215. type SysStatsRequest struct {
  216. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  217. XXX_unrecognized []byte `json:"-"`
  218. XXX_sizecache int32 `json:"-"`
  219. }
  220. func (m *SysStatsRequest) Reset() { *m = SysStatsRequest{} }
  221. func (m *SysStatsRequest) String() string { return proto.CompactTextString(m) }
  222. func (*SysStatsRequest) ProtoMessage() {}
  223. func (*SysStatsRequest) Descriptor() ([]byte, []int) {
  224. return fileDescriptor_c902411c4948f26b, []int{5}
  225. }
  226. func (m *SysStatsRequest) XXX_Unmarshal(b []byte) error {
  227. return xxx_messageInfo_SysStatsRequest.Unmarshal(m, b)
  228. }
  229. func (m *SysStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  230. return xxx_messageInfo_SysStatsRequest.Marshal(b, m, deterministic)
  231. }
  232. func (m *SysStatsRequest) XXX_Merge(src proto.Message) {
  233. xxx_messageInfo_SysStatsRequest.Merge(m, src)
  234. }
  235. func (m *SysStatsRequest) XXX_Size() int {
  236. return xxx_messageInfo_SysStatsRequest.Size(m)
  237. }
  238. func (m *SysStatsRequest) XXX_DiscardUnknown() {
  239. xxx_messageInfo_SysStatsRequest.DiscardUnknown(m)
  240. }
  241. var xxx_messageInfo_SysStatsRequest proto.InternalMessageInfo
  242. type SysStatsResponse struct {
  243. NumGoroutine uint32 `protobuf:"varint,1,opt,name=NumGoroutine,proto3" json:"NumGoroutine,omitempty"`
  244. NumGC uint32 `protobuf:"varint,2,opt,name=NumGC,proto3" json:"NumGC,omitempty"`
  245. Alloc uint64 `protobuf:"varint,3,opt,name=Alloc,proto3" json:"Alloc,omitempty"`
  246. TotalAlloc uint64 `protobuf:"varint,4,opt,name=TotalAlloc,proto3" json:"TotalAlloc,omitempty"`
  247. Sys uint64 `protobuf:"varint,5,opt,name=Sys,proto3" json:"Sys,omitempty"`
  248. Mallocs uint64 `protobuf:"varint,6,opt,name=Mallocs,proto3" json:"Mallocs,omitempty"`
  249. Frees uint64 `protobuf:"varint,7,opt,name=Frees,proto3" json:"Frees,omitempty"`
  250. LiveObjects uint64 `protobuf:"varint,8,opt,name=LiveObjects,proto3" json:"LiveObjects,omitempty"`
  251. PauseTotalNs uint64 `protobuf:"varint,9,opt,name=PauseTotalNs,proto3" json:"PauseTotalNs,omitempty"`
  252. Uptime uint32 `protobuf:"varint,10,opt,name=Uptime,proto3" json:"Uptime,omitempty"`
  253. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  254. XXX_unrecognized []byte `json:"-"`
  255. XXX_sizecache int32 `json:"-"`
  256. }
  257. func (m *SysStatsResponse) Reset() { *m = SysStatsResponse{} }
  258. func (m *SysStatsResponse) String() string { return proto.CompactTextString(m) }
  259. func (*SysStatsResponse) ProtoMessage() {}
  260. func (*SysStatsResponse) Descriptor() ([]byte, []int) {
  261. return fileDescriptor_c902411c4948f26b, []int{6}
  262. }
  263. func (m *SysStatsResponse) XXX_Unmarshal(b []byte) error {
  264. return xxx_messageInfo_SysStatsResponse.Unmarshal(m, b)
  265. }
  266. func (m *SysStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  267. return xxx_messageInfo_SysStatsResponse.Marshal(b, m, deterministic)
  268. }
  269. func (m *SysStatsResponse) XXX_Merge(src proto.Message) {
  270. xxx_messageInfo_SysStatsResponse.Merge(m, src)
  271. }
  272. func (m *SysStatsResponse) XXX_Size() int {
  273. return xxx_messageInfo_SysStatsResponse.Size(m)
  274. }
  275. func (m *SysStatsResponse) XXX_DiscardUnknown() {
  276. xxx_messageInfo_SysStatsResponse.DiscardUnknown(m)
  277. }
  278. var xxx_messageInfo_SysStatsResponse proto.InternalMessageInfo
  279. func (m *SysStatsResponse) GetNumGoroutine() uint32 {
  280. if m != nil {
  281. return m.NumGoroutine
  282. }
  283. return 0
  284. }
  285. func (m *SysStatsResponse) GetNumGC() uint32 {
  286. if m != nil {
  287. return m.NumGC
  288. }
  289. return 0
  290. }
  291. func (m *SysStatsResponse) GetAlloc() uint64 {
  292. if m != nil {
  293. return m.Alloc
  294. }
  295. return 0
  296. }
  297. func (m *SysStatsResponse) GetTotalAlloc() uint64 {
  298. if m != nil {
  299. return m.TotalAlloc
  300. }
  301. return 0
  302. }
  303. func (m *SysStatsResponse) GetSys() uint64 {
  304. if m != nil {
  305. return m.Sys
  306. }
  307. return 0
  308. }
  309. func (m *SysStatsResponse) GetMallocs() uint64 {
  310. if m != nil {
  311. return m.Mallocs
  312. }
  313. return 0
  314. }
  315. func (m *SysStatsResponse) GetFrees() uint64 {
  316. if m != nil {
  317. return m.Frees
  318. }
  319. return 0
  320. }
  321. func (m *SysStatsResponse) GetLiveObjects() uint64 {
  322. if m != nil {
  323. return m.LiveObjects
  324. }
  325. return 0
  326. }
  327. func (m *SysStatsResponse) GetPauseTotalNs() uint64 {
  328. if m != nil {
  329. return m.PauseTotalNs
  330. }
  331. return 0
  332. }
  333. func (m *SysStatsResponse) GetUptime() uint32 {
  334. if m != nil {
  335. return m.Uptime
  336. }
  337. return 0
  338. }
  339. type Config struct {
  340. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  341. XXX_unrecognized []byte `json:"-"`
  342. XXX_sizecache int32 `json:"-"`
  343. }
  344. func (m *Config) Reset() { *m = Config{} }
  345. func (m *Config) String() string { return proto.CompactTextString(m) }
  346. func (*Config) ProtoMessage() {}
  347. func (*Config) Descriptor() ([]byte, []int) {
  348. return fileDescriptor_c902411c4948f26b, []int{7}
  349. }
  350. func (m *Config) XXX_Unmarshal(b []byte) error {
  351. return xxx_messageInfo_Config.Unmarshal(m, b)
  352. }
  353. func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  354. return xxx_messageInfo_Config.Marshal(b, m, deterministic)
  355. }
  356. func (m *Config) XXX_Merge(src proto.Message) {
  357. xxx_messageInfo_Config.Merge(m, src)
  358. }
  359. func (m *Config) XXX_Size() int {
  360. return xxx_messageInfo_Config.Size(m)
  361. }
  362. func (m *Config) XXX_DiscardUnknown() {
  363. xxx_messageInfo_Config.DiscardUnknown(m)
  364. }
  365. var xxx_messageInfo_Config proto.InternalMessageInfo
  366. func init() {
  367. proto.RegisterType((*GetStatsRequest)(nil), "v2ray.core.app.stats.command.GetStatsRequest")
  368. proto.RegisterType((*Stat)(nil), "v2ray.core.app.stats.command.Stat")
  369. proto.RegisterType((*GetStatsResponse)(nil), "v2ray.core.app.stats.command.GetStatsResponse")
  370. proto.RegisterType((*QueryStatsRequest)(nil), "v2ray.core.app.stats.command.QueryStatsRequest")
  371. proto.RegisterType((*QueryStatsResponse)(nil), "v2ray.core.app.stats.command.QueryStatsResponse")
  372. proto.RegisterType((*SysStatsRequest)(nil), "v2ray.core.app.stats.command.SysStatsRequest")
  373. proto.RegisterType((*SysStatsResponse)(nil), "v2ray.core.app.stats.command.SysStatsResponse")
  374. proto.RegisterType((*Config)(nil), "v2ray.core.app.stats.command.Config")
  375. }
  376. func init() {
  377. proto.RegisterFile("v2ray.com/core/app/stats/command/command.proto", fileDescriptor_c902411c4948f26b)
  378. }
  379. var fileDescriptor_c902411c4948f26b = []byte{
  380. // 488 bytes of a gzipped FileDescriptorProto
  381. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x5d, 0x6f, 0xd3, 0x30,
  382. 0x14, 0x5d, 0xdb, 0xac, 0xed, 0x6e, 0x37, 0xad, 0xb3, 0x10, 0xb2, 0xa6, 0x09, 0x45, 0x7e, 0xea,
  383. 0x0b, 0xce, 0x54, 0x24, 0x5e, 0x78, 0x1a, 0x91, 0x98, 0x84, 0xca, 0x18, 0x29, 0xf0, 0xc0, 0x9b,
  384. 0x17, 0x2e, 0x28, 0xd0, 0xc4, 0x9e, 0xed, 0x54, 0xca, 0xdf, 0xe1, 0x91, 0x1f, 0xc5, 0x6f, 0x41,
  385. 0x76, 0x12, 0xfa, 0x31, 0xad, 0x1b, 0x4f, 0xf5, 0x39, 0xf7, 0x9e, 0xdc, 0x73, 0xed, 0xa3, 0x02,
  386. 0x5f, 0x4e, 0xb5, 0xa8, 0x78, 0x2a, 0xf3, 0x28, 0x95, 0x1a, 0x23, 0xa1, 0x54, 0x64, 0xac, 0xb0,
  387. 0x26, 0x4a, 0x65, 0x9e, 0x8b, 0xe2, 0x6b, 0xfb, 0xcb, 0x95, 0x96, 0x56, 0x92, 0xb3, 0xb6, 0x5f,
  388. 0x23, 0x17, 0x4a, 0x71, 0xdf, 0xcb, 0x9b, 0x1e, 0xf6, 0x0a, 0x8e, 0x2f, 0xd1, 0xce, 0x1d, 0x97,
  389. 0xe0, 0x6d, 0x89, 0xc6, 0x12, 0x02, 0x41, 0x21, 0x72, 0xa4, 0x9d, 0xb0, 0x33, 0x39, 0x48, 0xfc,
  390. 0x99, 0x3c, 0x81, 0x7d, 0x8d, 0x06, 0x2d, 0xed, 0x86, 0x9d, 0xc9, 0x30, 0xa9, 0x01, 0x3b, 0x87,
  391. 0xc0, 0x29, 0xef, 0x53, 0x2c, 0xc5, 0xa2, 0x44, 0xaf, 0xe8, 0x25, 0x35, 0x60, 0x6f, 0x61, 0xbc,
  392. 0x1a, 0x67, 0x94, 0x2c, 0x0c, 0x92, 0x97, 0x10, 0x38, 0x4f, 0x5e, 0x3d, 0x9a, 0x32, 0xbe, 0xcb,
  393. 0x2f, 0x77, 0xd2, 0xc4, 0xf7, 0xb3, 0x18, 0x4e, 0x3e, 0x94, 0xa8, 0xab, 0x0d, 0xf3, 0x14, 0x06,
  394. 0x4a, 0x58, 0x8b, 0xba, 0x68, 0xdc, 0xb4, 0xf0, 0x9e, 0x15, 0x66, 0x40, 0xd6, 0x3f, 0x72, 0xc7,
  395. 0x52, 0xef, 0xbf, 0x2c, 0x9d, 0xc0, 0xf1, 0xbc, 0x32, 0xeb, 0x86, 0xd8, 0xaf, 0x2e, 0x8c, 0x57,
  396. 0x5c, 0xf3, 0x7d, 0x06, 0x87, 0x57, 0x65, 0x7e, 0x29, 0xb5, 0x2c, 0x6d, 0x56, 0xd4, 0x17, 0x77,
  397. 0x94, 0x6c, 0x70, 0xce, 0xaf, 0xc3, 0xb1, 0xf7, 0x7b, 0x94, 0xd4, 0xc0, 0xb1, 0x17, 0x8b, 0x85,
  398. 0x4c, 0x69, 0x2f, 0xec, 0x4c, 0x82, 0xa4, 0x06, 0xe4, 0x19, 0xc0, 0x47, 0x69, 0xc5, 0xa2, 0x2e,
  399. 0x05, 0xbe, 0xb4, 0xc6, 0x90, 0x31, 0xf4, 0xe6, 0x95, 0xa1, 0xfb, 0xbe, 0xe0, 0x8e, 0xee, 0x9e,
  400. 0xde, 0x09, 0x57, 0x33, 0xb4, 0xef, 0xd9, 0x16, 0xba, 0x09, 0x6f, 0x34, 0xa2, 0xa1, 0x83, 0x7a,
  401. 0x82, 0x07, 0x24, 0x84, 0xd1, 0x2c, 0x5b, 0xe2, 0xfb, 0x9b, 0x1f, 0x98, 0x5a, 0x43, 0x87, 0xbe,
  402. 0xb6, 0x4e, 0xb9, 0x9d, 0xae, 0x45, 0x69, 0xd0, 0x8f, 0xbd, 0x32, 0xf4, 0xc0, 0xb7, 0x6c, 0x70,
  403. 0xe4, 0x29, 0xf4, 0x3f, 0x29, 0x9b, 0xe5, 0x48, 0xc1, 0x2f, 0xd5, 0x20, 0x36, 0x84, 0x7e, 0x2c,
  404. 0x8b, 0x6f, 0xd9, 0xf7, 0xe9, 0x9f, 0x2e, 0x1c, 0xfa, 0xbb, 0x9a, 0xa3, 0x5e, 0x66, 0x29, 0x92,
  405. 0x9f, 0x30, 0x6c, 0x13, 0x43, 0x9e, 0xef, 0x7e, 0x88, 0xad, 0x20, 0x9f, 0xf2, 0xc7, 0xb6, 0xd7,
  406. 0xaf, 0xc2, 0xf6, 0xc8, 0x2d, 0xc0, 0x2a, 0x0d, 0x24, 0xda, 0xad, 0xbf, 0x13, 0xbe, 0xd3, 0xf3,
  407. 0xc7, 0x0b, 0xfe, 0x8d, 0x2c, 0x60, 0xe4, 0x8c, 0x34, 0x09, 0x79, 0x68, 0xc5, 0xad, 0x74, 0x3d,
  408. 0xb4, 0xe2, 0x76, 0xf0, 0xd8, 0xde, 0xeb, 0x19, 0x84, 0xa9, 0xcc, 0x77, 0xca, 0xae, 0x3b, 0x5f,
  409. 0x06, 0xcd, 0xf1, 0x77, 0xf7, 0xec, 0xf3, 0x34, 0x11, 0x15, 0x8f, 0x5d, 0xe7, 0x85, 0x52, 0x3e,
  410. 0xed, 0x86, 0xc7, 0x75, 0xf9, 0xa6, 0xef, 0xff, 0x63, 0x5e, 0xfc, 0x0d, 0x00, 0x00, 0xff, 0xff,
  411. 0x25, 0xa8, 0x5c, 0x1b, 0x95, 0x04, 0x00, 0x00,
  412. }
  413. // Reference imports to suppress errors if they are not otherwise used.
  414. var _ context.Context
  415. var _ grpc.ClientConn
  416. // This is a compile-time assertion to ensure that this generated file
  417. // is compatible with the grpc package it is being compiled against.
  418. const _ = grpc.SupportPackageIsVersion4
  419. // StatsServiceClient is the client API for StatsService service.
  420. //
  421. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  422. type StatsServiceClient interface {
  423. GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error)
  424. QueryStats(ctx context.Context, in *QueryStatsRequest, opts ...grpc.CallOption) (*QueryStatsResponse, error)
  425. GetSysStats(ctx context.Context, in *SysStatsRequest, opts ...grpc.CallOption) (*SysStatsResponse, error)
  426. }
  427. type statsServiceClient struct {
  428. cc *grpc.ClientConn
  429. }
  430. func NewStatsServiceClient(cc *grpc.ClientConn) StatsServiceClient {
  431. return &statsServiceClient{cc}
  432. }
  433. func (c *statsServiceClient) GetStats(ctx context.Context, in *GetStatsRequest, opts ...grpc.CallOption) (*GetStatsResponse, error) {
  434. out := new(GetStatsResponse)
  435. err := c.cc.Invoke(ctx, "/v2ray.core.app.stats.command.StatsService/GetStats", in, out, opts...)
  436. if err != nil {
  437. return nil, err
  438. }
  439. return out, nil
  440. }
  441. func (c *statsServiceClient) QueryStats(ctx context.Context, in *QueryStatsRequest, opts ...grpc.CallOption) (*QueryStatsResponse, error) {
  442. out := new(QueryStatsResponse)
  443. err := c.cc.Invoke(ctx, "/v2ray.core.app.stats.command.StatsService/QueryStats", in, out, opts...)
  444. if err != nil {
  445. return nil, err
  446. }
  447. return out, nil
  448. }
  449. func (c *statsServiceClient) GetSysStats(ctx context.Context, in *SysStatsRequest, opts ...grpc.CallOption) (*SysStatsResponse, error) {
  450. out := new(SysStatsResponse)
  451. err := c.cc.Invoke(ctx, "/v2ray.core.app.stats.command.StatsService/GetSysStats", in, out, opts...)
  452. if err != nil {
  453. return nil, err
  454. }
  455. return out, nil
  456. }
  457. // StatsServiceServer is the server API for StatsService service.
  458. type StatsServiceServer interface {
  459. GetStats(context.Context, *GetStatsRequest) (*GetStatsResponse, error)
  460. QueryStats(context.Context, *QueryStatsRequest) (*QueryStatsResponse, error)
  461. GetSysStats(context.Context, *SysStatsRequest) (*SysStatsResponse, error)
  462. }
  463. // UnimplementedStatsServiceServer can be embedded to have forward compatible implementations.
  464. type UnimplementedStatsServiceServer struct {
  465. }
  466. func (*UnimplementedStatsServiceServer) GetStats(ctx context.Context, req *GetStatsRequest) (*GetStatsResponse, error) {
  467. return nil, status.Errorf(codes.Unimplemented, "method GetStats not implemented")
  468. }
  469. func (*UnimplementedStatsServiceServer) QueryStats(ctx context.Context, req *QueryStatsRequest) (*QueryStatsResponse, error) {
  470. return nil, status.Errorf(codes.Unimplemented, "method QueryStats not implemented")
  471. }
  472. func (*UnimplementedStatsServiceServer) GetSysStats(ctx context.Context, req *SysStatsRequest) (*SysStatsResponse, error) {
  473. return nil, status.Errorf(codes.Unimplemented, "method GetSysStats not implemented")
  474. }
  475. func RegisterStatsServiceServer(s *grpc.Server, srv StatsServiceServer) {
  476. s.RegisterService(&_StatsService_serviceDesc, srv)
  477. }
  478. func _StatsService_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  479. in := new(GetStatsRequest)
  480. if err := dec(in); err != nil {
  481. return nil, err
  482. }
  483. if interceptor == nil {
  484. return srv.(StatsServiceServer).GetStats(ctx, in)
  485. }
  486. info := &grpc.UnaryServerInfo{
  487. Server: srv,
  488. FullMethod: "/v2ray.core.app.stats.command.StatsService/GetStats",
  489. }
  490. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  491. return srv.(StatsServiceServer).GetStats(ctx, req.(*GetStatsRequest))
  492. }
  493. return interceptor(ctx, in, info, handler)
  494. }
  495. func _StatsService_QueryStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  496. in := new(QueryStatsRequest)
  497. if err := dec(in); err != nil {
  498. return nil, err
  499. }
  500. if interceptor == nil {
  501. return srv.(StatsServiceServer).QueryStats(ctx, in)
  502. }
  503. info := &grpc.UnaryServerInfo{
  504. Server: srv,
  505. FullMethod: "/v2ray.core.app.stats.command.StatsService/QueryStats",
  506. }
  507. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  508. return srv.(StatsServiceServer).QueryStats(ctx, req.(*QueryStatsRequest))
  509. }
  510. return interceptor(ctx, in, info, handler)
  511. }
  512. func _StatsService_GetSysStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  513. in := new(SysStatsRequest)
  514. if err := dec(in); err != nil {
  515. return nil, err
  516. }
  517. if interceptor == nil {
  518. return srv.(StatsServiceServer).GetSysStats(ctx, in)
  519. }
  520. info := &grpc.UnaryServerInfo{
  521. Server: srv,
  522. FullMethod: "/v2ray.core.app.stats.command.StatsService/GetSysStats",
  523. }
  524. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  525. return srv.(StatsServiceServer).GetSysStats(ctx, req.(*SysStatsRequest))
  526. }
  527. return interceptor(ctx, in, info, handler)
  528. }
  529. var _StatsService_serviceDesc = grpc.ServiceDesc{
  530. ServiceName: "v2ray.core.app.stats.command.StatsService",
  531. HandlerType: (*StatsServiceServer)(nil),
  532. Methods: []grpc.MethodDesc{
  533. {
  534. MethodName: "GetStats",
  535. Handler: _StatsService_GetStats_Handler,
  536. },
  537. {
  538. MethodName: "QueryStats",
  539. Handler: _StatsService_QueryStats_Handler,
  540. },
  541. {
  542. MethodName: "GetSysStats",
  543. Handler: _StatsService_GetSysStats_Handler,
  544. },
  545. },
  546. Streams: []grpc.StreamDesc{},
  547. Metadata: "v2ray.com/core/app/stats/command/command.proto",
  548. }