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

package policy;

public final class PolicyAction {
  private PolicyAction() {}
  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.PolicyRuleActionEnum}
   */
  public enum PolicyRuleActionEnum
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * <code>POLICYRULE_ACTION_NO_ACTION = 0;</code>
     */
    POLICYRULE_ACTION_NO_ACTION(0),
    /**
     * <code>POLICYRULE_ACTION_SET_DEVICE_STATUS = 1;</code>
     */
    POLICYRULE_ACTION_SET_DEVICE_STATUS(1),
    /**
     * <code>POLICYRULE_ACTION_ADD_SERVICE_CONFIGRULE = 2;</code>
     */
    POLICYRULE_ACTION_ADD_SERVICE_CONFIGRULE(2),
    /**
     * <code>POLICYRULE_ACTION_ADD_SERVICE_CONSTRAINT = 3;</code>
     */
    POLICYRULE_ACTION_ADD_SERVICE_CONSTRAINT(3),
    UNRECOGNIZED(-1),
    ;

    /**
     * <code>POLICYRULE_ACTION_NO_ACTION = 0;</code>
     */
    public static final int POLICYRULE_ACTION_NO_ACTION_VALUE = 0;
    /**
     * <code>POLICYRULE_ACTION_SET_DEVICE_STATUS = 1;</code>
     */
    public static final int POLICYRULE_ACTION_SET_DEVICE_STATUS_VALUE = 1;
    /**
     * <code>POLICYRULE_ACTION_ADD_SERVICE_CONFIGRULE = 2;</code>
     */
    public static final int POLICYRULE_ACTION_ADD_SERVICE_CONFIGRULE_VALUE = 2;
    /**
     * <code>POLICYRULE_ACTION_ADD_SERVICE_CONSTRAINT = 3;</code>
     */
    public static final int POLICYRULE_ACTION_ADD_SERVICE_CONSTRAINT_VALUE = 3;


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

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static PolicyRuleActionEnum 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 PolicyRuleActionEnum forNumber(int value) {
      switch (value) {
        case 0: return POLICYRULE_ACTION_NO_ACTION;
        case 1: return POLICYRULE_ACTION_SET_DEVICE_STATUS;
        case 2: return POLICYRULE_ACTION_ADD_SERVICE_CONFIGRULE;
        case 3: return POLICYRULE_ACTION_ADD_SERVICE_CONSTRAINT;
        default: return null;
      }
    }

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

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

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

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

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

    /**
     * <code>.policy.PolicyRuleActionEnum action = 1;</code>
     * @return The enum numeric value on the wire for action.
     */
    int getActionValue();
    /**
     * <code>.policy.PolicyRuleActionEnum action = 1;</code>
     * @return The action.
     */
    policy.PolicyAction.PolicyRuleActionEnum getAction();

    /**
     * <code>repeated string parameters = 2;</code>
     * @return A list containing the parameters.
     */
    java.util.List<java.lang.String>
        getParametersList();
    /**
     * <code>repeated string parameters = 2;</code>
     * @return The count of parameters.
     */
    int getParametersCount();
    /**
     * <code>repeated string parameters = 2;</code>
     * @param index The index of the element to return.
     * @return The parameters at the given index.
     */
    java.lang.String getParameters(int index);
    /**
     * <code>repeated string parameters = 2;</code>
     * @param index The index of the value to return.
     * @return The bytes of the parameters at the given index.
     */
    com.google.protobuf.ByteString
        getParametersBytes(int index);
  }
  /**
   * <pre>
   * Action
   * </pre>
   *
   * Protobuf type {@code policy.PolicyRuleAction}
   */
  public static final class PolicyRuleAction extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:policy.PolicyRuleAction)
      PolicyRuleActionOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use PolicyRuleAction.newBuilder() to construct.
    private PolicyRuleAction(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PolicyRuleAction() {
      action_ = 0;
      parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private PolicyRuleAction(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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 8: {
              int rawValue = input.readEnum();

              action_ = rawValue;
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                parameters_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              parameters_.add(s);
              break;
            }
            default: {
              if (!parseUnknownField(
                  input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e).setUnfinishedMessage(this);
      } finally {
        if (((mutable_bitField0_ & 0x00000001) != 0)) {
          parameters_ = parameters_.getUnmodifiableView();
        }
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return policy.PolicyAction.internal_static_policy_PolicyRuleAction_descriptor;
    }

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

    public static final int ACTION_FIELD_NUMBER = 1;
    private int action_;
    /**
     * <code>.policy.PolicyRuleActionEnum action = 1;</code>
     * @return The enum numeric value on the wire for action.
     */
    @java.lang.Override public int getActionValue() {
      return action_;
    }
    /**
     * <code>.policy.PolicyRuleActionEnum action = 1;</code>
     * @return The action.
     */
    @java.lang.Override public policy.PolicyAction.PolicyRuleActionEnum getAction() {
      @SuppressWarnings("deprecation")
      policy.PolicyAction.PolicyRuleActionEnum result = policy.PolicyAction.PolicyRuleActionEnum.valueOf(action_);
      return result == null ? policy.PolicyAction.PolicyRuleActionEnum.UNRECOGNIZED : result;
    }

    public static final int PARAMETERS_FIELD_NUMBER = 2;
    private com.google.protobuf.LazyStringList parameters_;
    /**
     * <code>repeated string parameters = 2;</code>
     * @return A list containing the parameters.
     */
    public com.google.protobuf.ProtocolStringList
        getParametersList() {
      return parameters_;
    }
    /**
     * <code>repeated string parameters = 2;</code>
     * @return The count of parameters.
     */
    public int getParametersCount() {
      return parameters_.size();
    }
    /**
     * <code>repeated string parameters = 2;</code>
     * @param index The index of the element to return.
     * @return The parameters at the given index.
     */
    public java.lang.String getParameters(int index) {
      return parameters_.get(index);
    }
    /**
     * <code>repeated string parameters = 2;</code>
     * @param index The index of the value to return.
     * @return The bytes of the parameters at the given index.
     */
    public com.google.protobuf.ByteString
        getParametersBytes(int index) {
      return parameters_.getByteString(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 (action_ != policy.PolicyAction.PolicyRuleActionEnum.POLICYRULE_ACTION_NO_ACTION.getNumber()) {
        output.writeEnum(1, action_);
      }
      for (int i = 0; i < parameters_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameters_.getRaw(i));
      }
      unknownFields.writeTo(output);
    }

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

      size = 0;
      if (action_ != policy.PolicyAction.PolicyRuleActionEnum.POLICYRULE_ACTION_NO_ACTION.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(1, action_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < parameters_.size(); i++) {
          dataSize += computeStringSizeNoTag(parameters_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getParametersList().size();
      }
      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.PolicyAction.PolicyRuleAction)) {
        return super.equals(obj);
      }
      policy.PolicyAction.PolicyRuleAction other = (policy.PolicyAction.PolicyRuleAction) obj;

      if (action_ != other.action_) return false;
      if (!getParametersList()
          .equals(other.getParametersList())) return false;
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + ACTION_FIELD_NUMBER;
      hash = (53 * hash) + action_;
      if (getParametersCount() > 0) {
        hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
        hash = (53 * hash) + getParametersList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

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

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

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * <pre>
     * Action
     * </pre>
     *
     * Protobuf type {@code policy.PolicyRuleAction}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:policy.PolicyRuleAction)
        policy.PolicyAction.PolicyRuleActionOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return policy.PolicyAction.internal_static_policy_PolicyRuleAction_descriptor;
      }

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

      // Construct using policy.PolicyAction.PolicyRuleAction.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

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

        parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        return this;
      }

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

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

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

      @java.lang.Override
      public policy.PolicyAction.PolicyRuleAction buildPartial() {
        policy.PolicyAction.PolicyRuleAction result = new policy.PolicyAction.PolicyRuleAction(this);
        int from_bitField0_ = bitField0_;
        result.action_ = action_;
        if (((bitField0_ & 0x00000001) != 0)) {
          parameters_ = parameters_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.parameters_ = parameters_;
        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.PolicyAction.PolicyRuleAction) {
          return mergeFrom((policy.PolicyAction.PolicyRuleAction)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(policy.PolicyAction.PolicyRuleAction other) {
        if (other == policy.PolicyAction.PolicyRuleAction.getDefaultInstance()) return this;
        if (other.action_ != 0) {
          setActionValue(other.getActionValue());
        }
        if (!other.parameters_.isEmpty()) {
          if (parameters_.isEmpty()) {
            parameters_ = other.parameters_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureParametersIsMutable();
            parameters_.addAll(other.parameters_);
          }
          onChanged();
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        policy.PolicyAction.PolicyRuleAction parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (policy.PolicyAction.PolicyRuleAction) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private int action_ = 0;
      /**
       * <code>.policy.PolicyRuleActionEnum action = 1;</code>
       * @return The enum numeric value on the wire for action.
       */
      @java.lang.Override public int getActionValue() {
        return action_;
      }
      /**
       * <code>.policy.PolicyRuleActionEnum action = 1;</code>
       * @param value The enum numeric value on the wire for action to set.
       * @return This builder for chaining.
       */
      public Builder setActionValue(int value) {
        
        action_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>.policy.PolicyRuleActionEnum action = 1;</code>
       * @return The action.
       */
      @java.lang.Override
      public policy.PolicyAction.PolicyRuleActionEnum getAction() {
        @SuppressWarnings("deprecation")
        policy.PolicyAction.PolicyRuleActionEnum result = policy.PolicyAction.PolicyRuleActionEnum.valueOf(action_);
        return result == null ? policy.PolicyAction.PolicyRuleActionEnum.UNRECOGNIZED : result;
      }
      /**
       * <code>.policy.PolicyRuleActionEnum action = 1;</code>
       * @param value The action to set.
       * @return This builder for chaining.
       */
      public Builder setAction(policy.PolicyAction.PolicyRuleActionEnum value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        action_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * <code>.policy.PolicyRuleActionEnum action = 1;</code>
       * @return This builder for chaining.
       */
      public Builder clearAction() {
        
        action_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.LazyStringList parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureParametersIsMutable() {
        if (!((bitField0_ & 0x00000001) != 0)) {
          parameters_ = new com.google.protobuf.LazyStringArrayList(parameters_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated string parameters = 2;</code>
       * @return A list containing the parameters.
       */
      public com.google.protobuf.ProtocolStringList
          getParametersList() {
        return parameters_.getUnmodifiableView();
      }
      /**
       * <code>repeated string parameters = 2;</code>
       * @return The count of parameters.
       */
      public int getParametersCount() {
        return parameters_.size();
      }
      /**
       * <code>repeated string parameters = 2;</code>
       * @param index The index of the element to return.
       * @return The parameters at the given index.
       */
      public java.lang.String getParameters(int index) {
        return parameters_.get(index);
      }
      /**
       * <code>repeated string parameters = 2;</code>
       * @param index The index of the value to return.
       * @return The bytes of the parameters at the given index.
       */
      public com.google.protobuf.ByteString
          getParametersBytes(int index) {
        return parameters_.getByteString(index);
      }
      /**
       * <code>repeated string parameters = 2;</code>
       * @param index The index to set the value at.
       * @param value The parameters to set.
       * @return This builder for chaining.
       */
      public Builder setParameters(
          int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureParametersIsMutable();
        parameters_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string parameters = 2;</code>
       * @param value The parameters to add.
       * @return This builder for chaining.
       */
      public Builder addParameters(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureParametersIsMutable();
        parameters_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string parameters = 2;</code>
       * @param values The parameters to add.
       * @return This builder for chaining.
       */
      public Builder addAllParameters(
          java.lang.Iterable<java.lang.String> values) {
        ensureParametersIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, parameters_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string parameters = 2;</code>
       * @return This builder for chaining.
       */
      public Builder clearParameters() {
        parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string parameters = 2;</code>
       * @param value The bytes of the parameters to add.
       * @return This builder for chaining.
       */
      public Builder addParametersBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        ensureParametersIsMutable();
        parameters_.add(value);
        onChanged();
        return this;
      }
      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }


      // @@protoc_insertion_point(builder_scope:policy.PolicyRuleAction)
    }

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

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

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

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

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

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

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_policy_PolicyRuleAction_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_policy_PolicyRuleAction_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n\023policy_action.proto\022\006policy\"T\n\020PolicyR" +
      "uleAction\022,\n\006action\030\001 \001(\0162\034.policy.Polic" +
      "yRuleActionEnum\022\022\n\nparameters\030\002 \003(\t*\274\001\n\024" +
      "PolicyRuleActionEnum\022\037\n\033POLICYRULE_ACTIO" +
      "N_NO_ACTION\020\000\022\'\n#POLICYRULE_ACTION_SET_D" +
      "EVICE_STATUS\020\001\022,\n(POLICYRULE_ACTION_ADD_" +
      "SERVICE_CONFIGRULE\020\002\022,\n(POLICYRULE_ACTIO" +
      "N_ADD_SERVICE_CONSTRAINT\020\003b\006proto3"
    };
    descriptor = com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        });
    internal_static_policy_PolicyRuleAction_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_policy_PolicyRuleAction_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_policy_PolicyRuleAction_descriptor,
        new java.lang.String[] { "Action", "Parameters", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
