// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: policy.proto

package policy;

public final class Policy {
  private Policy() {}
  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 policy.RuleState}
   */
  public enum RuleState
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <pre>
     * Rule is currently inactive
     * </pre>
     *
     * <code>POLICY_INACTIVE = 0;</code>
     */
    POLICY_INACTIVE(0),
    /**
     * <pre>
     * Rule installation planned
     * </pre>
     *
     * <code>POLICY_PLANNED = 1;</code>
     */
    POLICY_PLANNED(1),
    /**
     * <pre>
     * Rule is currently active
     * </pre>
     *
     * <code>POLICY_ACTIVE = 2;</code>
     */
    POLICY_ACTIVE(2),
    UNRECOGNIZED(-1),
    ;

    /**
     * <pre>
     * Rule is currently inactive
     * </pre>
     *
     * <code>POLICY_INACTIVE = 0;</code>
     */
    public static final int POLICY_INACTIVE_VALUE = 0;
    /**
     * <pre>
     * Rule installation planned
     * </pre>
     *
     * <code>POLICY_PLANNED = 1;</code>
     */
    public static final int POLICY_PLANNED_VALUE = 1;
    /**
     * <pre>
     * Rule is currently active
     * </pre>
     *
     * <code>POLICY_ACTIVE = 2;</code>
     */
    public static final int POLICY_ACTIVE_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 RuleState 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 RuleState forNumber(int value) {
      switch (value) {
        case 0: return POLICY_INACTIVE;
        case 1: return POLICY_PLANNED;
        case 2: return POLICY_ACTIVE;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<RuleState>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        RuleState> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<RuleState>() {
            public RuleState findValueByNumber(int number) {
              return RuleState.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 policy.Policy.getDescriptor().getEnumTypes().get(0);
    }

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

    public static RuleState 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 RuleState(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:policy.RuleState)
  }

  /**
   * Protobuf enum {@code policy.PolicyRuleType}
   */
  public enum PolicyRuleType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <pre>
     * Device-level
     * </pre>
     *
     * <code>POLICYTYPE_DEVICE = 0;</code>
     */
    POLICYTYPE_DEVICE(0),
    /**
     * <pre>
     * Network-wide
     * </pre>
     *
     * <code>POLICYTYPE_NETWORK = 1;</code>
     */
    POLICYTYPE_NETWORK(1),
    UNRECOGNIZED(-1),
    ;

    /**
     * <pre>
     * Device-level
     * </pre>
     *
     * <code>POLICYTYPE_DEVICE = 0;</code>
     */
    public static final int POLICYTYPE_DEVICE_VALUE = 0;
    /**
     * <pre>
     * Network-wide
     * </pre>
     *
     * <code>POLICYTYPE_NETWORK = 1;</code>
     */
    public static final int POLICYTYPE_NETWORK_VALUE = 1;


    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 PolicyRuleType 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 PolicyRuleType forNumber(int value) {
      switch (value) {
        case 0: return POLICYTYPE_DEVICE;
        case 1: return POLICYTYPE_NETWORK;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<PolicyRuleType>
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        PolicyRuleType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<PolicyRuleType>() {
            public PolicyRuleType findValueByNumber(int number) {
              return PolicyRuleType.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 policy.Policy.getDescriptor().getEnumTypes().get(1);
    }

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

    public static PolicyRuleType 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 PolicyRuleType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:policy.PolicyRuleType)
  }

  public interface PolicyRuleIdOrBuilder extends
      // @@protoc_insertion_point(interface_extends:policy.PolicyRuleId)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.context.Uuid uuid = 1;</code>
     * @return Whether the uuid field is set.
     */
    boolean hasUuid();
    /**
     * <code>.context.Uuid uuid = 1;</code>
     * @return The uuid.
     */
    context.ContextOuterClass.Uuid getUuid();
    /**
     * <code>.context.Uuid uuid = 1;</code>
     */
    context.ContextOuterClass.UuidOrBuilder getUuidOrBuilder();
  }
  /**
   * Protobuf type {@code policy.PolicyRuleId}
   */
  public static final class PolicyRuleId extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:policy.PolicyRuleId)
      PolicyRuleIdOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PolicyRuleId.newBuilder() to construct.
    private PolicyRuleId(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PolicyRuleId() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PolicyRuleId(
        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 10: {
              context.ContextOuterClass.Uuid.Builder subBuilder = null;
              if (uuid_ != null) {
                subBuilder = uuid_.toBuilder();
              }
              uuid_ = input.readMessage(context.ContextOuterClass.Uuid.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(uuid_);
                uuid_ = 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 policy.Policy.internal_static_policy_PolicyRuleId_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return policy.Policy.internal_static_policy_PolicyRuleId_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              policy.Policy.PolicyRuleId.class, policy.Policy.PolicyRuleId.Builder.class);
    }

    public static final int UUID_FIELD_NUMBER = 1;
    private context.ContextOuterClass.Uuid uuid_;
    /**
     * <code>.context.Uuid uuid = 1;</code>
     * @return Whether the uuid field is set.
     */
    @java.lang.Override
    public boolean hasUuid() {
      return uuid_ != null;
    }
    /**
     * <code>.context.Uuid uuid = 1;</code>
     * @return The uuid.
     */
    @java.lang.Override
    public context.ContextOuterClass.Uuid getUuid() {
      return uuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : uuid_;
    }
    /**
     * <code>.context.Uuid uuid = 1;</code>
     */
    @java.lang.Override
    public context.ContextOuterClass.UuidOrBuilder getUuidOrBuilder() {
      return getUuid();
    }

    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 (uuid_ != null) {
        output.writeMessage(1, getUuid());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (uuid_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getUuid());
      }
      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 policy.Policy.PolicyRuleId)) {
        return super.equals(obj);
      }
      policy.Policy.PolicyRuleId other = (policy.Policy.PolicyRuleId) obj;

      if (hasUuid() != other.hasUuid()) return false;
      if (hasUuid()) {
        if (!getUuid()
            .equals(other.getUuid())) 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();
      if (hasUuid()) {
        hash = (37 * hash) + UUID_FIELD_NUMBER;
        hash = (53 * hash) + getUuid().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static policy.Policy.PolicyRuleId parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleId parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleId parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleId parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleId parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleId parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleId parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleId 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 policy.Policy.PolicyRuleId parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleId 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 policy.Policy.PolicyRuleId parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleId 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(policy.Policy.PolicyRuleId 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 policy.PolicyRuleId}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:policy.PolicyRuleId)
        policy.Policy.PolicyRuleIdOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return policy.Policy.internal_static_policy_PolicyRuleId_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return policy.Policy.internal_static_policy_PolicyRuleId_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                policy.Policy.PolicyRuleId.class, policy.Policy.PolicyRuleId.Builder.class);
      }

      // Construct using policy.Policy.PolicyRuleId.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();
        if (uuidBuilder_ == null) {
          uuid_ = null;
        } else {
          uuid_ = null;
          uuidBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return policy.Policy.internal_static_policy_PolicyRuleId_descriptor;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleId getDefaultInstanceForType() {
        return policy.Policy.PolicyRuleId.getDefaultInstance();
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleId build() {
        policy.Policy.PolicyRuleId result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleId buildPartial() {
        policy.Policy.PolicyRuleId result = new policy.Policy.PolicyRuleId(this);
        if (uuidBuilder_ == null) {
          result.uuid_ = uuid_;
        } else {
          result.uuid_ = uuidBuilder_.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 policy.Policy.PolicyRuleId) {
          return mergeFrom((policy.Policy.PolicyRuleId)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(policy.Policy.PolicyRuleId other) {
        if (other == policy.Policy.PolicyRuleId.getDefaultInstance()) return this;
        if (other.hasUuid()) {
          mergeUuid(other.getUuid());
        }
        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 {
        policy.Policy.PolicyRuleId parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (policy.Policy.PolicyRuleId) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private context.ContextOuterClass.Uuid uuid_;
      private com.google.protobuf.SingleFieldBuilderV3<
          context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder> uuidBuilder_;
      /**
       * <code>.context.Uuid uuid = 1;</code>
       * @return Whether the uuid field is set.
       */
      public boolean hasUuid() {
        return uuidBuilder_ != null || uuid_ != null;
      }
      /**
       * <code>.context.Uuid uuid = 1;</code>
       * @return The uuid.
       */
      public context.ContextOuterClass.Uuid getUuid() {
        if (uuidBuilder_ == null) {
          return uuid_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : uuid_;
        } else {
          return uuidBuilder_.getMessage();
        }
      }
      /**
       * <code>.context.Uuid uuid = 1;</code>
       */
      public Builder setUuid(context.ContextOuterClass.Uuid value) {
        if (uuidBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          uuid_ = value;
          onChanged();
        } else {
          uuidBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.context.Uuid uuid = 1;</code>
       */
      public Builder setUuid(
          context.ContextOuterClass.Uuid.Builder builderForValue) {
        if (uuidBuilder_ == null) {
          uuid_ = builderForValue.build();
          onChanged();
        } else {
          uuidBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.context.Uuid uuid = 1;</code>
       */
      public Builder mergeUuid(context.ContextOuterClass.Uuid value) {
        if (uuidBuilder_ == null) {
          if (uuid_ != null) {
            uuid_ =
              context.ContextOuterClass.Uuid.newBuilder(uuid_).mergeFrom(value).buildPartial();
          } else {
            uuid_ = value;
          }
          onChanged();
        } else {
          uuidBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.context.Uuid uuid = 1;</code>
       */
      public Builder clearUuid() {
        if (uuidBuilder_ == null) {
          uuid_ = null;
          onChanged();
        } else {
          uuid_ = null;
          uuidBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.context.Uuid uuid = 1;</code>
       */
      public context.ContextOuterClass.Uuid.Builder getUuidBuilder() {
        
        onChanged();
        return getUuidFieldBuilder().getBuilder();
      }
      /**
       * <code>.context.Uuid uuid = 1;</code>
       */
      public context.ContextOuterClass.UuidOrBuilder getUuidOrBuilder() {
        if (uuidBuilder_ != null) {
          return uuidBuilder_.getMessageOrBuilder();
        } else {
          return uuid_ == null ?
              context.ContextOuterClass.Uuid.getDefaultInstance() : uuid_;
        }
      }
      /**
       * <code>.context.Uuid uuid = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder> 
          getUuidFieldBuilder() {
        if (uuidBuilder_ == null) {
          uuidBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder>(
                  getUuid(),
                  getParentForChildren(),
                  isClean());
          uuid_ = null;
        }
        return uuidBuilder_;
      }
      @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:policy.PolicyRuleId)
    }

    // @@protoc_insertion_point(class_scope:policy.PolicyRuleId)
    private static final policy.Policy.PolicyRuleId DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new policy.Policy.PolicyRuleId();
    }

    public static policy.Policy.PolicyRuleId getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<PolicyRuleId>
        PARSER = new com.google.protobuf.AbstractParser<PolicyRuleId>() {
      @java.lang.Override
      public PolicyRuleId parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PolicyRuleId(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<PolicyRuleId> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<PolicyRuleId> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public policy.Policy.PolicyRuleId getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PolicyRuleStateOrBuilder extends
      // @@protoc_insertion_point(interface_extends:policy.PolicyRuleState)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.context.Uuid policyRuleId = 1;</code>
     * @return Whether the policyRuleId field is set.
     */
    boolean hasPolicyRuleId();
    /**
     * <code>.context.Uuid policyRuleId = 1;</code>
     * @return The policyRuleId.
     */
    context.ContextOuterClass.Uuid getPolicyRuleId();
    /**
     * <code>.context.Uuid policyRuleId = 1;</code>
     */
    context.ContextOuterClass.UuidOrBuilder getPolicyRuleIdOrBuilder();

    /**
     * <code>.policy.RuleState policyRuleState = 2;</code>
     * @return The enum numeric value on the wire for policyRuleState.
     */
    int getPolicyRuleStateValue();
    /**
     * <code>.policy.RuleState policyRuleState = 2;</code>
     * @return The policyRuleState.
     */
    policy.Policy.RuleState getPolicyRuleState();
  }
  /**
   * Protobuf type {@code policy.PolicyRuleState}
   */
  public static final class PolicyRuleState extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:policy.PolicyRuleState)
      PolicyRuleStateOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PolicyRuleState.newBuilder() to construct.
    private PolicyRuleState(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PolicyRuleState() {
      policyRuleState_ = 0;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PolicyRuleState(
        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 10: {
              context.ContextOuterClass.Uuid.Builder subBuilder = null;
              if (policyRuleId_ != null) {
                subBuilder = policyRuleId_.toBuilder();
              }
              policyRuleId_ = input.readMessage(context.ContextOuterClass.Uuid.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(policyRuleId_);
                policyRuleId_ = subBuilder.buildPartial();
              }

              break;
            }
            case 16: {
              int rawValue = input.readEnum();

              policyRuleState_ = 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 policy.Policy.internal_static_policy_PolicyRuleState_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return policy.Policy.internal_static_policy_PolicyRuleState_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              policy.Policy.PolicyRuleState.class, policy.Policy.PolicyRuleState.Builder.class);
    }

    public static final int POLICYRULEID_FIELD_NUMBER = 1;
    private context.ContextOuterClass.Uuid policyRuleId_;
    /**
     * <code>.context.Uuid policyRuleId = 1;</code>
     * @return Whether the policyRuleId field is set.
     */
    @java.lang.Override
    public boolean hasPolicyRuleId() {
      return policyRuleId_ != null;
    }
    /**
     * <code>.context.Uuid policyRuleId = 1;</code>
     * @return The policyRuleId.
     */
    @java.lang.Override
    public context.ContextOuterClass.Uuid getPolicyRuleId() {
      return policyRuleId_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : policyRuleId_;
    }
    /**
     * <code>.context.Uuid policyRuleId = 1;</code>
     */
    @java.lang.Override
    public context.ContextOuterClass.UuidOrBuilder getPolicyRuleIdOrBuilder() {
      return getPolicyRuleId();
    }

    public static final int POLICYRULESTATE_FIELD_NUMBER = 2;
    private int policyRuleState_;
    /**
     * <code>.policy.RuleState policyRuleState = 2;</code>
     * @return The enum numeric value on the wire for policyRuleState.
     */
    @java.lang.Override public int getPolicyRuleStateValue() {
      return policyRuleState_;
    }
    /**
     * <code>.policy.RuleState policyRuleState = 2;</code>
     * @return The policyRuleState.
     */
    @java.lang.Override public policy.Policy.RuleState getPolicyRuleState() {
      @SuppressWarnings("deprecation")
      policy.Policy.RuleState result = policy.Policy.RuleState.valueOf(policyRuleState_);
      return result == null ? policy.Policy.RuleState.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 (policyRuleId_ != null) {
        output.writeMessage(1, getPolicyRuleId());
      }
      if (policyRuleState_ != policy.Policy.RuleState.POLICY_INACTIVE.getNumber()) {
        output.writeEnum(2, policyRuleState_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (policyRuleId_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getPolicyRuleId());
      }
      if (policyRuleState_ != policy.Policy.RuleState.POLICY_INACTIVE.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(2, policyRuleState_);
      }
      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 policy.Policy.PolicyRuleState)) {
        return super.equals(obj);
      }
      policy.Policy.PolicyRuleState other = (policy.Policy.PolicyRuleState) obj;

      if (hasPolicyRuleId() != other.hasPolicyRuleId()) return false;
      if (hasPolicyRuleId()) {
        if (!getPolicyRuleId()
            .equals(other.getPolicyRuleId())) return false;
      }
      if (policyRuleState_ != other.policyRuleState_) 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();
      if (hasPolicyRuleId()) {
        hash = (37 * hash) + POLICYRULEID_FIELD_NUMBER;
        hash = (53 * hash) + getPolicyRuleId().hashCode();
      }
      hash = (37 * hash) + POLICYRULESTATE_FIELD_NUMBER;
      hash = (53 * hash) + policyRuleState_;
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static policy.Policy.PolicyRuleState parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleState parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleState parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleState parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleState parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleState parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleState parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleState 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 policy.Policy.PolicyRuleState parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleState 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 policy.Policy.PolicyRuleState parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleState 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(policy.Policy.PolicyRuleState 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 policy.PolicyRuleState}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:policy.PolicyRuleState)
        policy.Policy.PolicyRuleStateOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return policy.Policy.internal_static_policy_PolicyRuleState_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return policy.Policy.internal_static_policy_PolicyRuleState_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                policy.Policy.PolicyRuleState.class, policy.Policy.PolicyRuleState.Builder.class);
      }

      // Construct using policy.Policy.PolicyRuleState.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();
        if (policyRuleIdBuilder_ == null) {
          policyRuleId_ = null;
        } else {
          policyRuleId_ = null;
          policyRuleIdBuilder_ = null;
        }
        policyRuleState_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return policy.Policy.internal_static_policy_PolicyRuleState_descriptor;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleState getDefaultInstanceForType() {
        return policy.Policy.PolicyRuleState.getDefaultInstance();
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleState build() {
        policy.Policy.PolicyRuleState result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleState buildPartial() {
        policy.Policy.PolicyRuleState result = new policy.Policy.PolicyRuleState(this);
        if (policyRuleIdBuilder_ == null) {
          result.policyRuleId_ = policyRuleId_;
        } else {
          result.policyRuleId_ = policyRuleIdBuilder_.build();
        }
        result.policyRuleState_ = policyRuleState_;
        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 policy.Policy.PolicyRuleState) {
          return mergeFrom((policy.Policy.PolicyRuleState)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(policy.Policy.PolicyRuleState other) {
        if (other == policy.Policy.PolicyRuleState.getDefaultInstance()) return this;
        if (other.hasPolicyRuleId()) {
          mergePolicyRuleId(other.getPolicyRuleId());
        }
        if (other.policyRuleState_ != 0) {
          setPolicyRuleStateValue(other.getPolicyRuleStateValue());
        }
        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 {
        policy.Policy.PolicyRuleState parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (policy.Policy.PolicyRuleState) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private context.ContextOuterClass.Uuid policyRuleId_;
      private com.google.protobuf.SingleFieldBuilderV3<
          context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder> policyRuleIdBuilder_;
      /**
       * <code>.context.Uuid policyRuleId = 1;</code>
       * @return Whether the policyRuleId field is set.
       */
      public boolean hasPolicyRuleId() {
        return policyRuleIdBuilder_ != null || policyRuleId_ != null;
      }
      /**
       * <code>.context.Uuid policyRuleId = 1;</code>
       * @return The policyRuleId.
       */
      public context.ContextOuterClass.Uuid getPolicyRuleId() {
        if (policyRuleIdBuilder_ == null) {
          return policyRuleId_ == null ? context.ContextOuterClass.Uuid.getDefaultInstance() : policyRuleId_;
        } else {
          return policyRuleIdBuilder_.getMessage();
        }
      }
      /**
       * <code>.context.Uuid policyRuleId = 1;</code>
       */
      public Builder setPolicyRuleId(context.ContextOuterClass.Uuid value) {
        if (policyRuleIdBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          policyRuleId_ = value;
          onChanged();
        } else {
          policyRuleIdBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.context.Uuid policyRuleId = 1;</code>
       */
      public Builder setPolicyRuleId(
          context.ContextOuterClass.Uuid.Builder builderForValue) {
        if (policyRuleIdBuilder_ == null) {
          policyRuleId_ = builderForValue.build();
          onChanged();
        } else {
          policyRuleIdBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.context.Uuid policyRuleId = 1;</code>
       */
      public Builder mergePolicyRuleId(context.ContextOuterClass.Uuid value) {
        if (policyRuleIdBuilder_ == null) {
          if (policyRuleId_ != null) {
            policyRuleId_ =
              context.ContextOuterClass.Uuid.newBuilder(policyRuleId_).mergeFrom(value).buildPartial();
          } else {
            policyRuleId_ = value;
          }
          onChanged();
        } else {
          policyRuleIdBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.context.Uuid policyRuleId = 1;</code>
       */
      public Builder clearPolicyRuleId() {
        if (policyRuleIdBuilder_ == null) {
          policyRuleId_ = null;
          onChanged();
        } else {
          policyRuleId_ = null;
          policyRuleIdBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.context.Uuid policyRuleId = 1;</code>
       */
      public context.ContextOuterClass.Uuid.Builder getPolicyRuleIdBuilder() {
        
        onChanged();
        return getPolicyRuleIdFieldBuilder().getBuilder();
      }
      /**
       * <code>.context.Uuid policyRuleId = 1;</code>
       */
      public context.ContextOuterClass.UuidOrBuilder getPolicyRuleIdOrBuilder() {
        if (policyRuleIdBuilder_ != null) {
          return policyRuleIdBuilder_.getMessageOrBuilder();
        } else {
          return policyRuleId_ == null ?
              context.ContextOuterClass.Uuid.getDefaultInstance() : policyRuleId_;
        }
      }
      /**
       * <code>.context.Uuid policyRuleId = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder> 
          getPolicyRuleIdFieldBuilder() {
        if (policyRuleIdBuilder_ == null) {
          policyRuleIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              context.ContextOuterClass.Uuid, context.ContextOuterClass.Uuid.Builder, context.ContextOuterClass.UuidOrBuilder>(
                  getPolicyRuleId(),
                  getParentForChildren(),
                  isClean());
          policyRuleId_ = null;
        }
        return policyRuleIdBuilder_;
      }

      private int policyRuleState_ = 0;
      /**
       * <code>.policy.RuleState policyRuleState = 2;</code>
       * @return The enum numeric value on the wire for policyRuleState.
       */
      @java.lang.Override public int getPolicyRuleStateValue() {
        return policyRuleState_;
      }
      /**
       * <code>.policy.RuleState policyRuleState = 2;</code>
       * @param value The enum numeric value on the wire for policyRuleState to set.
       * @return This builder for chaining.
       */
      public Builder setPolicyRuleStateValue(int value) {
        
        policyRuleState_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>.policy.RuleState policyRuleState = 2;</code>
       * @return The policyRuleState.
       */
      @java.lang.Override
      public policy.Policy.RuleState getPolicyRuleState() {
        @SuppressWarnings("deprecation")
        policy.Policy.RuleState result = policy.Policy.RuleState.valueOf(policyRuleState_);
        return result == null ? policy.Policy.RuleState.UNRECOGNIZED : result;
      }
      /**
       * <code>.policy.RuleState policyRuleState = 2;</code>
       * @param value The policyRuleState to set.
       * @return This builder for chaining.
       */
      public Builder setPolicyRuleState(policy.Policy.RuleState value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        policyRuleState_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.policy.RuleState policyRuleState = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearPolicyRuleState() {
        
        policyRuleState_ = 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:policy.PolicyRuleState)
    }

    // @@protoc_insertion_point(class_scope:policy.PolicyRuleState)
    private static final policy.Policy.PolicyRuleState DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new policy.Policy.PolicyRuleState();
    }

    public static policy.Policy.PolicyRuleState getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<PolicyRuleState>
        PARSER = new com.google.protobuf.AbstractParser<PolicyRuleState>() {
      @java.lang.Override
      public PolicyRuleState parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PolicyRuleState(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<PolicyRuleState> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<PolicyRuleState> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public policy.Policy.PolicyRuleState getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PolicyRuleVariableOrBuilder extends
      // @@protoc_insertion_point(interface_extends:policy.PolicyRuleVariable)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string policyRuleVariable = 1;</code>
     * @return The policyRuleVariable.
     */
    java.lang.String getPolicyRuleVariable();
    /**
     * <code>string policyRuleVariable = 1;</code>
     * @return The bytes for policyRuleVariable.
     */
    com.google.protobuf.ByteString
        getPolicyRuleVariableBytes();
  }
  /**
   * Protobuf type {@code policy.PolicyRuleVariable}
   */
  public static final class PolicyRuleVariable extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:policy.PolicyRuleVariable)
      PolicyRuleVariableOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PolicyRuleVariable.newBuilder() to construct.
    private PolicyRuleVariable(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PolicyRuleVariable() {
      policyRuleVariable_ = "";
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PolicyRuleVariable(
        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 10: {
              java.lang.String s = input.readStringRequireUtf8();

              policyRuleVariable_ = s;
              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 policy.Policy.internal_static_policy_PolicyRuleVariable_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return policy.Policy.internal_static_policy_PolicyRuleVariable_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              policy.Policy.PolicyRuleVariable.class, policy.Policy.PolicyRuleVariable.Builder.class);
    }

    public static final int POLICYRULEVARIABLE_FIELD_NUMBER = 1;
    private volatile java.lang.Object policyRuleVariable_;
    /**
     * <code>string policyRuleVariable = 1;</code>
     * @return The policyRuleVariable.
     */
    @java.lang.Override
    public java.lang.String getPolicyRuleVariable() {
      java.lang.Object ref = policyRuleVariable_;
      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();
        policyRuleVariable_ = s;
        return s;
      }
    }
    /**
     * <code>string policyRuleVariable = 1;</code>
     * @return The bytes for policyRuleVariable.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getPolicyRuleVariableBytes() {
      java.lang.Object ref = policyRuleVariable_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        policyRuleVariable_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 (!getPolicyRuleVariableBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyRuleVariable_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!getPolicyRuleVariableBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyRuleVariable_);
      }
      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 policy.Policy.PolicyRuleVariable)) {
        return super.equals(obj);
      }
      policy.Policy.PolicyRuleVariable other = (policy.Policy.PolicyRuleVariable) obj;

      if (!getPolicyRuleVariable()
          .equals(other.getPolicyRuleVariable())) 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) + POLICYRULEVARIABLE_FIELD_NUMBER;
      hash = (53 * hash) + getPolicyRuleVariable().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static policy.Policy.PolicyRuleVariable parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleVariable parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleVariable parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleVariable parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleVariable parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleVariable parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleVariable parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleVariable 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 policy.Policy.PolicyRuleVariable parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleVariable 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 policy.Policy.PolicyRuleVariable parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleVariable 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(policy.Policy.PolicyRuleVariable 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 policy.PolicyRuleVariable}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:policy.PolicyRuleVariable)
        policy.Policy.PolicyRuleVariableOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return policy.Policy.internal_static_policy_PolicyRuleVariable_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return policy.Policy.internal_static_policy_PolicyRuleVariable_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                policy.Policy.PolicyRuleVariable.class, policy.Policy.PolicyRuleVariable.Builder.class);
      }

      // Construct using policy.Policy.PolicyRuleVariable.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();
        policyRuleVariable_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return policy.Policy.internal_static_policy_PolicyRuleVariable_descriptor;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleVariable getDefaultInstanceForType() {
        return policy.Policy.PolicyRuleVariable.getDefaultInstance();
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleVariable build() {
        policy.Policy.PolicyRuleVariable result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleVariable buildPartial() {
        policy.Policy.PolicyRuleVariable result = new policy.Policy.PolicyRuleVariable(this);
        result.policyRuleVariable_ = policyRuleVariable_;
        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 policy.Policy.PolicyRuleVariable) {
          return mergeFrom((policy.Policy.PolicyRuleVariable)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(policy.Policy.PolicyRuleVariable other) {
        if (other == policy.Policy.PolicyRuleVariable.getDefaultInstance()) return this;
        if (!other.getPolicyRuleVariable().isEmpty()) {
          policyRuleVariable_ = other.policyRuleVariable_;
          onChanged();
        }
        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 {
        policy.Policy.PolicyRuleVariable parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (policy.Policy.PolicyRuleVariable) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object policyRuleVariable_ = "";
      /**
       * <code>string policyRuleVariable = 1;</code>
       * @return The policyRuleVariable.
       */
      public java.lang.String getPolicyRuleVariable() {
        java.lang.Object ref = policyRuleVariable_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          policyRuleVariable_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string policyRuleVariable = 1;</code>
       * @return The bytes for policyRuleVariable.
       */
      public com.google.protobuf.ByteString
          getPolicyRuleVariableBytes() {
        java.lang.Object ref = policyRuleVariable_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          policyRuleVariable_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string policyRuleVariable = 1;</code>
       * @param value The policyRuleVariable to set.
       * @return This builder for chaining.
       */
      public Builder setPolicyRuleVariable(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        policyRuleVariable_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string policyRuleVariable = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearPolicyRuleVariable() {
        
        policyRuleVariable_ = getDefaultInstance().getPolicyRuleVariable();
        onChanged();
        return this;
      }
      /**
       * <code>string policyRuleVariable = 1;</code>
       * @param value The bytes for policyRuleVariable to set.
       * @return This builder for chaining.
       */
      public Builder setPolicyRuleVariableBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        policyRuleVariable_ = value;
        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:policy.PolicyRuleVariable)
    }

    // @@protoc_insertion_point(class_scope:policy.PolicyRuleVariable)
    private static final policy.Policy.PolicyRuleVariable DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new policy.Policy.PolicyRuleVariable();
    }

    public static policy.Policy.PolicyRuleVariable getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<PolicyRuleVariable>
        PARSER = new com.google.protobuf.AbstractParser<PolicyRuleVariable>() {
      @java.lang.Override
      public PolicyRuleVariable parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PolicyRuleVariable(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<PolicyRuleVariable> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<PolicyRuleVariable> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public policy.Policy.PolicyRuleVariable getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PolicyRuleValueOrBuilder extends
      // @@protoc_insertion_point(interface_extends:policy.PolicyRuleValue)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>string policyRuleValue = 1;</code>
     * @return The policyRuleValue.
     */
    java.lang.String getPolicyRuleValue();
    /**
     * <code>string policyRuleValue = 1;</code>
     * @return The bytes for policyRuleValue.
     */
    com.google.protobuf.ByteString
        getPolicyRuleValueBytes();
  }
  /**
   * Protobuf type {@code policy.PolicyRuleValue}
   */
  public static final class PolicyRuleValue extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:policy.PolicyRuleValue)
      PolicyRuleValueOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PolicyRuleValue.newBuilder() to construct.
    private PolicyRuleValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PolicyRuleValue() {
      policyRuleValue_ = "";
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PolicyRuleValue(
        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 10: {
              java.lang.String s = input.readStringRequireUtf8();

              policyRuleValue_ = s;
              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 policy.Policy.internal_static_policy_PolicyRuleValue_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return policy.Policy.internal_static_policy_PolicyRuleValue_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              policy.Policy.PolicyRuleValue.class, policy.Policy.PolicyRuleValue.Builder.class);
    }

    public static final int POLICYRULEVALUE_FIELD_NUMBER = 1;
    private volatile java.lang.Object policyRuleValue_;
    /**
     * <code>string policyRuleValue = 1;</code>
     * @return The policyRuleValue.
     */
    @java.lang.Override
    public java.lang.String getPolicyRuleValue() {
      java.lang.Object ref = policyRuleValue_;
      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();
        policyRuleValue_ = s;
        return s;
      }
    }
    /**
     * <code>string policyRuleValue = 1;</code>
     * @return The bytes for policyRuleValue.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getPolicyRuleValueBytes() {
      java.lang.Object ref = policyRuleValue_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        policyRuleValue_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 (!getPolicyRuleValueBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, policyRuleValue_);
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (!getPolicyRuleValueBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, policyRuleValue_);
      }
      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 policy.Policy.PolicyRuleValue)) {
        return super.equals(obj);
      }
      policy.Policy.PolicyRuleValue other = (policy.Policy.PolicyRuleValue) obj;

      if (!getPolicyRuleValue()
          .equals(other.getPolicyRuleValue())) 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) + POLICYRULEVALUE_FIELD_NUMBER;
      hash = (53 * hash) + getPolicyRuleValue().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static policy.Policy.PolicyRuleValue parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleValue parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleValue parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleValue parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleValue parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleValue parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleValue parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleValue 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 policy.Policy.PolicyRuleValue parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleValue 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 policy.Policy.PolicyRuleValue parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleValue 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(policy.Policy.PolicyRuleValue 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 policy.PolicyRuleValue}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:policy.PolicyRuleValue)
        policy.Policy.PolicyRuleValueOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return policy.Policy.internal_static_policy_PolicyRuleValue_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return policy.Policy.internal_static_policy_PolicyRuleValue_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                policy.Policy.PolicyRuleValue.class, policy.Policy.PolicyRuleValue.Builder.class);
      }

      // Construct using policy.Policy.PolicyRuleValue.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();
        policyRuleValue_ = "";

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return policy.Policy.internal_static_policy_PolicyRuleValue_descriptor;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleValue getDefaultInstanceForType() {
        return policy.Policy.PolicyRuleValue.getDefaultInstance();
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleValue build() {
        policy.Policy.PolicyRuleValue result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleValue buildPartial() {
        policy.Policy.PolicyRuleValue result = new policy.Policy.PolicyRuleValue(this);
        result.policyRuleValue_ = policyRuleValue_;
        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 policy.Policy.PolicyRuleValue) {
          return mergeFrom((policy.Policy.PolicyRuleValue)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(policy.Policy.PolicyRuleValue other) {
        if (other == policy.Policy.PolicyRuleValue.getDefaultInstance()) return this;
        if (!other.getPolicyRuleValue().isEmpty()) {
          policyRuleValue_ = other.policyRuleValue_;
          onChanged();
        }
        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 {
        policy.Policy.PolicyRuleValue parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (policy.Policy.PolicyRuleValue) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object policyRuleValue_ = "";
      /**
       * <code>string policyRuleValue = 1;</code>
       * @return The policyRuleValue.
       */
      public java.lang.String getPolicyRuleValue() {
        java.lang.Object ref = policyRuleValue_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          policyRuleValue_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>string policyRuleValue = 1;</code>
       * @return The bytes for policyRuleValue.
       */
      public com.google.protobuf.ByteString
          getPolicyRuleValueBytes() {
        java.lang.Object ref = policyRuleValue_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          policyRuleValue_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>string policyRuleValue = 1;</code>
       * @param value The policyRuleValue to set.
       * @return This builder for chaining.
       */
      public Builder setPolicyRuleValue(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        policyRuleValue_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>string policyRuleValue = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearPolicyRuleValue() {
        
        policyRuleValue_ = getDefaultInstance().getPolicyRuleValue();
        onChanged();
        return this;
      }
      /**
       * <code>string policyRuleValue = 1;</code>
       * @param value The bytes for policyRuleValue to set.
       * @return This builder for chaining.
       */
      public Builder setPolicyRuleValueBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        policyRuleValue_ = value;
        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:policy.PolicyRuleValue)
    }

    // @@protoc_insertion_point(class_scope:policy.PolicyRuleValue)
    private static final policy.Policy.PolicyRuleValue DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new policy.Policy.PolicyRuleValue();
    }

    public static policy.Policy.PolicyRuleValue getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<PolicyRuleValue>
        PARSER = new com.google.protobuf.AbstractParser<PolicyRuleValue>() {
      @java.lang.Override
      public PolicyRuleValue parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PolicyRuleValue(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<PolicyRuleValue> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<PolicyRuleValue> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public policy.Policy.PolicyRuleValue getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PolicyRuleEventOrBuilder extends
      // @@protoc_insertion_point(interface_extends:policy.PolicyRuleEvent)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.context.Event event = 1;</code>
     * @return Whether the event field is set.
     */
    boolean hasEvent();
    /**
     * <code>.context.Event event = 1;</code>
     * @return The event.
     */
    context.ContextOuterClass.Event getEvent();
    /**
     * <code>.context.Event event = 1;</code>
     */
    context.ContextOuterClass.EventOrBuilder getEventOrBuilder();
  }
  /**
   * <pre>
   * IETF draft: Framework for Use of ECA (Event Condition Action) in Network Self Management
   *     Source: https://datatracker.ietf.org/doc/draft-bwd-netmod-eca-framework/
   * Event
   * </pre>
   *
   * Protobuf type {@code policy.PolicyRuleEvent}
   */
  public static final class PolicyRuleEvent extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:policy.PolicyRuleEvent)
      PolicyRuleEventOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PolicyRuleEvent.newBuilder() to construct.
    private PolicyRuleEvent(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PolicyRuleEvent() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PolicyRuleEvent(
        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 10: {
              context.ContextOuterClass.Event.Builder subBuilder = null;
              if (event_ != null) {
                subBuilder = event_.toBuilder();
              }
              event_ = input.readMessage(context.ContextOuterClass.Event.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(event_);
                event_ = 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 policy.Policy.internal_static_policy_PolicyRuleEvent_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return policy.Policy.internal_static_policy_PolicyRuleEvent_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              policy.Policy.PolicyRuleEvent.class, policy.Policy.PolicyRuleEvent.Builder.class);
    }

    public static final int EVENT_FIELD_NUMBER = 1;
    private context.ContextOuterClass.Event event_;
    /**
     * <code>.context.Event event = 1;</code>
     * @return Whether the event field is set.
     */
    @java.lang.Override
    public boolean hasEvent() {
      return event_ != null;
    }
    /**
     * <code>.context.Event event = 1;</code>
     * @return The event.
     */
    @java.lang.Override
    public context.ContextOuterClass.Event getEvent() {
      return event_ == null ? context.ContextOuterClass.Event.getDefaultInstance() : event_;
    }
    /**
     * <code>.context.Event event = 1;</code>
     */
    @java.lang.Override
    public context.ContextOuterClass.EventOrBuilder getEventOrBuilder() {
      return getEvent();
    }

    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 (event_ != null) {
        output.writeMessage(1, getEvent());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (event_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getEvent());
      }
      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 policy.Policy.PolicyRuleEvent)) {
        return super.equals(obj);
      }
      policy.Policy.PolicyRuleEvent other = (policy.Policy.PolicyRuleEvent) obj;

      if (hasEvent() != other.hasEvent()) return false;
      if (hasEvent()) {
        if (!getEvent()
            .equals(other.getEvent())) 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();
      if (hasEvent()) {
        hash = (37 * hash) + EVENT_FIELD_NUMBER;
        hash = (53 * hash) + getEvent().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static policy.Policy.PolicyRuleEvent parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleEvent parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleEvent parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleEvent parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleEvent parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleEvent parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleEvent parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleEvent 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 policy.Policy.PolicyRuleEvent parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleEvent 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 policy.Policy.PolicyRuleEvent parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleEvent 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(policy.Policy.PolicyRuleEvent 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;
    }
    /**
     * <pre>
     * IETF draft: Framework for Use of ECA (Event Condition Action) in Network Self Management
     *     Source: https://datatracker.ietf.org/doc/draft-bwd-netmod-eca-framework/
     * Event
     * </pre>
     *
     * Protobuf type {@code policy.PolicyRuleEvent}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:policy.PolicyRuleEvent)
        policy.Policy.PolicyRuleEventOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return policy.Policy.internal_static_policy_PolicyRuleEvent_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return policy.Policy.internal_static_policy_PolicyRuleEvent_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                policy.Policy.PolicyRuleEvent.class, policy.Policy.PolicyRuleEvent.Builder.class);
      }

      // Construct using policy.Policy.PolicyRuleEvent.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();
        if (eventBuilder_ == null) {
          event_ = null;
        } else {
          event_ = null;
          eventBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return policy.Policy.internal_static_policy_PolicyRuleEvent_descriptor;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleEvent getDefaultInstanceForType() {
        return policy.Policy.PolicyRuleEvent.getDefaultInstance();
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleEvent build() {
        policy.Policy.PolicyRuleEvent result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleEvent buildPartial() {
        policy.Policy.PolicyRuleEvent result = new policy.Policy.PolicyRuleEvent(this);
        if (eventBuilder_ == null) {
          result.event_ = event_;
        } else {
          result.event_ = eventBuilder_.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 policy.Policy.PolicyRuleEvent) {
          return mergeFrom((policy.Policy.PolicyRuleEvent)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(policy.Policy.PolicyRuleEvent other) {
        if (other == policy.Policy.PolicyRuleEvent.getDefaultInstance()) return this;
        if (other.hasEvent()) {
          mergeEvent(other.getEvent());
        }
        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 {
        policy.Policy.PolicyRuleEvent parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (policy.Policy.PolicyRuleEvent) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private context.ContextOuterClass.Event event_;
      private com.google.protobuf.SingleFieldBuilderV3<
          context.ContextOuterClass.Event, context.ContextOuterClass.Event.Builder, context.ContextOuterClass.EventOrBuilder> eventBuilder_;
      /**
       * <code>.context.Event event = 1;</code>
       * @return Whether the event field is set.
       */
      public boolean hasEvent() {
        return eventBuilder_ != null || event_ != null;
      }
      /**
       * <code>.context.Event event = 1;</code>
       * @return The event.
       */
      public context.ContextOuterClass.Event getEvent() {
        if (eventBuilder_ == null) {
          return event_ == null ? context.ContextOuterClass.Event.getDefaultInstance() : event_;
        } else {
          return eventBuilder_.getMessage();
        }
      }
      /**
       * <code>.context.Event event = 1;</code>
       */
      public Builder setEvent(context.ContextOuterClass.Event value) {
        if (eventBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          event_ = value;
          onChanged();
        } else {
          eventBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.context.Event event = 1;</code>
       */
      public Builder setEvent(
          context.ContextOuterClass.Event.Builder builderForValue) {
        if (eventBuilder_ == null) {
          event_ = builderForValue.build();
          onChanged();
        } else {
          eventBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.context.Event event = 1;</code>
       */
      public Builder mergeEvent(context.ContextOuterClass.Event value) {
        if (eventBuilder_ == null) {
          if (event_ != null) {
            event_ =
              context.ContextOuterClass.Event.newBuilder(event_).mergeFrom(value).buildPartial();
          } else {
            event_ = value;
          }
          onChanged();
        } else {
          eventBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.context.Event event = 1;</code>
       */
      public Builder clearEvent() {
        if (eventBuilder_ == null) {
          event_ = null;
          onChanged();
        } else {
          event_ = null;
          eventBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.context.Event event = 1;</code>
       */
      public context.ContextOuterClass.Event.Builder getEventBuilder() {
        
        onChanged();
        return getEventFieldBuilder().getBuilder();
      }
      /**
       * <code>.context.Event event = 1;</code>
       */
      public context.ContextOuterClass.EventOrBuilder getEventOrBuilder() {
        if (eventBuilder_ != null) {
          return eventBuilder_.getMessageOrBuilder();
        } else {
          return event_ == null ?
              context.ContextOuterClass.Event.getDefaultInstance() : event_;
        }
      }
      /**
       * <code>.context.Event event = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          context.ContextOuterClass.Event, context.ContextOuterClass.Event.Builder, context.ContextOuterClass.EventOrBuilder> 
          getEventFieldBuilder() {
        if (eventBuilder_ == null) {
          eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              context.ContextOuterClass.Event, context.ContextOuterClass.Event.Builder, context.ContextOuterClass.EventOrBuilder>(
                  getEvent(),
                  getParentForChildren(),
                  isClean());
          event_ = null;
        }
        return eventBuilder_;
      }
      @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:policy.PolicyRuleEvent)
    }

    // @@protoc_insertion_point(class_scope:policy.PolicyRuleEvent)
    private static final policy.Policy.PolicyRuleEvent DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new policy.Policy.PolicyRuleEvent();
    }

    public static policy.Policy.PolicyRuleEvent getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<PolicyRuleEvent>
        PARSER = new com.google.protobuf.AbstractParser<PolicyRuleEvent>() {
      @java.lang.Override
      public PolicyRuleEvent parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PolicyRuleEvent(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<PolicyRuleEvent> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<PolicyRuleEvent> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public policy.Policy.PolicyRuleEvent getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PolicyRuleConditionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:policy.PolicyRuleCondition)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
     * @return Whether the polRuleConditionVar field is set.
     */
    boolean hasPolRuleConditionVar();
    /**
     * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
     * @return The polRuleConditionVar.
     */
    policy.Policy.PolicyRuleVariable getPolRuleConditionVar();
    /**
     * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
     */
    policy.Policy.PolicyRuleVariableOrBuilder getPolRuleConditionVarOrBuilder();

    /**
     * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
     * @return Whether the polRuleConditionVal field is set.
     */
    boolean hasPolRuleConditionVal();
    /**
     * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
     * @return The polRuleConditionVal.
     */
    policy.Policy.PolicyRuleValue getPolRuleConditionVal();
    /**
     * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
     */
    policy.Policy.PolicyRuleValueOrBuilder getPolRuleConditionValOrBuilder();
  }
  /**
   * <pre>
   * Condition
   * </pre>
   *
   * Protobuf type {@code policy.PolicyRuleCondition}
   */
  public static final class PolicyRuleCondition extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:policy.PolicyRuleCondition)
      PolicyRuleConditionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PolicyRuleCondition.newBuilder() to construct.
    private PolicyRuleCondition(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PolicyRuleCondition() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PolicyRuleCondition(
        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 10: {
              policy.Policy.PolicyRuleVariable.Builder subBuilder = null;
              if (polRuleConditionVar_ != null) {
                subBuilder = polRuleConditionVar_.toBuilder();
              }
              polRuleConditionVar_ = input.readMessage(policy.Policy.PolicyRuleVariable.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(polRuleConditionVar_);
                polRuleConditionVar_ = subBuilder.buildPartial();
              }

              break;
            }
            case 18: {
              policy.Policy.PolicyRuleValue.Builder subBuilder = null;
              if (polRuleConditionVal_ != null) {
                subBuilder = polRuleConditionVal_.toBuilder();
              }
              polRuleConditionVal_ = input.readMessage(policy.Policy.PolicyRuleValue.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(polRuleConditionVal_);
                polRuleConditionVal_ = 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 policy.Policy.internal_static_policy_PolicyRuleCondition_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return policy.Policy.internal_static_policy_PolicyRuleCondition_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              policy.Policy.PolicyRuleCondition.class, policy.Policy.PolicyRuleCondition.Builder.class);
    }

    public static final int POLRULECONDITIONVAR_FIELD_NUMBER = 1;
    private policy.Policy.PolicyRuleVariable polRuleConditionVar_;
    /**
     * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
     * @return Whether the polRuleConditionVar field is set.
     */
    @java.lang.Override
    public boolean hasPolRuleConditionVar() {
      return polRuleConditionVar_ != null;
    }
    /**
     * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
     * @return The polRuleConditionVar.
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleVariable getPolRuleConditionVar() {
      return polRuleConditionVar_ == null ? policy.Policy.PolicyRuleVariable.getDefaultInstance() : polRuleConditionVar_;
    }
    /**
     * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleVariableOrBuilder getPolRuleConditionVarOrBuilder() {
      return getPolRuleConditionVar();
    }

    public static final int POLRULECONDITIONVAL_FIELD_NUMBER = 2;
    private policy.Policy.PolicyRuleValue polRuleConditionVal_;
    /**
     * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
     * @return Whether the polRuleConditionVal field is set.
     */
    @java.lang.Override
    public boolean hasPolRuleConditionVal() {
      return polRuleConditionVal_ != null;
    }
    /**
     * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
     * @return The polRuleConditionVal.
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleValue getPolRuleConditionVal() {
      return polRuleConditionVal_ == null ? policy.Policy.PolicyRuleValue.getDefaultInstance() : polRuleConditionVal_;
    }
    /**
     * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleValueOrBuilder getPolRuleConditionValOrBuilder() {
      return getPolRuleConditionVal();
    }

    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 (polRuleConditionVar_ != null) {
        output.writeMessage(1, getPolRuleConditionVar());
      }
      if (polRuleConditionVal_ != null) {
        output.writeMessage(2, getPolRuleConditionVal());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (polRuleConditionVar_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getPolRuleConditionVar());
      }
      if (polRuleConditionVal_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getPolRuleConditionVal());
      }
      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 policy.Policy.PolicyRuleCondition)) {
        return super.equals(obj);
      }
      policy.Policy.PolicyRuleCondition other = (policy.Policy.PolicyRuleCondition) obj;

      if (hasPolRuleConditionVar() != other.hasPolRuleConditionVar()) return false;
      if (hasPolRuleConditionVar()) {
        if (!getPolRuleConditionVar()
            .equals(other.getPolRuleConditionVar())) return false;
      }
      if (hasPolRuleConditionVal() != other.hasPolRuleConditionVal()) return false;
      if (hasPolRuleConditionVal()) {
        if (!getPolRuleConditionVal()
            .equals(other.getPolRuleConditionVal())) 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();
      if (hasPolRuleConditionVar()) {
        hash = (37 * hash) + POLRULECONDITIONVAR_FIELD_NUMBER;
        hash = (53 * hash) + getPolRuleConditionVar().hashCode();
      }
      if (hasPolRuleConditionVal()) {
        hash = (37 * hash) + POLRULECONDITIONVAL_FIELD_NUMBER;
        hash = (53 * hash) + getPolRuleConditionVal().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static policy.Policy.PolicyRuleCondition parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleCondition parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleCondition parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleCondition parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleCondition parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleCondition parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleCondition parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleCondition 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 policy.Policy.PolicyRuleCondition parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleCondition 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 policy.Policy.PolicyRuleCondition parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleCondition 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(policy.Policy.PolicyRuleCondition 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;
    }
    /**
     * <pre>
     * Condition
     * </pre>
     *
     * Protobuf type {@code policy.PolicyRuleCondition}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:policy.PolicyRuleCondition)
        policy.Policy.PolicyRuleConditionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return policy.Policy.internal_static_policy_PolicyRuleCondition_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return policy.Policy.internal_static_policy_PolicyRuleCondition_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                policy.Policy.PolicyRuleCondition.class, policy.Policy.PolicyRuleCondition.Builder.class);
      }

      // Construct using policy.Policy.PolicyRuleCondition.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();
        if (polRuleConditionVarBuilder_ == null) {
          polRuleConditionVar_ = null;
        } else {
          polRuleConditionVar_ = null;
          polRuleConditionVarBuilder_ = null;
        }
        if (polRuleConditionValBuilder_ == null) {
          polRuleConditionVal_ = null;
        } else {
          polRuleConditionVal_ = null;
          polRuleConditionValBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return policy.Policy.internal_static_policy_PolicyRuleCondition_descriptor;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleCondition getDefaultInstanceForType() {
        return policy.Policy.PolicyRuleCondition.getDefaultInstance();
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleCondition build() {
        policy.Policy.PolicyRuleCondition result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleCondition buildPartial() {
        policy.Policy.PolicyRuleCondition result = new policy.Policy.PolicyRuleCondition(this);
        if (polRuleConditionVarBuilder_ == null) {
          result.polRuleConditionVar_ = polRuleConditionVar_;
        } else {
          result.polRuleConditionVar_ = polRuleConditionVarBuilder_.build();
        }
        if (polRuleConditionValBuilder_ == null) {
          result.polRuleConditionVal_ = polRuleConditionVal_;
        } else {
          result.polRuleConditionVal_ = polRuleConditionValBuilder_.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 policy.Policy.PolicyRuleCondition) {
          return mergeFrom((policy.Policy.PolicyRuleCondition)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(policy.Policy.PolicyRuleCondition other) {
        if (other == policy.Policy.PolicyRuleCondition.getDefaultInstance()) return this;
        if (other.hasPolRuleConditionVar()) {
          mergePolRuleConditionVar(other.getPolRuleConditionVar());
        }
        if (other.hasPolRuleConditionVal()) {
          mergePolRuleConditionVal(other.getPolRuleConditionVal());
        }
        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 {
        policy.Policy.PolicyRuleCondition parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (policy.Policy.PolicyRuleCondition) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private policy.Policy.PolicyRuleVariable polRuleConditionVar_;
      private com.google.protobuf.SingleFieldBuilderV3<
          policy.Policy.PolicyRuleVariable, policy.Policy.PolicyRuleVariable.Builder, policy.Policy.PolicyRuleVariableOrBuilder> polRuleConditionVarBuilder_;
      /**
       * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
       * @return Whether the polRuleConditionVar field is set.
       */
      public boolean hasPolRuleConditionVar() {
        return polRuleConditionVarBuilder_ != null || polRuleConditionVar_ != null;
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
       * @return The polRuleConditionVar.
       */
      public policy.Policy.PolicyRuleVariable getPolRuleConditionVar() {
        if (polRuleConditionVarBuilder_ == null) {
          return polRuleConditionVar_ == null ? policy.Policy.PolicyRuleVariable.getDefaultInstance() : polRuleConditionVar_;
        } else {
          return polRuleConditionVarBuilder_.getMessage();
        }
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
       */
      public Builder setPolRuleConditionVar(policy.Policy.PolicyRuleVariable value) {
        if (polRuleConditionVarBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          polRuleConditionVar_ = value;
          onChanged();
        } else {
          polRuleConditionVarBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
       */
      public Builder setPolRuleConditionVar(
          policy.Policy.PolicyRuleVariable.Builder builderForValue) {
        if (polRuleConditionVarBuilder_ == null) {
          polRuleConditionVar_ = builderForValue.build();
          onChanged();
        } else {
          polRuleConditionVarBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
       */
      public Builder mergePolRuleConditionVar(policy.Policy.PolicyRuleVariable value) {
        if (polRuleConditionVarBuilder_ == null) {
          if (polRuleConditionVar_ != null) {
            polRuleConditionVar_ =
              policy.Policy.PolicyRuleVariable.newBuilder(polRuleConditionVar_).mergeFrom(value).buildPartial();
          } else {
            polRuleConditionVar_ = value;
          }
          onChanged();
        } else {
          polRuleConditionVarBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
       */
      public Builder clearPolRuleConditionVar() {
        if (polRuleConditionVarBuilder_ == null) {
          polRuleConditionVar_ = null;
          onChanged();
        } else {
          polRuleConditionVar_ = null;
          polRuleConditionVarBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
       */
      public policy.Policy.PolicyRuleVariable.Builder getPolRuleConditionVarBuilder() {
        
        onChanged();
        return getPolRuleConditionVarFieldBuilder().getBuilder();
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
       */
      public policy.Policy.PolicyRuleVariableOrBuilder getPolRuleConditionVarOrBuilder() {
        if (polRuleConditionVarBuilder_ != null) {
          return polRuleConditionVarBuilder_.getMessageOrBuilder();
        } else {
          return polRuleConditionVar_ == null ?
              policy.Policy.PolicyRuleVariable.getDefaultInstance() : polRuleConditionVar_;
        }
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleConditionVar = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          policy.Policy.PolicyRuleVariable, policy.Policy.PolicyRuleVariable.Builder, policy.Policy.PolicyRuleVariableOrBuilder> 
          getPolRuleConditionVarFieldBuilder() {
        if (polRuleConditionVarBuilder_ == null) {
          polRuleConditionVarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              policy.Policy.PolicyRuleVariable, policy.Policy.PolicyRuleVariable.Builder, policy.Policy.PolicyRuleVariableOrBuilder>(
                  getPolRuleConditionVar(),
                  getParentForChildren(),
                  isClean());
          polRuleConditionVar_ = null;
        }
        return polRuleConditionVarBuilder_;
      }

      private policy.Policy.PolicyRuleValue polRuleConditionVal_;
      private com.google.protobuf.SingleFieldBuilderV3<
          policy.Policy.PolicyRuleValue, policy.Policy.PolicyRuleValue.Builder, policy.Policy.PolicyRuleValueOrBuilder> polRuleConditionValBuilder_;
      /**
       * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
       * @return Whether the polRuleConditionVal field is set.
       */
      public boolean hasPolRuleConditionVal() {
        return polRuleConditionValBuilder_ != null || polRuleConditionVal_ != null;
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
       * @return The polRuleConditionVal.
       */
      public policy.Policy.PolicyRuleValue getPolRuleConditionVal() {
        if (polRuleConditionValBuilder_ == null) {
          return polRuleConditionVal_ == null ? policy.Policy.PolicyRuleValue.getDefaultInstance() : polRuleConditionVal_;
        } else {
          return polRuleConditionValBuilder_.getMessage();
        }
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
       */
      public Builder setPolRuleConditionVal(policy.Policy.PolicyRuleValue value) {
        if (polRuleConditionValBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          polRuleConditionVal_ = value;
          onChanged();
        } else {
          polRuleConditionValBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
       */
      public Builder setPolRuleConditionVal(
          policy.Policy.PolicyRuleValue.Builder builderForValue) {
        if (polRuleConditionValBuilder_ == null) {
          polRuleConditionVal_ = builderForValue.build();
          onChanged();
        } else {
          polRuleConditionValBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
       */
      public Builder mergePolRuleConditionVal(policy.Policy.PolicyRuleValue value) {
        if (polRuleConditionValBuilder_ == null) {
          if (polRuleConditionVal_ != null) {
            polRuleConditionVal_ =
              policy.Policy.PolicyRuleValue.newBuilder(polRuleConditionVal_).mergeFrom(value).buildPartial();
          } else {
            polRuleConditionVal_ = value;
          }
          onChanged();
        } else {
          polRuleConditionValBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
       */
      public Builder clearPolRuleConditionVal() {
        if (polRuleConditionValBuilder_ == null) {
          polRuleConditionVal_ = null;
          onChanged();
        } else {
          polRuleConditionVal_ = null;
          polRuleConditionValBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
       */
      public policy.Policy.PolicyRuleValue.Builder getPolRuleConditionValBuilder() {
        
        onChanged();
        return getPolRuleConditionValFieldBuilder().getBuilder();
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
       */
      public policy.Policy.PolicyRuleValueOrBuilder getPolRuleConditionValOrBuilder() {
        if (polRuleConditionValBuilder_ != null) {
          return polRuleConditionValBuilder_.getMessageOrBuilder();
        } else {
          return polRuleConditionVal_ == null ?
              policy.Policy.PolicyRuleValue.getDefaultInstance() : polRuleConditionVal_;
        }
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleConditionVal = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          policy.Policy.PolicyRuleValue, policy.Policy.PolicyRuleValue.Builder, policy.Policy.PolicyRuleValueOrBuilder> 
          getPolRuleConditionValFieldBuilder() {
        if (polRuleConditionValBuilder_ == null) {
          polRuleConditionValBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              policy.Policy.PolicyRuleValue, policy.Policy.PolicyRuleValue.Builder, policy.Policy.PolicyRuleValueOrBuilder>(
                  getPolRuleConditionVal(),
                  getParentForChildren(),
                  isClean());
          polRuleConditionVal_ = null;
        }
        return polRuleConditionValBuilder_;
      }
      @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:policy.PolicyRuleCondition)
    }

    // @@protoc_insertion_point(class_scope:policy.PolicyRuleCondition)
    private static final policy.Policy.PolicyRuleCondition DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new policy.Policy.PolicyRuleCondition();
    }

    public static policy.Policy.PolicyRuleCondition getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<PolicyRuleCondition>
        PARSER = new com.google.protobuf.AbstractParser<PolicyRuleCondition>() {
      @java.lang.Override
      public PolicyRuleCondition parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PolicyRuleCondition(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<PolicyRuleCondition> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<PolicyRuleCondition> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public policy.Policy.PolicyRuleCondition getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PolicyRuleActionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:policy.PolicyRuleAction)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
     * @return Whether the polRuleActionVar field is set.
     */
    boolean hasPolRuleActionVar();
    /**
     * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
     * @return The polRuleActionVar.
     */
    policy.Policy.PolicyRuleVariable getPolRuleActionVar();
    /**
     * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
     */
    policy.Policy.PolicyRuleVariableOrBuilder getPolRuleActionVarOrBuilder();

    /**
     * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
     * @return Whether the polRuleActionVal field is set.
     */
    boolean hasPolRuleActionVal();
    /**
     * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
     * @return The polRuleActionVal.
     */
    policy.Policy.PolicyRuleValue getPolRuleActionVal();
    /**
     * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
     */
    policy.Policy.PolicyRuleValueOrBuilder getPolRuleActionValOrBuilder();
  }
  /**
   * <pre>
   * Action
   * </pre>
   *
   * Protobuf type {@code policy.PolicyRuleAction}
   */
  public static final class PolicyRuleAction extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:policy.PolicyRuleAction)
      PolicyRuleActionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PolicyRuleAction.newBuilder() to construct.
    private PolicyRuleAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PolicyRuleAction() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PolicyRuleAction(
        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 10: {
              policy.Policy.PolicyRuleVariable.Builder subBuilder = null;
              if (polRuleActionVar_ != null) {
                subBuilder = polRuleActionVar_.toBuilder();
              }
              polRuleActionVar_ = input.readMessage(policy.Policy.PolicyRuleVariable.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(polRuleActionVar_);
                polRuleActionVar_ = subBuilder.buildPartial();
              }

              break;
            }
            case 18: {
              policy.Policy.PolicyRuleValue.Builder subBuilder = null;
              if (polRuleActionVal_ != null) {
                subBuilder = polRuleActionVal_.toBuilder();
              }
              polRuleActionVal_ = input.readMessage(policy.Policy.PolicyRuleValue.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(polRuleActionVal_);
                polRuleActionVal_ = 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 policy.Policy.internal_static_policy_PolicyRuleAction_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return policy.Policy.internal_static_policy_PolicyRuleAction_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              policy.Policy.PolicyRuleAction.class, policy.Policy.PolicyRuleAction.Builder.class);
    }

    public static final int POLRULEACTIONVAR_FIELD_NUMBER = 1;
    private policy.Policy.PolicyRuleVariable polRuleActionVar_;
    /**
     * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
     * @return Whether the polRuleActionVar field is set.
     */
    @java.lang.Override
    public boolean hasPolRuleActionVar() {
      return polRuleActionVar_ != null;
    }
    /**
     * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
     * @return The polRuleActionVar.
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleVariable getPolRuleActionVar() {
      return polRuleActionVar_ == null ? policy.Policy.PolicyRuleVariable.getDefaultInstance() : polRuleActionVar_;
    }
    /**
     * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleVariableOrBuilder getPolRuleActionVarOrBuilder() {
      return getPolRuleActionVar();
    }

    public static final int POLRULEACTIONVAL_FIELD_NUMBER = 2;
    private policy.Policy.PolicyRuleValue polRuleActionVal_;
    /**
     * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
     * @return Whether the polRuleActionVal field is set.
     */
    @java.lang.Override
    public boolean hasPolRuleActionVal() {
      return polRuleActionVal_ != null;
    }
    /**
     * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
     * @return The polRuleActionVal.
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleValue getPolRuleActionVal() {
      return polRuleActionVal_ == null ? policy.Policy.PolicyRuleValue.getDefaultInstance() : polRuleActionVal_;
    }
    /**
     * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleValueOrBuilder getPolRuleActionValOrBuilder() {
      return getPolRuleActionVal();
    }

    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 (polRuleActionVar_ != null) {
        output.writeMessage(1, getPolRuleActionVar());
      }
      if (polRuleActionVal_ != null) {
        output.writeMessage(2, getPolRuleActionVal());
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (polRuleActionVar_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getPolRuleActionVar());
      }
      if (polRuleActionVal_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, getPolRuleActionVal());
      }
      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 policy.Policy.PolicyRuleAction)) {
        return super.equals(obj);
      }
      policy.Policy.PolicyRuleAction other = (policy.Policy.PolicyRuleAction) obj;

      if (hasPolRuleActionVar() != other.hasPolRuleActionVar()) return false;
      if (hasPolRuleActionVar()) {
        if (!getPolRuleActionVar()
            .equals(other.getPolRuleActionVar())) return false;
      }
      if (hasPolRuleActionVal() != other.hasPolRuleActionVal()) return false;
      if (hasPolRuleActionVal()) {
        if (!getPolRuleActionVal()
            .equals(other.getPolRuleActionVal())) 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();
      if (hasPolRuleActionVar()) {
        hash = (37 * hash) + POLRULEACTIONVAR_FIELD_NUMBER;
        hash = (53 * hash) + getPolRuleActionVar().hashCode();
      }
      if (hasPolRuleActionVal()) {
        hash = (37 * hash) + POLRULEACTIONVAL_FIELD_NUMBER;
        hash = (53 * hash) + getPolRuleActionVal().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static policy.Policy.PolicyRuleAction parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleAction parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleAction parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleAction parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleAction parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleAction parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleAction parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleAction 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 policy.Policy.PolicyRuleAction parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleAction 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 policy.Policy.PolicyRuleAction parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleAction 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(policy.Policy.PolicyRuleAction 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;
    }
    /**
     * <pre>
     * Action
     * </pre>
     *
     * Protobuf type {@code policy.PolicyRuleAction}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:policy.PolicyRuleAction)
        policy.Policy.PolicyRuleActionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return policy.Policy.internal_static_policy_PolicyRuleAction_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return policy.Policy.internal_static_policy_PolicyRuleAction_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                policy.Policy.PolicyRuleAction.class, policy.Policy.PolicyRuleAction.Builder.class);
      }

      // Construct using policy.Policy.PolicyRuleAction.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();
        if (polRuleActionVarBuilder_ == null) {
          polRuleActionVar_ = null;
        } else {
          polRuleActionVar_ = null;
          polRuleActionVarBuilder_ = null;
        }
        if (polRuleActionValBuilder_ == null) {
          polRuleActionVal_ = null;
        } else {
          polRuleActionVal_ = null;
          polRuleActionValBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return policy.Policy.internal_static_policy_PolicyRuleAction_descriptor;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleAction getDefaultInstanceForType() {
        return policy.Policy.PolicyRuleAction.getDefaultInstance();
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleAction build() {
        policy.Policy.PolicyRuleAction result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleAction buildPartial() {
        policy.Policy.PolicyRuleAction result = new policy.Policy.PolicyRuleAction(this);
        if (polRuleActionVarBuilder_ == null) {
          result.polRuleActionVar_ = polRuleActionVar_;
        } else {
          result.polRuleActionVar_ = polRuleActionVarBuilder_.build();
        }
        if (polRuleActionValBuilder_ == null) {
          result.polRuleActionVal_ = polRuleActionVal_;
        } else {
          result.polRuleActionVal_ = polRuleActionValBuilder_.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 policy.Policy.PolicyRuleAction) {
          return mergeFrom((policy.Policy.PolicyRuleAction)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(policy.Policy.PolicyRuleAction other) {
        if (other == policy.Policy.PolicyRuleAction.getDefaultInstance()) return this;
        if (other.hasPolRuleActionVar()) {
          mergePolRuleActionVar(other.getPolRuleActionVar());
        }
        if (other.hasPolRuleActionVal()) {
          mergePolRuleActionVal(other.getPolRuleActionVal());
        }
        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 {
        policy.Policy.PolicyRuleAction parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (policy.Policy.PolicyRuleAction) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private policy.Policy.PolicyRuleVariable polRuleActionVar_;
      private com.google.protobuf.SingleFieldBuilderV3<
          policy.Policy.PolicyRuleVariable, policy.Policy.PolicyRuleVariable.Builder, policy.Policy.PolicyRuleVariableOrBuilder> polRuleActionVarBuilder_;
      /**
       * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
       * @return Whether the polRuleActionVar field is set.
       */
      public boolean hasPolRuleActionVar() {
        return polRuleActionVarBuilder_ != null || polRuleActionVar_ != null;
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
       * @return The polRuleActionVar.
       */
      public policy.Policy.PolicyRuleVariable getPolRuleActionVar() {
        if (polRuleActionVarBuilder_ == null) {
          return polRuleActionVar_ == null ? policy.Policy.PolicyRuleVariable.getDefaultInstance() : polRuleActionVar_;
        } else {
          return polRuleActionVarBuilder_.getMessage();
        }
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
       */
      public Builder setPolRuleActionVar(policy.Policy.PolicyRuleVariable value) {
        if (polRuleActionVarBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          polRuleActionVar_ = value;
          onChanged();
        } else {
          polRuleActionVarBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
       */
      public Builder setPolRuleActionVar(
          policy.Policy.PolicyRuleVariable.Builder builderForValue) {
        if (polRuleActionVarBuilder_ == null) {
          polRuleActionVar_ = builderForValue.build();
          onChanged();
        } else {
          polRuleActionVarBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
       */
      public Builder mergePolRuleActionVar(policy.Policy.PolicyRuleVariable value) {
        if (polRuleActionVarBuilder_ == null) {
          if (polRuleActionVar_ != null) {
            polRuleActionVar_ =
              policy.Policy.PolicyRuleVariable.newBuilder(polRuleActionVar_).mergeFrom(value).buildPartial();
          } else {
            polRuleActionVar_ = value;
          }
          onChanged();
        } else {
          polRuleActionVarBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
       */
      public Builder clearPolRuleActionVar() {
        if (polRuleActionVarBuilder_ == null) {
          polRuleActionVar_ = null;
          onChanged();
        } else {
          polRuleActionVar_ = null;
          polRuleActionVarBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
       */
      public policy.Policy.PolicyRuleVariable.Builder getPolRuleActionVarBuilder() {
        
        onChanged();
        return getPolRuleActionVarFieldBuilder().getBuilder();
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
       */
      public policy.Policy.PolicyRuleVariableOrBuilder getPolRuleActionVarOrBuilder() {
        if (polRuleActionVarBuilder_ != null) {
          return polRuleActionVarBuilder_.getMessageOrBuilder();
        } else {
          return polRuleActionVar_ == null ?
              policy.Policy.PolicyRuleVariable.getDefaultInstance() : polRuleActionVar_;
        }
      }
      /**
       * <code>.policy.PolicyRuleVariable polRuleActionVar = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          policy.Policy.PolicyRuleVariable, policy.Policy.PolicyRuleVariable.Builder, policy.Policy.PolicyRuleVariableOrBuilder> 
          getPolRuleActionVarFieldBuilder() {
        if (polRuleActionVarBuilder_ == null) {
          polRuleActionVarBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              policy.Policy.PolicyRuleVariable, policy.Policy.PolicyRuleVariable.Builder, policy.Policy.PolicyRuleVariableOrBuilder>(
                  getPolRuleActionVar(),
                  getParentForChildren(),
                  isClean());
          polRuleActionVar_ = null;
        }
        return polRuleActionVarBuilder_;
      }

      private policy.Policy.PolicyRuleValue polRuleActionVal_;
      private com.google.protobuf.SingleFieldBuilderV3<
          policy.Policy.PolicyRuleValue, policy.Policy.PolicyRuleValue.Builder, policy.Policy.PolicyRuleValueOrBuilder> polRuleActionValBuilder_;
      /**
       * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
       * @return Whether the polRuleActionVal field is set.
       */
      public boolean hasPolRuleActionVal() {
        return polRuleActionValBuilder_ != null || polRuleActionVal_ != null;
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
       * @return The polRuleActionVal.
       */
      public policy.Policy.PolicyRuleValue getPolRuleActionVal() {
        if (polRuleActionValBuilder_ == null) {
          return polRuleActionVal_ == null ? policy.Policy.PolicyRuleValue.getDefaultInstance() : polRuleActionVal_;
        } else {
          return polRuleActionValBuilder_.getMessage();
        }
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
       */
      public Builder setPolRuleActionVal(policy.Policy.PolicyRuleValue value) {
        if (polRuleActionValBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          polRuleActionVal_ = value;
          onChanged();
        } else {
          polRuleActionValBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
       */
      public Builder setPolRuleActionVal(
          policy.Policy.PolicyRuleValue.Builder builderForValue) {
        if (polRuleActionValBuilder_ == null) {
          polRuleActionVal_ = builderForValue.build();
          onChanged();
        } else {
          polRuleActionValBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
       */
      public Builder mergePolRuleActionVal(policy.Policy.PolicyRuleValue value) {
        if (polRuleActionValBuilder_ == null) {
          if (polRuleActionVal_ != null) {
            polRuleActionVal_ =
              policy.Policy.PolicyRuleValue.newBuilder(polRuleActionVal_).mergeFrom(value).buildPartial();
          } else {
            polRuleActionVal_ = value;
          }
          onChanged();
        } else {
          polRuleActionValBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
       */
      public Builder clearPolRuleActionVal() {
        if (polRuleActionValBuilder_ == null) {
          polRuleActionVal_ = null;
          onChanged();
        } else {
          polRuleActionVal_ = null;
          polRuleActionValBuilder_ = null;
        }

        return this;
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
       */
      public policy.Policy.PolicyRuleValue.Builder getPolRuleActionValBuilder() {
        
        onChanged();
        return getPolRuleActionValFieldBuilder().getBuilder();
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
       */
      public policy.Policy.PolicyRuleValueOrBuilder getPolRuleActionValOrBuilder() {
        if (polRuleActionValBuilder_ != null) {
          return polRuleActionValBuilder_.getMessageOrBuilder();
        } else {
          return polRuleActionVal_ == null ?
              policy.Policy.PolicyRuleValue.getDefaultInstance() : polRuleActionVal_;
        }
      }
      /**
       * <code>.policy.PolicyRuleValue polRuleActionVal = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          policy.Policy.PolicyRuleValue, policy.Policy.PolicyRuleValue.Builder, policy.Policy.PolicyRuleValueOrBuilder> 
          getPolRuleActionValFieldBuilder() {
        if (polRuleActionValBuilder_ == null) {
          polRuleActionValBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              policy.Policy.PolicyRuleValue, policy.Policy.PolicyRuleValue.Builder, policy.Policy.PolicyRuleValueOrBuilder>(
                  getPolRuleActionVal(),
                  getParentForChildren(),
                  isClean());
          polRuleActionVal_ = null;
        }
        return polRuleActionValBuilder_;
      }
      @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:policy.PolicyRuleAction)
    }

    // @@protoc_insertion_point(class_scope:policy.PolicyRuleAction)
    private static final policy.Policy.PolicyRuleAction DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new policy.Policy.PolicyRuleAction();
    }

    public static policy.Policy.PolicyRuleAction getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<PolicyRuleAction>
        PARSER = new com.google.protobuf.AbstractParser<PolicyRuleAction>() {
      @java.lang.Override
      public PolicyRuleAction parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PolicyRuleAction(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<PolicyRuleAction> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<PolicyRuleAction> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public policy.Policy.PolicyRuleAction getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PolicyRuleOrBuilder extends
      // @@protoc_insertion_point(interface_extends:policy.PolicyRule)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * Basic policy rule attributes
     * </pre>
     *
     * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
     * @return Whether the policyRuleId field is set.
     */
    boolean hasPolicyRuleId();
    /**
     * <pre>
     * Basic policy rule attributes
     * </pre>
     *
     * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
     * @return The policyRuleId.
     */
    policy.Policy.PolicyRuleId getPolicyRuleId();
    /**
     * <pre>
     * Basic policy rule attributes
     * </pre>
     *
     * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
     */
    policy.Policy.PolicyRuleIdOrBuilder getPolicyRuleIdOrBuilder();

    /**
     * <code>.policy.PolicyRuleType policyRuleType = 2;</code>
     * @return The enum numeric value on the wire for policyRuleType.
     */
    int getPolicyRuleTypeValue();
    /**
     * <code>.policy.PolicyRuleType policyRuleType = 2;</code>
     * @return The policyRuleType.
     */
    policy.Policy.PolicyRuleType getPolicyRuleType();

    /**
     * <code>uint32 PolicyRulePriority = 3;</code>
     * @return The policyRulePriority.
     */
    int getPolicyRulePriority();

    /**
     * <pre>
     * Event-Condition-Action model
     * </pre>
     *
     * <code>.policy.PolicyRuleEvent event = 4;</code>
     * @return Whether the event field is set.
     */
    boolean hasEvent();
    /**
     * <pre>
     * Event-Condition-Action model
     * </pre>
     *
     * <code>.policy.PolicyRuleEvent event = 4;</code>
     * @return The event.
     */
    policy.Policy.PolicyRuleEvent getEvent();
    /**
     * <pre>
     * Event-Condition-Action model
     * </pre>
     *
     * <code>.policy.PolicyRuleEvent event = 4;</code>
     */
    policy.Policy.PolicyRuleEventOrBuilder getEventOrBuilder();

    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
     */
    java.util.List<policy.Policy.PolicyRuleCondition> 
        getPolRuleConditionListList();
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
     */
    policy.Policy.PolicyRuleCondition getPolRuleConditionList(int index);
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
     */
    int getPolRuleConditionListCount();
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
     */
    java.util.List<? extends policy.Policy.PolicyRuleConditionOrBuilder> 
        getPolRuleConditionListOrBuilderList();
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
     */
    policy.Policy.PolicyRuleConditionOrBuilder getPolRuleConditionListOrBuilder(
        int index);

    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
     */
    java.util.List<policy.Policy.PolicyRuleAction> 
        getPolRuleActionListList();
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
     */
    policy.Policy.PolicyRuleAction getPolRuleActionList(int index);
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
     */
    int getPolRuleActionListCount();
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
     */
    java.util.List<? extends policy.Policy.PolicyRuleActionOrBuilder> 
        getPolRuleActionListOrBuilderList();
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
     */
    policy.Policy.PolicyRuleActionOrBuilder getPolRuleActionListOrBuilder(
        int index);

    /**
     * <pre>
     * Affected services and devices
     * </pre>
     *
     * <code>repeated .context.ServiceId serviceList = 7;</code>
     */
    java.util.List<context.ContextOuterClass.ServiceId> 
        getServiceListList();
    /**
     * <pre>
     * Affected services and devices
     * </pre>
     *
     * <code>repeated .context.ServiceId serviceList = 7;</code>
     */
    context.ContextOuterClass.ServiceId getServiceList(int index);
    /**
     * <pre>
     * Affected services and devices
     * </pre>
     *
     * <code>repeated .context.ServiceId serviceList = 7;</code>
     */
    int getServiceListCount();
    /**
     * <pre>
     * Affected services and devices
     * </pre>
     *
     * <code>repeated .context.ServiceId serviceList = 7;</code>
     */
    java.util.List<? extends context.ContextOuterClass.ServiceIdOrBuilder> 
        getServiceListOrBuilderList();
    /**
     * <pre>
     * Affected services and devices
     * </pre>
     *
     * <code>repeated .context.ServiceId serviceList = 7;</code>
     */
    context.ContextOuterClass.ServiceIdOrBuilder getServiceListOrBuilder(
        int index);

    /**
     * <code>repeated .context.DeviceId deviceList = 8;</code>
     */
    java.util.List<context.ContextOuterClass.DeviceId> 
        getDeviceListList();
    /**
     * <code>repeated .context.DeviceId deviceList = 8;</code>
     */
    context.ContextOuterClass.DeviceId getDeviceList(int index);
    /**
     * <code>repeated .context.DeviceId deviceList = 8;</code>
     */
    int getDeviceListCount();
    /**
     * <code>repeated .context.DeviceId deviceList = 8;</code>
     */
    java.util.List<? extends context.ContextOuterClass.DeviceIdOrBuilder> 
        getDeviceListOrBuilderList();
    /**
     * <code>repeated .context.DeviceId deviceList = 8;</code>
     */
    context.ContextOuterClass.DeviceIdOrBuilder getDeviceListOrBuilder(
        int index);
  }
  /**
   * <pre>
   * Policy rule partially complies with IETF’s:
   *     RFC 3060: https://datatracker.ietf.org/doc/html/rfc3060
   *     RFC 3460: https://datatracker.ietf.org/doc/html/rfc3460
   * Enhanced with a policy rule event according to the ECA model
   * </pre>
   *
   * Protobuf type {@code policy.PolicyRule}
   */
  public static final class PolicyRule extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:policy.PolicyRule)
      PolicyRuleOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PolicyRule.newBuilder() to construct.
    private PolicyRule(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PolicyRule() {
      policyRuleType_ = 0;
      polRuleConditionList_ = java.util.Collections.emptyList();
      polRuleActionList_ = java.util.Collections.emptyList();
      serviceList_ = java.util.Collections.emptyList();
      deviceList_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PolicyRule(
        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: {
              policy.Policy.PolicyRuleId.Builder subBuilder = null;
              if (policyRuleId_ != null) {
                subBuilder = policyRuleId_.toBuilder();
              }
              policyRuleId_ = input.readMessage(policy.Policy.PolicyRuleId.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(policyRuleId_);
                policyRuleId_ = subBuilder.buildPartial();
              }

              break;
            }
            case 16: {
              int rawValue = input.readEnum();

              policyRuleType_ = rawValue;
              break;
            }
            case 24: {

              policyRulePriority_ = input.readUInt32();
              break;
            }
            case 34: {
              policy.Policy.PolicyRuleEvent.Builder subBuilder = null;
              if (event_ != null) {
                subBuilder = event_.toBuilder();
              }
              event_ = input.readMessage(policy.Policy.PolicyRuleEvent.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(event_);
                event_ = subBuilder.buildPartial();
              }

              break;
            }
            case 42: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                polRuleConditionList_ = new java.util.ArrayList<policy.Policy.PolicyRuleCondition>();
                mutable_bitField0_ |= 0x00000001;
              }
              polRuleConditionList_.add(
                  input.readMessage(policy.Policy.PolicyRuleCondition.parser(), extensionRegistry));
              break;
            }
            case 50: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                polRuleActionList_ = new java.util.ArrayList<policy.Policy.PolicyRuleAction>();
                mutable_bitField0_ |= 0x00000002;
              }
              polRuleActionList_.add(
                  input.readMessage(policy.Policy.PolicyRuleAction.parser(), extensionRegistry));
              break;
            }
            case 58: {
              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                serviceList_ = new java.util.ArrayList<context.ContextOuterClass.ServiceId>();
                mutable_bitField0_ |= 0x00000004;
              }
              serviceList_.add(
                  input.readMessage(context.ContextOuterClass.ServiceId.parser(), extensionRegistry));
              break;
            }
            case 66: {
              if (!((mutable_bitField0_ & 0x00000008) != 0)) {
                deviceList_ = new java.util.ArrayList<context.ContextOuterClass.DeviceId>();
                mutable_bitField0_ |= 0x00000008;
              }
              deviceList_.add(
                  input.readMessage(context.ContextOuterClass.DeviceId.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)) {
          polRuleConditionList_ = java.util.Collections.unmodifiableList(polRuleConditionList_);
        }
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          polRuleActionList_ = java.util.Collections.unmodifiableList(polRuleActionList_);
        }
        if (((mutable_bitField0_ & 0x00000004) != 0)) {
          serviceList_ = java.util.Collections.unmodifiableList(serviceList_);
        }
        if (((mutable_bitField0_ & 0x00000008) != 0)) {
          deviceList_ = java.util.Collections.unmodifiableList(deviceList_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return policy.Policy.internal_static_policy_PolicyRule_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return policy.Policy.internal_static_policy_PolicyRule_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              policy.Policy.PolicyRule.class, policy.Policy.PolicyRule.Builder.class);
    }

    public static final int POLICYRULEID_FIELD_NUMBER = 1;
    private policy.Policy.PolicyRuleId policyRuleId_;
    /**
     * <pre>
     * Basic policy rule attributes
     * </pre>
     *
     * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
     * @return Whether the policyRuleId field is set.
     */
    @java.lang.Override
    public boolean hasPolicyRuleId() {
      return policyRuleId_ != null;
    }
    /**
     * <pre>
     * Basic policy rule attributes
     * </pre>
     *
     * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
     * @return The policyRuleId.
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleId getPolicyRuleId() {
      return policyRuleId_ == null ? policy.Policy.PolicyRuleId.getDefaultInstance() : policyRuleId_;
    }
    /**
     * <pre>
     * Basic policy rule attributes
     * </pre>
     *
     * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleIdOrBuilder getPolicyRuleIdOrBuilder() {
      return getPolicyRuleId();
    }

    public static final int POLICYRULETYPE_FIELD_NUMBER = 2;
    private int policyRuleType_;
    /**
     * <code>.policy.PolicyRuleType policyRuleType = 2;</code>
     * @return The enum numeric value on the wire for policyRuleType.
     */
    @java.lang.Override public int getPolicyRuleTypeValue() {
      return policyRuleType_;
    }
    /**
     * <code>.policy.PolicyRuleType policyRuleType = 2;</code>
     * @return The policyRuleType.
     */
    @java.lang.Override public policy.Policy.PolicyRuleType getPolicyRuleType() {
      @SuppressWarnings("deprecation")
      policy.Policy.PolicyRuleType result = policy.Policy.PolicyRuleType.valueOf(policyRuleType_);
      return result == null ? policy.Policy.PolicyRuleType.UNRECOGNIZED : result;
    }

    public static final int POLICYRULEPRIORITY_FIELD_NUMBER = 3;
    private int policyRulePriority_;
    /**
     * <code>uint32 PolicyRulePriority = 3;</code>
     * @return The policyRulePriority.
     */
    @java.lang.Override
    public int getPolicyRulePriority() {
      return policyRulePriority_;
    }

    public static final int EVENT_FIELD_NUMBER = 4;
    private policy.Policy.PolicyRuleEvent event_;
    /**
     * <pre>
     * Event-Condition-Action model
     * </pre>
     *
     * <code>.policy.PolicyRuleEvent event = 4;</code>
     * @return Whether the event field is set.
     */
    @java.lang.Override
    public boolean hasEvent() {
      return event_ != null;
    }
    /**
     * <pre>
     * Event-Condition-Action model
     * </pre>
     *
     * <code>.policy.PolicyRuleEvent event = 4;</code>
     * @return The event.
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleEvent getEvent() {
      return event_ == null ? policy.Policy.PolicyRuleEvent.getDefaultInstance() : event_;
    }
    /**
     * <pre>
     * Event-Condition-Action model
     * </pre>
     *
     * <code>.policy.PolicyRuleEvent event = 4;</code>
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleEventOrBuilder getEventOrBuilder() {
      return getEvent();
    }

    public static final int POLRULECONDITIONLIST_FIELD_NUMBER = 5;
    private java.util.List<policy.Policy.PolicyRuleCondition> polRuleConditionList_;
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
     */
    @java.lang.Override
    public java.util.List<policy.Policy.PolicyRuleCondition> getPolRuleConditionListList() {
      return polRuleConditionList_;
    }
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
     */
    @java.lang.Override
    public java.util.List<? extends policy.Policy.PolicyRuleConditionOrBuilder> 
        getPolRuleConditionListOrBuilderList() {
      return polRuleConditionList_;
    }
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
     */
    @java.lang.Override
    public int getPolRuleConditionListCount() {
      return polRuleConditionList_.size();
    }
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleCondition getPolRuleConditionList(int index) {
      return polRuleConditionList_.get(index);
    }
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleConditionOrBuilder getPolRuleConditionListOrBuilder(
        int index) {
      return polRuleConditionList_.get(index);
    }

    public static final int POLRULEACTIONLIST_FIELD_NUMBER = 6;
    private java.util.List<policy.Policy.PolicyRuleAction> polRuleActionList_;
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
     */
    @java.lang.Override
    public java.util.List<policy.Policy.PolicyRuleAction> getPolRuleActionListList() {
      return polRuleActionList_;
    }
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
     */
    @java.lang.Override
    public java.util.List<? extends policy.Policy.PolicyRuleActionOrBuilder> 
        getPolRuleActionListOrBuilderList() {
      return polRuleActionList_;
    }
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
     */
    @java.lang.Override
    public int getPolRuleActionListCount() {
      return polRuleActionList_.size();
    }
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleAction getPolRuleActionList(int index) {
      return polRuleActionList_.get(index);
    }
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleActionOrBuilder getPolRuleActionListOrBuilder(
        int index) {
      return polRuleActionList_.get(index);
    }

    public static final int SERVICELIST_FIELD_NUMBER = 7;
    private java.util.List<context.ContextOuterClass.ServiceId> serviceList_;
    /**
     * <pre>
     * Affected services and devices
     * </pre>
     *
     * <code>repeated .context.ServiceId serviceList = 7;</code>
     */
    @java.lang.Override
    public java.util.List<context.ContextOuterClass.ServiceId> getServiceListList() {
      return serviceList_;
    }
    /**
     * <pre>
     * Affected services and devices
     * </pre>
     *
     * <code>repeated .context.ServiceId serviceList = 7;</code>
     */
    @java.lang.Override
    public java.util.List<? extends context.ContextOuterClass.ServiceIdOrBuilder> 
        getServiceListOrBuilderList() {
      return serviceList_;
    }
    /**
     * <pre>
     * Affected services and devices
     * </pre>
     *
     * <code>repeated .context.ServiceId serviceList = 7;</code>
     */
    @java.lang.Override
    public int getServiceListCount() {
      return serviceList_.size();
    }
    /**
     * <pre>
     * Affected services and devices
     * </pre>
     *
     * <code>repeated .context.ServiceId serviceList = 7;</code>
     */
    @java.lang.Override
    public context.ContextOuterClass.ServiceId getServiceList(int index) {
      return serviceList_.get(index);
    }
    /**
     * <pre>
     * Affected services and devices
     * </pre>
     *
     * <code>repeated .context.ServiceId serviceList = 7;</code>
     */
    @java.lang.Override
    public context.ContextOuterClass.ServiceIdOrBuilder getServiceListOrBuilder(
        int index) {
      return serviceList_.get(index);
    }

    public static final int DEVICELIST_FIELD_NUMBER = 8;
    private java.util.List<context.ContextOuterClass.DeviceId> deviceList_;
    /**
     * <code>repeated .context.DeviceId deviceList = 8;</code>
     */
    @java.lang.Override
    public java.util.List<context.ContextOuterClass.DeviceId> getDeviceListList() {
      return deviceList_;
    }
    /**
     * <code>repeated .context.DeviceId deviceList = 8;</code>
     */
    @java.lang.Override
    public java.util.List<? extends context.ContextOuterClass.DeviceIdOrBuilder> 
        getDeviceListOrBuilderList() {
      return deviceList_;
    }
    /**
     * <code>repeated .context.DeviceId deviceList = 8;</code>
     */
    @java.lang.Override
    public int getDeviceListCount() {
      return deviceList_.size();
    }
    /**
     * <code>repeated .context.DeviceId deviceList = 8;</code>
     */
    @java.lang.Override
    public context.ContextOuterClass.DeviceId getDeviceList(int index) {
      return deviceList_.get(index);
    }
    /**
     * <code>repeated .context.DeviceId deviceList = 8;</code>
     */
    @java.lang.Override
    public context.ContextOuterClass.DeviceIdOrBuilder getDeviceListOrBuilder(
        int index) {
      return deviceList_.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 (policyRuleId_ != null) {
        output.writeMessage(1, getPolicyRuleId());
      }
      if (policyRuleType_ != policy.Policy.PolicyRuleType.POLICYTYPE_DEVICE.getNumber()) {
        output.writeEnum(2, policyRuleType_);
      }
      if (policyRulePriority_ != 0) {
        output.writeUInt32(3, policyRulePriority_);
      }
      if (event_ != null) {
        output.writeMessage(4, getEvent());
      }
      for (int i = 0; i < polRuleConditionList_.size(); i++) {
        output.writeMessage(5, polRuleConditionList_.get(i));
      }
      for (int i = 0; i < polRuleActionList_.size(); i++) {
        output.writeMessage(6, polRuleActionList_.get(i));
      }
      for (int i = 0; i < serviceList_.size(); i++) {
        output.writeMessage(7, serviceList_.get(i));
      }
      for (int i = 0; i < deviceList_.size(); i++) {
        output.writeMessage(8, deviceList_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (policyRuleId_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, getPolicyRuleId());
      }
      if (policyRuleType_ != policy.Policy.PolicyRuleType.POLICYTYPE_DEVICE.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(2, policyRuleType_);
      }
      if (policyRulePriority_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(3, policyRulePriority_);
      }
      if (event_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, getEvent());
      }
      for (int i = 0; i < polRuleConditionList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, polRuleConditionList_.get(i));
      }
      for (int i = 0; i < polRuleActionList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, polRuleActionList_.get(i));
      }
      for (int i = 0; i < serviceList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, serviceList_.get(i));
      }
      for (int i = 0; i < deviceList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, deviceList_.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 policy.Policy.PolicyRule)) {
        return super.equals(obj);
      }
      policy.Policy.PolicyRule other = (policy.Policy.PolicyRule) obj;

      if (hasPolicyRuleId() != other.hasPolicyRuleId()) return false;
      if (hasPolicyRuleId()) {
        if (!getPolicyRuleId()
            .equals(other.getPolicyRuleId())) return false;
      }
      if (policyRuleType_ != other.policyRuleType_) return false;
      if (getPolicyRulePriority()
          != other.getPolicyRulePriority()) return false;
      if (hasEvent() != other.hasEvent()) return false;
      if (hasEvent()) {
        if (!getEvent()
            .equals(other.getEvent())) return false;
      }
      if (!getPolRuleConditionListList()
          .equals(other.getPolRuleConditionListList())) return false;
      if (!getPolRuleActionListList()
          .equals(other.getPolRuleActionListList())) return false;
      if (!getServiceListList()
          .equals(other.getServiceListList())) return false;
      if (!getDeviceListList()
          .equals(other.getDeviceListList())) 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();
      if (hasPolicyRuleId()) {
        hash = (37 * hash) + POLICYRULEID_FIELD_NUMBER;
        hash = (53 * hash) + getPolicyRuleId().hashCode();
      }
      hash = (37 * hash) + POLICYRULETYPE_FIELD_NUMBER;
      hash = (53 * hash) + policyRuleType_;
      hash = (37 * hash) + POLICYRULEPRIORITY_FIELD_NUMBER;
      hash = (53 * hash) + getPolicyRulePriority();
      if (hasEvent()) {
        hash = (37 * hash) + EVENT_FIELD_NUMBER;
        hash = (53 * hash) + getEvent().hashCode();
      }
      if (getPolRuleConditionListCount() > 0) {
        hash = (37 * hash) + POLRULECONDITIONLIST_FIELD_NUMBER;
        hash = (53 * hash) + getPolRuleConditionListList().hashCode();
      }
      if (getPolRuleActionListCount() > 0) {
        hash = (37 * hash) + POLRULEACTIONLIST_FIELD_NUMBER;
        hash = (53 * hash) + getPolRuleActionListList().hashCode();
      }
      if (getServiceListCount() > 0) {
        hash = (37 * hash) + SERVICELIST_FIELD_NUMBER;
        hash = (53 * hash) + getServiceListList().hashCode();
      }
      if (getDeviceListCount() > 0) {
        hash = (37 * hash) + DEVICELIST_FIELD_NUMBER;
        hash = (53 * hash) + getDeviceListList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static policy.Policy.PolicyRule parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRule parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRule parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRule parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRule parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRule parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRule parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRule 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 policy.Policy.PolicyRule parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRule 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 policy.Policy.PolicyRule parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRule 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(policy.Policy.PolicyRule 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;
    }
    /**
     * <pre>
     * Policy rule partially complies with IETF’s:
     *     RFC 3060: https://datatracker.ietf.org/doc/html/rfc3060
     *     RFC 3460: https://datatracker.ietf.org/doc/html/rfc3460
     * Enhanced with a policy rule event according to the ECA model
     * </pre>
     *
     * Protobuf type {@code policy.PolicyRule}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:policy.PolicyRule)
        policy.Policy.PolicyRuleOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return policy.Policy.internal_static_policy_PolicyRule_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return policy.Policy.internal_static_policy_PolicyRule_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                policy.Policy.PolicyRule.class, policy.Policy.PolicyRule.Builder.class);
      }

      // Construct using policy.Policy.PolicyRule.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getPolRuleConditionListFieldBuilder();
          getPolRuleActionListFieldBuilder();
          getServiceListFieldBuilder();
          getDeviceListFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (policyRuleIdBuilder_ == null) {
          policyRuleId_ = null;
        } else {
          policyRuleId_ = null;
          policyRuleIdBuilder_ = null;
        }
        policyRuleType_ = 0;

        policyRulePriority_ = 0;

        if (eventBuilder_ == null) {
          event_ = null;
        } else {
          event_ = null;
          eventBuilder_ = null;
        }
        if (polRuleConditionListBuilder_ == null) {
          polRuleConditionList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          polRuleConditionListBuilder_.clear();
        }
        if (polRuleActionListBuilder_ == null) {
          polRuleActionList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          polRuleActionListBuilder_.clear();
        }
        if (serviceListBuilder_ == null) {
          serviceList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } else {
          serviceListBuilder_.clear();
        }
        if (deviceListBuilder_ == null) {
          deviceList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
        } else {
          deviceListBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return policy.Policy.internal_static_policy_PolicyRule_descriptor;
      }

      @java.lang.Override
      public policy.Policy.PolicyRule getDefaultInstanceForType() {
        return policy.Policy.PolicyRule.getDefaultInstance();
      }

      @java.lang.Override
      public policy.Policy.PolicyRule build() {
        policy.Policy.PolicyRule result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public policy.Policy.PolicyRule buildPartial() {
        policy.Policy.PolicyRule result = new policy.Policy.PolicyRule(this);
        int from_bitField0_ = bitField0_;
        if (policyRuleIdBuilder_ == null) {
          result.policyRuleId_ = policyRuleId_;
        } else {
          result.policyRuleId_ = policyRuleIdBuilder_.build();
        }
        result.policyRuleType_ = policyRuleType_;
        result.policyRulePriority_ = policyRulePriority_;
        if (eventBuilder_ == null) {
          result.event_ = event_;
        } else {
          result.event_ = eventBuilder_.build();
        }
        if (polRuleConditionListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            polRuleConditionList_ = java.util.Collections.unmodifiableList(polRuleConditionList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.polRuleConditionList_ = polRuleConditionList_;
        } else {
          result.polRuleConditionList_ = polRuleConditionListBuilder_.build();
        }
        if (polRuleActionListBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            polRuleActionList_ = java.util.Collections.unmodifiableList(polRuleActionList_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.polRuleActionList_ = polRuleActionList_;
        } else {
          result.polRuleActionList_ = polRuleActionListBuilder_.build();
        }
        if (serviceListBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            serviceList_ = java.util.Collections.unmodifiableList(serviceList_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          result.serviceList_ = serviceList_;
        } else {
          result.serviceList_ = serviceListBuilder_.build();
        }
        if (deviceListBuilder_ == null) {
          if (((bitField0_ & 0x00000008) != 0)) {
            deviceList_ = java.util.Collections.unmodifiableList(deviceList_);
            bitField0_ = (bitField0_ & ~0x00000008);
          }
          result.deviceList_ = deviceList_;
        } else {
          result.deviceList_ = deviceListBuilder_.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 policy.Policy.PolicyRule) {
          return mergeFrom((policy.Policy.PolicyRule)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(policy.Policy.PolicyRule other) {
        if (other == policy.Policy.PolicyRule.getDefaultInstance()) return this;
        if (other.hasPolicyRuleId()) {
          mergePolicyRuleId(other.getPolicyRuleId());
        }
        if (other.policyRuleType_ != 0) {
          setPolicyRuleTypeValue(other.getPolicyRuleTypeValue());
        }
        if (other.getPolicyRulePriority() != 0) {
          setPolicyRulePriority(other.getPolicyRulePriority());
        }
        if (other.hasEvent()) {
          mergeEvent(other.getEvent());
        }
        if (polRuleConditionListBuilder_ == null) {
          if (!other.polRuleConditionList_.isEmpty()) {
            if (polRuleConditionList_.isEmpty()) {
              polRuleConditionList_ = other.polRuleConditionList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensurePolRuleConditionListIsMutable();
              polRuleConditionList_.addAll(other.polRuleConditionList_);
            }
            onChanged();
          }
        } else {
          if (!other.polRuleConditionList_.isEmpty()) {
            if (polRuleConditionListBuilder_.isEmpty()) {
              polRuleConditionListBuilder_.dispose();
              polRuleConditionListBuilder_ = null;
              polRuleConditionList_ = other.polRuleConditionList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              polRuleConditionListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getPolRuleConditionListFieldBuilder() : null;
            } else {
              polRuleConditionListBuilder_.addAllMessages(other.polRuleConditionList_);
            }
          }
        }
        if (polRuleActionListBuilder_ == null) {
          if (!other.polRuleActionList_.isEmpty()) {
            if (polRuleActionList_.isEmpty()) {
              polRuleActionList_ = other.polRuleActionList_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensurePolRuleActionListIsMutable();
              polRuleActionList_.addAll(other.polRuleActionList_);
            }
            onChanged();
          }
        } else {
          if (!other.polRuleActionList_.isEmpty()) {
            if (polRuleActionListBuilder_.isEmpty()) {
              polRuleActionListBuilder_.dispose();
              polRuleActionListBuilder_ = null;
              polRuleActionList_ = other.polRuleActionList_;
              bitField0_ = (bitField0_ & ~0x00000002);
              polRuleActionListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getPolRuleActionListFieldBuilder() : null;
            } else {
              polRuleActionListBuilder_.addAllMessages(other.polRuleActionList_);
            }
          }
        }
        if (serviceListBuilder_ == null) {
          if (!other.serviceList_.isEmpty()) {
            if (serviceList_.isEmpty()) {
              serviceList_ = other.serviceList_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureServiceListIsMutable();
              serviceList_.addAll(other.serviceList_);
            }
            onChanged();
          }
        } else {
          if (!other.serviceList_.isEmpty()) {
            if (serviceListBuilder_.isEmpty()) {
              serviceListBuilder_.dispose();
              serviceListBuilder_ = null;
              serviceList_ = other.serviceList_;
              bitField0_ = (bitField0_ & ~0x00000004);
              serviceListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getServiceListFieldBuilder() : null;
            } else {
              serviceListBuilder_.addAllMessages(other.serviceList_);
            }
          }
        }
        if (deviceListBuilder_ == null) {
          if (!other.deviceList_.isEmpty()) {
            if (deviceList_.isEmpty()) {
              deviceList_ = other.deviceList_;
              bitField0_ = (bitField0_ & ~0x00000008);
            } else {
              ensureDeviceListIsMutable();
              deviceList_.addAll(other.deviceList_);
            }
            onChanged();
          }
        } else {
          if (!other.deviceList_.isEmpty()) {
            if (deviceListBuilder_.isEmpty()) {
              deviceListBuilder_.dispose();
              deviceListBuilder_ = null;
              deviceList_ = other.deviceList_;
              bitField0_ = (bitField0_ & ~0x00000008);
              deviceListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getDeviceListFieldBuilder() : null;
            } else {
              deviceListBuilder_.addAllMessages(other.deviceList_);
            }
          }
        }
        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 {
        policy.Policy.PolicyRule parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (policy.Policy.PolicyRule) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private policy.Policy.PolicyRuleId policyRuleId_;
      private com.google.protobuf.SingleFieldBuilderV3<
          policy.Policy.PolicyRuleId, policy.Policy.PolicyRuleId.Builder, policy.Policy.PolicyRuleIdOrBuilder> policyRuleIdBuilder_;
      /**
       * <pre>
       * Basic policy rule attributes
       * </pre>
       *
       * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
       * @return Whether the policyRuleId field is set.
       */
      public boolean hasPolicyRuleId() {
        return policyRuleIdBuilder_ != null || policyRuleId_ != null;
      }
      /**
       * <pre>
       * Basic policy rule attributes
       * </pre>
       *
       * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
       * @return The policyRuleId.
       */
      public policy.Policy.PolicyRuleId getPolicyRuleId() {
        if (policyRuleIdBuilder_ == null) {
          return policyRuleId_ == null ? policy.Policy.PolicyRuleId.getDefaultInstance() : policyRuleId_;
        } else {
          return policyRuleIdBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * Basic policy rule attributes
       * </pre>
       *
       * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
       */
      public Builder setPolicyRuleId(policy.Policy.PolicyRuleId value) {
        if (policyRuleIdBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          policyRuleId_ = value;
          onChanged();
        } else {
          policyRuleIdBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       * Basic policy rule attributes
       * </pre>
       *
       * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
       */
      public Builder setPolicyRuleId(
          policy.Policy.PolicyRuleId.Builder builderForValue) {
        if (policyRuleIdBuilder_ == null) {
          policyRuleId_ = builderForValue.build();
          onChanged();
        } else {
          policyRuleIdBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       * Basic policy rule attributes
       * </pre>
       *
       * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
       */
      public Builder mergePolicyRuleId(policy.Policy.PolicyRuleId value) {
        if (policyRuleIdBuilder_ == null) {
          if (policyRuleId_ != null) {
            policyRuleId_ =
              policy.Policy.PolicyRuleId.newBuilder(policyRuleId_).mergeFrom(value).buildPartial();
          } else {
            policyRuleId_ = value;
          }
          onChanged();
        } else {
          policyRuleIdBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       * Basic policy rule attributes
       * </pre>
       *
       * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
       */
      public Builder clearPolicyRuleId() {
        if (policyRuleIdBuilder_ == null) {
          policyRuleId_ = null;
          onChanged();
        } else {
          policyRuleId_ = null;
          policyRuleIdBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       * Basic policy rule attributes
       * </pre>
       *
       * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
       */
      public policy.Policy.PolicyRuleId.Builder getPolicyRuleIdBuilder() {
        
        onChanged();
        return getPolicyRuleIdFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Basic policy rule attributes
       * </pre>
       *
       * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
       */
      public policy.Policy.PolicyRuleIdOrBuilder getPolicyRuleIdOrBuilder() {
        if (policyRuleIdBuilder_ != null) {
          return policyRuleIdBuilder_.getMessageOrBuilder();
        } else {
          return policyRuleId_ == null ?
              policy.Policy.PolicyRuleId.getDefaultInstance() : policyRuleId_;
        }
      }
      /**
       * <pre>
       * Basic policy rule attributes
       * </pre>
       *
       * <code>.policy.PolicyRuleId policyRuleId = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          policy.Policy.PolicyRuleId, policy.Policy.PolicyRuleId.Builder, policy.Policy.PolicyRuleIdOrBuilder> 
          getPolicyRuleIdFieldBuilder() {
        if (policyRuleIdBuilder_ == null) {
          policyRuleIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              policy.Policy.PolicyRuleId, policy.Policy.PolicyRuleId.Builder, policy.Policy.PolicyRuleIdOrBuilder>(
                  getPolicyRuleId(),
                  getParentForChildren(),
                  isClean());
          policyRuleId_ = null;
        }
        return policyRuleIdBuilder_;
      }

      private int policyRuleType_ = 0;
      /**
       * <code>.policy.PolicyRuleType policyRuleType = 2;</code>
       * @return The enum numeric value on the wire for policyRuleType.
       */
      @java.lang.Override public int getPolicyRuleTypeValue() {
        return policyRuleType_;
      }
      /**
       * <code>.policy.PolicyRuleType policyRuleType = 2;</code>
       * @param value The enum numeric value on the wire for policyRuleType to set.
       * @return This builder for chaining.
       */
      public Builder setPolicyRuleTypeValue(int value) {
        
        policyRuleType_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>.policy.PolicyRuleType policyRuleType = 2;</code>
       * @return The policyRuleType.
       */
      @java.lang.Override
      public policy.Policy.PolicyRuleType getPolicyRuleType() {
        @SuppressWarnings("deprecation")
        policy.Policy.PolicyRuleType result = policy.Policy.PolicyRuleType.valueOf(policyRuleType_);
        return result == null ? policy.Policy.PolicyRuleType.UNRECOGNIZED : result;
      }
      /**
       * <code>.policy.PolicyRuleType policyRuleType = 2;</code>
       * @param value The policyRuleType to set.
       * @return This builder for chaining.
       */
      public Builder setPolicyRuleType(policy.Policy.PolicyRuleType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        policyRuleType_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.policy.PolicyRuleType policyRuleType = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearPolicyRuleType() {
        
        policyRuleType_ = 0;
        onChanged();
        return this;
      }

      private int policyRulePriority_ ;
      /**
       * <code>uint32 PolicyRulePriority = 3;</code>
       * @return The policyRulePriority.
       */
      @java.lang.Override
      public int getPolicyRulePriority() {
        return policyRulePriority_;
      }
      /**
       * <code>uint32 PolicyRulePriority = 3;</code>
       * @param value The policyRulePriority to set.
       * @return This builder for chaining.
       */
      public Builder setPolicyRulePriority(int value) {
        
        policyRulePriority_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 PolicyRulePriority = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearPolicyRulePriority() {
        
        policyRulePriority_ = 0;
        onChanged();
        return this;
      }

      private policy.Policy.PolicyRuleEvent event_;
      private com.google.protobuf.SingleFieldBuilderV3<
          policy.Policy.PolicyRuleEvent, policy.Policy.PolicyRuleEvent.Builder, policy.Policy.PolicyRuleEventOrBuilder> eventBuilder_;
      /**
       * <pre>
       * Event-Condition-Action model
       * </pre>
       *
       * <code>.policy.PolicyRuleEvent event = 4;</code>
       * @return Whether the event field is set.
       */
      public boolean hasEvent() {
        return eventBuilder_ != null || event_ != null;
      }
      /**
       * <pre>
       * Event-Condition-Action model
       * </pre>
       *
       * <code>.policy.PolicyRuleEvent event = 4;</code>
       * @return The event.
       */
      public policy.Policy.PolicyRuleEvent getEvent() {
        if (eventBuilder_ == null) {
          return event_ == null ? policy.Policy.PolicyRuleEvent.getDefaultInstance() : event_;
        } else {
          return eventBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * Event-Condition-Action model
       * </pre>
       *
       * <code>.policy.PolicyRuleEvent event = 4;</code>
       */
      public Builder setEvent(policy.Policy.PolicyRuleEvent value) {
        if (eventBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          event_ = value;
          onChanged();
        } else {
          eventBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       * Event-Condition-Action model
       * </pre>
       *
       * <code>.policy.PolicyRuleEvent event = 4;</code>
       */
      public Builder setEvent(
          policy.Policy.PolicyRuleEvent.Builder builderForValue) {
        if (eventBuilder_ == null) {
          event_ = builderForValue.build();
          onChanged();
        } else {
          eventBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       * Event-Condition-Action model
       * </pre>
       *
       * <code>.policy.PolicyRuleEvent event = 4;</code>
       */
      public Builder mergeEvent(policy.Policy.PolicyRuleEvent value) {
        if (eventBuilder_ == null) {
          if (event_ != null) {
            event_ =
              policy.Policy.PolicyRuleEvent.newBuilder(event_).mergeFrom(value).buildPartial();
          } else {
            event_ = value;
          }
          onChanged();
        } else {
          eventBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       * Event-Condition-Action model
       * </pre>
       *
       * <code>.policy.PolicyRuleEvent event = 4;</code>
       */
      public Builder clearEvent() {
        if (eventBuilder_ == null) {
          event_ = null;
          onChanged();
        } else {
          event_ = null;
          eventBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       * Event-Condition-Action model
       * </pre>
       *
       * <code>.policy.PolicyRuleEvent event = 4;</code>
       */
      public policy.Policy.PolicyRuleEvent.Builder getEventBuilder() {
        
        onChanged();
        return getEventFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Event-Condition-Action model
       * </pre>
       *
       * <code>.policy.PolicyRuleEvent event = 4;</code>
       */
      public policy.Policy.PolicyRuleEventOrBuilder getEventOrBuilder() {
        if (eventBuilder_ != null) {
          return eventBuilder_.getMessageOrBuilder();
        } else {
          return event_ == null ?
              policy.Policy.PolicyRuleEvent.getDefaultInstance() : event_;
        }
      }
      /**
       * <pre>
       * Event-Condition-Action model
       * </pre>
       *
       * <code>.policy.PolicyRuleEvent event = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          policy.Policy.PolicyRuleEvent, policy.Policy.PolicyRuleEvent.Builder, policy.Policy.PolicyRuleEventOrBuilder> 
          getEventFieldBuilder() {
        if (eventBuilder_ == null) {
          eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              policy.Policy.PolicyRuleEvent, policy.Policy.PolicyRuleEvent.Builder, policy.Policy.PolicyRuleEventOrBuilder>(
                  getEvent(),
                  getParentForChildren(),
                  isClean());
          event_ = null;
        }
        return eventBuilder_;
      }

      private java.util.List<policy.Policy.PolicyRuleCondition> polRuleConditionList_ =
        java.util.Collections.emptyList();
      private void ensurePolRuleConditionListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          polRuleConditionList_ = new java.util.ArrayList<policy.Policy.PolicyRuleCondition>(polRuleConditionList_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          policy.Policy.PolicyRuleCondition, policy.Policy.PolicyRuleCondition.Builder, policy.Policy.PolicyRuleConditionOrBuilder> polRuleConditionListBuilder_;

      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public java.util.List<policy.Policy.PolicyRuleCondition> getPolRuleConditionListList() {
        if (polRuleConditionListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(polRuleConditionList_);
        } else {
          return polRuleConditionListBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public int getPolRuleConditionListCount() {
        if (polRuleConditionListBuilder_ == null) {
          return polRuleConditionList_.size();
        } else {
          return polRuleConditionListBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public policy.Policy.PolicyRuleCondition getPolRuleConditionList(int index) {
        if (polRuleConditionListBuilder_ == null) {
          return polRuleConditionList_.get(index);
        } else {
          return polRuleConditionListBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public Builder setPolRuleConditionList(
          int index, policy.Policy.PolicyRuleCondition value) {
        if (polRuleConditionListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePolRuleConditionListIsMutable();
          polRuleConditionList_.set(index, value);
          onChanged();
        } else {
          polRuleConditionListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public Builder setPolRuleConditionList(
          int index, policy.Policy.PolicyRuleCondition.Builder builderForValue) {
        if (polRuleConditionListBuilder_ == null) {
          ensurePolRuleConditionListIsMutable();
          polRuleConditionList_.set(index, builderForValue.build());
          onChanged();
        } else {
          polRuleConditionListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public Builder addPolRuleConditionList(policy.Policy.PolicyRuleCondition value) {
        if (polRuleConditionListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePolRuleConditionListIsMutable();
          polRuleConditionList_.add(value);
          onChanged();
        } else {
          polRuleConditionListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public Builder addPolRuleConditionList(
          int index, policy.Policy.PolicyRuleCondition value) {
        if (polRuleConditionListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePolRuleConditionListIsMutable();
          polRuleConditionList_.add(index, value);
          onChanged();
        } else {
          polRuleConditionListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public Builder addPolRuleConditionList(
          policy.Policy.PolicyRuleCondition.Builder builderForValue) {
        if (polRuleConditionListBuilder_ == null) {
          ensurePolRuleConditionListIsMutable();
          polRuleConditionList_.add(builderForValue.build());
          onChanged();
        } else {
          polRuleConditionListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public Builder addPolRuleConditionList(
          int index, policy.Policy.PolicyRuleCondition.Builder builderForValue) {
        if (polRuleConditionListBuilder_ == null) {
          ensurePolRuleConditionListIsMutable();
          polRuleConditionList_.add(index, builderForValue.build());
          onChanged();
        } else {
          polRuleConditionListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public Builder addAllPolRuleConditionList(
          java.lang.Iterable<? extends policy.Policy.PolicyRuleCondition> values) {
        if (polRuleConditionListBuilder_ == null) {
          ensurePolRuleConditionListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, polRuleConditionList_);
          onChanged();
        } else {
          polRuleConditionListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public Builder clearPolRuleConditionList() {
        if (polRuleConditionListBuilder_ == null) {
          polRuleConditionList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          polRuleConditionListBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public Builder removePolRuleConditionList(int index) {
        if (polRuleConditionListBuilder_ == null) {
          ensurePolRuleConditionListIsMutable();
          polRuleConditionList_.remove(index);
          onChanged();
        } else {
          polRuleConditionListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public policy.Policy.PolicyRuleCondition.Builder getPolRuleConditionListBuilder(
          int index) {
        return getPolRuleConditionListFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public policy.Policy.PolicyRuleConditionOrBuilder getPolRuleConditionListOrBuilder(
          int index) {
        if (polRuleConditionListBuilder_ == null) {
          return polRuleConditionList_.get(index);  } else {
          return polRuleConditionListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public java.util.List<? extends policy.Policy.PolicyRuleConditionOrBuilder> 
           getPolRuleConditionListOrBuilderList() {
        if (polRuleConditionListBuilder_ != null) {
          return polRuleConditionListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(polRuleConditionList_);
        }
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public policy.Policy.PolicyRuleCondition.Builder addPolRuleConditionListBuilder() {
        return getPolRuleConditionListFieldBuilder().addBuilder(
            policy.Policy.PolicyRuleCondition.getDefaultInstance());
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public policy.Policy.PolicyRuleCondition.Builder addPolRuleConditionListBuilder(
          int index) {
        return getPolRuleConditionListFieldBuilder().addBuilder(
            index, policy.Policy.PolicyRuleCondition.getDefaultInstance());
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition polRuleConditionList = 5;</code>
       */
      public java.util.List<policy.Policy.PolicyRuleCondition.Builder> 
           getPolRuleConditionListBuilderList() {
        return getPolRuleConditionListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          policy.Policy.PolicyRuleCondition, policy.Policy.PolicyRuleCondition.Builder, policy.Policy.PolicyRuleConditionOrBuilder> 
          getPolRuleConditionListFieldBuilder() {
        if (polRuleConditionListBuilder_ == null) {
          polRuleConditionListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              policy.Policy.PolicyRuleCondition, policy.Policy.PolicyRuleCondition.Builder, policy.Policy.PolicyRuleConditionOrBuilder>(
                  polRuleConditionList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          polRuleConditionList_ = null;
        }
        return polRuleConditionListBuilder_;
      }

      private java.util.List<policy.Policy.PolicyRuleAction> polRuleActionList_ =
        java.util.Collections.emptyList();
      private void ensurePolRuleActionListIsMutable() {
        if (!((bitField0_ & 0x00000002) != 0)) {
          polRuleActionList_ = new java.util.ArrayList<policy.Policy.PolicyRuleAction>(polRuleActionList_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          policy.Policy.PolicyRuleAction, policy.Policy.PolicyRuleAction.Builder, policy.Policy.PolicyRuleActionOrBuilder> polRuleActionListBuilder_;

      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public java.util.List<policy.Policy.PolicyRuleAction> getPolRuleActionListList() {
        if (polRuleActionListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(polRuleActionList_);
        } else {
          return polRuleActionListBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public int getPolRuleActionListCount() {
        if (polRuleActionListBuilder_ == null) {
          return polRuleActionList_.size();
        } else {
          return polRuleActionListBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public policy.Policy.PolicyRuleAction getPolRuleActionList(int index) {
        if (polRuleActionListBuilder_ == null) {
          return polRuleActionList_.get(index);
        } else {
          return polRuleActionListBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public Builder setPolRuleActionList(
          int index, policy.Policy.PolicyRuleAction value) {
        if (polRuleActionListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePolRuleActionListIsMutable();
          polRuleActionList_.set(index, value);
          onChanged();
        } else {
          polRuleActionListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public Builder setPolRuleActionList(
          int index, policy.Policy.PolicyRuleAction.Builder builderForValue) {
        if (polRuleActionListBuilder_ == null) {
          ensurePolRuleActionListIsMutable();
          polRuleActionList_.set(index, builderForValue.build());
          onChanged();
        } else {
          polRuleActionListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public Builder addPolRuleActionList(policy.Policy.PolicyRuleAction value) {
        if (polRuleActionListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePolRuleActionListIsMutable();
          polRuleActionList_.add(value);
          onChanged();
        } else {
          polRuleActionListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public Builder addPolRuleActionList(
          int index, policy.Policy.PolicyRuleAction value) {
        if (polRuleActionListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePolRuleActionListIsMutable();
          polRuleActionList_.add(index, value);
          onChanged();
        } else {
          polRuleActionListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public Builder addPolRuleActionList(
          policy.Policy.PolicyRuleAction.Builder builderForValue) {
        if (polRuleActionListBuilder_ == null) {
          ensurePolRuleActionListIsMutable();
          polRuleActionList_.add(builderForValue.build());
          onChanged();
        } else {
          polRuleActionListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public Builder addPolRuleActionList(
          int index, policy.Policy.PolicyRuleAction.Builder builderForValue) {
        if (polRuleActionListBuilder_ == null) {
          ensurePolRuleActionListIsMutable();
          polRuleActionList_.add(index, builderForValue.build());
          onChanged();
        } else {
          polRuleActionListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public Builder addAllPolRuleActionList(
          java.lang.Iterable<? extends policy.Policy.PolicyRuleAction> values) {
        if (polRuleActionListBuilder_ == null) {
          ensurePolRuleActionListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, polRuleActionList_);
          onChanged();
        } else {
          polRuleActionListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public Builder clearPolRuleActionList() {
        if (polRuleActionListBuilder_ == null) {
          polRuleActionList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          polRuleActionListBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public Builder removePolRuleActionList(int index) {
        if (polRuleActionListBuilder_ == null) {
          ensurePolRuleActionListIsMutable();
          polRuleActionList_.remove(index);
          onChanged();
        } else {
          polRuleActionListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public policy.Policy.PolicyRuleAction.Builder getPolRuleActionListBuilder(
          int index) {
        return getPolRuleActionListFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public policy.Policy.PolicyRuleActionOrBuilder getPolRuleActionListOrBuilder(
          int index) {
        if (polRuleActionListBuilder_ == null) {
          return polRuleActionList_.get(index);  } else {
          return polRuleActionListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public java.util.List<? extends policy.Policy.PolicyRuleActionOrBuilder> 
           getPolRuleActionListOrBuilderList() {
        if (polRuleActionListBuilder_ != null) {
          return polRuleActionListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(polRuleActionList_);
        }
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public policy.Policy.PolicyRuleAction.Builder addPolRuleActionListBuilder() {
        return getPolRuleActionListFieldBuilder().addBuilder(
            policy.Policy.PolicyRuleAction.getDefaultInstance());
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public policy.Policy.PolicyRuleAction.Builder addPolRuleActionListBuilder(
          int index) {
        return getPolRuleActionListFieldBuilder().addBuilder(
            index, policy.Policy.PolicyRuleAction.getDefaultInstance());
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction polRuleActionList = 6;</code>
       */
      public java.util.List<policy.Policy.PolicyRuleAction.Builder> 
           getPolRuleActionListBuilderList() {
        return getPolRuleActionListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          policy.Policy.PolicyRuleAction, policy.Policy.PolicyRuleAction.Builder, policy.Policy.PolicyRuleActionOrBuilder> 
          getPolRuleActionListFieldBuilder() {
        if (polRuleActionListBuilder_ == null) {
          polRuleActionListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              policy.Policy.PolicyRuleAction, policy.Policy.PolicyRuleAction.Builder, policy.Policy.PolicyRuleActionOrBuilder>(
                  polRuleActionList_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          polRuleActionList_ = null;
        }
        return polRuleActionListBuilder_;
      }

      private java.util.List<context.ContextOuterClass.ServiceId> serviceList_ =
        java.util.Collections.emptyList();
      private void ensureServiceListIsMutable() {
        if (!((bitField0_ & 0x00000004) != 0)) {
          serviceList_ = new java.util.ArrayList<context.ContextOuterClass.ServiceId>(serviceList_);
          bitField0_ |= 0x00000004;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          context.ContextOuterClass.ServiceId, context.ContextOuterClass.ServiceId.Builder, context.ContextOuterClass.ServiceIdOrBuilder> serviceListBuilder_;

      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public java.util.List<context.ContextOuterClass.ServiceId> getServiceListList() {
        if (serviceListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(serviceList_);
        } else {
          return serviceListBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public int getServiceListCount() {
        if (serviceListBuilder_ == null) {
          return serviceList_.size();
        } else {
          return serviceListBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public context.ContextOuterClass.ServiceId getServiceList(int index) {
        if (serviceListBuilder_ == null) {
          return serviceList_.get(index);
        } else {
          return serviceListBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public Builder setServiceList(
          int index, context.ContextOuterClass.ServiceId value) {
        if (serviceListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureServiceListIsMutable();
          serviceList_.set(index, value);
          onChanged();
        } else {
          serviceListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public Builder setServiceList(
          int index, context.ContextOuterClass.ServiceId.Builder builderForValue) {
        if (serviceListBuilder_ == null) {
          ensureServiceListIsMutable();
          serviceList_.set(index, builderForValue.build());
          onChanged();
        } else {
          serviceListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public Builder addServiceList(context.ContextOuterClass.ServiceId value) {
        if (serviceListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureServiceListIsMutable();
          serviceList_.add(value);
          onChanged();
        } else {
          serviceListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public Builder addServiceList(
          int index, context.ContextOuterClass.ServiceId value) {
        if (serviceListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureServiceListIsMutable();
          serviceList_.add(index, value);
          onChanged();
        } else {
          serviceListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public Builder addServiceList(
          context.ContextOuterClass.ServiceId.Builder builderForValue) {
        if (serviceListBuilder_ == null) {
          ensureServiceListIsMutable();
          serviceList_.add(builderForValue.build());
          onChanged();
        } else {
          serviceListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public Builder addServiceList(
          int index, context.ContextOuterClass.ServiceId.Builder builderForValue) {
        if (serviceListBuilder_ == null) {
          ensureServiceListIsMutable();
          serviceList_.add(index, builderForValue.build());
          onChanged();
        } else {
          serviceListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public Builder addAllServiceList(
          java.lang.Iterable<? extends context.ContextOuterClass.ServiceId> values) {
        if (serviceListBuilder_ == null) {
          ensureServiceListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, serviceList_);
          onChanged();
        } else {
          serviceListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public Builder clearServiceList() {
        if (serviceListBuilder_ == null) {
          serviceList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          serviceListBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public Builder removeServiceList(int index) {
        if (serviceListBuilder_ == null) {
          ensureServiceListIsMutable();
          serviceList_.remove(index);
          onChanged();
        } else {
          serviceListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public context.ContextOuterClass.ServiceId.Builder getServiceListBuilder(
          int index) {
        return getServiceListFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public context.ContextOuterClass.ServiceIdOrBuilder getServiceListOrBuilder(
          int index) {
        if (serviceListBuilder_ == null) {
          return serviceList_.get(index);  } else {
          return serviceListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public java.util.List<? extends context.ContextOuterClass.ServiceIdOrBuilder> 
           getServiceListOrBuilderList() {
        if (serviceListBuilder_ != null) {
          return serviceListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(serviceList_);
        }
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public context.ContextOuterClass.ServiceId.Builder addServiceListBuilder() {
        return getServiceListFieldBuilder().addBuilder(
            context.ContextOuterClass.ServiceId.getDefaultInstance());
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public context.ContextOuterClass.ServiceId.Builder addServiceListBuilder(
          int index) {
        return getServiceListFieldBuilder().addBuilder(
            index, context.ContextOuterClass.ServiceId.getDefaultInstance());
      }
      /**
       * <pre>
       * Affected services and devices
       * </pre>
       *
       * <code>repeated .context.ServiceId serviceList = 7;</code>
       */
      public java.util.List<context.ContextOuterClass.ServiceId.Builder> 
           getServiceListBuilderList() {
        return getServiceListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          context.ContextOuterClass.ServiceId, context.ContextOuterClass.ServiceId.Builder, context.ContextOuterClass.ServiceIdOrBuilder> 
          getServiceListFieldBuilder() {
        if (serviceListBuilder_ == null) {
          serviceListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              context.ContextOuterClass.ServiceId, context.ContextOuterClass.ServiceId.Builder, context.ContextOuterClass.ServiceIdOrBuilder>(
                  serviceList_,
                  ((bitField0_ & 0x00000004) != 0),
                  getParentForChildren(),
                  isClean());
          serviceList_ = null;
        }
        return serviceListBuilder_;
      }

      private java.util.List<context.ContextOuterClass.DeviceId> deviceList_ =
        java.util.Collections.emptyList();
      private void ensureDeviceListIsMutable() {
        if (!((bitField0_ & 0x00000008) != 0)) {
          deviceList_ = new java.util.ArrayList<context.ContextOuterClass.DeviceId>(deviceList_);
          bitField0_ |= 0x00000008;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder> deviceListBuilder_;

      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public java.util.List<context.ContextOuterClass.DeviceId> getDeviceListList() {
        if (deviceListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(deviceList_);
        } else {
          return deviceListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public int getDeviceListCount() {
        if (deviceListBuilder_ == null) {
          return deviceList_.size();
        } else {
          return deviceListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public context.ContextOuterClass.DeviceId getDeviceList(int index) {
        if (deviceListBuilder_ == null) {
          return deviceList_.get(index);
        } else {
          return deviceListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public Builder setDeviceList(
          int index, context.ContextOuterClass.DeviceId value) {
        if (deviceListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureDeviceListIsMutable();
          deviceList_.set(index, value);
          onChanged();
        } else {
          deviceListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public Builder setDeviceList(
          int index, context.ContextOuterClass.DeviceId.Builder builderForValue) {
        if (deviceListBuilder_ == null) {
          ensureDeviceListIsMutable();
          deviceList_.set(index, builderForValue.build());
          onChanged();
        } else {
          deviceListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public Builder addDeviceList(context.ContextOuterClass.DeviceId value) {
        if (deviceListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureDeviceListIsMutable();
          deviceList_.add(value);
          onChanged();
        } else {
          deviceListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public Builder addDeviceList(
          int index, context.ContextOuterClass.DeviceId value) {
        if (deviceListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureDeviceListIsMutable();
          deviceList_.add(index, value);
          onChanged();
        } else {
          deviceListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public Builder addDeviceList(
          context.ContextOuterClass.DeviceId.Builder builderForValue) {
        if (deviceListBuilder_ == null) {
          ensureDeviceListIsMutable();
          deviceList_.add(builderForValue.build());
          onChanged();
        } else {
          deviceListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public Builder addDeviceList(
          int index, context.ContextOuterClass.DeviceId.Builder builderForValue) {
        if (deviceListBuilder_ == null) {
          ensureDeviceListIsMutable();
          deviceList_.add(index, builderForValue.build());
          onChanged();
        } else {
          deviceListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public Builder addAllDeviceList(
          java.lang.Iterable<? extends context.ContextOuterClass.DeviceId> values) {
        if (deviceListBuilder_ == null) {
          ensureDeviceListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, deviceList_);
          onChanged();
        } else {
          deviceListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public Builder clearDeviceList() {
        if (deviceListBuilder_ == null) {
          deviceList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000008);
          onChanged();
        } else {
          deviceListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public Builder removeDeviceList(int index) {
        if (deviceListBuilder_ == null) {
          ensureDeviceListIsMutable();
          deviceList_.remove(index);
          onChanged();
        } else {
          deviceListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public context.ContextOuterClass.DeviceId.Builder getDeviceListBuilder(
          int index) {
        return getDeviceListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public context.ContextOuterClass.DeviceIdOrBuilder getDeviceListOrBuilder(
          int index) {
        if (deviceListBuilder_ == null) {
          return deviceList_.get(index);  } else {
          return deviceListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public java.util.List<? extends context.ContextOuterClass.DeviceIdOrBuilder> 
           getDeviceListOrBuilderList() {
        if (deviceListBuilder_ != null) {
          return deviceListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(deviceList_);
        }
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public context.ContextOuterClass.DeviceId.Builder addDeviceListBuilder() {
        return getDeviceListFieldBuilder().addBuilder(
            context.ContextOuterClass.DeviceId.getDefaultInstance());
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public context.ContextOuterClass.DeviceId.Builder addDeviceListBuilder(
          int index) {
        return getDeviceListFieldBuilder().addBuilder(
            index, context.ContextOuterClass.DeviceId.getDefaultInstance());
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 8;</code>
       */
      public java.util.List<context.ContextOuterClass.DeviceId.Builder> 
           getDeviceListBuilderList() {
        return getDeviceListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder> 
          getDeviceListFieldBuilder() {
        if (deviceListBuilder_ == null) {
          deviceListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              context.ContextOuterClass.DeviceId, context.ContextOuterClass.DeviceId.Builder, context.ContextOuterClass.DeviceIdOrBuilder>(
                  deviceList_,
                  ((bitField0_ & 0x00000008) != 0),
                  getParentForChildren(),
                  isClean());
          deviceList_ = null;
        }
        return deviceListBuilder_;
      }
      @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:policy.PolicyRule)
    }

    // @@protoc_insertion_point(class_scope:policy.PolicyRule)
    private static final policy.Policy.PolicyRule DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new policy.Policy.PolicyRule();
    }

    public static policy.Policy.PolicyRule getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<PolicyRule>
        PARSER = new com.google.protobuf.AbstractParser<PolicyRule>() {
      @java.lang.Override
      public PolicyRule parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PolicyRule(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<PolicyRule> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<PolicyRule> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public policy.Policy.PolicyRule getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PolicyRuleListOrBuilder extends
      // @@protoc_insertion_point(interface_extends:policy.PolicyRuleList)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
     */
    java.util.List<policy.Policy.PolicyRule> 
        getPolicyRuleListList();
    /**
     * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
     */
    policy.Policy.PolicyRule getPolicyRuleList(int index);
    /**
     * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
     */
    int getPolicyRuleListCount();
    /**
     * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
     */
    java.util.List<? extends policy.Policy.PolicyRuleOrBuilder> 
        getPolicyRuleListOrBuilderList();
    /**
     * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
     */
    policy.Policy.PolicyRuleOrBuilder getPolicyRuleListOrBuilder(
        int index);
  }
  /**
   * <pre>
   * A list of policy rules
   * </pre>
   *
   * Protobuf type {@code policy.PolicyRuleList}
   */
  public static final class PolicyRuleList extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:policy.PolicyRuleList)
      PolicyRuleListOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PolicyRuleList.newBuilder() to construct.
    private PolicyRuleList(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PolicyRuleList() {
      policyRuleList_ = java.util.Collections.emptyList();
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PolicyRuleList(
        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: {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                policyRuleList_ = new java.util.ArrayList<policy.Policy.PolicyRule>();
                mutable_bitField0_ |= 0x00000001;
              }
              policyRuleList_.add(
                  input.readMessage(policy.Policy.PolicyRule.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)) {
          policyRuleList_ = java.util.Collections.unmodifiableList(policyRuleList_);
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return policy.Policy.internal_static_policy_PolicyRuleList_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return policy.Policy.internal_static_policy_PolicyRuleList_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              policy.Policy.PolicyRuleList.class, policy.Policy.PolicyRuleList.Builder.class);
    }

    public static final int POLICYRULELIST_FIELD_NUMBER = 1;
    private java.util.List<policy.Policy.PolicyRule> policyRuleList_;
    /**
     * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
     */
    @java.lang.Override
    public java.util.List<policy.Policy.PolicyRule> getPolicyRuleListList() {
      return policyRuleList_;
    }
    /**
     * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
     */
    @java.lang.Override
    public java.util.List<? extends policy.Policy.PolicyRuleOrBuilder> 
        getPolicyRuleListOrBuilderList() {
      return policyRuleList_;
    }
    /**
     * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
     */
    @java.lang.Override
    public int getPolicyRuleListCount() {
      return policyRuleList_.size();
    }
    /**
     * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
     */
    @java.lang.Override
    public policy.Policy.PolicyRule getPolicyRuleList(int index) {
      return policyRuleList_.get(index);
    }
    /**
     * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
     */
    @java.lang.Override
    public policy.Policy.PolicyRuleOrBuilder getPolicyRuleListOrBuilder(
        int index) {
      return policyRuleList_.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 {
      for (int i = 0; i < policyRuleList_.size(); i++) {
        output.writeMessage(1, policyRuleList_.get(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      for (int i = 0; i < policyRuleList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(1, policyRuleList_.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 policy.Policy.PolicyRuleList)) {
        return super.equals(obj);
      }
      policy.Policy.PolicyRuleList other = (policy.Policy.PolicyRuleList) obj;

      if (!getPolicyRuleListList()
          .equals(other.getPolicyRuleListList())) 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();
      if (getPolicyRuleListCount() > 0) {
        hash = (37 * hash) + POLICYRULELIST_FIELD_NUMBER;
        hash = (53 * hash) + getPolicyRuleListList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static policy.Policy.PolicyRuleList parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleList parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleList parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleList parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleList parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static policy.Policy.PolicyRuleList parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static policy.Policy.PolicyRuleList parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleList 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 policy.Policy.PolicyRuleList parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleList 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 policy.Policy.PolicyRuleList parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static policy.Policy.PolicyRuleList 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(policy.Policy.PolicyRuleList 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;
    }
    /**
     * <pre>
     * A list of policy rules
     * </pre>
     *
     * Protobuf type {@code policy.PolicyRuleList}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:policy.PolicyRuleList)
        policy.Policy.PolicyRuleListOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return policy.Policy.internal_static_policy_PolicyRuleList_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return policy.Policy.internal_static_policy_PolicyRuleList_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                policy.Policy.PolicyRuleList.class, policy.Policy.PolicyRuleList.Builder.class);
      }

      // Construct using policy.Policy.PolicyRuleList.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getPolicyRuleListFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (policyRuleListBuilder_ == null) {
          policyRuleList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          policyRuleListBuilder_.clear();
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return policy.Policy.internal_static_policy_PolicyRuleList_descriptor;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleList getDefaultInstanceForType() {
        return policy.Policy.PolicyRuleList.getDefaultInstance();
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleList build() {
        policy.Policy.PolicyRuleList result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public policy.Policy.PolicyRuleList buildPartial() {
        policy.Policy.PolicyRuleList result = new policy.Policy.PolicyRuleList(this);
        int from_bitField0_ = bitField0_;
        if (policyRuleListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            policyRuleList_ = java.util.Collections.unmodifiableList(policyRuleList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.policyRuleList_ = policyRuleList_;
        } else {
          result.policyRuleList_ = policyRuleListBuilder_.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 policy.Policy.PolicyRuleList) {
          return mergeFrom((policy.Policy.PolicyRuleList)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(policy.Policy.PolicyRuleList other) {
        if (other == policy.Policy.PolicyRuleList.getDefaultInstance()) return this;
        if (policyRuleListBuilder_ == null) {
          if (!other.policyRuleList_.isEmpty()) {
            if (policyRuleList_.isEmpty()) {
              policyRuleList_ = other.policyRuleList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensurePolicyRuleListIsMutable();
              policyRuleList_.addAll(other.policyRuleList_);
            }
            onChanged();
          }
        } else {
          if (!other.policyRuleList_.isEmpty()) {
            if (policyRuleListBuilder_.isEmpty()) {
              policyRuleListBuilder_.dispose();
              policyRuleListBuilder_ = null;
              policyRuleList_ = other.policyRuleList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              policyRuleListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getPolicyRuleListFieldBuilder() : null;
            } else {
              policyRuleListBuilder_.addAllMessages(other.policyRuleList_);
            }
          }
        }
        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 {
        policy.Policy.PolicyRuleList parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (policy.Policy.PolicyRuleList) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.util.List<policy.Policy.PolicyRule> policyRuleList_ =
        java.util.Collections.emptyList();
      private void ensurePolicyRuleListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          policyRuleList_ = new java.util.ArrayList<policy.Policy.PolicyRule>(policyRuleList_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          policy.Policy.PolicyRule, policy.Policy.PolicyRule.Builder, policy.Policy.PolicyRuleOrBuilder> policyRuleListBuilder_;

      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public java.util.List<policy.Policy.PolicyRule> getPolicyRuleListList() {
        if (policyRuleListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(policyRuleList_);
        } else {
          return policyRuleListBuilder_.getMessageList();
        }
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public int getPolicyRuleListCount() {
        if (policyRuleListBuilder_ == null) {
          return policyRuleList_.size();
        } else {
          return policyRuleListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public policy.Policy.PolicyRule getPolicyRuleList(int index) {
        if (policyRuleListBuilder_ == null) {
          return policyRuleList_.get(index);
        } else {
          return policyRuleListBuilder_.getMessage(index);
        }
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public Builder setPolicyRuleList(
          int index, policy.Policy.PolicyRule value) {
        if (policyRuleListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePolicyRuleListIsMutable();
          policyRuleList_.set(index, value);
          onChanged();
        } else {
          policyRuleListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public Builder setPolicyRuleList(
          int index, policy.Policy.PolicyRule.Builder builderForValue) {
        if (policyRuleListBuilder_ == null) {
          ensurePolicyRuleListIsMutable();
          policyRuleList_.set(index, builderForValue.build());
          onChanged();
        } else {
          policyRuleListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public Builder addPolicyRuleList(policy.Policy.PolicyRule value) {
        if (policyRuleListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePolicyRuleListIsMutable();
          policyRuleList_.add(value);
          onChanged();
        } else {
          policyRuleListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public Builder addPolicyRuleList(
          int index, policy.Policy.PolicyRule value) {
        if (policyRuleListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensurePolicyRuleListIsMutable();
          policyRuleList_.add(index, value);
          onChanged();
        } else {
          policyRuleListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public Builder addPolicyRuleList(
          policy.Policy.PolicyRule.Builder builderForValue) {
        if (policyRuleListBuilder_ == null) {
          ensurePolicyRuleListIsMutable();
          policyRuleList_.add(builderForValue.build());
          onChanged();
        } else {
          policyRuleListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public Builder addPolicyRuleList(
          int index, policy.Policy.PolicyRule.Builder builderForValue) {
        if (policyRuleListBuilder_ == null) {
          ensurePolicyRuleListIsMutable();
          policyRuleList_.add(index, builderForValue.build());
          onChanged();
        } else {
          policyRuleListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public Builder addAllPolicyRuleList(
          java.lang.Iterable<? extends policy.Policy.PolicyRule> values) {
        if (policyRuleListBuilder_ == null) {
          ensurePolicyRuleListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, policyRuleList_);
          onChanged();
        } else {
          policyRuleListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public Builder clearPolicyRuleList() {
        if (policyRuleListBuilder_ == null) {
          policyRuleList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          policyRuleListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public Builder removePolicyRuleList(int index) {
        if (policyRuleListBuilder_ == null) {
          ensurePolicyRuleListIsMutable();
          policyRuleList_.remove(index);
          onChanged();
        } else {
          policyRuleListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public policy.Policy.PolicyRule.Builder getPolicyRuleListBuilder(
          int index) {
        return getPolicyRuleListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public policy.Policy.PolicyRuleOrBuilder getPolicyRuleListOrBuilder(
          int index) {
        if (policyRuleListBuilder_ == null) {
          return policyRuleList_.get(index);  } else {
          return policyRuleListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public java.util.List<? extends policy.Policy.PolicyRuleOrBuilder> 
           getPolicyRuleListOrBuilderList() {
        if (policyRuleListBuilder_ != null) {
          return policyRuleListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(policyRuleList_);
        }
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public policy.Policy.PolicyRule.Builder addPolicyRuleListBuilder() {
        return getPolicyRuleListFieldBuilder().addBuilder(
            policy.Policy.PolicyRule.getDefaultInstance());
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public policy.Policy.PolicyRule.Builder addPolicyRuleListBuilder(
          int index) {
        return getPolicyRuleListFieldBuilder().addBuilder(
            index, policy.Policy.PolicyRule.getDefaultInstance());
      }
      /**
       * <code>repeated .policy.PolicyRule policyRuleList = 1;</code>
       */
      public java.util.List<policy.Policy.PolicyRule.Builder> 
           getPolicyRuleListBuilderList() {
        return getPolicyRuleListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          policy.Policy.PolicyRule, policy.Policy.PolicyRule.Builder, policy.Policy.PolicyRuleOrBuilder> 
          getPolicyRuleListFieldBuilder() {
        if (policyRuleListBuilder_ == null) {
          policyRuleListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              policy.Policy.PolicyRule, policy.Policy.PolicyRule.Builder, policy.Policy.PolicyRuleOrBuilder>(
                  policyRuleList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          policyRuleList_ = null;
        }
        return policyRuleListBuilder_;
      }
      @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:policy.PolicyRuleList)
    }

    // @@protoc_insertion_point(class_scope:policy.PolicyRuleList)
    private static final policy.Policy.PolicyRuleList DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new policy.Policy.PolicyRuleList();
    }

    public static policy.Policy.PolicyRuleList getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<PolicyRuleList>
        PARSER = new com.google.protobuf.AbstractParser<PolicyRuleList>() {
      @java.lang.Override
      public PolicyRuleList parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new PolicyRuleList(input, extensionRegistry);
      }
    };

    public static com.google.protobuf.Parser<PolicyRuleList> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<PolicyRuleList> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public policy.Policy.PolicyRuleList getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_policy_PolicyRuleId_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_policy_PolicyRuleId_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_policy_PolicyRuleState_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_policy_PolicyRuleState_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_policy_PolicyRuleVariable_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_policy_PolicyRuleVariable_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_policy_PolicyRuleValue_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_policy_PolicyRuleValue_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_policy_PolicyRuleEvent_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_policy_PolicyRuleEvent_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_policy_PolicyRuleCondition_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_policy_PolicyRuleCondition_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_policy_PolicyRuleAction_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_policy_PolicyRuleAction_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_policy_PolicyRule_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_policy_PolicyRule_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_policy_PolicyRuleList_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_policy_PolicyRuleList_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\014policy.proto\022\006policy\032\rcontext.proto\"+\n" +
      "\014PolicyRuleId\022\033\n\004uuid\030\001 \001(\0132\r.context.Uu" +
      "id\"b\n\017PolicyRuleState\022#\n\014policyRuleId\030\001 " +
      "\001(\0132\r.context.Uuid\022*\n\017policyRuleState\030\002 " +
      "\001(\0162\021.policy.RuleState\"0\n\022PolicyRuleVari" +
      "able\022\032\n\022policyRuleVariable\030\001 \001(\t\"*\n\017Poli" +
      "cyRuleValue\022\027\n\017policyRuleValue\030\001 \001(\t\"0\n\017" +
      "PolicyRuleEvent\022\035\n\005event\030\001 \001(\0132\016.context" +
      ".Event\"\204\001\n\023PolicyRuleCondition\0227\n\023polRul" +
      "eConditionVar\030\001 \001(\0132\032.policy.PolicyRuleV" +
      "ariable\0224\n\023polRuleConditionVal\030\002 \001(\0132\027.p" +
      "olicy.PolicyRuleValue\"{\n\020PolicyRuleActio" +
      "n\0224\n\020polRuleActionVar\030\001 \001(\0132\032.policy.Pol" +
      "icyRuleVariable\0221\n\020polRuleActionVal\030\002 \001(" +
      "\0132\027.policy.PolicyRuleValue\"\354\002\n\nPolicyRul" +
      "e\022*\n\014policyRuleId\030\001 \001(\0132\024.policy.PolicyR" +
      "uleId\022.\n\016policyRuleType\030\002 \001(\0162\026.policy.P" +
      "olicyRuleType\022\032\n\022PolicyRulePriority\030\003 \001(" +
      "\r\022&\n\005event\030\004 \001(\0132\027.policy.PolicyRuleEven" +
      "t\0229\n\024polRuleConditionList\030\005 \003(\0132\033.policy" +
      ".PolicyRuleCondition\0223\n\021polRuleActionLis" +
      "t\030\006 \003(\0132\030.policy.PolicyRuleAction\022\'\n\013ser" +
      "viceList\030\007 \003(\0132\022.context.ServiceId\022%\n\nde" +
      "viceList\030\010 \003(\0132\021.context.DeviceId\"<\n\016Pol" +
      "icyRuleList\022*\n\016policyRuleList\030\001 \003(\0132\022.po" +
      "licy.PolicyRule*G\n\tRuleState\022\023\n\017POLICY_I" +
      "NACTIVE\020\000\022\022\n\016POLICY_PLANNED\020\001\022\021\n\rPOLICY_" +
      "ACTIVE\020\002*?\n\016PolicyRuleType\022\025\n\021POLICYTYPE" +
      "_DEVICE\020\000\022\026\n\022POLICYTYPE_NETWORK\020\0012\214\003\n\rPo" +
      "licyService\022:\n\tPolicyAdd\022\022.policy.Policy" +
      "Rule\032\027.policy.PolicyRuleState\"\000\022=\n\014Polic" +
      "yUpdate\022\022.policy.PolicyRule\032\027.policy.Pol" +
      "icyRuleState\"\000\022=\n\014PolicyDelete\022\022.policy." +
      "PolicyRule\032\027.policy.PolicyRuleState\"\000\0227\n" +
      "\tGetPolicy\022\024.policy.PolicyRuleId\032\022.polic" +
      "y.PolicyRule\"\000\022B\n\023GetPolicyByDeviceId\022\021." +
      "context.DeviceId\032\026.policy.PolicyRuleList" +
      "\"\000\022D\n\024GetPolicyByServiceId\022\022.context.Ser" +
      "viceId\032\026.policy.PolicyRuleList\"\000b\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          context.ContextOuterClass.getDescriptor(),
        });
    internal_static_policy_PolicyRuleId_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_policy_PolicyRuleId_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRuleId_descriptor,
        new java.lang.String[] { "Uuid", });
    internal_static_policy_PolicyRuleState_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_policy_PolicyRuleState_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRuleState_descriptor,
        new java.lang.String[] { "PolicyRuleId", "PolicyRuleState", });
    internal_static_policy_PolicyRuleVariable_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_policy_PolicyRuleVariable_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRuleVariable_descriptor,
        new java.lang.String[] { "PolicyRuleVariable", });
    internal_static_policy_PolicyRuleValue_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_policy_PolicyRuleValue_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRuleValue_descriptor,
        new java.lang.String[] { "PolicyRuleValue", });
    internal_static_policy_PolicyRuleEvent_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_policy_PolicyRuleEvent_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRuleEvent_descriptor,
        new java.lang.String[] { "Event", });
    internal_static_policy_PolicyRuleCondition_descriptor =
      getDescriptor().getMessageTypes().get(5);
    internal_static_policy_PolicyRuleCondition_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRuleCondition_descriptor,
        new java.lang.String[] { "PolRuleConditionVar", "PolRuleConditionVal", });
    internal_static_policy_PolicyRuleAction_descriptor =
      getDescriptor().getMessageTypes().get(6);
    internal_static_policy_PolicyRuleAction_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRuleAction_descriptor,
        new java.lang.String[] { "PolRuleActionVar", "PolRuleActionVal", });
    internal_static_policy_PolicyRule_descriptor =
      getDescriptor().getMessageTypes().get(7);
    internal_static_policy_PolicyRule_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRule_descriptor,
        new java.lang.String[] { "PolicyRuleId", "PolicyRuleType", "PolicyRulePriority", "Event", "PolRuleConditionList", "PolRuleActionList", "ServiceList", "DeviceList", });
    internal_static_policy_PolicyRuleList_descriptor =
      getDescriptor().getMessageTypes().get(8);
    internal_static_policy_PolicyRuleList_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRuleList_descriptor,
        new java.lang.String[] { "PolicyRuleList", });
    context.ContextOuterClass.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
