config.pb.go 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.32.0
  4. // protoc v4.23.1
  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, 0x0f, 0x78, 0x72, 0x61, 0x79, 0x2e,
  407. 0x61, 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x1e, 0x0a, 0x06, 0x53, 0x65,
  408. 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20,
  409. 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xa6, 0x04, 0x0a, 0x06, 0x50,
  410. 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x39, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
  411. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
  412. 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,
  413. 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
  414. 0x12, 0x33, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  415. 0x1d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63,
  416. 0x79, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05,
  417. 0x73, 0x74, 0x61, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x06, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x18,
  418. 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70,
  419. 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x42,
  420. 0x75, 0x66, 0x66, 0x65, 0x72, 0x52, 0x06, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x1a, 0xfa, 0x01,
  421. 0x0a, 0x07, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x68, 0x61, 0x6e,
  422. 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x78,
  423. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53,
  424. 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x52, 0x09, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65,
  425. 0x12, 0x40, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69,
  426. 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x78, 0x72, 0x61, 0x79,
  427. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x65, 0x63, 0x6f,
  428. 0x6e, 0x64, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64,
  429. 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x6f, 0x6e, 0x6c,
  430. 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61,
  431. 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64,
  432. 0x52, 0x0a, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x3c, 0x0a, 0x0d,
  433. 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20,
  434. 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70,
  435. 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x52, 0x0c, 0x64, 0x6f,
  436. 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x4f, 0x6e, 0x6c, 0x79, 0x1a, 0x4d, 0x0a, 0x05, 0x53, 0x74,
  437. 0x61, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x75, 0x70, 0x6c, 0x69,
  438. 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x55, 0x70,
  439. 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x6f, 0x77,
  440. 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x75, 0x73, 0x65,
  441. 0x72, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x1a, 0x28, 0x0a, 0x06, 0x42, 0x75, 0x66,
  442. 0x66, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f,
  443. 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74,
  444. 0x69, 0x6f, 0x6e, 0x22, 0xfb, 0x01, 0x0a, 0x0c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x50, 0x6f,
  445. 0x6c, 0x69, 0x63, 0x79, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01, 0x20,
  446. 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70,
  447. 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x50, 0x6f, 0x6c, 0x69,
  448. 0x63, 0x79, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x1a,
  449. 0xaf, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x62,
  450. 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28,
  451. 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x55, 0x70, 0x6c, 0x69, 0x6e, 0x6b,
  452. 0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x64, 0x6f, 0x77, 0x6e,
  453. 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x6e, 0x62, 0x6f,
  454. 0x75, 0x6e, 0x64, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x27, 0x0a, 0x0f, 0x6f,
  455. 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x03,
  456. 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x55, 0x70,
  457. 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64,
  458. 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
  459. 0x10, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e,
  460. 0x6b, 0x22, 0xcc, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x38, 0x0a, 0x05,
  461. 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x78, 0x72,
  462. 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x43, 0x6f,
  463. 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
  464. 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d,
  465. 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
  466. 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x50,
  467. 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x1a, 0x51, 0x0a,
  468. 0x0a, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b,
  469. 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d, 0x0a,
  470. 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x78,
  471. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x50,
  472. 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
  473. 0x42, 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70,
  474. 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68, 0x75,
  475. 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79, 0x2d,
  476. 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0xaa,
  477. 0x02, 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63,
  478. 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  479. }
  480. var (
  481. file_app_policy_config_proto_rawDescOnce sync.Once
  482. file_app_policy_config_proto_rawDescData = file_app_policy_config_proto_rawDesc
  483. )
  484. func file_app_policy_config_proto_rawDescGZIP() []byte {
  485. file_app_policy_config_proto_rawDescOnce.Do(func() {
  486. file_app_policy_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_policy_config_proto_rawDescData)
  487. })
  488. return file_app_policy_config_proto_rawDescData
  489. }
  490. var file_app_policy_config_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  491. var file_app_policy_config_proto_goTypes = []interface{}{
  492. (*Second)(nil), // 0: xray.app.policy.Second
  493. (*Policy)(nil), // 1: xray.app.policy.Policy
  494. (*SystemPolicy)(nil), // 2: xray.app.policy.SystemPolicy
  495. (*Config)(nil), // 3: xray.app.policy.Config
  496. (*Policy_Timeout)(nil), // 4: xray.app.policy.Policy.Timeout
  497. (*Policy_Stats)(nil), // 5: xray.app.policy.Policy.Stats
  498. (*Policy_Buffer)(nil), // 6: xray.app.policy.Policy.Buffer
  499. (*SystemPolicy_Stats)(nil), // 7: xray.app.policy.SystemPolicy.Stats
  500. nil, // 8: xray.app.policy.Config.LevelEntry
  501. }
  502. var file_app_policy_config_proto_depIdxs = []int32{
  503. 4, // 0: xray.app.policy.Policy.timeout:type_name -> xray.app.policy.Policy.Timeout
  504. 5, // 1: xray.app.policy.Policy.stats:type_name -> xray.app.policy.Policy.Stats
  505. 6, // 2: xray.app.policy.Policy.buffer:type_name -> xray.app.policy.Policy.Buffer
  506. 7, // 3: xray.app.policy.SystemPolicy.stats:type_name -> xray.app.policy.SystemPolicy.Stats
  507. 8, // 4: xray.app.policy.Config.level:type_name -> xray.app.policy.Config.LevelEntry
  508. 2, // 5: xray.app.policy.Config.system:type_name -> xray.app.policy.SystemPolicy
  509. 0, // 6: xray.app.policy.Policy.Timeout.handshake:type_name -> xray.app.policy.Second
  510. 0, // 7: xray.app.policy.Policy.Timeout.connection_idle:type_name -> xray.app.policy.Second
  511. 0, // 8: xray.app.policy.Policy.Timeout.uplink_only:type_name -> xray.app.policy.Second
  512. 0, // 9: xray.app.policy.Policy.Timeout.downlink_only:type_name -> xray.app.policy.Second
  513. 1, // 10: xray.app.policy.Config.LevelEntry.value:type_name -> xray.app.policy.Policy
  514. 11, // [11:11] is the sub-list for method output_type
  515. 11, // [11:11] is the sub-list for method input_type
  516. 11, // [11:11] is the sub-list for extension type_name
  517. 11, // [11:11] is the sub-list for extension extendee
  518. 0, // [0:11] is the sub-list for field type_name
  519. }
  520. func init() { file_app_policy_config_proto_init() }
  521. func file_app_policy_config_proto_init() {
  522. if File_app_policy_config_proto != nil {
  523. return
  524. }
  525. if !protoimpl.UnsafeEnabled {
  526. file_app_policy_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  527. switch v := v.(*Second); i {
  528. case 0:
  529. return &v.state
  530. case 1:
  531. return &v.sizeCache
  532. case 2:
  533. return &v.unknownFields
  534. default:
  535. return nil
  536. }
  537. }
  538. file_app_policy_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  539. switch v := v.(*Policy); i {
  540. case 0:
  541. return &v.state
  542. case 1:
  543. return &v.sizeCache
  544. case 2:
  545. return &v.unknownFields
  546. default:
  547. return nil
  548. }
  549. }
  550. file_app_policy_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  551. switch v := v.(*SystemPolicy); i {
  552. case 0:
  553. return &v.state
  554. case 1:
  555. return &v.sizeCache
  556. case 2:
  557. return &v.unknownFields
  558. default:
  559. return nil
  560. }
  561. }
  562. file_app_policy_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  563. switch v := v.(*Config); i {
  564. case 0:
  565. return &v.state
  566. case 1:
  567. return &v.sizeCache
  568. case 2:
  569. return &v.unknownFields
  570. default:
  571. return nil
  572. }
  573. }
  574. file_app_policy_config_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
  575. switch v := v.(*Policy_Timeout); i {
  576. case 0:
  577. return &v.state
  578. case 1:
  579. return &v.sizeCache
  580. case 2:
  581. return &v.unknownFields
  582. default:
  583. return nil
  584. }
  585. }
  586. file_app_policy_config_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
  587. switch v := v.(*Policy_Stats); i {
  588. case 0:
  589. return &v.state
  590. case 1:
  591. return &v.sizeCache
  592. case 2:
  593. return &v.unknownFields
  594. default:
  595. return nil
  596. }
  597. }
  598. file_app_policy_config_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
  599. switch v := v.(*Policy_Buffer); i {
  600. case 0:
  601. return &v.state
  602. case 1:
  603. return &v.sizeCache
  604. case 2:
  605. return &v.unknownFields
  606. default:
  607. return nil
  608. }
  609. }
  610. file_app_policy_config_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
  611. switch v := v.(*SystemPolicy_Stats); i {
  612. case 0:
  613. return &v.state
  614. case 1:
  615. return &v.sizeCache
  616. case 2:
  617. return &v.unknownFields
  618. default:
  619. return nil
  620. }
  621. }
  622. }
  623. type x struct{}
  624. out := protoimpl.TypeBuilder{
  625. File: protoimpl.DescBuilder{
  626. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  627. RawDescriptor: file_app_policy_config_proto_rawDesc,
  628. NumEnums: 0,
  629. NumMessages: 9,
  630. NumExtensions: 0,
  631. NumServices: 0,
  632. },
  633. GoTypes: file_app_policy_config_proto_goTypes,
  634. DependencyIndexes: file_app_policy_config_proto_depIdxs,
  635. MessageInfos: file_app_policy_config_proto_msgTypes,
  636. }.Build()
  637. File_app_policy_config_proto = out.File
  638. file_app_policy_config_proto_rawDesc = nil
  639. file_app_policy_config_proto_goTypes = nil
  640. file_app_policy_config_proto_depIdxs = nil
  641. }