config.pb.go 25 KB

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