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

package com.intellij.execution.process.mediator.rpc;

/**
 * Protobuf type {@code intellij.process.mediator.rpc.CommandLine}
 */
public final class CommandLine extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:intellij.process.mediator.rpc.CommandLine)
    CommandLineOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CommandLine.newBuilder() to construct.
  private CommandLine(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private CommandLine() {
    command_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    workingDir_ = "";
    inFile_ = "";
    outFile_ = "";
    errFile_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CommandLine(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            java.lang.String s = input.readStringRequireUtf8();
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              command_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            command_.add(s);
            break;
          }
          case 18: {
            java.lang.String s = input.readStringRequireUtf8();

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

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

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

            errFile_ = s;
            break;
          }
          case 50: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              environ_ = com.google.protobuf.MapField.newMapField(
                  EnvironDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000002;
            }
            com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
            environ__ = input.readMessage(
                EnvironDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            environ_.getMutableMap().put(
                environ__.getKey(), environ__.getValue());
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        command_ = command_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.intellij.execution.process.mediator.rpc.ProcessMediatorProto.internal_static_intellij_process_mediator_rpc_CommandLine_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 6:
        return internalGetEnviron();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.intellij.execution.process.mediator.rpc.ProcessMediatorProto.internal_static_intellij_process_mediator_rpc_CommandLine_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.intellij.execution.process.mediator.rpc.CommandLine.class, com.intellij.execution.process.mediator.rpc.CommandLine.Builder.class);
  }

  public static final int COMMAND_FIELD_NUMBER = 1;
  private com.google.protobuf.LazyStringList command_;
  /**
   * <code>repeated string command = 1;</code>
   * @return A list containing the command.
   */
  public com.google.protobuf.ProtocolStringList
      getCommandList() {
    return command_;
  }
  /**
   * <code>repeated string command = 1;</code>
   * @return The count of command.
   */
  public int getCommandCount() {
    return command_.size();
  }
  /**
   * <code>repeated string command = 1;</code>
   * @param index The index of the element to return.
   * @return The command at the given index.
   */
  public java.lang.String getCommand(int index) {
    return command_.get(index);
  }
  /**
   * <code>repeated string command = 1;</code>
   * @param index The index of the value to return.
   * @return The bytes of the command at the given index.
   */
  public com.google.protobuf.ByteString
      getCommandBytes(int index) {
    return command_.getByteString(index);
  }

  public static final int WORKING_DIR_FIELD_NUMBER = 2;
  private volatile java.lang.Object workingDir_;
  /**
   * <code>string working_dir = 2;</code>
   * @return The workingDir.
   */
  @java.lang.Override
  public java.lang.String getWorkingDir() {
    java.lang.Object ref = workingDir_;
    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();
      workingDir_ = s;
      return s;
    }
  }
  /**
   * <code>string working_dir = 2;</code>
   * @return The bytes for workingDir.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getWorkingDirBytes() {
    java.lang.Object ref = workingDir_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      workingDir_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int IN_FILE_FIELD_NUMBER = 3;
  private volatile java.lang.Object inFile_;
  /**
   * <code>string in_file = 3;</code>
   * @return The inFile.
   */
  @java.lang.Override
  public java.lang.String getInFile() {
    java.lang.Object ref = inFile_;
    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();
      inFile_ = s;
      return s;
    }
  }
  /**
   * <code>string in_file = 3;</code>
   * @return The bytes for inFile.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getInFileBytes() {
    java.lang.Object ref = inFile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      inFile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int OUT_FILE_FIELD_NUMBER = 4;
  private volatile java.lang.Object outFile_;
  /**
   * <code>string out_file = 4;</code>
   * @return The outFile.
   */
  @java.lang.Override
  public java.lang.String getOutFile() {
    java.lang.Object ref = outFile_;
    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();
      outFile_ = s;
      return s;
    }
  }
  /**
   * <code>string out_file = 4;</code>
   * @return The bytes for outFile.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getOutFileBytes() {
    java.lang.Object ref = outFile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      outFile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ERR_FILE_FIELD_NUMBER = 5;
  private volatile java.lang.Object errFile_;
  /**
   * <code>string err_file = 5;</code>
   * @return The errFile.
   */
  @java.lang.Override
  public java.lang.String getErrFile() {
    java.lang.Object ref = errFile_;
    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();
      errFile_ = s;
      return s;
    }
  }
  /**
   * <code>string err_file = 5;</code>
   * @return The bytes for errFile.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getErrFileBytes() {
    java.lang.Object ref = errFile_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      errFile_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int ENVIRON_FIELD_NUMBER = 6;
  private static final class EnvironDefaultEntryHolder {
    static final com.google.protobuf.MapEntry<
        java.lang.String, java.lang.String> defaultEntry =
            com.google.protobuf.MapEntry
            .<java.lang.String, java.lang.String>newDefaultInstance(
                com.intellij.execution.process.mediator.rpc.ProcessMediatorProto.internal_static_intellij_process_mediator_rpc_CommandLine_EnvironEntry_descriptor, 
                com.google.protobuf.WireFormat.FieldType.STRING,
                "",
                com.google.protobuf.WireFormat.FieldType.STRING,
                "");
  }
  private com.google.protobuf.MapField<
      java.lang.String, java.lang.String> environ_;
  private com.google.protobuf.MapField<java.lang.String, java.lang.String>
  internalGetEnviron() {
    if (environ_ == null) {
      return com.google.protobuf.MapField.emptyMapField(
          EnvironDefaultEntryHolder.defaultEntry);
    }
    return environ_;
  }

  public int getEnvironCount() {
    return internalGetEnviron().getMap().size();
  }
  /**
   * <code>map&lt;string, string&gt; environ = 6;</code>
   */

  @java.lang.Override
  public boolean containsEnviron(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    return internalGetEnviron().getMap().containsKey(key);
  }
  /**
   * Use {@link #getEnvironMap()} instead.
   */
  @java.lang.Override
  @java.lang.Deprecated
  public java.util.Map<java.lang.String, java.lang.String> getEnviron() {
    return getEnvironMap();
  }
  /**
   * <code>map&lt;string, string&gt; environ = 6;</code>
   */
  @java.lang.Override

  public java.util.Map<java.lang.String, java.lang.String> getEnvironMap() {
    return internalGetEnviron().getMap();
  }
  /**
   * <code>map&lt;string, string&gt; environ = 6;</code>
   */
  @java.lang.Override

  public java.lang.String getEnvironOrDefault(
      java.lang.String key,
      java.lang.String defaultValue) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, java.lang.String> map =
        internalGetEnviron().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
  /**
   * <code>map&lt;string, string&gt; environ = 6;</code>
   */
  @java.lang.Override

  public java.lang.String getEnvironOrThrow(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, java.lang.String> map =
        internalGetEnviron().getMap();
    if (!map.containsKey(key)) {
      throw new java.lang.IllegalArgumentException();
    }
    return map.get(key);
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    for (int i = 0; i < command_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, command_.getRaw(i));
    }
    if (!getWorkingDirBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, workingDir_);
    }
    if (!getInFileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, inFile_);
    }
    if (!getOutFileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outFile_);
    }
    if (!getErrFileBytes().isEmpty()) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, errFile_);
    }
    com.google.protobuf.GeneratedMessageV3
      .serializeStringMapTo(
        output,
        internalGetEnviron(),
        EnvironDefaultEntryHolder.defaultEntry,
        6);
    unknownFields.writeTo(output);
  }

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

    size = 0;
    {
      int dataSize = 0;
      for (int i = 0; i < command_.size(); i++) {
        dataSize += computeStringSizeNoTag(command_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getCommandList().size();
    }
    if (!getWorkingDirBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, workingDir_);
    }
    if (!getInFileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, inFile_);
    }
    if (!getOutFileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outFile_);
    }
    if (!getErrFileBytes().isEmpty()) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, errFile_);
    }
    for (java.util.Map.Entry<java.lang.String, java.lang.String> entry
         : internalGetEnviron().getMap().entrySet()) {
      com.google.protobuf.MapEntry<java.lang.String, java.lang.String>
      environ__ = EnvironDefaultEntryHolder.defaultEntry.newBuilderForType()
          .setKey(entry.getKey())
          .setValue(entry.getValue())
          .build();
      size += com.google.protobuf.CodedOutputStream
          .computeMessageSize(6, environ__);
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof com.intellij.execution.process.mediator.rpc.CommandLine)) {
      return super.equals(obj);
    }
    com.intellij.execution.process.mediator.rpc.CommandLine other = (com.intellij.execution.process.mediator.rpc.CommandLine) obj;

    if (!getCommandList()
        .equals(other.getCommandList())) return false;
    if (!getWorkingDir()
        .equals(other.getWorkingDir())) return false;
    if (!getInFile()
        .equals(other.getInFile())) return false;
    if (!getOutFile()
        .equals(other.getOutFile())) return false;
    if (!getErrFile()
        .equals(other.getErrFile())) return false;
    if (!internalGetEnviron().equals(
        other.internalGetEnviron())) return false;
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getCommandCount() > 0) {
      hash = (37 * hash) + COMMAND_FIELD_NUMBER;
      hash = (53 * hash) + getCommandList().hashCode();
    }
    hash = (37 * hash) + WORKING_DIR_FIELD_NUMBER;
    hash = (53 * hash) + getWorkingDir().hashCode();
    hash = (37 * hash) + IN_FILE_FIELD_NUMBER;
    hash = (53 * hash) + getInFile().hashCode();
    hash = (37 * hash) + OUT_FILE_FIELD_NUMBER;
    hash = (53 * hash) + getOutFile().hashCode();
    hash = (37 * hash) + ERR_FILE_FIELD_NUMBER;
    hash = (53 * hash) + getErrFile().hashCode();
    if (!internalGetEnviron().getMap().isEmpty()) {
      hash = (37 * hash) + ENVIRON_FIELD_NUMBER;
      hash = (53 * hash) + internalGetEnviron().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(com.intellij.execution.process.mediator.rpc.CommandLine prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code intellij.process.mediator.rpc.CommandLine}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:intellij.process.mediator.rpc.CommandLine)
      com.intellij.execution.process.mediator.rpc.CommandLineOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.intellij.execution.process.mediator.rpc.ProcessMediatorProto.internal_static_intellij_process_mediator_rpc_CommandLine_descriptor;
    }

    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMapField(
        int number) {
      switch (number) {
        case 6:
          return internalGetEnviron();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @SuppressWarnings({"rawtypes"})
    protected com.google.protobuf.MapField internalGetMutableMapField(
        int number) {
      switch (number) {
        case 6:
          return internalGetMutableEnviron();
        default:
          throw new RuntimeException(
              "Invalid map field number: " + number);
      }
    }
    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.intellij.execution.process.mediator.rpc.ProcessMediatorProto.internal_static_intellij_process_mediator_rpc_CommandLine_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.intellij.execution.process.mediator.rpc.CommandLine.class, com.intellij.execution.process.mediator.rpc.CommandLine.Builder.class);
    }

    // Construct using com.intellij.execution.process.mediator.rpc.CommandLine.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      command_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      workingDir_ = "";

      inFile_ = "";

      outFile_ = "";

      errFile_ = "";

      internalGetMutableEnviron().clear();
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.intellij.execution.process.mediator.rpc.ProcessMediatorProto.internal_static_intellij_process_mediator_rpc_CommandLine_descriptor;
    }

    @java.lang.Override
    public com.intellij.execution.process.mediator.rpc.CommandLine getDefaultInstanceForType() {
      return com.intellij.execution.process.mediator.rpc.CommandLine.getDefaultInstance();
    }

    @java.lang.Override
    public com.intellij.execution.process.mediator.rpc.CommandLine build() {
      com.intellij.execution.process.mediator.rpc.CommandLine result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.intellij.execution.process.mediator.rpc.CommandLine buildPartial() {
      com.intellij.execution.process.mediator.rpc.CommandLine result = new com.intellij.execution.process.mediator.rpc.CommandLine(this);
      int from_bitField0_ = bitField0_;
      if (((bitField0_ & 0x00000001) != 0)) {
        command_ = command_.getUnmodifiableView();
        bitField0_ = (bitField0_ & ~0x00000001);
      }
      result.command_ = command_;
      result.workingDir_ = workingDir_;
      result.inFile_ = inFile_;
      result.outFile_ = outFile_;
      result.errFile_ = errFile_;
      result.environ_ = internalGetEnviron();
      result.environ_.makeImmutable();
      onBuilt();
      return result;
    }

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

    public Builder mergeFrom(com.intellij.execution.process.mediator.rpc.CommandLine other) {
      if (other == com.intellij.execution.process.mediator.rpc.CommandLine.getDefaultInstance()) return this;
      if (!other.command_.isEmpty()) {
        if (command_.isEmpty()) {
          command_ = other.command_;
          bitField0_ = (bitField0_ & ~0x00000001);
        } else {
          ensureCommandIsMutable();
          command_.addAll(other.command_);
        }
        onChanged();
      }
      if (!other.getWorkingDir().isEmpty()) {
        workingDir_ = other.workingDir_;
        onChanged();
      }
      if (!other.getInFile().isEmpty()) {
        inFile_ = other.inFile_;
        onChanged();
      }
      if (!other.getOutFile().isEmpty()) {
        outFile_ = other.outFile_;
        onChanged();
      }
      if (!other.getErrFile().isEmpty()) {
        errFile_ = other.errFile_;
        onChanged();
      }
      internalGetMutableEnviron().mergeFrom(
          other.internalGetEnviron());
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

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

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

    private com.google.protobuf.LazyStringList command_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    private void ensureCommandIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        command_ = new com.google.protobuf.LazyStringArrayList(command_);
        bitField0_ |= 0x00000001;
       }
    }
    /**
     * <code>repeated string command = 1;</code>
     * @return A list containing the command.
     */
    public com.google.protobuf.ProtocolStringList
        getCommandList() {
      return command_.getUnmodifiableView();
    }
    /**
     * <code>repeated string command = 1;</code>
     * @return The count of command.
     */
    public int getCommandCount() {
      return command_.size();
    }
    /**
     * <code>repeated string command = 1;</code>
     * @param index The index of the element to return.
     * @return The command at the given index.
     */
    public java.lang.String getCommand(int index) {
      return command_.get(index);
    }
    /**
     * <code>repeated string command = 1;</code>
     * @param index The index of the value to return.
     * @return The bytes of the command at the given index.
     */
    public com.google.protobuf.ByteString
        getCommandBytes(int index) {
      return command_.getByteString(index);
    }
    /**
     * <code>repeated string command = 1;</code>
     * @param index The index to set the value at.
     * @param value The command to set.
     * @return This builder for chaining.
     */
    public Builder setCommand(
        int index, java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureCommandIsMutable();
      command_.set(index, value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string command = 1;</code>
     * @param value The command to add.
     * @return This builder for chaining.
     */
    public Builder addCommand(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  ensureCommandIsMutable();
      command_.add(value);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string command = 1;</code>
     * @param values The command to add.
     * @return This builder for chaining.
     */
    public Builder addAllCommand(
        java.lang.Iterable<java.lang.String> values) {
      ensureCommandIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, command_);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string command = 1;</code>
     * @return This builder for chaining.
     */
    public Builder clearCommand() {
      command_ = com.google.protobuf.LazyStringArrayList.EMPTY;
      bitField0_ = (bitField0_ & ~0x00000001);
      onChanged();
      return this;
    }
    /**
     * <code>repeated string command = 1;</code>
     * @param value The bytes of the command to add.
     * @return This builder for chaining.
     */
    public Builder addCommandBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      ensureCommandIsMutable();
      command_.add(value);
      onChanged();
      return this;
    }

    private java.lang.Object workingDir_ = "";
    /**
     * <code>string working_dir = 2;</code>
     * @return The workingDir.
     */
    public java.lang.String getWorkingDir() {
      java.lang.Object ref = workingDir_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        workingDir_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string working_dir = 2;</code>
     * @return The bytes for workingDir.
     */
    public com.google.protobuf.ByteString
        getWorkingDirBytes() {
      java.lang.Object ref = workingDir_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        workingDir_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string working_dir = 2;</code>
     * @param value The workingDir to set.
     * @return This builder for chaining.
     */
    public Builder setWorkingDir(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      workingDir_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string working_dir = 2;</code>
     * @return This builder for chaining.
     */
    public Builder clearWorkingDir() {
      
      workingDir_ = getDefaultInstance().getWorkingDir();
      onChanged();
      return this;
    }
    /**
     * <code>string working_dir = 2;</code>
     * @param value The bytes for workingDir to set.
     * @return This builder for chaining.
     */
    public Builder setWorkingDirBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      workingDir_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object inFile_ = "";
    /**
     * <code>string in_file = 3;</code>
     * @return The inFile.
     */
    public java.lang.String getInFile() {
      java.lang.Object ref = inFile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        inFile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string in_file = 3;</code>
     * @return The bytes for inFile.
     */
    public com.google.protobuf.ByteString
        getInFileBytes() {
      java.lang.Object ref = inFile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        inFile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string in_file = 3;</code>
     * @param value The inFile to set.
     * @return This builder for chaining.
     */
    public Builder setInFile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      inFile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string in_file = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearInFile() {
      
      inFile_ = getDefaultInstance().getInFile();
      onChanged();
      return this;
    }
    /**
     * <code>string in_file = 3;</code>
     * @param value The bytes for inFile to set.
     * @return This builder for chaining.
     */
    public Builder setInFileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      inFile_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object outFile_ = "";
    /**
     * <code>string out_file = 4;</code>
     * @return The outFile.
     */
    public java.lang.String getOutFile() {
      java.lang.Object ref = outFile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        outFile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string out_file = 4;</code>
     * @return The bytes for outFile.
     */
    public com.google.protobuf.ByteString
        getOutFileBytes() {
      java.lang.Object ref = outFile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        outFile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string out_file = 4;</code>
     * @param value The outFile to set.
     * @return This builder for chaining.
     */
    public Builder setOutFile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      outFile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string out_file = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearOutFile() {
      
      outFile_ = getDefaultInstance().getOutFile();
      onChanged();
      return this;
    }
    /**
     * <code>string out_file = 4;</code>
     * @param value The bytes for outFile to set.
     * @return This builder for chaining.
     */
    public Builder setOutFileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      outFile_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object errFile_ = "";
    /**
     * <code>string err_file = 5;</code>
     * @return The errFile.
     */
    public java.lang.String getErrFile() {
      java.lang.Object ref = errFile_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        errFile_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string err_file = 5;</code>
     * @return The bytes for errFile.
     */
    public com.google.protobuf.ByteString
        getErrFileBytes() {
      java.lang.Object ref = errFile_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        errFile_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string err_file = 5;</code>
     * @param value The errFile to set.
     * @return This builder for chaining.
     */
    public Builder setErrFile(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  
      errFile_ = value;
      onChanged();
      return this;
    }
    /**
     * <code>string err_file = 5;</code>
     * @return This builder for chaining.
     */
    public Builder clearErrFile() {
      
      errFile_ = getDefaultInstance().getErrFile();
      onChanged();
      return this;
    }
    /**
     * <code>string err_file = 5;</code>
     * @param value The bytes for errFile to set.
     * @return This builder for chaining.
     */
    public Builder setErrFileBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
      
      errFile_ = value;
      onChanged();
      return this;
    }

    private com.google.protobuf.MapField<
        java.lang.String, java.lang.String> environ_;
    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
    internalGetEnviron() {
      if (environ_ == null) {
        return com.google.protobuf.MapField.emptyMapField(
            EnvironDefaultEntryHolder.defaultEntry);
      }
      return environ_;
    }
    private com.google.protobuf.MapField<java.lang.String, java.lang.String>
    internalGetMutableEnviron() {
      onChanged();;
      if (environ_ == null) {
        environ_ = com.google.protobuf.MapField.newMapField(
            EnvironDefaultEntryHolder.defaultEntry);
      }
      if (!environ_.isMutable()) {
        environ_ = environ_.copy();
      }
      return environ_;
    }

    public int getEnvironCount() {
      return internalGetEnviron().getMap().size();
    }
    /**
     * <code>map&lt;string, string&gt; environ = 6;</code>
     */

    @java.lang.Override
    public boolean containsEnviron(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      return internalGetEnviron().getMap().containsKey(key);
    }
    /**
     * Use {@link #getEnvironMap()} instead.
     */
    @java.lang.Override
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String> getEnviron() {
      return getEnvironMap();
    }
    /**
     * <code>map&lt;string, string&gt; environ = 6;</code>
     */
    @java.lang.Override

    public java.util.Map<java.lang.String, java.lang.String> getEnvironMap() {
      return internalGetEnviron().getMap();
    }
    /**
     * <code>map&lt;string, string&gt; environ = 6;</code>
     */
    @java.lang.Override

    public java.lang.String getEnvironOrDefault(
        java.lang.String key,
        java.lang.String defaultValue) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetEnviron().getMap();
      return map.containsKey(key) ? map.get(key) : defaultValue;
    }
    /**
     * <code>map&lt;string, string&gt; environ = 6;</code>
     */
    @java.lang.Override

    public java.lang.String getEnvironOrThrow(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      java.util.Map<java.lang.String, java.lang.String> map =
          internalGetEnviron().getMap();
      if (!map.containsKey(key)) {
        throw new java.lang.IllegalArgumentException();
      }
      return map.get(key);
    }

    public Builder clearEnviron() {
      internalGetMutableEnviron().getMutableMap()
          .clear();
      return this;
    }
    /**
     * <code>map&lt;string, string&gt; environ = 6;</code>
     */

    public Builder removeEnviron(
        java.lang.String key) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableEnviron().getMutableMap()
          .remove(key);
      return this;
    }
    /**
     * Use alternate mutation accessors instead.
     */
    @java.lang.Deprecated
    public java.util.Map<java.lang.String, java.lang.String>
    getMutableEnviron() {
      return internalGetMutableEnviron().getMutableMap();
    }
    /**
     * <code>map&lt;string, string&gt; environ = 6;</code>
     */
    public Builder putEnviron(
        java.lang.String key,
        java.lang.String value) {
      if (key == null) { throw new java.lang.NullPointerException(); }
      if (value == null) { throw new java.lang.NullPointerException(); }
      internalGetMutableEnviron().getMutableMap()
          .put(key, value);
      return this;
    }
    /**
     * <code>map&lt;string, string&gt; environ = 6;</code>
     */

    public Builder putAllEnviron(
        java.util.Map<java.lang.String, java.lang.String> values) {
      internalGetMutableEnviron().getMutableMap()
          .putAll(values);
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

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


    // @@protoc_insertion_point(builder_scope:intellij.process.mediator.rpc.CommandLine)
  }

  // @@protoc_insertion_point(class_scope:intellij.process.mediator.rpc.CommandLine)
  private static final com.intellij.execution.process.mediator.rpc.CommandLine DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.intellij.execution.process.mediator.rpc.CommandLine();
  }

  public static com.intellij.execution.process.mediator.rpc.CommandLine getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.intellij.execution.process.mediator.rpc.CommandLine getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

