started_service.pb.go 58 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906
  1. package daemon
  2. import (
  3. reflect "reflect"
  4. sync "sync"
  5. unsafe "unsafe"
  6. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  7. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  8. emptypb "google.golang.org/protobuf/types/known/emptypb"
  9. )
  10. const (
  11. // Verify that this generated code is sufficiently up-to-date.
  12. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  13. // Verify that runtime/protoimpl is sufficiently up-to-date.
  14. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  15. )
  16. type LogLevel int32
  17. const (
  18. LogLevel_PANIC LogLevel = 0
  19. LogLevel_FATAL LogLevel = 1
  20. LogLevel_ERROR LogLevel = 2
  21. LogLevel_WARN LogLevel = 3
  22. LogLevel_INFO LogLevel = 4
  23. LogLevel_DEBUG LogLevel = 5
  24. LogLevel_TRACE LogLevel = 6
  25. )
  26. // Enum value maps for LogLevel.
  27. var (
  28. LogLevel_name = map[int32]string{
  29. 0: "PANIC",
  30. 1: "FATAL",
  31. 2: "ERROR",
  32. 3: "WARN",
  33. 4: "INFO",
  34. 5: "DEBUG",
  35. 6: "TRACE",
  36. }
  37. LogLevel_value = map[string]int32{
  38. "PANIC": 0,
  39. "FATAL": 1,
  40. "ERROR": 2,
  41. "WARN": 3,
  42. "INFO": 4,
  43. "DEBUG": 5,
  44. "TRACE": 6,
  45. }
  46. )
  47. func (x LogLevel) Enum() *LogLevel {
  48. p := new(LogLevel)
  49. *p = x
  50. return p
  51. }
  52. func (x LogLevel) String() string {
  53. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  54. }
  55. func (LogLevel) Descriptor() protoreflect.EnumDescriptor {
  56. return file_daemon_started_service_proto_enumTypes[0].Descriptor()
  57. }
  58. func (LogLevel) Type() protoreflect.EnumType {
  59. return &file_daemon_started_service_proto_enumTypes[0]
  60. }
  61. func (x LogLevel) Number() protoreflect.EnumNumber {
  62. return protoreflect.EnumNumber(x)
  63. }
  64. // Deprecated: Use LogLevel.Descriptor instead.
  65. func (LogLevel) EnumDescriptor() ([]byte, []int) {
  66. return file_daemon_started_service_proto_rawDescGZIP(), []int{0}
  67. }
  68. type ConnectionFilter int32
  69. const (
  70. ConnectionFilter_ALL ConnectionFilter = 0
  71. ConnectionFilter_ACTIVE ConnectionFilter = 1
  72. ConnectionFilter_CLOSED ConnectionFilter = 2
  73. )
  74. // Enum value maps for ConnectionFilter.
  75. var (
  76. ConnectionFilter_name = map[int32]string{
  77. 0: "ALL",
  78. 1: "ACTIVE",
  79. 2: "CLOSED",
  80. }
  81. ConnectionFilter_value = map[string]int32{
  82. "ALL": 0,
  83. "ACTIVE": 1,
  84. "CLOSED": 2,
  85. }
  86. )
  87. func (x ConnectionFilter) Enum() *ConnectionFilter {
  88. p := new(ConnectionFilter)
  89. *p = x
  90. return p
  91. }
  92. func (x ConnectionFilter) String() string {
  93. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  94. }
  95. func (ConnectionFilter) Descriptor() protoreflect.EnumDescriptor {
  96. return file_daemon_started_service_proto_enumTypes[1].Descriptor()
  97. }
  98. func (ConnectionFilter) Type() protoreflect.EnumType {
  99. return &file_daemon_started_service_proto_enumTypes[1]
  100. }
  101. func (x ConnectionFilter) Number() protoreflect.EnumNumber {
  102. return protoreflect.EnumNumber(x)
  103. }
  104. // Deprecated: Use ConnectionFilter.Descriptor instead.
  105. func (ConnectionFilter) EnumDescriptor() ([]byte, []int) {
  106. return file_daemon_started_service_proto_rawDescGZIP(), []int{1}
  107. }
  108. type ConnectionSortBy int32
  109. const (
  110. ConnectionSortBy_DATE ConnectionSortBy = 0
  111. ConnectionSortBy_TRAFFIC ConnectionSortBy = 1
  112. ConnectionSortBy_TOTAL_TRAFFIC ConnectionSortBy = 2
  113. )
  114. // Enum value maps for ConnectionSortBy.
  115. var (
  116. ConnectionSortBy_name = map[int32]string{
  117. 0: "DATE",
  118. 1: "TRAFFIC",
  119. 2: "TOTAL_TRAFFIC",
  120. }
  121. ConnectionSortBy_value = map[string]int32{
  122. "DATE": 0,
  123. "TRAFFIC": 1,
  124. "TOTAL_TRAFFIC": 2,
  125. }
  126. )
  127. func (x ConnectionSortBy) Enum() *ConnectionSortBy {
  128. p := new(ConnectionSortBy)
  129. *p = x
  130. return p
  131. }
  132. func (x ConnectionSortBy) String() string {
  133. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  134. }
  135. func (ConnectionSortBy) Descriptor() protoreflect.EnumDescriptor {
  136. return file_daemon_started_service_proto_enumTypes[2].Descriptor()
  137. }
  138. func (ConnectionSortBy) Type() protoreflect.EnumType {
  139. return &file_daemon_started_service_proto_enumTypes[2]
  140. }
  141. func (x ConnectionSortBy) Number() protoreflect.EnumNumber {
  142. return protoreflect.EnumNumber(x)
  143. }
  144. // Deprecated: Use ConnectionSortBy.Descriptor instead.
  145. func (ConnectionSortBy) EnumDescriptor() ([]byte, []int) {
  146. return file_daemon_started_service_proto_rawDescGZIP(), []int{2}
  147. }
  148. type ServiceStatus_Type int32
  149. const (
  150. ServiceStatus_IDLE ServiceStatus_Type = 0
  151. ServiceStatus_STARTING ServiceStatus_Type = 1
  152. ServiceStatus_STARTED ServiceStatus_Type = 2
  153. ServiceStatus_STOPPING ServiceStatus_Type = 3
  154. ServiceStatus_FATAL ServiceStatus_Type = 4
  155. )
  156. // Enum value maps for ServiceStatus_Type.
  157. var (
  158. ServiceStatus_Type_name = map[int32]string{
  159. 0: "IDLE",
  160. 1: "STARTING",
  161. 2: "STARTED",
  162. 3: "STOPPING",
  163. 4: "FATAL",
  164. }
  165. ServiceStatus_Type_value = map[string]int32{
  166. "IDLE": 0,
  167. "STARTING": 1,
  168. "STARTED": 2,
  169. "STOPPING": 3,
  170. "FATAL": 4,
  171. }
  172. )
  173. func (x ServiceStatus_Type) Enum() *ServiceStatus_Type {
  174. p := new(ServiceStatus_Type)
  175. *p = x
  176. return p
  177. }
  178. func (x ServiceStatus_Type) String() string {
  179. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  180. }
  181. func (ServiceStatus_Type) Descriptor() protoreflect.EnumDescriptor {
  182. return file_daemon_started_service_proto_enumTypes[3].Descriptor()
  183. }
  184. func (ServiceStatus_Type) Type() protoreflect.EnumType {
  185. return &file_daemon_started_service_proto_enumTypes[3]
  186. }
  187. func (x ServiceStatus_Type) Number() protoreflect.EnumNumber {
  188. return protoreflect.EnumNumber(x)
  189. }
  190. // Deprecated: Use ServiceStatus_Type.Descriptor instead.
  191. func (ServiceStatus_Type) EnumDescriptor() ([]byte, []int) {
  192. return file_daemon_started_service_proto_rawDescGZIP(), []int{0, 0}
  193. }
  194. type ServiceStatus struct {
  195. state protoimpl.MessageState `protogen:"open.v1"`
  196. Status ServiceStatus_Type `protobuf:"varint,1,opt,name=status,proto3,enum=daemon.ServiceStatus_Type" json:"status,omitempty"`
  197. ErrorMessage string `protobuf:"bytes,2,opt,name=errorMessage,proto3" json:"errorMessage,omitempty"`
  198. unknownFields protoimpl.UnknownFields
  199. sizeCache protoimpl.SizeCache
  200. }
  201. func (x *ServiceStatus) Reset() {
  202. *x = ServiceStatus{}
  203. mi := &file_daemon_started_service_proto_msgTypes[0]
  204. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  205. ms.StoreMessageInfo(mi)
  206. }
  207. func (x *ServiceStatus) String() string {
  208. return protoimpl.X.MessageStringOf(x)
  209. }
  210. func (*ServiceStatus) ProtoMessage() {}
  211. func (x *ServiceStatus) ProtoReflect() protoreflect.Message {
  212. mi := &file_daemon_started_service_proto_msgTypes[0]
  213. if x != nil {
  214. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  215. if ms.LoadMessageInfo() == nil {
  216. ms.StoreMessageInfo(mi)
  217. }
  218. return ms
  219. }
  220. return mi.MessageOf(x)
  221. }
  222. // Deprecated: Use ServiceStatus.ProtoReflect.Descriptor instead.
  223. func (*ServiceStatus) Descriptor() ([]byte, []int) {
  224. return file_daemon_started_service_proto_rawDescGZIP(), []int{0}
  225. }
  226. func (x *ServiceStatus) GetStatus() ServiceStatus_Type {
  227. if x != nil {
  228. return x.Status
  229. }
  230. return ServiceStatus_IDLE
  231. }
  232. func (x *ServiceStatus) GetErrorMessage() string {
  233. if x != nil {
  234. return x.ErrorMessage
  235. }
  236. return ""
  237. }
  238. type ReloadServiceRequest struct {
  239. state protoimpl.MessageState `protogen:"open.v1"`
  240. NewProfileContent string `protobuf:"bytes,1,opt,name=newProfileContent,proto3" json:"newProfileContent,omitempty"`
  241. unknownFields protoimpl.UnknownFields
  242. sizeCache protoimpl.SizeCache
  243. }
  244. func (x *ReloadServiceRequest) Reset() {
  245. *x = ReloadServiceRequest{}
  246. mi := &file_daemon_started_service_proto_msgTypes[1]
  247. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  248. ms.StoreMessageInfo(mi)
  249. }
  250. func (x *ReloadServiceRequest) String() string {
  251. return protoimpl.X.MessageStringOf(x)
  252. }
  253. func (*ReloadServiceRequest) ProtoMessage() {}
  254. func (x *ReloadServiceRequest) ProtoReflect() protoreflect.Message {
  255. mi := &file_daemon_started_service_proto_msgTypes[1]
  256. if x != nil {
  257. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  258. if ms.LoadMessageInfo() == nil {
  259. ms.StoreMessageInfo(mi)
  260. }
  261. return ms
  262. }
  263. return mi.MessageOf(x)
  264. }
  265. // Deprecated: Use ReloadServiceRequest.ProtoReflect.Descriptor instead.
  266. func (*ReloadServiceRequest) Descriptor() ([]byte, []int) {
  267. return file_daemon_started_service_proto_rawDescGZIP(), []int{1}
  268. }
  269. func (x *ReloadServiceRequest) GetNewProfileContent() string {
  270. if x != nil {
  271. return x.NewProfileContent
  272. }
  273. return ""
  274. }
  275. type SubscribeStatusRequest struct {
  276. state protoimpl.MessageState `protogen:"open.v1"`
  277. Interval int64 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
  278. unknownFields protoimpl.UnknownFields
  279. sizeCache protoimpl.SizeCache
  280. }
  281. func (x *SubscribeStatusRequest) Reset() {
  282. *x = SubscribeStatusRequest{}
  283. mi := &file_daemon_started_service_proto_msgTypes[2]
  284. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  285. ms.StoreMessageInfo(mi)
  286. }
  287. func (x *SubscribeStatusRequest) String() string {
  288. return protoimpl.X.MessageStringOf(x)
  289. }
  290. func (*SubscribeStatusRequest) ProtoMessage() {}
  291. func (x *SubscribeStatusRequest) ProtoReflect() protoreflect.Message {
  292. mi := &file_daemon_started_service_proto_msgTypes[2]
  293. if x != nil {
  294. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  295. if ms.LoadMessageInfo() == nil {
  296. ms.StoreMessageInfo(mi)
  297. }
  298. return ms
  299. }
  300. return mi.MessageOf(x)
  301. }
  302. // Deprecated: Use SubscribeStatusRequest.ProtoReflect.Descriptor instead.
  303. func (*SubscribeStatusRequest) Descriptor() ([]byte, []int) {
  304. return file_daemon_started_service_proto_rawDescGZIP(), []int{2}
  305. }
  306. func (x *SubscribeStatusRequest) GetInterval() int64 {
  307. if x != nil {
  308. return x.Interval
  309. }
  310. return 0
  311. }
  312. type Log struct {
  313. state protoimpl.MessageState `protogen:"open.v1"`
  314. Messages []*Log_Message `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
  315. Reset_ bool `protobuf:"varint,2,opt,name=reset,proto3" json:"reset,omitempty"`
  316. unknownFields protoimpl.UnknownFields
  317. sizeCache protoimpl.SizeCache
  318. }
  319. func (x *Log) Reset() {
  320. *x = Log{}
  321. mi := &file_daemon_started_service_proto_msgTypes[3]
  322. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  323. ms.StoreMessageInfo(mi)
  324. }
  325. func (x *Log) String() string {
  326. return protoimpl.X.MessageStringOf(x)
  327. }
  328. func (*Log) ProtoMessage() {}
  329. func (x *Log) ProtoReflect() protoreflect.Message {
  330. mi := &file_daemon_started_service_proto_msgTypes[3]
  331. if x != nil {
  332. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  333. if ms.LoadMessageInfo() == nil {
  334. ms.StoreMessageInfo(mi)
  335. }
  336. return ms
  337. }
  338. return mi.MessageOf(x)
  339. }
  340. // Deprecated: Use Log.ProtoReflect.Descriptor instead.
  341. func (*Log) Descriptor() ([]byte, []int) {
  342. return file_daemon_started_service_proto_rawDescGZIP(), []int{3}
  343. }
  344. func (x *Log) GetMessages() []*Log_Message {
  345. if x != nil {
  346. return x.Messages
  347. }
  348. return nil
  349. }
  350. func (x *Log) GetReset_() bool {
  351. if x != nil {
  352. return x.Reset_
  353. }
  354. return false
  355. }
  356. type DefaultLogLevel struct {
  357. state protoimpl.MessageState `protogen:"open.v1"`
  358. Level LogLevel `protobuf:"varint,1,opt,name=level,proto3,enum=daemon.LogLevel" json:"level,omitempty"`
  359. unknownFields protoimpl.UnknownFields
  360. sizeCache protoimpl.SizeCache
  361. }
  362. func (x *DefaultLogLevel) Reset() {
  363. *x = DefaultLogLevel{}
  364. mi := &file_daemon_started_service_proto_msgTypes[4]
  365. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  366. ms.StoreMessageInfo(mi)
  367. }
  368. func (x *DefaultLogLevel) String() string {
  369. return protoimpl.X.MessageStringOf(x)
  370. }
  371. func (*DefaultLogLevel) ProtoMessage() {}
  372. func (x *DefaultLogLevel) ProtoReflect() protoreflect.Message {
  373. mi := &file_daemon_started_service_proto_msgTypes[4]
  374. if x != nil {
  375. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  376. if ms.LoadMessageInfo() == nil {
  377. ms.StoreMessageInfo(mi)
  378. }
  379. return ms
  380. }
  381. return mi.MessageOf(x)
  382. }
  383. // Deprecated: Use DefaultLogLevel.ProtoReflect.Descriptor instead.
  384. func (*DefaultLogLevel) Descriptor() ([]byte, []int) {
  385. return file_daemon_started_service_proto_rawDescGZIP(), []int{4}
  386. }
  387. func (x *DefaultLogLevel) GetLevel() LogLevel {
  388. if x != nil {
  389. return x.Level
  390. }
  391. return LogLevel_PANIC
  392. }
  393. type Status struct {
  394. state protoimpl.MessageState `protogen:"open.v1"`
  395. Memory uint64 `protobuf:"varint,1,opt,name=memory,proto3" json:"memory,omitempty"`
  396. Goroutines int32 `protobuf:"varint,2,opt,name=goroutines,proto3" json:"goroutines,omitempty"`
  397. ConnectionsIn int32 `protobuf:"varint,3,opt,name=connectionsIn,proto3" json:"connectionsIn,omitempty"`
  398. ConnectionsOut int32 `protobuf:"varint,4,opt,name=connectionsOut,proto3" json:"connectionsOut,omitempty"`
  399. TrafficAvailable bool `protobuf:"varint,5,opt,name=trafficAvailable,proto3" json:"trafficAvailable,omitempty"`
  400. Uplink int64 `protobuf:"varint,6,opt,name=uplink,proto3" json:"uplink,omitempty"`
  401. Downlink int64 `protobuf:"varint,7,opt,name=downlink,proto3" json:"downlink,omitempty"`
  402. UplinkTotal int64 `protobuf:"varint,8,opt,name=uplinkTotal,proto3" json:"uplinkTotal,omitempty"`
  403. DownlinkTotal int64 `protobuf:"varint,9,opt,name=downlinkTotal,proto3" json:"downlinkTotal,omitempty"`
  404. unknownFields protoimpl.UnknownFields
  405. sizeCache protoimpl.SizeCache
  406. }
  407. func (x *Status) Reset() {
  408. *x = Status{}
  409. mi := &file_daemon_started_service_proto_msgTypes[5]
  410. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  411. ms.StoreMessageInfo(mi)
  412. }
  413. func (x *Status) String() string {
  414. return protoimpl.X.MessageStringOf(x)
  415. }
  416. func (*Status) ProtoMessage() {}
  417. func (x *Status) ProtoReflect() protoreflect.Message {
  418. mi := &file_daemon_started_service_proto_msgTypes[5]
  419. if x != nil {
  420. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  421. if ms.LoadMessageInfo() == nil {
  422. ms.StoreMessageInfo(mi)
  423. }
  424. return ms
  425. }
  426. return mi.MessageOf(x)
  427. }
  428. // Deprecated: Use Status.ProtoReflect.Descriptor instead.
  429. func (*Status) Descriptor() ([]byte, []int) {
  430. return file_daemon_started_service_proto_rawDescGZIP(), []int{5}
  431. }
  432. func (x *Status) GetMemory() uint64 {
  433. if x != nil {
  434. return x.Memory
  435. }
  436. return 0
  437. }
  438. func (x *Status) GetGoroutines() int32 {
  439. if x != nil {
  440. return x.Goroutines
  441. }
  442. return 0
  443. }
  444. func (x *Status) GetConnectionsIn() int32 {
  445. if x != nil {
  446. return x.ConnectionsIn
  447. }
  448. return 0
  449. }
  450. func (x *Status) GetConnectionsOut() int32 {
  451. if x != nil {
  452. return x.ConnectionsOut
  453. }
  454. return 0
  455. }
  456. func (x *Status) GetTrafficAvailable() bool {
  457. if x != nil {
  458. return x.TrafficAvailable
  459. }
  460. return false
  461. }
  462. func (x *Status) GetUplink() int64 {
  463. if x != nil {
  464. return x.Uplink
  465. }
  466. return 0
  467. }
  468. func (x *Status) GetDownlink() int64 {
  469. if x != nil {
  470. return x.Downlink
  471. }
  472. return 0
  473. }
  474. func (x *Status) GetUplinkTotal() int64 {
  475. if x != nil {
  476. return x.UplinkTotal
  477. }
  478. return 0
  479. }
  480. func (x *Status) GetDownlinkTotal() int64 {
  481. if x != nil {
  482. return x.DownlinkTotal
  483. }
  484. return 0
  485. }
  486. type Groups struct {
  487. state protoimpl.MessageState `protogen:"open.v1"`
  488. Group []*Group `protobuf:"bytes,1,rep,name=group,proto3" json:"group,omitempty"`
  489. unknownFields protoimpl.UnknownFields
  490. sizeCache protoimpl.SizeCache
  491. }
  492. func (x *Groups) Reset() {
  493. *x = Groups{}
  494. mi := &file_daemon_started_service_proto_msgTypes[6]
  495. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  496. ms.StoreMessageInfo(mi)
  497. }
  498. func (x *Groups) String() string {
  499. return protoimpl.X.MessageStringOf(x)
  500. }
  501. func (*Groups) ProtoMessage() {}
  502. func (x *Groups) ProtoReflect() protoreflect.Message {
  503. mi := &file_daemon_started_service_proto_msgTypes[6]
  504. if x != nil {
  505. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  506. if ms.LoadMessageInfo() == nil {
  507. ms.StoreMessageInfo(mi)
  508. }
  509. return ms
  510. }
  511. return mi.MessageOf(x)
  512. }
  513. // Deprecated: Use Groups.ProtoReflect.Descriptor instead.
  514. func (*Groups) Descriptor() ([]byte, []int) {
  515. return file_daemon_started_service_proto_rawDescGZIP(), []int{6}
  516. }
  517. func (x *Groups) GetGroup() []*Group {
  518. if x != nil {
  519. return x.Group
  520. }
  521. return nil
  522. }
  523. type Group struct {
  524. state protoimpl.MessageState `protogen:"open.v1"`
  525. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  526. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
  527. Selectable bool `protobuf:"varint,3,opt,name=selectable,proto3" json:"selectable,omitempty"`
  528. Selected string `protobuf:"bytes,4,opt,name=selected,proto3" json:"selected,omitempty"`
  529. IsExpand bool `protobuf:"varint,5,opt,name=isExpand,proto3" json:"isExpand,omitempty"`
  530. Items []*GroupItem `protobuf:"bytes,6,rep,name=items,proto3" json:"items,omitempty"`
  531. unknownFields protoimpl.UnknownFields
  532. sizeCache protoimpl.SizeCache
  533. }
  534. func (x *Group) Reset() {
  535. *x = Group{}
  536. mi := &file_daemon_started_service_proto_msgTypes[7]
  537. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  538. ms.StoreMessageInfo(mi)
  539. }
  540. func (x *Group) String() string {
  541. return protoimpl.X.MessageStringOf(x)
  542. }
  543. func (*Group) ProtoMessage() {}
  544. func (x *Group) ProtoReflect() protoreflect.Message {
  545. mi := &file_daemon_started_service_proto_msgTypes[7]
  546. if x != nil {
  547. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  548. if ms.LoadMessageInfo() == nil {
  549. ms.StoreMessageInfo(mi)
  550. }
  551. return ms
  552. }
  553. return mi.MessageOf(x)
  554. }
  555. // Deprecated: Use Group.ProtoReflect.Descriptor instead.
  556. func (*Group) Descriptor() ([]byte, []int) {
  557. return file_daemon_started_service_proto_rawDescGZIP(), []int{7}
  558. }
  559. func (x *Group) GetTag() string {
  560. if x != nil {
  561. return x.Tag
  562. }
  563. return ""
  564. }
  565. func (x *Group) GetType() string {
  566. if x != nil {
  567. return x.Type
  568. }
  569. return ""
  570. }
  571. func (x *Group) GetSelectable() bool {
  572. if x != nil {
  573. return x.Selectable
  574. }
  575. return false
  576. }
  577. func (x *Group) GetSelected() string {
  578. if x != nil {
  579. return x.Selected
  580. }
  581. return ""
  582. }
  583. func (x *Group) GetIsExpand() bool {
  584. if x != nil {
  585. return x.IsExpand
  586. }
  587. return false
  588. }
  589. func (x *Group) GetItems() []*GroupItem {
  590. if x != nil {
  591. return x.Items
  592. }
  593. return nil
  594. }
  595. type GroupItem struct {
  596. state protoimpl.MessageState `protogen:"open.v1"`
  597. Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
  598. Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
  599. UrlTestTime int64 `protobuf:"varint,3,opt,name=urlTestTime,proto3" json:"urlTestTime,omitempty"`
  600. UrlTestDelay int32 `protobuf:"varint,4,opt,name=urlTestDelay,proto3" json:"urlTestDelay,omitempty"`
  601. unknownFields protoimpl.UnknownFields
  602. sizeCache protoimpl.SizeCache
  603. }
  604. func (x *GroupItem) Reset() {
  605. *x = GroupItem{}
  606. mi := &file_daemon_started_service_proto_msgTypes[8]
  607. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  608. ms.StoreMessageInfo(mi)
  609. }
  610. func (x *GroupItem) String() string {
  611. return protoimpl.X.MessageStringOf(x)
  612. }
  613. func (*GroupItem) ProtoMessage() {}
  614. func (x *GroupItem) ProtoReflect() protoreflect.Message {
  615. mi := &file_daemon_started_service_proto_msgTypes[8]
  616. if x != nil {
  617. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  618. if ms.LoadMessageInfo() == nil {
  619. ms.StoreMessageInfo(mi)
  620. }
  621. return ms
  622. }
  623. return mi.MessageOf(x)
  624. }
  625. // Deprecated: Use GroupItem.ProtoReflect.Descriptor instead.
  626. func (*GroupItem) Descriptor() ([]byte, []int) {
  627. return file_daemon_started_service_proto_rawDescGZIP(), []int{8}
  628. }
  629. func (x *GroupItem) GetTag() string {
  630. if x != nil {
  631. return x.Tag
  632. }
  633. return ""
  634. }
  635. func (x *GroupItem) GetType() string {
  636. if x != nil {
  637. return x.Type
  638. }
  639. return ""
  640. }
  641. func (x *GroupItem) GetUrlTestTime() int64 {
  642. if x != nil {
  643. return x.UrlTestTime
  644. }
  645. return 0
  646. }
  647. func (x *GroupItem) GetUrlTestDelay() int32 {
  648. if x != nil {
  649. return x.UrlTestDelay
  650. }
  651. return 0
  652. }
  653. type URLTestRequest struct {
  654. state protoimpl.MessageState `protogen:"open.v1"`
  655. OutboundTag string `protobuf:"bytes,1,opt,name=outboundTag,proto3" json:"outboundTag,omitempty"`
  656. unknownFields protoimpl.UnknownFields
  657. sizeCache protoimpl.SizeCache
  658. }
  659. func (x *URLTestRequest) Reset() {
  660. *x = URLTestRequest{}
  661. mi := &file_daemon_started_service_proto_msgTypes[9]
  662. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  663. ms.StoreMessageInfo(mi)
  664. }
  665. func (x *URLTestRequest) String() string {
  666. return protoimpl.X.MessageStringOf(x)
  667. }
  668. func (*URLTestRequest) ProtoMessage() {}
  669. func (x *URLTestRequest) ProtoReflect() protoreflect.Message {
  670. mi := &file_daemon_started_service_proto_msgTypes[9]
  671. if x != nil {
  672. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  673. if ms.LoadMessageInfo() == nil {
  674. ms.StoreMessageInfo(mi)
  675. }
  676. return ms
  677. }
  678. return mi.MessageOf(x)
  679. }
  680. // Deprecated: Use URLTestRequest.ProtoReflect.Descriptor instead.
  681. func (*URLTestRequest) Descriptor() ([]byte, []int) {
  682. return file_daemon_started_service_proto_rawDescGZIP(), []int{9}
  683. }
  684. func (x *URLTestRequest) GetOutboundTag() string {
  685. if x != nil {
  686. return x.OutboundTag
  687. }
  688. return ""
  689. }
  690. type SelectOutboundRequest struct {
  691. state protoimpl.MessageState `protogen:"open.v1"`
  692. GroupTag string `protobuf:"bytes,1,opt,name=groupTag,proto3" json:"groupTag,omitempty"`
  693. OutboundTag string `protobuf:"bytes,2,opt,name=outboundTag,proto3" json:"outboundTag,omitempty"`
  694. unknownFields protoimpl.UnknownFields
  695. sizeCache protoimpl.SizeCache
  696. }
  697. func (x *SelectOutboundRequest) Reset() {
  698. *x = SelectOutboundRequest{}
  699. mi := &file_daemon_started_service_proto_msgTypes[10]
  700. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  701. ms.StoreMessageInfo(mi)
  702. }
  703. func (x *SelectOutboundRequest) String() string {
  704. return protoimpl.X.MessageStringOf(x)
  705. }
  706. func (*SelectOutboundRequest) ProtoMessage() {}
  707. func (x *SelectOutboundRequest) ProtoReflect() protoreflect.Message {
  708. mi := &file_daemon_started_service_proto_msgTypes[10]
  709. if x != nil {
  710. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  711. if ms.LoadMessageInfo() == nil {
  712. ms.StoreMessageInfo(mi)
  713. }
  714. return ms
  715. }
  716. return mi.MessageOf(x)
  717. }
  718. // Deprecated: Use SelectOutboundRequest.ProtoReflect.Descriptor instead.
  719. func (*SelectOutboundRequest) Descriptor() ([]byte, []int) {
  720. return file_daemon_started_service_proto_rawDescGZIP(), []int{10}
  721. }
  722. func (x *SelectOutboundRequest) GetGroupTag() string {
  723. if x != nil {
  724. return x.GroupTag
  725. }
  726. return ""
  727. }
  728. func (x *SelectOutboundRequest) GetOutboundTag() string {
  729. if x != nil {
  730. return x.OutboundTag
  731. }
  732. return ""
  733. }
  734. type SetGroupExpandRequest struct {
  735. state protoimpl.MessageState `protogen:"open.v1"`
  736. GroupTag string `protobuf:"bytes,1,opt,name=groupTag,proto3" json:"groupTag,omitempty"`
  737. IsExpand bool `protobuf:"varint,2,opt,name=isExpand,proto3" json:"isExpand,omitempty"`
  738. unknownFields protoimpl.UnknownFields
  739. sizeCache protoimpl.SizeCache
  740. }
  741. func (x *SetGroupExpandRequest) Reset() {
  742. *x = SetGroupExpandRequest{}
  743. mi := &file_daemon_started_service_proto_msgTypes[11]
  744. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  745. ms.StoreMessageInfo(mi)
  746. }
  747. func (x *SetGroupExpandRequest) String() string {
  748. return protoimpl.X.MessageStringOf(x)
  749. }
  750. func (*SetGroupExpandRequest) ProtoMessage() {}
  751. func (x *SetGroupExpandRequest) ProtoReflect() protoreflect.Message {
  752. mi := &file_daemon_started_service_proto_msgTypes[11]
  753. if x != nil {
  754. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  755. if ms.LoadMessageInfo() == nil {
  756. ms.StoreMessageInfo(mi)
  757. }
  758. return ms
  759. }
  760. return mi.MessageOf(x)
  761. }
  762. // Deprecated: Use SetGroupExpandRequest.ProtoReflect.Descriptor instead.
  763. func (*SetGroupExpandRequest) Descriptor() ([]byte, []int) {
  764. return file_daemon_started_service_proto_rawDescGZIP(), []int{11}
  765. }
  766. func (x *SetGroupExpandRequest) GetGroupTag() string {
  767. if x != nil {
  768. return x.GroupTag
  769. }
  770. return ""
  771. }
  772. func (x *SetGroupExpandRequest) GetIsExpand() bool {
  773. if x != nil {
  774. return x.IsExpand
  775. }
  776. return false
  777. }
  778. type ClashMode struct {
  779. state protoimpl.MessageState `protogen:"open.v1"`
  780. Mode string `protobuf:"bytes,3,opt,name=mode,proto3" json:"mode,omitempty"`
  781. unknownFields protoimpl.UnknownFields
  782. sizeCache protoimpl.SizeCache
  783. }
  784. func (x *ClashMode) Reset() {
  785. *x = ClashMode{}
  786. mi := &file_daemon_started_service_proto_msgTypes[12]
  787. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  788. ms.StoreMessageInfo(mi)
  789. }
  790. func (x *ClashMode) String() string {
  791. return protoimpl.X.MessageStringOf(x)
  792. }
  793. func (*ClashMode) ProtoMessage() {}
  794. func (x *ClashMode) ProtoReflect() protoreflect.Message {
  795. mi := &file_daemon_started_service_proto_msgTypes[12]
  796. if x != nil {
  797. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  798. if ms.LoadMessageInfo() == nil {
  799. ms.StoreMessageInfo(mi)
  800. }
  801. return ms
  802. }
  803. return mi.MessageOf(x)
  804. }
  805. // Deprecated: Use ClashMode.ProtoReflect.Descriptor instead.
  806. func (*ClashMode) Descriptor() ([]byte, []int) {
  807. return file_daemon_started_service_proto_rawDescGZIP(), []int{12}
  808. }
  809. func (x *ClashMode) GetMode() string {
  810. if x != nil {
  811. return x.Mode
  812. }
  813. return ""
  814. }
  815. type ClashModeStatus struct {
  816. state protoimpl.MessageState `protogen:"open.v1"`
  817. ModeList []string `protobuf:"bytes,1,rep,name=modeList,proto3" json:"modeList,omitempty"`
  818. CurrentMode string `protobuf:"bytes,2,opt,name=currentMode,proto3" json:"currentMode,omitempty"`
  819. unknownFields protoimpl.UnknownFields
  820. sizeCache protoimpl.SizeCache
  821. }
  822. func (x *ClashModeStatus) Reset() {
  823. *x = ClashModeStatus{}
  824. mi := &file_daemon_started_service_proto_msgTypes[13]
  825. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  826. ms.StoreMessageInfo(mi)
  827. }
  828. func (x *ClashModeStatus) String() string {
  829. return protoimpl.X.MessageStringOf(x)
  830. }
  831. func (*ClashModeStatus) ProtoMessage() {}
  832. func (x *ClashModeStatus) ProtoReflect() protoreflect.Message {
  833. mi := &file_daemon_started_service_proto_msgTypes[13]
  834. if x != nil {
  835. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  836. if ms.LoadMessageInfo() == nil {
  837. ms.StoreMessageInfo(mi)
  838. }
  839. return ms
  840. }
  841. return mi.MessageOf(x)
  842. }
  843. // Deprecated: Use ClashModeStatus.ProtoReflect.Descriptor instead.
  844. func (*ClashModeStatus) Descriptor() ([]byte, []int) {
  845. return file_daemon_started_service_proto_rawDescGZIP(), []int{13}
  846. }
  847. func (x *ClashModeStatus) GetModeList() []string {
  848. if x != nil {
  849. return x.ModeList
  850. }
  851. return nil
  852. }
  853. func (x *ClashModeStatus) GetCurrentMode() string {
  854. if x != nil {
  855. return x.CurrentMode
  856. }
  857. return ""
  858. }
  859. type SystemProxyStatus struct {
  860. state protoimpl.MessageState `protogen:"open.v1"`
  861. Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"`
  862. Enabled bool `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
  863. unknownFields protoimpl.UnknownFields
  864. sizeCache protoimpl.SizeCache
  865. }
  866. func (x *SystemProxyStatus) Reset() {
  867. *x = SystemProxyStatus{}
  868. mi := &file_daemon_started_service_proto_msgTypes[14]
  869. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  870. ms.StoreMessageInfo(mi)
  871. }
  872. func (x *SystemProxyStatus) String() string {
  873. return protoimpl.X.MessageStringOf(x)
  874. }
  875. func (*SystemProxyStatus) ProtoMessage() {}
  876. func (x *SystemProxyStatus) ProtoReflect() protoreflect.Message {
  877. mi := &file_daemon_started_service_proto_msgTypes[14]
  878. if x != nil {
  879. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  880. if ms.LoadMessageInfo() == nil {
  881. ms.StoreMessageInfo(mi)
  882. }
  883. return ms
  884. }
  885. return mi.MessageOf(x)
  886. }
  887. // Deprecated: Use SystemProxyStatus.ProtoReflect.Descriptor instead.
  888. func (*SystemProxyStatus) Descriptor() ([]byte, []int) {
  889. return file_daemon_started_service_proto_rawDescGZIP(), []int{14}
  890. }
  891. func (x *SystemProxyStatus) GetAvailable() bool {
  892. if x != nil {
  893. return x.Available
  894. }
  895. return false
  896. }
  897. func (x *SystemProxyStatus) GetEnabled() bool {
  898. if x != nil {
  899. return x.Enabled
  900. }
  901. return false
  902. }
  903. type SetSystemProxyEnabledRequest struct {
  904. state protoimpl.MessageState `protogen:"open.v1"`
  905. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
  906. unknownFields protoimpl.UnknownFields
  907. sizeCache protoimpl.SizeCache
  908. }
  909. func (x *SetSystemProxyEnabledRequest) Reset() {
  910. *x = SetSystemProxyEnabledRequest{}
  911. mi := &file_daemon_started_service_proto_msgTypes[15]
  912. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  913. ms.StoreMessageInfo(mi)
  914. }
  915. func (x *SetSystemProxyEnabledRequest) String() string {
  916. return protoimpl.X.MessageStringOf(x)
  917. }
  918. func (*SetSystemProxyEnabledRequest) ProtoMessage() {}
  919. func (x *SetSystemProxyEnabledRequest) ProtoReflect() protoreflect.Message {
  920. mi := &file_daemon_started_service_proto_msgTypes[15]
  921. if x != nil {
  922. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  923. if ms.LoadMessageInfo() == nil {
  924. ms.StoreMessageInfo(mi)
  925. }
  926. return ms
  927. }
  928. return mi.MessageOf(x)
  929. }
  930. // Deprecated: Use SetSystemProxyEnabledRequest.ProtoReflect.Descriptor instead.
  931. func (*SetSystemProxyEnabledRequest) Descriptor() ([]byte, []int) {
  932. return file_daemon_started_service_proto_rawDescGZIP(), []int{15}
  933. }
  934. func (x *SetSystemProxyEnabledRequest) GetEnabled() bool {
  935. if x != nil {
  936. return x.Enabled
  937. }
  938. return false
  939. }
  940. type SubscribeConnectionsRequest struct {
  941. state protoimpl.MessageState `protogen:"open.v1"`
  942. Interval int64 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"`
  943. Filter ConnectionFilter `protobuf:"varint,2,opt,name=filter,proto3,enum=daemon.ConnectionFilter" json:"filter,omitempty"`
  944. SortBy ConnectionSortBy `protobuf:"varint,3,opt,name=sortBy,proto3,enum=daemon.ConnectionSortBy" json:"sortBy,omitempty"`
  945. unknownFields protoimpl.UnknownFields
  946. sizeCache protoimpl.SizeCache
  947. }
  948. func (x *SubscribeConnectionsRequest) Reset() {
  949. *x = SubscribeConnectionsRequest{}
  950. mi := &file_daemon_started_service_proto_msgTypes[16]
  951. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  952. ms.StoreMessageInfo(mi)
  953. }
  954. func (x *SubscribeConnectionsRequest) String() string {
  955. return protoimpl.X.MessageStringOf(x)
  956. }
  957. func (*SubscribeConnectionsRequest) ProtoMessage() {}
  958. func (x *SubscribeConnectionsRequest) ProtoReflect() protoreflect.Message {
  959. mi := &file_daemon_started_service_proto_msgTypes[16]
  960. if x != nil {
  961. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  962. if ms.LoadMessageInfo() == nil {
  963. ms.StoreMessageInfo(mi)
  964. }
  965. return ms
  966. }
  967. return mi.MessageOf(x)
  968. }
  969. // Deprecated: Use SubscribeConnectionsRequest.ProtoReflect.Descriptor instead.
  970. func (*SubscribeConnectionsRequest) Descriptor() ([]byte, []int) {
  971. return file_daemon_started_service_proto_rawDescGZIP(), []int{16}
  972. }
  973. func (x *SubscribeConnectionsRequest) GetInterval() int64 {
  974. if x != nil {
  975. return x.Interval
  976. }
  977. return 0
  978. }
  979. func (x *SubscribeConnectionsRequest) GetFilter() ConnectionFilter {
  980. if x != nil {
  981. return x.Filter
  982. }
  983. return ConnectionFilter_ALL
  984. }
  985. func (x *SubscribeConnectionsRequest) GetSortBy() ConnectionSortBy {
  986. if x != nil {
  987. return x.SortBy
  988. }
  989. return ConnectionSortBy_DATE
  990. }
  991. type Connections struct {
  992. state protoimpl.MessageState `protogen:"open.v1"`
  993. Connections []*Connection `protobuf:"bytes,1,rep,name=connections,proto3" json:"connections,omitempty"`
  994. unknownFields protoimpl.UnknownFields
  995. sizeCache protoimpl.SizeCache
  996. }
  997. func (x *Connections) Reset() {
  998. *x = Connections{}
  999. mi := &file_daemon_started_service_proto_msgTypes[17]
  1000. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1001. ms.StoreMessageInfo(mi)
  1002. }
  1003. func (x *Connections) String() string {
  1004. return protoimpl.X.MessageStringOf(x)
  1005. }
  1006. func (*Connections) ProtoMessage() {}
  1007. func (x *Connections) ProtoReflect() protoreflect.Message {
  1008. mi := &file_daemon_started_service_proto_msgTypes[17]
  1009. if x != nil {
  1010. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1011. if ms.LoadMessageInfo() == nil {
  1012. ms.StoreMessageInfo(mi)
  1013. }
  1014. return ms
  1015. }
  1016. return mi.MessageOf(x)
  1017. }
  1018. // Deprecated: Use Connections.ProtoReflect.Descriptor instead.
  1019. func (*Connections) Descriptor() ([]byte, []int) {
  1020. return file_daemon_started_service_proto_rawDescGZIP(), []int{17}
  1021. }
  1022. func (x *Connections) GetConnections() []*Connection {
  1023. if x != nil {
  1024. return x.Connections
  1025. }
  1026. return nil
  1027. }
  1028. type Connection struct {
  1029. state protoimpl.MessageState `protogen:"open.v1"`
  1030. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  1031. Inbound string `protobuf:"bytes,2,opt,name=inbound,proto3" json:"inbound,omitempty"`
  1032. InboundType string `protobuf:"bytes,3,opt,name=inboundType,proto3" json:"inboundType,omitempty"`
  1033. IpVersion int32 `protobuf:"varint,4,opt,name=ipVersion,proto3" json:"ipVersion,omitempty"`
  1034. Network string `protobuf:"bytes,5,opt,name=network,proto3" json:"network,omitempty"`
  1035. Source string `protobuf:"bytes,6,opt,name=source,proto3" json:"source,omitempty"`
  1036. Destination string `protobuf:"bytes,7,opt,name=destination,proto3" json:"destination,omitempty"`
  1037. Domain string `protobuf:"bytes,8,opt,name=domain,proto3" json:"domain,omitempty"`
  1038. Protocol string `protobuf:"bytes,9,opt,name=protocol,proto3" json:"protocol,omitempty"`
  1039. User string `protobuf:"bytes,10,opt,name=user,proto3" json:"user,omitempty"`
  1040. FromOutbound string `protobuf:"bytes,11,opt,name=fromOutbound,proto3" json:"fromOutbound,omitempty"`
  1041. CreatedAt int64 `protobuf:"varint,12,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
  1042. ClosedAt int64 `protobuf:"varint,13,opt,name=closedAt,proto3" json:"closedAt,omitempty"`
  1043. Uplink int64 `protobuf:"varint,14,opt,name=uplink,proto3" json:"uplink,omitempty"`
  1044. Downlink int64 `protobuf:"varint,15,opt,name=downlink,proto3" json:"downlink,omitempty"`
  1045. UplinkTotal int64 `protobuf:"varint,16,opt,name=uplinkTotal,proto3" json:"uplinkTotal,omitempty"`
  1046. DownlinkTotal int64 `protobuf:"varint,17,opt,name=downlinkTotal,proto3" json:"downlinkTotal,omitempty"`
  1047. Rule string `protobuf:"bytes,18,opt,name=rule,proto3" json:"rule,omitempty"`
  1048. Outbound string `protobuf:"bytes,19,opt,name=outbound,proto3" json:"outbound,omitempty"`
  1049. OutboundType string `protobuf:"bytes,20,opt,name=outboundType,proto3" json:"outboundType,omitempty"`
  1050. ChainList []string `protobuf:"bytes,21,rep,name=chainList,proto3" json:"chainList,omitempty"`
  1051. unknownFields protoimpl.UnknownFields
  1052. sizeCache protoimpl.SizeCache
  1053. }
  1054. func (x *Connection) Reset() {
  1055. *x = Connection{}
  1056. mi := &file_daemon_started_service_proto_msgTypes[18]
  1057. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1058. ms.StoreMessageInfo(mi)
  1059. }
  1060. func (x *Connection) String() string {
  1061. return protoimpl.X.MessageStringOf(x)
  1062. }
  1063. func (*Connection) ProtoMessage() {}
  1064. func (x *Connection) ProtoReflect() protoreflect.Message {
  1065. mi := &file_daemon_started_service_proto_msgTypes[18]
  1066. if x != nil {
  1067. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1068. if ms.LoadMessageInfo() == nil {
  1069. ms.StoreMessageInfo(mi)
  1070. }
  1071. return ms
  1072. }
  1073. return mi.MessageOf(x)
  1074. }
  1075. // Deprecated: Use Connection.ProtoReflect.Descriptor instead.
  1076. func (*Connection) Descriptor() ([]byte, []int) {
  1077. return file_daemon_started_service_proto_rawDescGZIP(), []int{18}
  1078. }
  1079. func (x *Connection) GetId() string {
  1080. if x != nil {
  1081. return x.Id
  1082. }
  1083. return ""
  1084. }
  1085. func (x *Connection) GetInbound() string {
  1086. if x != nil {
  1087. return x.Inbound
  1088. }
  1089. return ""
  1090. }
  1091. func (x *Connection) GetInboundType() string {
  1092. if x != nil {
  1093. return x.InboundType
  1094. }
  1095. return ""
  1096. }
  1097. func (x *Connection) GetIpVersion() int32 {
  1098. if x != nil {
  1099. return x.IpVersion
  1100. }
  1101. return 0
  1102. }
  1103. func (x *Connection) GetNetwork() string {
  1104. if x != nil {
  1105. return x.Network
  1106. }
  1107. return ""
  1108. }
  1109. func (x *Connection) GetSource() string {
  1110. if x != nil {
  1111. return x.Source
  1112. }
  1113. return ""
  1114. }
  1115. func (x *Connection) GetDestination() string {
  1116. if x != nil {
  1117. return x.Destination
  1118. }
  1119. return ""
  1120. }
  1121. func (x *Connection) GetDomain() string {
  1122. if x != nil {
  1123. return x.Domain
  1124. }
  1125. return ""
  1126. }
  1127. func (x *Connection) GetProtocol() string {
  1128. if x != nil {
  1129. return x.Protocol
  1130. }
  1131. return ""
  1132. }
  1133. func (x *Connection) GetUser() string {
  1134. if x != nil {
  1135. return x.User
  1136. }
  1137. return ""
  1138. }
  1139. func (x *Connection) GetFromOutbound() string {
  1140. if x != nil {
  1141. return x.FromOutbound
  1142. }
  1143. return ""
  1144. }
  1145. func (x *Connection) GetCreatedAt() int64 {
  1146. if x != nil {
  1147. return x.CreatedAt
  1148. }
  1149. return 0
  1150. }
  1151. func (x *Connection) GetClosedAt() int64 {
  1152. if x != nil {
  1153. return x.ClosedAt
  1154. }
  1155. return 0
  1156. }
  1157. func (x *Connection) GetUplink() int64 {
  1158. if x != nil {
  1159. return x.Uplink
  1160. }
  1161. return 0
  1162. }
  1163. func (x *Connection) GetDownlink() int64 {
  1164. if x != nil {
  1165. return x.Downlink
  1166. }
  1167. return 0
  1168. }
  1169. func (x *Connection) GetUplinkTotal() int64 {
  1170. if x != nil {
  1171. return x.UplinkTotal
  1172. }
  1173. return 0
  1174. }
  1175. func (x *Connection) GetDownlinkTotal() int64 {
  1176. if x != nil {
  1177. return x.DownlinkTotal
  1178. }
  1179. return 0
  1180. }
  1181. func (x *Connection) GetRule() string {
  1182. if x != nil {
  1183. return x.Rule
  1184. }
  1185. return ""
  1186. }
  1187. func (x *Connection) GetOutbound() string {
  1188. if x != nil {
  1189. return x.Outbound
  1190. }
  1191. return ""
  1192. }
  1193. func (x *Connection) GetOutboundType() string {
  1194. if x != nil {
  1195. return x.OutboundType
  1196. }
  1197. return ""
  1198. }
  1199. func (x *Connection) GetChainList() []string {
  1200. if x != nil {
  1201. return x.ChainList
  1202. }
  1203. return nil
  1204. }
  1205. type CloseConnectionRequest struct {
  1206. state protoimpl.MessageState `protogen:"open.v1"`
  1207. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  1208. unknownFields protoimpl.UnknownFields
  1209. sizeCache protoimpl.SizeCache
  1210. }
  1211. func (x *CloseConnectionRequest) Reset() {
  1212. *x = CloseConnectionRequest{}
  1213. mi := &file_daemon_started_service_proto_msgTypes[19]
  1214. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1215. ms.StoreMessageInfo(mi)
  1216. }
  1217. func (x *CloseConnectionRequest) String() string {
  1218. return protoimpl.X.MessageStringOf(x)
  1219. }
  1220. func (*CloseConnectionRequest) ProtoMessage() {}
  1221. func (x *CloseConnectionRequest) ProtoReflect() protoreflect.Message {
  1222. mi := &file_daemon_started_service_proto_msgTypes[19]
  1223. if x != nil {
  1224. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1225. if ms.LoadMessageInfo() == nil {
  1226. ms.StoreMessageInfo(mi)
  1227. }
  1228. return ms
  1229. }
  1230. return mi.MessageOf(x)
  1231. }
  1232. // Deprecated: Use CloseConnectionRequest.ProtoReflect.Descriptor instead.
  1233. func (*CloseConnectionRequest) Descriptor() ([]byte, []int) {
  1234. return file_daemon_started_service_proto_rawDescGZIP(), []int{19}
  1235. }
  1236. func (x *CloseConnectionRequest) GetId() string {
  1237. if x != nil {
  1238. return x.Id
  1239. }
  1240. return ""
  1241. }
  1242. type DeprecatedWarnings struct {
  1243. state protoimpl.MessageState `protogen:"open.v1"`
  1244. Warnings []*DeprecatedWarning `protobuf:"bytes,1,rep,name=warnings,proto3" json:"warnings,omitempty"`
  1245. unknownFields protoimpl.UnknownFields
  1246. sizeCache protoimpl.SizeCache
  1247. }
  1248. func (x *DeprecatedWarnings) Reset() {
  1249. *x = DeprecatedWarnings{}
  1250. mi := &file_daemon_started_service_proto_msgTypes[20]
  1251. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1252. ms.StoreMessageInfo(mi)
  1253. }
  1254. func (x *DeprecatedWarnings) String() string {
  1255. return protoimpl.X.MessageStringOf(x)
  1256. }
  1257. func (*DeprecatedWarnings) ProtoMessage() {}
  1258. func (x *DeprecatedWarnings) ProtoReflect() protoreflect.Message {
  1259. mi := &file_daemon_started_service_proto_msgTypes[20]
  1260. if x != nil {
  1261. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1262. if ms.LoadMessageInfo() == nil {
  1263. ms.StoreMessageInfo(mi)
  1264. }
  1265. return ms
  1266. }
  1267. return mi.MessageOf(x)
  1268. }
  1269. // Deprecated: Use DeprecatedWarnings.ProtoReflect.Descriptor instead.
  1270. func (*DeprecatedWarnings) Descriptor() ([]byte, []int) {
  1271. return file_daemon_started_service_proto_rawDescGZIP(), []int{20}
  1272. }
  1273. func (x *DeprecatedWarnings) GetWarnings() []*DeprecatedWarning {
  1274. if x != nil {
  1275. return x.Warnings
  1276. }
  1277. return nil
  1278. }
  1279. type DeprecatedWarning struct {
  1280. state protoimpl.MessageState `protogen:"open.v1"`
  1281. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  1282. Impending bool `protobuf:"varint,2,opt,name=impending,proto3" json:"impending,omitempty"`
  1283. MigrationLink string `protobuf:"bytes,3,opt,name=migrationLink,proto3" json:"migrationLink,omitempty"`
  1284. unknownFields protoimpl.UnknownFields
  1285. sizeCache protoimpl.SizeCache
  1286. }
  1287. func (x *DeprecatedWarning) Reset() {
  1288. *x = DeprecatedWarning{}
  1289. mi := &file_daemon_started_service_proto_msgTypes[21]
  1290. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1291. ms.StoreMessageInfo(mi)
  1292. }
  1293. func (x *DeprecatedWarning) String() string {
  1294. return protoimpl.X.MessageStringOf(x)
  1295. }
  1296. func (*DeprecatedWarning) ProtoMessage() {}
  1297. func (x *DeprecatedWarning) ProtoReflect() protoreflect.Message {
  1298. mi := &file_daemon_started_service_proto_msgTypes[21]
  1299. if x != nil {
  1300. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1301. if ms.LoadMessageInfo() == nil {
  1302. ms.StoreMessageInfo(mi)
  1303. }
  1304. return ms
  1305. }
  1306. return mi.MessageOf(x)
  1307. }
  1308. // Deprecated: Use DeprecatedWarning.ProtoReflect.Descriptor instead.
  1309. func (*DeprecatedWarning) Descriptor() ([]byte, []int) {
  1310. return file_daemon_started_service_proto_rawDescGZIP(), []int{21}
  1311. }
  1312. func (x *DeprecatedWarning) GetMessage() string {
  1313. if x != nil {
  1314. return x.Message
  1315. }
  1316. return ""
  1317. }
  1318. func (x *DeprecatedWarning) GetImpending() bool {
  1319. if x != nil {
  1320. return x.Impending
  1321. }
  1322. return false
  1323. }
  1324. func (x *DeprecatedWarning) GetMigrationLink() string {
  1325. if x != nil {
  1326. return x.MigrationLink
  1327. }
  1328. return ""
  1329. }
  1330. type Log_Message struct {
  1331. state protoimpl.MessageState `protogen:"open.v1"`
  1332. Level LogLevel `protobuf:"varint,1,opt,name=level,proto3,enum=daemon.LogLevel" json:"level,omitempty"`
  1333. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
  1334. unknownFields protoimpl.UnknownFields
  1335. sizeCache protoimpl.SizeCache
  1336. }
  1337. func (x *Log_Message) Reset() {
  1338. *x = Log_Message{}
  1339. mi := &file_daemon_started_service_proto_msgTypes[22]
  1340. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1341. ms.StoreMessageInfo(mi)
  1342. }
  1343. func (x *Log_Message) String() string {
  1344. return protoimpl.X.MessageStringOf(x)
  1345. }
  1346. func (*Log_Message) ProtoMessage() {}
  1347. func (x *Log_Message) ProtoReflect() protoreflect.Message {
  1348. mi := &file_daemon_started_service_proto_msgTypes[22]
  1349. if x != nil {
  1350. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  1351. if ms.LoadMessageInfo() == nil {
  1352. ms.StoreMessageInfo(mi)
  1353. }
  1354. return ms
  1355. }
  1356. return mi.MessageOf(x)
  1357. }
  1358. // Deprecated: Use Log_Message.ProtoReflect.Descriptor instead.
  1359. func (*Log_Message) Descriptor() ([]byte, []int) {
  1360. return file_daemon_started_service_proto_rawDescGZIP(), []int{3, 0}
  1361. }
  1362. func (x *Log_Message) GetLevel() LogLevel {
  1363. if x != nil {
  1364. return x.Level
  1365. }
  1366. return LogLevel_PANIC
  1367. }
  1368. func (x *Log_Message) GetMessage() string {
  1369. if x != nil {
  1370. return x.Message
  1371. }
  1372. return ""
  1373. }
  1374. var File_daemon_started_service_proto protoreflect.FileDescriptor
  1375. const file_daemon_started_service_proto_rawDesc = "" +
  1376. "\n" +
  1377. "\x1cdaemon/started_service.proto\x12\x06daemon\x1a\x1bgoogle/protobuf/empty.proto\x1a\x13daemon/helper.proto\"\xad\x01\n" +
  1378. "\rServiceStatus\x122\n" +
  1379. "\x06status\x18\x01 \x01(\x0e2\x1a.daemon.ServiceStatus.TypeR\x06status\x12\"\n" +
  1380. "\ferrorMessage\x18\x02 \x01(\tR\ferrorMessage\"D\n" +
  1381. "\x04Type\x12\b\n" +
  1382. "\x04IDLE\x10\x00\x12\f\n" +
  1383. "\bSTARTING\x10\x01\x12\v\n" +
  1384. "\aSTARTED\x10\x02\x12\f\n" +
  1385. "\bSTOPPING\x10\x03\x12\t\n" +
  1386. "\x05FATAL\x10\x04\"D\n" +
  1387. "\x14ReloadServiceRequest\x12,\n" +
  1388. "\x11newProfileContent\x18\x01 \x01(\tR\x11newProfileContent\"4\n" +
  1389. "\x16SubscribeStatusRequest\x12\x1a\n" +
  1390. "\binterval\x18\x01 \x01(\x03R\binterval\"\x99\x01\n" +
  1391. "\x03Log\x12/\n" +
  1392. "\bmessages\x18\x01 \x03(\v2\x13.daemon.Log.MessageR\bmessages\x12\x14\n" +
  1393. "\x05reset\x18\x02 \x01(\bR\x05reset\x1aK\n" +
  1394. "\aMessage\x12&\n" +
  1395. "\x05level\x18\x01 \x01(\x0e2\x10.daemon.LogLevelR\x05level\x12\x18\n" +
  1396. "\amessage\x18\x02 \x01(\tR\amessage\"9\n" +
  1397. "\x0fDefaultLogLevel\x12&\n" +
  1398. "\x05level\x18\x01 \x01(\x0e2\x10.daemon.LogLevelR\x05level\"\xb6\x02\n" +
  1399. "\x06Status\x12\x16\n" +
  1400. "\x06memory\x18\x01 \x01(\x04R\x06memory\x12\x1e\n" +
  1401. "\n" +
  1402. "goroutines\x18\x02 \x01(\x05R\n" +
  1403. "goroutines\x12$\n" +
  1404. "\rconnectionsIn\x18\x03 \x01(\x05R\rconnectionsIn\x12&\n" +
  1405. "\x0econnectionsOut\x18\x04 \x01(\x05R\x0econnectionsOut\x12*\n" +
  1406. "\x10trafficAvailable\x18\x05 \x01(\bR\x10trafficAvailable\x12\x16\n" +
  1407. "\x06uplink\x18\x06 \x01(\x03R\x06uplink\x12\x1a\n" +
  1408. "\bdownlink\x18\a \x01(\x03R\bdownlink\x12 \n" +
  1409. "\vuplinkTotal\x18\b \x01(\x03R\vuplinkTotal\x12$\n" +
  1410. "\rdownlinkTotal\x18\t \x01(\x03R\rdownlinkTotal\"-\n" +
  1411. "\x06Groups\x12#\n" +
  1412. "\x05group\x18\x01 \x03(\v2\r.daemon.GroupR\x05group\"\xae\x01\n" +
  1413. "\x05Group\x12\x10\n" +
  1414. "\x03tag\x18\x01 \x01(\tR\x03tag\x12\x12\n" +
  1415. "\x04type\x18\x02 \x01(\tR\x04type\x12\x1e\n" +
  1416. "\n" +
  1417. "selectable\x18\x03 \x01(\bR\n" +
  1418. "selectable\x12\x1a\n" +
  1419. "\bselected\x18\x04 \x01(\tR\bselected\x12\x1a\n" +
  1420. "\bisExpand\x18\x05 \x01(\bR\bisExpand\x12'\n" +
  1421. "\x05items\x18\x06 \x03(\v2\x11.daemon.GroupItemR\x05items\"w\n" +
  1422. "\tGroupItem\x12\x10\n" +
  1423. "\x03tag\x18\x01 \x01(\tR\x03tag\x12\x12\n" +
  1424. "\x04type\x18\x02 \x01(\tR\x04type\x12 \n" +
  1425. "\vurlTestTime\x18\x03 \x01(\x03R\vurlTestTime\x12\"\n" +
  1426. "\furlTestDelay\x18\x04 \x01(\x05R\furlTestDelay\"2\n" +
  1427. "\x0eURLTestRequest\x12 \n" +
  1428. "\voutboundTag\x18\x01 \x01(\tR\voutboundTag\"U\n" +
  1429. "\x15SelectOutboundRequest\x12\x1a\n" +
  1430. "\bgroupTag\x18\x01 \x01(\tR\bgroupTag\x12 \n" +
  1431. "\voutboundTag\x18\x02 \x01(\tR\voutboundTag\"O\n" +
  1432. "\x15SetGroupExpandRequest\x12\x1a\n" +
  1433. "\bgroupTag\x18\x01 \x01(\tR\bgroupTag\x12\x1a\n" +
  1434. "\bisExpand\x18\x02 \x01(\bR\bisExpand\"\x1f\n" +
  1435. "\tClashMode\x12\x12\n" +
  1436. "\x04mode\x18\x03 \x01(\tR\x04mode\"O\n" +
  1437. "\x0fClashModeStatus\x12\x1a\n" +
  1438. "\bmodeList\x18\x01 \x03(\tR\bmodeList\x12 \n" +
  1439. "\vcurrentMode\x18\x02 \x01(\tR\vcurrentMode\"K\n" +
  1440. "\x11SystemProxyStatus\x12\x1c\n" +
  1441. "\tavailable\x18\x01 \x01(\bR\tavailable\x12\x18\n" +
  1442. "\aenabled\x18\x02 \x01(\bR\aenabled\"8\n" +
  1443. "\x1cSetSystemProxyEnabledRequest\x12\x18\n" +
  1444. "\aenabled\x18\x01 \x01(\bR\aenabled\"\x9d\x01\n" +
  1445. "\x1bSubscribeConnectionsRequest\x12\x1a\n" +
  1446. "\binterval\x18\x01 \x01(\x03R\binterval\x120\n" +
  1447. "\x06filter\x18\x02 \x01(\x0e2\x18.daemon.ConnectionFilterR\x06filter\x120\n" +
  1448. "\x06sortBy\x18\x03 \x01(\x0e2\x18.daemon.ConnectionSortByR\x06sortBy\"C\n" +
  1449. "\vConnections\x124\n" +
  1450. "\vconnections\x18\x01 \x03(\v2\x12.daemon.ConnectionR\vconnections\"\xde\x04\n" +
  1451. "\n" +
  1452. "Connection\x12\x0e\n" +
  1453. "\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n" +
  1454. "\ainbound\x18\x02 \x01(\tR\ainbound\x12 \n" +
  1455. "\vinboundType\x18\x03 \x01(\tR\vinboundType\x12\x1c\n" +
  1456. "\tipVersion\x18\x04 \x01(\x05R\tipVersion\x12\x18\n" +
  1457. "\anetwork\x18\x05 \x01(\tR\anetwork\x12\x16\n" +
  1458. "\x06source\x18\x06 \x01(\tR\x06source\x12 \n" +
  1459. "\vdestination\x18\a \x01(\tR\vdestination\x12\x16\n" +
  1460. "\x06domain\x18\b \x01(\tR\x06domain\x12\x1a\n" +
  1461. "\bprotocol\x18\t \x01(\tR\bprotocol\x12\x12\n" +
  1462. "\x04user\x18\n" +
  1463. " \x01(\tR\x04user\x12\"\n" +
  1464. "\ffromOutbound\x18\v \x01(\tR\ffromOutbound\x12\x1c\n" +
  1465. "\tcreatedAt\x18\f \x01(\x03R\tcreatedAt\x12\x1a\n" +
  1466. "\bclosedAt\x18\r \x01(\x03R\bclosedAt\x12\x16\n" +
  1467. "\x06uplink\x18\x0e \x01(\x03R\x06uplink\x12\x1a\n" +
  1468. "\bdownlink\x18\x0f \x01(\x03R\bdownlink\x12 \n" +
  1469. "\vuplinkTotal\x18\x10 \x01(\x03R\vuplinkTotal\x12$\n" +
  1470. "\rdownlinkTotal\x18\x11 \x01(\x03R\rdownlinkTotal\x12\x12\n" +
  1471. "\x04rule\x18\x12 \x01(\tR\x04rule\x12\x1a\n" +
  1472. "\boutbound\x18\x13 \x01(\tR\boutbound\x12\"\n" +
  1473. "\foutboundType\x18\x14 \x01(\tR\foutboundType\x12\x1c\n" +
  1474. "\tchainList\x18\x15 \x03(\tR\tchainList\"(\n" +
  1475. "\x16CloseConnectionRequest\x12\x0e\n" +
  1476. "\x02id\x18\x01 \x01(\tR\x02id\"K\n" +
  1477. "\x12DeprecatedWarnings\x125\n" +
  1478. "\bwarnings\x18\x01 \x03(\v2\x19.daemon.DeprecatedWarningR\bwarnings\"q\n" +
  1479. "\x11DeprecatedWarning\x12\x18\n" +
  1480. "\amessage\x18\x01 \x01(\tR\amessage\x12\x1c\n" +
  1481. "\timpending\x18\x02 \x01(\bR\timpending\x12$\n" +
  1482. "\rmigrationLink\x18\x03 \x01(\tR\rmigrationLink*U\n" +
  1483. "\bLogLevel\x12\t\n" +
  1484. "\x05PANIC\x10\x00\x12\t\n" +
  1485. "\x05FATAL\x10\x01\x12\t\n" +
  1486. "\x05ERROR\x10\x02\x12\b\n" +
  1487. "\x04WARN\x10\x03\x12\b\n" +
  1488. "\x04INFO\x10\x04\x12\t\n" +
  1489. "\x05DEBUG\x10\x05\x12\t\n" +
  1490. "\x05TRACE\x10\x06*3\n" +
  1491. "\x10ConnectionFilter\x12\a\n" +
  1492. "\x03ALL\x10\x00\x12\n" +
  1493. "\n" +
  1494. "\x06ACTIVE\x10\x01\x12\n" +
  1495. "\n" +
  1496. "\x06CLOSED\x10\x02*<\n" +
  1497. "\x10ConnectionSortBy\x12\b\n" +
  1498. "\x04DATE\x10\x00\x12\v\n" +
  1499. "\aTRAFFIC\x10\x01\x12\x11\n" +
  1500. "\rTOTAL_TRAFFIC\x10\x022\xf8\v\n" +
  1501. "\x0eStartedService\x12=\n" +
  1502. "\vStopService\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12?\n" +
  1503. "\rReloadService\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\x12K\n" +
  1504. "\x16SubscribeServiceStatus\x12\x16.google.protobuf.Empty\x1a\x15.daemon.ServiceStatus\"\x000\x01\x127\n" +
  1505. "\fSubscribeLog\x12\x16.google.protobuf.Empty\x1a\v.daemon.Log\"\x000\x01\x12G\n" +
  1506. "\x12GetDefaultLogLevel\x12\x16.google.protobuf.Empty\x1a\x17.daemon.DefaultLogLevel\"\x00\x12E\n" +
  1507. "\x0fSubscribeStatus\x12\x1e.daemon.SubscribeStatusRequest\x1a\x0e.daemon.Status\"\x000\x01\x12=\n" +
  1508. "\x0fSubscribeGroups\x12\x16.google.protobuf.Empty\x1a\x0e.daemon.Groups\"\x000\x01\x12G\n" +
  1509. "\x12GetClashModeStatus\x12\x16.google.protobuf.Empty\x1a\x17.daemon.ClashModeStatus\"\x00\x12C\n" +
  1510. "\x12SubscribeClashMode\x12\x16.google.protobuf.Empty\x1a\x11.daemon.ClashMode\"\x000\x01\x12;\n" +
  1511. "\fSetClashMode\x12\x11.daemon.ClashMode\x1a\x16.google.protobuf.Empty\"\x00\x12;\n" +
  1512. "\aURLTest\x12\x16.daemon.URLTestRequest\x1a\x16.google.protobuf.Empty\"\x00\x12I\n" +
  1513. "\x0eSelectOutbound\x12\x1d.daemon.SelectOutboundRequest\x1a\x16.google.protobuf.Empty\"\x00\x12I\n" +
  1514. "\x0eSetGroupExpand\x12\x1d.daemon.SetGroupExpandRequest\x1a\x16.google.protobuf.Empty\"\x00\x12K\n" +
  1515. "\x14GetSystemProxyStatus\x12\x16.google.protobuf.Empty\x1a\x19.daemon.SystemProxyStatus\"\x00\x12W\n" +
  1516. "\x15SetSystemProxyEnabled\x12$.daemon.SetSystemProxyEnabledRequest\x1a\x16.google.protobuf.Empty\"\x00\x12T\n" +
  1517. "\x14SubscribeConnections\x12#.daemon.SubscribeConnectionsRequest\x1a\x13.daemon.Connections\"\x000\x01\x12K\n" +
  1518. "\x0fCloseConnection\x12\x1e.daemon.CloseConnectionRequest\x1a\x16.google.protobuf.Empty\"\x00\x12G\n" +
  1519. "\x13CloseAllConnections\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00\x12M\n" +
  1520. "\x15GetDeprecatedWarnings\x12\x16.google.protobuf.Empty\x1a\x1a.daemon.DeprecatedWarnings\"\x00\x12J\n" +
  1521. "\x15SubscribeHelperEvents\x12\x16.google.protobuf.Empty\x1a\x15.daemon.HelperRequest\"\x000\x01\x12F\n" +
  1522. "\x12SendHelperResponse\x12\x16.daemon.HelperResponse\x1a\x16.google.protobuf.Empty\"\x00B%Z#github.com/sagernet/sing-box/daemonb\x06proto3"
  1523. var (
  1524. file_daemon_started_service_proto_rawDescOnce sync.Once
  1525. file_daemon_started_service_proto_rawDescData []byte
  1526. )
  1527. func file_daemon_started_service_proto_rawDescGZIP() []byte {
  1528. file_daemon_started_service_proto_rawDescOnce.Do(func() {
  1529. file_daemon_started_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_daemon_started_service_proto_rawDesc), len(file_daemon_started_service_proto_rawDesc)))
  1530. })
  1531. return file_daemon_started_service_proto_rawDescData
  1532. }
  1533. var (
  1534. file_daemon_started_service_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
  1535. file_daemon_started_service_proto_msgTypes = make([]protoimpl.MessageInfo, 23)
  1536. file_daemon_started_service_proto_goTypes = []any{
  1537. (LogLevel)(0), // 0: daemon.LogLevel
  1538. (ConnectionFilter)(0), // 1: daemon.ConnectionFilter
  1539. (ConnectionSortBy)(0), // 2: daemon.ConnectionSortBy
  1540. (ServiceStatus_Type)(0), // 3: daemon.ServiceStatus.Type
  1541. (*ServiceStatus)(nil), // 4: daemon.ServiceStatus
  1542. (*ReloadServiceRequest)(nil), // 5: daemon.ReloadServiceRequest
  1543. (*SubscribeStatusRequest)(nil), // 6: daemon.SubscribeStatusRequest
  1544. (*Log)(nil), // 7: daemon.Log
  1545. (*DefaultLogLevel)(nil), // 8: daemon.DefaultLogLevel
  1546. (*Status)(nil), // 9: daemon.Status
  1547. (*Groups)(nil), // 10: daemon.Groups
  1548. (*Group)(nil), // 11: daemon.Group
  1549. (*GroupItem)(nil), // 12: daemon.GroupItem
  1550. (*URLTestRequest)(nil), // 13: daemon.URLTestRequest
  1551. (*SelectOutboundRequest)(nil), // 14: daemon.SelectOutboundRequest
  1552. (*SetGroupExpandRequest)(nil), // 15: daemon.SetGroupExpandRequest
  1553. (*ClashMode)(nil), // 16: daemon.ClashMode
  1554. (*ClashModeStatus)(nil), // 17: daemon.ClashModeStatus
  1555. (*SystemProxyStatus)(nil), // 18: daemon.SystemProxyStatus
  1556. (*SetSystemProxyEnabledRequest)(nil), // 19: daemon.SetSystemProxyEnabledRequest
  1557. (*SubscribeConnectionsRequest)(nil), // 20: daemon.SubscribeConnectionsRequest
  1558. (*Connections)(nil), // 21: daemon.Connections
  1559. (*Connection)(nil), // 22: daemon.Connection
  1560. (*CloseConnectionRequest)(nil), // 23: daemon.CloseConnectionRequest
  1561. (*DeprecatedWarnings)(nil), // 24: daemon.DeprecatedWarnings
  1562. (*DeprecatedWarning)(nil), // 25: daemon.DeprecatedWarning
  1563. (*Log_Message)(nil), // 26: daemon.Log.Message
  1564. (*emptypb.Empty)(nil), // 27: google.protobuf.Empty
  1565. (*HelperResponse)(nil), // 28: daemon.HelperResponse
  1566. (*HelperRequest)(nil), // 29: daemon.HelperRequest
  1567. }
  1568. )
  1569. var file_daemon_started_service_proto_depIdxs = []int32{
  1570. 3, // 0: daemon.ServiceStatus.status:type_name -> daemon.ServiceStatus.Type
  1571. 26, // 1: daemon.Log.messages:type_name -> daemon.Log.Message
  1572. 0, // 2: daemon.DefaultLogLevel.level:type_name -> daemon.LogLevel
  1573. 11, // 3: daemon.Groups.group:type_name -> daemon.Group
  1574. 12, // 4: daemon.Group.items:type_name -> daemon.GroupItem
  1575. 1, // 5: daemon.SubscribeConnectionsRequest.filter:type_name -> daemon.ConnectionFilter
  1576. 2, // 6: daemon.SubscribeConnectionsRequest.sortBy:type_name -> daemon.ConnectionSortBy
  1577. 22, // 7: daemon.Connections.connections:type_name -> daemon.Connection
  1578. 25, // 8: daemon.DeprecatedWarnings.warnings:type_name -> daemon.DeprecatedWarning
  1579. 0, // 9: daemon.Log.Message.level:type_name -> daemon.LogLevel
  1580. 27, // 10: daemon.StartedService.StopService:input_type -> google.protobuf.Empty
  1581. 27, // 11: daemon.StartedService.ReloadService:input_type -> google.protobuf.Empty
  1582. 27, // 12: daemon.StartedService.SubscribeServiceStatus:input_type -> google.protobuf.Empty
  1583. 27, // 13: daemon.StartedService.SubscribeLog:input_type -> google.protobuf.Empty
  1584. 27, // 14: daemon.StartedService.GetDefaultLogLevel:input_type -> google.protobuf.Empty
  1585. 6, // 15: daemon.StartedService.SubscribeStatus:input_type -> daemon.SubscribeStatusRequest
  1586. 27, // 16: daemon.StartedService.SubscribeGroups:input_type -> google.protobuf.Empty
  1587. 27, // 17: daemon.StartedService.GetClashModeStatus:input_type -> google.protobuf.Empty
  1588. 27, // 18: daemon.StartedService.SubscribeClashMode:input_type -> google.protobuf.Empty
  1589. 16, // 19: daemon.StartedService.SetClashMode:input_type -> daemon.ClashMode
  1590. 13, // 20: daemon.StartedService.URLTest:input_type -> daemon.URLTestRequest
  1591. 14, // 21: daemon.StartedService.SelectOutbound:input_type -> daemon.SelectOutboundRequest
  1592. 15, // 22: daemon.StartedService.SetGroupExpand:input_type -> daemon.SetGroupExpandRequest
  1593. 27, // 23: daemon.StartedService.GetSystemProxyStatus:input_type -> google.protobuf.Empty
  1594. 19, // 24: daemon.StartedService.SetSystemProxyEnabled:input_type -> daemon.SetSystemProxyEnabledRequest
  1595. 20, // 25: daemon.StartedService.SubscribeConnections:input_type -> daemon.SubscribeConnectionsRequest
  1596. 23, // 26: daemon.StartedService.CloseConnection:input_type -> daemon.CloseConnectionRequest
  1597. 27, // 27: daemon.StartedService.CloseAllConnections:input_type -> google.protobuf.Empty
  1598. 27, // 28: daemon.StartedService.GetDeprecatedWarnings:input_type -> google.protobuf.Empty
  1599. 27, // 29: daemon.StartedService.SubscribeHelperEvents:input_type -> google.protobuf.Empty
  1600. 28, // 30: daemon.StartedService.SendHelperResponse:input_type -> daemon.HelperResponse
  1601. 27, // 31: daemon.StartedService.StopService:output_type -> google.protobuf.Empty
  1602. 27, // 32: daemon.StartedService.ReloadService:output_type -> google.protobuf.Empty
  1603. 4, // 33: daemon.StartedService.SubscribeServiceStatus:output_type -> daemon.ServiceStatus
  1604. 7, // 34: daemon.StartedService.SubscribeLog:output_type -> daemon.Log
  1605. 8, // 35: daemon.StartedService.GetDefaultLogLevel:output_type -> daemon.DefaultLogLevel
  1606. 9, // 36: daemon.StartedService.SubscribeStatus:output_type -> daemon.Status
  1607. 10, // 37: daemon.StartedService.SubscribeGroups:output_type -> daemon.Groups
  1608. 17, // 38: daemon.StartedService.GetClashModeStatus:output_type -> daemon.ClashModeStatus
  1609. 16, // 39: daemon.StartedService.SubscribeClashMode:output_type -> daemon.ClashMode
  1610. 27, // 40: daemon.StartedService.SetClashMode:output_type -> google.protobuf.Empty
  1611. 27, // 41: daemon.StartedService.URLTest:output_type -> google.protobuf.Empty
  1612. 27, // 42: daemon.StartedService.SelectOutbound:output_type -> google.protobuf.Empty
  1613. 27, // 43: daemon.StartedService.SetGroupExpand:output_type -> google.protobuf.Empty
  1614. 18, // 44: daemon.StartedService.GetSystemProxyStatus:output_type -> daemon.SystemProxyStatus
  1615. 27, // 45: daemon.StartedService.SetSystemProxyEnabled:output_type -> google.protobuf.Empty
  1616. 21, // 46: daemon.StartedService.SubscribeConnections:output_type -> daemon.Connections
  1617. 27, // 47: daemon.StartedService.CloseConnection:output_type -> google.protobuf.Empty
  1618. 27, // 48: daemon.StartedService.CloseAllConnections:output_type -> google.protobuf.Empty
  1619. 24, // 49: daemon.StartedService.GetDeprecatedWarnings:output_type -> daemon.DeprecatedWarnings
  1620. 29, // 50: daemon.StartedService.SubscribeHelperEvents:output_type -> daemon.HelperRequest
  1621. 27, // 51: daemon.StartedService.SendHelperResponse:output_type -> google.protobuf.Empty
  1622. 31, // [31:52] is the sub-list for method output_type
  1623. 10, // [10:31] is the sub-list for method input_type
  1624. 10, // [10:10] is the sub-list for extension type_name
  1625. 10, // [10:10] is the sub-list for extension extendee
  1626. 0, // [0:10] is the sub-list for field type_name
  1627. }
  1628. func init() { file_daemon_started_service_proto_init() }
  1629. func file_daemon_started_service_proto_init() {
  1630. if File_daemon_started_service_proto != nil {
  1631. return
  1632. }
  1633. file_daemon_helper_proto_init()
  1634. type x struct{}
  1635. out := protoimpl.TypeBuilder{
  1636. File: protoimpl.DescBuilder{
  1637. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  1638. RawDescriptor: unsafe.Slice(unsafe.StringData(file_daemon_started_service_proto_rawDesc), len(file_daemon_started_service_proto_rawDesc)),
  1639. NumEnums: 4,
  1640. NumMessages: 23,
  1641. NumExtensions: 0,
  1642. NumServices: 1,
  1643. },
  1644. GoTypes: file_daemon_started_service_proto_goTypes,
  1645. DependencyIndexes: file_daemon_started_service_proto_depIdxs,
  1646. EnumInfos: file_daemon_started_service_proto_enumTypes,
  1647. MessageInfos: file_daemon_started_service_proto_msgTypes,
  1648. }.Build()
  1649. File_daemon_started_service_proto = out.File
  1650. file_daemon_started_service_proto_goTypes = nil
  1651. file_daemon_started_service_proto_depIdxs = nil
  1652. }