// 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 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 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 priority = 3;</code>
     * @return The priority.
     */
    int getPriority();

    /**
     * <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 conditionList = 5;</code>
     */
    java.util.List<policy.PolicyCondition.PolicyRuleCondition> 
        getConditionListList();
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
     */
    policy.PolicyCondition.PolicyRuleCondition getConditionList(int index);
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
     */
    int getConditionListCount();
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
     */
    java.util.List<? extends policy.PolicyCondition.PolicyRuleConditionOrBuilder> 
        getConditionListOrBuilderList();
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
     */
    policy.PolicyCondition.PolicyRuleConditionOrBuilder getConditionListOrBuilder(
        int index);

    /**
     * <pre>
     * Evaluation operator to be used
     * </pre>
     *
     * <code>.policy.BooleanOperator booleanOperator = 6;</code>
     * @return The enum numeric value on the wire for booleanOperator.
     */
    int getBooleanOperatorValue();
    /**
     * <pre>
     * Evaluation operator to be used
     * </pre>
     *
     * <code>.policy.BooleanOperator booleanOperator = 6;</code>
     * @return The booleanOperator.
     */
    policy.PolicyCondition.BooleanOperator getBooleanOperator();

    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
     */
    java.util.List<policy.PolicyAction.PolicyRuleAction> 
        getActionListList();
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
     */
    policy.PolicyAction.PolicyRuleAction getActionList(int index);
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
     */
    int getActionListCount();
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
     */
    java.util.List<? extends policy.PolicyAction.PolicyRuleActionOrBuilder> 
        getActionListOrBuilderList();
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
     */
    policy.PolicyAction.PolicyRuleActionOrBuilder getActionListOrBuilder(
        int index);

    /**
     * <pre>
     * Affected service and devices
     * </pre>
     *
     * <code>.context.ServiceId serviceId = 8;</code>
     * @return Whether the serviceId field is set.
     */
    boolean hasServiceId();
    /**
     * <pre>
     * Affected service and devices
     * </pre>
     *
     * <code>.context.ServiceId serviceId = 8;</code>
     * @return The serviceId.
     */
    context.ContextOuterClass.ServiceId getServiceId();
    /**
     * <pre>
     * Affected service and devices
     * </pre>
     *
     * <code>.context.ServiceId serviceId = 8;</code>
     */
    context.ContextOuterClass.ServiceIdOrBuilder getServiceIdOrBuilder();

    /**
     * <code>repeated .context.DeviceId deviceList = 9;</code>
     */
    java.util.List<context.ContextOuterClass.DeviceId> 
        getDeviceListList();
    /**
     * <code>repeated .context.DeviceId deviceList = 9;</code>
     */
    context.ContextOuterClass.DeviceId getDeviceList(int index);
    /**
     * <code>repeated .context.DeviceId deviceList = 9;</code>
     */
    int getDeviceListCount();
    /**
     * <code>repeated .context.DeviceId deviceList = 9;</code>
     */
    java.util.List<? extends context.ContextOuterClass.DeviceIdOrBuilder> 
        getDeviceListOrBuilderList();
    /**
     * <code>repeated .context.DeviceId deviceList = 9;</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;
      conditionList_ = java.util.Collections.emptyList();
      booleanOperator_ = 0;
      actionList_ = 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: {

              priority_ = 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)) {
                conditionList_ = new java.util.ArrayList<policy.PolicyCondition.PolicyRuleCondition>();
                mutable_bitField0_ |= 0x00000001;
              }
              conditionList_.add(
                  input.readMessage(policy.PolicyCondition.PolicyRuleCondition.parser(), extensionRegistry));
              break;
            }
            case 48: {
              int rawValue = input.readEnum();

              booleanOperator_ = rawValue;
              break;
            }
            case 58: {
              if (!((mutable_bitField0_ & 0x00000002) != 0)) {
                actionList_ = new java.util.ArrayList<policy.PolicyAction.PolicyRuleAction>();
                mutable_bitField0_ |= 0x00000002;
              }
              actionList_.add(
                  input.readMessage(policy.PolicyAction.PolicyRuleAction.parser(), extensionRegistry));
              break;
            }
            case 66: {
              context.ContextOuterClass.ServiceId.Builder subBuilder = null;
              if (serviceId_ != null) {
                subBuilder = serviceId_.toBuilder();
              }
              serviceId_ = input.readMessage(context.ContextOuterClass.ServiceId.parser(), extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(serviceId_);
                serviceId_ = subBuilder.buildPartial();
              }

              break;
            }
            case 74: {
              if (!((mutable_bitField0_ & 0x00000004) != 0)) {
                deviceList_ = new java.util.ArrayList<context.ContextOuterClass.DeviceId>();
                mutable_bitField0_ |= 0x00000004;
              }
              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)) {
          conditionList_ = java.util.Collections.unmodifiableList(conditionList_);
        }
        if (((mutable_bitField0_ & 0x00000002) != 0)) {
          actionList_ = java.util.Collections.unmodifiableList(actionList_);
        }
        if (((mutable_bitField0_ & 0x00000004) != 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 PRIORITY_FIELD_NUMBER = 3;
    private int priority_;
    /**
     * <code>uint32 priority = 3;</code>
     * @return The priority.
     */
    @java.lang.Override
    public int getPriority() {
      return priority_;
    }

    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 CONDITIONLIST_FIELD_NUMBER = 5;
    private java.util.List<policy.PolicyCondition.PolicyRuleCondition> conditionList_;
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
     */
    @java.lang.Override
    public java.util.List<policy.PolicyCondition.PolicyRuleCondition> getConditionListList() {
      return conditionList_;
    }
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
     */
    @java.lang.Override
    public java.util.List<? extends policy.PolicyCondition.PolicyRuleConditionOrBuilder> 
        getConditionListOrBuilderList() {
      return conditionList_;
    }
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
     */
    @java.lang.Override
    public int getConditionListCount() {
      return conditionList_.size();
    }
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
     */
    @java.lang.Override
    public policy.PolicyCondition.PolicyRuleCondition getConditionList(int index) {
      return conditionList_.get(index);
    }
    /**
     * <pre>
     * One or more conditions must be met
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
     */
    @java.lang.Override
    public policy.PolicyCondition.PolicyRuleConditionOrBuilder getConditionListOrBuilder(
        int index) {
      return conditionList_.get(index);
    }

    public static final int BOOLEANOPERATOR_FIELD_NUMBER = 6;
    private int booleanOperator_;
    /**
     * <pre>
     * Evaluation operator to be used
     * </pre>
     *
     * <code>.policy.BooleanOperator booleanOperator = 6;</code>
     * @return The enum numeric value on the wire for booleanOperator.
     */
    @java.lang.Override public int getBooleanOperatorValue() {
      return booleanOperator_;
    }
    /**
     * <pre>
     * Evaluation operator to be used
     * </pre>
     *
     * <code>.policy.BooleanOperator booleanOperator = 6;</code>
     * @return The booleanOperator.
     */
    @java.lang.Override public policy.PolicyCondition.BooleanOperator getBooleanOperator() {
      @SuppressWarnings("deprecation")
      policy.PolicyCondition.BooleanOperator result = policy.PolicyCondition.BooleanOperator.valueOf(booleanOperator_);
      return result == null ? policy.PolicyCondition.BooleanOperator.UNRECOGNIZED : result;
    }

    public static final int ACTIONLIST_FIELD_NUMBER = 7;
    private java.util.List<policy.PolicyAction.PolicyRuleAction> actionList_;
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
     */
    @java.lang.Override
    public java.util.List<policy.PolicyAction.PolicyRuleAction> getActionListList() {
      return actionList_;
    }
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
     */
    @java.lang.Override
    public java.util.List<? extends policy.PolicyAction.PolicyRuleActionOrBuilder> 
        getActionListOrBuilderList() {
      return actionList_;
    }
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
     */
    @java.lang.Override
    public int getActionListCount() {
      return actionList_.size();
    }
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
     */
    @java.lang.Override
    public policy.PolicyAction.PolicyRuleAction getActionList(int index) {
      return actionList_.get(index);
    }
    /**
     * <pre>
     * One or more actions should be applied
     * </pre>
     *
     * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
     */
    @java.lang.Override
    public policy.PolicyAction.PolicyRuleActionOrBuilder getActionListOrBuilder(
        int index) {
      return actionList_.get(index);
    }

    public static final int SERVICEID_FIELD_NUMBER = 8;
    private context.ContextOuterClass.ServiceId serviceId_;
    /**
     * <pre>
     * Affected service and devices
     * </pre>
     *
     * <code>.context.ServiceId serviceId = 8;</code>
     * @return Whether the serviceId field is set.
     */
    @java.lang.Override
    public boolean hasServiceId() {
      return serviceId_ != null;
    }
    /**
     * <pre>
     * Affected service and devices
     * </pre>
     *
     * <code>.context.ServiceId serviceId = 8;</code>
     * @return The serviceId.
     */
    @java.lang.Override
    public context.ContextOuterClass.ServiceId getServiceId() {
      return serviceId_ == null ? context.ContextOuterClass.ServiceId.getDefaultInstance() : serviceId_;
    }
    /**
     * <pre>
     * Affected service and devices
     * </pre>
     *
     * <code>.context.ServiceId serviceId = 8;</code>
     */
    @java.lang.Override
    public context.ContextOuterClass.ServiceIdOrBuilder getServiceIdOrBuilder() {
      return getServiceId();
    }

    public static final int DEVICELIST_FIELD_NUMBER = 9;
    private java.util.List<context.ContextOuterClass.DeviceId> deviceList_;
    /**
     * <code>repeated .context.DeviceId deviceList = 9;</code>
     */
    @java.lang.Override
    public java.util.List<context.ContextOuterClass.DeviceId> getDeviceListList() {
      return deviceList_;
    }
    /**
     * <code>repeated .context.DeviceId deviceList = 9;</code>
     */
    @java.lang.Override
    public java.util.List<? extends context.ContextOuterClass.DeviceIdOrBuilder> 
        getDeviceListOrBuilderList() {
      return deviceList_;
    }
    /**
     * <code>repeated .context.DeviceId deviceList = 9;</code>
     */
    @java.lang.Override
    public int getDeviceListCount() {
      return deviceList_.size();
    }
    /**
     * <code>repeated .context.DeviceId deviceList = 9;</code>
     */
    @java.lang.Override
    public context.ContextOuterClass.DeviceId getDeviceList(int index) {
      return deviceList_.get(index);
    }
    /**
     * <code>repeated .context.DeviceId deviceList = 9;</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 (priority_ != 0) {
        output.writeUInt32(3, priority_);
      }
      if (event_ != null) {
        output.writeMessage(4, getEvent());
      }
      for (int i = 0; i < conditionList_.size(); i++) {
        output.writeMessage(5, conditionList_.get(i));
      }
      if (booleanOperator_ != policy.PolicyCondition.BooleanOperator.POLICYRULE_CONDITION_BOOLEAN_UNDEFINED.getNumber()) {
        output.writeEnum(6, booleanOperator_);
      }
      for (int i = 0; i < actionList_.size(); i++) {
        output.writeMessage(7, actionList_.get(i));
      }
      if (serviceId_ != null) {
        output.writeMessage(8, getServiceId());
      }
      for (int i = 0; i < deviceList_.size(); i++) {
        output.writeMessage(9, 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 (priority_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeUInt32Size(3, priority_);
      }
      if (event_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(4, getEvent());
      }
      for (int i = 0; i < conditionList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(5, conditionList_.get(i));
      }
      if (booleanOperator_ != policy.PolicyCondition.BooleanOperator.POLICYRULE_CONDITION_BOOLEAN_UNDEFINED.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(6, booleanOperator_);
      }
      for (int i = 0; i < actionList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(7, actionList_.get(i));
      }
      if (serviceId_ != null) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(8, getServiceId());
      }
      for (int i = 0; i < deviceList_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(9, 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 (getPriority()
          != other.getPriority()) return false;
      if (hasEvent() != other.hasEvent()) return false;
      if (hasEvent()) {
        if (!getEvent()
            .equals(other.getEvent())) return false;
      }
      if (!getConditionListList()
          .equals(other.getConditionListList())) return false;
      if (booleanOperator_ != other.booleanOperator_) return false;
      if (!getActionListList()
          .equals(other.getActionListList())) return false;
      if (hasServiceId() != other.hasServiceId()) return false;
      if (hasServiceId()) {
        if (!getServiceId()
            .equals(other.getServiceId())) 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) + PRIORITY_FIELD_NUMBER;
      hash = (53 * hash) + getPriority();
      if (hasEvent()) {
        hash = (37 * hash) + EVENT_FIELD_NUMBER;
        hash = (53 * hash) + getEvent().hashCode();
      }
      if (getConditionListCount() > 0) {
        hash = (37 * hash) + CONDITIONLIST_FIELD_NUMBER;
        hash = (53 * hash) + getConditionListList().hashCode();
      }
      hash = (37 * hash) + BOOLEANOPERATOR_FIELD_NUMBER;
      hash = (53 * hash) + booleanOperator_;
      if (getActionListCount() > 0) {
        hash = (37 * hash) + ACTIONLIST_FIELD_NUMBER;
        hash = (53 * hash) + getActionListList().hashCode();
      }
      if (hasServiceId()) {
        hash = (37 * hash) + SERVICEID_FIELD_NUMBER;
        hash = (53 * hash) + getServiceId().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) {
          getConditionListFieldBuilder();
          getActionListFieldBuilder();
          getDeviceListFieldBuilder();
        }
      }
      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (policyRuleIdBuilder_ == null) {
          policyRuleId_ = null;
        } else {
          policyRuleId_ = null;
          policyRuleIdBuilder_ = null;
        }
        policyRuleType_ = 0;

        priority_ = 0;

        if (eventBuilder_ == null) {
          event_ = null;
        } else {
          event_ = null;
          eventBuilder_ = null;
        }
        if (conditionListBuilder_ == null) {
          conditionList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          conditionListBuilder_.clear();
        }
        booleanOperator_ = 0;

        if (actionListBuilder_ == null) {
          actionList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          actionListBuilder_.clear();
        }
        if (serviceIdBuilder_ == null) {
          serviceId_ = null;
        } else {
          serviceId_ = null;
          serviceIdBuilder_ = null;
        }
        if (deviceListBuilder_ == null) {
          deviceList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
        } 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.priority_ = priority_;
        if (eventBuilder_ == null) {
          result.event_ = event_;
        } else {
          result.event_ = eventBuilder_.build();
        }
        if (conditionListBuilder_ == null) {
          if (((bitField0_ & 0x00000001) != 0)) {
            conditionList_ = java.util.Collections.unmodifiableList(conditionList_);
            bitField0_ = (bitField0_ & ~0x00000001);
          }
          result.conditionList_ = conditionList_;
        } else {
          result.conditionList_ = conditionListBuilder_.build();
        }
        result.booleanOperator_ = booleanOperator_;
        if (actionListBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)) {
            actionList_ = java.util.Collections.unmodifiableList(actionList_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.actionList_ = actionList_;
        } else {
          result.actionList_ = actionListBuilder_.build();
        }
        if (serviceIdBuilder_ == null) {
          result.serviceId_ = serviceId_;
        } else {
          result.serviceId_ = serviceIdBuilder_.build();
        }
        if (deviceListBuilder_ == null) {
          if (((bitField0_ & 0x00000004) != 0)) {
            deviceList_ = java.util.Collections.unmodifiableList(deviceList_);
            bitField0_ = (bitField0_ & ~0x00000004);
          }
          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.getPriority() != 0) {
          setPriority(other.getPriority());
        }
        if (other.hasEvent()) {
          mergeEvent(other.getEvent());
        }
        if (conditionListBuilder_ == null) {
          if (!other.conditionList_.isEmpty()) {
            if (conditionList_.isEmpty()) {
              conditionList_ = other.conditionList_;
              bitField0_ = (bitField0_ & ~0x00000001);
            } else {
              ensureConditionListIsMutable();
              conditionList_.addAll(other.conditionList_);
            }
            onChanged();
          }
        } else {
          if (!other.conditionList_.isEmpty()) {
            if (conditionListBuilder_.isEmpty()) {
              conditionListBuilder_.dispose();
              conditionListBuilder_ = null;
              conditionList_ = other.conditionList_;
              bitField0_ = (bitField0_ & ~0x00000001);
              conditionListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getConditionListFieldBuilder() : null;
            } else {
              conditionListBuilder_.addAllMessages(other.conditionList_);
            }
          }
        }
        if (other.booleanOperator_ != 0) {
          setBooleanOperatorValue(other.getBooleanOperatorValue());
        }
        if (actionListBuilder_ == null) {
          if (!other.actionList_.isEmpty()) {
            if (actionList_.isEmpty()) {
              actionList_ = other.actionList_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureActionListIsMutable();
              actionList_.addAll(other.actionList_);
            }
            onChanged();
          }
        } else {
          if (!other.actionList_.isEmpty()) {
            if (actionListBuilder_.isEmpty()) {
              actionListBuilder_.dispose();
              actionListBuilder_ = null;
              actionList_ = other.actionList_;
              bitField0_ = (bitField0_ & ~0x00000002);
              actionListBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getActionListFieldBuilder() : null;
            } else {
              actionListBuilder_.addAllMessages(other.actionList_);
            }
          }
        }
        if (other.hasServiceId()) {
          mergeServiceId(other.getServiceId());
        }
        if (deviceListBuilder_ == null) {
          if (!other.deviceList_.isEmpty()) {
            if (deviceList_.isEmpty()) {
              deviceList_ = other.deviceList_;
              bitField0_ = (bitField0_ & ~0x00000004);
            } else {
              ensureDeviceListIsMutable();
              deviceList_.addAll(other.deviceList_);
            }
            onChanged();
          }
        } else {
          if (!other.deviceList_.isEmpty()) {
            if (deviceListBuilder_.isEmpty()) {
              deviceListBuilder_.dispose();
              deviceListBuilder_ = null;
              deviceList_ = other.deviceList_;
              bitField0_ = (bitField0_ & ~0x00000004);
              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 priority_ ;
      /**
       * <code>uint32 priority = 3;</code>
       * @return The priority.
       */
      @java.lang.Override
      public int getPriority() {
        return priority_;
      }
      /**
       * <code>uint32 priority = 3;</code>
       * @param value The priority to set.
       * @return This builder for chaining.
       */
      public Builder setPriority(int value) {
        
        priority_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>uint32 priority = 3;</code>
       * @return This builder for chaining.
       */
      public Builder clearPriority() {
        
        priority_ = 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.PolicyCondition.PolicyRuleCondition> conditionList_ =
        java.util.Collections.emptyList();
      private void ensureConditionListIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          conditionList_ = new java.util.ArrayList<policy.PolicyCondition.PolicyRuleCondition>(conditionList_);
          bitField0_ |= 0x00000001;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          policy.PolicyCondition.PolicyRuleCondition, policy.PolicyCondition.PolicyRuleCondition.Builder, policy.PolicyCondition.PolicyRuleConditionOrBuilder> conditionListBuilder_;

      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public java.util.List<policy.PolicyCondition.PolicyRuleCondition> getConditionListList() {
        if (conditionListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(conditionList_);
        } else {
          return conditionListBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public int getConditionListCount() {
        if (conditionListBuilder_ == null) {
          return conditionList_.size();
        } else {
          return conditionListBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public policy.PolicyCondition.PolicyRuleCondition getConditionList(int index) {
        if (conditionListBuilder_ == null) {
          return conditionList_.get(index);
        } else {
          return conditionListBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public Builder setConditionList(
          int index, policy.PolicyCondition.PolicyRuleCondition value) {
        if (conditionListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureConditionListIsMutable();
          conditionList_.set(index, value);
          onChanged();
        } else {
          conditionListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public Builder setConditionList(
          int index, policy.PolicyCondition.PolicyRuleCondition.Builder builderForValue) {
        if (conditionListBuilder_ == null) {
          ensureConditionListIsMutable();
          conditionList_.set(index, builderForValue.build());
          onChanged();
        } else {
          conditionListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public Builder addConditionList(policy.PolicyCondition.PolicyRuleCondition value) {
        if (conditionListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureConditionListIsMutable();
          conditionList_.add(value);
          onChanged();
        } else {
          conditionListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public Builder addConditionList(
          int index, policy.PolicyCondition.PolicyRuleCondition value) {
        if (conditionListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureConditionListIsMutable();
          conditionList_.add(index, value);
          onChanged();
        } else {
          conditionListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public Builder addConditionList(
          policy.PolicyCondition.PolicyRuleCondition.Builder builderForValue) {
        if (conditionListBuilder_ == null) {
          ensureConditionListIsMutable();
          conditionList_.add(builderForValue.build());
          onChanged();
        } else {
          conditionListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public Builder addConditionList(
          int index, policy.PolicyCondition.PolicyRuleCondition.Builder builderForValue) {
        if (conditionListBuilder_ == null) {
          ensureConditionListIsMutable();
          conditionList_.add(index, builderForValue.build());
          onChanged();
        } else {
          conditionListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public Builder addAllConditionList(
          java.lang.Iterable<? extends policy.PolicyCondition.PolicyRuleCondition> values) {
        if (conditionListBuilder_ == null) {
          ensureConditionListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, conditionList_);
          onChanged();
        } else {
          conditionListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public Builder clearConditionList() {
        if (conditionListBuilder_ == null) {
          conditionList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000001);
          onChanged();
        } else {
          conditionListBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public Builder removeConditionList(int index) {
        if (conditionListBuilder_ == null) {
          ensureConditionListIsMutable();
          conditionList_.remove(index);
          onChanged();
        } else {
          conditionListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public policy.PolicyCondition.PolicyRuleCondition.Builder getConditionListBuilder(
          int index) {
        return getConditionListFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public policy.PolicyCondition.PolicyRuleConditionOrBuilder getConditionListOrBuilder(
          int index) {
        if (conditionListBuilder_ == null) {
          return conditionList_.get(index);  } else {
          return conditionListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public java.util.List<? extends policy.PolicyCondition.PolicyRuleConditionOrBuilder> 
           getConditionListOrBuilderList() {
        if (conditionListBuilder_ != null) {
          return conditionListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(conditionList_);
        }
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public policy.PolicyCondition.PolicyRuleCondition.Builder addConditionListBuilder() {
        return getConditionListFieldBuilder().addBuilder(
            policy.PolicyCondition.PolicyRuleCondition.getDefaultInstance());
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public policy.PolicyCondition.PolicyRuleCondition.Builder addConditionListBuilder(
          int index) {
        return getConditionListFieldBuilder().addBuilder(
            index, policy.PolicyCondition.PolicyRuleCondition.getDefaultInstance());
      }
      /**
       * <pre>
       * One or more conditions must be met
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleCondition conditionList = 5;</code>
       */
      public java.util.List<policy.PolicyCondition.PolicyRuleCondition.Builder> 
           getConditionListBuilderList() {
        return getConditionListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          policy.PolicyCondition.PolicyRuleCondition, policy.PolicyCondition.PolicyRuleCondition.Builder, policy.PolicyCondition.PolicyRuleConditionOrBuilder> 
          getConditionListFieldBuilder() {
        if (conditionListBuilder_ == null) {
          conditionListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              policy.PolicyCondition.PolicyRuleCondition, policy.PolicyCondition.PolicyRuleCondition.Builder, policy.PolicyCondition.PolicyRuleConditionOrBuilder>(
                  conditionList_,
                  ((bitField0_ & 0x00000001) != 0),
                  getParentForChildren(),
                  isClean());
          conditionList_ = null;
        }
        return conditionListBuilder_;
      }

      private int booleanOperator_ = 0;
      /**
       * <pre>
       * Evaluation operator to be used
       * </pre>
       *
       * <code>.policy.BooleanOperator booleanOperator = 6;</code>
       * @return The enum numeric value on the wire for booleanOperator.
       */
      @java.lang.Override public int getBooleanOperatorValue() {
        return booleanOperator_;
      }
      /**
       * <pre>
       * Evaluation operator to be used
       * </pre>
       *
       * <code>.policy.BooleanOperator booleanOperator = 6;</code>
       * @param value The enum numeric value on the wire for booleanOperator to set.
       * @return This builder for chaining.
       */
      public Builder setBooleanOperatorValue(int value) {
        
        booleanOperator_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Evaluation operator to be used
       * </pre>
       *
       * <code>.policy.BooleanOperator booleanOperator = 6;</code>
       * @return The booleanOperator.
       */
      @java.lang.Override
      public policy.PolicyCondition.BooleanOperator getBooleanOperator() {
        @SuppressWarnings("deprecation")
        policy.PolicyCondition.BooleanOperator result = policy.PolicyCondition.BooleanOperator.valueOf(booleanOperator_);
        return result == null ? policy.PolicyCondition.BooleanOperator.UNRECOGNIZED : result;
      }
      /**
       * <pre>
       * Evaluation operator to be used
       * </pre>
       *
       * <code>.policy.BooleanOperator booleanOperator = 6;</code>
       * @param value The booleanOperator to set.
       * @return This builder for chaining.
       */
      public Builder setBooleanOperator(policy.PolicyCondition.BooleanOperator value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        booleanOperator_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Evaluation operator to be used
       * </pre>
       *
       * <code>.policy.BooleanOperator booleanOperator = 6;</code>
       * @return This builder for chaining.
       */
      public Builder clearBooleanOperator() {
        
        booleanOperator_ = 0;
        onChanged();
        return this;
      }

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

      private com.google.protobuf.RepeatedFieldBuilderV3<
          policy.PolicyAction.PolicyRuleAction, policy.PolicyAction.PolicyRuleAction.Builder, policy.PolicyAction.PolicyRuleActionOrBuilder> actionListBuilder_;

      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public java.util.List<policy.PolicyAction.PolicyRuleAction> getActionListList() {
        if (actionListBuilder_ == null) {
          return java.util.Collections.unmodifiableList(actionList_);
        } else {
          return actionListBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public int getActionListCount() {
        if (actionListBuilder_ == null) {
          return actionList_.size();
        } else {
          return actionListBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public policy.PolicyAction.PolicyRuleAction getActionList(int index) {
        if (actionListBuilder_ == null) {
          return actionList_.get(index);
        } else {
          return actionListBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public Builder setActionList(
          int index, policy.PolicyAction.PolicyRuleAction value) {
        if (actionListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureActionListIsMutable();
          actionList_.set(index, value);
          onChanged();
        } else {
          actionListBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public Builder setActionList(
          int index, policy.PolicyAction.PolicyRuleAction.Builder builderForValue) {
        if (actionListBuilder_ == null) {
          ensureActionListIsMutable();
          actionList_.set(index, builderForValue.build());
          onChanged();
        } else {
          actionListBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public Builder addActionList(policy.PolicyAction.PolicyRuleAction value) {
        if (actionListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureActionListIsMutable();
          actionList_.add(value);
          onChanged();
        } else {
          actionListBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public Builder addActionList(
          int index, policy.PolicyAction.PolicyRuleAction value) {
        if (actionListBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureActionListIsMutable();
          actionList_.add(index, value);
          onChanged();
        } else {
          actionListBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public Builder addActionList(
          policy.PolicyAction.PolicyRuleAction.Builder builderForValue) {
        if (actionListBuilder_ == null) {
          ensureActionListIsMutable();
          actionList_.add(builderForValue.build());
          onChanged();
        } else {
          actionListBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public Builder addActionList(
          int index, policy.PolicyAction.PolicyRuleAction.Builder builderForValue) {
        if (actionListBuilder_ == null) {
          ensureActionListIsMutable();
          actionList_.add(index, builderForValue.build());
          onChanged();
        } else {
          actionListBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public Builder addAllActionList(
          java.lang.Iterable<? extends policy.PolicyAction.PolicyRuleAction> values) {
        if (actionListBuilder_ == null) {
          ensureActionListIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, actionList_);
          onChanged();
        } else {
          actionListBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public Builder clearActionList() {
        if (actionListBuilder_ == null) {
          actionList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          actionListBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public Builder removeActionList(int index) {
        if (actionListBuilder_ == null) {
          ensureActionListIsMutable();
          actionList_.remove(index);
          onChanged();
        } else {
          actionListBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public policy.PolicyAction.PolicyRuleAction.Builder getActionListBuilder(
          int index) {
        return getActionListFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public policy.PolicyAction.PolicyRuleActionOrBuilder getActionListOrBuilder(
          int index) {
        if (actionListBuilder_ == null) {
          return actionList_.get(index);  } else {
          return actionListBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public java.util.List<? extends policy.PolicyAction.PolicyRuleActionOrBuilder> 
           getActionListOrBuilderList() {
        if (actionListBuilder_ != null) {
          return actionListBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(actionList_);
        }
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public policy.PolicyAction.PolicyRuleAction.Builder addActionListBuilder() {
        return getActionListFieldBuilder().addBuilder(
            policy.PolicyAction.PolicyRuleAction.getDefaultInstance());
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public policy.PolicyAction.PolicyRuleAction.Builder addActionListBuilder(
          int index) {
        return getActionListFieldBuilder().addBuilder(
            index, policy.PolicyAction.PolicyRuleAction.getDefaultInstance());
      }
      /**
       * <pre>
       * One or more actions should be applied
       * </pre>
       *
       * <code>repeated .policy.PolicyRuleAction actionList = 7;</code>
       */
      public java.util.List<policy.PolicyAction.PolicyRuleAction.Builder> 
           getActionListBuilderList() {
        return getActionListFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          policy.PolicyAction.PolicyRuleAction, policy.PolicyAction.PolicyRuleAction.Builder, policy.PolicyAction.PolicyRuleActionOrBuilder> 
          getActionListFieldBuilder() {
        if (actionListBuilder_ == null) {
          actionListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              policy.PolicyAction.PolicyRuleAction, policy.PolicyAction.PolicyRuleAction.Builder, policy.PolicyAction.PolicyRuleActionOrBuilder>(
                  actionList_,
                  ((bitField0_ & 0x00000002) != 0),
                  getParentForChildren(),
                  isClean());
          actionList_ = null;
        }
        return actionListBuilder_;
      }

      private context.ContextOuterClass.ServiceId serviceId_;
      private com.google.protobuf.SingleFieldBuilderV3<
          context.ContextOuterClass.ServiceId, context.ContextOuterClass.ServiceId.Builder, context.ContextOuterClass.ServiceIdOrBuilder> serviceIdBuilder_;
      /**
       * <pre>
       * Affected service and devices
       * </pre>
       *
       * <code>.context.ServiceId serviceId = 8;</code>
       * @return Whether the serviceId field is set.
       */
      public boolean hasServiceId() {
        return serviceIdBuilder_ != null || serviceId_ != null;
      }
      /**
       * <pre>
       * Affected service and devices
       * </pre>
       *
       * <code>.context.ServiceId serviceId = 8;</code>
       * @return The serviceId.
       */
      public context.ContextOuterClass.ServiceId getServiceId() {
        if (serviceIdBuilder_ == null) {
          return serviceId_ == null ? context.ContextOuterClass.ServiceId.getDefaultInstance() : serviceId_;
        } else {
          return serviceIdBuilder_.getMessage();
        }
      }
      /**
       * <pre>
       * Affected service and devices
       * </pre>
       *
       * <code>.context.ServiceId serviceId = 8;</code>
       */
      public Builder setServiceId(context.ContextOuterClass.ServiceId value) {
        if (serviceIdBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          serviceId_ = value;
          onChanged();
        } else {
          serviceIdBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       * <pre>
       * Affected service and devices
       * </pre>
       *
       * <code>.context.ServiceId serviceId = 8;</code>
       */
      public Builder setServiceId(
          context.ContextOuterClass.ServiceId.Builder builderForValue) {
        if (serviceIdBuilder_ == null) {
          serviceId_ = builderForValue.build();
          onChanged();
        } else {
          serviceIdBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       * <pre>
       * Affected service and devices
       * </pre>
       *
       * <code>.context.ServiceId serviceId = 8;</code>
       */
      public Builder mergeServiceId(context.ContextOuterClass.ServiceId value) {
        if (serviceIdBuilder_ == null) {
          if (serviceId_ != null) {
            serviceId_ =
              context.ContextOuterClass.ServiceId.newBuilder(serviceId_).mergeFrom(value).buildPartial();
          } else {
            serviceId_ = value;
          }
          onChanged();
        } else {
          serviceIdBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       * <pre>
       * Affected service and devices
       * </pre>
       *
       * <code>.context.ServiceId serviceId = 8;</code>
       */
      public Builder clearServiceId() {
        if (serviceIdBuilder_ == null) {
          serviceId_ = null;
          onChanged();
        } else {
          serviceId_ = null;
          serviceIdBuilder_ = null;
        }

        return this;
      }
      /**
       * <pre>
       * Affected service and devices
       * </pre>
       *
       * <code>.context.ServiceId serviceId = 8;</code>
       */
      public context.ContextOuterClass.ServiceId.Builder getServiceIdBuilder() {
        
        onChanged();
        return getServiceIdFieldBuilder().getBuilder();
      }
      /**
       * <pre>
       * Affected service and devices
       * </pre>
       *
       * <code>.context.ServiceId serviceId = 8;</code>
       */
      public context.ContextOuterClass.ServiceIdOrBuilder getServiceIdOrBuilder() {
        if (serviceIdBuilder_ != null) {
          return serviceIdBuilder_.getMessageOrBuilder();
        } else {
          return serviceId_ == null ?
              context.ContextOuterClass.ServiceId.getDefaultInstance() : serviceId_;
        }
      }
      /**
       * <pre>
       * Affected service and devices
       * </pre>
       *
       * <code>.context.ServiceId serviceId = 8;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
          context.ContextOuterClass.ServiceId, context.ContextOuterClass.ServiceId.Builder, context.ContextOuterClass.ServiceIdOrBuilder> 
          getServiceIdFieldBuilder() {
        if (serviceIdBuilder_ == null) {
          serviceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
              context.ContextOuterClass.ServiceId, context.ContextOuterClass.ServiceId.Builder, context.ContextOuterClass.ServiceIdOrBuilder>(
                  getServiceId(),
                  getParentForChildren(),
                  isClean());
          serviceId_ = null;
        }
        return serviceIdBuilder_;
      }

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

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

      /**
       * <code>repeated .context.DeviceId deviceList = 9;</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 = 9;</code>
       */
      public int getDeviceListCount() {
        if (deviceListBuilder_ == null) {
          return deviceList_.size();
        } else {
          return deviceListBuilder_.getCount();
        }
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</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 = 9;</code>
       */
      public Builder clearDeviceList() {
        if (deviceListBuilder_ == null) {
          deviceList_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000004);
          onChanged();
        } else {
          deviceListBuilder_.clear();
        }
        return this;
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 9;</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 = 9;</code>
       */
      public context.ContextOuterClass.DeviceId.Builder getDeviceListBuilder(
          int index) {
        return getDeviceListFieldBuilder().getBuilder(index);
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 9;</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 = 9;</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 = 9;</code>
       */
      public context.ContextOuterClass.DeviceId.Builder addDeviceListBuilder() {
        return getDeviceListFieldBuilder().addBuilder(
            context.ContextOuterClass.DeviceId.getDefaultInstance());
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 9;</code>
       */
      public context.ContextOuterClass.DeviceId.Builder addDeviceListBuilder(
          int index) {
        return getDeviceListFieldBuilder().addBuilder(
            index, context.ContextOuterClass.DeviceId.getDefaultInstance());
      }
      /**
       * <code>repeated .context.DeviceId deviceList = 9;</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_ & 0x00000004) != 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_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_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\032\026p" +
      "olicy-condition.proto\032\023policy-action.pro" +
      "to\"+\n\014PolicyRuleId\022\033\n\004uuid\030\001 \001(\0132\r.conte" +
      "xt.Uuid\"b\n\017PolicyRuleState\022#\n\014policyRule" +
      "Id\030\001 \001(\0132\r.context.Uuid\022*\n\017policyRuleSta" +
      "te\030\002 \001(\0162\021.policy.RuleState\"0\n\017PolicyRul" +
      "eEvent\022\035\n\005event\030\001 \001(\0132\016.context.Event\"\204\003" +
      "\n\nPolicyRule\022*\n\014policyRuleId\030\001 \001(\0132\024.pol" +
      "icy.PolicyRuleId\022.\n\016policyRuleType\030\002 \001(\016" +
      "2\026.policy.PolicyRuleType\022\020\n\010priority\030\003 \001" +
      "(\r\022&\n\005event\030\004 \001(\0132\027.policy.PolicyRuleEve" +
      "nt\0222\n\rconditionList\030\005 \003(\0132\033.policy.Polic" +
      "yRuleCondition\0220\n\017booleanOperator\030\006 \001(\0162" +
      "\027.policy.BooleanOperator\022,\n\nactionList\030\007" +
      " \003(\0132\030.policy.PolicyRuleAction\022%\n\tservic" +
      "eId\030\010 \001(\0132\022.context.ServiceId\022%\n\ndeviceL" +
      "ist\030\t \003(\0132\021.context.DeviceId\"<\n\016PolicyRu" +
      "leList\022*\n\016policyRuleList\030\001 \003(\0132\022.policy." +
      "PolicyRule*G\n\tRuleState\022\023\n\017POLICY_INACTI" +
      "VE\020\000\022\022\n\016POLICY_PLANNED\020\001\022\021\n\rPOLICY_ACTIV" +
      "E\020\002*?\n\016PolicyRuleType\022\025\n\021POLICYTYPE_DEVI" +
      "CE\020\000\022\026\n\022POLICYTYPE_NETWORK\020\0012\214\003\n\rPolicyS" +
      "ervice\022:\n\tPolicyAdd\022\022.policy.PolicyRule\032" +
      "\027.policy.PolicyRuleState\"\000\022=\n\014PolicyUpda" +
      "te\022\022.policy.PolicyRule\032\027.policy.PolicyRu" +
      "leState\"\000\022=\n\014PolicyDelete\022\022.policy.Polic" +
      "yRule\032\027.policy.PolicyRuleState\"\000\0227\n\tGetP" +
      "olicy\022\024.policy.PolicyRuleId\032\022.policy.Pol" +
      "icyRule\"\000\022B\n\023GetPolicyByDeviceId\022\021.conte" +
      "xt.DeviceId\032\026.policy.PolicyRuleList\"\000\022D\n" +
      "\024GetPolicyByServiceId\022\022.context.ServiceI" +
      "d\032\026.policy.PolicyRuleList\"\000b\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
          context.ContextOuterClass.getDescriptor(),
          policy.PolicyCondition.getDescriptor(),
          policy.PolicyAction.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_PolicyRuleEvent_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_policy_PolicyRuleEvent_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRuleEvent_descriptor,
        new java.lang.String[] { "Event", });
    internal_static_policy_PolicyRule_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_policy_PolicyRule_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRule_descriptor,
        new java.lang.String[] { "PolicyRuleId", "PolicyRuleType", "Priority", "Event", "ConditionList", "BooleanOperator", "ActionList", "ServiceId", "DeviceList", });
    internal_static_policy_PolicyRuleList_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_policy_PolicyRuleList_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRuleList_descriptor,
        new java.lang.String[] { "PolicyRuleList", });
    context.ContextOuterClass.getDescriptor();
    policy.PolicyCondition.getDescriptor();
    policy.PolicyAction.getDescriptor();
  }

  // @@protoc_insertion_point(outer_class_scope)
}
