stats.pb.go 23 KB

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