// 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 { /** * ACLRULETYPE_UNDEFINED = 0; */ ACLRULETYPE_UNDEFINED(0), /** * ACLRULETYPE_IPV4 = 1; */ ACLRULETYPE_IPV4(1), /** * ACLRULETYPE_IPV6 = 2; */ ACLRULETYPE_IPV6(2), /** * ACLRULETYPE_L2 = 3; */ ACLRULETYPE_L2(3), /** * ACLRULETYPE_MPLS = 4; */ ACLRULETYPE_MPLS(4), /** * ACLRULETYPE_MIXED = 5; */ ACLRULETYPE_MIXED(5), UNRECOGNIZED(-1), ; /** * ACLRULETYPE_UNDEFINED = 0; */ public static final int ACLRULETYPE_UNDEFINED_VALUE = 0; /** * ACLRULETYPE_IPV4 = 1; */ public static final int ACLRULETYPE_IPV4_VALUE = 1; /** * ACLRULETYPE_IPV6 = 2; */ public static final int ACLRULETYPE_IPV6_VALUE = 2; /** * ACLRULETYPE_L2 = 3; */ public static final int ACLRULETYPE_L2_VALUE = 3; /** * ACLRULETYPE_MPLS = 4; */ public static final int ACLRULETYPE_MPLS_VALUE = 4; /** * ACLRULETYPE_MIXED = 5; */ 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 internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AclRuleTypeEnum> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { 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 { /** * ACLFORWARDINGACTION_UNDEFINED = 0; */ ACLFORWARDINGACTION_UNDEFINED(0), /** * ACLFORWARDINGACTION_DROP = 1; */ ACLFORWARDINGACTION_DROP(1), /** * ACLFORWARDINGACTION_ACCEPT = 2; */ ACLFORWARDINGACTION_ACCEPT(2), /** * ACLFORWARDINGACTION_REJECT = 3; */ ACLFORWARDINGACTION_REJECT(3), UNRECOGNIZED(-1), ; /** * ACLFORWARDINGACTION_UNDEFINED = 0; */ public static final int ACLFORWARDINGACTION_UNDEFINED_VALUE = 0; /** * ACLFORWARDINGACTION_DROP = 1; */ public static final int ACLFORWARDINGACTION_DROP_VALUE = 1; /** * ACLFORWARDINGACTION_ACCEPT = 2; */ public static final int ACLFORWARDINGACTION_ACCEPT_VALUE = 2; /** * ACLFORWARDINGACTION_REJECT = 3; */ 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 internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AclForwardActionEnum> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { 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 { /** * ACLLOGACTION_UNDEFINED = 0; */ ACLLOGACTION_UNDEFINED(0), /** * ACLLOGACTION_NOLOG = 1; */ ACLLOGACTION_NOLOG(1), /** * ACLLOGACTION_SYSLOG = 2; */ ACLLOGACTION_SYSLOG(2), UNRECOGNIZED(-1), ; /** * ACLLOGACTION_UNDEFINED = 0; */ public static final int ACLLOGACTION_UNDEFINED_VALUE = 0; /** * ACLLOGACTION_NOLOG = 1; */ public static final int ACLLOGACTION_NOLOG_VALUE = 1; /** * ACLLOGACTION_SYSLOG = 2; */ 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 internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AclLogActionEnum> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { 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 { /** * uint32 dscp = 1; * @return The dscp. */ int getDscp(); /** * uint32 protocol = 2; * @return The protocol. */ int getProtocol(); /** * string src_address = 3; * @return The srcAddress. */ java.lang.String getSrcAddress(); /** * string src_address = 3; * @return The bytes for srcAddress. */ com.google.protobuf.ByteString getSrcAddressBytes(); /** * string dst_address = 4; * @return The dstAddress. */ java.lang.String getDstAddress(); /** * string dst_address = 4; * @return The bytes for dstAddress. */ com.google.protobuf.ByteString getDstAddressBytes(); /** * uint32 src_port = 5; * @return The srcPort. */ int getSrcPort(); /** * uint32 dst_port = 6; * @return The dstPort. */ int getDstPort(); /** * uint32 start_mpls_label = 7; * @return The startMplsLabel. */ int getStartMplsLabel(); /** * uint32 end_mpls_label = 8; * @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_; /** * uint32 dscp = 1; * @return The dscp. */ @java.lang.Override public int getDscp() { return dscp_; } public static final int PROTOCOL_FIELD_NUMBER = 2; private int protocol_; /** * uint32 protocol = 2; * @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_; /** * string src_address = 3; * @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; } } /** * string src_address = 3; * @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_; /** * string dst_address = 4; * @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; } } /** * string dst_address = 4; * @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_; /** * uint32 src_port = 5; * @return The srcPort. */ @java.lang.Override public int getSrcPort() { return srcPort_; } public static final int DST_PORT_FIELD_NUMBER = 6; private int dstPort_; /** * uint32 dst_port = 6; * @return The dstPort. */ @java.lang.Override public int getDstPort() { return dstPort_; } public static final int START_MPLS_LABEL_FIELD_NUMBER = 7; private int startMplsLabel_; /** * uint32 start_mpls_label = 7; * @return The startMplsLabel. */ @java.lang.Override public int getStartMplsLabel() { return startMplsLabel_; } public static final int END_MPLS_LABEL_FIELD_NUMBER = 8; private int endMplsLabel_; /** * uint32 end_mpls_label = 8; * @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 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; 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); result.dscp_ = dscp_; result.protocol_ = protocol_; result.srcAddress_ = srcAddress_; result.dstAddress_ = dstAddress_; result.srcPort_ = srcPort_; result.dstPort_ = dstPort_; result.startMplsLabel_ = startMplsLabel_; result.endMplsLabel_ = endMplsLabel_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @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_; onChanged(); } if (!other.getDstAddress().isEmpty()) { dstAddress_ = other.dstAddress_; 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.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { acl.Acl.AclMatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (acl.Acl.AclMatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int dscp_ ; /** * uint32 dscp = 1; * @return The dscp. */ @java.lang.Override public int getDscp() { return dscp_; } /** * uint32 dscp = 1; * @param value The dscp to set. * @return This builder for chaining. */ public Builder setDscp(int value) { dscp_ = value; onChanged(); return this; } /** * uint32 dscp = 1; * @return This builder for chaining. */ public Builder clearDscp() { dscp_ = 0; onChanged(); return this; } private int protocol_ ; /** * uint32 protocol = 2; * @return The protocol. */ @java.lang.Override public int getProtocol() { return protocol_; } /** * uint32 protocol = 2; * @param value The protocol to set. * @return This builder for chaining. */ public Builder setProtocol(int value) { protocol_ = value; onChanged(); return this; } /** * uint32 protocol = 2; * @return This builder for chaining. */ public Builder clearProtocol() { protocol_ = 0; onChanged(); return this; } private java.lang.Object srcAddress_ = ""; /** * string src_address = 3; * @return The srcAddress. */ public java.lang.String getSrcAddress() { java.lang.Object ref = srcAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); srcAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string src_address = 3; * @return The bytes for srcAddress. */ public com.google.protobuf.ByteString getSrcAddressBytes() { java.lang.Object ref = srcAddress_; if (ref instanceof 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; } } /** * string src_address = 3; * @param value The srcAddress to set. * @return This builder for chaining. */ public Builder setSrcAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } srcAddress_ = value; onChanged(); return this; } /** * string src_address = 3; * @return This builder for chaining. */ public Builder clearSrcAddress() { srcAddress_ = getDefaultInstance().getSrcAddress(); onChanged(); return this; } /** * string src_address = 3; * @param value The bytes for srcAddress to set. * @return This builder for chaining. */ public Builder setSrcAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); srcAddress_ = value; onChanged(); return this; } private java.lang.Object dstAddress_ = ""; /** * string dst_address = 4; * @return The dstAddress. */ public java.lang.String getDstAddress() { java.lang.Object ref = dstAddress_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); dstAddress_ = s; return s; } else { return (java.lang.String) ref; } } /** * string dst_address = 4; * @return The bytes for dstAddress. */ public com.google.protobuf.ByteString getDstAddressBytes() { java.lang.Object ref = dstAddress_; if (ref instanceof 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; } } /** * string dst_address = 4; * @param value The dstAddress to set. * @return This builder for chaining. */ public Builder setDstAddress( java.lang.String value) { if (value == null) { throw new NullPointerException(); } dstAddress_ = value; onChanged(); return this; } /** * string dst_address = 4; * @return This builder for chaining. */ public Builder clearDstAddress() { dstAddress_ = getDefaultInstance().getDstAddress(); onChanged(); return this; } /** * string dst_address = 4; * @param value The bytes for dstAddress to set. * @return This builder for chaining. */ public Builder setDstAddressBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); dstAddress_ = value; onChanged(); return this; } private int srcPort_ ; /** * uint32 src_port = 5; * @return The srcPort. */ @java.lang.Override public int getSrcPort() { return srcPort_; } /** * uint32 src_port = 5; * @param value The srcPort to set. * @return This builder for chaining. */ public Builder setSrcPort(int value) { srcPort_ = value; onChanged(); return this; } /** * uint32 src_port = 5; * @return This builder for chaining. */ public Builder clearSrcPort() { srcPort_ = 0; onChanged(); return this; } private int dstPort_ ; /** * uint32 dst_port = 6; * @return The dstPort. */ @java.lang.Override public int getDstPort() { return dstPort_; } /** * uint32 dst_port = 6; * @param value The dstPort to set. * @return This builder for chaining. */ public Builder setDstPort(int value) { dstPort_ = value; onChanged(); return this; } /** * uint32 dst_port = 6; * @return This builder for chaining. */ public Builder clearDstPort() { dstPort_ = 0; onChanged(); return this; } private int startMplsLabel_ ; /** * uint32 start_mpls_label = 7; * @return The startMplsLabel. */ @java.lang.Override public int getStartMplsLabel() { return startMplsLabel_; } /** * uint32 start_mpls_label = 7; * @param value The startMplsLabel to set. * @return This builder for chaining. */ public Builder setStartMplsLabel(int value) { startMplsLabel_ = value; onChanged(); return this; } /** * uint32 start_mpls_label = 7; * @return This builder for chaining. */ public Builder clearStartMplsLabel() { startMplsLabel_ = 0; onChanged(); return this; } private int endMplsLabel_ ; /** * uint32 end_mpls_label = 8; * @return The endMplsLabel. */ @java.lang.Override public int getEndMplsLabel() { return endMplsLabel_; } /** * uint32 end_mpls_label = 8; * @param value The endMplsLabel to set. * @return This builder for chaining. */ public Builder setEndMplsLabel(int value) { endMplsLabel_ = value; onChanged(); return this; } /** * uint32 end_mpls_label = 8; * @return This builder for chaining. */ public Builder clearEndMplsLabel() { endMplsLabel_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:acl.AclMatch) } // @@protoc_insertion_point(class_scope:acl.AclMatch) private static final acl.Acl.AclMatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new acl.Acl.AclMatch(); } public static acl.Acl.AclMatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AclMatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AclMatch(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public acl.Acl.AclMatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AclActionOrBuilder extends // @@protoc_insertion_point(interface_extends:acl.AclAction) com.google.protobuf.MessageOrBuilder { /** * .acl.AclForwardActionEnum forward_action = 1; * @return The enum numeric value on the wire for forwardAction. */ int getForwardActionValue(); /** * .acl.AclForwardActionEnum forward_action = 1; * @return The forwardAction. */ acl.Acl.AclForwardActionEnum getForwardAction(); /** * .acl.AclLogActionEnum log_action = 2; * @return The enum numeric value on the wire for logAction. */ int getLogActionValue(); /** * .acl.AclLogActionEnum log_action = 2; * @return The logAction. */ acl.Acl.AclLogActionEnum getLogAction(); } /** * Protobuf type {@code acl.AclAction} */ public static final class AclAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:acl.AclAction) AclActionOrBuilder { private static final long serialVersionUID = 0L; // Use AclAction.newBuilder() to construct. private AclAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AclAction() { forwardAction_ = 0; logAction_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AclAction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AclAction( 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: { int rawValue = input.readEnum(); forwardAction_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); logAction_ = rawValue; 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_AclAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return acl.Acl.internal_static_acl_AclAction_fieldAccessorTable .ensureFieldAccessorsInitialized( acl.Acl.AclAction.class, acl.Acl.AclAction.Builder.class); } public static final int FORWARD_ACTION_FIELD_NUMBER = 1; private int forwardAction_; /** * .acl.AclForwardActionEnum forward_action = 1; * @return The enum numeric value on the wire for forwardAction. */ @java.lang.Override public int getForwardActionValue() { return forwardAction_; } /** * .acl.AclForwardActionEnum forward_action = 1; * @return The forwardAction. */ @java.lang.Override public acl.Acl.AclForwardActionEnum getForwardAction() { @SuppressWarnings("deprecation") acl.Acl.AclForwardActionEnum result = acl.Acl.AclForwardActionEnum.valueOf(forwardAction_); return result == null ? acl.Acl.AclForwardActionEnum.UNRECOGNIZED : result; } public static final int LOG_ACTION_FIELD_NUMBER = 2; private int logAction_; /** * .acl.AclLogActionEnum log_action = 2; * @return The enum numeric value on the wire for logAction. */ @java.lang.Override public int getLogActionValue() { return logAction_; } /** * .acl.AclLogActionEnum log_action = 2; * @return The logAction. */ @java.lang.Override public acl.Acl.AclLogActionEnum getLogAction() { @SuppressWarnings("deprecation") acl.Acl.AclLogActionEnum result = acl.Acl.AclLogActionEnum.valueOf(logAction_); return result == null ? acl.Acl.AclLogActionEnum.UNRECOGNIZED : result; } 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 (forwardAction_ != acl.Acl.AclForwardActionEnum.ACLFORWARDINGACTION_UNDEFINED.getNumber()) { output.writeEnum(1, forwardAction_); } if (logAction_ != acl.Acl.AclLogActionEnum.ACLLOGACTION_UNDEFINED.getNumber()) { output.writeEnum(2, logAction_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (forwardAction_ != acl.Acl.AclForwardActionEnum.ACLFORWARDINGACTION_UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, forwardAction_); } if (logAction_ != acl.Acl.AclLogActionEnum.ACLLOGACTION_UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, logAction_); } 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.AclAction)) { return super.equals(obj); } acl.Acl.AclAction other = (acl.Acl.AclAction) obj; if (forwardAction_ != other.forwardAction_) return false; if (logAction_ != other.logAction_) 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) + FORWARD_ACTION_FIELD_NUMBER; hash = (53 * hash) + forwardAction_; hash = (37 * hash) + LOG_ACTION_FIELD_NUMBER; hash = (53 * hash) + logAction_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static acl.Acl.AclAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static acl.Acl.AclAction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static acl.Acl.AclAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static acl.Acl.AclAction 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.AclAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static acl.Acl.AclAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static acl.Acl.AclAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static acl.Acl.AclAction 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.AclAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static acl.Acl.AclAction 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.AclAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static acl.Acl.AclAction 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.AclAction 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.AclAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:acl.AclAction) acl.Acl.AclActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return acl.Acl.internal_static_acl_AclAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return acl.Acl.internal_static_acl_AclAction_fieldAccessorTable .ensureFieldAccessorsInitialized( acl.Acl.AclAction.class, acl.Acl.AclAction.Builder.class); } // Construct using acl.Acl.AclAction.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(); forwardAction_ = 0; logAction_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return acl.Acl.internal_static_acl_AclAction_descriptor; } @java.lang.Override public acl.Acl.AclAction getDefaultInstanceForType() { return acl.Acl.AclAction.getDefaultInstance(); } @java.lang.Override public acl.Acl.AclAction build() { acl.Acl.AclAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public acl.Acl.AclAction buildPartial() { acl.Acl.AclAction result = new acl.Acl.AclAction(this); result.forwardAction_ = forwardAction_; result.logAction_ = logAction_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof acl.Acl.AclAction) { return mergeFrom((acl.Acl.AclAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(acl.Acl.AclAction other) { if (other == acl.Acl.AclAction.getDefaultInstance()) return this; if (other.forwardAction_ != 0) { setForwardActionValue(other.getForwardActionValue()); } if (other.logAction_ != 0) { setLogActionValue(other.getLogActionValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { acl.Acl.AclAction parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (acl.Acl.AclAction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int forwardAction_ = 0; /** * .acl.AclForwardActionEnum forward_action = 1; * @return The enum numeric value on the wire for forwardAction. */ @java.lang.Override public int getForwardActionValue() { return forwardAction_; } /** * .acl.AclForwardActionEnum forward_action = 1; * @param value The enum numeric value on the wire for forwardAction to set. * @return This builder for chaining. */ public Builder setForwardActionValue(int value) { forwardAction_ = value; onChanged(); return this; } /** * .acl.AclForwardActionEnum forward_action = 1; * @return The forwardAction. */ @java.lang.Override public acl.Acl.AclForwardActionEnum getForwardAction() { @SuppressWarnings("deprecation") acl.Acl.AclForwardActionEnum result = acl.Acl.AclForwardActionEnum.valueOf(forwardAction_); return result == null ? acl.Acl.AclForwardActionEnum.UNRECOGNIZED : result; } /** * .acl.AclForwardActionEnum forward_action = 1; * @param value The forwardAction to set. * @return This builder for chaining. */ public Builder setForwardAction(acl.Acl.AclForwardActionEnum value) { if (value == null) { throw new NullPointerException(); } forwardAction_ = value.getNumber(); onChanged(); return this; } /** * .acl.AclForwardActionEnum forward_action = 1; * @return This builder for chaining. */ public Builder clearForwardAction() { forwardAction_ = 0; onChanged(); return this; } private int logAction_ = 0; /** * .acl.AclLogActionEnum log_action = 2; * @return The enum numeric value on the wire for logAction. */ @java.lang.Override public int getLogActionValue() { return logAction_; } /** * .acl.AclLogActionEnum log_action = 2; * @param value The enum numeric value on the wire for logAction to set. * @return This builder for chaining. */ public Builder setLogActionValue(int value) { logAction_ = value; onChanged(); return this; } /** * .acl.AclLogActionEnum log_action = 2; * @return The logAction. */ @java.lang.Override public acl.Acl.AclLogActionEnum getLogAction() { @SuppressWarnings("deprecation") acl.Acl.AclLogActionEnum result = acl.Acl.AclLogActionEnum.valueOf(logAction_); return result == null ? acl.Acl.AclLogActionEnum.UNRECOGNIZED : result; } /** * .acl.AclLogActionEnum log_action = 2; * @param value The logAction to set. * @return This builder for chaining. */ public Builder setLogAction(acl.Acl.AclLogActionEnum value) { if (value == null) { throw new NullPointerException(); } logAction_ = value.getNumber(); onChanged(); return this; } /** * .acl.AclLogActionEnum log_action = 2; * @return This builder for chaining. */ public Builder clearLogAction() { logAction_ = 0; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:acl.AclAction) } // @@protoc_insertion_point(class_scope:acl.AclAction) private static final acl.Acl.AclAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new acl.Acl.AclAction(); } public static acl.Acl.AclAction getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AclAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AclAction(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public acl.Acl.AclAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AclEntryOrBuilder extends // @@protoc_insertion_point(interface_extends:acl.AclEntry) com.google.protobuf.MessageOrBuilder { /** * uint32 sequence_id = 1; * @return The sequenceId. */ int getSequenceId(); /** * string description = 2; * @return The description. */ java.lang.String getDescription(); /** * string description = 2; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** * .acl.AclMatch match = 3; * @return Whether the match field is set. */ boolean hasMatch(); /** * .acl.AclMatch match = 3; * @return The match. */ acl.Acl.AclMatch getMatch(); /** * .acl.AclMatch match = 3; */ acl.Acl.AclMatchOrBuilder getMatchOrBuilder(); /** * .acl.AclAction action = 4; * @return Whether the action field is set. */ boolean hasAction(); /** * .acl.AclAction action = 4; * @return The action. */ acl.Acl.AclAction getAction(); /** * .acl.AclAction action = 4; */ acl.Acl.AclActionOrBuilder getActionOrBuilder(); } /** * Protobuf type {@code acl.AclEntry} */ public static final class AclEntry extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:acl.AclEntry) AclEntryOrBuilder { private static final long serialVersionUID = 0L; // Use AclEntry.newBuilder() to construct. private AclEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AclEntry() { description_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AclEntry(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AclEntry( 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: { sequenceId_ = input.readUInt32(); break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 26: { acl.Acl.AclMatch.Builder subBuilder = null; if (match_ != null) { subBuilder = match_.toBuilder(); } match_ = input.readMessage(acl.Acl.AclMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(match_); match_ = subBuilder.buildPartial(); } break; } case 34: { acl.Acl.AclAction.Builder subBuilder = null; if (action_ != null) { subBuilder = action_.toBuilder(); } action_ = input.readMessage(acl.Acl.AclAction.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(action_); action_ = subBuilder.buildPartial(); } 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_AclEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return acl.Acl.internal_static_acl_AclEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( acl.Acl.AclEntry.class, acl.Acl.AclEntry.Builder.class); } public static final int SEQUENCE_ID_FIELD_NUMBER = 1; private int sequenceId_; /** * uint32 sequence_id = 1; * @return The sequenceId. */ @java.lang.Override public int getSequenceId() { return sequenceId_; } public static final int DESCRIPTION_FIELD_NUMBER = 2; private volatile java.lang.Object description_; /** * string description = 2; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * string description = 2; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MATCH_FIELD_NUMBER = 3; private acl.Acl.AclMatch match_; /** * .acl.AclMatch match = 3; * @return Whether the match field is set. */ @java.lang.Override public boolean hasMatch() { return match_ != null; } /** * .acl.AclMatch match = 3; * @return The match. */ @java.lang.Override public acl.Acl.AclMatch getMatch() { return match_ == null ? acl.Acl.AclMatch.getDefaultInstance() : match_; } /** * .acl.AclMatch match = 3; */ @java.lang.Override public acl.Acl.AclMatchOrBuilder getMatchOrBuilder() { return getMatch(); } public static final int ACTION_FIELD_NUMBER = 4; private acl.Acl.AclAction action_; /** * .acl.AclAction action = 4; * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return action_ != null; } /** * .acl.AclAction action = 4; * @return The action. */ @java.lang.Override public acl.Acl.AclAction getAction() { return action_ == null ? acl.Acl.AclAction.getDefaultInstance() : action_; } /** * .acl.AclAction action = 4; */ @java.lang.Override public acl.Acl.AclActionOrBuilder getActionOrBuilder() { return getAction(); } 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 (sequenceId_ != 0) { output.writeUInt32(1, sequenceId_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); } if (match_ != null) { output.writeMessage(3, getMatch()); } if (action_ != null) { output.writeMessage(4, getAction()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (sequenceId_ != 0) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, sequenceId_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); } if (match_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMatch()); } if (action_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getAction()); } 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.AclEntry)) { return super.equals(obj); } acl.Acl.AclEntry other = (acl.Acl.AclEntry) obj; if (getSequenceId() != other.getSequenceId()) return false; if (!getDescription() .equals(other.getDescription())) return false; if (hasMatch() != other.hasMatch()) return false; if (hasMatch()) { if (!getMatch() .equals(other.getMatch())) return false; } if (hasAction() != other.hasAction()) return false; if (hasAction()) { if (!getAction() .equals(other.getAction())) 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) + SEQUENCE_ID_FIELD_NUMBER; hash = (53 * hash) + getSequenceId(); hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); if (hasMatch()) { hash = (37 * hash) + MATCH_FIELD_NUMBER; hash = (53 * hash) + getMatch().hashCode(); } if (hasAction()) { hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static acl.Acl.AclEntry parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static acl.Acl.AclEntry parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static acl.Acl.AclEntry parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static acl.Acl.AclEntry 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.AclEntry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static acl.Acl.AclEntry parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static acl.Acl.AclEntry parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static acl.Acl.AclEntry 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.AclEntry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static acl.Acl.AclEntry 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.AclEntry parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static acl.Acl.AclEntry 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.AclEntry 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.AclEntry} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:acl.AclEntry) acl.Acl.AclEntryOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return acl.Acl.internal_static_acl_AclEntry_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return acl.Acl.internal_static_acl_AclEntry_fieldAccessorTable .ensureFieldAccessorsInitialized( acl.Acl.AclEntry.class, acl.Acl.AclEntry.Builder.class); } // Construct using acl.Acl.AclEntry.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(); sequenceId_ = 0; description_ = ""; if (matchBuilder_ == null) { match_ = null; } else { match_ = null; matchBuilder_ = null; } if (actionBuilder_ == null) { action_ = null; } else { action_ = null; actionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return acl.Acl.internal_static_acl_AclEntry_descriptor; } @java.lang.Override public acl.Acl.AclEntry getDefaultInstanceForType() { return acl.Acl.AclEntry.getDefaultInstance(); } @java.lang.Override public acl.Acl.AclEntry build() { acl.Acl.AclEntry result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public acl.Acl.AclEntry buildPartial() { acl.Acl.AclEntry result = new acl.Acl.AclEntry(this); result.sequenceId_ = sequenceId_; result.description_ = description_; if (matchBuilder_ == null) { result.match_ = match_; } else { result.match_ = matchBuilder_.build(); } if (actionBuilder_ == null) { result.action_ = action_; } else { result.action_ = actionBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof acl.Acl.AclEntry) { return mergeFrom((acl.Acl.AclEntry)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(acl.Acl.AclEntry other) { if (other == acl.Acl.AclEntry.getDefaultInstance()) return this; if (other.getSequenceId() != 0) { setSequenceId(other.getSequenceId()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (other.hasMatch()) { mergeMatch(other.getMatch()); } if (other.hasAction()) { mergeAction(other.getAction()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { acl.Acl.AclEntry parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (acl.Acl.AclEntry) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int sequenceId_ ; /** * uint32 sequence_id = 1; * @return The sequenceId. */ @java.lang.Override public int getSequenceId() { return sequenceId_; } /** * uint32 sequence_id = 1; * @param value The sequenceId to set. * @return This builder for chaining. */ public Builder setSequenceId(int value) { sequenceId_ = value; onChanged(); return this; } /** * uint32 sequence_id = 1; * @return This builder for chaining. */ public Builder clearSequenceId() { sequenceId_ = 0; onChanged(); return this; } private java.lang.Object description_ = ""; /** * string description = 2; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * string description = 2; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string description = 2; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** * string description = 2; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * string description = 2; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private acl.Acl.AclMatch match_; private com.google.protobuf.SingleFieldBuilderV3< acl.Acl.AclMatch, acl.Acl.AclMatch.Builder, acl.Acl.AclMatchOrBuilder> matchBuilder_; /** * .acl.AclMatch match = 3; * @return Whether the match field is set. */ public boolean hasMatch() { return matchBuilder_ != null || match_ != null; } /** * .acl.AclMatch match = 3; * @return The match. */ public acl.Acl.AclMatch getMatch() { if (matchBuilder_ == null) { return match_ == null ? acl.Acl.AclMatch.getDefaultInstance() : match_; } else { return matchBuilder_.getMessage(); } } /** * .acl.AclMatch match = 3; */ public Builder setMatch(acl.Acl.AclMatch value) { if (matchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } match_ = value; onChanged(); } else { matchBuilder_.setMessage(value); } return this; } /** * .acl.AclMatch match = 3; */ public Builder setMatch( acl.Acl.AclMatch.Builder builderForValue) { if (matchBuilder_ == null) { match_ = builderForValue.build(); onChanged(); } else { matchBuilder_.setMessage(builderForValue.build()); } return this; } /** * .acl.AclMatch match = 3; */ public Builder mergeMatch(acl.Acl.AclMatch value) { if (matchBuilder_ == null) { if (match_ != null) { match_ = acl.Acl.AclMatch.newBuilder(match_).mergeFrom(value).buildPartial(); } else { match_ = value; } onChanged(); } else { matchBuilder_.mergeFrom(value); } return this; } /** * .acl.AclMatch match = 3; */ public Builder clearMatch() { if (matchBuilder_ == null) { match_ = null; onChanged(); } else { match_ = null; matchBuilder_ = null; } return this; } /** * .acl.AclMatch match = 3; */ public acl.Acl.AclMatch.Builder getMatchBuilder() { onChanged(); return getMatchFieldBuilder().getBuilder(); } /** * .acl.AclMatch match = 3; */ public acl.Acl.AclMatchOrBuilder getMatchOrBuilder() { if (matchBuilder_ != null) { return matchBuilder_.getMessageOrBuilder(); } else { return match_ == null ? acl.Acl.AclMatch.getDefaultInstance() : match_; } } /** * .acl.AclMatch match = 3; */ private com.google.protobuf.SingleFieldBuilderV3< acl.Acl.AclMatch, acl.Acl.AclMatch.Builder, acl.Acl.AclMatchOrBuilder> getMatchFieldBuilder() { if (matchBuilder_ == null) { matchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< acl.Acl.AclMatch, acl.Acl.AclMatch.Builder, acl.Acl.AclMatchOrBuilder>( getMatch(), getParentForChildren(), isClean()); match_ = null; } return matchBuilder_; } private acl.Acl.AclAction action_; private com.google.protobuf.SingleFieldBuilderV3< acl.Acl.AclAction, acl.Acl.AclAction.Builder, acl.Acl.AclActionOrBuilder> actionBuilder_; /** * .acl.AclAction action = 4; * @return Whether the action field is set. */ public boolean hasAction() { return actionBuilder_ != null || action_ != null; } /** * .acl.AclAction action = 4; * @return The action. */ public acl.Acl.AclAction getAction() { if (actionBuilder_ == null) { return action_ == null ? acl.Acl.AclAction.getDefaultInstance() : action_; } else { return actionBuilder_.getMessage(); } } /** * .acl.AclAction action = 4; */ public Builder setAction(acl.Acl.AclAction value) { if (actionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { actionBuilder_.setMessage(value); } return this; } /** * .acl.AclAction action = 4; */ public Builder setAction( acl.Acl.AclAction.Builder builderForValue) { if (actionBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { actionBuilder_.setMessage(builderForValue.build()); } return this; } /** * .acl.AclAction action = 4; */ public Builder mergeAction(acl.Acl.AclAction value) { if (actionBuilder_ == null) { if (action_ != null) { action_ = acl.Acl.AclAction.newBuilder(action_).mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { actionBuilder_.mergeFrom(value); } return this; } /** * .acl.AclAction action = 4; */ public Builder clearAction() { if (actionBuilder_ == null) { action_ = null; onChanged(); } else { action_ = null; actionBuilder_ = null; } return this; } /** * .acl.AclAction action = 4; */ public acl.Acl.AclAction.Builder getActionBuilder() { onChanged(); return getActionFieldBuilder().getBuilder(); } /** * .acl.AclAction action = 4; */ public acl.Acl.AclActionOrBuilder getActionOrBuilder() { if (actionBuilder_ != null) { return actionBuilder_.getMessageOrBuilder(); } else { return action_ == null ? acl.Acl.AclAction.getDefaultInstance() : action_; } } /** * .acl.AclAction action = 4; */ private com.google.protobuf.SingleFieldBuilderV3< acl.Acl.AclAction, acl.Acl.AclAction.Builder, acl.Acl.AclActionOrBuilder> getActionFieldBuilder() { if (actionBuilder_ == null) { actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< acl.Acl.AclAction, acl.Acl.AclAction.Builder, acl.Acl.AclActionOrBuilder>( getAction(), getParentForChildren(), isClean()); action_ = null; } return actionBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:acl.AclEntry) } // @@protoc_insertion_point(class_scope:acl.AclEntry) private static final acl.Acl.AclEntry DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new acl.Acl.AclEntry(); } public static acl.Acl.AclEntry getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AclEntry parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AclEntry(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public acl.Acl.AclEntry getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface AclRuleSetOrBuilder extends // @@protoc_insertion_point(interface_extends:acl.AclRuleSet) com.google.protobuf.MessageOrBuilder { /** * string name = 1; * @return The name. */ java.lang.String getName(); /** * string name = 1; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .acl.AclRuleTypeEnum type = 2; * @return The enum numeric value on the wire for type. */ int getTypeValue(); /** * .acl.AclRuleTypeEnum type = 2; * @return The type. */ acl.Acl.AclRuleTypeEnum getType(); /** * string description = 3; * @return The description. */ java.lang.String getDescription(); /** * string description = 3; * @return The bytes for description. */ com.google.protobuf.ByteString getDescriptionBytes(); /** * string user_id = 4; * @return The userId. */ java.lang.String getUserId(); /** * string user_id = 4; * @return The bytes for userId. */ com.google.protobuf.ByteString getUserIdBytes(); /** * repeated .acl.AclEntry entries = 5; */ java.util.List getEntriesList(); /** * repeated .acl.AclEntry entries = 5; */ acl.Acl.AclEntry getEntries(int index); /** * repeated .acl.AclEntry entries = 5; */ int getEntriesCount(); /** * repeated .acl.AclEntry entries = 5; */ java.util.List getEntriesOrBuilderList(); /** * repeated .acl.AclEntry entries = 5; */ acl.Acl.AclEntryOrBuilder getEntriesOrBuilder( int index); } /** * Protobuf type {@code acl.AclRuleSet} */ public static final class AclRuleSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:acl.AclRuleSet) AclRuleSetOrBuilder { private static final long serialVersionUID = 0L; // Use AclRuleSet.newBuilder() to construct. private AclRuleSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AclRuleSet() { name_ = ""; type_ = 0; description_ = ""; userId_ = ""; entries_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AclRuleSet(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AclRuleSet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; 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 10: { java.lang.String s = input.readStringRequireUtf8(); name_ = s; break; } case 16: { int rawValue = input.readEnum(); type_ = rawValue; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); description_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); userId_ = s; break; } case 42: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } entries_.add( input.readMessage(acl.Acl.AclEntry.parser(), extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return acl.Acl.internal_static_acl_AclRuleSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return acl.Acl.internal_static_acl_AclRuleSet_fieldAccessorTable .ensureFieldAccessorsInitialized( acl.Acl.AclRuleSet.class, acl.Acl.AclRuleSet.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** * string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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(); name_ = s; return s; } } /** * string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** * .acl.AclRuleTypeEnum type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .acl.AclRuleTypeEnum type = 2; * @return The type. */ @java.lang.Override public acl.Acl.AclRuleTypeEnum getType() { @SuppressWarnings("deprecation") acl.Acl.AclRuleTypeEnum result = acl.Acl.AclRuleTypeEnum.valueOf(type_); return result == null ? acl.Acl.AclRuleTypeEnum.UNRECOGNIZED : result; } public static final int DESCRIPTION_FIELD_NUMBER = 3; private volatile java.lang.Object description_; /** * string description = 3; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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(); description_ = s; return s; } } /** * string description = 3; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USER_ID_FIELD_NUMBER = 4; private volatile java.lang.Object userId_; /** * string user_id = 4; * @return The userId. */ @java.lang.Override public java.lang.String getUserId() { java.lang.Object ref = userId_; 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(); userId_ = s; return s; } } /** * string user_id = 4; * @return The bytes for userId. */ @java.lang.Override public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENTRIES_FIELD_NUMBER = 5; private java.util.List entries_; /** * repeated .acl.AclEntry entries = 5; */ @java.lang.Override public java.util.List getEntriesList() { return entries_; } /** * repeated .acl.AclEntry entries = 5; */ @java.lang.Override public java.util.List getEntriesOrBuilderList() { return entries_; } /** * repeated .acl.AclEntry entries = 5; */ @java.lang.Override public int getEntriesCount() { return entries_.size(); } /** * repeated .acl.AclEntry entries = 5; */ @java.lang.Override public acl.Acl.AclEntry getEntries(int index) { return entries_.get(index); } /** * repeated .acl.AclEntry entries = 5; */ @java.lang.Override public acl.Acl.AclEntryOrBuilder getEntriesOrBuilder( int index) { return entries_.get(index); } 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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (type_ != acl.Acl.AclRuleTypeEnum.ACLRULETYPE_UNDEFINED.getNumber()) { output.writeEnum(2, type_); } if (!getDescriptionBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } if (!getUserIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userId_); } for (int i = 0; i < entries_.size(); i++) { output.writeMessage(5, entries_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!getNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != acl.Acl.AclRuleTypeEnum.ACLRULETYPE_UNDEFINED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (!getDescriptionBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } if (!getUserIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userId_); } for (int i = 0; i < entries_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, entries_.get(i)); } 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.AclRuleSet)) { return super.equals(obj); } acl.Acl.AclRuleSet other = (acl.Acl.AclRuleSet) obj; if (!getName() .equals(other.getName())) return false; if (type_ != other.type_) return false; if (!getDescription() .equals(other.getDescription())) return false; if (!getUserId() .equals(other.getUserId())) return false; if (!getEntriesList() .equals(other.getEntriesList())) 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) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); if (getEntriesCount() > 0) { hash = (37 * hash) + ENTRIES_FIELD_NUMBER; hash = (53 * hash) + getEntriesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static acl.Acl.AclRuleSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static acl.Acl.AclRuleSet parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static acl.Acl.AclRuleSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static acl.Acl.AclRuleSet 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.AclRuleSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static acl.Acl.AclRuleSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static acl.Acl.AclRuleSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static acl.Acl.AclRuleSet 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.AclRuleSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static acl.Acl.AclRuleSet 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.AclRuleSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static acl.Acl.AclRuleSet 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.AclRuleSet 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.AclRuleSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:acl.AclRuleSet) acl.Acl.AclRuleSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return acl.Acl.internal_static_acl_AclRuleSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return acl.Acl.internal_static_acl_AclRuleSet_fieldAccessorTable .ensureFieldAccessorsInitialized( acl.Acl.AclRuleSet.class, acl.Acl.AclRuleSet.Builder.class); } // Construct using acl.Acl.AclRuleSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEntriesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; type_ = 0; description_ = ""; userId_ = ""; if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entriesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return acl.Acl.internal_static_acl_AclRuleSet_descriptor; } @java.lang.Override public acl.Acl.AclRuleSet getDefaultInstanceForType() { return acl.Acl.AclRuleSet.getDefaultInstance(); } @java.lang.Override public acl.Acl.AclRuleSet build() { acl.Acl.AclRuleSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public acl.Acl.AclRuleSet buildPartial() { acl.Acl.AclRuleSet result = new acl.Acl.AclRuleSet(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.type_ = type_; result.description_ = description_; result.userId_ = userId_; if (entriesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = java.util.Collections.unmodifiableList(entries_); bitField0_ = (bitField0_ & ~0x00000001); } result.entries_ = entries_; } else { result.entries_ = entriesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof acl.Acl.AclRuleSet) { return mergeFrom((acl.Acl.AclRuleSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(acl.Acl.AclRuleSet other) { if (other == acl.Acl.AclRuleSet.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } if (!other.getDescription().isEmpty()) { description_ = other.description_; onChanged(); } if (!other.getUserId().isEmpty()) { userId_ = other.userId_; onChanged(); } if (entriesBuilder_ == null) { if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntriesIsMutable(); entries_.addAll(other.entries_); } onChanged(); } } else { if (!other.entries_.isEmpty()) { if (entriesBuilder_.isEmpty()) { entriesBuilder_.dispose(); entriesBuilder_ = null; entries_ = other.entries_; bitField0_ = (bitField0_ & ~0x00000001); entriesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntriesFieldBuilder() : null; } else { entriesBuilder_.addAllMessages(other.entries_); } } } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { acl.Acl.AclRuleSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (acl.Acl.AclRuleSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** * string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } } /** * string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; onChanged(); return this; } /** * string name = 1; * @return This builder for chaining. */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; onChanged(); return this; } private int type_ = 0; /** * .acl.AclRuleTypeEnum type = 2; * @return The enum numeric value on the wire for type. */ @java.lang.Override public int getTypeValue() { return type_; } /** * .acl.AclRuleTypeEnum type = 2; * @param value The enum numeric value on the wire for type to set. * @return This builder for chaining. */ public Builder setTypeValue(int value) { type_ = value; onChanged(); return this; } /** * .acl.AclRuleTypeEnum type = 2; * @return The type. */ @java.lang.Override public acl.Acl.AclRuleTypeEnum getType() { @SuppressWarnings("deprecation") acl.Acl.AclRuleTypeEnum result = acl.Acl.AclRuleTypeEnum.valueOf(type_); return result == null ? acl.Acl.AclRuleTypeEnum.UNRECOGNIZED : result; } /** * .acl.AclRuleTypeEnum type = 2; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(acl.Acl.AclRuleTypeEnum value) { if (value == null) { throw new NullPointerException(); } type_ = value.getNumber(); onChanged(); return this; } /** * .acl.AclRuleTypeEnum type = 2; * @return This builder for chaining. */ public Builder clearType() { type_ = 0; onChanged(); return this; } private java.lang.Object description_ = ""; /** * string description = 3; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); description_ = s; return s; } else { return (java.lang.String) ref; } } /** * string description = 3; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string description = 3; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } description_ = value; onChanged(); return this; } /** * string description = 3; * @return This builder for chaining. */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** * string description = 3; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); description_ = value; onChanged(); return this; } private java.lang.Object userId_ = ""; /** * string user_id = 4; * @return The userId. */ public java.lang.String getUserId() { java.lang.Object ref = userId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); userId_ = s; return s; } else { return (java.lang.String) ref; } } /** * string user_id = 4; * @return The bytes for userId. */ public com.google.protobuf.ByteString getUserIdBytes() { java.lang.Object ref = userId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); userId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string user_id = 4; * @param value The userId to set. * @return This builder for chaining. */ public Builder setUserId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } userId_ = value; onChanged(); return this; } /** * string user_id = 4; * @return This builder for chaining. */ public Builder clearUserId() { userId_ = getDefaultInstance().getUserId(); onChanged(); return this; } /** * string user_id = 4; * @param value The bytes for userId to set. * @return This builder for chaining. */ public Builder setUserIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); userId_ = value; onChanged(); return this; } private java.util.List entries_ = java.util.Collections.emptyList(); private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new java.util.ArrayList(entries_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< acl.Acl.AclEntry, acl.Acl.AclEntry.Builder, acl.Acl.AclEntryOrBuilder> entriesBuilder_; /** * repeated .acl.AclEntry entries = 5; */ public java.util.List getEntriesList() { if (entriesBuilder_ == null) { return java.util.Collections.unmodifiableList(entries_); } else { return entriesBuilder_.getMessageList(); } } /** * repeated .acl.AclEntry entries = 5; */ public int getEntriesCount() { if (entriesBuilder_ == null) { return entries_.size(); } else { return entriesBuilder_.getCount(); } } /** * repeated .acl.AclEntry entries = 5; */ public acl.Acl.AclEntry getEntries(int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessage(index); } } /** * repeated .acl.AclEntry entries = 5; */ public Builder setEntries( int index, acl.Acl.AclEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); } else { entriesBuilder_.setMessage(index, value); } return this; } /** * repeated .acl.AclEntry entries = 5; */ public Builder setEntries( int index, acl.Acl.AclEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.set(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .acl.AclEntry entries = 5; */ public Builder addEntries(acl.Acl.AclEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); } else { entriesBuilder_.addMessage(value); } return this; } /** * repeated .acl.AclEntry entries = 5; */ public Builder addEntries( int index, acl.Acl.AclEntry value) { if (entriesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(index, value); onChanged(); } else { entriesBuilder_.addMessage(index, value); } return this; } /** * repeated .acl.AclEntry entries = 5; */ public Builder addEntries( acl.Acl.AclEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .acl.AclEntry entries = 5; */ public Builder addEntries( int index, acl.Acl.AclEntry.Builder builderForValue) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.add(index, builderForValue.build()); onChanged(); } else { entriesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .acl.AclEntry entries = 5; */ public Builder addAllEntries( java.lang.Iterable values) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entries_); onChanged(); } else { entriesBuilder_.addAllMessages(values); } return this; } /** * repeated .acl.AclEntry entries = 5; */ public Builder clearEntries() { if (entriesBuilder_ == null) { entries_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entriesBuilder_.clear(); } return this; } /** * repeated .acl.AclEntry entries = 5; */ public Builder removeEntries(int index) { if (entriesBuilder_ == null) { ensureEntriesIsMutable(); entries_.remove(index); onChanged(); } else { entriesBuilder_.remove(index); } return this; } /** * repeated .acl.AclEntry entries = 5; */ public acl.Acl.AclEntry.Builder getEntriesBuilder( int index) { return getEntriesFieldBuilder().getBuilder(index); } /** * repeated .acl.AclEntry entries = 5; */ public acl.Acl.AclEntryOrBuilder getEntriesOrBuilder( int index) { if (entriesBuilder_ == null) { return entries_.get(index); } else { return entriesBuilder_.getMessageOrBuilder(index); } } /** * repeated .acl.AclEntry entries = 5; */ public java.util.List getEntriesOrBuilderList() { if (entriesBuilder_ != null) { return entriesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entries_); } } /** * repeated .acl.AclEntry entries = 5; */ public acl.Acl.AclEntry.Builder addEntriesBuilder() { return getEntriesFieldBuilder().addBuilder( acl.Acl.AclEntry.getDefaultInstance()); } /** * repeated .acl.AclEntry entries = 5; */ public acl.Acl.AclEntry.Builder addEntriesBuilder( int index) { return getEntriesFieldBuilder().addBuilder( index, acl.Acl.AclEntry.getDefaultInstance()); } /** * repeated .acl.AclEntry entries = 5; */ public java.util.List getEntriesBuilderList() { return getEntriesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< acl.Acl.AclEntry, acl.Acl.AclEntry.Builder, acl.Acl.AclEntryOrBuilder> getEntriesFieldBuilder() { if (entriesBuilder_ == null) { entriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< acl.Acl.AclEntry, acl.Acl.AclEntry.Builder, acl.Acl.AclEntryOrBuilder>( entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entries_ = null; } return entriesBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:acl.AclRuleSet) } // @@protoc_insertion_point(class_scope:acl.AclRuleSet) private static final acl.Acl.AclRuleSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new acl.Acl.AclRuleSet(); } public static acl.Acl.AclRuleSet getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AclRuleSet parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AclRuleSet(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public acl.Acl.AclRuleSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_acl_AclMatch_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_acl_AclMatch_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_acl_AclAction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_acl_AclAction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_acl_AclEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_acl_AclEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_acl_AclRuleSet_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_acl_AclRuleSet_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\tacl.proto\022\003acl\"\252\001\n\010AclMatch\022\014\n\004dscp\030\001 " + "\001(\r\022\020\n\010protocol\030\002 \001(\r\022\023\n\013src_address\030\003 \001" + "(\t\022\023\n\013dst_address\030\004 \001(\t\022\020\n\010src_port\030\005 \001(" + "\r\022\020\n\010dst_port\030\006 \001(\r\022\030\n\020start_mpls_label\030" + "\007 \001(\r\022\026\n\016end_mpls_label\030\010 \001(\r\"i\n\tAclActi" + "on\0221\n\016forward_action\030\001 \001(\0162\031.acl.AclForw" + "ardActionEnum\022)\n\nlog_action\030\002 \001(\0162\025.acl." + "AclLogActionEnum\"r\n\010AclEntry\022\023\n\013sequence" + "_id\030\001 \001(\r\022\023\n\013description\030\002 \001(\t\022\034\n\005match\030" + "\003 \001(\0132\r.acl.AclMatch\022\036\n\006action\030\004 \001(\0132\016.a" + "cl.AclAction\"\204\001\n\nAclRuleSet\022\014\n\004name\030\001 \001(" + "\t\022\"\n\004type\030\002 \001(\0162\024.acl.AclRuleTypeEnum\022\023\n" + "\013description\030\003 \001(\t\022\017\n\007user_id\030\004 \001(\t\022\036\n\007e" + "ntries\030\005 \003(\0132\r.acl.AclEntry*\231\001\n\017AclRuleT" + "ypeEnum\022\031\n\025ACLRULETYPE_UNDEFINED\020\000\022\024\n\020AC" + "LRULETYPE_IPV4\020\001\022\024\n\020ACLRULETYPE_IPV6\020\002\022\022" + "\n\016ACLRULETYPE_L2\020\003\022\024\n\020ACLRULETYPE_MPLS\020\004" + "\022\025\n\021ACLRULETYPE_MIXED\020\005*\227\001\n\024AclForwardAc" + "tionEnum\022!\n\035ACLFORWARDINGACTION_UNDEFINE" + "D\020\000\022\034\n\030ACLFORWARDINGACTION_DROP\020\001\022\036\n\032ACL" + "FORWARDINGACTION_ACCEPT\020\002\022\036\n\032ACLFORWARDI" + "NGACTION_REJECT\020\003*_\n\020AclLogActionEnum\022\032\n" + "\026ACLLOGACTION_UNDEFINED\020\000\022\026\n\022ACLLOGACTIO" + "N_NOLOG\020\001\022\027\n\023ACLLOGACTION_SYSLOG\020\002b\006prot" + "o3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_acl_AclMatch_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_acl_AclMatch_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_acl_AclMatch_descriptor, new java.lang.String[] { "Dscp", "Protocol", "SrcAddress", "DstAddress", "SrcPort", "DstPort", "StartMplsLabel", "EndMplsLabel", }); internal_static_acl_AclAction_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_acl_AclAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_acl_AclAction_descriptor, new java.lang.String[] { "ForwardAction", "LogAction", }); internal_static_acl_AclEntry_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_acl_AclEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_acl_AclEntry_descriptor, new java.lang.String[] { "SequenceId", "Description", "Match", "Action", }); internal_static_acl_AclRuleSet_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_acl_AclRuleSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_acl_AclRuleSet_descriptor, new java.lang.String[] { "Name", "Type", "Description", "UserId", "Entries", }); } // @@protoc_insertion_point(outer_class_scope) }