config.pb.go 26 KB

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