// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: java/io/bazel/rules/closure/worker_protocol.proto

package com.google.devtools.build.lib.worker;

public final class WorkerProtocol {
  private WorkerProtocol() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface InputOrBuilder extends
      // @@protoc_insertion_point(interface_extends:blaze.worker.Input)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * The path in the file system where to read this input artifact from. This is
     * either a path relative to the execution root (the worker process is
     * launched with the working directory set to the execution root), or an
     * absolute path.
     * </pre>
     *
     * <code>string path = 1;</code>
     */
    java.lang.String getPath();
    /**
     * <pre>
     * The path in the file system where to read this input artifact from. This is
     * either a path relative to the execution root (the worker process is
     * launched with the working directory set to the execution root), or an
     * absolute path.
     * </pre>
     *
     * <code>string path = 1;</code>
     */
    com.google.protobuf.ByteString
        getPathBytes();

    /**
     * <pre>
     * A hash-value of the contents. The format of the contents is unspecified and
     * the digest should be treated as an opaque token.
     * </pre>
     *
     * <code>bytes digest = 2;</code>
     */
    com.google.protobuf.ByteString getDigest();
  }
  /**
   * <pre>
   * An input file.
   * </pre>
   *
   * Protobuf type {@code blaze.worker.Input}
   */
  public  static final class Input extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:blaze.worker.Input)
      InputOrBuilder {
    // Use Input.newBuilder() to construct.
    private Input(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private Input() {
      path_ = "";
      digest_ = com.google.protobuf.ByteString.EMPTY;
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private Input(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();

              path_ = s;
              break;
            }
            case 18: {

              digest_ = input.readBytes();
              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 {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_Input_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_Input_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.worker.WorkerProtocol.Input.class, com.google.devtools.build.lib.worker.WorkerProtocol.Input.Builder.class);
    }

    public static final int PATH_FIELD_NUMBER = 1;
    private volatile java.lang.Object path_;
    /**
     * <pre>
     * The path in the file system where to read this input artifact from. This is
     * either a path relative to the execution root (the worker process is
     * launched with the working directory set to the execution root), or an
     * absolute path.
     * </pre>
     *
     * <code>string path = 1;</code>
     */
    public java.lang.String getPath() {
      java.lang.Object ref = path_;
      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();
        path_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * The path in the file system where to read this input artifact from. This is
     * either a path relative to the execution root (the worker process is
     * launched with the working directory set to the execution root), or an
     * absolute path.
     * </pre>
     *
     * <code>string path = 1;</code>
     */
    public com.google.protobuf.ByteString
        getPathBytes() {
      java.lang.Object ref = path_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        path_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int DIGEST_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString digest_;
    /**
     * <pre>
     * A hash-value of the contents. The format of the contents is unspecified and
     * the digest should be treated as an opaque token.
     * </pre>
     *
     * <code>bytes digest = 2;</code>
     */
    public com.google.protobuf.ByteString getDigest() {
      return digest_;
    }

    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 (!getPathBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, path_);
      }
      if (!digest_.isEmpty()) {
        output.writeBytes(2, digest_);
      }
    }

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

      size = 0;
      if (!getPathBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, path_);
      }
      if (!digest_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, digest_);
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.google.devtools.build.lib.worker.WorkerProtocol.Input)) {
        return super.equals(obj);
      }
      com.google.devtools.build.lib.worker.WorkerProtocol.Input other = (com.google.devtools.build.lib.worker.WorkerProtocol.Input) obj;

      boolean result = true;
      result = result && getPath()
          .equals(other.getPath());
      result = result && getDigest()
          .equals(other.getDigest());
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + PATH_FIELD_NUMBER;
      hash = (53 * hash) + getPath().hashCode();
      hash = (37 * hash) + DIGEST_FIELD_NUMBER;
      hash = (53 * hash) + getDigest().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.lib.worker.WorkerProtocol.Input parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.Input 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.build.lib.worker.WorkerProtocol.Input parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.Input 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.build.lib.worker.WorkerProtocol.Input parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.Input parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.Input parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.Input 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.build.lib.worker.WorkerProtocol.Input parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.Input 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.build.lib.worker.WorkerProtocol.Input parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.Input 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.build.lib.worker.WorkerProtocol.Input 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>
     * An input file.
     * </pre>
     *
     * Protobuf type {@code blaze.worker.Input}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:blaze.worker.Input)
        com.google.devtools.build.lib.worker.WorkerProtocol.InputOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_Input_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_Input_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.worker.WorkerProtocol.Input.class, com.google.devtools.build.lib.worker.WorkerProtocol.Input.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.worker.WorkerProtocol.Input.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();
        path_ = "";

        digest_ = com.google.protobuf.ByteString.EMPTY;

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_Input_descriptor;
      }

      public com.google.devtools.build.lib.worker.WorkerProtocol.Input getDefaultInstanceForType() {
        return com.google.devtools.build.lib.worker.WorkerProtocol.Input.getDefaultInstance();
      }

      public com.google.devtools.build.lib.worker.WorkerProtocol.Input build() {
        com.google.devtools.build.lib.worker.WorkerProtocol.Input result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.worker.WorkerProtocol.Input buildPartial() {
        com.google.devtools.build.lib.worker.WorkerProtocol.Input result = new com.google.devtools.build.lib.worker.WorkerProtocol.Input(this);
        result.path_ = path_;
        result.digest_ = digest_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          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, Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.devtools.build.lib.worker.WorkerProtocol.Input) {
          return mergeFrom((com.google.devtools.build.lib.worker.WorkerProtocol.Input)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.worker.WorkerProtocol.Input other) {
        if (other == com.google.devtools.build.lib.worker.WorkerProtocol.Input.getDefaultInstance()) return this;
        if (!other.getPath().isEmpty()) {
          path_ = other.path_;
          onChanged();
        }
        if (other.getDigest() != com.google.protobuf.ByteString.EMPTY) {
          setDigest(other.getDigest());
        }
        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.build.lib.worker.WorkerProtocol.Input parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.worker.WorkerProtocol.Input) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object path_ = "";
      /**
       * <pre>
       * The path in the file system where to read this input artifact from. This is
       * either a path relative to the execution root (the worker process is
       * launched with the working directory set to the execution root), or an
       * absolute path.
       * </pre>
       *
       * <code>string path = 1;</code>
       */
      public java.lang.String getPath() {
        java.lang.Object ref = path_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          path_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * The path in the file system where to read this input artifact from. This is
       * either a path relative to the execution root (the worker process is
       * launched with the working directory set to the execution root), or an
       * absolute path.
       * </pre>
       *
       * <code>string path = 1;</code>
       */
      public com.google.protobuf.ByteString
          getPathBytes() {
        java.lang.Object ref = path_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          path_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * The path in the file system where to read this input artifact from. This is
       * either a path relative to the execution root (the worker process is
       * launched with the working directory set to the execution root), or an
       * absolute path.
       * </pre>
       *
       * <code>string path = 1;</code>
       */
      public Builder setPath(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        path_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The path in the file system where to read this input artifact from. This is
       * either a path relative to the execution root (the worker process is
       * launched with the working directory set to the execution root), or an
       * absolute path.
       * </pre>
       *
       * <code>string path = 1;</code>
       */
      public Builder clearPath() {
        
        path_ = getDefaultInstance().getPath();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The path in the file system where to read this input artifact from. This is
       * either a path relative to the execution root (the worker process is
       * launched with the working directory set to the execution root), or an
       * absolute path.
       * </pre>
       *
       * <code>string path = 1;</code>
       */
      public Builder setPathBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        path_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString digest_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <pre>
       * A hash-value of the contents. The format of the contents is unspecified and
       * the digest should be treated as an opaque token.
       * </pre>
       *
       * <code>bytes digest = 2;</code>
       */
      public com.google.protobuf.ByteString getDigest() {
        return digest_;
      }
      /**
       * <pre>
       * A hash-value of the contents. The format of the contents is unspecified and
       * the digest should be treated as an opaque token.
       * </pre>
       *
       * <code>bytes digest = 2;</code>
       */
      public Builder setDigest(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        digest_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * A hash-value of the contents. The format of the contents is unspecified and
       * the digest should be treated as an opaque token.
       * </pre>
       *
       * <code>bytes digest = 2;</code>
       */
      public Builder clearDigest() {
        
        digest_ = getDefaultInstance().getDigest();
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

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


      // @@protoc_insertion_point(builder_scope:blaze.worker.Input)
    }

    // @@protoc_insertion_point(class_scope:blaze.worker.Input)
    private static final com.google.devtools.build.lib.worker.WorkerProtocol.Input DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.lib.worker.WorkerProtocol.Input();
    }

    public static com.google.devtools.build.lib.worker.WorkerProtocol.Input getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.google.devtools.build.lib.worker.WorkerProtocol.Input getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface WorkRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:blaze.worker.WorkRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>repeated string arguments = 1;</code>
     */
    java.util.List<java.lang.String>
        getArgumentsList();
    /**
     * <code>repeated string arguments = 1;</code>
     */
    int getArgumentsCount();
    /**
     * <code>repeated string arguments = 1;</code>
     */
    java.lang.String getArguments(int index);
    /**
     * <code>repeated string arguments = 1;</code>
     */
    com.google.protobuf.ByteString
        getArgumentsBytes(int index);

    /**
     * <pre>
     * The inputs that the worker is allowed to read during execution of this
     * request.
     * </pre>
     *
     * <code>repeated .blaze.worker.Input inputs = 2;</code>
     */
    java.util.List<com.google.devtools.build.lib.worker.WorkerProtocol.Input> 
        getInputsList();
    /**
     * <pre>
     * The inputs that the worker is allowed to read during execution of this
     * request.
     * </pre>
     *
     * <code>repeated .blaze.worker.Input inputs = 2;</code>
     */
    com.google.devtools.build.lib.worker.WorkerProtocol.Input getInputs(int index);
    /**
     * <pre>
     * The inputs that the worker is allowed to read during execution of this
     * request.
     * </pre>
     *
     * <code>repeated .blaze.worker.Input inputs = 2;</code>
     */
    int getInputsCount();
    /**
     * <pre>
     * The inputs that the worker is allowed to read during execution of this
     * request.
     * </pre>
     *
     * <code>repeated .blaze.worker.Input inputs = 2;</code>
     */
    java.util.List<? extends com.google.devtools.build.lib.worker.WorkerProtocol.InputOrBuilder> 
        getInputsOrBuilderList();
    /**
     * <pre>
     * The inputs that the worker is allowed to read during execution of this
     * request.
     * </pre>
     *
     * <code>repeated .blaze.worker.Input inputs = 2;</code>
     */
    com.google.devtools.build.lib.worker.WorkerProtocol.InputOrBuilder getInputsOrBuilder(
        int index);
  }
  /**
   * <pre>
   * This represents a single work unit that Blaze sends to the worker.
   * </pre>
   *
   * Protobuf type {@code blaze.worker.WorkRequest}
   */
  public  static final class WorkRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:blaze.worker.WorkRequest)
      WorkRequestOrBuilder {
    // Use WorkRequest.newBuilder() to construct.
    private WorkRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private WorkRequest() {
      arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      inputs_ = java.util.Collections.emptyList();
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private WorkRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              java.lang.String s = input.readStringRequireUtf8();
              if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
                arguments_ = new com.google.protobuf.LazyStringArrayList();
                mutable_bitField0_ |= 0x00000001;
              }
              arguments_.add(s);
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                inputs_ = new java.util.ArrayList<com.google.devtools.build.lib.worker.WorkerProtocol.Input>();
                mutable_bitField0_ |= 0x00000002;
              }
              inputs_.add(
                  input.readMessage(com.google.devtools.build.lib.worker.WorkerProtocol.Input.parser(), extensionRegistry));
              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) == 0x00000001)) {
          arguments_ = arguments_.getUnmodifiableView();
        }
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          inputs_ = java.util.Collections.unmodifiableList(inputs_);
        }
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_WorkRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_WorkRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest.class, com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest.Builder.class);
    }

    public static final int ARGUMENTS_FIELD_NUMBER = 1;
    private com.google.protobuf.LazyStringList arguments_;
    /**
     * <code>repeated string arguments = 1;</code>
     */
    public com.google.protobuf.ProtocolStringList
        getArgumentsList() {
      return arguments_;
    }
    /**
     * <code>repeated string arguments = 1;</code>
     */
    public int getArgumentsCount() {
      return arguments_.size();
    }
    /**
     * <code>repeated string arguments = 1;</code>
     */
    public java.lang.String getArguments(int index) {
      return arguments_.get(index);
    }
    /**
     * <code>repeated string arguments = 1;</code>
     */
    public com.google.protobuf.ByteString
        getArgumentsBytes(int index) {
      return arguments_.getByteString(index);
    }

    public static final int INPUTS_FIELD_NUMBER = 2;
    private java.util.List<com.google.devtools.build.lib.worker.WorkerProtocol.Input> inputs_;
    /**
     * <pre>
     * The inputs that the worker is allowed to read during execution of this
     * request.
     * </pre>
     *
     * <code>repeated .blaze.worker.Input inputs = 2;</code>
     */
    public java.util.List<com.google.devtools.build.lib.worker.WorkerProtocol.Input> getInputsList() {
      return inputs_;
    }
    /**
     * <pre>
     * The inputs that the worker is allowed to read during execution of this
     * request.
     * </pre>
     *
     * <code>repeated .blaze.worker.Input inputs = 2;</code>
     */
    public java.util.List<? extends com.google.devtools.build.lib.worker.WorkerProtocol.InputOrBuilder> 
        getInputsOrBuilderList() {
      return inputs_;
    }
    /**
     * <pre>
     * The inputs that the worker is allowed to read during execution of this
     * request.
     * </pre>
     *
     * <code>repeated .blaze.worker.Input inputs = 2;</code>
     */
    public int getInputsCount() {
      return inputs_.size();
    }
    /**
     * <pre>
     * The inputs that the worker is allowed to read during execution of this
     * request.
     * </pre>
     *
     * <code>repeated .blaze.worker.Input inputs = 2;</code>
     */
    public com.google.devtools.build.lib.worker.WorkerProtocol.Input getInputs(int index) {
      return inputs_.get(index);
    }
    /**
     * <pre>
     * The inputs that the worker is allowed to read during execution of this
     * request.
     * </pre>
     *
     * <code>repeated .blaze.worker.Input inputs = 2;</code>
     */
    public com.google.devtools.build.lib.worker.WorkerProtocol.InputOrBuilder getInputsOrBuilder(
        int index) {
      return inputs_.get(index);
    }

    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 {
      for (int i = 0; i < arguments_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, arguments_.getRaw(i));
      }
      for (int i = 0; i < inputs_.size(); i++) {
        output.writeMessage(2, inputs_.get(i));
      }
    }

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

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < arguments_.size(); i++) {
          dataSize += computeStringSizeNoTag(arguments_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getArgumentsList().size();
      }
      for (int i = 0; i < inputs_.size(); i++) {
        size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(2, inputs_.get(i));
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest)) {
        return super.equals(obj);
      }
      com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest other = (com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest) obj;

      boolean result = true;
      result = result && getArgumentsList()
          .equals(other.getArgumentsList());
      result = result && getInputsList()
          .equals(other.getInputsList());
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getArgumentsCount() > 0) {
        hash = (37 * hash) + ARGUMENTS_FIELD_NUMBER;
        hash = (53 * hash) + getArgumentsList().hashCode();
      }
      if (getInputsCount() > 0) {
        hash = (37 * hash) + INPUTS_FIELD_NUMBER;
        hash = (53 * hash) + getInputsList().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest 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.build.lib.worker.WorkerProtocol.WorkRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest 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.build.lib.worker.WorkerProtocol.WorkRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest 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.build.lib.worker.WorkerProtocol.WorkRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest 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.build.lib.worker.WorkerProtocol.WorkRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest 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.build.lib.worker.WorkerProtocol.WorkRequest 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>
     * This represents a single work unit that Blaze sends to the worker.
     * </pre>
     *
     * Protobuf type {@code blaze.worker.WorkRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:blaze.worker.WorkRequest)
        com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_WorkRequest_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_WorkRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest.class, com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3
                .alwaysUseFieldBuilders) {
          getInputsFieldBuilder();
        }
      }
      public Builder clear() {
        super.clear();
        arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        if (inputsBuilder_ == null) {
          inputs_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
        } else {
          inputsBuilder_.clear();
        }
        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_WorkRequest_descriptor;
      }

      public com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest getDefaultInstanceForType() {
        return com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest.getDefaultInstance();
      }

      public com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest build() {
        com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest buildPartial() {
        com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest result = new com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest(this);
        int from_bitField0_ = bitField0_;
        if (((bitField0_ & 0x00000001) == 0x00000001)) {
          arguments_ = arguments_.getUnmodifiableView();
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.arguments_ = arguments_;
        if (inputsBuilder_ == null) {
          if (((bitField0_ & 0x00000002) == 0x00000002)) {
            inputs_ = java.util.Collections.unmodifiableList(inputs_);
            bitField0_ = (bitField0_ & ~0x00000002);
          }
          result.inputs_ = inputs_;
        } else {
          result.inputs_ = inputsBuilder_.build();
        }
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          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, Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest) {
          return mergeFrom((com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest other) {
        if (other == com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest.getDefaultInstance()) return this;
        if (!other.arguments_.isEmpty()) {
          if (arguments_.isEmpty()) {
            arguments_ = other.arguments_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureArgumentsIsMutable();
            arguments_.addAll(other.arguments_);
          }
          onChanged();
        }
        if (inputsBuilder_ == null) {
          if (!other.inputs_.isEmpty()) {
            if (inputs_.isEmpty()) {
              inputs_ = other.inputs_;
              bitField0_ = (bitField0_ & ~0x00000002);
            } else {
              ensureInputsIsMutable();
              inputs_.addAll(other.inputs_);
            }
            onChanged();
          }
        } else {
          if (!other.inputs_.isEmpty()) {
            if (inputsBuilder_.isEmpty()) {
              inputsBuilder_.dispose();
              inputsBuilder_ = null;
              inputs_ = other.inputs_;
              bitField0_ = (bitField0_ & ~0x00000002);
              inputsBuilder_ = 
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
                   getInputsFieldBuilder() : null;
            } else {
              inputsBuilder_.addAllMessages(other.inputs_);
            }
          }
        }
        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.build.lib.worker.WorkerProtocol.WorkRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private com.google.protobuf.LazyStringList arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      private void ensureArgumentsIsMutable() {
        if (!((bitField0_ & 0x00000001) == 0x00000001)) {
          arguments_ = new com.google.protobuf.LazyStringArrayList(arguments_);
          bitField0_ |= 0x00000001;
         }
      }
      /**
       * <code>repeated string arguments = 1;</code>
       */
      public com.google.protobuf.ProtocolStringList
          getArgumentsList() {
        return arguments_.getUnmodifiableView();
      }
      /**
       * <code>repeated string arguments = 1;</code>
       */
      public int getArgumentsCount() {
        return arguments_.size();
      }
      /**
       * <code>repeated string arguments = 1;</code>
       */
      public java.lang.String getArguments(int index) {
        return arguments_.get(index);
      }
      /**
       * <code>repeated string arguments = 1;</code>
       */
      public com.google.protobuf.ByteString
          getArgumentsBytes(int index) {
        return arguments_.getByteString(index);
      }
      /**
       * <code>repeated string arguments = 1;</code>
       */
      public Builder setArguments(
          int index, java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureArgumentsIsMutable();
        arguments_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string arguments = 1;</code>
       */
      public Builder addArguments(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureArgumentsIsMutable();
        arguments_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string arguments = 1;</code>
       */
      public Builder addAllArguments(
          java.lang.Iterable<java.lang.String> values) {
        ensureArgumentsIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, arguments_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string arguments = 1;</code>
       */
      public Builder clearArguments() {
        arguments_ = com.google.protobuf.LazyStringArrayList.EMPTY;
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
        return this;
      }
      /**
       * <code>repeated string arguments = 1;</code>
       */
      public Builder addArgumentsBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        ensureArgumentsIsMutable();
        arguments_.add(value);
        onChanged();
        return this;
      }

      private java.util.List<com.google.devtools.build.lib.worker.WorkerProtocol.Input> inputs_ =
        java.util.Collections.emptyList();
      private void ensureInputsIsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          inputs_ = new java.util.ArrayList<com.google.devtools.build.lib.worker.WorkerProtocol.Input>(inputs_);
          bitField0_ |= 0x00000002;
         }
      }

      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.devtools.build.lib.worker.WorkerProtocol.Input, com.google.devtools.build.lib.worker.WorkerProtocol.Input.Builder, com.google.devtools.build.lib.worker.WorkerProtocol.InputOrBuilder> inputsBuilder_;

      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public java.util.List<com.google.devtools.build.lib.worker.WorkerProtocol.Input> getInputsList() {
        if (inputsBuilder_ == null) {
          return java.util.Collections.unmodifiableList(inputs_);
        } else {
          return inputsBuilder_.getMessageList();
        }
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public int getInputsCount() {
        if (inputsBuilder_ == null) {
          return inputs_.size();
        } else {
          return inputsBuilder_.getCount();
        }
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public com.google.devtools.build.lib.worker.WorkerProtocol.Input getInputs(int index) {
        if (inputsBuilder_ == null) {
          return inputs_.get(index);
        } else {
          return inputsBuilder_.getMessage(index);
        }
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public Builder setInputs(
          int index, com.google.devtools.build.lib.worker.WorkerProtocol.Input value) {
        if (inputsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureInputsIsMutable();
          inputs_.set(index, value);
          onChanged();
        } else {
          inputsBuilder_.setMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public Builder setInputs(
          int index, com.google.devtools.build.lib.worker.WorkerProtocol.Input.Builder builderForValue) {
        if (inputsBuilder_ == null) {
          ensureInputsIsMutable();
          inputs_.set(index, builderForValue.build());
          onChanged();
        } else {
          inputsBuilder_.setMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public Builder addInputs(com.google.devtools.build.lib.worker.WorkerProtocol.Input value) {
        if (inputsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureInputsIsMutable();
          inputs_.add(value);
          onChanged();
        } else {
          inputsBuilder_.addMessage(value);
        }
        return this;
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public Builder addInputs(
          int index, com.google.devtools.build.lib.worker.WorkerProtocol.Input value) {
        if (inputsBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          ensureInputsIsMutable();
          inputs_.add(index, value);
          onChanged();
        } else {
          inputsBuilder_.addMessage(index, value);
        }
        return this;
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public Builder addInputs(
          com.google.devtools.build.lib.worker.WorkerProtocol.Input.Builder builderForValue) {
        if (inputsBuilder_ == null) {
          ensureInputsIsMutable();
          inputs_.add(builderForValue.build());
          onChanged();
        } else {
          inputsBuilder_.addMessage(builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public Builder addInputs(
          int index, com.google.devtools.build.lib.worker.WorkerProtocol.Input.Builder builderForValue) {
        if (inputsBuilder_ == null) {
          ensureInputsIsMutable();
          inputs_.add(index, builderForValue.build());
          onChanged();
        } else {
          inputsBuilder_.addMessage(index, builderForValue.build());
        }
        return this;
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public Builder addAllInputs(
          java.lang.Iterable<? extends com.google.devtools.build.lib.worker.WorkerProtocol.Input> values) {
        if (inputsBuilder_ == null) {
          ensureInputsIsMutable();
          com.google.protobuf.AbstractMessageLite.Builder.addAll(
              values, inputs_);
          onChanged();
        } else {
          inputsBuilder_.addAllMessages(values);
        }
        return this;
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public Builder clearInputs() {
        if (inputsBuilder_ == null) {
          inputs_ = java.util.Collections.emptyList();
          bitField0_ = (bitField0_ & ~0x00000002);
          onChanged();
        } else {
          inputsBuilder_.clear();
        }
        return this;
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public Builder removeInputs(int index) {
        if (inputsBuilder_ == null) {
          ensureInputsIsMutable();
          inputs_.remove(index);
          onChanged();
        } else {
          inputsBuilder_.remove(index);
        }
        return this;
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public com.google.devtools.build.lib.worker.WorkerProtocol.Input.Builder getInputsBuilder(
          int index) {
        return getInputsFieldBuilder().getBuilder(index);
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public com.google.devtools.build.lib.worker.WorkerProtocol.InputOrBuilder getInputsOrBuilder(
          int index) {
        if (inputsBuilder_ == null) {
          return inputs_.get(index);  } else {
          return inputsBuilder_.getMessageOrBuilder(index);
        }
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public java.util.List<? extends com.google.devtools.build.lib.worker.WorkerProtocol.InputOrBuilder> 
           getInputsOrBuilderList() {
        if (inputsBuilder_ != null) {
          return inputsBuilder_.getMessageOrBuilderList();
        } else {
          return java.util.Collections.unmodifiableList(inputs_);
        }
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public com.google.devtools.build.lib.worker.WorkerProtocol.Input.Builder addInputsBuilder() {
        return getInputsFieldBuilder().addBuilder(
            com.google.devtools.build.lib.worker.WorkerProtocol.Input.getDefaultInstance());
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public com.google.devtools.build.lib.worker.WorkerProtocol.Input.Builder addInputsBuilder(
          int index) {
        return getInputsFieldBuilder().addBuilder(
            index, com.google.devtools.build.lib.worker.WorkerProtocol.Input.getDefaultInstance());
      }
      /**
       * <pre>
       * The inputs that the worker is allowed to read during execution of this
       * request.
       * </pre>
       *
       * <code>repeated .blaze.worker.Input inputs = 2;</code>
       */
      public java.util.List<com.google.devtools.build.lib.worker.WorkerProtocol.Input.Builder> 
           getInputsBuilderList() {
        return getInputsFieldBuilder().getBuilderList();
      }
      private com.google.protobuf.RepeatedFieldBuilderV3<
          com.google.devtools.build.lib.worker.WorkerProtocol.Input, com.google.devtools.build.lib.worker.WorkerProtocol.Input.Builder, com.google.devtools.build.lib.worker.WorkerProtocol.InputOrBuilder> 
          getInputsFieldBuilder() {
        if (inputsBuilder_ == null) {
          inputsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
              com.google.devtools.build.lib.worker.WorkerProtocol.Input, com.google.devtools.build.lib.worker.WorkerProtocol.Input.Builder, com.google.devtools.build.lib.worker.WorkerProtocol.InputOrBuilder>(
                  inputs_,
                  ((bitField0_ & 0x00000002) == 0x00000002),
                  getParentForChildren(),
                  isClean());
          inputs_ = null;
        }
        return inputsBuilder_;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

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


      // @@protoc_insertion_point(builder_scope:blaze.worker.WorkRequest)
    }

    // @@protoc_insertion_point(class_scope:blaze.worker.WorkRequest)
    private static final com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest();
    }

    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.google.devtools.build.lib.worker.WorkerProtocol.WorkRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface WorkResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:blaze.worker.WorkResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>int32 exit_code = 1;</code>
     */
    int getExitCode();

    /**
     * <pre>
     * This is printed to the user after the WorkResponse has been received and is supposed to contain
     * compiler warnings / errors etc. - thus we'll use a string type here, which gives us UTF-8
     * encoding.
     * </pre>
     *
     * <code>string output = 2;</code>
     */
    java.lang.String getOutput();
    /**
     * <pre>
     * This is printed to the user after the WorkResponse has been received and is supposed to contain
     * compiler warnings / errors etc. - thus we'll use a string type here, which gives us UTF-8
     * encoding.
     * </pre>
     *
     * <code>string output = 2;</code>
     */
    com.google.protobuf.ByteString
        getOutputBytes();
  }
  /**
   * <pre>
   * The worker sends this message to Blaze when it finished its work on the WorkRequest message.
   * </pre>
   *
   * Protobuf type {@code blaze.worker.WorkResponse}
   */
  public  static final class WorkResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:blaze.worker.WorkResponse)
      WorkResponseOrBuilder {
    // Use WorkResponse.newBuilder() to construct.
    private WorkResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private WorkResponse() {
      exitCode_ = 0;
      output_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return com.google.protobuf.UnknownFieldSet.getDefaultInstance();
    }
    private WorkResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      int mutable_bitField0_ = 0;
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            default: {
              if (!input.skipField(tag)) {
                done = true;
              }
              break;
            }
            case 8: {

              exitCode_ = input.readInt32();
              break;
            }
            case 18: {
              java.lang.String s = input.readStringRequireUtf8();

              output_ = s;
              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 {
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_WorkResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_WorkResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse.class, com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse.Builder.class);
    }

    public static final int EXIT_CODE_FIELD_NUMBER = 1;
    private int exitCode_;
    /**
     * <code>int32 exit_code = 1;</code>
     */
    public int getExitCode() {
      return exitCode_;
    }

    public static final int OUTPUT_FIELD_NUMBER = 2;
    private volatile java.lang.Object output_;
    /**
     * <pre>
     * This is printed to the user after the WorkResponse has been received and is supposed to contain
     * compiler warnings / errors etc. - thus we'll use a string type here, which gives us UTF-8
     * encoding.
     * </pre>
     *
     * <code>string output = 2;</code>
     */
    public java.lang.String getOutput() {
      java.lang.Object ref = output_;
      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();
        output_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * This is printed to the user after the WorkResponse has been received and is supposed to contain
     * compiler warnings / errors etc. - thus we'll use a string type here, which gives us UTF-8
     * encoding.
     * </pre>
     *
     * <code>string output = 2;</code>
     */
    public com.google.protobuf.ByteString
        getOutputBytes() {
      java.lang.Object ref = output_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        output_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    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 (exitCode_ != 0) {
        output.writeInt32(1, exitCode_);
      }
      if (!getOutputBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, output_);
      }
    }

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

      size = 0;
      if (exitCode_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(1, exitCode_);
      }
      if (!getOutputBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, output_);
      }
      memoizedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
       return true;
      }
      if (!(obj instanceof com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse)) {
        return super.equals(obj);
      }
      com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse other = (com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse) obj;

      boolean result = true;
      result = result && (getExitCode()
          == other.getExitCode());
      result = result && getOutput()
          .equals(other.getOutput());
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + EXIT_CODE_FIELD_NUMBER;
      hash = (53 * hash) + getExitCode();
      hash = (37 * hash) + OUTPUT_FIELD_NUMBER;
      hash = (53 * hash) + getOutput().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse 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.build.lib.worker.WorkerProtocol.WorkResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse 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.build.lib.worker.WorkerProtocol.WorkResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse 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.build.lib.worker.WorkerProtocol.WorkResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse 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.build.lib.worker.WorkerProtocol.WorkResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse 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.build.lib.worker.WorkerProtocol.WorkResponse 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>
     * The worker sends this message to Blaze when it finished its work on the WorkRequest message.
     * </pre>
     *
     * Protobuf type {@code blaze.worker.WorkResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:blaze.worker.WorkResponse)
        com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_WorkResponse_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_WorkResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse.class, com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse.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();
        exitCode_ = 0;

        output_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.worker.WorkerProtocol.internal_static_blaze_worker_WorkResponse_descriptor;
      }

      public com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse getDefaultInstanceForType() {
        return com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse.getDefaultInstance();
      }

      public com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse build() {
        com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse buildPartial() {
        com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse result = new com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse(this);
        result.exitCode_ = exitCode_;
        result.output_ = output_;
        onBuilt();
        return result;
      }

      public Builder clone() {
        return (Builder) super.clone();
      }
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          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, Object value) {
        return (Builder) super.setRepeatedField(field, index, value);
      }
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          Object value) {
        return (Builder) super.addRepeatedField(field, value);
      }
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse) {
          return mergeFrom((com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse other) {
        if (other == com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse.getDefaultInstance()) return this;
        if (other.getExitCode() != 0) {
          setExitCode(other.getExitCode());
        }
        if (!other.getOutput().isEmpty()) {
          output_ = other.output_;
          onChanged();
        }
        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.build.lib.worker.WorkerProtocol.WorkResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int exitCode_ ;
      /**
       * <code>int32 exit_code = 1;</code>
       */
      public int getExitCode() {
        return exitCode_;
      }
      /**
       * <code>int32 exit_code = 1;</code>
       */
      public Builder setExitCode(int value) {
        
        exitCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>int32 exit_code = 1;</code>
       */
      public Builder clearExitCode() {
        
        exitCode_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object output_ = "";
      /**
       * <pre>
       * This is printed to the user after the WorkResponse has been received and is supposed to contain
       * compiler warnings / errors etc. - thus we'll use a string type here, which gives us UTF-8
       * encoding.
       * </pre>
       *
       * <code>string output = 2;</code>
       */
      public java.lang.String getOutput() {
        java.lang.Object ref = output_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          output_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * This is printed to the user after the WorkResponse has been received and is supposed to contain
       * compiler warnings / errors etc. - thus we'll use a string type here, which gives us UTF-8
       * encoding.
       * </pre>
       *
       * <code>string output = 2;</code>
       */
      public com.google.protobuf.ByteString
          getOutputBytes() {
        java.lang.Object ref = output_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          output_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * This is printed to the user after the WorkResponse has been received and is supposed to contain
       * compiler warnings / errors etc. - thus we'll use a string type here, which gives us UTF-8
       * encoding.
       * </pre>
       *
       * <code>string output = 2;</code>
       */
      public Builder setOutput(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        output_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * This is printed to the user after the WorkResponse has been received and is supposed to contain
       * compiler warnings / errors etc. - thus we'll use a string type here, which gives us UTF-8
       * encoding.
       * </pre>
       *
       * <code>string output = 2;</code>
       */
      public Builder clearOutput() {
        
        output_ = getDefaultInstance().getOutput();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * This is printed to the user after the WorkResponse has been received and is supposed to contain
       * compiler warnings / errors etc. - thus we'll use a string type here, which gives us UTF-8
       * encoding.
       * </pre>
       *
       * <code>string output = 2;</code>
       */
      public Builder setOutputBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        output_ = value;
        onChanged();
        return this;
      }
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return this;
      }

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


      // @@protoc_insertion_point(builder_scope:blaze.worker.WorkResponse)
    }

    // @@protoc_insertion_point(class_scope:blaze.worker.WorkResponse)
    private static final com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse();
    }

    public static com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.google.devtools.build.lib.worker.WorkerProtocol.WorkResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_blaze_worker_Input_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_blaze_worker_Input_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_blaze_worker_WorkRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_blaze_worker_WorkRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_blaze_worker_WorkResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_blaze_worker_WorkResponse_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n1java/io/bazel/rules/closure/worker_pro" +
      "tocol.proto\022\014blaze.worker\"%\n\005Input\022\014\n\004pa" +
      "th\030\001 \001(\t\022\016\n\006digest\030\002 \001(\014\"E\n\013WorkRequest\022" +
      "\021\n\targuments\030\001 \003(\t\022#\n\006inputs\030\002 \003(\0132\023.bla" +
      "ze.worker.Input\"1\n\014WorkResponse\022\021\n\texit_" +
      "code\030\001 \001(\005\022\016\n\006output\030\002 \001(\tB&\n$com.google" +
      ".devtools.build.lib.workerb\006proto3"
    };
    com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
        new com.google.protobuf.Descriptors.FileDescriptor.    InternalDescriptorAssigner() {
          public com.google.protobuf.ExtensionRegistry assignDescriptors(
              com.google.protobuf.Descriptors.FileDescriptor root) {
            descriptor = root;
            return null;
          }
        };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
    internal_static_blaze_worker_Input_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_blaze_worker_Input_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_blaze_worker_Input_descriptor,
        new java.lang.String[] { "Path", "Digest", });
    internal_static_blaze_worker_WorkRequest_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_blaze_worker_WorkRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_blaze_worker_WorkRequest_descriptor,
        new java.lang.String[] { "Arguments", "Inputs", });
    internal_static_blaze_worker_WorkResponse_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_blaze_worker_WorkResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_blaze_worker_WorkResponse_descriptor,
        new java.lang.String[] { "ExitCode", "Output", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
