// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: bazel-out/local-fastbuild/bin/src/main/protobuf/libcommand_server_java_proto_srcjar.srcjar.preprocessed/command_server.proto

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

public final class CommandProtos {
  private CommandProtos() {}
  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 RunRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:command_server.RunRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * This must be the request cookie from the output base. A rudimentary form of authentication.
     * </pre>
     *
     * <code>optional string cookie = 1;</code>
     */
    java.lang.String getCookie();
    /**
     * <pre>
     * This must be the request cookie from the output base. A rudimentary form of authentication.
     * </pre>
     *
     * <code>optional string cookie = 1;</code>
     */
    com.google.protobuf.ByteString
        getCookieBytes();

    /**
     * <code>repeated bytes arg = 2;</code>
     */
    java.util.List<com.google.protobuf.ByteString> getArgList();
    /**
     * <code>repeated bytes arg = 2;</code>
     */
    int getArgCount();
    /**
     * <code>repeated bytes arg = 2;</code>
     */
    com.google.protobuf.ByteString getArg(int index);

    /**
     * <pre>
     * If false, the client won't wait for another client to finish
     * </pre>
     *
     * <code>optional bool block_for_lock = 3;</code>
     */
    boolean getBlockForLock();

    /**
     * <code>optional string client_description = 4;</code>
     */
    java.lang.String getClientDescription();
    /**
     * <code>optional string client_description = 4;</code>
     */
    com.google.protobuf.ByteString
        getClientDescriptionBytes();
  }
  /**
   * Protobuf type {@code command_server.RunRequest}
   */
  public  static final class RunRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:command_server.RunRequest)
      RunRequestOrBuilder {
    // Use RunRequest.newBuilder() to construct.
    private RunRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private RunRequest() {
      cookie_ = "";
      arg_ = java.util.Collections.emptyList();
      blockForLock_ = false;
      clientDescription_ = "";
    }

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

              cookie_ = s;
              break;
            }
            case 18: {
              if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
                arg_ = new java.util.ArrayList<com.google.protobuf.ByteString>();
                mutable_bitField0_ |= 0x00000002;
              }
              arg_.add(input.readBytes());
              break;
            }
            case 24: {

              blockForLock_ = input.readBool();
              break;
            }
            case 34: {
              java.lang.String s = input.readStringRequireUtf8();

              clientDescription_ = 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 {
        if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
          arg_ = java.util.Collections.unmodifiableList(arg_);
        }
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_RunRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_RunRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.server.CommandProtos.RunRequest.class, com.google.devtools.build.lib.server.CommandProtos.RunRequest.Builder.class);
    }

    private int bitField0_;
    public static final int COOKIE_FIELD_NUMBER = 1;
    private volatile java.lang.Object cookie_;
    /**
     * <pre>
     * This must be the request cookie from the output base. A rudimentary form of authentication.
     * </pre>
     *
     * <code>optional string cookie = 1;</code>
     */
    public java.lang.String getCookie() {
      java.lang.Object ref = cookie_;
      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();
        cookie_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * This must be the request cookie from the output base. A rudimentary form of authentication.
     * </pre>
     *
     * <code>optional string cookie = 1;</code>
     */
    public com.google.protobuf.ByteString
        getCookieBytes() {
      java.lang.Object ref = cookie_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cookie_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int ARG_FIELD_NUMBER = 2;
    private java.util.List<com.google.protobuf.ByteString> arg_;
    /**
     * <code>repeated bytes arg = 2;</code>
     */
    public java.util.List<com.google.protobuf.ByteString>
        getArgList() {
      return arg_;
    }
    /**
     * <code>repeated bytes arg = 2;</code>
     */
    public int getArgCount() {
      return arg_.size();
    }
    /**
     * <code>repeated bytes arg = 2;</code>
     */
    public com.google.protobuf.ByteString getArg(int index) {
      return arg_.get(index);
    }

    public static final int BLOCK_FOR_LOCK_FIELD_NUMBER = 3;
    private boolean blockForLock_;
    /**
     * <pre>
     * If false, the client won't wait for another client to finish
     * </pre>
     *
     * <code>optional bool block_for_lock = 3;</code>
     */
    public boolean getBlockForLock() {
      return blockForLock_;
    }

    public static final int CLIENT_DESCRIPTION_FIELD_NUMBER = 4;
    private volatile java.lang.Object clientDescription_;
    /**
     * <code>optional string client_description = 4;</code>
     */
    public java.lang.String getClientDescription() {
      java.lang.Object ref = clientDescription_;
      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();
        clientDescription_ = s;
        return s;
      }
    }
    /**
     * <code>optional string client_description = 4;</code>
     */
    public com.google.protobuf.ByteString
        getClientDescriptionBytes() {
      java.lang.Object ref = clientDescription_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        clientDescription_ = 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 (!getCookieBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cookie_);
      }
      for (int i = 0; i < arg_.size(); i++) {
        output.writeBytes(2, arg_.get(i));
      }
      if (blockForLock_ != false) {
        output.writeBool(3, blockForLock_);
      }
      if (!getClientDescriptionBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 4, clientDescription_);
      }
    }

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

      size = 0;
      if (!getCookieBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cookie_);
      }
      {
        int dataSize = 0;
        for (int i = 0; i < arg_.size(); i++) {
          dataSize += com.google.protobuf.CodedOutputStream
            .computeBytesSizeNoTag(arg_.get(i));
        }
        size += dataSize;
        size += 1 * getArgList().size();
      }
      if (blockForLock_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(3, blockForLock_);
      }
      if (!getClientDescriptionBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, clientDescription_);
      }
      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.server.CommandProtos.RunRequest)) {
        return super.equals(obj);
      }
      com.google.devtools.build.lib.server.CommandProtos.RunRequest other = (com.google.devtools.build.lib.server.CommandProtos.RunRequest) obj;

      boolean result = true;
      result = result && getCookie()
          .equals(other.getCookie());
      result = result && getArgList()
          .equals(other.getArgList());
      result = result && (getBlockForLock()
          == other.getBlockForLock());
      result = result && getClientDescription()
          .equals(other.getClientDescription());
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      hash = (37 * hash) + COOKIE_FIELD_NUMBER;
      hash = (53 * hash) + getCookie().hashCode();
      if (getArgCount() > 0) {
        hash = (37 * hash) + ARG_FIELD_NUMBER;
        hash = (53 * hash) + getArgList().hashCode();
      }
      hash = (37 * hash) + BLOCK_FOR_LOCK_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getBlockForLock());
      hash = (37 * hash) + CLIENT_DESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getClientDescription().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.lib.server.CommandProtos.RunRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.RunRequest 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.server.CommandProtos.RunRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.RunRequest 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.server.CommandProtos.RunRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.RunRequest 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.server.CommandProtos.RunRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.RunRequest 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.server.CommandProtos.RunRequest 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.server.CommandProtos.RunRequest 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.server.CommandProtos.RunRequest 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;
    }
    /**
     * Protobuf type {@code command_server.RunRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:command_server.RunRequest)
        com.google.devtools.build.lib.server.CommandProtos.RunRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_RunRequest_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_RunRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.server.CommandProtos.RunRequest.class, com.google.devtools.build.lib.server.CommandProtos.RunRequest.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.server.CommandProtos.RunRequest.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();
        cookie_ = "";

        arg_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        blockForLock_ = false;

        clientDescription_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_RunRequest_descriptor;
      }

      public com.google.devtools.build.lib.server.CommandProtos.RunRequest getDefaultInstanceForType() {
        return com.google.devtools.build.lib.server.CommandProtos.RunRequest.getDefaultInstance();
      }

      public com.google.devtools.build.lib.server.CommandProtos.RunRequest build() {
        com.google.devtools.build.lib.server.CommandProtos.RunRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.server.CommandProtos.RunRequest buildPartial() {
        com.google.devtools.build.lib.server.CommandProtos.RunRequest result = new com.google.devtools.build.lib.server.CommandProtos.RunRequest(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        result.cookie_ = cookie_;
        if (((bitField0_ & 0x00000002) == 0x00000002)) {
          arg_ = java.util.Collections.unmodifiableList(arg_);
          bitField0_ = (bitField0_ & ~0x00000002);
        }
        result.arg_ = arg_;
        result.blockForLock_ = blockForLock_;
        result.clientDescription_ = clientDescription_;
        result.bitField0_ = to_bitField0_;
        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.server.CommandProtos.RunRequest) {
          return mergeFrom((com.google.devtools.build.lib.server.CommandProtos.RunRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.server.CommandProtos.RunRequest other) {
        if (other == com.google.devtools.build.lib.server.CommandProtos.RunRequest.getDefaultInstance()) return this;
        if (!other.getCookie().isEmpty()) {
          cookie_ = other.cookie_;
          onChanged();
        }
        if (!other.arg_.isEmpty()) {
          if (arg_.isEmpty()) {
            arg_ = other.arg_;
            bitField0_ = (bitField0_ & ~0x00000002);
          } else {
            ensureArgIsMutable();
            arg_.addAll(other.arg_);
          }
          onChanged();
        }
        if (other.getBlockForLock() != false) {
          setBlockForLock(other.getBlockForLock());
        }
        if (!other.getClientDescription().isEmpty()) {
          clientDescription_ = other.clientDescription_;
          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.server.CommandProtos.RunRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.server.CommandProtos.RunRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      private java.lang.Object cookie_ = "";
      /**
       * <pre>
       * This must be the request cookie from the output base. A rudimentary form of authentication.
       * </pre>
       *
       * <code>optional string cookie = 1;</code>
       */
      public java.lang.String getCookie() {
        java.lang.Object ref = cookie_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          cookie_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * This must be the request cookie from the output base. A rudimentary form of authentication.
       * </pre>
       *
       * <code>optional string cookie = 1;</code>
       */
      public com.google.protobuf.ByteString
          getCookieBytes() {
        java.lang.Object ref = cookie_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          cookie_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * This must be the request cookie from the output base. A rudimentary form of authentication.
       * </pre>
       *
       * <code>optional string cookie = 1;</code>
       */
      public Builder setCookie(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        cookie_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * This must be the request cookie from the output base. A rudimentary form of authentication.
       * </pre>
       *
       * <code>optional string cookie = 1;</code>
       */
      public Builder clearCookie() {
        
        cookie_ = getDefaultInstance().getCookie();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * This must be the request cookie from the output base. A rudimentary form of authentication.
       * </pre>
       *
       * <code>optional string cookie = 1;</code>
       */
      public Builder setCookieBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        cookie_ = value;
        onChanged();
        return this;
      }

      private java.util.List<com.google.protobuf.ByteString> arg_ = java.util.Collections.emptyList();
      private void ensureArgIsMutable() {
        if (!((bitField0_ & 0x00000002) == 0x00000002)) {
          arg_ = new java.util.ArrayList<com.google.protobuf.ByteString>(arg_);
          bitField0_ |= 0x00000002;
         }
      }
      /**
       * <code>repeated bytes arg = 2;</code>
       */
      public java.util.List<com.google.protobuf.ByteString>
          getArgList() {
        return java.util.Collections.unmodifiableList(arg_);
      }
      /**
       * <code>repeated bytes arg = 2;</code>
       */
      public int getArgCount() {
        return arg_.size();
      }
      /**
       * <code>repeated bytes arg = 2;</code>
       */
      public com.google.protobuf.ByteString getArg(int index) {
        return arg_.get(index);
      }
      /**
       * <code>repeated bytes arg = 2;</code>
       */
      public Builder setArg(
          int index, com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureArgIsMutable();
        arg_.set(index, value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated bytes arg = 2;</code>
       */
      public Builder addArg(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  ensureArgIsMutable();
        arg_.add(value);
        onChanged();
        return this;
      }
      /**
       * <code>repeated bytes arg = 2;</code>
       */
      public Builder addAllArg(
          java.lang.Iterable<? extends com.google.protobuf.ByteString> values) {
        ensureArgIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(
            values, arg_);
        onChanged();
        return this;
      }
      /**
       * <code>repeated bytes arg = 2;</code>
       */
      public Builder clearArg() {
        arg_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000002);
        onChanged();
        return this;
      }

      private boolean blockForLock_ ;
      /**
       * <pre>
       * If false, the client won't wait for another client to finish
       * </pre>
       *
       * <code>optional bool block_for_lock = 3;</code>
       */
      public boolean getBlockForLock() {
        return blockForLock_;
      }
      /**
       * <pre>
       * If false, the client won't wait for another client to finish
       * </pre>
       *
       * <code>optional bool block_for_lock = 3;</code>
       */
      public Builder setBlockForLock(boolean value) {
        
        blockForLock_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * If false, the client won't wait for another client to finish
       * </pre>
       *
       * <code>optional bool block_for_lock = 3;</code>
       */
      public Builder clearBlockForLock() {
        
        blockForLock_ = false;
        onChanged();
        return this;
      }

      private java.lang.Object clientDescription_ = "";
      /**
       * <code>optional string client_description = 4;</code>
       */
      public java.lang.String getClientDescription() {
        java.lang.Object ref = clientDescription_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          clientDescription_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string client_description = 4;</code>
       */
      public com.google.protobuf.ByteString
          getClientDescriptionBytes() {
        java.lang.Object ref = clientDescription_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          clientDescription_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string client_description = 4;</code>
       */
      public Builder setClientDescription(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        clientDescription_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string client_description = 4;</code>
       */
      public Builder clearClientDescription() {
        
        clientDescription_ = getDefaultInstance().getClientDescription();
        onChanged();
        return this;
      }
      /**
       * <code>optional string client_description = 4;</code>
       */
      public Builder setClientDescriptionBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        clientDescription_ = 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:command_server.RunRequest)
    }

    // @@protoc_insertion_point(class_scope:command_server.RunRequest)
    private static final com.google.devtools.build.lib.server.CommandProtos.RunRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.lib.server.CommandProtos.RunRequest();
    }

    public static com.google.devtools.build.lib.server.CommandProtos.RunRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.google.devtools.build.lib.server.CommandProtos.RunRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface RunResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:command_server.RunResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <pre>
     * The server always sets this to the response cookie from the output base. A rudimentary form
     * of authentication.
     * </pre>
     *
     * <code>optional string cookie = 1;</code>
     */
    java.lang.String getCookie();
    /**
     * <pre>
     * The server always sets this to the response cookie from the output base. A rudimentary form
     * of authentication.
     * </pre>
     *
     * <code>optional string cookie = 1;</code>
     */
    com.google.protobuf.ByteString
        getCookieBytes();

    /**
     * <code>optional bytes standard_output = 2;</code>
     */
    com.google.protobuf.ByteString getStandardOutput();

    /**
     * <code>optional bytes standard_error = 3;</code>
     */
    com.google.protobuf.ByteString getStandardError();

    /**
     * <pre>
     * Whether this is the last message of the stream
     * </pre>
     *
     * <code>optional bool finished = 4;</code>
     */
    boolean getFinished();

    /**
     * <pre>
     * Only valid for the last message in the stream
     * </pre>
     *
     * <code>optional int32 exit_code = 5;</code>
     */
    int getExitCode();

    /**
     * <pre>
     * Randomly generated command identifier
     * </pre>
     *
     * <code>optional string command_id = 6;</code>
     */
    java.lang.String getCommandId();
    /**
     * <pre>
     * Randomly generated command identifier
     * </pre>
     *
     * <code>optional string command_id = 6;</code>
     */
    com.google.protobuf.ByteString
        getCommandIdBytes();
  }
  /**
   * Protobuf type {@code command_server.RunResponse}
   */
  public  static final class RunResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:command_server.RunResponse)
      RunResponseOrBuilder {
    // Use RunResponse.newBuilder() to construct.
    private RunResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private RunResponse() {
      cookie_ = "";
      standardOutput_ = com.google.protobuf.ByteString.EMPTY;
      standardError_ = com.google.protobuf.ByteString.EMPTY;
      finished_ = false;
      exitCode_ = 0;
      commandId_ = "";
    }

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

              cookie_ = s;
              break;
            }
            case 18: {

              standardOutput_ = input.readBytes();
              break;
            }
            case 26: {

              standardError_ = input.readBytes();
              break;
            }
            case 32: {

              finished_ = input.readBool();
              break;
            }
            case 40: {

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

              commandId_ = 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.server.CommandProtos.internal_static_command_server_RunResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_RunResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.server.CommandProtos.RunResponse.class, com.google.devtools.build.lib.server.CommandProtos.RunResponse.Builder.class);
    }

    public static final int COOKIE_FIELD_NUMBER = 1;
    private volatile java.lang.Object cookie_;
    /**
     * <pre>
     * The server always sets this to the response cookie from the output base. A rudimentary form
     * of authentication.
     * </pre>
     *
     * <code>optional string cookie = 1;</code>
     */
    public java.lang.String getCookie() {
      java.lang.Object ref = cookie_;
      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();
        cookie_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * The server always sets this to the response cookie from the output base. A rudimentary form
     * of authentication.
     * </pre>
     *
     * <code>optional string cookie = 1;</code>
     */
    public com.google.protobuf.ByteString
        getCookieBytes() {
      java.lang.Object ref = cookie_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cookie_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int STANDARD_OUTPUT_FIELD_NUMBER = 2;
    private com.google.protobuf.ByteString standardOutput_;
    /**
     * <code>optional bytes standard_output = 2;</code>
     */
    public com.google.protobuf.ByteString getStandardOutput() {
      return standardOutput_;
    }

    public static final int STANDARD_ERROR_FIELD_NUMBER = 3;
    private com.google.protobuf.ByteString standardError_;
    /**
     * <code>optional bytes standard_error = 3;</code>
     */
    public com.google.protobuf.ByteString getStandardError() {
      return standardError_;
    }

    public static final int FINISHED_FIELD_NUMBER = 4;
    private boolean finished_;
    /**
     * <pre>
     * Whether this is the last message of the stream
     * </pre>
     *
     * <code>optional bool finished = 4;</code>
     */
    public boolean getFinished() {
      return finished_;
    }

    public static final int EXIT_CODE_FIELD_NUMBER = 5;
    private int exitCode_;
    /**
     * <pre>
     * Only valid for the last message in the stream
     * </pre>
     *
     * <code>optional int32 exit_code = 5;</code>
     */
    public int getExitCode() {
      return exitCode_;
    }

    public static final int COMMAND_ID_FIELD_NUMBER = 6;
    private volatile java.lang.Object commandId_;
    /**
     * <pre>
     * Randomly generated command identifier
     * </pre>
     *
     * <code>optional string command_id = 6;</code>
     */
    public java.lang.String getCommandId() {
      java.lang.Object ref = commandId_;
      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();
        commandId_ = s;
        return s;
      }
    }
    /**
     * <pre>
     * Randomly generated command identifier
     * </pre>
     *
     * <code>optional string command_id = 6;</code>
     */
    public com.google.protobuf.ByteString
        getCommandIdBytes() {
      java.lang.Object ref = commandId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        commandId_ = 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 (!getCookieBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cookie_);
      }
      if (!standardOutput_.isEmpty()) {
        output.writeBytes(2, standardOutput_);
      }
      if (!standardError_.isEmpty()) {
        output.writeBytes(3, standardError_);
      }
      if (finished_ != false) {
        output.writeBool(4, finished_);
      }
      if (exitCode_ != 0) {
        output.writeInt32(5, exitCode_);
      }
      if (!getCommandIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 6, commandId_);
      }
    }

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

      size = 0;
      if (!getCookieBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cookie_);
      }
      if (!standardOutput_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, standardOutput_);
      }
      if (!standardError_.isEmpty()) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(3, standardError_);
      }
      if (finished_ != false) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(4, finished_);
      }
      if (exitCode_ != 0) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt32Size(5, exitCode_);
      }
      if (!getCommandIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, commandId_);
      }
      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.server.CommandProtos.RunResponse)) {
        return super.equals(obj);
      }
      com.google.devtools.build.lib.server.CommandProtos.RunResponse other = (com.google.devtools.build.lib.server.CommandProtos.RunResponse) obj;

      boolean result = true;
      result = result && getCookie()
          .equals(other.getCookie());
      result = result && getStandardOutput()
          .equals(other.getStandardOutput());
      result = result && getStandardError()
          .equals(other.getStandardError());
      result = result && (getFinished()
          == other.getFinished());
      result = result && (getExitCode()
          == other.getExitCode());
      result = result && getCommandId()
          .equals(other.getCommandId());
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      hash = (37 * hash) + COOKIE_FIELD_NUMBER;
      hash = (53 * hash) + getCookie().hashCode();
      hash = (37 * hash) + STANDARD_OUTPUT_FIELD_NUMBER;
      hash = (53 * hash) + getStandardOutput().hashCode();
      hash = (37 * hash) + STANDARD_ERROR_FIELD_NUMBER;
      hash = (53 * hash) + getStandardError().hashCode();
      hash = (37 * hash) + FINISHED_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
          getFinished());
      hash = (37 * hash) + EXIT_CODE_FIELD_NUMBER;
      hash = (53 * hash) + getExitCode();
      hash = (37 * hash) + COMMAND_ID_FIELD_NUMBER;
      hash = (53 * hash) + getCommandId().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.lib.server.CommandProtos.RunResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.RunResponse 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.server.CommandProtos.RunResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.RunResponse 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.server.CommandProtos.RunResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.RunResponse 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.server.CommandProtos.RunResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.RunResponse 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.server.CommandProtos.RunResponse 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.server.CommandProtos.RunResponse 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.server.CommandProtos.RunResponse 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;
    }
    /**
     * Protobuf type {@code command_server.RunResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:command_server.RunResponse)
        com.google.devtools.build.lib.server.CommandProtos.RunResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_RunResponse_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_RunResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.server.CommandProtos.RunResponse.class, com.google.devtools.build.lib.server.CommandProtos.RunResponse.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.server.CommandProtos.RunResponse.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();
        cookie_ = "";

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

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

        finished_ = false;

        exitCode_ = 0;

        commandId_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_RunResponse_descriptor;
      }

      public com.google.devtools.build.lib.server.CommandProtos.RunResponse getDefaultInstanceForType() {
        return com.google.devtools.build.lib.server.CommandProtos.RunResponse.getDefaultInstance();
      }

      public com.google.devtools.build.lib.server.CommandProtos.RunResponse build() {
        com.google.devtools.build.lib.server.CommandProtos.RunResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.server.CommandProtos.RunResponse buildPartial() {
        com.google.devtools.build.lib.server.CommandProtos.RunResponse result = new com.google.devtools.build.lib.server.CommandProtos.RunResponse(this);
        result.cookie_ = cookie_;
        result.standardOutput_ = standardOutput_;
        result.standardError_ = standardError_;
        result.finished_ = finished_;
        result.exitCode_ = exitCode_;
        result.commandId_ = commandId_;
        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.server.CommandProtos.RunResponse) {
          return mergeFrom((com.google.devtools.build.lib.server.CommandProtos.RunResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.server.CommandProtos.RunResponse other) {
        if (other == com.google.devtools.build.lib.server.CommandProtos.RunResponse.getDefaultInstance()) return this;
        if (!other.getCookie().isEmpty()) {
          cookie_ = other.cookie_;
          onChanged();
        }
        if (other.getStandardOutput() != com.google.protobuf.ByteString.EMPTY) {
          setStandardOutput(other.getStandardOutput());
        }
        if (other.getStandardError() != com.google.protobuf.ByteString.EMPTY) {
          setStandardError(other.getStandardError());
        }
        if (other.getFinished() != false) {
          setFinished(other.getFinished());
        }
        if (other.getExitCode() != 0) {
          setExitCode(other.getExitCode());
        }
        if (!other.getCommandId().isEmpty()) {
          commandId_ = other.commandId_;
          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.server.CommandProtos.RunResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.server.CommandProtos.RunResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object cookie_ = "";
      /**
       * <pre>
       * The server always sets this to the response cookie from the output base. A rudimentary form
       * of authentication.
       * </pre>
       *
       * <code>optional string cookie = 1;</code>
       */
      public java.lang.String getCookie() {
        java.lang.Object ref = cookie_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          cookie_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * The server always sets this to the response cookie from the output base. A rudimentary form
       * of authentication.
       * </pre>
       *
       * <code>optional string cookie = 1;</code>
       */
      public com.google.protobuf.ByteString
          getCookieBytes() {
        java.lang.Object ref = cookie_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          cookie_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * The server always sets this to the response cookie from the output base. A rudimentary form
       * of authentication.
       * </pre>
       *
       * <code>optional string cookie = 1;</code>
       */
      public Builder setCookie(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        cookie_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The server always sets this to the response cookie from the output base. A rudimentary form
       * of authentication.
       * </pre>
       *
       * <code>optional string cookie = 1;</code>
       */
      public Builder clearCookie() {
        
        cookie_ = getDefaultInstance().getCookie();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * The server always sets this to the response cookie from the output base. A rudimentary form
       * of authentication.
       * </pre>
       *
       * <code>optional string cookie = 1;</code>
       */
      public Builder setCookieBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        cookie_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString standardOutput_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>optional bytes standard_output = 2;</code>
       */
      public com.google.protobuf.ByteString getStandardOutput() {
        return standardOutput_;
      }
      /**
       * <code>optional bytes standard_output = 2;</code>
       */
      public Builder setStandardOutput(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        standardOutput_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional bytes standard_output = 2;</code>
       */
      public Builder clearStandardOutput() {
        
        standardOutput_ = getDefaultInstance().getStandardOutput();
        onChanged();
        return this;
      }

      private com.google.protobuf.ByteString standardError_ = com.google.protobuf.ByteString.EMPTY;
      /**
       * <code>optional bytes standard_error = 3;</code>
       */
      public com.google.protobuf.ByteString getStandardError() {
        return standardError_;
      }
      /**
       * <code>optional bytes standard_error = 3;</code>
       */
      public Builder setStandardError(com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        standardError_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional bytes standard_error = 3;</code>
       */
      public Builder clearStandardError() {
        
        standardError_ = getDefaultInstance().getStandardError();
        onChanged();
        return this;
      }

      private boolean finished_ ;
      /**
       * <pre>
       * Whether this is the last message of the stream
       * </pre>
       *
       * <code>optional bool finished = 4;</code>
       */
      public boolean getFinished() {
        return finished_;
      }
      /**
       * <pre>
       * Whether this is the last message of the stream
       * </pre>
       *
       * <code>optional bool finished = 4;</code>
       */
      public Builder setFinished(boolean value) {
        
        finished_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Whether this is the last message of the stream
       * </pre>
       *
       * <code>optional bool finished = 4;</code>
       */
      public Builder clearFinished() {
        
        finished_ = false;
        onChanged();
        return this;
      }

      private int exitCode_ ;
      /**
       * <pre>
       * Only valid for the last message in the stream
       * </pre>
       *
       * <code>optional int32 exit_code = 5;</code>
       */
      public int getExitCode() {
        return exitCode_;
      }
      /**
       * <pre>
       * Only valid for the last message in the stream
       * </pre>
       *
       * <code>optional int32 exit_code = 5;</code>
       */
      public Builder setExitCode(int value) {
        
        exitCode_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Only valid for the last message in the stream
       * </pre>
       *
       * <code>optional int32 exit_code = 5;</code>
       */
      public Builder clearExitCode() {
        
        exitCode_ = 0;
        onChanged();
        return this;
      }

      private java.lang.Object commandId_ = "";
      /**
       * <pre>
       * Randomly generated command identifier
       * </pre>
       *
       * <code>optional string command_id = 6;</code>
       */
      public java.lang.String getCommandId() {
        java.lang.Object ref = commandId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          commandId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <pre>
       * Randomly generated command identifier
       * </pre>
       *
       * <code>optional string command_id = 6;</code>
       */
      public com.google.protobuf.ByteString
          getCommandIdBytes() {
        java.lang.Object ref = commandId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          commandId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <pre>
       * Randomly generated command identifier
       * </pre>
       *
       * <code>optional string command_id = 6;</code>
       */
      public Builder setCommandId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        commandId_ = value;
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Randomly generated command identifier
       * </pre>
       *
       * <code>optional string command_id = 6;</code>
       */
      public Builder clearCommandId() {
        
        commandId_ = getDefaultInstance().getCommandId();
        onChanged();
        return this;
      }
      /**
       * <pre>
       * Randomly generated command identifier
       * </pre>
       *
       * <code>optional string command_id = 6;</code>
       */
      public Builder setCommandIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        commandId_ = 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:command_server.RunResponse)
    }

    // @@protoc_insertion_point(class_scope:command_server.RunResponse)
    private static final com.google.devtools.build.lib.server.CommandProtos.RunResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.lib.server.CommandProtos.RunResponse();
    }

    public static com.google.devtools.build.lib.server.CommandProtos.RunResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.google.devtools.build.lib.server.CommandProtos.RunResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface CancelRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:command_server.CancelRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional string cookie = 1;</code>
     */
    java.lang.String getCookie();
    /**
     * <code>optional string cookie = 1;</code>
     */
    com.google.protobuf.ByteString
        getCookieBytes();

    /**
     * <code>optional string command_id = 2;</code>
     */
    java.lang.String getCommandId();
    /**
     * <code>optional string command_id = 2;</code>
     */
    com.google.protobuf.ByteString
        getCommandIdBytes();
  }
  /**
   * Protobuf type {@code command_server.CancelRequest}
   */
  public  static final class CancelRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:command_server.CancelRequest)
      CancelRequestOrBuilder {
    // Use CancelRequest.newBuilder() to construct.
    private CancelRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private CancelRequest() {
      cookie_ = "";
      commandId_ = "";
    }

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

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

              commandId_ = 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.server.CommandProtos.internal_static_command_server_CancelRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_CancelRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.server.CommandProtos.CancelRequest.class, com.google.devtools.build.lib.server.CommandProtos.CancelRequest.Builder.class);
    }

    public static final int COOKIE_FIELD_NUMBER = 1;
    private volatile java.lang.Object cookie_;
    /**
     * <code>optional string cookie = 1;</code>
     */
    public java.lang.String getCookie() {
      java.lang.Object ref = cookie_;
      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();
        cookie_ = s;
        return s;
      }
    }
    /**
     * <code>optional string cookie = 1;</code>
     */
    public com.google.protobuf.ByteString
        getCookieBytes() {
      java.lang.Object ref = cookie_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cookie_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int COMMAND_ID_FIELD_NUMBER = 2;
    private volatile java.lang.Object commandId_;
    /**
     * <code>optional string command_id = 2;</code>
     */
    public java.lang.String getCommandId() {
      java.lang.Object ref = commandId_;
      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();
        commandId_ = s;
        return s;
      }
    }
    /**
     * <code>optional string command_id = 2;</code>
     */
    public com.google.protobuf.ByteString
        getCommandIdBytes() {
      java.lang.Object ref = commandId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        commandId_ = 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 (!getCookieBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cookie_);
      }
      if (!getCommandIdBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, commandId_);
      }
    }

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

      size = 0;
      if (!getCookieBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cookie_);
      }
      if (!getCommandIdBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, commandId_);
      }
      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.server.CommandProtos.CancelRequest)) {
        return super.equals(obj);
      }
      com.google.devtools.build.lib.server.CommandProtos.CancelRequest other = (com.google.devtools.build.lib.server.CommandProtos.CancelRequest) obj;

      boolean result = true;
      result = result && getCookie()
          .equals(other.getCookie());
      result = result && getCommandId()
          .equals(other.getCommandId());
      return result;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      hash = (37 * hash) + COOKIE_FIELD_NUMBER;
      hash = (53 * hash) + getCookie().hashCode();
      hash = (37 * hash) + COMMAND_ID_FIELD_NUMBER;
      hash = (53 * hash) + getCommandId().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.lib.server.CommandProtos.CancelRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.CancelRequest 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.server.CommandProtos.CancelRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.CancelRequest 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.server.CommandProtos.CancelRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.CancelRequest 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.server.CommandProtos.CancelRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.CancelRequest 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.server.CommandProtos.CancelRequest 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.server.CommandProtos.CancelRequest 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.server.CommandProtos.CancelRequest 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;
    }
    /**
     * Protobuf type {@code command_server.CancelRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:command_server.CancelRequest)
        com.google.devtools.build.lib.server.CommandProtos.CancelRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_CancelRequest_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_CancelRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.server.CommandProtos.CancelRequest.class, com.google.devtools.build.lib.server.CommandProtos.CancelRequest.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.server.CommandProtos.CancelRequest.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();
        cookie_ = "";

        commandId_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_CancelRequest_descriptor;
      }

      public com.google.devtools.build.lib.server.CommandProtos.CancelRequest getDefaultInstanceForType() {
        return com.google.devtools.build.lib.server.CommandProtos.CancelRequest.getDefaultInstance();
      }

      public com.google.devtools.build.lib.server.CommandProtos.CancelRequest build() {
        com.google.devtools.build.lib.server.CommandProtos.CancelRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.server.CommandProtos.CancelRequest buildPartial() {
        com.google.devtools.build.lib.server.CommandProtos.CancelRequest result = new com.google.devtools.build.lib.server.CommandProtos.CancelRequest(this);
        result.cookie_ = cookie_;
        result.commandId_ = commandId_;
        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.server.CommandProtos.CancelRequest) {
          return mergeFrom((com.google.devtools.build.lib.server.CommandProtos.CancelRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.server.CommandProtos.CancelRequest other) {
        if (other == com.google.devtools.build.lib.server.CommandProtos.CancelRequest.getDefaultInstance()) return this;
        if (!other.getCookie().isEmpty()) {
          cookie_ = other.cookie_;
          onChanged();
        }
        if (!other.getCommandId().isEmpty()) {
          commandId_ = other.commandId_;
          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.server.CommandProtos.CancelRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.server.CommandProtos.CancelRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object cookie_ = "";
      /**
       * <code>optional string cookie = 1;</code>
       */
      public java.lang.String getCookie() {
        java.lang.Object ref = cookie_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          cookie_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public com.google.protobuf.ByteString
          getCookieBytes() {
        java.lang.Object ref = cookie_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          cookie_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public Builder setCookie(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        cookie_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public Builder clearCookie() {
        
        cookie_ = getDefaultInstance().getCookie();
        onChanged();
        return this;
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public Builder setCookieBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        cookie_ = value;
        onChanged();
        return this;
      }

      private java.lang.Object commandId_ = "";
      /**
       * <code>optional string command_id = 2;</code>
       */
      public java.lang.String getCommandId() {
        java.lang.Object ref = commandId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          commandId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string command_id = 2;</code>
       */
      public com.google.protobuf.ByteString
          getCommandIdBytes() {
        java.lang.Object ref = commandId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          commandId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string command_id = 2;</code>
       */
      public Builder setCommandId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        commandId_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string command_id = 2;</code>
       */
      public Builder clearCommandId() {
        
        commandId_ = getDefaultInstance().getCommandId();
        onChanged();
        return this;
      }
      /**
       * <code>optional string command_id = 2;</code>
       */
      public Builder setCommandIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        commandId_ = 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:command_server.CancelRequest)
    }

    // @@protoc_insertion_point(class_scope:command_server.CancelRequest)
    private static final com.google.devtools.build.lib.server.CommandProtos.CancelRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.lib.server.CommandProtos.CancelRequest();
    }

    public static com.google.devtools.build.lib.server.CommandProtos.CancelRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.google.devtools.build.lib.server.CommandProtos.CancelRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface CancelResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:command_server.CancelResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional string cookie = 1;</code>
     */
    java.lang.String getCookie();
    /**
     * <code>optional string cookie = 1;</code>
     */
    com.google.protobuf.ByteString
        getCookieBytes();
  }
  /**
   * Protobuf type {@code command_server.CancelResponse}
   */
  public  static final class CancelResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:command_server.CancelResponse)
      CancelResponseOrBuilder {
    // Use CancelResponse.newBuilder() to construct.
    private CancelResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private CancelResponse() {
      cookie_ = "";
    }

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

              cookie_ = 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.server.CommandProtos.internal_static_command_server_CancelResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_CancelResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.server.CommandProtos.CancelResponse.class, com.google.devtools.build.lib.server.CommandProtos.CancelResponse.Builder.class);
    }

    public static final int COOKIE_FIELD_NUMBER = 1;
    private volatile java.lang.Object cookie_;
    /**
     * <code>optional string cookie = 1;</code>
     */
    public java.lang.String getCookie() {
      java.lang.Object ref = cookie_;
      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();
        cookie_ = s;
        return s;
      }
    }
    /**
     * <code>optional string cookie = 1;</code>
     */
    public com.google.protobuf.ByteString
        getCookieBytes() {
      java.lang.Object ref = cookie_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cookie_ = 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 (!getCookieBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cookie_);
      }
    }

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

      size = 0;
      if (!getCookieBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cookie_);
      }
      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.server.CommandProtos.CancelResponse)) {
        return super.equals(obj);
      }
      com.google.devtools.build.lib.server.CommandProtos.CancelResponse other = (com.google.devtools.build.lib.server.CommandProtos.CancelResponse) obj;

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

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      hash = (37 * hash) + COOKIE_FIELD_NUMBER;
      hash = (53 * hash) + getCookie().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.lib.server.CommandProtos.CancelResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.CancelResponse 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.server.CommandProtos.CancelResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.CancelResponse 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.server.CommandProtos.CancelResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.CancelResponse 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.server.CommandProtos.CancelResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.CancelResponse 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.server.CommandProtos.CancelResponse 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.server.CommandProtos.CancelResponse 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.server.CommandProtos.CancelResponse 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;
    }
    /**
     * Protobuf type {@code command_server.CancelResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:command_server.CancelResponse)
        com.google.devtools.build.lib.server.CommandProtos.CancelResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_CancelResponse_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_CancelResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.server.CommandProtos.CancelResponse.class, com.google.devtools.build.lib.server.CommandProtos.CancelResponse.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.server.CommandProtos.CancelResponse.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();
        cookie_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_CancelResponse_descriptor;
      }

      public com.google.devtools.build.lib.server.CommandProtos.CancelResponse getDefaultInstanceForType() {
        return com.google.devtools.build.lib.server.CommandProtos.CancelResponse.getDefaultInstance();
      }

      public com.google.devtools.build.lib.server.CommandProtos.CancelResponse build() {
        com.google.devtools.build.lib.server.CommandProtos.CancelResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.server.CommandProtos.CancelResponse buildPartial() {
        com.google.devtools.build.lib.server.CommandProtos.CancelResponse result = new com.google.devtools.build.lib.server.CommandProtos.CancelResponse(this);
        result.cookie_ = cookie_;
        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.server.CommandProtos.CancelResponse) {
          return mergeFrom((com.google.devtools.build.lib.server.CommandProtos.CancelResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.server.CommandProtos.CancelResponse other) {
        if (other == com.google.devtools.build.lib.server.CommandProtos.CancelResponse.getDefaultInstance()) return this;
        if (!other.getCookie().isEmpty()) {
          cookie_ = other.cookie_;
          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.server.CommandProtos.CancelResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.server.CommandProtos.CancelResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object cookie_ = "";
      /**
       * <code>optional string cookie = 1;</code>
       */
      public java.lang.String getCookie() {
        java.lang.Object ref = cookie_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          cookie_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public com.google.protobuf.ByteString
          getCookieBytes() {
        java.lang.Object ref = cookie_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          cookie_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public Builder setCookie(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        cookie_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public Builder clearCookie() {
        
        cookie_ = getDefaultInstance().getCookie();
        onChanged();
        return this;
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public Builder setCookieBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        cookie_ = 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:command_server.CancelResponse)
    }

    // @@protoc_insertion_point(class_scope:command_server.CancelResponse)
    private static final com.google.devtools.build.lib.server.CommandProtos.CancelResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.lib.server.CommandProtos.CancelResponse();
    }

    public static com.google.devtools.build.lib.server.CommandProtos.CancelResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.google.devtools.build.lib.server.CommandProtos.CancelResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PingRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:command_server.PingRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional string cookie = 1;</code>
     */
    java.lang.String getCookie();
    /**
     * <code>optional string cookie = 1;</code>
     */
    com.google.protobuf.ByteString
        getCookieBytes();
  }
  /**
   * Protobuf type {@code command_server.PingRequest}
   */
  public  static final class PingRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:command_server.PingRequest)
      PingRequestOrBuilder {
    // Use PingRequest.newBuilder() to construct.
    private PingRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PingRequest() {
      cookie_ = "";
    }

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

              cookie_ = 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.server.CommandProtos.internal_static_command_server_PingRequest_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_PingRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.server.CommandProtos.PingRequest.class, com.google.devtools.build.lib.server.CommandProtos.PingRequest.Builder.class);
    }

    public static final int COOKIE_FIELD_NUMBER = 1;
    private volatile java.lang.Object cookie_;
    /**
     * <code>optional string cookie = 1;</code>
     */
    public java.lang.String getCookie() {
      java.lang.Object ref = cookie_;
      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();
        cookie_ = s;
        return s;
      }
    }
    /**
     * <code>optional string cookie = 1;</code>
     */
    public com.google.protobuf.ByteString
        getCookieBytes() {
      java.lang.Object ref = cookie_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cookie_ = 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 (!getCookieBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cookie_);
      }
    }

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

      size = 0;
      if (!getCookieBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cookie_);
      }
      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.server.CommandProtos.PingRequest)) {
        return super.equals(obj);
      }
      com.google.devtools.build.lib.server.CommandProtos.PingRequest other = (com.google.devtools.build.lib.server.CommandProtos.PingRequest) obj;

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

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      hash = (37 * hash) + COOKIE_FIELD_NUMBER;
      hash = (53 * hash) + getCookie().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.lib.server.CommandProtos.PingRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.PingRequest 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.server.CommandProtos.PingRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.PingRequest 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.server.CommandProtos.PingRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.PingRequest 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.server.CommandProtos.PingRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.PingRequest 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.server.CommandProtos.PingRequest 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.server.CommandProtos.PingRequest 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.server.CommandProtos.PingRequest 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;
    }
    /**
     * Protobuf type {@code command_server.PingRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:command_server.PingRequest)
        com.google.devtools.build.lib.server.CommandProtos.PingRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_PingRequest_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_PingRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.server.CommandProtos.PingRequest.class, com.google.devtools.build.lib.server.CommandProtos.PingRequest.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.server.CommandProtos.PingRequest.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();
        cookie_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_PingRequest_descriptor;
      }

      public com.google.devtools.build.lib.server.CommandProtos.PingRequest getDefaultInstanceForType() {
        return com.google.devtools.build.lib.server.CommandProtos.PingRequest.getDefaultInstance();
      }

      public com.google.devtools.build.lib.server.CommandProtos.PingRequest build() {
        com.google.devtools.build.lib.server.CommandProtos.PingRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.server.CommandProtos.PingRequest buildPartial() {
        com.google.devtools.build.lib.server.CommandProtos.PingRequest result = new com.google.devtools.build.lib.server.CommandProtos.PingRequest(this);
        result.cookie_ = cookie_;
        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.server.CommandProtos.PingRequest) {
          return mergeFrom((com.google.devtools.build.lib.server.CommandProtos.PingRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.server.CommandProtos.PingRequest other) {
        if (other == com.google.devtools.build.lib.server.CommandProtos.PingRequest.getDefaultInstance()) return this;
        if (!other.getCookie().isEmpty()) {
          cookie_ = other.cookie_;
          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.server.CommandProtos.PingRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.server.CommandProtos.PingRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object cookie_ = "";
      /**
       * <code>optional string cookie = 1;</code>
       */
      public java.lang.String getCookie() {
        java.lang.Object ref = cookie_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          cookie_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public com.google.protobuf.ByteString
          getCookieBytes() {
        java.lang.Object ref = cookie_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          cookie_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public Builder setCookie(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        cookie_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public Builder clearCookie() {
        
        cookie_ = getDefaultInstance().getCookie();
        onChanged();
        return this;
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public Builder setCookieBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        cookie_ = 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:command_server.PingRequest)
    }

    // @@protoc_insertion_point(class_scope:command_server.PingRequest)
    private static final com.google.devtools.build.lib.server.CommandProtos.PingRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.lib.server.CommandProtos.PingRequest();
    }

    public static com.google.devtools.build.lib.server.CommandProtos.PingRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.google.devtools.build.lib.server.CommandProtos.PingRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface PingResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:command_server.PingResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * <code>optional string cookie = 1;</code>
     */
    java.lang.String getCookie();
    /**
     * <code>optional string cookie = 1;</code>
     */
    com.google.protobuf.ByteString
        getCookieBytes();
  }
  /**
   * Protobuf type {@code command_server.PingResponse}
   */
  public  static final class PingResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:command_server.PingResponse)
      PingResponseOrBuilder {
    // Use PingResponse.newBuilder() to construct.
    private PingResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }
    private PingResponse() {
      cookie_ = "";
    }

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

              cookie_ = 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.server.CommandProtos.internal_static_command_server_PingResponse_descriptor;
    }

    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_PingResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.devtools.build.lib.server.CommandProtos.PingResponse.class, com.google.devtools.build.lib.server.CommandProtos.PingResponse.Builder.class);
    }

    public static final int COOKIE_FIELD_NUMBER = 1;
    private volatile java.lang.Object cookie_;
    /**
     * <code>optional string cookie = 1;</code>
     */
    public java.lang.String getCookie() {
      java.lang.Object ref = cookie_;
      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();
        cookie_ = s;
        return s;
      }
    }
    /**
     * <code>optional string cookie = 1;</code>
     */
    public com.google.protobuf.ByteString
        getCookieBytes() {
      java.lang.Object ref = cookie_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        cookie_ = 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 (!getCookieBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, cookie_);
      }
    }

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

      size = 0;
      if (!getCookieBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, cookie_);
      }
      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.server.CommandProtos.PingResponse)) {
        return super.equals(obj);
      }
      com.google.devtools.build.lib.server.CommandProtos.PingResponse other = (com.google.devtools.build.lib.server.CommandProtos.PingResponse) obj;

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

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptorForType().hashCode();
      hash = (37 * hash) + COOKIE_FIELD_NUMBER;
      hash = (53 * hash) + getCookie().hashCode();
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.devtools.build.lib.server.CommandProtos.PingResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.PingResponse 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.server.CommandProtos.PingResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.PingResponse 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.server.CommandProtos.PingResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.PingResponse 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.server.CommandProtos.PingResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static com.google.devtools.build.lib.server.CommandProtos.PingResponse 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.server.CommandProtos.PingResponse 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.server.CommandProtos.PingResponse 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.server.CommandProtos.PingResponse 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;
    }
    /**
     * Protobuf type {@code command_server.PingResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
        // @@protoc_insertion_point(builder_implements:command_server.PingResponse)
        com.google.devtools.build.lib.server.CommandProtos.PingResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_PingResponse_descriptor;
      }

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_PingResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.devtools.build.lib.server.CommandProtos.PingResponse.class, com.google.devtools.build.lib.server.CommandProtos.PingResponse.Builder.class);
      }

      // Construct using com.google.devtools.build.lib.server.CommandProtos.PingResponse.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();
        cookie_ = "";

        return this;
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.google.devtools.build.lib.server.CommandProtos.internal_static_command_server_PingResponse_descriptor;
      }

      public com.google.devtools.build.lib.server.CommandProtos.PingResponse getDefaultInstanceForType() {
        return com.google.devtools.build.lib.server.CommandProtos.PingResponse.getDefaultInstance();
      }

      public com.google.devtools.build.lib.server.CommandProtos.PingResponse build() {
        com.google.devtools.build.lib.server.CommandProtos.PingResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.google.devtools.build.lib.server.CommandProtos.PingResponse buildPartial() {
        com.google.devtools.build.lib.server.CommandProtos.PingResponse result = new com.google.devtools.build.lib.server.CommandProtos.PingResponse(this);
        result.cookie_ = cookie_;
        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.server.CommandProtos.PingResponse) {
          return mergeFrom((com.google.devtools.build.lib.server.CommandProtos.PingResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.google.devtools.build.lib.server.CommandProtos.PingResponse other) {
        if (other == com.google.devtools.build.lib.server.CommandProtos.PingResponse.getDefaultInstance()) return this;
        if (!other.getCookie().isEmpty()) {
          cookie_ = other.cookie_;
          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.server.CommandProtos.PingResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.google.devtools.build.lib.server.CommandProtos.PingResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object cookie_ = "";
      /**
       * <code>optional string cookie = 1;</code>
       */
      public java.lang.String getCookie() {
        java.lang.Object ref = cookie_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          cookie_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public com.google.protobuf.ByteString
          getCookieBytes() {
        java.lang.Object ref = cookie_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          cookie_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public Builder setCookie(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        cookie_ = value;
        onChanged();
        return this;
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public Builder clearCookie() {
        
        cookie_ = getDefaultInstance().getCookie();
        onChanged();
        return this;
      }
      /**
       * <code>optional string cookie = 1;</code>
       */
      public Builder setCookieBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        cookie_ = 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:command_server.PingResponse)
    }

    // @@protoc_insertion_point(class_scope:command_server.PingResponse)
    private static final com.google.devtools.build.lib.server.CommandProtos.PingResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new com.google.devtools.build.lib.server.CommandProtos.PingResponse();
    }

    public static com.google.devtools.build.lib.server.CommandProtos.PingResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

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

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

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

    public com.google.devtools.build.lib.server.CommandProtos.PingResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_command_server_RunRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_command_server_RunRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_command_server_RunResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_command_server_RunResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_command_server_CancelRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_command_server_CancelRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_command_server_CancelResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_command_server_CancelResponse_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_command_server_PingRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_command_server_PingRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_command_server_PingResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_command_server_PingResponse_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n|bazel-out/local-fastbuild/bin/src/main" +
      "/protobuf/libcommand_server_java_proto_s" +
      "rcjar.srcjar.preprocessed/command_server" +
      ".proto\022\016command_server\"]\n\nRunRequest\022\016\n\006" +
      "cookie\030\001 \001(\t\022\013\n\003arg\030\002 \003(\014\022\026\n\016block_for_l" +
      "ock\030\003 \001(\010\022\032\n\022client_description\030\004 \001(\t\"\207\001" +
      "\n\013RunResponse\022\016\n\006cookie\030\001 \001(\t\022\027\n\017standar" +
      "d_output\030\002 \001(\014\022\026\n\016standard_error\030\003 \001(\014\022\020" +
      "\n\010finished\030\004 \001(\010\022\021\n\texit_code\030\005 \001(\005\022\022\n\nc" +
      "ommand_id\030\006 \001(\t\"3\n\rCancelRequest\022\016\n\006cook",
      "ie\030\001 \001(\t\022\022\n\ncommand_id\030\002 \001(\t\" \n\016CancelRe" +
      "sponse\022\016\n\006cookie\030\001 \001(\t\"\035\n\013PingRequest\022\016\n" +
      "\006cookie\030\001 \001(\t\"\036\n\014PingResponse\022\016\n\006cookie\030" +
      "\001 \001(\t2\343\001\n\rCommandServer\022B\n\003Run\022\032.command" +
      "_server.RunRequest\032\033.command_server.RunR" +
      "esponse\"\0000\001\022I\n\006Cancel\022\035.command_server.C" +
      "ancelRequest\032\036.command_server.CancelResp" +
      "onse\"\000\022C\n\004Ping\022\033.command_server.PingRequ" +
      "est\032\034.command_server.PingResponse\"\000B5\n$c" +
      "om.google.devtools.build.lib.serverB\rCom",
      "mandProtosb\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_command_server_RunRequest_descriptor =
      getDescriptor().getMessageTypes().get(0);
    internal_static_command_server_RunRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_command_server_RunRequest_descriptor,
        new java.lang.String[] { "Cookie", "Arg", "BlockForLock", "ClientDescription", });
    internal_static_command_server_RunResponse_descriptor =
      getDescriptor().getMessageTypes().get(1);
    internal_static_command_server_RunResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_command_server_RunResponse_descriptor,
        new java.lang.String[] { "Cookie", "StandardOutput", "StandardError", "Finished", "ExitCode", "CommandId", });
    internal_static_command_server_CancelRequest_descriptor =
      getDescriptor().getMessageTypes().get(2);
    internal_static_command_server_CancelRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_command_server_CancelRequest_descriptor,
        new java.lang.String[] { "Cookie", "CommandId", });
    internal_static_command_server_CancelResponse_descriptor =
      getDescriptor().getMessageTypes().get(3);
    internal_static_command_server_CancelResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_command_server_CancelResponse_descriptor,
        new java.lang.String[] { "Cookie", });
    internal_static_command_server_PingRequest_descriptor =
      getDescriptor().getMessageTypes().get(4);
    internal_static_command_server_PingRequest_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_command_server_PingRequest_descriptor,
        new java.lang.String[] { "Cookie", });
    internal_static_command_server_PingResponse_descriptor =
      getDescriptor().getMessageTypes().get(5);
    internal_static_command_server_PingResponse_fieldAccessorTable = new
      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
        internal_static_command_server_PingResponse_descriptor,
        new java.lang.String[] { "Cookie", });
  }

  // @@protoc_insertion_point(outer_class_scope)
}
