// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/devtools/remoteexecution/v1test/remote_execution.proto

package com.google.devtools.remoteexecution.v1test;

/**
 * <pre>
 * A request message for
 * [ActionCache.UpdateActionResult][google.devtools.remoteexecution.v1test.ActionCache.UpdateActionResult].
 * </pre>
 *
 * Protobuf type {@code google.devtools.remoteexecution.v1test.UpdateActionResultRequest}
 */
public  final class UpdateActionResultRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:google.devtools.remoteexecution.v1test.UpdateActionResultRequest)
    UpdateActionResultRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use UpdateActionResultRequest.newBuilder() to construct.
  private UpdateActionResultRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private UpdateActionResultRequest() {
    instanceName_ = "";
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private UpdateActionResultRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    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;
          default: {
            if (!parseUnknownFieldProto3(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();

            instanceName_ = s;
            break;
          }
          case 18: {
            com.google.devtools.remoteexecution.v1test.Digest.Builder subBuilder = null;
            if (actionDigest_ != null) {
              subBuilder = actionDigest_.toBuilder();
            }
            actionDigest_ = input.readMessage(com.google.devtools.remoteexecution.v1test.Digest.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(actionDigest_);
              actionDigest_ = subBuilder.buildPartial();
            }

            break;
          }
          case 26: {
            com.google.devtools.remoteexecution.v1test.ActionResult.Builder subBuilder = null;
            if (actionResult_ != null) {
              subBuilder = actionResult_.toBuilder();
            }
            actionResult_ = input.readMessage(com.google.devtools.remoteexecution.v1test.ActionResult.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(actionResult_);
              actionResult_ = subBuilder.buildPartial();
            }

            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 com.google.devtools.remoteexecution.v1test.RemoteExecutionProto.internal_static_google_devtools_remoteexecution_v1test_UpdateActionResultRequest_descriptor;
  }

  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.devtools.remoteexecution.v1test.RemoteExecutionProto.internal_static_google_devtools_remoteexecution_v1test_UpdateActionResultRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest.class, com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest.Builder.class);
  }

  public static final int INSTANCE_NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object instanceName_;
  /**
   * <pre>
   * The instance of the execution system to operate against. A server may
   * support multiple instances of the execution system (with their own workers,
   * storage, caches, etc.). The server MAY require use of this field to select
   * between them in an implementation-defined fashion, otherwise it can be
   * omitted.
   * </pre>
   *
   * <code>string instance_name = 1;</code>
   */
  public java.lang.String getInstanceName() {
    java.lang.Object ref = instanceName_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      instanceName_ = s;
      return s;
    }
  }
  /**
   * <pre>
   * The instance of the execution system to operate against. A server may
   * support multiple instances of the execution system (with their own workers,
   * storage, caches, etc.). The server MAY require use of this field to select
   * between them in an implementation-defined fashion, otherwise it can be
   * omitted.
   * </pre>
   *
   * <code>string instance_name = 1;</code>
   */
  public com.google.protobuf.ByteString
      getInstanceNameBytes() {
    java.lang.Object ref = instanceName_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      instanceName_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ACTION_DIGEST_FIELD_NUMBER = 2;
  private com.google.devtools.remoteexecution.v1test.Digest actionDigest_;
  /**
   * <pre>
   * The digest of the [Action][google.devtools.remoteexecution.v1test.Action]
   * whose result is being uploaded.
   * </pre>
   *
   * <code>.google.devtools.remoteexecution.v1test.Digest action_digest = 2;</code>
   */
  public boolean hasActionDigest() {
    return actionDigest_ != null;
  }
  /**
   * <pre>
   * The digest of the [Action][google.devtools.remoteexecution.v1test.Action]
   * whose result is being uploaded.
   * </pre>
   *
   * <code>.google.devtools.remoteexecution.v1test.Digest action_digest = 2;</code>
   */
  public com.google.devtools.remoteexecution.v1test.Digest getActionDigest() {
    return actionDigest_ == null ? com.google.devtools.remoteexecution.v1test.Digest.getDefaultInstance() : actionDigest_;
  }
  /**
   * <pre>
   * The digest of the [Action][google.devtools.remoteexecution.v1test.Action]
   * whose result is being uploaded.
   * </pre>
   *
   * <code>.google.devtools.remoteexecution.v1test.Digest action_digest = 2;</code>
   */
  public com.google.devtools.remoteexecution.v1test.DigestOrBuilder getActionDigestOrBuilder() {
    return getActionDigest();
  }

  public static final int ACTION_RESULT_FIELD_NUMBER = 3;
  private com.google.devtools.remoteexecution.v1test.ActionResult actionResult_;
  /**
   * <pre>
   * The [ActionResult][google.devtools.remoteexecution.v1test.ActionResult]
   * to store in the cache.
   * </pre>
   *
   * <code>.google.devtools.remoteexecution.v1test.ActionResult action_result = 3;</code>
   */
  public boolean hasActionResult() {
    return actionResult_ != null;
  }
  /**
   * <pre>
   * The [ActionResult][google.devtools.remoteexecution.v1test.ActionResult]
   * to store in the cache.
   * </pre>
   *
   * <code>.google.devtools.remoteexecution.v1test.ActionResult action_result = 3;</code>
   */
  public com.google.devtools.remoteexecution.v1test.ActionResult getActionResult() {
    return actionResult_ == null ? com.google.devtools.remoteexecution.v1test.ActionResult.getDefaultInstance() : actionResult_;
  }
  /**
   * <pre>
   * The [ActionResult][google.devtools.remoteexecution.v1test.ActionResult]
   * to store in the cache.
   * </pre>
   *
   * <code>.google.devtools.remoteexecution.v1test.ActionResult action_result = 3;</code>
   */
  public com.google.devtools.remoteexecution.v1test.ActionResultOrBuilder getActionResultOrBuilder() {
    return getActionResult();
  }

  private byte memoizedIsInitialized = -1;
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (!getInstanceNameBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceName_);
    }
    if (actionDigest_ != null) {
      output.writeMessage(2, getActionDigest());
    }
    if (actionResult_ != null) {
      output.writeMessage(3, getActionResult());
    }
    unknownFields.writeTo(output);
  }

  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!getInstanceNameBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceName_);
    }
    if (actionDigest_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getActionDigest());
    }
    if (actionResult_ != null) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, getActionResult());
    }
    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 com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest)) {
      return super.equals(obj);
    }
    com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest other = (com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest) obj;

    boolean result = true;
    result = result && getInstanceName()
        .equals(other.getInstanceName());
    result = result && (hasActionDigest() == other.hasActionDigest());
    if (hasActionDigest()) {
      result = result && getActionDigest()
          .equals(other.getActionDigest());
    }
    result = result && (hasActionResult() == other.hasActionResult());
    if (hasActionResult()) {
      result = result && getActionResult()
          .equals(other.getActionResult());
    }
    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) + INSTANCE_NAME_FIELD_NUMBER;
    hash = (53 * hash) + getInstanceName().hashCode();
    if (hasActionDigest()) {
      hash = (37 * hash) + ACTION_DIGEST_FIELD_NUMBER;
      hash = (53 * hash) + getActionDigest().hashCode();
    }
    if (hasActionResult()) {
      hash = (37 * hash) + ACTION_RESULT_FIELD_NUMBER;
      hash = (53 * hash) + getActionResult().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest 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 com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest 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 com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  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 request message for
   * [ActionCache.UpdateActionResult][google.devtools.remoteexecution.v1test.ActionCache.UpdateActionResult].
   * </pre>
   *
   * Protobuf type {@code google.devtools.remoteexecution.v1test.UpdateActionResultRequest}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:google.devtools.remoteexecution.v1test.UpdateActionResultRequest)
      com.google.devtools.remoteexecution.v1test.UpdateActionResultRequestOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.remoteexecution.v1test.RemoteExecutionProto.internal_static_google_devtools_remoteexecution_v1test_UpdateActionResultRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.remoteexecution.v1test.RemoteExecutionProto.internal_static_google_devtools_remoteexecution_v1test_UpdateActionResultRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest.class, com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest.Builder.class);
    }

    // Construct using com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    public Builder clear() {
      super.clear();
      instanceName_ = "";

      if (actionDigestBuilder_ == null) {
        actionDigest_ = null;
      } else {
        actionDigest_ = null;
        actionDigestBuilder_ = null;
      }
      if (actionResultBuilder_ == null) {
        actionResult_ = null;
      } else {
        actionResult_ = null;
        actionResultBuilder_ = null;
      }
      return this;
    }

    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.google.devtools.remoteexecution.v1test.RemoteExecutionProto.internal_static_google_devtools_remoteexecution_v1test_UpdateActionResultRequest_descriptor;
    }

    public com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest getDefaultInstanceForType() {
      return com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest.getDefaultInstance();
    }

    public com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest build() {
      com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    public com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest buildPartial() {
      com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest result = new com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest(this);
      result.instanceName_ = instanceName_;
      if (actionDigestBuilder_ == null) {
        result.actionDigest_ = actionDigest_;
      } else {
        result.actionDigest_ = actionDigestBuilder_.build();
      }
      if (actionResultBuilder_ == null) {
        result.actionResult_ = actionResult_;
      } else {
        result.actionResult_ = actionResultBuilder_.build();
      }
      onBuilt();
      return result;
    }

    public Builder clone() {
      return (Builder) super.clone();
    }
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.setField(field, value);
    }
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return (Builder) super.clearField(field);
    }
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return (Builder) super.clearOneof(oneof);
    }
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return (Builder) super.setRepeatedField(field, index, value);
    }
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return (Builder) super.addRepeatedField(field, value);
    }
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest) {
        return mergeFrom((com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest other) {
      if (other == com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest.getDefaultInstance()) return this;
      if (!other.getInstanceName().isEmpty()) {
        instanceName_ = other.instanceName_;
        onChanged();
      }
      if (other.hasActionDigest()) {
        mergeActionDigest(other.getActionDigest());
      }
      if (other.hasActionResult()) {
        mergeActionResult(other.getActionResult());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    public final boolean isInitialized() {
      return true;
    }

    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private java.lang.Object instanceName_ = "";
    /**
     * <pre>
     * The instance of the execution system to operate against. A server may
     * support multiple instances of the execution system (with their own workers,
     * storage, caches, etc.). The server MAY require use of this field to select
     * between them in an implementation-defined fashion, otherwise it can be
     * omitted.
     * </pre>
     *
     * <code>string instance_name = 1;</code>
     */
    public java.lang.String getInstanceName() {
      java.lang.Object ref = instanceName_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        instanceName_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <pre>
     * The instance of the execution system to operate against. A server may
     * support multiple instances of the execution system (with their own workers,
     * storage, caches, etc.). The server MAY require use of this field to select
     * between them in an implementation-defined fashion, otherwise it can be
     * omitted.
     * </pre>
     *
     * <code>string instance_name = 1;</code>
     */
    public com.google.protobuf.ByteString
        getInstanceNameBytes() {
      java.lang.Object ref = instanceName_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        instanceName_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <pre>
     * The instance of the execution system to operate against. A server may
     * support multiple instances of the execution system (with their own workers,
     * storage, caches, etc.). The server MAY require use of this field to select
     * between them in an implementation-defined fashion, otherwise it can be
     * omitted.
     * </pre>
     *
     * <code>string instance_name = 1;</code>
     */
    public Builder setInstanceName(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      instanceName_ = value;
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The instance of the execution system to operate against. A server may
     * support multiple instances of the execution system (with their own workers,
     * storage, caches, etc.). The server MAY require use of this field to select
     * between them in an implementation-defined fashion, otherwise it can be
     * omitted.
     * </pre>
     *
     * <code>string instance_name = 1;</code>
     */
    public Builder clearInstanceName() {
      
      instanceName_ = getDefaultInstance().getInstanceName();
      onChanged();
      return this;
    }
    /**
     * <pre>
     * The instance of the execution system to operate against. A server may
     * support multiple instances of the execution system (with their own workers,
     * storage, caches, etc.). The server MAY require use of this field to select
     * between them in an implementation-defined fashion, otherwise it can be
     * omitted.
     * </pre>
     *
     * <code>string instance_name = 1;</code>
     */
    public Builder setInstanceNameBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      instanceName_ = value;
      onChanged();
      return this;
    }

    private com.google.devtools.remoteexecution.v1test.Digest actionDigest_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.devtools.remoteexecution.v1test.Digest, com.google.devtools.remoteexecution.v1test.Digest.Builder, com.google.devtools.remoteexecution.v1test.DigestOrBuilder> actionDigestBuilder_;
    /**
     * <pre>
     * The digest of the [Action][google.devtools.remoteexecution.v1test.Action]
     * whose result is being uploaded.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.Digest action_digest = 2;</code>
     */
    public boolean hasActionDigest() {
      return actionDigestBuilder_ != null || actionDigest_ != null;
    }
    /**
     * <pre>
     * The digest of the [Action][google.devtools.remoteexecution.v1test.Action]
     * whose result is being uploaded.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.Digest action_digest = 2;</code>
     */
    public com.google.devtools.remoteexecution.v1test.Digest getActionDigest() {
      if (actionDigestBuilder_ == null) {
        return actionDigest_ == null ? com.google.devtools.remoteexecution.v1test.Digest.getDefaultInstance() : actionDigest_;
      } else {
        return actionDigestBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The digest of the [Action][google.devtools.remoteexecution.v1test.Action]
     * whose result is being uploaded.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.Digest action_digest = 2;</code>
     */
    public Builder setActionDigest(com.google.devtools.remoteexecution.v1test.Digest value) {
      if (actionDigestBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        actionDigest_ = value;
        onChanged();
      } else {
        actionDigestBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The digest of the [Action][google.devtools.remoteexecution.v1test.Action]
     * whose result is being uploaded.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.Digest action_digest = 2;</code>
     */
    public Builder setActionDigest(
        com.google.devtools.remoteexecution.v1test.Digest.Builder builderForValue) {
      if (actionDigestBuilder_ == null) {
        actionDigest_ = builderForValue.build();
        onChanged();
      } else {
        actionDigestBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The digest of the [Action][google.devtools.remoteexecution.v1test.Action]
     * whose result is being uploaded.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.Digest action_digest = 2;</code>
     */
    public Builder mergeActionDigest(com.google.devtools.remoteexecution.v1test.Digest value) {
      if (actionDigestBuilder_ == null) {
        if (actionDigest_ != null) {
          actionDigest_ =
            com.google.devtools.remoteexecution.v1test.Digest.newBuilder(actionDigest_).mergeFrom(value).buildPartial();
        } else {
          actionDigest_ = value;
        }
        onChanged();
      } else {
        actionDigestBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The digest of the [Action][google.devtools.remoteexecution.v1test.Action]
     * whose result is being uploaded.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.Digest action_digest = 2;</code>
     */
    public Builder clearActionDigest() {
      if (actionDigestBuilder_ == null) {
        actionDigest_ = null;
        onChanged();
      } else {
        actionDigest_ = null;
        actionDigestBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The digest of the [Action][google.devtools.remoteexecution.v1test.Action]
     * whose result is being uploaded.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.Digest action_digest = 2;</code>
     */
    public com.google.devtools.remoteexecution.v1test.Digest.Builder getActionDigestBuilder() {
      
      onChanged();
      return getActionDigestFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The digest of the [Action][google.devtools.remoteexecution.v1test.Action]
     * whose result is being uploaded.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.Digest action_digest = 2;</code>
     */
    public com.google.devtools.remoteexecution.v1test.DigestOrBuilder getActionDigestOrBuilder() {
      if (actionDigestBuilder_ != null) {
        return actionDigestBuilder_.getMessageOrBuilder();
      } else {
        return actionDigest_ == null ?
            com.google.devtools.remoteexecution.v1test.Digest.getDefaultInstance() : actionDigest_;
      }
    }
    /**
     * <pre>
     * The digest of the [Action][google.devtools.remoteexecution.v1test.Action]
     * whose result is being uploaded.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.Digest action_digest = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.devtools.remoteexecution.v1test.Digest, com.google.devtools.remoteexecution.v1test.Digest.Builder, com.google.devtools.remoteexecution.v1test.DigestOrBuilder> 
        getActionDigestFieldBuilder() {
      if (actionDigestBuilder_ == null) {
        actionDigestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.devtools.remoteexecution.v1test.Digest, com.google.devtools.remoteexecution.v1test.Digest.Builder, com.google.devtools.remoteexecution.v1test.DigestOrBuilder>(
                getActionDigest(),
                getParentForChildren(),
                isClean());
        actionDigest_ = null;
      }
      return actionDigestBuilder_;
    }

    private com.google.devtools.remoteexecution.v1test.ActionResult actionResult_ = null;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.devtools.remoteexecution.v1test.ActionResult, com.google.devtools.remoteexecution.v1test.ActionResult.Builder, com.google.devtools.remoteexecution.v1test.ActionResultOrBuilder> actionResultBuilder_;
    /**
     * <pre>
     * The [ActionResult][google.devtools.remoteexecution.v1test.ActionResult]
     * to store in the cache.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.ActionResult action_result = 3;</code>
     */
    public boolean hasActionResult() {
      return actionResultBuilder_ != null || actionResult_ != null;
    }
    /**
     * <pre>
     * The [ActionResult][google.devtools.remoteexecution.v1test.ActionResult]
     * to store in the cache.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.ActionResult action_result = 3;</code>
     */
    public com.google.devtools.remoteexecution.v1test.ActionResult getActionResult() {
      if (actionResultBuilder_ == null) {
        return actionResult_ == null ? com.google.devtools.remoteexecution.v1test.ActionResult.getDefaultInstance() : actionResult_;
      } else {
        return actionResultBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     * The [ActionResult][google.devtools.remoteexecution.v1test.ActionResult]
     * to store in the cache.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.ActionResult action_result = 3;</code>
     */
    public Builder setActionResult(com.google.devtools.remoteexecution.v1test.ActionResult value) {
      if (actionResultBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        actionResult_ = value;
        onChanged();
      } else {
        actionResultBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     * <pre>
     * The [ActionResult][google.devtools.remoteexecution.v1test.ActionResult]
     * to store in the cache.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.ActionResult action_result = 3;</code>
     */
    public Builder setActionResult(
        com.google.devtools.remoteexecution.v1test.ActionResult.Builder builderForValue) {
      if (actionResultBuilder_ == null) {
        actionResult_ = builderForValue.build();
        onChanged();
      } else {
        actionResultBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     * <pre>
     * The [ActionResult][google.devtools.remoteexecution.v1test.ActionResult]
     * to store in the cache.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.ActionResult action_result = 3;</code>
     */
    public Builder mergeActionResult(com.google.devtools.remoteexecution.v1test.ActionResult value) {
      if (actionResultBuilder_ == null) {
        if (actionResult_ != null) {
          actionResult_ =
            com.google.devtools.remoteexecution.v1test.ActionResult.newBuilder(actionResult_).mergeFrom(value).buildPartial();
        } else {
          actionResult_ = value;
        }
        onChanged();
      } else {
        actionResultBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     * <pre>
     * The [ActionResult][google.devtools.remoteexecution.v1test.ActionResult]
     * to store in the cache.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.ActionResult action_result = 3;</code>
     */
    public Builder clearActionResult() {
      if (actionResultBuilder_ == null) {
        actionResult_ = null;
        onChanged();
      } else {
        actionResult_ = null;
        actionResultBuilder_ = null;
      }

      return this;
    }
    /**
     * <pre>
     * The [ActionResult][google.devtools.remoteexecution.v1test.ActionResult]
     * to store in the cache.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.ActionResult action_result = 3;</code>
     */
    public com.google.devtools.remoteexecution.v1test.ActionResult.Builder getActionResultBuilder() {
      
      onChanged();
      return getActionResultFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     * The [ActionResult][google.devtools.remoteexecution.v1test.ActionResult]
     * to store in the cache.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.ActionResult action_result = 3;</code>
     */
    public com.google.devtools.remoteexecution.v1test.ActionResultOrBuilder getActionResultOrBuilder() {
      if (actionResultBuilder_ != null) {
        return actionResultBuilder_.getMessageOrBuilder();
      } else {
        return actionResult_ == null ?
            com.google.devtools.remoteexecution.v1test.ActionResult.getDefaultInstance() : actionResult_;
      }
    }
    /**
     * <pre>
     * The [ActionResult][google.devtools.remoteexecution.v1test.ActionResult]
     * to store in the cache.
     * </pre>
     *
     * <code>.google.devtools.remoteexecution.v1test.ActionResult action_result = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.devtools.remoteexecution.v1test.ActionResult, com.google.devtools.remoteexecution.v1test.ActionResult.Builder, com.google.devtools.remoteexecution.v1test.ActionResultOrBuilder> 
        getActionResultFieldBuilder() {
      if (actionResultBuilder_ == null) {
        actionResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.devtools.remoteexecution.v1test.ActionResult, com.google.devtools.remoteexecution.v1test.ActionResult.Builder, com.google.devtools.remoteexecution.v1test.ActionResultOrBuilder>(
                getActionResult(),
                getParentForChildren(),
                isClean());
        actionResult_ = null;
      }
      return actionResultBuilder_;
    }
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFieldsProto3(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:google.devtools.remoteexecution.v1test.UpdateActionResultRequest)
  }

  // @@protoc_insertion_point(class_scope:google.devtools.remoteexecution.v1test.UpdateActionResultRequest)
  private static final com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest();
  }

  public static com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  public com.google.devtools.remoteexecution.v1test.UpdateActionResultRequest getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

