Acl.java 144 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: acl.proto

package acl;

public final class Acl {
  private Acl() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code acl.AclRuleTypeEnum}
   */
  public enum AclRuleTypeEnum
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>ACLRULETYPE_UNDEFINED = 0;</code>
     */
    ACLRULETYPE_UNDEFINED(0),
    /**
     * <code>ACLRULETYPE_IPV4 = 1;</code>
     */
    ACLRULETYPE_IPV4(1),
    /**
     * <code>ACLRULETYPE_IPV6 = 2;</code>
     */
    ACLRULETYPE_IPV6(2),
    /**
     * <code>ACLRULETYPE_L2 = 3;</code>
     */
    ACLRULETYPE_L2(3),
    /**
     * <code>ACLRULETYPE_MPLS = 4;</code>
     */
    ACLRULETYPE_MPLS(4),
    /**
     * <code>ACLRULETYPE_MIXED = 5;</code>
     */
    ACLRULETYPE_MIXED(5),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>ACLRULETYPE_UNDEFINED = 0;</code>
     */
    public static final int ACLRULETYPE_UNDEFINED_VALUE = 0;
    /**
     * <code>ACLRULETYPE_IPV4 = 1;</code>
     */
    public static final int ACLRULETYPE_IPV4_VALUE = 1;
    /**
     * <code>ACLRULETYPE_IPV6 = 2;</code>
     */
    public static final int ACLRULETYPE_IPV6_VALUE = 2;
    /**
     * <code>ACLRULETYPE_L2 = 3;</code>
     */
    public static final int ACLRULETYPE_L2_VALUE = 3;
    /**
     * <code>ACLRULETYPE_MPLS = 4;</code>
     */
    public static final int ACLRULETYPE_MPLS_VALUE = 4;
    /**
     * <code>ACLRULETYPE_MIXED = 5;</code>
     */
    public static final int ACLRULETYPE_MIXED_VALUE = 5;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static AclRuleTypeEnum valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static AclRuleTypeEnum forNumber(int value) {
      switch (value) {
        case 0: return ACLRULETYPE_UNDEFINED;
        case 1: return ACLRULETYPE_IPV4;
        case 2: return ACLRULETYPE_IPV6;
        case 3: return ACLRULETYPE_L2;
        case 4: return ACLRULETYPE_MPLS;
        case 5: return ACLRULETYPE_MIXED;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<AclRuleTypeEnum>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        AclRuleTypeEnum> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<AclRuleTypeEnum>() {
            public AclRuleTypeEnum findValueByNumber(int number) {
              return AclRuleTypeEnum.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return acl.Acl.getDescriptor().getEnumTypes().get(0);
    }

    private static final AclRuleTypeEnum[] VALUES = values();

    public static AclRuleTypeEnum valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private AclRuleTypeEnum(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:acl.AclRuleTypeEnum)
  }

  /**
   * Protobuf enum {@code acl.AclForwardActionEnum}
   */
  public enum AclForwardActionEnum
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>ACLFORWARDINGACTION_UNDEFINED = 0;</code>
     */
    ACLFORWARDINGACTION_UNDEFINED(0),
    /**
     * <code>ACLFORWARDINGACTION_DROP = 1;</code>
     */
    ACLFORWARDINGACTION_DROP(1),
    /**
     * <code>ACLFORWARDINGACTION_ACCEPT = 2;</code>
     */
    ACLFORWARDINGACTION_ACCEPT(2),
    /**
     * <code>ACLFORWARDINGACTION_REJECT = 3;</code>
     */
    ACLFORWARDINGACTION_REJECT(3),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>ACLFORWARDINGACTION_UNDEFINED = 0;</code>
     */
    public static final int ACLFORWARDINGACTION_UNDEFINED_VALUE = 0;
    /**
     * <code>ACLFORWARDINGACTION_DROP = 1;</code>
     */
    public static final int ACLFORWARDINGACTION_DROP_VALUE = 1;
    /**
     * <code>ACLFORWARDINGACTION_ACCEPT = 2;</code>
     */
    public static final int ACLFORWARDINGACTION_ACCEPT_VALUE = 2;
    /**
     * <code>ACLFORWARDINGACTION_REJECT = 3;</code>
     */
    public static final int ACLFORWARDINGACTION_REJECT_VALUE = 3;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static AclForwardActionEnum valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static AclForwardActionEnum forNumber(int value) {
      switch (value) {
        case 0: return ACLFORWARDINGACTION_UNDEFINED;
        case 1: return ACLFORWARDINGACTION_DROP;
        case 2: return ACLFORWARDINGACTION_ACCEPT;
        case 3: return ACLFORWARDINGACTION_REJECT;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<AclForwardActionEnum>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        AclForwardActionEnum> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<AclForwardActionEnum>() {
            public AclForwardActionEnum findValueByNumber(int number) {
              return AclForwardActionEnum.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return acl.Acl.getDescriptor().getEnumTypes().get(1);
    }

    private static final AclForwardActionEnum[] VALUES = values();

    public static AclForwardActionEnum valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private AclForwardActionEnum(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:acl.AclForwardActionEnum)
  }

  /**
   * Protobuf enum {@code acl.AclLogActionEnum}
   */
  public enum AclLogActionEnum
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>ACLLOGACTION_UNDEFINED = 0;</code>
     */
    ACLLOGACTION_UNDEFINED(0),
    /**
     * <code>ACLLOGACTION_NOLOG = 1;</code>
     */
    ACLLOGACTION_NOLOG(1),
    /**
     * <code>ACLLOGACTION_SYSLOG = 2;</code>
     */
    ACLLOGACTION_SYSLOG(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>ACLLOGACTION_UNDEFINED = 0;</code>
     */
    public static final int ACLLOGACTION_UNDEFINED_VALUE = 0;
    /**
     * <code>ACLLOGACTION_NOLOG = 1;</code>
     */
    public static final int ACLLOGACTION_NOLOG_VALUE = 1;
    /**
     * <code>ACLLOGACTION_SYSLOG = 2;</code>
     */
    public static final int ACLLOGACTION_SYSLOG_VALUE = 2;


    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static AclLogActionEnum valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static AclLogActionEnum forNumber(int value) {
      switch (value) {
        case 0: return ACLLOGACTION_UNDEFINED;
        case 1: return ACLLOGACTION_NOLOG;
        case 2: return ACLLOGACTION_SYSLOG;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<AclLogActionEnum>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        AclLogActionEnum> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<AclLogActionEnum>() {
            public AclLogActionEnum findValueByNumber(int number) {
              return AclLogActionEnum.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return acl.Acl.getDescriptor().getEnumTypes().get(2);
    }

    private static final AclLogActionEnum[] VALUES = values();

    public static AclLogActionEnum valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private AclLogActionEnum(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:acl.AclLogActionEnum)
  }

  public interface AclMatchOrBuilder extends
      // @@protoc_insertion_point(interface_extends:acl.AclMatch)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>uint32 dscp = 1;</code>
     * @return The dscp.
     */
    int getDscp();

    /**
     * <code>uint32 protocol = 2;</code>
     * @return The protocol.
     */
    int getProtocol();

    /**
     * <code>string src_address = 3;</code>
     * @return The srcAddress.
     */
    java.lang.String getSrcAddress();
    /**
     * <code>string src_address = 3;</code>
     * @return The bytes for srcAddress.
     */
    com.google.protobuf.ByteString
        getSrcAddressBytes();

    /**
     * <code>string dst_address = 4;</code>
     * @return The dstAddress.
     */
    java.lang.String getDstAddress();
    /**
     * <code>string dst_address = 4;</code>
     * @return The bytes for dstAddress.
     */
    com.google.protobuf.ByteString
        getDstAddressBytes();

    /**
     * <code>uint32 src_port = 5;</code>
     * @return The srcPort.
     */
    int getSrcPort();

    /**
     * <code>uint32 dst_port = 6;</code>
     * @return The dstPort.
     */
    int getDstPort();

    /**
     * <code>uint32 start_mpls_label = 7;</code>
     * @return The startMplsLabel.
     */
    int getStartMplsLabel();

    /**
     * <code>uint32 end_mpls_label = 8;</code>
     * @return The endMplsLabel.
     */
    int getEndMplsLabel();
  }
  /**
   * Protobuf type {@code acl.AclMatch}
   */
  public static final class AclMatch extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:acl.AclMatch)
      AclMatchOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use AclMatch.newBuilder() to construct.
    private AclMatch(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private AclMatch() {
      srcAddress_ = "";
      dstAddress_ = "";
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(
        UnusedPrivateParameter unused) {
      return new AclMatch();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private AclMatch(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8: {

              dscp_ = input.readUInt32();
              break;
            }
            case 16: {

              protocol_ = input.readUInt32();
              break;
            }
            case 26: {
              java.lang.String s = input.readStringRequireUtf8();

              srcAddress_ = s;
              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();

              dstAddress_ = s;
              break;
            }
            case 40: {

              srcPort_ = input.readUInt32();
              break;
            }
            case 48: {

              dstPort_ = input.readUInt32();
              break;
            }
            case 56: {

              startMplsLabel_ = input.readUInt32();
              break;
            }
            case 64: {

              endMplsLabel_ = input.readUInt32();
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return acl.Acl.internal_static_acl_AclMatch_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return acl.Acl.internal_static_acl_AclMatch_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              acl.Acl.AclMatch.class, acl.Acl.AclMatch.Builder.class);
    }

    public static final int DSCP_FIELD_NUMBER = 1;
    private int dscp_;
    /**
     * <code>uint32 dscp = 1;</code>
     * @return The dscp.
     */
    @java.lang.Override
    public int getDscp() {
      return dscp_;
    }

    public static final int PROTOCOL_FIELD_NUMBER = 2;
    private int protocol_;
    /**
     * <code>uint32 protocol = 2;</code>
     * @return The protocol.
     */
    @java.lang.Override
    public int getProtocol() {
      return protocol_;
    }

    public static final int SRC_ADDRESS_FIELD_NUMBER = 3;
    private volatile java.lang.Object srcAddress_;
    /**
     * <code>string src_address = 3;</code>
     * @return The srcAddress.
     */
    @java.lang.Override
    public java.lang.String getSrcAddress() {
      java.lang.Object ref = srcAddress_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        srcAddress_ = s;
        return s;
      }
    }
    /**
     * <code>string src_address = 3;</code>
     * @return The bytes for srcAddress.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getSrcAddressBytes() {
      java.lang.Object ref = srcAddress_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        srcAddress_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DST_ADDRESS_FIELD_NUMBER = 4;
    private volatile java.lang.Object dstAddress_;
    /**
     * <code>string dst_address = 4;</code>
     * @return The dstAddress.
     */
    @java.lang.Override
    public java.lang.String getDstAddress() {
      java.lang.Object ref = dstAddress_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = 
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        dstAddress_ = s;
        return s;
      }
    }
    /**
     * <code>string dst_address = 4;</code>
     * @return The bytes for dstAddress.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getDstAddressBytes() {
      java.lang.Object ref = dstAddress_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        dstAddress_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int SRC_PORT_FIELD_NUMBER = 5;
    private int srcPort_;
    /**
     * <code>uint32 src_port = 5;</code>
     * @return The srcPort.
     */
    @java.lang.Override
    public int getSrcPort() {
      return srcPort_;
    }

    public static final int DST_PORT_FIELD_NUMBER = 6;
    private int dstPort_;
    /**
     * <code>uint32 dst_port = 6;</code>
     * @return The dstPort.
     */
    @java.lang.Override
    public int getDstPort() {
      return dstPort_;
    }

    public static final int START_MPLS_LABEL_FIELD_NUMBER = 7;
    private int startMplsLabel_;
    /**
     * <code>uint32 start_mpls_label = 7;</code>
     * @return The startMplsLabel.
     */
    @java.lang.Override
    public int getStartMplsLabel() {
      return startMplsLabel_;
    }

    public static final int END_MPLS_LABEL_FIELD_NUMBER = 8;
    private int endMplsLabel_;
    /**
     * <code>uint32 end_mpls_label = 8;</code>
     * @return The endMplsLabel.
     */
    @java.lang.Override
    public int getEndMplsLabel() {
      return endMplsLabel_;
    }

    private byte memoizedIsInitialized = -1;
    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      if (dscp_ != 0) {
        output.writeUInt32(1, dscp_);
      }
      if (protocol_ != 0) {
        output.writeUInt32(2, protocol_);
      }
      if (!getSrcAddressBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, srcAddress_);
      }
      if (!getDstAddressBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dstAddress_);
      }
      if (srcPort_ != 0) {
        output.writeUInt32(5, srcPort_);
      }
      if (dstPort_ != 0) {
        output.writeUInt32(6, dstPort_);
      }
      if (startMplsLabel_ != 0) {
        output.writeUInt32(7, startMplsLabel_);
      }
      if (endMplsLabel_ != 0) {
        output.writeUInt32(8, endMplsLabel_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (dscp_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(1, dscp_);
      }
      if (protocol_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(2, protocol_);
      }
      if (!getSrcAddressBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, srcAddress_);
      }
      if (!getDstAddressBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dstAddress_);
      }
      if (srcPort_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(5, srcPort_);
      }
      if (dstPort_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(6, dstPort_);
      }
      if (startMplsLabel_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(7, startMplsLabel_);
      }
      if (endMplsLabel_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(8, endMplsLabel_);
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof acl.Acl.AclMatch)) {
        return super.equals(obj);
      }
      acl.Acl.AclMatch other = (acl.Acl.AclMatch) obj;

      if (getDscp()
          != other.getDscp()) return false;
      if (getProtocol()
          != other.getProtocol()) return false;
      if (!getSrcAddress()
          .equals(other.getSrcAddress())) return false;
      if (!getDstAddress()
          .equals(other.getDstAddress())) return false;
      if (getSrcPort()
          != other.getSrcPort()) return false;
      if (getDstPort()
          != other.getDstPort()) return false;
      if (getStartMplsLabel()
          != other.getStartMplsLabel()) return false;
      if (getEndMplsLabel()
          != other.getEndMplsLabel()) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + DSCP_FIELD_NUMBER;
      hash = (53 * hash) + getDscp();
      hash = (37 * hash) + PROTOCOL_FIELD_NUMBER;
      hash = (53 * hash) + getProtocol();
      hash = (37 * hash) + SRC_ADDRESS_FIELD_NUMBER;
      hash = (53 * hash) + getSrcAddress().hashCode();
      hash = (37 * hash) + DST_ADDRESS_FIELD_NUMBER;
      hash = (53 * hash) + getDstAddress().hashCode();
      hash = (37 * hash) + SRC_PORT_FIELD_NUMBER;
      hash = (53 * hash) + getSrcPort();
      hash = (37 * hash) + DST_PORT_FIELD_NUMBER;
      hash = (53 * hash) + getDstPort();
      hash = (37 * hash) + START_MPLS_LABEL_FIELD_NUMBER;
      hash = (53 * hash) + getStartMplsLabel();
      hash = (37 * hash) + END_MPLS_LABEL_FIELD_NUMBER;
      hash = (53 * hash) + getEndMplsLabel();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static acl.Acl.AclMatch parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static acl.Acl.AclMatch parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static acl.Acl.AclMatch parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static acl.Acl.AclMatch parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static acl.Acl.AclMatch parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static acl.Acl.AclMatch parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static acl.Acl.AclMatch parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static acl.Acl.AclMatch parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }
    public static acl.Acl.AclMatch parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static acl.Acl.AclMatch parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
    }
    public static acl.Acl.AclMatch parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static acl.Acl.AclMatch parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }
    public static Builder newBuilder(acl.Acl.AclMatch prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }
    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE
          ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code acl.AclMatch}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:acl.AclMatch)
        acl.Acl.AclMatchOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return acl.Acl.internal_static_acl_AclMatch_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return acl.Acl.internal_static_acl_AclMatch_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                acl.Acl.AclMatch.class, acl.Acl.AclMatch.Builder.class);
      }

      // Construct using acl.Acl.AclMatch.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        dscp_ = 0;