config.pb.go 25 KB

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