config.pb.go 24 KB

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