config.pb.go 25 KB

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