config.pb.go 26 KB

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