// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: build/bazel/remote/execution/v2/remote_execution.proto

package build.bazel.remote.execution.v2;

/**
 * <pre>
 * Capabilities of the remote execution system.
 * </pre>
 *
 * Protobuf type {@code build.bazel.remote.execution.v2.ExecutionCapabilities}
 */
public  final class ExecutionCapabilities extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:build.bazel.remote.execution.v2.ExecutionCapabilities)
    ExecutionCapabilitiesOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ExecutionCapabilities.newBuilder() to construct.
  private ExecutionCapabilities(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private ExecutionCapabilities() {
    digestFunction_ = 0;
    execEnabled_ = false;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ExecutionCapabilities(
      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();

            digestFunction_ = rawValue;
            break;
          }
          case 16: {

            execEnabled_ = input.readBool();
            break;
          }
          case 26: {
            build.bazel.remote.execution.v2.PriorityCapabilities.Builder subBuilder = null;
            if (executionPriorityCapabilities_ != null) {
              subBuilder = executionPriorityCapabilities_.toBuilder();
            }
            executionPriorityCapabilities_ = input.readMessage(build.bazel.remote.execution.v2.PriorityCapabilities.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(executionPriorityCapabilities_);
              executionPriorityCapabilities_ = subBuilder.buildPartial();
            }

            break;
          }
          default: {
            if (!parseUnknownFieldProto3(
                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 build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ExecutionCapabilities_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ExecutionCapabilities_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            build.bazel.remote.execution.v2.ExecutionCapabilities.class, build.bazel.remote.execution.v2.ExecutionCapabilities.Builder.class);
  }

  public static final int DIGEST_FUNCTION_FIELD_NUMBER = 1;
  private int digestFunction_;
  /**
   * <pre>
   * Remote execution may only support a single digest function.
   * </pre>
   *
   * <code>.build.bazel.remote.execution.v2.DigestFunction digest_function = 1;</code>
   */
  public int getDigestFunctionValue() {
    return digestFunction_;
  }
  /**
   * <pre>
   * Remote execution may only support a single digest function.
   * </pre>
   *
   * <code>.build.bazel.remote.execution.v2.DigestFunction digest_function = 1;</code>
   */
  public build.bazel.remote.execution.v2.DigestFunction getDigestFunction() {
    @SuppressWarnings("deprecation")
    build.bazel.remote.execution.v2.DigestFunction result = build.bazel.remote.execution.v2.DigestFunction.valueOf(digestFunction_);
    return result == null ? build.bazel.remote.execution.v2.DigestFunction.UNRECOGNIZED : result;
  }

  public static final int EXEC_ENABLED_FIELD_NUMBER = 2;
  private boolean execEnabled_;
  /**
   * <pre>
   * Whether remote execution is enabled for the particular server/instance.
   * </pre>
   *
   * <code>bool exec_enabled = 2;</code>
   */
  public boolean getExecEnabled() {
    return execEnabled_;
  }

  public static final int EXECUTION_PRIORITY_CAPABILITIES_FIELD_NUMBER = 3;
  private build.bazel.remote.execution.v2.PriorityCapabilities executionPriorityCapabilities_;
  /**
   * <pre>
   * Supported execution priority range.
   * </pre>
   *
   * <code>.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;</code>
   */
  public boolean hasExecutionPriorityCapabilities() {
    return executionPriorityCapabilities_ != null;
  }
  /**
   * <pre>
   * Supported execution priority range.
   * </pre>
   *
   * <code>.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;</code>
   */
  public build.bazel.remote.execution.v2.PriorityCapabilities getExecutionPriorityCapabilities() {
    return executionPriorityCapabilities_ == null ? build.bazel.remote.execution.v2.PriorityCapabilities.getDefaultInstance() : executionPriorityCapabilities_;
  }
  /**
   * <pre>
   * Supported execution priority range.
   * </pre>
   *
   * <code>.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;</code>
   */
  public build.bazel.remote.execution.v2.PriorityCapabilitiesOrBuilder getExecutionPriorityCapabilitiesOrBuilder() {
    return getExecutionPriorityCapabilities();
  }

  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 (digestFunction_ != build.bazel.remote.execution.v2.DigestFunction.UNKNOWN.getNumber()) {
      output.writeEnum(1, digestFunction_);
    }
    if (execEnabled_ != false) {
      output.writeBool(2, execEnabled_);
    }
    if (executionPriorityCapabilities_ != null) {
      output.writeMessage(3, getExecutionPriorityCapabilities());
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (digestFunction_ != build.bazel.remote.execution.v2.DigestFunction.UNKNOWN.getNumber()) {
      size += com.google.protobuf.CodedOutputStream
        .computeEnumSize(1, digestFunction_);
    }
    if (execEnabled_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(2, execEnabled_);
    }
    if (executionPriorityCapabilities_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getExecutionPriorityCapabilities());
    }
    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 build.bazel.remote.execution.v2.ExecutionCapabilities)) {
      return super.equals(obj);
    }
    build.bazel.remote.execution.v2.ExecutionCapabilities other = (build.bazel.remote.execution.v2.ExecutionCapabilities) obj;

    boolean result = true;
    result = result && digestFunction_ == other.digestFunction_;
    result = result && (getExecEnabled()
        == other.getExecEnabled());
    result = result && (hasExecutionPriorityCapabilities() == other.hasExecutionPriorityCapabilities());
    if (hasExecutionPriorityCapabilities()) {
      result = result && getExecutionPriorityCapabilities()
          .equals(other.getExecutionPriorityCapabilities());
    }
    result = result && unknownFields.equals(other.unknownFields);
    return result;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    hash = (37 * hash) + DIGEST_FUNCTION_FIELD_NUMBER;
    hash = (53 * hash) + digestFunction_;
    hash = (37 * hash) + EXEC_ENABLED_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getExecEnabled());
    if (hasExecutionPriorityCapabilities()) {
      hash = (37 * hash) + EXECUTION_PRIORITY_CAPABILITIES_FIELD_NUMBER;
      hash = (53 * hash) + getExecutionPriorityCapabilities().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static build.bazel.remote.execution.v2.ExecutionCapabilities parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static build.bazel.remote.execution.v2.ExecutionCapabilities parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static build.bazel.remote.execution.v2.ExecutionCapabilities parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static build.bazel.remote.execution.v2.ExecutionCapabilities parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static build.bazel.remote.execution.v2.ExecutionCapabilities parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static build.bazel.remote.execution.v2.ExecutionCapabilities parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static build.bazel.remote.execution.v2.ExecutionCapabilities parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static build.bazel.remote.execution.v2.ExecutionCapabilities 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 build.bazel.remote.execution.v2.ExecutionCapabilities parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static build.bazel.remote.execution.v2.ExecutionCapabilities 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 build.bazel.remote.execution.v2.ExecutionCapabilities parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static build.bazel.remote.execution.v2.ExecutionCapabilities 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(build.bazel.remote.execution.v2.ExecutionCapabilities 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>
   * Capabilities of the remote execution system.
   * </pre>
   *
   * Protobuf type {@code build.bazel.remote.execution.v2.ExecutionCapabilities}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:build.bazel.remote.execution.v2.ExecutionCapabilities)
      build.bazel.remote.execution.v2.ExecutionCapabilitiesOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ExecutionCapabilities_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ExecutionCapabilities_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              build.bazel.remote.execution.v2.ExecutionCapabilities.class, build.bazel.remote.execution.v2.ExecutionCapabilities.Builder.class);
    }

    // Construct using build.bazel.remote.execution.v2.ExecutionCapabilities.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();
      digestFunction_ = 0;

      execEnabled_ = false;

      if (executionPriorityCapabilitiesBuilder_ == null) {
        executionPriorityCapabilities_ = null;
      } else {
        executionPriorityCapabilities_ = null;
        executionPriorityCapabilitiesBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return build.bazel.remote.execution.v2.RemoteExecutionProto.internal_static_build_bazel_remote_execution_v2_ExecutionCapabilities_descriptor;
    }

    @java.lang.Override
    public build.bazel.remote.execution.v2.ExecutionCapabilities getDefaultInstanceForType() {
      return build.bazel.remote.execution.v2.ExecutionCapabilities.getDefaultInstance();
    }

    @java.lang.Override
    public build.bazel.remote.execution.v2.ExecutionCapabilities build() {
      build.bazel.remote.execution.v2.ExecutionCapabilities result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public build.bazel.remote.execution.v2.ExecutionCapabilities buildPartial() {
      build.bazel.remote.execution.v2.ExecutionCapabilities result = new build.bazel.remote.execution.v2.ExecutionCapabilities(this);
      result.digestFunction_ = digestFunction_;
      result.execEnabled_ = execEnabled_;
      if (executionPriorityCapabilitiesBuilder_ == null) {
        result.executionPriorityCapabilities_ = executionPriorityCapabilities_;
      } else {
        result.executionPriorityCapabilities_ = executionPriorityCapabilitiesBuilder_.build();
      }
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return (Builder) super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof build.bazel.remote.execution.v2.ExecutionCapabilities) {
        return mergeFrom((build.bazel.remote.execution.v2.ExecutionCapabilities)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(build.bazel.remote.execution.v2.ExecutionCapabilities other) {
      if (other == build.bazel.remote.execution.v2.ExecutionCapabilities.getDefaultInstance()) return this;
      if (other.digestFunction_ != 0) {
        setDigestFunctionValue(other.getDigestFunctionValue());
      }
      if (other.getExecEnabled() != false) {
        setExecEnabled(other.getExecEnabled());
      }
      if (other.hasExecutionPriorityCapabilities()) {
        mergeExecutionPriorityCapabilities(other.getExecutionPriorityCapabilities());
      }
      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 {
      build.bazel.remote.execution.v2.ExecutionCapabilities parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (build.bazel.remote.execution.v2.ExecutionCapabilities) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int digestFunction_ = 0;
    /**
     * <pre>
     * Remote execution may only support a single digest function.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.DigestFunction digest_function = 1;</code>
     */
    public int getDigestFunctionValue() {
      return digestFunction_;
    }
    /**
     * <pre>
     * Remote execution may only support a single digest function.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.DigestFunction digest_function = 1;</code>
     */
    public Builder setDigestFunctionValue(int value) {
      digestFunction_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Remote execution may only support a single digest function.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.DigestFunction digest_function = 1;</code>
     */
    public build.bazel.remote.execution.v2.DigestFunction getDigestFunction() {
      @SuppressWarnings("deprecation")
      build.bazel.remote.execution.v2.DigestFunction result = build.bazel.remote.execution.v2.DigestFunction.valueOf(digestFunction_);
      return result == null ? build.bazel.remote.execution.v2.DigestFunction.UNRECOGNIZED : result;
    }
    /**
     * <pre>
     * Remote execution may only support a single digest function.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.DigestFunction digest_function = 1;</code>
     */
    public Builder setDigestFunction(build.bazel.remote.execution.v2.DigestFunction value) {
      if (value == null) {
        throw new NullPointerException();
      }
      
      digestFunction_ = value.getNumber();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Remote execution may only support a single digest function.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.DigestFunction digest_function = 1;</code>
     */
    public Builder clearDigestFunction() {
      
      digestFunction_ = 0;
      onChanged();
      return this;
    }

    private boolean execEnabled_ ;
    /**
     * <pre>
     * Whether remote execution is enabled for the particular server/instance.
     * </pre>
     *
     * <code>bool exec_enabled = 2;</code>
     */
    public boolean getExecEnabled() {
      return execEnabled_;
    }
    /**
     * <pre>
     * Whether remote execution is enabled for the particular server/instance.
     * </pre>
     *
     * <code>bool exec_enabled = 2;</code>
     */
    public Builder setExecEnabled(boolean value) {
      
      execEnabled_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * Whether remote execution is enabled for the particular server/instance.
     * </pre>
     *
     * <code>bool exec_enabled = 2;</code>
     */
    public Builder clearExecEnabled() {
      
      execEnabled_ = false;
      onChanged();
      return this;
    }

    private build.bazel.remote.execution.v2.PriorityCapabilities executionPriorityCapabilities_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        build.bazel.remote.execution.v2.PriorityCapabilities, build.bazel.remote.execution.v2.PriorityCapabilities.Builder, build.bazel.remote.execution.v2.PriorityCapabilitiesOrBuilder> executionPriorityCapabilitiesBuilder_;
    /**
     * <pre>
     * Supported execution priority range.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;</code>
     */
    public boolean hasExecutionPriorityCapabilities() {
      return executionPriorityCapabilitiesBuilder_ != null || executionPriorityCapabilities_ != null;
    }
    /**
     * <pre>
     * Supported execution priority range.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;</code>
     */
    public build.bazel.remote.execution.v2.PriorityCapabilities getExecutionPriorityCapabilities() {
      if (executionPriorityCapabilitiesBuilder_ == null) {
        return executionPriorityCapabilities_ == null ? build.bazel.remote.execution.v2.PriorityCapabilities.getDefaultInstance() : executionPriorityCapabilities_;
      } else {
        return executionPriorityCapabilitiesBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * Supported execution priority range.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;</code>
     */
    public Builder setExecutionPriorityCapabilities(build.bazel.remote.execution.v2.PriorityCapabilities value) {
      if (executionPriorityCapabilitiesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        executionPriorityCapabilities_ = value;
        onChanged();
      } else {
        executionPriorityCapabilitiesBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * Supported execution priority range.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;</code>
     */
    public Builder setExecutionPriorityCapabilities(
        build.bazel.remote.execution.v2.PriorityCapabilities.Builder builderForValue) {
      if (executionPriorityCapabilitiesBuilder_ == null) {
        executionPriorityCapabilities_ = builderForValue.build();
        onChanged();
      } else {
        executionPriorityCapabilitiesBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * Supported execution priority range.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;</code>
     */
    public Builder mergeExecutionPriorityCapabilities(build.bazel.remote.execution.v2.PriorityCapabilities value) {
      if (executionPriorityCapabilitiesBuilder_ == null) {
        if (executionPriorityCapabilities_ != null) {
          executionPriorityCapabilities_ =
            build.bazel.remote.execution.v2.PriorityCapabilities.newBuilder(executionPriorityCapabilities_).mergeFrom(value).buildPartial();
        } else {
          executionPriorityCapabilities_ = value;
        }
        onChanged();
      } else {
        executionPriorityCapabilitiesBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * Supported execution priority range.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;</code>
     */
    public Builder clearExecutionPriorityCapabilities() {
      if (executionPriorityCapabilitiesBuilder_ == null) {
        executionPriorityCapabilities_ = null;
        onChanged();
      } else {
        executionPriorityCapabilities_ = null;
        executionPriorityCapabilitiesBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * Supported execution priority range.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;</code>
     */
    public build.bazel.remote.execution.v2.PriorityCapabilities.Builder getExecutionPriorityCapabilitiesBuilder() {
      
      onChanged();
      return getExecutionPriorityCapabilitiesFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * Supported execution priority range.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;</code>
     */
    public build.bazel.remote.execution.v2.PriorityCapabilitiesOrBuilder getExecutionPriorityCapabilitiesOrBuilder() {
      if (executionPriorityCapabilitiesBuilder_ != null) {
        return executionPriorityCapabilitiesBuilder_.getMessageOrBuilder();
      } else {
        return executionPriorityCapabilities_ == null ?
            build.bazel.remote.execution.v2.PriorityCapabilities.getDefaultInstance() : executionPriorityCapabilities_;
      }
    }
    /**
     * <pre>
     * Supported execution priority range.
     * </pre>
     *
     * <code>.build.bazel.remote.execution.v2.PriorityCapabilities execution_priority_capabilities = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        build.bazel.remote.execution.v2.PriorityCapabilities, build.bazel.remote.execution.v2.PriorityCapabilities.Builder, build.bazel.remote.execution.v2.PriorityCapabilitiesOrBuilder> 
        getExecutionPriorityCapabilitiesFieldBuilder() {
      if (executionPriorityCapabilitiesBuilder_ == null) {
        executionPriorityCapabilitiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            build.bazel.remote.execution.v2.PriorityCapabilities, build.bazel.remote.execution.v2.PriorityCapabilities.Builder, build.bazel.remote.execution.v2.PriorityCapabilitiesOrBuilder>(
                getExecutionPriorityCapabilities(),
                getParentForChildren(),
                isClean());
        executionPriorityCapabilities_ = null;
      }
      return executionPriorityCapabilitiesBuilder_;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:build.bazel.remote.execution.v2.ExecutionCapabilities)
  }

  // @@protoc_insertion_point(class_scope:build.bazel.remote.execution.v2.ExecutionCapabilities)
  private static final build.bazel.remote.execution.v2.ExecutionCapabilities DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new build.bazel.remote.execution.v2.ExecutionCapabilities();
  }

  public static build.bazel.remote.execution.v2.ExecutionCapabilities getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public build.bazel.remote.execution.v2.ExecutionCapabilities getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

