command.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.27.1
  4. // protoc v3.17.3
  5. // source: app/stats/command/command.proto
  6. package command
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type GetStatsRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  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. }
  28. func (x *GetStatsRequest) Reset() {
  29. *x = GetStatsRequest{}
  30. if protoimpl.UnsafeEnabled {
  31. mi := &file_app_stats_command_command_proto_msgTypes[0]
  32. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  33. ms.StoreMessageInfo(mi)
  34. }
  35. }
  36. func (x *GetStatsRequest) String() string {
  37. return protoimpl.X.MessageStringOf(x)
  38. }
  39. func (*GetStatsRequest) ProtoMessage() {}
  40. func (x *GetStatsRequest) ProtoReflect() protoreflect.Message {
  41. mi := &file_app_stats_command_command_proto_msgTypes[0]
  42. if protoimpl.UnsafeEnabled && x != nil {
  43. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  44. if ms.LoadMessageInfo() == nil {
  45. ms.StoreMessageInfo(mi)
  46. }
  47. return ms
  48. }
  49. return mi.MessageOf(x)
  50. }
  51. // Deprecated: Use GetStatsRequest.ProtoReflect.Descriptor instead.
  52. func (*GetStatsRequest) Descriptor() ([]byte, []int) {
  53. return file_app_stats_command_command_proto_rawDescGZIP(), []int{0}
  54. }
  55. func (x *GetStatsRequest) GetName() string {
  56. if x != nil {
  57. return x.Name
  58. }
  59. return ""
  60. }
  61. func (x *GetStatsRequest) GetReset_() bool {
  62. if x != nil {
  63. return x.Reset_
  64. }
  65. return false
  66. }
  67. type Stat struct {
  68. state protoimpl.MessageState
  69. sizeCache protoimpl.SizeCache
  70. unknownFields protoimpl.UnknownFields
  71. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  72. Value int64 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"`
  73. }
  74. func (x *Stat) Reset() {
  75. *x = Stat{}
  76. if protoimpl.UnsafeEnabled {
  77. mi := &file_app_stats_command_command_proto_msgTypes[1]
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. ms.StoreMessageInfo(mi)
  80. }
  81. }
  82. func (x *Stat) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*Stat) ProtoMessage() {}
  86. func (x *Stat) ProtoReflect() protoreflect.Message {
  87. mi := &file_app_stats_command_command_proto_msgTypes[1]
  88. if protoimpl.UnsafeEnabled && x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use Stat.ProtoReflect.Descriptor instead.
  98. func (*Stat) Descriptor() ([]byte, []int) {
  99. return file_app_stats_command_command_proto_rawDescGZIP(), []int{1}
  100. }
  101. func (x *Stat) GetName() string {
  102. if x != nil {
  103. return x.Name
  104. }
  105. return ""
  106. }
  107. func (x *Stat) GetValue() int64 {
  108. if x != nil {
  109. return x.Value
  110. }
  111. return 0
  112. }
  113. type GetStatsResponse struct {
  114. state protoimpl.MessageState
  115. sizeCache protoimpl.SizeCache
  116. unknownFields protoimpl.UnknownFields
  117. Stat *Stat `protobuf:"bytes,1,opt,name=stat,proto3" json:"stat,omitempty"`
  118. }
  119. func (x *GetStatsResponse) Reset() {
  120. *x = GetStatsResponse{}
  121. if protoimpl.UnsafeEnabled {
  122. mi := &file_app_stats_command_command_proto_msgTypes[2]
  123. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  124. ms.StoreMessageInfo(mi)
  125. }
  126. }
  127. func (x *GetStatsResponse) String() string {
  128. return protoimpl.X.MessageStringOf(x)
  129. }
  130. func (*GetStatsResponse) ProtoMessage() {}
  131. func (x *GetStatsResponse) ProtoReflect() protoreflect.Message {
  132. mi := &file_app_stats_command_command_proto_msgTypes[2]
  133. if protoimpl.UnsafeEnabled && x != nil {
  134. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  135. if ms.LoadMessageInfo() == nil {
  136. ms.StoreMessageInfo(mi)
  137. }
  138. return ms
  139. }
  140. return mi.MessageOf(x)
  141. }
  142. // Deprecated: Use GetStatsResponse.ProtoReflect.Descriptor instead.
  143. func (*GetStatsResponse) Descriptor() ([]byte, []int) {
  144. return file_app_stats_command_command_proto_rawDescGZIP(), []int{2}
  145. }
  146. func (x *GetStatsResponse) GetStat() *Stat {
  147. if x != nil {
  148. return x.Stat
  149. }
  150. return nil
  151. }
  152. type QueryStatsRequest struct {
  153. state protoimpl.MessageState
  154. sizeCache protoimpl.SizeCache
  155. unknownFields protoimpl.UnknownFields
  156. // Deprecated, use Patterns instead
  157. Pattern string `protobuf:"bytes,1,opt,name=pattern,proto3" json:"pattern,omitempty"`
  158. Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"`
  159. Patterns []string `protobuf:"bytes,3,rep,name=patterns,proto3" json:"patterns,omitempty"`
  160. Regexp bool `protobuf:"varint,4,opt,name=regexp,proto3" json:"regexp,omitempty"`
  161. }
  162. func (x *QueryStatsRequest) Reset() {
  163. *x = QueryStatsRequest{}
  164. if protoimpl.UnsafeEnabled {
  165. mi := &file_app_stats_command_command_proto_msgTypes[3]
  166. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  167. ms.StoreMessageInfo(mi)
  168. }
  169. }
  170. func (x *QueryStatsRequest) String() string {
  171. return protoimpl.X.MessageStringOf(x)
  172. }
  173. func (*QueryStatsRequest) ProtoMessage() {}
  174. func (x *QueryStatsRequest) ProtoReflect() protoreflect.Message {
  175. mi := &file_app_stats_command_command_proto_msgTypes[3]
  176. if protoimpl.UnsafeEnabled && x != nil {
  177. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  178. if ms.LoadMessageInfo() == nil {
  179. ms.StoreMessageInfo(mi)
  180. }
  181. return ms
  182. }
  183. return mi.MessageOf(x)
  184. }
  185. // Deprecated: Use QueryStatsRequest.ProtoReflect.Descriptor instead.
  186. func (*QueryStatsRequest) Descriptor() ([]byte, []int) {
  187. return file_app_stats_command_command_proto_rawDescGZIP(), []int{3}
  188. }
  189. func (x *QueryStatsRequest) GetPattern() string {
  190. if x != nil {
  191. return x.Pattern
  192. }
  193. return ""
  194. }
  195. func (x *QueryStatsRequest) GetReset_() bool {
  196. if x != nil {
  197. return x.Reset_
  198. }
  199. return false
  200. }
  201. func (x *QueryStatsRequest) GetPatterns() []string {
  202. if x != nil {
  203. return x.Patterns
  204. }
  205. return nil
  206. }
  207. func (x *QueryStatsRequest) GetRegexp() bool {
  208. if x != nil {
  209. return x.Regexp
  210. }
  211. return false
  212. }
  213. type QueryStatsResponse struct {
  214. state protoimpl.MessageState
  215. sizeCache protoimpl.SizeCache
  216. unknownFields protoimpl.UnknownFields
  217. Stat []*Stat `protobuf:"bytes,1,rep,name=stat,proto3" json:"stat,omitempty"`
  218. }
  219. func (x *QueryStatsResponse) Reset() {
  220. *x = QueryStatsResponse{}
  221. if protoimpl.UnsafeEnabled {
  222. mi := &file_app_stats_command_command_proto_msgTypes[4]
  223. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  224. ms.StoreMessageInfo(mi)
  225. }
  226. }
  227. func (x *QueryStatsResponse) String() string {
  228. return protoimpl.X.MessageStringOf(x)
  229. }
  230. func (*QueryStatsResponse) ProtoMessage() {}
  231. func (x *QueryStatsResponse) ProtoReflect() protoreflect.Message {
  232. mi := &file_app_stats_command_command_proto_msgTypes[4]
  233. if protoimpl.UnsafeEnabled && x != nil {
  234. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  235. if ms.LoadMessageInfo() == nil {
  236. ms.StoreMessageInfo(mi)
  237. }
  238. return ms
  239. }
  240. return mi.MessageOf(x)
  241. }
  242. // Deprecated: Use QueryStatsResponse.ProtoReflect.Descriptor instead.
  243. func (*QueryStatsResponse) Descriptor() ([]byte, []int) {
  244. return file_app_stats_command_command_proto_rawDescGZIP(), []int{4}
  245. }
  246. func (x *QueryStatsResponse) GetStat() []*Stat {
  247. if x != nil {
  248. return x.Stat
  249. }
  250. return nil
  251. }
  252. type SysStatsRequest struct {
  253. state protoimpl.MessageState
  254. sizeCache protoimpl.SizeCache
  255. unknownFields protoimpl.UnknownFields
  256. }
  257. func (x *SysStatsRequest) Reset() {
  258. *x = SysStatsRequest{}
  259. if protoimpl.UnsafeEnabled {
  260. mi := &file_app_stats_command_command_proto_msgTypes[5]
  261. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  262. ms.StoreMessageInfo(mi)
  263. }
  264. }
  265. func (x *SysStatsRequest) String() string {
  266. return protoimpl.X.MessageStringOf(x)
  267. }
  268. func (*SysStatsRequest) ProtoMessage() {}
  269. func (x *SysStatsRequest) ProtoReflect() protoreflect.Message {
  270. mi := &file_app_stats_command_command_proto_msgTypes[5]
  271. if protoimpl.UnsafeEnabled && x != nil {
  272. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  273. if ms.LoadMessageInfo() == nil {
  274. ms.StoreMessageInfo(mi)
  275. }
  276. return ms
  277. }
  278. return mi.MessageOf(x)
  279. }
  280. // Deprecated: Use SysStatsRequest.ProtoReflect.Descriptor instead.
  281. func (*SysStatsRequest) Descriptor() ([]byte, []int) {
  282. return file_app_stats_command_command_proto_rawDescGZIP(), []int{5}
  283. }
  284. type SysStatsResponse struct {
  285. state protoimpl.MessageState
  286. sizeCache protoimpl.SizeCache
  287. unknownFields protoimpl.UnknownFields
  288. NumGoroutine uint32 `protobuf:"varint,1,opt,name=NumGoroutine,proto3" json:"NumGoroutine,omitempty"`
  289. NumGC uint32 `protobuf:"varint,2,opt,name=NumGC,proto3" json:"NumGC,omitempty"`
  290. Alloc uint64 `protobuf:"varint,3,opt,name=Alloc,proto3" json:"Alloc,omitempty"`
  291. TotalAlloc uint64 `protobuf:"varint,4,opt,name=TotalAlloc,proto3" json:"TotalAlloc,omitempty"`
  292. Sys uint64 `protobuf:"varint,5,opt,name=Sys,proto3" json:"Sys,omitempty"`
  293. Mallocs uint64 `protobuf:"varint,6,opt,name=Mallocs,proto3" json:"Mallocs,omitempty"`
  294. Frees uint64 `protobuf:"varint,7,opt,name=Frees,proto3" json:"Frees,omitempty"`
  295. LiveObjects uint64 `protobuf:"varint,8,opt,name=LiveObjects,proto3" json:"LiveObjects,omitempty"`
  296. PauseTotalNs uint64 `protobuf:"varint,9,opt,name=PauseTotalNs,proto3" json:"PauseTotalNs,omitempty"`
  297. Uptime uint32 `protobuf:"varint,10,opt,name=Uptime,proto3" json:"Uptime,omitempty"`
  298. }
  299. func (x *SysStatsResponse) Reset() {
  300. *x = SysStatsResponse{}
  301. if protoimpl.UnsafeEnabled {
  302. mi := &file_app_stats_command_command_proto_msgTypes[6]
  303. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  304. ms.StoreMessageInfo(mi)
  305. }
  306. }
  307. func (x *SysStatsResponse) String() string {
  308. return protoimpl.X.MessageStringOf(x)
  309. }
  310. func (*SysStatsResponse) ProtoMessage() {}
  311. func (x *SysStatsResponse) ProtoReflect() protoreflect.Message {
  312. mi := &file_app_stats_command_command_proto_msgTypes[6]
  313. if protoimpl.UnsafeEnabled && x != nil {
  314. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  315. if ms.LoadMessageInfo() == nil {
  316. ms.StoreMessageInfo(mi)
  317. }
  318. return ms
  319. }
  320. return mi.MessageOf(x)
  321. }
  322. // Deprecated: Use SysStatsResponse.ProtoReflect.Descriptor instead.
  323. func (*SysStatsResponse) Descriptor() ([]byte, []int) {
  324. return file_app_stats_command_command_proto_rawDescGZIP(), []int{6}
  325. }
  326. func (x *SysStatsResponse) GetNumGoroutine() uint32 {
  327. if x != nil {
  328. return x.NumGoroutine
  329. }
  330. return 0
  331. }
  332. func (x *SysStatsResponse) GetNumGC() uint32 {
  333. if x != nil {
  334. return x.NumGC
  335. }
  336. return 0
  337. }
  338. func (x *SysStatsResponse) GetAlloc() uint64 {
  339. if x != nil {
  340. return x.Alloc
  341. }
  342. return 0
  343. }
  344. func (x *SysStatsResponse) GetTotalAlloc() uint64 {
  345. if x != nil {
  346. return x.TotalAlloc
  347. }
  348. return 0
  349. }
  350. func (x *SysStatsResponse) GetSys() uint64 {
  351. if x != nil {
  352. return x.Sys
  353. }
  354. return 0
  355. }
  356. func (x *SysStatsResponse) GetMallocs() uint64 {
  357. if x != nil {
  358. return x.Mallocs
  359. }
  360. return 0
  361. }
  362. func (x *SysStatsResponse) GetFrees() uint64 {
  363. if x != nil {
  364. return x.Frees
  365. }
  366. return 0
  367. }
  368. func (x *SysStatsResponse) GetLiveObjects() uint64 {
  369. if x != nil {
  370. return x.LiveObjects
  371. }
  372. return 0
  373. }
  374. func (x *SysStatsResponse) GetPauseTotalNs() uint64 {
  375. if x != nil {
  376. return x.PauseTotalNs
  377. }
  378. return 0
  379. }
  380. func (x *SysStatsResponse) GetUptime() uint32 {
  381. if x != nil {
  382. return x.Uptime
  383. }
  384. return 0
  385. }
  386. type Config struct {
  387. state protoimpl.MessageState
  388. sizeCache protoimpl.SizeCache
  389. unknownFields protoimpl.UnknownFields
  390. }
  391. func (x *Config) Reset() {
  392. *x = Config{}
  393. if protoimpl.UnsafeEnabled {
  394. mi := &file_app_stats_command_command_proto_msgTypes[7]
  395. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  396. ms.StoreMessageInfo(mi)
  397. }
  398. }
  399. func (x *Config) String() string {
  400. return protoimpl.X.MessageStringOf(x)
  401. }
  402. func (*Config) ProtoMessage() {}
  403. func (x *Config) ProtoReflect() protoreflect.Message {
  404. mi := &file_app_stats_command_command_proto_msgTypes[7]
  405. if protoimpl.UnsafeEnabled && x != nil {
  406. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  407. if ms.LoadMessageInfo() == nil {
  408. ms.StoreMessageInfo(mi)
  409. }
  410. return ms
  411. }
  412. return mi.MessageOf(x)
  413. }
  414. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  415. func (*Config) Descriptor() ([]byte, []int) {
  416. return file_app_stats_command_command_proto_rawDescGZIP(), []int{7}
  417. }
  418. var File_app_stats_command_command_proto protoreflect.FileDescriptor
  419. var file_app_stats_command_command_proto_rawDesc = []byte{
  420. 0x0a, 0x1f, 0x61, 0x70, 0x70, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d,
  421. 0x61, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  422. 0x6f, 0x12, 0x1c, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  423. 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x22,
  424. 0x3b, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
  425. 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  426. 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18,
  427. 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x22, 0x30, 0x0a, 0x04,
  428. 0x53, 0x74, 0x61, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
  429. 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  430. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x4a,
  431. 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  432. 0x73, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
  433. 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  434. 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e,
  435. 0x53, 0x74, 0x61, 0x74, 0x52, 0x04, 0x73, 0x74, 0x61, 0x74, 0x22, 0x77, 0x0a, 0x11, 0x51, 0x75,
  436. 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
  437. 0x18, 0x0a, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  438. 0x52, 0x07, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x65, 0x73,
  439. 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12,
  440. 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
  441. 0x09, 0x52, 0x08, 0x70, 0x61, 0x74, 0x74, 0x65, 0x72, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x72,
  442. 0x65, 0x67, 0x65, 0x78, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x67,
  443. 0x65, 0x78, 0x70, 0x22, 0x4c, 0x0a, 0x12, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74,
  444. 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x36, 0x0a, 0x04, 0x73, 0x74, 0x61,
  445. 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e,
  446. 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63,
  447. 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x52, 0x04, 0x73, 0x74, 0x61,
  448. 0x74, 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71,
  449. 0x75, 0x65, 0x73, 0x74, 0x22, 0xa2, 0x02, 0x0a, 0x10, 0x53, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74,
  450. 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x4e, 0x75, 0x6d,
  451. 0x47, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52,
  452. 0x0c, 0x4e, 0x75, 0x6d, 0x47, 0x6f, 0x72, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x65, 0x12, 0x14, 0x0a,
  453. 0x05, 0x4e, 0x75, 0x6d, 0x47, 0x43, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x4e, 0x75,
  454. 0x6d, 0x47, 0x43, 0x12, 0x14, 0x0a, 0x05, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x18, 0x03, 0x20, 0x01,
  455. 0x28, 0x04, 0x52, 0x05, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x12, 0x1e, 0x0a, 0x0a, 0x54, 0x6f, 0x74,
  456. 0x61, 0x6c, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x54,
  457. 0x6f, 0x74, 0x61, 0x6c, 0x41, 0x6c, 0x6c, 0x6f, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x53, 0x79, 0x73,
  458. 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x52, 0x03, 0x53, 0x79, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x4d,
  459. 0x61, 0x6c, 0x6c, 0x6f, 0x63, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x4d, 0x61,
  460. 0x6c, 0x6c, 0x6f, 0x63, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x46, 0x72, 0x65, 0x65, 0x73, 0x18, 0x07,
  461. 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x46, 0x72, 0x65, 0x65, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x4c,
  462. 0x69, 0x76, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04,
  463. 0x52, 0x0b, 0x4c, 0x69, 0x76, 0x65, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x22, 0x0a,
  464. 0x0c, 0x50, 0x61, 0x75, 0x73, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4e, 0x73, 0x18, 0x09, 0x20,
  465. 0x01, 0x28, 0x04, 0x52, 0x0c, 0x50, 0x61, 0x75, 0x73, 0x65, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x4e,
  466. 0x73, 0x12, 0x16, 0x0a, 0x06, 0x55, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28,
  467. 0x0d, 0x52, 0x06, 0x55, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x08, 0x0a, 0x06, 0x43, 0x6f, 0x6e,
  468. 0x66, 0x69, 0x67, 0x32, 0xde, 0x02, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x73, 0x53, 0x65, 0x72,
  469. 0x76, 0x69, 0x63, 0x65, 0x12, 0x6b, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73,
  470. 0x12, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  471. 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e,
  472. 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
  473. 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  474. 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x47,
  475. 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
  476. 0x00, 0x12, 0x71, 0x0a, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12,
  477. 0x2f, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70,
  478. 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x51,
  479. 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
  480. 0x1a, 0x30, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70,
  481. 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e,
  482. 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  483. 0x73, 0x65, 0x22, 0x00, 0x12, 0x6e, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x53, 0x74,
  484. 0x61, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65,
  485. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61,
  486. 0x6e, 0x64, 0x2e, 0x53, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65,
  487. 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x76, 0x32, 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e,
  488. 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e,
  489. 0x64, 0x2e, 0x53, 0x79, 0x73, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
  490. 0x73, 0x65, 0x22, 0x00, 0x42, 0x75, 0x0a, 0x20, 0x63, 0x6f, 0x6d, 0x2e, 0x76, 0x32, 0x72, 0x61,
  491. 0x79, 0x2e, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x73,
  492. 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68,
  493. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x76, 0x32, 0x66, 0x6c, 0x79, 0x2f, 0x76, 0x32, 0x72,
  494. 0x61, 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x76, 0x34, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x73,
  495. 0x74, 0x61, 0x74, 0x73, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0xaa, 0x02, 0x1c, 0x56,
  496. 0x32, 0x52, 0x61, 0x79, 0x2e, 0x43, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x53, 0x74,
  497. 0x61, 0x74, 0x73, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f,
  498. 0x74, 0x6f, 0x33,
  499. }
  500. var (
  501. file_app_stats_command_command_proto_rawDescOnce sync.Once
  502. file_app_stats_command_command_proto_rawDescData = file_app_stats_command_command_proto_rawDesc
  503. )
  504. func file_app_stats_command_command_proto_rawDescGZIP() []byte {
  505. file_app_stats_command_command_proto_rawDescOnce.Do(func() {
  506. file_app_stats_command_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_stats_command_command_proto_rawDescData)
  507. })
  508. return file_app_stats_command_command_proto_rawDescData
  509. }
  510. var file_app_stats_command_command_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
  511. var file_app_stats_command_command_proto_goTypes = []interface{}{
  512. (*GetStatsRequest)(nil), // 0: v2ray.core.app.stats.command.GetStatsRequest
  513. (*Stat)(nil), // 1: v2ray.core.app.stats.command.Stat
  514. (*GetStatsResponse)(nil), // 2: v2ray.core.app.stats.command.GetStatsResponse
  515. (*QueryStatsRequest)(nil), // 3: v2ray.core.app.stats.command.QueryStatsRequest
  516. (*QueryStatsResponse)(nil), // 4: v2ray.core.app.stats.command.QueryStatsResponse
  517. (*SysStatsRequest)(nil), // 5: v2ray.core.app.stats.command.SysStatsRequest
  518. (*SysStatsResponse)(nil), // 6: v2ray.core.app.stats.command.SysStatsResponse
  519. (*Config)(nil), // 7: v2ray.core.app.stats.command.Config
  520. }
  521. var file_app_stats_command_command_proto_depIdxs = []int32{
  522. 1, // 0: v2ray.core.app.stats.command.GetStatsResponse.stat:type_name -> v2ray.core.app.stats.command.Stat
  523. 1, // 1: v2ray.core.app.stats.command.QueryStatsResponse.stat:type_name -> v2ray.core.app.stats.command.Stat
  524. 0, // 2: v2ray.core.app.stats.command.StatsService.GetStats:input_type -> v2ray.core.app.stats.command.GetStatsRequest
  525. 3, // 3: v2ray.core.app.stats.command.StatsService.QueryStats:input_type -> v2ray.core.app.stats.command.QueryStatsRequest
  526. 5, // 4: v2ray.core.app.stats.command.StatsService.GetSysStats:input_type -> v2ray.core.app.stats.command.SysStatsRequest
  527. 2, // 5: v2ray.core.app.stats.command.StatsService.GetStats:output_type -> v2ray.core.app.stats.command.GetStatsResponse
  528. 4, // 6: v2ray.core.app.stats.command.StatsService.QueryStats:output_type -> v2ray.core.app.stats.command.QueryStatsResponse
  529. 6, // 7: v2ray.core.app.stats.command.StatsService.GetSysStats:output_type -> v2ray.core.app.stats.command.SysStatsResponse
  530. 5, // [5:8] is the sub-list for method output_type
  531. 2, // [2:5] is the sub-list for method input_type
  532. 2, // [2:2] is the sub-list for extension type_name
  533. 2, // [2:2] is the sub-list for extension extendee
  534. 0, // [0:2] is the sub-list for field type_name
  535. }
  536. func init() { file_app_stats_command_command_proto_init() }
  537. func file_app_stats_command_command_proto_init() {
  538. if File_app_stats_command_command_proto != nil {
  539. return
  540. }
  541. if !protoimpl.UnsafeEnabled {
  542. file_app_stats_command_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  543. switch v := v.(*GetStatsRequest); i {
  544. case 0:
  545. return &v.state
  546. case 1:
  547. return &v.sizeCache
  548. case 2:
  549. return &v.unknownFields
  550. default:
  551. return nil
  552. }
  553. }
  554. file_app_stats_command_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  555. switch v := v.(*Stat); i {
  556. case 0:
  557. return &v.state
  558. case 1:
  559. return &v.sizeCache
  560. case 2:
  561. return &v.unknownFields
  562. default:
  563. return nil
  564. }
  565. }
  566. file_app_stats_command_command_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  567. switch v := v.(*GetStatsResponse); i {
  568. case 0:
  569. return &v.state
  570. case 1:
  571. return &v.sizeCache
  572. case 2:
  573. return &v.unknownFields
  574. default:
  575. return nil
  576. }
  577. }
  578. file_app_stats_command_command_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  579. switch v := v.(*QueryStatsRequest); i {
  580. case 0:
  581. return &v.state
  582. case 1:
  583. return &v.sizeCache
  584. case 2:
  585. return &v.unknownFields
  586. default:
  587. return nil
  588. }
  589. }
  590. file_app_stats_command_command_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  591. switch v := v.(*QueryStatsResponse); i {
  592. case 0:
  593. return &v.state
  594. case 1:
  595. return &v.sizeCache
  596. case 2:
  597. return &v.unknownFields
  598. default:
  599. return nil
  600. }
  601. }
  602. file_app_stats_command_command_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  603. switch v := v.(*SysStatsRequest); i {
  604. case 0:
  605. return &v.state
  606. case 1:
  607. return &v.sizeCache
  608. case 2:
  609. return &v.unknownFields
  610. default:
  611. return nil
  612. }
  613. }
  614. file_app_stats_command_command_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  615. switch v := v.(*SysStatsResponse); i {
  616. case 0:
  617. return &v.state
  618. case 1:
  619. return &v.sizeCache
  620. case 2:
  621. return &v.unknownFields
  622. default:
  623. return nil
  624. }
  625. }
  626. file_app_stats_command_command_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  627. switch v := v.(*Config); i {
  628. case 0:
  629. return &v.state
  630. case 1:
  631. return &v.sizeCache
  632. case 2:
  633. return &v.unknownFields
  634. default:
  635. return nil
  636. }
  637. }
  638. }
  639. type x struct{}
  640. out := protoimpl.TypeBuilder{
  641. File: protoimpl.DescBuilder{
  642. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  643. RawDescriptor: file_app_stats_command_command_proto_rawDesc,
  644. NumEnums: 0,
  645. NumMessages: 8,
  646. NumExtensions: 0,
  647. NumServices: 1,
  648. },
  649. GoTypes: file_app_stats_command_command_proto_goTypes,
  650. DependencyIndexes: file_app_stats_command_command_proto_depIdxs,
  651. MessageInfos: file_app_stats_command_command_proto_msgTypes,
  652. }.Build()
  653. File_app_stats_command_command_proto = out.File
  654. file_app_stats_command_command_proto_rawDesc = nil
  655. file_app_stats_command_command_proto_goTypes = nil
  656. file_app_stats_command_command_proto_depIdxs = nil
  657. }