helper.pb.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702
  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 SubscribeHelperRequestRequest struct {
  17. state protoimpl.MessageState `protogen:"open.v1"`
  18. AcceptGetWIFIStateRequests bool `protobuf:"varint,1,opt,name=acceptGetWIFIStateRequests,proto3" json:"acceptGetWIFIStateRequests,omitempty"`
  19. AcceptFindConnectionOwnerRequests bool `protobuf:"varint,2,opt,name=acceptFindConnectionOwnerRequests,proto3" json:"acceptFindConnectionOwnerRequests,omitempty"`
  20. AcceptSendNotificationRequests bool `protobuf:"varint,3,opt,name=acceptSendNotificationRequests,proto3" json:"acceptSendNotificationRequests,omitempty"`
  21. unknownFields protoimpl.UnknownFields
  22. sizeCache protoimpl.SizeCache
  23. }
  24. func (x *SubscribeHelperRequestRequest) Reset() {
  25. *x = SubscribeHelperRequestRequest{}
  26. mi := &file_daemon_helper_proto_msgTypes[0]
  27. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  28. ms.StoreMessageInfo(mi)
  29. }
  30. func (x *SubscribeHelperRequestRequest) String() string {
  31. return protoimpl.X.MessageStringOf(x)
  32. }
  33. func (*SubscribeHelperRequestRequest) ProtoMessage() {}
  34. func (x *SubscribeHelperRequestRequest) ProtoReflect() protoreflect.Message {
  35. mi := &file_daemon_helper_proto_msgTypes[0]
  36. if x != nil {
  37. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  38. if ms.LoadMessageInfo() == nil {
  39. ms.StoreMessageInfo(mi)
  40. }
  41. return ms
  42. }
  43. return mi.MessageOf(x)
  44. }
  45. // Deprecated: Use SubscribeHelperRequestRequest.ProtoReflect.Descriptor instead.
  46. func (*SubscribeHelperRequestRequest) Descriptor() ([]byte, []int) {
  47. return file_daemon_helper_proto_rawDescGZIP(), []int{0}
  48. }
  49. func (x *SubscribeHelperRequestRequest) GetAcceptGetWIFIStateRequests() bool {
  50. if x != nil {
  51. return x.AcceptGetWIFIStateRequests
  52. }
  53. return false
  54. }
  55. func (x *SubscribeHelperRequestRequest) GetAcceptFindConnectionOwnerRequests() bool {
  56. if x != nil {
  57. return x.AcceptFindConnectionOwnerRequests
  58. }
  59. return false
  60. }
  61. func (x *SubscribeHelperRequestRequest) GetAcceptSendNotificationRequests() bool {
  62. if x != nil {
  63. return x.AcceptSendNotificationRequests
  64. }
  65. return false
  66. }
  67. type HelperRequest struct {
  68. state protoimpl.MessageState `protogen:"open.v1"`
  69. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  70. // Types that are valid to be assigned to Request:
  71. //
  72. // *HelperRequest_GetWIFIState
  73. // *HelperRequest_FindConnectionOwner
  74. // *HelperRequest_SendNotification
  75. Request isHelperRequest_Request `protobuf_oneof:"request"`
  76. unknownFields protoimpl.UnknownFields
  77. sizeCache protoimpl.SizeCache
  78. }
  79. func (x *HelperRequest) Reset() {
  80. *x = HelperRequest{}
  81. mi := &file_daemon_helper_proto_msgTypes[1]
  82. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  83. ms.StoreMessageInfo(mi)
  84. }
  85. func (x *HelperRequest) String() string {
  86. return protoimpl.X.MessageStringOf(x)
  87. }
  88. func (*HelperRequest) ProtoMessage() {}
  89. func (x *HelperRequest) ProtoReflect() protoreflect.Message {
  90. mi := &file_daemon_helper_proto_msgTypes[1]
  91. if x != nil {
  92. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  93. if ms.LoadMessageInfo() == nil {
  94. ms.StoreMessageInfo(mi)
  95. }
  96. return ms
  97. }
  98. return mi.MessageOf(x)
  99. }
  100. // Deprecated: Use HelperRequest.ProtoReflect.Descriptor instead.
  101. func (*HelperRequest) Descriptor() ([]byte, []int) {
  102. return file_daemon_helper_proto_rawDescGZIP(), []int{1}
  103. }
  104. func (x *HelperRequest) GetId() int64 {
  105. if x != nil {
  106. return x.Id
  107. }
  108. return 0
  109. }
  110. func (x *HelperRequest) GetRequest() isHelperRequest_Request {
  111. if x != nil {
  112. return x.Request
  113. }
  114. return nil
  115. }
  116. func (x *HelperRequest) GetGetWIFIState() *emptypb.Empty {
  117. if x != nil {
  118. if x, ok := x.Request.(*HelperRequest_GetWIFIState); ok {
  119. return x.GetWIFIState
  120. }
  121. }
  122. return nil
  123. }
  124. func (x *HelperRequest) GetFindConnectionOwner() *FindConnectionOwnerRequest {
  125. if x != nil {
  126. if x, ok := x.Request.(*HelperRequest_FindConnectionOwner); ok {
  127. return x.FindConnectionOwner
  128. }
  129. }
  130. return nil
  131. }
  132. func (x *HelperRequest) GetSendNotification() *Notification {
  133. if x != nil {
  134. if x, ok := x.Request.(*HelperRequest_SendNotification); ok {
  135. return x.SendNotification
  136. }
  137. }
  138. return nil
  139. }
  140. type isHelperRequest_Request interface {
  141. isHelperRequest_Request()
  142. }
  143. type HelperRequest_GetWIFIState struct {
  144. GetWIFIState *emptypb.Empty `protobuf:"bytes,2,opt,name=getWIFIState,proto3,oneof"`
  145. }
  146. type HelperRequest_FindConnectionOwner struct {
  147. FindConnectionOwner *FindConnectionOwnerRequest `protobuf:"bytes,3,opt,name=findConnectionOwner,proto3,oneof"`
  148. }
  149. type HelperRequest_SendNotification struct {
  150. SendNotification *Notification `protobuf:"bytes,4,opt,name=sendNotification,proto3,oneof"`
  151. }
  152. func (*HelperRequest_GetWIFIState) isHelperRequest_Request() {}
  153. func (*HelperRequest_FindConnectionOwner) isHelperRequest_Request() {}
  154. func (*HelperRequest_SendNotification) isHelperRequest_Request() {}
  155. type FindConnectionOwnerRequest struct {
  156. state protoimpl.MessageState `protogen:"open.v1"`
  157. IpProtocol int32 `protobuf:"varint,1,opt,name=ipProtocol,proto3" json:"ipProtocol,omitempty"`
  158. SourceAddress string `protobuf:"bytes,2,opt,name=sourceAddress,proto3" json:"sourceAddress,omitempty"`
  159. SourcePort int32 `protobuf:"varint,3,opt,name=sourcePort,proto3" json:"sourcePort,omitempty"`
  160. DestinationAddress string `protobuf:"bytes,4,opt,name=destinationAddress,proto3" json:"destinationAddress,omitempty"`
  161. DestinationPort int32 `protobuf:"varint,5,opt,name=destinationPort,proto3" json:"destinationPort,omitempty"`
  162. unknownFields protoimpl.UnknownFields
  163. sizeCache protoimpl.SizeCache
  164. }
  165. func (x *FindConnectionOwnerRequest) Reset() {
  166. *x = FindConnectionOwnerRequest{}
  167. mi := &file_daemon_helper_proto_msgTypes[2]
  168. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  169. ms.StoreMessageInfo(mi)
  170. }
  171. func (x *FindConnectionOwnerRequest) String() string {
  172. return protoimpl.X.MessageStringOf(x)
  173. }
  174. func (*FindConnectionOwnerRequest) ProtoMessage() {}
  175. func (x *FindConnectionOwnerRequest) ProtoReflect() protoreflect.Message {
  176. mi := &file_daemon_helper_proto_msgTypes[2]
  177. if x != nil {
  178. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  179. if ms.LoadMessageInfo() == nil {
  180. ms.StoreMessageInfo(mi)
  181. }
  182. return ms
  183. }
  184. return mi.MessageOf(x)
  185. }
  186. // Deprecated: Use FindConnectionOwnerRequest.ProtoReflect.Descriptor instead.
  187. func (*FindConnectionOwnerRequest) Descriptor() ([]byte, []int) {
  188. return file_daemon_helper_proto_rawDescGZIP(), []int{2}
  189. }
  190. func (x *FindConnectionOwnerRequest) GetIpProtocol() int32 {
  191. if x != nil {
  192. return x.IpProtocol
  193. }
  194. return 0
  195. }
  196. func (x *FindConnectionOwnerRequest) GetSourceAddress() string {
  197. if x != nil {
  198. return x.SourceAddress
  199. }
  200. return ""
  201. }
  202. func (x *FindConnectionOwnerRequest) GetSourcePort() int32 {
  203. if x != nil {
  204. return x.SourcePort
  205. }
  206. return 0
  207. }
  208. func (x *FindConnectionOwnerRequest) GetDestinationAddress() string {
  209. if x != nil {
  210. return x.DestinationAddress
  211. }
  212. return ""
  213. }
  214. func (x *FindConnectionOwnerRequest) GetDestinationPort() int32 {
  215. if x != nil {
  216. return x.DestinationPort
  217. }
  218. return 0
  219. }
  220. type Notification struct {
  221. state protoimpl.MessageState `protogen:"open.v1"`
  222. Identifier string `protobuf:"bytes,1,opt,name=identifier,proto3" json:"identifier,omitempty"`
  223. TypeName string `protobuf:"bytes,2,opt,name=typeName,proto3" json:"typeName,omitempty"`
  224. TypeId int32 `protobuf:"varint,3,opt,name=typeId,proto3" json:"typeId,omitempty"`
  225. Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
  226. Subtitle string `protobuf:"bytes,5,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
  227. Body string `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
  228. OpenURL string `protobuf:"bytes,7,opt,name=openURL,proto3" json:"openURL,omitempty"`
  229. unknownFields protoimpl.UnknownFields
  230. sizeCache protoimpl.SizeCache
  231. }
  232. func (x *Notification) Reset() {
  233. *x = Notification{}
  234. mi := &file_daemon_helper_proto_msgTypes[3]
  235. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  236. ms.StoreMessageInfo(mi)
  237. }
  238. func (x *Notification) String() string {
  239. return protoimpl.X.MessageStringOf(x)
  240. }
  241. func (*Notification) ProtoMessage() {}
  242. func (x *Notification) ProtoReflect() protoreflect.Message {
  243. mi := &file_daemon_helper_proto_msgTypes[3]
  244. if x != nil {
  245. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  246. if ms.LoadMessageInfo() == nil {
  247. ms.StoreMessageInfo(mi)
  248. }
  249. return ms
  250. }
  251. return mi.MessageOf(x)
  252. }
  253. // Deprecated: Use Notification.ProtoReflect.Descriptor instead.
  254. func (*Notification) Descriptor() ([]byte, []int) {
  255. return file_daemon_helper_proto_rawDescGZIP(), []int{3}
  256. }
  257. func (x *Notification) GetIdentifier() string {
  258. if x != nil {
  259. return x.Identifier
  260. }
  261. return ""
  262. }
  263. func (x *Notification) GetTypeName() string {
  264. if x != nil {
  265. return x.TypeName
  266. }
  267. return ""
  268. }
  269. func (x *Notification) GetTypeId() int32 {
  270. if x != nil {
  271. return x.TypeId
  272. }
  273. return 0
  274. }
  275. func (x *Notification) GetTitle() string {
  276. if x != nil {
  277. return x.Title
  278. }
  279. return ""
  280. }
  281. func (x *Notification) GetSubtitle() string {
  282. if x != nil {
  283. return x.Subtitle
  284. }
  285. return ""
  286. }
  287. func (x *Notification) GetBody() string {
  288. if x != nil {
  289. return x.Body
  290. }
  291. return ""
  292. }
  293. func (x *Notification) GetOpenURL() string {
  294. if x != nil {
  295. return x.OpenURL
  296. }
  297. return ""
  298. }
  299. type HelperResponse struct {
  300. state protoimpl.MessageState `protogen:"open.v1"`
  301. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
  302. // Types that are valid to be assigned to Response:
  303. //
  304. // *HelperResponse_WifiState
  305. // *HelperResponse_Error
  306. // *HelperResponse_ConnectionOwner
  307. Response isHelperResponse_Response `protobuf_oneof:"response"`
  308. unknownFields protoimpl.UnknownFields
  309. sizeCache protoimpl.SizeCache
  310. }
  311. func (x *HelperResponse) Reset() {
  312. *x = HelperResponse{}
  313. mi := &file_daemon_helper_proto_msgTypes[4]
  314. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  315. ms.StoreMessageInfo(mi)
  316. }
  317. func (x *HelperResponse) String() string {
  318. return protoimpl.X.MessageStringOf(x)
  319. }
  320. func (*HelperResponse) ProtoMessage() {}
  321. func (x *HelperResponse) ProtoReflect() protoreflect.Message {
  322. mi := &file_daemon_helper_proto_msgTypes[4]
  323. if x != nil {
  324. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  325. if ms.LoadMessageInfo() == nil {
  326. ms.StoreMessageInfo(mi)
  327. }
  328. return ms
  329. }
  330. return mi.MessageOf(x)
  331. }
  332. // Deprecated: Use HelperResponse.ProtoReflect.Descriptor instead.
  333. func (*HelperResponse) Descriptor() ([]byte, []int) {
  334. return file_daemon_helper_proto_rawDescGZIP(), []int{4}
  335. }
  336. func (x *HelperResponse) GetId() int64 {
  337. if x != nil {
  338. return x.Id
  339. }
  340. return 0
  341. }
  342. func (x *HelperResponse) GetResponse() isHelperResponse_Response {
  343. if x != nil {
  344. return x.Response
  345. }
  346. return nil
  347. }
  348. func (x *HelperResponse) GetWifiState() *WIFIState {
  349. if x != nil {
  350. if x, ok := x.Response.(*HelperResponse_WifiState); ok {
  351. return x.WifiState
  352. }
  353. }
  354. return nil
  355. }
  356. func (x *HelperResponse) GetError() string {
  357. if x != nil {
  358. if x, ok := x.Response.(*HelperResponse_Error); ok {
  359. return x.Error
  360. }
  361. }
  362. return ""
  363. }
  364. func (x *HelperResponse) GetConnectionOwner() *ConnectionOwner {
  365. if x != nil {
  366. if x, ok := x.Response.(*HelperResponse_ConnectionOwner); ok {
  367. return x.ConnectionOwner
  368. }
  369. }
  370. return nil
  371. }
  372. type isHelperResponse_Response interface {
  373. isHelperResponse_Response()
  374. }
  375. type HelperResponse_WifiState struct {
  376. WifiState *WIFIState `protobuf:"bytes,2,opt,name=wifiState,proto3,oneof"`
  377. }
  378. type HelperResponse_Error struct {
  379. Error string `protobuf:"bytes,3,opt,name=error,proto3,oneof"`
  380. }
  381. type HelperResponse_ConnectionOwner struct {
  382. ConnectionOwner *ConnectionOwner `protobuf:"bytes,4,opt,name=connectionOwner,proto3,oneof"`
  383. }
  384. func (*HelperResponse_WifiState) isHelperResponse_Response() {}
  385. func (*HelperResponse_Error) isHelperResponse_Response() {}
  386. func (*HelperResponse_ConnectionOwner) isHelperResponse_Response() {}
  387. type ConnectionOwner struct {
  388. state protoimpl.MessageState `protogen:"open.v1"`
  389. UserId int32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty"`
  390. UserName string `protobuf:"bytes,2,opt,name=userName,proto3" json:"userName,omitempty"`
  391. ProcessPath string `protobuf:"bytes,3,opt,name=processPath,proto3" json:"processPath,omitempty"`
  392. AndroidPackageName string `protobuf:"bytes,4,opt,name=androidPackageName,proto3" json:"androidPackageName,omitempty"`
  393. unknownFields protoimpl.UnknownFields
  394. sizeCache protoimpl.SizeCache
  395. }
  396. func (x *ConnectionOwner) Reset() {
  397. *x = ConnectionOwner{}
  398. mi := &file_daemon_helper_proto_msgTypes[5]
  399. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  400. ms.StoreMessageInfo(mi)
  401. }
  402. func (x *ConnectionOwner) String() string {
  403. return protoimpl.X.MessageStringOf(x)
  404. }
  405. func (*ConnectionOwner) ProtoMessage() {}
  406. func (x *ConnectionOwner) ProtoReflect() protoreflect.Message {
  407. mi := &file_daemon_helper_proto_msgTypes[5]
  408. if x != nil {
  409. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  410. if ms.LoadMessageInfo() == nil {
  411. ms.StoreMessageInfo(mi)
  412. }
  413. return ms
  414. }
  415. return mi.MessageOf(x)
  416. }
  417. // Deprecated: Use ConnectionOwner.ProtoReflect.Descriptor instead.
  418. func (*ConnectionOwner) Descriptor() ([]byte, []int) {
  419. return file_daemon_helper_proto_rawDescGZIP(), []int{5}
  420. }
  421. func (x *ConnectionOwner) GetUserId() int32 {
  422. if x != nil {
  423. return x.UserId
  424. }
  425. return 0
  426. }
  427. func (x *ConnectionOwner) GetUserName() string {
  428. if x != nil {
  429. return x.UserName
  430. }
  431. return ""
  432. }
  433. func (x *ConnectionOwner) GetProcessPath() string {
  434. if x != nil {
  435. return x.ProcessPath
  436. }
  437. return ""
  438. }
  439. func (x *ConnectionOwner) GetAndroidPackageName() string {
  440. if x != nil {
  441. return x.AndroidPackageName
  442. }
  443. return ""
  444. }
  445. type WIFIState struct {
  446. state protoimpl.MessageState `protogen:"open.v1"`
  447. Ssid string `protobuf:"bytes,1,opt,name=ssid,proto3" json:"ssid,omitempty"`
  448. Bssid string `protobuf:"bytes,2,opt,name=bssid,proto3" json:"bssid,omitempty"`
  449. unknownFields protoimpl.UnknownFields
  450. sizeCache protoimpl.SizeCache
  451. }
  452. func (x *WIFIState) Reset() {
  453. *x = WIFIState{}
  454. mi := &file_daemon_helper_proto_msgTypes[6]
  455. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  456. ms.StoreMessageInfo(mi)
  457. }
  458. func (x *WIFIState) String() string {
  459. return protoimpl.X.MessageStringOf(x)
  460. }
  461. func (*WIFIState) ProtoMessage() {}
  462. func (x *WIFIState) ProtoReflect() protoreflect.Message {
  463. mi := &file_daemon_helper_proto_msgTypes[6]
  464. if x != nil {
  465. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  466. if ms.LoadMessageInfo() == nil {
  467. ms.StoreMessageInfo(mi)
  468. }
  469. return ms
  470. }
  471. return mi.MessageOf(x)
  472. }
  473. // Deprecated: Use WIFIState.ProtoReflect.Descriptor instead.
  474. func (*WIFIState) Descriptor() ([]byte, []int) {
  475. return file_daemon_helper_proto_rawDescGZIP(), []int{6}
  476. }
  477. func (x *WIFIState) GetSsid() string {
  478. if x != nil {
  479. return x.Ssid
  480. }
  481. return ""
  482. }
  483. func (x *WIFIState) GetBssid() string {
  484. if x != nil {
  485. return x.Bssid
  486. }
  487. return ""
  488. }
  489. var File_daemon_helper_proto protoreflect.FileDescriptor
  490. const file_daemon_helper_proto_rawDesc = "" +
  491. "\n" +
  492. "\x13daemon/helper.proto\x12\x06daemon\x1a\x1bgoogle/protobuf/empty.proto\"\xf5\x01\n" +
  493. "\x1dSubscribeHelperRequestRequest\x12>\n" +
  494. "\x1aacceptGetWIFIStateRequests\x18\x01 \x01(\bR\x1aacceptGetWIFIStateRequests\x12L\n" +
  495. "!acceptFindConnectionOwnerRequests\x18\x02 \x01(\bR!acceptFindConnectionOwnerRequests\x12F\n" +
  496. "\x1eacceptSendNotificationRequests\x18\x03 \x01(\bR\x1eacceptSendNotificationRequests\"\x84\x02\n" +
  497. "\rHelperRequest\x12\x0e\n" +
  498. "\x02id\x18\x01 \x01(\x03R\x02id\x12<\n" +
  499. "\fgetWIFIState\x18\x02 \x01(\v2\x16.google.protobuf.EmptyH\x00R\fgetWIFIState\x12V\n" +
  500. "\x13findConnectionOwner\x18\x03 \x01(\v2\".daemon.FindConnectionOwnerRequestH\x00R\x13findConnectionOwner\x12B\n" +
  501. "\x10sendNotification\x18\x04 \x01(\v2\x14.daemon.NotificationH\x00R\x10sendNotificationB\t\n" +
  502. "\arequest\"\xdc\x01\n" +
  503. "\x1aFindConnectionOwnerRequest\x12\x1e\n" +
  504. "\n" +
  505. "ipProtocol\x18\x01 \x01(\x05R\n" +
  506. "ipProtocol\x12$\n" +
  507. "\rsourceAddress\x18\x02 \x01(\tR\rsourceAddress\x12\x1e\n" +
  508. "\n" +
  509. "sourcePort\x18\x03 \x01(\x05R\n" +
  510. "sourcePort\x12.\n" +
  511. "\x12destinationAddress\x18\x04 \x01(\tR\x12destinationAddress\x12(\n" +
  512. "\x0fdestinationPort\x18\x05 \x01(\x05R\x0fdestinationPort\"\xc2\x01\n" +
  513. "\fNotification\x12\x1e\n" +
  514. "\n" +
  515. "identifier\x18\x01 \x01(\tR\n" +
  516. "identifier\x12\x1a\n" +
  517. "\btypeName\x18\x02 \x01(\tR\btypeName\x12\x16\n" +
  518. "\x06typeId\x18\x03 \x01(\x05R\x06typeId\x12\x14\n" +
  519. "\x05title\x18\x04 \x01(\tR\x05title\x12\x1a\n" +
  520. "\bsubtitle\x18\x05 \x01(\tR\bsubtitle\x12\x12\n" +
  521. "\x04body\x18\x06 \x01(\tR\x04body\x12\x18\n" +
  522. "\aopenURL\x18\a \x01(\tR\aopenURL\"\xbc\x01\n" +
  523. "\x0eHelperResponse\x12\x0e\n" +
  524. "\x02id\x18\x01 \x01(\x03R\x02id\x121\n" +
  525. "\twifiState\x18\x02 \x01(\v2\x11.daemon.WIFIStateH\x00R\twifiState\x12\x16\n" +
  526. "\x05error\x18\x03 \x01(\tH\x00R\x05error\x12C\n" +
  527. "\x0fconnectionOwner\x18\x04 \x01(\v2\x17.daemon.ConnectionOwnerH\x00R\x0fconnectionOwnerB\n" +
  528. "\n" +
  529. "\bresponse\"\x97\x01\n" +
  530. "\x0fConnectionOwner\x12\x16\n" +
  531. "\x06userId\x18\x01 \x01(\x05R\x06userId\x12\x1a\n" +
  532. "\buserName\x18\x02 \x01(\tR\buserName\x12 \n" +
  533. "\vprocessPath\x18\x03 \x01(\tR\vprocessPath\x12.\n" +
  534. "\x12androidPackageName\x18\x04 \x01(\tR\x12androidPackageName\"5\n" +
  535. "\tWIFIState\x12\x12\n" +
  536. "\x04ssid\x18\x01 \x01(\tR\x04ssid\x12\x14\n" +
  537. "\x05bssid\x18\x02 \x01(\tR\x05bssidB%Z#github.com/sagernet/sing-box/daemonb\x06proto3"
  538. var (
  539. file_daemon_helper_proto_rawDescOnce sync.Once
  540. file_daemon_helper_proto_rawDescData []byte
  541. )
  542. func file_daemon_helper_proto_rawDescGZIP() []byte {
  543. file_daemon_helper_proto_rawDescOnce.Do(func() {
  544. file_daemon_helper_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_daemon_helper_proto_rawDesc), len(file_daemon_helper_proto_rawDesc)))
  545. })
  546. return file_daemon_helper_proto_rawDescData
  547. }
  548. var (
  549. file_daemon_helper_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
  550. file_daemon_helper_proto_goTypes = []any{
  551. (*SubscribeHelperRequestRequest)(nil), // 0: daemon.SubscribeHelperRequestRequest
  552. (*HelperRequest)(nil), // 1: daemon.HelperRequest
  553. (*FindConnectionOwnerRequest)(nil), // 2: daemon.FindConnectionOwnerRequest
  554. (*Notification)(nil), // 3: daemon.Notification
  555. (*HelperResponse)(nil), // 4: daemon.HelperResponse
  556. (*ConnectionOwner)(nil), // 5: daemon.ConnectionOwner
  557. (*WIFIState)(nil), // 6: daemon.WIFIState
  558. (*emptypb.Empty)(nil), // 7: google.protobuf.Empty
  559. }
  560. )
  561. var file_daemon_helper_proto_depIdxs = []int32{
  562. 7, // 0: daemon.HelperRequest.getWIFIState:type_name -> google.protobuf.Empty
  563. 2, // 1: daemon.HelperRequest.findConnectionOwner:type_name -> daemon.FindConnectionOwnerRequest
  564. 3, // 2: daemon.HelperRequest.sendNotification:type_name -> daemon.Notification
  565. 6, // 3: daemon.HelperResponse.wifiState:type_name -> daemon.WIFIState
  566. 5, // 4: daemon.HelperResponse.connectionOwner:type_name -> daemon.ConnectionOwner
  567. 5, // [5:5] is the sub-list for method output_type
  568. 5, // [5:5] is the sub-list for method input_type
  569. 5, // [5:5] is the sub-list for extension type_name
  570. 5, // [5:5] is the sub-list for extension extendee
  571. 0, // [0:5] is the sub-list for field type_name
  572. }
  573. func init() { file_daemon_helper_proto_init() }
  574. func file_daemon_helper_proto_init() {
  575. if File_daemon_helper_proto != nil {
  576. return
  577. }
  578. file_daemon_helper_proto_msgTypes[1].OneofWrappers = []any{
  579. (*HelperRequest_GetWIFIState)(nil),
  580. (*HelperRequest_FindConnectionOwner)(nil),
  581. (*HelperRequest_SendNotification)(nil),
  582. }
  583. file_daemon_helper_proto_msgTypes[4].OneofWrappers = []any{
  584. (*HelperResponse_WifiState)(nil),
  585. (*HelperResponse_Error)(nil),
  586. (*HelperResponse_ConnectionOwner)(nil),
  587. }
  588. type x struct{}
  589. out := protoimpl.TypeBuilder{
  590. File: protoimpl.DescBuilder{
  591. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  592. RawDescriptor: unsafe.Slice(unsafe.StringData(file_daemon_helper_proto_rawDesc), len(file_daemon_helper_proto_rawDesc)),
  593. NumEnums: 0,
  594. NumMessages: 7,
  595. NumExtensions: 0,
  596. NumServices: 0,
  597. },
  598. GoTypes: file_daemon_helper_proto_goTypes,
  599. DependencyIndexes: file_daemon_helper_proto_depIdxs,
  600. MessageInfos: file_daemon_helper_proto_msgTypes,
  601. }.Build()
  602. File_daemon_helper_proto = out.File
  603. file_daemon_helper_proto_goTypes = nil
  604. file_daemon_helper_proto_depIdxs = nil
  605. }