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