config.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.35.1
  4. // protoc v5.28.2
  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. mi := &file_app_policy_config_proto_msgTypes[0]
  28. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  29. ms.StoreMessageInfo(mi)
  30. }
  31. func (x *Second) String() string {
  32. return protoimpl.X.MessageStringOf(x)
  33. }
  34. func (*Second) ProtoMessage() {}
  35. func (x *Second) ProtoReflect() protoreflect.Message {
  36. mi := &file_app_policy_config_proto_msgTypes[0]
  37. if x != nil {
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. if ms.LoadMessageInfo() == nil {
  40. ms.StoreMessageInfo(mi)
  41. }
  42. return ms
  43. }
  44. return mi.MessageOf(x)
  45. }
  46. // Deprecated: Use Second.ProtoReflect.Descriptor instead.
  47. func (*Second) Descriptor() ([]byte, []int) {
  48. return file_app_policy_config_proto_rawDescGZIP(), []int{0}
  49. }
  50. func (x *Second) GetValue() uint32 {
  51. if x != nil {
  52. return x.Value
  53. }
  54. return 0
  55. }
  56. type Policy struct {
  57. state protoimpl.MessageState
  58. sizeCache protoimpl.SizeCache
  59. unknownFields protoimpl.UnknownFields
  60. Timeout *Policy_Timeout `protobuf:"bytes,1,opt,name=timeout,proto3" json:"timeout,omitempty"`
  61. Stats *Policy_Stats `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats,omitempty"`
  62. Buffer *Policy_Buffer `protobuf:"bytes,3,opt,name=buffer,proto3" json:"buffer,omitempty"`
  63. }
  64. func (x *Policy) Reset() {
  65. *x = Policy{}
  66. mi := &file_app_policy_config_proto_msgTypes[1]
  67. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  68. ms.StoreMessageInfo(mi)
  69. }
  70. func (x *Policy) String() string {
  71. return protoimpl.X.MessageStringOf(x)
  72. }
  73. func (*Policy) ProtoMessage() {}
  74. func (x *Policy) ProtoReflect() protoreflect.Message {
  75. mi := &file_app_policy_config_proto_msgTypes[1]
  76. if x != nil {
  77. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  78. if ms.LoadMessageInfo() == nil {
  79. ms.StoreMessageInfo(mi)
  80. }
  81. return ms
  82. }
  83. return mi.MessageOf(x)
  84. }
  85. // Deprecated: Use Policy.ProtoReflect.Descriptor instead.
  86. func (*Policy) Descriptor() ([]byte, []int) {
  87. return file_app_policy_config_proto_rawDescGZIP(), []int{1}
  88. }
  89. func (x *Policy) GetTimeout() *Policy_Timeout {
  90. if x != nil {
  91. return x.Timeout
  92. }
  93. return nil
  94. }
  95. func (x *Policy) GetStats() *Policy_Stats {
  96. if x != nil {
  97. return x.Stats
  98. }
  99. return nil
  100. }
  101. func (x *Policy) GetBuffer() *Policy_Buffer {
  102. if x != nil {
  103. return x.Buffer
  104. }
  105. return nil
  106. }
  107. type SystemPolicy struct {
  108. state protoimpl.MessageState
  109. sizeCache protoimpl.SizeCache
  110. unknownFields protoimpl.UnknownFields
  111. Stats *SystemPolicy_Stats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"`
  112. }
  113. func (x *SystemPolicy) Reset() {
  114. *x = SystemPolicy{}
  115. mi := &file_app_policy_config_proto_msgTypes[2]
  116. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  117. ms.StoreMessageInfo(mi)
  118. }
  119. func (x *SystemPolicy) String() string {
  120. return protoimpl.X.MessageStringOf(x)
  121. }
  122. func (*SystemPolicy) ProtoMessage() {}
  123. func (x *SystemPolicy) ProtoReflect() protoreflect.Message {
  124. mi := &file_app_policy_config_proto_msgTypes[2]
  125. if x != nil {
  126. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  127. if ms.LoadMessageInfo() == nil {
  128. ms.StoreMessageInfo(mi)
  129. }
  130. return ms
  131. }
  132. return mi.MessageOf(x)
  133. }
  134. // Deprecated: Use SystemPolicy.ProtoReflect.Descriptor instead.
  135. func (*SystemPolicy) Descriptor() ([]byte, []int) {
  136. return file_app_policy_config_proto_rawDescGZIP(), []int{2}
  137. }
  138. func (x *SystemPolicy) GetStats() *SystemPolicy_Stats {
  139. if x != nil {
  140. return x.Stats
  141. }
  142. return nil
  143. }
  144. type Config struct {
  145. state protoimpl.MessageState
  146. sizeCache protoimpl.SizeCache
  147. unknownFields protoimpl.UnknownFields
  148. 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"`
  149. System *SystemPolicy `protobuf:"bytes,2,opt,name=system,proto3" json:"system,omitempty"`
  150. }
  151. func (x *Config) Reset() {
  152. *x = Config{}
  153. mi := &file_app_policy_config_proto_msgTypes[3]
  154. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  155. ms.StoreMessageInfo(mi)
  156. }
  157. func (x *Config) String() string {
  158. return protoimpl.X.MessageStringOf(x)
  159. }
  160. func (*Config) ProtoMessage() {}
  161. func (x *Config) ProtoReflect() protoreflect.Message {
  162. mi := &file_app_policy_config_proto_msgTypes[3]
  163. if x != nil {
  164. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  165. if ms.LoadMessageInfo() == nil {
  166. ms.StoreMessageInfo(mi)
  167. }
  168. return ms
  169. }
  170. return mi.MessageOf(x)
  171. }
  172. // Deprecated: Use Config.ProtoReflect.Descriptor instead.
  173. func (*Config) Descriptor() ([]byte, []int) {
  174. return file_app_policy_config_proto_rawDescGZIP(), []int{3}
  175. }
  176. func (x *Config) GetLevel() map[uint32]*Policy {
  177. if x != nil {
  178. return x.Level
  179. }
  180. return nil
  181. }
  182. func (x *Config) GetSystem() *SystemPolicy {
  183. if x != nil {
  184. return x.System
  185. }
  186. return nil
  187. }
  188. // Timeout is a message for timeout settings in various stages, in seconds.
  189. type Policy_Timeout struct {
  190. state protoimpl.MessageState
  191. sizeCache protoimpl.SizeCache
  192. unknownFields protoimpl.UnknownFields
  193. Handshake *Second `protobuf:"bytes,1,opt,name=handshake,proto3" json:"handshake,omitempty"`
  194. ConnectionIdle *Second `protobuf:"bytes,2,opt,name=connection_idle,json=connectionIdle,proto3" json:"connection_idle,omitempty"`
  195. UplinkOnly *Second `protobuf:"bytes,3,opt,name=uplink_only,json=uplinkOnly,proto3" json:"uplink_only,omitempty"`
  196. DownlinkOnly *Second `protobuf:"bytes,4,opt,name=downlink_only,json=downlinkOnly,proto3" json:"downlink_only,omitempty"`
  197. }
  198. func (x *Policy_Timeout) Reset() {
  199. *x = Policy_Timeout{}
  200. mi := &file_app_policy_config_proto_msgTypes[4]
  201. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  202. ms.StoreMessageInfo(mi)
  203. }
  204. func (x *Policy_Timeout) String() string {
  205. return protoimpl.X.MessageStringOf(x)
  206. }
  207. func (*Policy_Timeout) ProtoMessage() {}
  208. func (x *Policy_Timeout) ProtoReflect() protoreflect.Message {
  209. mi := &file_app_policy_config_proto_msgTypes[4]
  210. if x != nil {
  211. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  212. if ms.LoadMessageInfo() == nil {
  213. ms.StoreMessageInfo(mi)
  214. }
  215. return ms
  216. }
  217. return mi.MessageOf(x)
  218. }
  219. // Deprecated: Use Policy_Timeout.ProtoReflect.Descriptor instead.
  220. func (*Policy_Timeout) Descriptor() ([]byte, []int) {
  221. return file_app_policy_config_proto_rawDescGZIP(), []int{1, 0}
  222. }
  223. func (x *Policy_Timeout) GetHandshake() *Second {
  224. if x != nil {
  225. return x.Handshake
  226. }
  227. return nil
  228. }
  229. func (x *Policy_Timeout) GetConnectionIdle() *Second {
  230. if x != nil {
  231. return x.ConnectionIdle
  232. }
  233. return nil
  234. }
  235. func (x *Policy_Timeout) GetUplinkOnly() *Second {
  236. if x != nil {
  237. return x.UplinkOnly
  238. }
  239. return nil
  240. }
  241. func (x *Policy_Timeout) GetDownlinkOnly() *Second {
  242. if x != nil {
  243. return x.DownlinkOnly
  244. }
  245. return nil
  246. }
  247. type Policy_Stats struct {
  248. state protoimpl.MessageState
  249. sizeCache protoimpl.SizeCache
  250. unknownFields protoimpl.UnknownFields
  251. UserUplink bool `protobuf:"varint,1,opt,name=user_uplink,json=userUplink,proto3" json:"user_uplink,omitempty"`
  252. UserDownlink bool `protobuf:"varint,2,opt,name=user_downlink,json=userDownlink,proto3" json:"user_downlink,omitempty"`
  253. UserOnline bool `protobuf:"varint,3,opt,name=user_online,json=userOnline,proto3" json:"user_online,omitempty"`
  254. }
  255. func (x *Policy_Stats) Reset() {
  256. *x = Policy_Stats{}
  257. mi := &file_app_policy_config_proto_msgTypes[5]
  258. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  259. ms.StoreMessageInfo(mi)
  260. }
  261. func (x *Policy_Stats) String() string {
  262. return protoimpl.X.MessageStringOf(x)
  263. }
  264. func (*Policy_Stats) ProtoMessage() {}
  265. func (x *Policy_Stats) ProtoReflect() protoreflect.Message {
  266. mi := &file_app_policy_config_proto_msgTypes[5]
  267. if x != nil {
  268. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  269. if ms.LoadMessageInfo() == nil {
  270. ms.StoreMessageInfo(mi)
  271. }
  272. return ms
  273. }
  274. return mi.MessageOf(x)
  275. }
  276. // Deprecated: Use Policy_Stats.ProtoReflect.Descriptor instead.
  277. func (*Policy_Stats) Descriptor() ([]byte, []int) {
  278. return file_app_policy_config_proto_rawDescGZIP(), []int{1, 1}
  279. }
  280. func (x *Policy_Stats) GetUserUplink() bool {
  281. if x != nil {
  282. return x.UserUplink
  283. }
  284. return false
  285. }
  286. func (x *Policy_Stats) GetUserDownlink() bool {
  287. if x != nil {
  288. return x.UserDownlink
  289. }
  290. return false
  291. }
  292. func (x *Policy_Stats) GetUserOnline() bool {
  293. if x != nil {
  294. return x.UserOnline
  295. }
  296. return false
  297. }
  298. type Policy_Buffer struct {
  299. state protoimpl.MessageState
  300. sizeCache protoimpl.SizeCache
  301. unknownFields protoimpl.UnknownFields
  302. // Buffer size per connection, in bytes. -1 for unlimited buffer.
  303. Connection int32 `protobuf:"varint,1,opt,name=connection,proto3" json:"connection,omitempty"`
  304. }
  305. func (x *Policy_Buffer) Reset() {
  306. *x = Policy_Buffer{}
  307. mi := &file_app_policy_config_proto_msgTypes[6]
  308. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  309. ms.StoreMessageInfo(mi)
  310. }
  311. func (x *Policy_Buffer) String() string {
  312. return protoimpl.X.MessageStringOf(x)
  313. }
  314. func (*Policy_Buffer) ProtoMessage() {}
  315. func (x *Policy_Buffer) ProtoReflect() protoreflect.Message {
  316. mi := &file_app_policy_config_proto_msgTypes[6]
  317. if x != nil {
  318. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  319. if ms.LoadMessageInfo() == nil {
  320. ms.StoreMessageInfo(mi)
  321. }
  322. return ms
  323. }
  324. return mi.MessageOf(x)
  325. }
  326. // Deprecated: Use Policy_Buffer.ProtoReflect.Descriptor instead.
  327. func (*Policy_Buffer) Descriptor() ([]byte, []int) {
  328. return file_app_policy_config_proto_rawDescGZIP(), []int{1, 2}
  329. }
  330. func (x *Policy_Buffer) GetConnection() int32 {
  331. if x != nil {
  332. return x.Connection
  333. }
  334. return 0
  335. }
  336. type SystemPolicy_Stats struct {
  337. state protoimpl.MessageState
  338. sizeCache protoimpl.SizeCache
  339. unknownFields protoimpl.UnknownFields
  340. InboundUplink bool `protobuf:"varint,1,opt,name=inbound_uplink,json=inboundUplink,proto3" json:"inbound_uplink,omitempty"`
  341. InboundDownlink bool `protobuf:"varint,2,opt,name=inbound_downlink,json=inboundDownlink,proto3" json:"inbound_downlink,omitempty"`
  342. OutboundUplink bool `protobuf:"varint,3,opt,name=outbound_uplink,json=outboundUplink,proto3" json:"outbound_uplink,omitempty"`
  343. OutboundDownlink bool `protobuf:"varint,4,opt,name=outbound_downlink,json=outboundDownlink,proto3" json:"outbound_downlink,omitempty"`
  344. }
  345. func (x *SystemPolicy_Stats) Reset() {
  346. *x = SystemPolicy_Stats{}
  347. mi := &file_app_policy_config_proto_msgTypes[7]
  348. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  349. ms.StoreMessageInfo(mi)
  350. }
  351. func (x *SystemPolicy_Stats) String() string {
  352. return protoimpl.X.MessageStringOf(x)
  353. }
  354. func (*SystemPolicy_Stats) ProtoMessage() {}
  355. func (x *SystemPolicy_Stats) ProtoReflect() protoreflect.Message {
  356. mi := &file_app_policy_config_proto_msgTypes[7]
  357. if x != nil {
  358. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  359. if ms.LoadMessageInfo() == nil {
  360. ms.StoreMessageInfo(mi)
  361. }
  362. return ms
  363. }
  364. return mi.MessageOf(x)
  365. }
  366. // Deprecated: Use SystemPolicy_Stats.ProtoReflect.Descriptor instead.
  367. func (*SystemPolicy_Stats) Descriptor() ([]byte, []int) {
  368. return file_app_policy_config_proto_rawDescGZIP(), []int{2, 0}
  369. }
  370. func (x *SystemPolicy_Stats) GetInboundUplink() bool {
  371. if x != nil {
  372. return x.InboundUplink
  373. }
  374. return false
  375. }
  376. func (x *SystemPolicy_Stats) GetInboundDownlink() bool {
  377. if x != nil {
  378. return x.InboundDownlink
  379. }
  380. return false
  381. }
  382. func (x *SystemPolicy_Stats) GetOutboundUplink() bool {
  383. if x != nil {
  384. return x.OutboundUplink
  385. }
  386. return false
  387. }
  388. func (x *SystemPolicy_Stats) GetOutboundDownlink() bool {
  389. if x != nil {
  390. return x.OutboundDownlink
  391. }
  392. return false
  393. }
  394. var File_app_policy_config_proto protoreflect.FileDescriptor
  395. var file_app_policy_config_proto_rawDesc = []byte{
  396. 0x0a, 0x17, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2f, 0x63, 0x6f, 0x6e,
  397. 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0f, 0x78, 0x72, 0x61, 0x79, 0x2e,
  398. 0x61, 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x1e, 0x0a, 0x06, 0x53, 0x65,
  399. 0x63, 0x6f, 0x6e, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20,
  400. 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xc7, 0x04, 0x0a, 0x06, 0x50,
  401. 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x39, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
  402. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
  403. 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,
  404. 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x52, 0x07, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74,
  405. 0x12, 0x33, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
  406. 0x1d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63,
  407. 0x79, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05,
  408. 0x73, 0x74, 0x61, 0x74, 0x73, 0x12, 0x36, 0x0a, 0x06, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x18,
  409. 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70,
  410. 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x42,
  411. 0x75, 0x66, 0x66, 0x65, 0x72, 0x52, 0x06, 0x62, 0x75, 0x66, 0x66, 0x65, 0x72, 0x1a, 0xfa, 0x01,
  412. 0x0a, 0x07, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x35, 0x0a, 0x09, 0x68, 0x61, 0x6e,
  413. 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x78,
  414. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53,
  415. 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x52, 0x09, 0x68, 0x61, 0x6e, 0x64, 0x73, 0x68, 0x61, 0x6b, 0x65,
  416. 0x12, 0x40, 0x0a, 0x0f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69,
  417. 0x64, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x78, 0x72, 0x61, 0x79,
  418. 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x65, 0x63, 0x6f,
  419. 0x6e, 0x64, 0x52, 0x0e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64,
  420. 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x0b, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x6f, 0x6e, 0x6c,
  421. 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61,
  422. 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64,
  423. 0x52, 0x0a, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x4f, 0x6e, 0x6c, 0x79, 0x12, 0x3c, 0x0a, 0x0d,
  424. 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20,
  425. 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70,
  426. 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x52, 0x0c, 0x64, 0x6f,
  427. 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x4f, 0x6e, 0x6c, 0x79, 0x1a, 0x6e, 0x0a, 0x05, 0x53, 0x74,
  428. 0x61, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x75, 0x70, 0x6c, 0x69,
  429. 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x55, 0x70,
  430. 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x23, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x64, 0x6f, 0x77,
  431. 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x75, 0x73, 0x65,
  432. 0x72, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x73, 0x65,
  433. 0x72, 0x5f, 0x6f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a,
  434. 0x75, 0x73, 0x65, 0x72, 0x4f, 0x6e, 0x6c, 0x69, 0x6e, 0x65, 0x1a, 0x28, 0x0a, 0x06, 0x42, 0x75,
  435. 0x66, 0x66, 0x65, 0x72, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69,
  436. 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
  437. 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xfb, 0x01, 0x0a, 0x0c, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x50,
  438. 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x39, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x18, 0x01,
  439. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e,
  440. 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x50, 0x6f, 0x6c,
  441. 0x69, 0x63, 0x79, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73,
  442. 0x1a, 0xaf, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e,
  443. 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01,
  444. 0x28, 0x08, 0x52, 0x0d, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x55, 0x70, 0x6c, 0x69, 0x6e,
  445. 0x6b, 0x12, 0x29, 0x0a, 0x10, 0x69, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x64, 0x6f, 0x77,
  446. 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x69, 0x6e, 0x62,
  447. 0x6f, 0x75, 0x6e, 0x64, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x27, 0x0a, 0x0f,
  448. 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x75, 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x18,
  449. 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x55,
  450. 0x70, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e,
  451. 0x64, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x69, 0x6e, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08,
  452. 0x52, 0x10, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x69,
  453. 0x6e, 0x6b, 0x22, 0xcc, 0x01, 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x38, 0x0a,
  454. 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x78,
  455. 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x43,
  456. 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79,
  457. 0x52, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x35, 0x0a, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65,
  458. 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61,
  459. 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d,
  460. 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x1a, 0x51,
  461. 0x0a, 0x0a, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
  462. 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x2d,
  463. 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e,
  464. 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e,
  465. 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
  466. 0x01, 0x42, 0x4f, 0x0a, 0x13, 0x63, 0x6f, 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70,
  467. 0x70, 0x2e, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x50, 0x01, 0x5a, 0x24, 0x67, 0x69, 0x74, 0x68,
  468. 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 0x79,
  469. 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79,
  470. 0xaa, 0x02, 0x0f, 0x58, 0x72, 0x61, 0x79, 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x50, 0x6f, 0x6c, 0x69,
  471. 0x63, 0x79, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  472. }
  473. var (
  474. file_app_policy_config_proto_rawDescOnce sync.Once
  475. file_app_policy_config_proto_rawDescData = file_app_policy_config_proto_rawDesc
  476. )
  477. func file_app_policy_config_proto_rawDescGZIP() []byte {
  478. file_app_policy_config_proto_rawDescOnce.Do(func() {
  479. file_app_policy_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_policy_config_proto_rawDescData)
  480. })
  481. return file_app_policy_config_proto_rawDescData
  482. }
  483. var file_app_policy_config_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
  484. var file_app_policy_config_proto_goTypes = []any{
  485. (*Second)(nil), // 0: xray.app.policy.Second
  486. (*Policy)(nil), // 1: xray.app.policy.Policy
  487. (*SystemPolicy)(nil), // 2: xray.app.policy.SystemPolicy
  488. (*Config)(nil), // 3: xray.app.policy.Config
  489. (*Policy_Timeout)(nil), // 4: xray.app.policy.Policy.Timeout
  490. (*Policy_Stats)(nil), // 5: xray.app.policy.Policy.Stats
  491. (*Policy_Buffer)(nil), // 6: xray.app.policy.Policy.Buffer
  492. (*SystemPolicy_Stats)(nil), // 7: xray.app.policy.SystemPolicy.Stats
  493. nil, // 8: xray.app.policy.Config.LevelEntry
  494. }
  495. var file_app_policy_config_proto_depIdxs = []int32{
  496. 4, // 0: xray.app.policy.Policy.timeout:type_name -> xray.app.policy.Policy.Timeout
  497. 5, // 1: xray.app.policy.Policy.stats:type_name -> xray.app.policy.Policy.Stats
  498. 6, // 2: xray.app.policy.Policy.buffer:type_name -> xray.app.policy.Policy.Buffer
  499. 7, // 3: xray.app.policy.SystemPolicy.stats:type_name -> xray.app.policy.SystemPolicy.Stats
  500. 8, // 4: xray.app.policy.Config.level:type_name -> xray.app.policy.Config.LevelEntry
  501. 2, // 5: xray.app.policy.Config.system:type_name -> xray.app.policy.SystemPolicy
  502. 0, // 6: xray.app.policy.Policy.Timeout.handshake:type_name -> xray.app.policy.Second
  503. 0, // 7: xray.app.policy.Policy.Timeout.connection_idle:type_name -> xray.app.policy.Second
  504. 0, // 8: xray.app.policy.Policy.Timeout.uplink_only:type_name -> xray.app.policy.Second
  505. 0, // 9: xray.app.policy.Policy.Timeout.downlink_only:type_name -> xray.app.policy.Second
  506. 1, // 10: xray.app.policy.Config.LevelEntry.value:type_name -> xray.app.policy.Policy
  507. 11, // [11:11] is the sub-list for method output_type
  508. 11, // [11:11] is the sub-list for method input_type
  509. 11, // [11:11] is the sub-list for extension type_name
  510. 11, // [11:11] is the sub-list for extension extendee
  511. 0, // [0:11] is the sub-list for field type_name
  512. }
  513. func init() { file_app_policy_config_proto_init() }
  514. func file_app_policy_config_proto_init() {
  515. if File_app_policy_config_proto != nil {
  516. return
  517. }
  518. type x struct{}
  519. out := protoimpl.TypeBuilder{
  520. File: protoimpl.DescBuilder{
  521. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  522. RawDescriptor: file_app_policy_config_proto_rawDesc,
  523. NumEnums: 0,
  524. NumMessages: 9,
  525. NumExtensions: 0,
  526. NumServices: 0,
  527. },
  528. GoTypes: file_app_policy_config_proto_goTypes,
  529. DependencyIndexes: file_app_policy_config_proto_depIdxs,
  530. MessageInfos: file_app_policy_config_proto_msgTypes,
  531. }.Build()
  532. File_app_policy_config_proto = out.File
  533. file_app_policy_config_proto_rawDesc = nil
  534. file_app_policy_config_proto_goTypes = nil
  535. file_app_policy_config_proto_depIdxs = nil
  536. }