github.com/xmplusdev/xray-core@v1.8.10/app/router/command/command.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // versions: 3 // protoc-gen-go v1.33.0 4 // protoc v4.23.1 5 // source: app/router/command/command.proto 6 7 package command 8 9 import ( 10 net "github.com/xmplusdev/xray-core/common/net" 11 serial "github.com/xmplusdev/xray-core/common/serial" 12 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 13 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 14 reflect "reflect" 15 sync "sync" 16 ) 17 18 const ( 19 // Verify that this generated code is sufficiently up-to-date. 20 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 21 // Verify that runtime/protoimpl is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 23 ) 24 25 // RoutingContext is the context with information relative to routing process. 26 // It conforms to the structure of xray.features.routing.Context and 27 // xray.features.routing.Route. 28 type RoutingContext struct { 29 state protoimpl.MessageState 30 sizeCache protoimpl.SizeCache 31 unknownFields protoimpl.UnknownFields 32 33 InboundTag string `protobuf:"bytes,1,opt,name=InboundTag,proto3" json:"InboundTag,omitempty"` 34 Network net.Network `protobuf:"varint,2,opt,name=Network,proto3,enum=xray.common.net.Network" json:"Network,omitempty"` 35 SourceIPs [][]byte `protobuf:"bytes,3,rep,name=SourceIPs,proto3" json:"SourceIPs,omitempty"` 36 TargetIPs [][]byte `protobuf:"bytes,4,rep,name=TargetIPs,proto3" json:"TargetIPs,omitempty"` 37 SourcePort uint32 `protobuf:"varint,5,opt,name=SourcePort,proto3" json:"SourcePort,omitempty"` 38 TargetPort uint32 `protobuf:"varint,6,opt,name=TargetPort,proto3" json:"TargetPort,omitempty"` 39 TargetDomain string `protobuf:"bytes,7,opt,name=TargetDomain,proto3" json:"TargetDomain,omitempty"` 40 Protocol string `protobuf:"bytes,8,opt,name=Protocol,proto3" json:"Protocol,omitempty"` 41 User string `protobuf:"bytes,9,opt,name=User,proto3" json:"User,omitempty"` 42 Attributes map[string]string `protobuf:"bytes,10,rep,name=Attributes,proto3" json:"Attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 43 OutboundGroupTags []string `protobuf:"bytes,11,rep,name=OutboundGroupTags,proto3" json:"OutboundGroupTags,omitempty"` 44 OutboundTag string `protobuf:"bytes,12,opt,name=OutboundTag,proto3" json:"OutboundTag,omitempty"` 45 } 46 47 func (x *RoutingContext) Reset() { 48 *x = RoutingContext{} 49 if protoimpl.UnsafeEnabled { 50 mi := &file_app_router_command_command_proto_msgTypes[0] 51 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 52 ms.StoreMessageInfo(mi) 53 } 54 } 55 56 func (x *RoutingContext) String() string { 57 return protoimpl.X.MessageStringOf(x) 58 } 59 60 func (*RoutingContext) ProtoMessage() {} 61 62 func (x *RoutingContext) ProtoReflect() protoreflect.Message { 63 mi := &file_app_router_command_command_proto_msgTypes[0] 64 if protoimpl.UnsafeEnabled && x != nil { 65 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 66 if ms.LoadMessageInfo() == nil { 67 ms.StoreMessageInfo(mi) 68 } 69 return ms 70 } 71 return mi.MessageOf(x) 72 } 73 74 // Deprecated: Use RoutingContext.ProtoReflect.Descriptor instead. 75 func (*RoutingContext) Descriptor() ([]byte, []int) { 76 return file_app_router_command_command_proto_rawDescGZIP(), []int{0} 77 } 78 79 func (x *RoutingContext) GetInboundTag() string { 80 if x != nil { 81 return x.InboundTag 82 } 83 return "" 84 } 85 86 func (x *RoutingContext) GetNetwork() net.Network { 87 if x != nil { 88 return x.Network 89 } 90 return net.Network(0) 91 } 92 93 func (x *RoutingContext) GetSourceIPs() [][]byte { 94 if x != nil { 95 return x.SourceIPs 96 } 97 return nil 98 } 99 100 func (x *RoutingContext) GetTargetIPs() [][]byte { 101 if x != nil { 102 return x.TargetIPs 103 } 104 return nil 105 } 106 107 func (x *RoutingContext) GetSourcePort() uint32 { 108 if x != nil { 109 return x.SourcePort 110 } 111 return 0 112 } 113 114 func (x *RoutingContext) GetTargetPort() uint32 { 115 if x != nil { 116 return x.TargetPort 117 } 118 return 0 119 } 120 121 func (x *RoutingContext) GetTargetDomain() string { 122 if x != nil { 123 return x.TargetDomain 124 } 125 return "" 126 } 127 128 func (x *RoutingContext) GetProtocol() string { 129 if x != nil { 130 return x.Protocol 131 } 132 return "" 133 } 134 135 func (x *RoutingContext) GetUser() string { 136 if x != nil { 137 return x.User 138 } 139 return "" 140 } 141 142 func (x *RoutingContext) GetAttributes() map[string]string { 143 if x != nil { 144 return x.Attributes 145 } 146 return nil 147 } 148 149 func (x *RoutingContext) GetOutboundGroupTags() []string { 150 if x != nil { 151 return x.OutboundGroupTags 152 } 153 return nil 154 } 155 156 func (x *RoutingContext) GetOutboundTag() string { 157 if x != nil { 158 return x.OutboundTag 159 } 160 return "" 161 } 162 163 // SubscribeRoutingStatsRequest subscribes to routing statistics channel if 164 // opened by xray-core. 165 // * FieldSelectors selects a subset of fields in routing statistics to return. 166 // Valid selectors: 167 // - inbound: Selects connection's inbound tag. 168 // - network: Selects connection's network. 169 // - ip: Equivalent as "ip_source" and "ip_target", selects both source and 170 // target IP. 171 // - port: Equivalent as "port_source" and "port_target", selects both source 172 // and target port. 173 // - domain: Selects target domain. 174 // - protocol: Select connection's protocol. 175 // - user: Select connection's inbound user email. 176 // - attributes: Select connection's additional attributes. 177 // - outbound: Equivalent as "outbound" and "outbound_group", select both 178 // outbound tag and outbound group tags. 179 // 180 // * If FieldSelectors is left empty, all fields will be returned. 181 type SubscribeRoutingStatsRequest struct { 182 state protoimpl.MessageState 183 sizeCache protoimpl.SizeCache 184 unknownFields protoimpl.UnknownFields 185 186 FieldSelectors []string `protobuf:"bytes,1,rep,name=FieldSelectors,proto3" json:"FieldSelectors,omitempty"` 187 } 188 189 func (x *SubscribeRoutingStatsRequest) Reset() { 190 *x = SubscribeRoutingStatsRequest{} 191 if protoimpl.UnsafeEnabled { 192 mi := &file_app_router_command_command_proto_msgTypes[1] 193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 194 ms.StoreMessageInfo(mi) 195 } 196 } 197 198 func (x *SubscribeRoutingStatsRequest) String() string { 199 return protoimpl.X.MessageStringOf(x) 200 } 201 202 func (*SubscribeRoutingStatsRequest) ProtoMessage() {} 203 204 func (x *SubscribeRoutingStatsRequest) ProtoReflect() protoreflect.Message { 205 mi := &file_app_router_command_command_proto_msgTypes[1] 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 SubscribeRoutingStatsRequest.ProtoReflect.Descriptor instead. 217 func (*SubscribeRoutingStatsRequest) Descriptor() ([]byte, []int) { 218 return file_app_router_command_command_proto_rawDescGZIP(), []int{1} 219 } 220 221 func (x *SubscribeRoutingStatsRequest) GetFieldSelectors() []string { 222 if x != nil { 223 return x.FieldSelectors 224 } 225 return nil 226 } 227 228 // TestRouteRequest manually tests a routing result according to the routing 229 // context message. 230 // * RoutingContext is the routing message without outbound information. 231 // * FieldSelectors selects the fields to return in the routing result. All 232 // fields are returned if left empty. 233 // * PublishResult broadcasts the routing result to routing statistics channel 234 // if set true. 235 type TestRouteRequest struct { 236 state protoimpl.MessageState 237 sizeCache protoimpl.SizeCache 238 unknownFields protoimpl.UnknownFields 239 240 RoutingContext *RoutingContext `protobuf:"bytes,1,opt,name=RoutingContext,proto3" json:"RoutingContext,omitempty"` 241 FieldSelectors []string `protobuf:"bytes,2,rep,name=FieldSelectors,proto3" json:"FieldSelectors,omitempty"` 242 PublishResult bool `protobuf:"varint,3,opt,name=PublishResult,proto3" json:"PublishResult,omitempty"` 243 } 244 245 func (x *TestRouteRequest) Reset() { 246 *x = TestRouteRequest{} 247 if protoimpl.UnsafeEnabled { 248 mi := &file_app_router_command_command_proto_msgTypes[2] 249 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 250 ms.StoreMessageInfo(mi) 251 } 252 } 253 254 func (x *TestRouteRequest) String() string { 255 return protoimpl.X.MessageStringOf(x) 256 } 257 258 func (*TestRouteRequest) ProtoMessage() {} 259 260 func (x *TestRouteRequest) ProtoReflect() protoreflect.Message { 261 mi := &file_app_router_command_command_proto_msgTypes[2] 262 if protoimpl.UnsafeEnabled && x != nil { 263 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 264 if ms.LoadMessageInfo() == nil { 265 ms.StoreMessageInfo(mi) 266 } 267 return ms 268 } 269 return mi.MessageOf(x) 270 } 271 272 // Deprecated: Use TestRouteRequest.ProtoReflect.Descriptor instead. 273 func (*TestRouteRequest) Descriptor() ([]byte, []int) { 274 return file_app_router_command_command_proto_rawDescGZIP(), []int{2} 275 } 276 277 func (x *TestRouteRequest) GetRoutingContext() *RoutingContext { 278 if x != nil { 279 return x.RoutingContext 280 } 281 return nil 282 } 283 284 func (x *TestRouteRequest) GetFieldSelectors() []string { 285 if x != nil { 286 return x.FieldSelectors 287 } 288 return nil 289 } 290 291 func (x *TestRouteRequest) GetPublishResult() bool { 292 if x != nil { 293 return x.PublishResult 294 } 295 return false 296 } 297 298 type PrincipleTargetInfo struct { 299 state protoimpl.MessageState 300 sizeCache protoimpl.SizeCache 301 unknownFields protoimpl.UnknownFields 302 303 Tag []string `protobuf:"bytes,1,rep,name=tag,proto3" json:"tag,omitempty"` 304 } 305 306 func (x *PrincipleTargetInfo) Reset() { 307 *x = PrincipleTargetInfo{} 308 if protoimpl.UnsafeEnabled { 309 mi := &file_app_router_command_command_proto_msgTypes[3] 310 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 311 ms.StoreMessageInfo(mi) 312 } 313 } 314 315 func (x *PrincipleTargetInfo) String() string { 316 return protoimpl.X.MessageStringOf(x) 317 } 318 319 func (*PrincipleTargetInfo) ProtoMessage() {} 320 321 func (x *PrincipleTargetInfo) ProtoReflect() protoreflect.Message { 322 mi := &file_app_router_command_command_proto_msgTypes[3] 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 333 // Deprecated: Use PrincipleTargetInfo.ProtoReflect.Descriptor instead. 334 func (*PrincipleTargetInfo) Descriptor() ([]byte, []int) { 335 return file_app_router_command_command_proto_rawDescGZIP(), []int{3} 336 } 337 338 func (x *PrincipleTargetInfo) GetTag() []string { 339 if x != nil { 340 return x.Tag 341 } 342 return nil 343 } 344 345 type OverrideInfo struct { 346 state protoimpl.MessageState 347 sizeCache protoimpl.SizeCache 348 unknownFields protoimpl.UnknownFields 349 350 Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` 351 } 352 353 func (x *OverrideInfo) Reset() { 354 *x = OverrideInfo{} 355 if protoimpl.UnsafeEnabled { 356 mi := &file_app_router_command_command_proto_msgTypes[4] 357 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 358 ms.StoreMessageInfo(mi) 359 } 360 } 361 362 func (x *OverrideInfo) String() string { 363 return protoimpl.X.MessageStringOf(x) 364 } 365 366 func (*OverrideInfo) ProtoMessage() {} 367 368 func (x *OverrideInfo) ProtoReflect() protoreflect.Message { 369 mi := &file_app_router_command_command_proto_msgTypes[4] 370 if protoimpl.UnsafeEnabled && x != nil { 371 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 372 if ms.LoadMessageInfo() == nil { 373 ms.StoreMessageInfo(mi) 374 } 375 return ms 376 } 377 return mi.MessageOf(x) 378 } 379 380 // Deprecated: Use OverrideInfo.ProtoReflect.Descriptor instead. 381 func (*OverrideInfo) Descriptor() ([]byte, []int) { 382 return file_app_router_command_command_proto_rawDescGZIP(), []int{4} 383 } 384 385 func (x *OverrideInfo) GetTarget() string { 386 if x != nil { 387 return x.Target 388 } 389 return "" 390 } 391 392 type BalancerMsg struct { 393 state protoimpl.MessageState 394 sizeCache protoimpl.SizeCache 395 unknownFields protoimpl.UnknownFields 396 397 Override *OverrideInfo `protobuf:"bytes,5,opt,name=override,proto3" json:"override,omitempty"` 398 PrincipleTarget *PrincipleTargetInfo `protobuf:"bytes,6,opt,name=principle_target,json=principleTarget,proto3" json:"principle_target,omitempty"` 399 } 400 401 func (x *BalancerMsg) Reset() { 402 *x = BalancerMsg{} 403 if protoimpl.UnsafeEnabled { 404 mi := &file_app_router_command_command_proto_msgTypes[5] 405 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 406 ms.StoreMessageInfo(mi) 407 } 408 } 409 410 func (x *BalancerMsg) String() string { 411 return protoimpl.X.MessageStringOf(x) 412 } 413 414 func (*BalancerMsg) ProtoMessage() {} 415 416 func (x *BalancerMsg) ProtoReflect() protoreflect.Message { 417 mi := &file_app_router_command_command_proto_msgTypes[5] 418 if protoimpl.UnsafeEnabled && x != nil { 419 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 420 if ms.LoadMessageInfo() == nil { 421 ms.StoreMessageInfo(mi) 422 } 423 return ms 424 } 425 return mi.MessageOf(x) 426 } 427 428 // Deprecated: Use BalancerMsg.ProtoReflect.Descriptor instead. 429 func (*BalancerMsg) Descriptor() ([]byte, []int) { 430 return file_app_router_command_command_proto_rawDescGZIP(), []int{5} 431 } 432 433 func (x *BalancerMsg) GetOverride() *OverrideInfo { 434 if x != nil { 435 return x.Override 436 } 437 return nil 438 } 439 440 func (x *BalancerMsg) GetPrincipleTarget() *PrincipleTargetInfo { 441 if x != nil { 442 return x.PrincipleTarget 443 } 444 return nil 445 } 446 447 type GetBalancerInfoRequest struct { 448 state protoimpl.MessageState 449 sizeCache protoimpl.SizeCache 450 unknownFields protoimpl.UnknownFields 451 452 Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"` 453 } 454 455 func (x *GetBalancerInfoRequest) Reset() { 456 *x = GetBalancerInfoRequest{} 457 if protoimpl.UnsafeEnabled { 458 mi := &file_app_router_command_command_proto_msgTypes[6] 459 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 460 ms.StoreMessageInfo(mi) 461 } 462 } 463 464 func (x *GetBalancerInfoRequest) String() string { 465 return protoimpl.X.MessageStringOf(x) 466 } 467 468 func (*GetBalancerInfoRequest) ProtoMessage() {} 469 470 func (x *GetBalancerInfoRequest) ProtoReflect() protoreflect.Message { 471 mi := &file_app_router_command_command_proto_msgTypes[6] 472 if protoimpl.UnsafeEnabled && x != nil { 473 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 474 if ms.LoadMessageInfo() == nil { 475 ms.StoreMessageInfo(mi) 476 } 477 return ms 478 } 479 return mi.MessageOf(x) 480 } 481 482 // Deprecated: Use GetBalancerInfoRequest.ProtoReflect.Descriptor instead. 483 func (*GetBalancerInfoRequest) Descriptor() ([]byte, []int) { 484 return file_app_router_command_command_proto_rawDescGZIP(), []int{6} 485 } 486 487 func (x *GetBalancerInfoRequest) GetTag() string { 488 if x != nil { 489 return x.Tag 490 } 491 return "" 492 } 493 494 type GetBalancerInfoResponse struct { 495 state protoimpl.MessageState 496 sizeCache protoimpl.SizeCache 497 unknownFields protoimpl.UnknownFields 498 499 Balancer *BalancerMsg `protobuf:"bytes,1,opt,name=balancer,proto3" json:"balancer,omitempty"` 500 } 501 502 func (x *GetBalancerInfoResponse) Reset() { 503 *x = GetBalancerInfoResponse{} 504 if protoimpl.UnsafeEnabled { 505 mi := &file_app_router_command_command_proto_msgTypes[7] 506 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 507 ms.StoreMessageInfo(mi) 508 } 509 } 510 511 func (x *GetBalancerInfoResponse) String() string { 512 return protoimpl.X.MessageStringOf(x) 513 } 514 515 func (*GetBalancerInfoResponse) ProtoMessage() {} 516 517 func (x *GetBalancerInfoResponse) ProtoReflect() protoreflect.Message { 518 mi := &file_app_router_command_command_proto_msgTypes[7] 519 if protoimpl.UnsafeEnabled && x != nil { 520 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 521 if ms.LoadMessageInfo() == nil { 522 ms.StoreMessageInfo(mi) 523 } 524 return ms 525 } 526 return mi.MessageOf(x) 527 } 528 529 // Deprecated: Use GetBalancerInfoResponse.ProtoReflect.Descriptor instead. 530 func (*GetBalancerInfoResponse) Descriptor() ([]byte, []int) { 531 return file_app_router_command_command_proto_rawDescGZIP(), []int{7} 532 } 533 534 func (x *GetBalancerInfoResponse) GetBalancer() *BalancerMsg { 535 if x != nil { 536 return x.Balancer 537 } 538 return nil 539 } 540 541 type OverrideBalancerTargetRequest struct { 542 state protoimpl.MessageState 543 sizeCache protoimpl.SizeCache 544 unknownFields protoimpl.UnknownFields 545 546 BalancerTag string `protobuf:"bytes,1,opt,name=balancerTag,proto3" json:"balancerTag,omitempty"` 547 Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` 548 } 549 550 func (x *OverrideBalancerTargetRequest) Reset() { 551 *x = OverrideBalancerTargetRequest{} 552 if protoimpl.UnsafeEnabled { 553 mi := &file_app_router_command_command_proto_msgTypes[8] 554 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 555 ms.StoreMessageInfo(mi) 556 } 557 } 558 559 func (x *OverrideBalancerTargetRequest) String() string { 560 return protoimpl.X.MessageStringOf(x) 561 } 562 563 func (*OverrideBalancerTargetRequest) ProtoMessage() {} 564 565 func (x *OverrideBalancerTargetRequest) ProtoReflect() protoreflect.Message { 566 mi := &file_app_router_command_command_proto_msgTypes[8] 567 if protoimpl.UnsafeEnabled && x != nil { 568 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 569 if ms.LoadMessageInfo() == nil { 570 ms.StoreMessageInfo(mi) 571 } 572 return ms 573 } 574 return mi.MessageOf(x) 575 } 576 577 // Deprecated: Use OverrideBalancerTargetRequest.ProtoReflect.Descriptor instead. 578 func (*OverrideBalancerTargetRequest) Descriptor() ([]byte, []int) { 579 return file_app_router_command_command_proto_rawDescGZIP(), []int{8} 580 } 581 582 func (x *OverrideBalancerTargetRequest) GetBalancerTag() string { 583 if x != nil { 584 return x.BalancerTag 585 } 586 return "" 587 } 588 589 func (x *OverrideBalancerTargetRequest) GetTarget() string { 590 if x != nil { 591 return x.Target 592 } 593 return "" 594 } 595 596 type OverrideBalancerTargetResponse struct { 597 state protoimpl.MessageState 598 sizeCache protoimpl.SizeCache 599 unknownFields protoimpl.UnknownFields 600 } 601 602 func (x *OverrideBalancerTargetResponse) Reset() { 603 *x = OverrideBalancerTargetResponse{} 604 if protoimpl.UnsafeEnabled { 605 mi := &file_app_router_command_command_proto_msgTypes[9] 606 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 607 ms.StoreMessageInfo(mi) 608 } 609 } 610 611 func (x *OverrideBalancerTargetResponse) String() string { 612 return protoimpl.X.MessageStringOf(x) 613 } 614 615 func (*OverrideBalancerTargetResponse) ProtoMessage() {} 616 617 func (x *OverrideBalancerTargetResponse) ProtoReflect() protoreflect.Message { 618 mi := &file_app_router_command_command_proto_msgTypes[9] 619 if protoimpl.UnsafeEnabled && x != nil { 620 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 621 if ms.LoadMessageInfo() == nil { 622 ms.StoreMessageInfo(mi) 623 } 624 return ms 625 } 626 return mi.MessageOf(x) 627 } 628 629 // Deprecated: Use OverrideBalancerTargetResponse.ProtoReflect.Descriptor instead. 630 func (*OverrideBalancerTargetResponse) Descriptor() ([]byte, []int) { 631 return file_app_router_command_command_proto_rawDescGZIP(), []int{9} 632 } 633 634 type AddRuleRequest struct { 635 state protoimpl.MessageState 636 sizeCache protoimpl.SizeCache 637 unknownFields protoimpl.UnknownFields 638 639 Config *serial.TypedMessage `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` 640 ShouldAppend bool `protobuf:"varint,2,opt,name=shouldAppend,proto3" json:"shouldAppend,omitempty"` 641 } 642 643 func (x *AddRuleRequest) Reset() { 644 *x = AddRuleRequest{} 645 if protoimpl.UnsafeEnabled { 646 mi := &file_app_router_command_command_proto_msgTypes[10] 647 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 648 ms.StoreMessageInfo(mi) 649 } 650 } 651 652 func (x *AddRuleRequest) String() string { 653 return protoimpl.X.MessageStringOf(x) 654 } 655 656 func (*AddRuleRequest) ProtoMessage() {} 657 658 func (x *AddRuleRequest) ProtoReflect() protoreflect.Message { 659 mi := &file_app_router_command_command_proto_msgTypes[10] 660 if protoimpl.UnsafeEnabled && x != nil { 661 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 662 if ms.LoadMessageInfo() == nil { 663 ms.StoreMessageInfo(mi) 664 } 665 return ms 666 } 667 return mi.MessageOf(x) 668 } 669 670 // Deprecated: Use AddRuleRequest.ProtoReflect.Descriptor instead. 671 func (*AddRuleRequest) Descriptor() ([]byte, []int) { 672 return file_app_router_command_command_proto_rawDescGZIP(), []int{10} 673 } 674 675 func (x *AddRuleRequest) GetConfig() *serial.TypedMessage { 676 if x != nil { 677 return x.Config 678 } 679 return nil 680 } 681 682 func (x *AddRuleRequest) GetShouldAppend() bool { 683 if x != nil { 684 return x.ShouldAppend 685 } 686 return false 687 } 688 689 type AddRuleResponse struct { 690 state protoimpl.MessageState 691 sizeCache protoimpl.SizeCache 692 unknownFields protoimpl.UnknownFields 693 } 694 695 func (x *AddRuleResponse) Reset() { 696 *x = AddRuleResponse{} 697 if protoimpl.UnsafeEnabled { 698 mi := &file_app_router_command_command_proto_msgTypes[11] 699 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 700 ms.StoreMessageInfo(mi) 701 } 702 } 703 704 func (x *AddRuleResponse) String() string { 705 return protoimpl.X.MessageStringOf(x) 706 } 707 708 func (*AddRuleResponse) ProtoMessage() {} 709 710 func (x *AddRuleResponse) ProtoReflect() protoreflect.Message { 711 mi := &file_app_router_command_command_proto_msgTypes[11] 712 if protoimpl.UnsafeEnabled && x != nil { 713 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 714 if ms.LoadMessageInfo() == nil { 715 ms.StoreMessageInfo(mi) 716 } 717 return ms 718 } 719 return mi.MessageOf(x) 720 } 721 722 // Deprecated: Use AddRuleResponse.ProtoReflect.Descriptor instead. 723 func (*AddRuleResponse) Descriptor() ([]byte, []int) { 724 return file_app_router_command_command_proto_rawDescGZIP(), []int{11} 725 } 726 727 type RemoveRuleRequest struct { 728 state protoimpl.MessageState 729 sizeCache protoimpl.SizeCache 730 unknownFields protoimpl.UnknownFields 731 732 RuleTag string `protobuf:"bytes,1,opt,name=ruleTag,proto3" json:"ruleTag,omitempty"` 733 } 734 735 func (x *RemoveRuleRequest) Reset() { 736 *x = RemoveRuleRequest{} 737 if protoimpl.UnsafeEnabled { 738 mi := &file_app_router_command_command_proto_msgTypes[12] 739 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 740 ms.StoreMessageInfo(mi) 741 } 742 } 743 744 func (x *RemoveRuleRequest) String() string { 745 return protoimpl.X.MessageStringOf(x) 746 } 747 748 func (*RemoveRuleRequest) ProtoMessage() {} 749 750 func (x *RemoveRuleRequest) ProtoReflect() protoreflect.Message { 751 mi := &file_app_router_command_command_proto_msgTypes[12] 752 if protoimpl.UnsafeEnabled && x != nil { 753 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 754 if ms.LoadMessageInfo() == nil { 755 ms.StoreMessageInfo(mi) 756 } 757 return ms 758 } 759 return mi.MessageOf(x) 760 } 761 762 // Deprecated: Use RemoveRuleRequest.ProtoReflect.Descriptor instead. 763 func (*RemoveRuleRequest) Descriptor() ([]byte, []int) { 764 return file_app_router_command_command_proto_rawDescGZIP(), []int{12} 765 } 766 767 func (x *RemoveRuleRequest) GetRuleTag() string { 768 if x != nil { 769 return x.RuleTag 770 } 771 return "" 772 } 773 774 type RemoveRuleResponse struct { 775 state protoimpl.MessageState 776 sizeCache protoimpl.SizeCache 777 unknownFields protoimpl.UnknownFields 778 } 779 780 func (x *RemoveRuleResponse) Reset() { 781 *x = RemoveRuleResponse{} 782 if protoimpl.UnsafeEnabled { 783 mi := &file_app_router_command_command_proto_msgTypes[13] 784 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 785 ms.StoreMessageInfo(mi) 786 } 787 } 788 789 func (x *RemoveRuleResponse) String() string { 790 return protoimpl.X.MessageStringOf(x) 791 } 792 793 func (*RemoveRuleResponse) ProtoMessage() {} 794 795 func (x *RemoveRuleResponse) ProtoReflect() protoreflect.Message { 796 mi := &file_app_router_command_command_proto_msgTypes[13] 797 if protoimpl.UnsafeEnabled && x != nil { 798 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 799 if ms.LoadMessageInfo() == nil { 800 ms.StoreMessageInfo(mi) 801 } 802 return ms 803 } 804 return mi.MessageOf(x) 805 } 806 807 // Deprecated: Use RemoveRuleResponse.ProtoReflect.Descriptor instead. 808 func (*RemoveRuleResponse) Descriptor() ([]byte, []int) { 809 return file_app_router_command_command_proto_rawDescGZIP(), []int{13} 810 } 811 812 type Config struct { 813 state protoimpl.MessageState 814 sizeCache protoimpl.SizeCache 815 unknownFields protoimpl.UnknownFields 816 } 817 818 func (x *Config) Reset() { 819 *x = Config{} 820 if protoimpl.UnsafeEnabled { 821 mi := &file_app_router_command_command_proto_msgTypes[14] 822 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 823 ms.StoreMessageInfo(mi) 824 } 825 } 826 827 func (x *Config) String() string { 828 return protoimpl.X.MessageStringOf(x) 829 } 830 831 func (*Config) ProtoMessage() {} 832 833 func (x *Config) ProtoReflect() protoreflect.Message { 834 mi := &file_app_router_command_command_proto_msgTypes[14] 835 if protoimpl.UnsafeEnabled && x != nil { 836 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 837 if ms.LoadMessageInfo() == nil { 838 ms.StoreMessageInfo(mi) 839 } 840 return ms 841 } 842 return mi.MessageOf(x) 843 } 844 845 // Deprecated: Use Config.ProtoReflect.Descriptor instead. 846 func (*Config) Descriptor() ([]byte, []int) { 847 return file_app_router_command_command_proto_rawDescGZIP(), []int{14} 848 } 849 850 var File_app_router_command_command_proto protoreflect.FileDescriptor 851 852 var file_app_router_command_command_proto_rawDesc = []byte{ 853 0x0a, 0x20, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6d, 854 0x6d, 0x61, 0x6e, 0x64, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 855 0x74, 0x6f, 0x12, 0x17, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 856 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x1a, 0x18, 0x63, 0x6f, 0x6d, 857 0x6d, 0x6f, 0x6e, 0x2f, 0x6e, 0x65, 0x74, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2e, 858 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x21, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x73, 0x65, 859 0x72, 0x69, 0x61, 0x6c, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 860 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9c, 0x04, 0x0a, 0x0e, 0x52, 0x6f, 0x75, 861 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x49, 862 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 863 0x0a, 0x49, 0x6e, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x12, 0x32, 0x0a, 0x07, 0x4e, 864 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x78, 865 0x72, 0x61, 0x79, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x6e, 0x65, 0x74, 0x2e, 0x4e, 866 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x52, 0x07, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x12, 867 0x1c, 0x0a, 0x09, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x50, 0x73, 0x18, 0x03, 0x20, 0x03, 868 0x28, 0x0c, 0x52, 0x09, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x49, 0x50, 0x73, 0x12, 0x1c, 0x0a, 869 0x09, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x50, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0c, 870 0x52, 0x09, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x50, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x53, 871 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 872 0x0a, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x1e, 0x0a, 0x0a, 0x54, 873 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x52, 874 0x0a, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x50, 0x6f, 0x72, 0x74, 0x12, 0x22, 0x0a, 0x0c, 0x54, 875 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 876 0x09, 0x52, 0x0c, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 877 0x1a, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 878 0x09, 0x52, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x55, 879 0x73, 0x65, 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 880 0x57, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0a, 0x20, 881 0x03, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 882 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x6f, 883 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x41, 0x74, 0x74, 884 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x41, 0x74, 885 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x11, 0x4f, 0x75, 0x74, 0x62, 886 0x6f, 0x75, 0x6e, 0x64, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x61, 0x67, 0x73, 0x18, 0x0b, 0x20, 887 0x03, 0x28, 0x09, 0x52, 0x11, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x47, 0x72, 0x6f, 888 0x75, 0x70, 0x54, 0x61, 0x67, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 889 0x6e, 0x64, 0x54, 0x61, 0x67, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x4f, 0x75, 0x74, 890 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x54, 0x61, 0x67, 0x1a, 0x3d, 0x0a, 0x0f, 0x41, 0x74, 0x74, 0x72, 891 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 892 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 893 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 894 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x46, 0x0a, 0x1c, 0x53, 0x75, 0x62, 0x73, 0x63, 895 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x73, 896 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x46, 0x69, 0x65, 0x6c, 0x64, 897 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 898 0x0e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x22, 899 0xb1, 0x01, 0x0a, 0x10, 0x54, 0x65, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 900 0x75, 0x65, 0x73, 0x74, 0x12, 0x4f, 0x0a, 0x0e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 901 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x78, 902 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 903 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 904 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x0e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 905 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x26, 0x0a, 0x0e, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 906 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x46, 907 0x69, 0x65, 0x6c, 0x64, 0x53, 0x65, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x24, 0x0a, 908 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x03, 909 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x52, 0x65, 0x73, 910 0x75, 0x6c, 0x74, 0x22, 0x27, 0x0a, 0x13, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x6c, 0x65, 911 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 912 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0x26, 0x0a, 0x0c, 913 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x16, 0x0a, 0x06, 914 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 915 0x72, 0x67, 0x65, 0x74, 0x22, 0xa9, 0x01, 0x0a, 0x0b, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 916 0x72, 0x4d, 0x73, 0x67, 0x12, 0x41, 0x0a, 0x08, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 917 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 918 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 919 0x2e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6f, 920 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x12, 0x57, 0x0a, 0x10, 0x70, 0x72, 0x69, 0x6e, 0x63, 921 0x69, 0x70, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 922 0x0b, 0x32, 0x2c, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 923 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x50, 0x72, 0x69, 0x6e, 924 0x63, 0x69, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x52, 925 0x0f, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x6c, 0x65, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 926 0x22, 0x2a, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x49, 927 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x61, 928 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x74, 0x61, 0x67, 0x22, 0x5b, 0x0a, 0x17, 929 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 930 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x40, 0x0a, 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 931 0x63, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x78, 0x72, 0x61, 0x79, 932 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 933 0x61, 0x6e, 0x64, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x4d, 0x73, 0x67, 0x52, 934 0x08, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x22, 0x59, 0x0a, 0x1d, 0x4f, 0x76, 0x65, 935 0x72, 0x72, 0x69, 0x64, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x54, 0x61, 0x72, 936 0x67, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x61, 937 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x54, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 938 0x0b, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x54, 0x61, 0x67, 0x12, 0x16, 0x0a, 0x06, 939 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 940 0x72, 0x67, 0x65, 0x74, 0x22, 0x20, 0x0a, 0x1e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 941 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 942 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6e, 0x0a, 0x0e, 0x41, 0x64, 0x64, 0x52, 0x75, 0x6c, 943 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 944 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 945 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x73, 0x65, 0x72, 0x69, 0x61, 0x6c, 0x2e, 0x54, 0x79, 946 0x70, 0x65, 0x64, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 947 0x69, 0x67, 0x12, 0x22, 0x0a, 0x0c, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 0x41, 0x70, 0x70, 0x65, 948 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x73, 0x68, 0x6f, 0x75, 0x6c, 0x64, 949 0x41, 0x70, 0x70, 0x65, 0x6e, 0x64, 0x22, 0x11, 0x0a, 0x0f, 0x41, 0x64, 0x64, 0x52, 0x75, 0x6c, 950 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x0a, 0x11, 0x52, 0x65, 0x6d, 951 0x6f, 0x76, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 952 0x0a, 0x07, 0x72, 0x75, 0x6c, 0x65, 0x54, 0x61, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 953 0x07, 0x72, 0x75, 0x6c, 0x65, 0x54, 0x61, 0x67, 0x22, 0x14, 0x0a, 0x12, 0x52, 0x65, 0x6d, 0x6f, 954 0x76, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x08, 955 0x0a, 0x06, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x32, 0xbf, 0x05, 0x0a, 0x0e, 0x52, 0x6f, 0x75, 956 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7b, 0x0a, 0x15, 0x53, 957 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 958 0x74, 0x61, 0x74, 0x73, 0x12, 0x35, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 959 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x53, 960 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x53, 961 0x74, 0x61, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x78, 0x72, 962 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 963 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 964 0x74, 0x65, 0x78, 0x74, 0x22, 0x00, 0x30, 0x01, 0x12, 0x61, 0x0a, 0x09, 0x54, 0x65, 0x73, 0x74, 965 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x29, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 966 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 967 0x54, 0x65, 0x73, 0x74, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 968 0x1a, 0x27, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 969 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x69, 970 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22, 0x00, 0x12, 0x76, 0x0a, 0x0f, 0x47, 971 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x2f, 972 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 973 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 974 0x6e, 0x63, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 975 0x30, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 976 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x47, 0x65, 0x74, 0x42, 0x61, 0x6c, 977 0x61, 0x6e, 0x63, 0x65, 0x72, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 978 0x65, 0x22, 0x00, 0x12, 0x8b, 0x01, 0x0a, 0x16, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 979 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x36, 980 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 981 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 982 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 983 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x37, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 984 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 985 0x2e, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 986 0x72, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 987 0x00, 0x12, 0x5e, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x12, 0x27, 0x2e, 0x78, 988 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 989 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x41, 0x64, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 990 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 991 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 992 0x41, 0x64, 0x64, 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 993 0x00, 0x12, 0x67, 0x0a, 0x0a, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x75, 0x6c, 0x65, 0x12, 994 0x2a, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 995 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 996 0x52, 0x75, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x78, 0x72, 997 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 998 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x52, 0x75, 0x6c, 0x65, 999 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0x67, 0x0a, 0x1b, 0x63, 0x6f, 1000 0x6d, 0x2e, 0x78, 0x72, 0x61, 0x79, 0x2e, 0x61, 0x70, 0x70, 0x2e, 0x72, 0x6f, 0x75, 0x74, 0x65, 1001 0x72, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x50, 0x01, 0x5a, 0x2c, 0x67, 0x69, 0x74, 1002 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x78, 0x74, 0x6c, 0x73, 0x2f, 0x78, 0x72, 0x61, 1003 0x79, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 1004 0x72, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0xaa, 0x02, 0x17, 0x58, 0x72, 0x61, 0x79, 1005 0x2e, 0x41, 0x70, 0x70, 0x2e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 1006 0x61, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 1007 } 1008 1009 var ( 1010 file_app_router_command_command_proto_rawDescOnce sync.Once 1011 file_app_router_command_command_proto_rawDescData = file_app_router_command_command_proto_rawDesc 1012 ) 1013 1014 func file_app_router_command_command_proto_rawDescGZIP() []byte { 1015 file_app_router_command_command_proto_rawDescOnce.Do(func() { 1016 file_app_router_command_command_proto_rawDescData = protoimpl.X.CompressGZIP(file_app_router_command_command_proto_rawDescData) 1017 }) 1018 return file_app_router_command_command_proto_rawDescData 1019 } 1020 1021 var file_app_router_command_command_proto_msgTypes = make([]protoimpl.MessageInfo, 16) 1022 var file_app_router_command_command_proto_goTypes = []interface{}{ 1023 (*RoutingContext)(nil), // 0: xray.app.router.command.RoutingContext 1024 (*SubscribeRoutingStatsRequest)(nil), // 1: xray.app.router.command.SubscribeRoutingStatsRequest 1025 (*TestRouteRequest)(nil), // 2: xray.app.router.command.TestRouteRequest 1026 (*PrincipleTargetInfo)(nil), // 3: xray.app.router.command.PrincipleTargetInfo 1027 (*OverrideInfo)(nil), // 4: xray.app.router.command.OverrideInfo 1028 (*BalancerMsg)(nil), // 5: xray.app.router.command.BalancerMsg 1029 (*GetBalancerInfoRequest)(nil), // 6: xray.app.router.command.GetBalancerInfoRequest 1030 (*GetBalancerInfoResponse)(nil), // 7: xray.app.router.command.GetBalancerInfoResponse 1031 (*OverrideBalancerTargetRequest)(nil), // 8: xray.app.router.command.OverrideBalancerTargetRequest 1032 (*OverrideBalancerTargetResponse)(nil), // 9: xray.app.router.command.OverrideBalancerTargetResponse 1033 (*AddRuleRequest)(nil), // 10: xray.app.router.command.AddRuleRequest 1034 (*AddRuleResponse)(nil), // 11: xray.app.router.command.AddRuleResponse 1035 (*RemoveRuleRequest)(nil), // 12: xray.app.router.command.RemoveRuleRequest 1036 (*RemoveRuleResponse)(nil), // 13: xray.app.router.command.RemoveRuleResponse 1037 (*Config)(nil), // 14: xray.app.router.command.Config 1038 nil, // 15: xray.app.router.command.RoutingContext.AttributesEntry 1039 (net.Network)(0), // 16: xray.common.net.Network 1040 (*serial.TypedMessage)(nil), // 17: xray.common.serial.TypedMessage 1041 } 1042 var file_app_router_command_command_proto_depIdxs = []int32{ 1043 16, // 0: xray.app.router.command.RoutingContext.Network:type_name -> xray.common.net.Network 1044 15, // 1: xray.app.router.command.RoutingContext.Attributes:type_name -> xray.app.router.command.RoutingContext.AttributesEntry 1045 0, // 2: xray.app.router.command.TestRouteRequest.RoutingContext:type_name -> xray.app.router.command.RoutingContext 1046 4, // 3: xray.app.router.command.BalancerMsg.override:type_name -> xray.app.router.command.OverrideInfo 1047 3, // 4: xray.app.router.command.BalancerMsg.principle_target:type_name -> xray.app.router.command.PrincipleTargetInfo 1048 5, // 5: xray.app.router.command.GetBalancerInfoResponse.balancer:type_name -> xray.app.router.command.BalancerMsg 1049 17, // 6: xray.app.router.command.AddRuleRequest.config:type_name -> xray.common.serial.TypedMessage 1050 1, // 7: xray.app.router.command.RoutingService.SubscribeRoutingStats:input_type -> xray.app.router.command.SubscribeRoutingStatsRequest 1051 2, // 8: xray.app.router.command.RoutingService.TestRoute:input_type -> xray.app.router.command.TestRouteRequest 1052 6, // 9: xray.app.router.command.RoutingService.GetBalancerInfo:input_type -> xray.app.router.command.GetBalancerInfoRequest 1053 8, // 10: xray.app.router.command.RoutingService.OverrideBalancerTarget:input_type -> xray.app.router.command.OverrideBalancerTargetRequest 1054 10, // 11: xray.app.router.command.RoutingService.AddRule:input_type -> xray.app.router.command.AddRuleRequest 1055 12, // 12: xray.app.router.command.RoutingService.RemoveRule:input_type -> xray.app.router.command.RemoveRuleRequest 1056 0, // 13: xray.app.router.command.RoutingService.SubscribeRoutingStats:output_type -> xray.app.router.command.RoutingContext 1057 0, // 14: xray.app.router.command.RoutingService.TestRoute:output_type -> xray.app.router.command.RoutingContext 1058 7, // 15: xray.app.router.command.RoutingService.GetBalancerInfo:output_type -> xray.app.router.command.GetBalancerInfoResponse 1059 9, // 16: xray.app.router.command.RoutingService.OverrideBalancerTarget:output_type -> xray.app.router.command.OverrideBalancerTargetResponse 1060 11, // 17: xray.app.router.command.RoutingService.AddRule:output_type -> xray.app.router.command.AddRuleResponse 1061 13, // 18: xray.app.router.command.RoutingService.RemoveRule:output_type -> xray.app.router.command.RemoveRuleResponse 1062 13, // [13:19] is the sub-list for method output_type 1063 7, // [7:13] is the sub-list for method input_type 1064 7, // [7:7] is the sub-list for extension type_name 1065 7, // [7:7] is the sub-list for extension extendee 1066 0, // [0:7] is the sub-list for field type_name 1067 } 1068 1069 func init() { file_app_router_command_command_proto_init() } 1070 func file_app_router_command_command_proto_init() { 1071 if File_app_router_command_command_proto != nil { 1072 return 1073 } 1074 if !protoimpl.UnsafeEnabled { 1075 file_app_router_command_command_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 1076 switch v := v.(*RoutingContext); i { 1077 case 0: 1078 return &v.state 1079 case 1: 1080 return &v.sizeCache 1081 case 2: 1082 return &v.unknownFields 1083 default: 1084 return nil 1085 } 1086 } 1087 file_app_router_command_command_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 1088 switch v := v.(*SubscribeRoutingStatsRequest); i { 1089 case 0: 1090 return &v.state 1091 case 1: 1092 return &v.sizeCache 1093 case 2: 1094 return &v.unknownFields 1095 default: 1096 return nil 1097 } 1098 } 1099 file_app_router_command_command_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 1100 switch v := v.(*TestRouteRequest); i { 1101 case 0: 1102 return &v.state 1103 case 1: 1104 return &v.sizeCache 1105 case 2: 1106 return &v.unknownFields 1107 default: 1108 return nil 1109 } 1110 } 1111 file_app_router_command_command_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 1112 switch v := v.(*PrincipleTargetInfo); i { 1113 case 0: 1114 return &v.state 1115 case 1: 1116 return &v.sizeCache 1117 case 2: 1118 return &v.unknownFields 1119 default: 1120 return nil 1121 } 1122 } 1123 file_app_router_command_command_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 1124 switch v := v.(*OverrideInfo); i { 1125 case 0: 1126 return &v.state 1127 case 1: 1128 return &v.sizeCache 1129 case 2: 1130 return &v.unknownFields 1131 default: 1132 return nil 1133 } 1134 } 1135 file_app_router_command_command_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 1136 switch v := v.(*BalancerMsg); i { 1137 case 0: 1138 return &v.state 1139 case 1: 1140 return &v.sizeCache 1141 case 2: 1142 return &v.unknownFields 1143 default: 1144 return nil 1145 } 1146 } 1147 file_app_router_command_command_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1148 switch v := v.(*GetBalancerInfoRequest); i { 1149 case 0: 1150 return &v.state 1151 case 1: 1152 return &v.sizeCache 1153 case 2: 1154 return &v.unknownFields 1155 default: 1156 return nil 1157 } 1158 } 1159 file_app_router_command_command_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1160 switch v := v.(*GetBalancerInfoResponse); i { 1161 case 0: 1162 return &v.state 1163 case 1: 1164 return &v.sizeCache 1165 case 2: 1166 return &v.unknownFields 1167 default: 1168 return nil 1169 } 1170 } 1171 file_app_router_command_command_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1172 switch v := v.(*OverrideBalancerTargetRequest); i { 1173 case 0: 1174 return &v.state 1175 case 1: 1176 return &v.sizeCache 1177 case 2: 1178 return &v.unknownFields 1179 default: 1180 return nil 1181 } 1182 } 1183 file_app_router_command_command_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1184 switch v := v.(*OverrideBalancerTargetResponse); i { 1185 case 0: 1186 return &v.state 1187 case 1: 1188 return &v.sizeCache 1189 case 2: 1190 return &v.unknownFields 1191 default: 1192 return nil 1193 } 1194 } 1195 file_app_router_command_command_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { 1196 switch v := v.(*AddRuleRequest); i { 1197 case 0: 1198 return &v.state 1199 case 1: 1200 return &v.sizeCache 1201 case 2: 1202 return &v.unknownFields 1203 default: 1204 return nil 1205 } 1206 } 1207 file_app_router_command_command_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { 1208 switch v := v.(*AddRuleResponse); i { 1209 case 0: 1210 return &v.state 1211 case 1: 1212 return &v.sizeCache 1213 case 2: 1214 return &v.unknownFields 1215 default: 1216 return nil 1217 } 1218 } 1219 file_app_router_command_command_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { 1220 switch v := v.(*RemoveRuleRequest); i { 1221 case 0: 1222 return &v.state 1223 case 1: 1224 return &v.sizeCache 1225 case 2: 1226 return &v.unknownFields 1227 default: 1228 return nil 1229 } 1230 } 1231 file_app_router_command_command_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { 1232 switch v := v.(*RemoveRuleResponse); i { 1233 case 0: 1234 return &v.state 1235 case 1: 1236 return &v.sizeCache 1237 case 2: 1238 return &v.unknownFields 1239 default: 1240 return nil 1241 } 1242 } 1243 file_app_router_command_command_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { 1244 switch v := v.(*Config); i { 1245 case 0: 1246 return &v.state 1247 case 1: 1248 return &v.sizeCache 1249 case 2: 1250 return &v.unknownFields 1251 default: 1252 return nil 1253 } 1254 } 1255 } 1256 type x struct{} 1257 out := protoimpl.TypeBuilder{ 1258 File: protoimpl.DescBuilder{ 1259 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1260 RawDescriptor: file_app_router_command_command_proto_rawDesc, 1261 NumEnums: 0, 1262 NumMessages: 16, 1263 NumExtensions: 0, 1264 NumServices: 1, 1265 }, 1266 GoTypes: file_app_router_command_command_proto_goTypes, 1267 DependencyIndexes: file_app_router_command_command_proto_depIdxs, 1268 MessageInfos: file_app_router_command_command_proto_msgTypes, 1269 }.Build() 1270 File_app_router_command_command_proto = out.File 1271 file_app_router_command_command_proto_rawDesc = nil 1272 file_app_router_command_command_proto_goTypes = nil 1273 file_app_router_command_command_proto_depIdxs = nil 1274 }