config.pb.go 26 KB

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