Newer
Older
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: acl.proto
package acl;
public final class Acl {
Konstantinos Poulakakis
committed
private Acl() {
}
Konstantinos Poulakakis
committed
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
Konstantinos Poulakakis
committed
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
Konstantinos Poulakakis
committed
* Protobuf enum {@code acl.AclRuleTypeEnum}
Konstantinos Poulakakis
committed
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
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;
}
Konstantinos Poulakakis
committed
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
/**
* @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;
Konstantinos Poulakakis
committed
}
Konstantinos Poulakakis
committed
public static com.google.protobuf.Internal.EnumLiteMap<AclRuleTypeEnum> internalGetValueMap() {
return internalValueMap;
}
Konstantinos Poulakakis
committed
private static final com.google.protobuf.Internal.EnumLiteMap<AclRuleTypeEnum> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<AclRuleTypeEnum>() {
Konstantinos Poulakakis
committed
public AclRuleTypeEnum findValueByNumber(int number) {
return AclRuleTypeEnum.forNumber(number);
}
};
Konstantinos Poulakakis
committed
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());
}
Konstantinos Poulakakis
committed
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
Konstantinos Poulakakis
committed
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return acl.Acl.getDescriptor().getEnumTypes().get(0);
}
Konstantinos Poulakakis
committed
private static final AclRuleTypeEnum[] VALUES = values();
Konstantinos Poulakakis
committed
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()];
}
Konstantinos Poulakakis
committed
private final int value;
Konstantinos Poulakakis
committed
private AclRuleTypeEnum(int value) {
this.value = value;
}
}
/**
Konstantinos Poulakakis
committed
* Protobuf enum {@code acl.AclForwardActionEnum}
Konstantinos Poulakakis
committed
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
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;
}
Konstantinos Poulakakis
committed
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
/**
* @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;
Konstantinos Poulakakis
committed
}
Konstantinos Poulakakis
committed
public static com.google.protobuf.Internal.EnumLiteMap<AclForwardActionEnum> internalGetValueMap() {
return internalValueMap;
}
Konstantinos Poulakakis
committed
private static final com.google.protobuf.Internal.EnumLiteMap<AclForwardActionEnum> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<AclForwardActionEnum>() {
Konstantinos Poulakakis
committed
public AclForwardActionEnum findValueByNumber(int number) {
return AclForwardActionEnum.forNumber(number);
}
};
Konstantinos Poulakakis
committed
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());
}
Konstantinos Poulakakis
committed
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
Konstantinos Poulakakis
committed
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return acl.Acl.getDescriptor().getEnumTypes().get(1);
}
Konstantinos Poulakakis
committed
private static final AclForwardActionEnum[] VALUES = values();
Konstantinos Poulakakis
committed
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()];
}
Konstantinos Poulakakis
committed
private final int value;
Konstantinos Poulakakis
committed
private AclForwardActionEnum(int value) {
this.value = value;
}
}
/**
Konstantinos Poulakakis
committed
* Protobuf enum {@code acl.AclLogActionEnum}
Konstantinos Poulakakis
committed
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
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) {
Konstantinos Poulakakis
committed
return AclLogActionEnum.forNumber(number);
Konstantinos Poulakakis
committed
};
Konstantinos Poulakakis
committed
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());
}
Konstantinos Poulakakis
committed
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
Konstantinos Poulakakis
committed
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return acl.Acl.getDescriptor().getEnumTypes().get(2);
}
Konstantinos Poulakakis
committed
private static final AclLogActionEnum[] VALUES = values();
Konstantinos Poulakakis
committed
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()];
}
Konstantinos Poulakakis
committed
private final int value;
Konstantinos Poulakakis
committed
private AclLogActionEnum(int value) {
this.value = value;
}
}
Konstantinos Poulakakis
committed
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
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();
}
/**
Konstantinos Poulakakis
committed
* Protobuf type {@code acl.AclMatch}
Konstantinos Poulakakis
committed
public static final class AclMatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:acl.AclMatch)
AclMatchOrBuilder {
Konstantinos Poulakakis
committed
private static final long serialVersionUID = 0L;
Konstantinos Poulakakis
committed
// Use AclMatch.newBuilder() to construct.
private AclMatch(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
Konstantinos Poulakakis
committed
private AclMatch() {
srcAddress_ = "";
dstAddress_ = "";
}
Konstantinos Poulakakis
committed
@java.lang.Override
@SuppressWarnings({ "unused" })
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new AclMatch();
}
Konstantinos Poulakakis
committed
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return acl.Acl.internal_static_acl_AclMatch_descriptor;
}
Konstantinos Poulakakis
committed
@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);
}
Konstantinos Poulakakis
committed
public static final int DSCP_FIELD_NUMBER = 1;
Konstantinos Poulakakis
committed
private int dscp_ = 0;
Konstantinos Poulakakis
committed
/**
* <code>uint32 dscp = 1;</code>
* @return The dscp.
*/
@java.lang.Override
public int getDscp() {
return dscp_;
}
Konstantinos Poulakakis
committed
public static final int PROTOCOL_FIELD_NUMBER = 2;
Konstantinos Poulakakis
committed
private int protocol_ = 0;
Konstantinos Poulakakis
committed
/**
* <code>uint32 protocol = 2;</code>
* @return The protocol.
*/
@java.lang.Override
public int getProtocol() {
return protocol_;
}
Konstantinos Poulakakis
committed
public static final int SRC_ADDRESS_FIELD_NUMBER = 3;
Konstantinos Poulakakis
committed
@SuppressWarnings("serial")
private volatile java.lang.Object srcAddress_ = "";
Konstantinos Poulakakis
committed
/**
* <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;
}
}
Konstantinos Poulakakis
committed
/**
* <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;
}
}
Konstantinos Poulakakis
committed
public static final int DST_ADDRESS_FIELD_NUMBER = 4;
Konstantinos Poulakakis
committed
@SuppressWarnings("serial")
private volatile java.lang.Object dstAddress_ = "";
Konstantinos Poulakakis
committed
/**
* <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;
}
}
Konstantinos Poulakakis
committed
/**
* <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;
}
}
Konstantinos Poulakakis
committed
public static final int SRC_PORT_FIELD_NUMBER = 5;
Konstantinos Poulakakis
committed
private int srcPort_ = 0;
Konstantinos Poulakakis
committed
/**
* <code>uint32 src_port = 5;</code>
* @return The srcPort.
*/
@java.lang.Override
public int getSrcPort() {
return srcPort_;
}
Konstantinos Poulakakis
committed
public static final int DST_PORT_FIELD_NUMBER = 6;
Konstantinos Poulakakis
committed
private int dstPort_ = 0;
Konstantinos Poulakakis
committed
/**
* <code>uint32 dst_port = 6;</code>
* @return The dstPort.
*/
@java.lang.Override
public int getDstPort() {
return dstPort_;
}
Konstantinos Poulakakis
committed
public static final int START_MPLS_LABEL_FIELD_NUMBER = 7;
Konstantinos Poulakakis
committed
private int startMplsLabel_ = 0;
Konstantinos Poulakakis
committed
/**
* <code>uint32 start_mpls_label = 7;</code>
* @return The startMplsLabel.
*/
@java.lang.Override
public int getStartMplsLabel() {
return startMplsLabel_;
}
Konstantinos Poulakakis
committed
public static final int END_MPLS_LABEL_FIELD_NUMBER = 8;
Konstantinos Poulakakis
committed
private int endMplsLabel_ = 0;
Konstantinos Poulakakis
committed
/**
* <code>uint32 end_mpls_label = 8;</code>
* @return The endMplsLabel.
*/
@java.lang.Override
public int getEndMplsLabel() {
return endMplsLabel_;
}
Konstantinos Poulakakis
committed
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
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcAddress_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, srcAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dstAddress_)) {
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_);
}
getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(srcAddress_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, srcAddress_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dstAddress_)) {
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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields()))
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) + getUnknownFields().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() {
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
dscp_ = 0;
protocol_ = 0;
srcAddress_ = "";
dstAddress_ = "";
srcPort_ = 0;
dstPort_ = 0;
startMplsLabel_ = 0;
endMplsLabel_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return acl.Acl.internal_static_acl_AclMatch_descriptor;
}
@java.lang.Override
public acl.Acl.AclMatch getDefaultInstanceForType() {
return acl.Acl.AclMatch.getDefaultInstance();
}
@java.lang.Override
public acl.Acl.AclMatch build() {
acl.Acl.AclMatch result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public acl.Acl.AclMatch buildPartial() {
acl.Acl.AclMatch result = new acl.Acl.AclMatch(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(acl.Acl.AclMatch result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.dscp_ = dscp_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.protocol_ = protocol_;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.srcAddress_ = srcAddress_;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.dstAddress_ = dstAddress_;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.srcPort_ = srcPort_;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.dstPort_ = dstPort_;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.startMplsLabel_ = startMplsLabel_;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.endMplsLabel_ = endMplsLabel_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof acl.Acl.AclMatch) {
return mergeFrom((acl.Acl.AclMatch) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(acl.Acl.AclMatch other) {
if (other == acl.Acl.AclMatch.getDefaultInstance())
return this;
if (other.getDscp() != 0) {
setDscp(other.getDscp());
}
if (other.getProtocol() != 0) {
setProtocol(other.getProtocol());
}
if (!other.getSrcAddress().isEmpty()) {
srcAddress_ = other.srcAddress_;
bitField0_ |= 0x00000004;
onChanged();
}
if (!other.getDstAddress().isEmpty()) {
dstAddress_ = other.dstAddress_;
bitField0_ |= 0x00000008;
onChanged();
}
if (other.getSrcPort() != 0) {
setSrcPort(other.getSrcPort());
}
if (other.getDstPort() != 0) {
setDstPort(other.getDstPort());
}
if (other.getStartMplsLabel() != 0) {
setStartMplsLabel(other.getStartMplsLabel());
}
if (other.getEndMplsLabel() != 0) {
setEndMplsLabel(other.getEndMplsLabel());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {