command.pb.go 26 KB

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