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