All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.veithen.daemon.launcher.proto.DaemonResponse Maven / Gradle / Ivy

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

package com.github.veithen.daemon.launcher.proto;

/**
 * Protobuf type {@code DaemonResponse}
 */
public final class DaemonResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:DaemonResponse)
    DaemonResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use DaemonResponse.newBuilder() to construct.
  private DaemonResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private DaemonResponse() {
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private DaemonResponse(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    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: {
            com.github.veithen.daemon.launcher.proto.InitResponse.Builder subBuilder = null;
            if (responseCase_ == 1) {
              subBuilder = ((com.github.veithen.daemon.launcher.proto.InitResponse) response_).toBuilder();
            }
            response_ =
                input.readMessage(com.github.veithen.daemon.launcher.proto.InitResponse.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.github.veithen.daemon.launcher.proto.InitResponse) response_);
              response_ = subBuilder.buildPartial();
            }
            responseCase_ = 1;
            break;
          }
          case 18: {
            com.github.veithen.daemon.launcher.proto.StartResponse.Builder subBuilder = null;
            if (responseCase_ == 2) {
              subBuilder = ((com.github.veithen.daemon.launcher.proto.StartResponse) response_).toBuilder();
            }
            response_ =
                input.readMessage(com.github.veithen.daemon.launcher.proto.StartResponse.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.github.veithen.daemon.launcher.proto.StartResponse) response_);
              response_ = subBuilder.buildPartial();
            }
            responseCase_ = 2;
            break;
          }
          case 26: {
            com.github.veithen.daemon.launcher.proto.StopResponse.Builder subBuilder = null;
            if (responseCase_ == 3) {
              subBuilder = ((com.github.veithen.daemon.launcher.proto.StopResponse) response_).toBuilder();
            }
            response_ =
                input.readMessage(com.github.veithen.daemon.launcher.proto.StopResponse.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom((com.github.veithen.daemon.launcher.proto.StopResponse) response_);
              response_ = subBuilder.buildPartial();
            }
            responseCase_ = 3;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (com.google.protobuf.UninitializedMessageException e) {
      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_DaemonResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_DaemonResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.github.veithen.daemon.launcher.proto.DaemonResponse.class, com.github.veithen.daemon.launcher.proto.DaemonResponse.Builder.class);
  }

  private int responseCase_ = 0;
  private java.lang.Object response_;
  public enum ResponseCase
      implements com.google.protobuf.Internal.EnumLite,
          com.google.protobuf.AbstractMessage.InternalOneOfEnum {
    INIT(1),
    START(2),
    STOP(3),
    RESPONSE_NOT_SET(0);
    private final int value;
    private ResponseCase(int value) {
      this.value = value;
    }
    /**
     * @param value The number of the enum to look for.
     * @return The enum associated with the given number.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static ResponseCase valueOf(int value) {
      return forNumber(value);
    }

    public static ResponseCase forNumber(int value) {
      switch (value) {
        case 1: return INIT;
        case 2: return START;
        case 3: return STOP;
        case 0: return RESPONSE_NOT_SET;
        default: return null;
      }
    }
    public int getNumber() {
      return this.value;
    }
  };

  public ResponseCase
  getResponseCase() {
    return ResponseCase.forNumber(
        responseCase_);
  }

  public static final int INIT_FIELD_NUMBER = 1;
  /**
   * .InitResponse init = 1;
   * @return Whether the init field is set.
   */
  @java.lang.Override
  public boolean hasInit() {
    return responseCase_ == 1;
  }
  /**
   * .InitResponse init = 1;
   * @return The init.
   */
  @java.lang.Override
  public com.github.veithen.daemon.launcher.proto.InitResponse getInit() {
    if (responseCase_ == 1) {
       return (com.github.veithen.daemon.launcher.proto.InitResponse) response_;
    }
    return com.github.veithen.daemon.launcher.proto.InitResponse.getDefaultInstance();
  }
  /**
   * .InitResponse init = 1;
   */
  @java.lang.Override
  public com.github.veithen.daemon.launcher.proto.InitResponseOrBuilder getInitOrBuilder() {
    if (responseCase_ == 1) {
       return (com.github.veithen.daemon.launcher.proto.InitResponse) response_;
    }
    return com.github.veithen.daemon.launcher.proto.InitResponse.getDefaultInstance();
  }

  public static final int START_FIELD_NUMBER = 2;
  /**
   * .StartResponse start = 2;
   * @return Whether the start field is set.
   */
  @java.lang.Override
  public boolean hasStart() {
    return responseCase_ == 2;
  }
  /**
   * .StartResponse start = 2;
   * @return The start.
   */
  @java.lang.Override
  public com.github.veithen.daemon.launcher.proto.StartResponse getStart() {
    if (responseCase_ == 2) {
       return (com.github.veithen.daemon.launcher.proto.StartResponse) response_;
    }
    return com.github.veithen.daemon.launcher.proto.StartResponse.getDefaultInstance();
  }
  /**
   * .StartResponse start = 2;
   */
  @java.lang.Override
  public com.github.veithen.daemon.launcher.proto.StartResponseOrBuilder getStartOrBuilder() {
    if (responseCase_ == 2) {
       return (com.github.veithen.daemon.launcher.proto.StartResponse) response_;
    }
    return com.github.veithen.daemon.launcher.proto.StartResponse.getDefaultInstance();
  }

  public static final int STOP_FIELD_NUMBER = 3;
  /**
   * .StopResponse stop = 3;
   * @return Whether the stop field is set.
   */
  @java.lang.Override
  public boolean hasStop() {
    return responseCase_ == 3;
  }
  /**
   * .StopResponse stop = 3;
   * @return The stop.
   */
  @java.lang.Override
  public com.github.veithen.daemon.launcher.proto.StopResponse getStop() {
    if (responseCase_ == 3) {
       return (com.github.veithen.daemon.launcher.proto.StopResponse) response_;
    }
    return com.github.veithen.daemon.launcher.proto.StopResponse.getDefaultInstance();
  }
  /**
   * .StopResponse stop = 3;
   */
  @java.lang.Override
  public com.github.veithen.daemon.launcher.proto.StopResponseOrBuilder getStopOrBuilder() {
    if (responseCase_ == 3) {
       return (com.github.veithen.daemon.launcher.proto.StopResponse) response_;
    }
    return com.github.veithen.daemon.launcher.proto.StopResponse.getDefaultInstance();
  }

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

    if (hasInit()) {
      if (!getInit().isInitialized()) {
        memoizedIsInitialized = 0;
        return false;
      }
    }
    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (responseCase_ == 1) {
      output.writeMessage(1, (com.github.veithen.daemon.launcher.proto.InitResponse) response_);
    }
    if (responseCase_ == 2) {
      output.writeMessage(2, (com.github.veithen.daemon.launcher.proto.StartResponse) response_);
    }
    if (responseCase_ == 3) {
      output.writeMessage(3, (com.github.veithen.daemon.launcher.proto.StopResponse) response_);
    }
    unknownFields.writeTo(output);
  }

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

    size = 0;
    if (responseCase_ == 1) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, (com.github.veithen.daemon.launcher.proto.InitResponse) response_);
    }
    if (responseCase_ == 2) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, (com.github.veithen.daemon.launcher.proto.StartResponse) response_);
    }
    if (responseCase_ == 3) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(3, (com.github.veithen.daemon.launcher.proto.StopResponse) response_);
    }
    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.github.veithen.daemon.launcher.proto.DaemonResponse)) {
      return super.equals(obj);
    }
    com.github.veithen.daemon.launcher.proto.DaemonResponse other = (com.github.veithen.daemon.launcher.proto.DaemonResponse) obj;

    if (!getResponseCase().equals(other.getResponseCase())) return false;
    switch (responseCase_) {
      case 1:
        if (!getInit()
            .equals(other.getInit())) return false;
        break;
      case 2:
        if (!getStart()
            .equals(other.getStart())) return false;
        break;
      case 3:
        if (!getStop()
            .equals(other.getStop())) return false;
        break;
      case 0:
      default:
    }
    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();
    switch (responseCase_) {
      case 1:
        hash = (37 * hash) + INIT_FIELD_NUMBER;
        hash = (53 * hash) + getInit().hashCode();
        break;
      case 2:
        hash = (37 * hash) + START_FIELD_NUMBER;
        hash = (53 * hash) + getStart().hashCode();
        break;
      case 3:
        hash = (37 * hash) + STOP_FIELD_NUMBER;
        hash = (53 * hash) + getStop().hashCode();
        break;
      case 0:
      default:
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.github.veithen.daemon.launcher.proto.DaemonResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.github.veithen.daemon.launcher.proto.DaemonResponse parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.github.veithen.daemon.launcher.proto.DaemonResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.github.veithen.daemon.launcher.proto.DaemonResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.github.veithen.daemon.launcher.proto.DaemonResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static com.github.veithen.daemon.launcher.proto.DaemonResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static com.github.veithen.daemon.launcher.proto.DaemonResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.github.veithen.daemon.launcher.proto.DaemonResponse 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.github.veithen.daemon.launcher.proto.DaemonResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static com.github.veithen.daemon.launcher.proto.DaemonResponse 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.github.veithen.daemon.launcher.proto.DaemonResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static com.github.veithen.daemon.launcher.proto.DaemonResponse 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.github.veithen.daemon.launcher.proto.DaemonResponse 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 DaemonResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:DaemonResponse)
      com.github.veithen.daemon.launcher.proto.DaemonResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_DaemonResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_DaemonResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.github.veithen.daemon.launcher.proto.DaemonResponse.class, com.github.veithen.daemon.launcher.proto.DaemonResponse.Builder.class);
    }

    // Construct using com.github.veithen.daemon.launcher.proto.DaemonResponse.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();
      responseCase_ = 0;
      response_ = null;
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_DaemonResponse_descriptor;
    }

    @java.lang.Override
    public com.github.veithen.daemon.launcher.proto.DaemonResponse getDefaultInstanceForType() {
      return com.github.veithen.daemon.launcher.proto.DaemonResponse.getDefaultInstance();
    }

    @java.lang.Override
    public com.github.veithen.daemon.launcher.proto.DaemonResponse build() {
      com.github.veithen.daemon.launcher.proto.DaemonResponse result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.github.veithen.daemon.launcher.proto.DaemonResponse buildPartial() {
      com.github.veithen.daemon.launcher.proto.DaemonResponse result = new com.github.veithen.daemon.launcher.proto.DaemonResponse(this);
      if (responseCase_ == 1) {
        if (initBuilder_ == null) {
          result.response_ = response_;
        } else {
          result.response_ = initBuilder_.build();
        }
      }
      if (responseCase_ == 2) {
        if (startBuilder_ == null) {
          result.response_ = response_;
        } else {
          result.response_ = startBuilder_.build();
        }
      }
      if (responseCase_ == 3) {
        if (stopBuilder_ == null) {
          result.response_ = response_;
        } else {
          result.response_ = stopBuilder_.build();
        }
      }
      result.responseCase_ = responseCase_;
      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.github.veithen.daemon.launcher.proto.DaemonResponse) {
        return mergeFrom((com.github.veithen.daemon.launcher.proto.DaemonResponse)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.github.veithen.daemon.launcher.proto.DaemonResponse other) {
      if (other == com.github.veithen.daemon.launcher.proto.DaemonResponse.getDefaultInstance()) return this;
      switch (other.getResponseCase()) {
        case INIT: {
          mergeInit(other.getInit());
          break;
        }
        case START: {
          mergeStart(other.getStart());
          break;
        }
        case STOP: {
          mergeStop(other.getStop());
          break;
        }
        case RESPONSE_NOT_SET: {
          break;
        }
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      if (hasInit()) {
        if (!getInit().isInitialized()) {
          return false;
        }
      }
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.github.veithen.daemon.launcher.proto.DaemonResponse parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.github.veithen.daemon.launcher.proto.DaemonResponse) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int responseCase_ = 0;
    private java.lang.Object response_;
    public ResponseCase
        getResponseCase() {
      return ResponseCase.forNumber(
          responseCase_);
    }

    public Builder clearResponse() {
      responseCase_ = 0;
      response_ = null;
      onChanged();
      return this;
    }


    private com.google.protobuf.SingleFieldBuilderV3<
        com.github.veithen.daemon.launcher.proto.InitResponse, com.github.veithen.daemon.launcher.proto.InitResponse.Builder, com.github.veithen.daemon.launcher.proto.InitResponseOrBuilder> initBuilder_;
    /**
     * .InitResponse init = 1;
     * @return Whether the init field is set.
     */
    @java.lang.Override
    public boolean hasInit() {
      return responseCase_ == 1;
    }
    /**
     * .InitResponse init = 1;
     * @return The init.
     */
    @java.lang.Override
    public com.github.veithen.daemon.launcher.proto.InitResponse getInit() {
      if (initBuilder_ == null) {
        if (responseCase_ == 1) {
          return (com.github.veithen.daemon.launcher.proto.InitResponse) response_;
        }
        return com.github.veithen.daemon.launcher.proto.InitResponse.getDefaultInstance();
      } else {
        if (responseCase_ == 1) {
          return initBuilder_.getMessage();
        }
        return com.github.veithen.daemon.launcher.proto.InitResponse.getDefaultInstance();
      }
    }
    /**
     * .InitResponse init = 1;
     */
    public Builder setInit(com.github.veithen.daemon.launcher.proto.InitResponse value) {
      if (initBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        response_ = value;
        onChanged();
      } else {
        initBuilder_.setMessage(value);
      }
      responseCase_ = 1;
      return this;
    }
    /**
     * .InitResponse init = 1;
     */
    public Builder setInit(
        com.github.veithen.daemon.launcher.proto.InitResponse.Builder builderForValue) {
      if (initBuilder_ == null) {
        response_ = builderForValue.build();
        onChanged();
      } else {
        initBuilder_.setMessage(builderForValue.build());
      }
      responseCase_ = 1;
      return this;
    }
    /**
     * .InitResponse init = 1;
     */
    public Builder mergeInit(com.github.veithen.daemon.launcher.proto.InitResponse value) {
      if (initBuilder_ == null) {
        if (responseCase_ == 1 &&
            response_ != com.github.veithen.daemon.launcher.proto.InitResponse.getDefaultInstance()) {
          response_ = com.github.veithen.daemon.launcher.proto.InitResponse.newBuilder((com.github.veithen.daemon.launcher.proto.InitResponse) response_)
              .mergeFrom(value).buildPartial();
        } else {
          response_ = value;
        }
        onChanged();
      } else {
        if (responseCase_ == 1) {
          initBuilder_.mergeFrom(value);
        } else {
          initBuilder_.setMessage(value);
        }
      }
      responseCase_ = 1;
      return this;
    }
    /**
     * .InitResponse init = 1;
     */
    public Builder clearInit() {
      if (initBuilder_ == null) {
        if (responseCase_ == 1) {
          responseCase_ = 0;
          response_ = null;
          onChanged();
        }
      } else {
        if (responseCase_ == 1) {
          responseCase_ = 0;
          response_ = null;
        }
        initBuilder_.clear();
      }
      return this;
    }
    /**
     * .InitResponse init = 1;
     */
    public com.github.veithen.daemon.launcher.proto.InitResponse.Builder getInitBuilder() {
      return getInitFieldBuilder().getBuilder();
    }
    /**
     * .InitResponse init = 1;
     */
    @java.lang.Override
    public com.github.veithen.daemon.launcher.proto.InitResponseOrBuilder getInitOrBuilder() {
      if ((responseCase_ == 1) && (initBuilder_ != null)) {
        return initBuilder_.getMessageOrBuilder();
      } else {
        if (responseCase_ == 1) {
          return (com.github.veithen.daemon.launcher.proto.InitResponse) response_;
        }
        return com.github.veithen.daemon.launcher.proto.InitResponse.getDefaultInstance();
      }
    }
    /**
     * .InitResponse init = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.github.veithen.daemon.launcher.proto.InitResponse, com.github.veithen.daemon.launcher.proto.InitResponse.Builder, com.github.veithen.daemon.launcher.proto.InitResponseOrBuilder> 
        getInitFieldBuilder() {
      if (initBuilder_ == null) {
        if (!(responseCase_ == 1)) {
          response_ = com.github.veithen.daemon.launcher.proto.InitResponse.getDefaultInstance();
        }
        initBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.github.veithen.daemon.launcher.proto.InitResponse, com.github.veithen.daemon.launcher.proto.InitResponse.Builder, com.github.veithen.daemon.launcher.proto.InitResponseOrBuilder>(
                (com.github.veithen.daemon.launcher.proto.InitResponse) response_,
                getParentForChildren(),
                isClean());
        response_ = null;
      }
      responseCase_ = 1;
      onChanged();;
      return initBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.github.veithen.daemon.launcher.proto.StartResponse, com.github.veithen.daemon.launcher.proto.StartResponse.Builder, com.github.veithen.daemon.launcher.proto.StartResponseOrBuilder> startBuilder_;
    /**
     * .StartResponse start = 2;
     * @return Whether the start field is set.
     */
    @java.lang.Override
    public boolean hasStart() {
      return responseCase_ == 2;
    }
    /**
     * .StartResponse start = 2;
     * @return The start.
     */
    @java.lang.Override
    public com.github.veithen.daemon.launcher.proto.StartResponse getStart() {
      if (startBuilder_ == null) {
        if (responseCase_ == 2) {
          return (com.github.veithen.daemon.launcher.proto.StartResponse) response_;
        }
        return com.github.veithen.daemon.launcher.proto.StartResponse.getDefaultInstance();
      } else {
        if (responseCase_ == 2) {
          return startBuilder_.getMessage();
        }
        return com.github.veithen.daemon.launcher.proto.StartResponse.getDefaultInstance();
      }
    }
    /**
     * .StartResponse start = 2;
     */
    public Builder setStart(com.github.veithen.daemon.launcher.proto.StartResponse value) {
      if (startBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        response_ = value;
        onChanged();
      } else {
        startBuilder_.setMessage(value);
      }
      responseCase_ = 2;
      return this;
    }
    /**
     * .StartResponse start = 2;
     */
    public Builder setStart(
        com.github.veithen.daemon.launcher.proto.StartResponse.Builder builderForValue) {
      if (startBuilder_ == null) {
        response_ = builderForValue.build();
        onChanged();
      } else {
        startBuilder_.setMessage(builderForValue.build());
      }
      responseCase_ = 2;
      return this;
    }
    /**
     * .StartResponse start = 2;
     */
    public Builder mergeStart(com.github.veithen.daemon.launcher.proto.StartResponse value) {
      if (startBuilder_ == null) {
        if (responseCase_ == 2 &&
            response_ != com.github.veithen.daemon.launcher.proto.StartResponse.getDefaultInstance()) {
          response_ = com.github.veithen.daemon.launcher.proto.StartResponse.newBuilder((com.github.veithen.daemon.launcher.proto.StartResponse) response_)
              .mergeFrom(value).buildPartial();
        } else {
          response_ = value;
        }
        onChanged();
      } else {
        if (responseCase_ == 2) {
          startBuilder_.mergeFrom(value);
        } else {
          startBuilder_.setMessage(value);
        }
      }
      responseCase_ = 2;
      return this;
    }
    /**
     * .StartResponse start = 2;
     */
    public Builder clearStart() {
      if (startBuilder_ == null) {
        if (responseCase_ == 2) {
          responseCase_ = 0;
          response_ = null;
          onChanged();
        }
      } else {
        if (responseCase_ == 2) {
          responseCase_ = 0;
          response_ = null;
        }
        startBuilder_.clear();
      }
      return this;
    }
    /**
     * .StartResponse start = 2;
     */
    public com.github.veithen.daemon.launcher.proto.StartResponse.Builder getStartBuilder() {
      return getStartFieldBuilder().getBuilder();
    }
    /**
     * .StartResponse start = 2;
     */
    @java.lang.Override
    public com.github.veithen.daemon.launcher.proto.StartResponseOrBuilder getStartOrBuilder() {
      if ((responseCase_ == 2) && (startBuilder_ != null)) {
        return startBuilder_.getMessageOrBuilder();
      } else {
        if (responseCase_ == 2) {
          return (com.github.veithen.daemon.launcher.proto.StartResponse) response_;
        }
        return com.github.veithen.daemon.launcher.proto.StartResponse.getDefaultInstance();
      }
    }
    /**
     * .StartResponse start = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.github.veithen.daemon.launcher.proto.StartResponse, com.github.veithen.daemon.launcher.proto.StartResponse.Builder, com.github.veithen.daemon.launcher.proto.StartResponseOrBuilder> 
        getStartFieldBuilder() {
      if (startBuilder_ == null) {
        if (!(responseCase_ == 2)) {
          response_ = com.github.veithen.daemon.launcher.proto.StartResponse.getDefaultInstance();
        }
        startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.github.veithen.daemon.launcher.proto.StartResponse, com.github.veithen.daemon.launcher.proto.StartResponse.Builder, com.github.veithen.daemon.launcher.proto.StartResponseOrBuilder>(
                (com.github.veithen.daemon.launcher.proto.StartResponse) response_,
                getParentForChildren(),
                isClean());
        response_ = null;
      }
      responseCase_ = 2;
      onChanged();;
      return startBuilder_;
    }

    private com.google.protobuf.SingleFieldBuilderV3<
        com.github.veithen.daemon.launcher.proto.StopResponse, com.github.veithen.daemon.launcher.proto.StopResponse.Builder, com.github.veithen.daemon.launcher.proto.StopResponseOrBuilder> stopBuilder_;
    /**
     * .StopResponse stop = 3;
     * @return Whether the stop field is set.
     */
    @java.lang.Override
    public boolean hasStop() {
      return responseCase_ == 3;
    }
    /**
     * .StopResponse stop = 3;
     * @return The stop.
     */
    @java.lang.Override
    public com.github.veithen.daemon.launcher.proto.StopResponse getStop() {
      if (stopBuilder_ == null) {
        if (responseCase_ == 3) {
          return (com.github.veithen.daemon.launcher.proto.StopResponse) response_;
        }
        return com.github.veithen.daemon.launcher.proto.StopResponse.getDefaultInstance();
      } else {
        if (responseCase_ == 3) {
          return stopBuilder_.getMessage();
        }
        return com.github.veithen.daemon.launcher.proto.StopResponse.getDefaultInstance();
      }
    }
    /**
     * .StopResponse stop = 3;
     */
    public Builder setStop(com.github.veithen.daemon.launcher.proto.StopResponse value) {
      if (stopBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        response_ = value;
        onChanged();
      } else {
        stopBuilder_.setMessage(value);
      }
      responseCase_ = 3;
      return this;
    }
    /**
     * .StopResponse stop = 3;
     */
    public Builder setStop(
        com.github.veithen.daemon.launcher.proto.StopResponse.Builder builderForValue) {
      if (stopBuilder_ == null) {
        response_ = builderForValue.build();
        onChanged();
      } else {
        stopBuilder_.setMessage(builderForValue.build());
      }
      responseCase_ = 3;
      return this;
    }
    /**
     * .StopResponse stop = 3;
     */
    public Builder mergeStop(com.github.veithen.daemon.launcher.proto.StopResponse value) {
      if (stopBuilder_ == null) {
        if (responseCase_ == 3 &&
            response_ != com.github.veithen.daemon.launcher.proto.StopResponse.getDefaultInstance()) {
          response_ = com.github.veithen.daemon.launcher.proto.StopResponse.newBuilder((com.github.veithen.daemon.launcher.proto.StopResponse) response_)
              .mergeFrom(value).buildPartial();
        } else {
          response_ = value;
        }
        onChanged();
      } else {
        if (responseCase_ == 3) {
          stopBuilder_.mergeFrom(value);
        } else {
          stopBuilder_.setMessage(value);
        }
      }
      responseCase_ = 3;
      return this;
    }
    /**
     * .StopResponse stop = 3;
     */
    public Builder clearStop() {
      if (stopBuilder_ == null) {
        if (responseCase_ == 3) {
          responseCase_ = 0;
          response_ = null;
          onChanged();
        }
      } else {
        if (responseCase_ == 3) {
          responseCase_ = 0;
          response_ = null;
        }
        stopBuilder_.clear();
      }
      return this;
    }
    /**
     * .StopResponse stop = 3;
     */
    public com.github.veithen.daemon.launcher.proto.StopResponse.Builder getStopBuilder() {
      return getStopFieldBuilder().getBuilder();
    }
    /**
     * .StopResponse stop = 3;
     */
    @java.lang.Override
    public com.github.veithen.daemon.launcher.proto.StopResponseOrBuilder getStopOrBuilder() {
      if ((responseCase_ == 3) && (stopBuilder_ != null)) {
        return stopBuilder_.getMessageOrBuilder();
      } else {
        if (responseCase_ == 3) {
          return (com.github.veithen.daemon.launcher.proto.StopResponse) response_;
        }
        return com.github.veithen.daemon.launcher.proto.StopResponse.getDefaultInstance();
      }
    }
    /**
     * .StopResponse stop = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.github.veithen.daemon.launcher.proto.StopResponse, com.github.veithen.daemon.launcher.proto.StopResponse.Builder, com.github.veithen.daemon.launcher.proto.StopResponseOrBuilder> 
        getStopFieldBuilder() {
      if (stopBuilder_ == null) {
        if (!(responseCase_ == 3)) {
          response_ = com.github.veithen.daemon.launcher.proto.StopResponse.getDefaultInstance();
        }
        stopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.github.veithen.daemon.launcher.proto.StopResponse, com.github.veithen.daemon.launcher.proto.StopResponse.Builder, com.github.veithen.daemon.launcher.proto.StopResponseOrBuilder>(
                (com.github.veithen.daemon.launcher.proto.StopResponse) response_,
                getParentForChildren(),
                isClean());
        response_ = null;
      }
      responseCase_ = 3;
      onChanged();;
      return stopBuilder_;
    }
    @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:DaemonResponse)
  }

  // @@protoc_insertion_point(class_scope:DaemonResponse)
  private static final com.github.veithen.daemon.launcher.proto.DaemonResponse DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new com.github.veithen.daemon.launcher.proto.DaemonResponse();
  }

  public static com.github.veithen.daemon.launcher.proto.DaemonResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

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

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

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

  @java.lang.Override
  public com.github.veithen.daemon.launcher.proto.DaemonResponse getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy