
com.github.veithen.daemon.launcher.proto.DaemonRequest 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 DaemonRequest}
*/
public final class DaemonRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:DaemonRequest)
DaemonRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DaemonRequest.newBuilder() to construct.
private DaemonRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DaemonRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DaemonRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_DaemonRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_DaemonRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.veithen.daemon.launcher.proto.DaemonRequest.class, com.github.veithen.daemon.launcher.proto.DaemonRequest.Builder.class);
}
private int requestCase_ = 0;
private java.lang.Object request_;
public enum RequestCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
INIT(1),
START(2),
STOP(3),
REQUEST_NOT_SET(0);
private final int value;
private RequestCase(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 RequestCase valueOf(int value) {
return forNumber(value);
}
public static RequestCase forNumber(int value) {
switch (value) {
case 1: return INIT;
case 2: return START;
case 3: return STOP;
case 0: return REQUEST_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public RequestCase
getRequestCase() {
return RequestCase.forNumber(
requestCase_);
}
public static final int INIT_FIELD_NUMBER = 1;
/**
* .InitRequest init = 1;
* @return Whether the init field is set.
*/
@java.lang.Override
public boolean hasInit() {
return requestCase_ == 1;
}
/**
* .InitRequest init = 1;
* @return The init.
*/
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.InitRequest getInit() {
if (requestCase_ == 1) {
return (com.github.veithen.daemon.launcher.proto.InitRequest) request_;
}
return com.github.veithen.daemon.launcher.proto.InitRequest.getDefaultInstance();
}
/**
* .InitRequest init = 1;
*/
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.InitRequestOrBuilder getInitOrBuilder() {
if (requestCase_ == 1) {
return (com.github.veithen.daemon.launcher.proto.InitRequest) request_;
}
return com.github.veithen.daemon.launcher.proto.InitRequest.getDefaultInstance();
}
public static final int START_FIELD_NUMBER = 2;
/**
* .StartRequest start = 2;
* @return Whether the start field is set.
*/
@java.lang.Override
public boolean hasStart() {
return requestCase_ == 2;
}
/**
* .StartRequest start = 2;
* @return The start.
*/
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.StartRequest getStart() {
if (requestCase_ == 2) {
return (com.github.veithen.daemon.launcher.proto.StartRequest) request_;
}
return com.github.veithen.daemon.launcher.proto.StartRequest.getDefaultInstance();
}
/**
* .StartRequest start = 2;
*/
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.StartRequestOrBuilder getStartOrBuilder() {
if (requestCase_ == 2) {
return (com.github.veithen.daemon.launcher.proto.StartRequest) request_;
}
return com.github.veithen.daemon.launcher.proto.StartRequest.getDefaultInstance();
}
public static final int STOP_FIELD_NUMBER = 3;
/**
* .StopRequest stop = 3;
* @return Whether the stop field is set.
*/
@java.lang.Override
public boolean hasStop() {
return requestCase_ == 3;
}
/**
* .StopRequest stop = 3;
* @return The stop.
*/
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.StopRequest getStop() {
if (requestCase_ == 3) {
return (com.github.veithen.daemon.launcher.proto.StopRequest) request_;
}
return com.github.veithen.daemon.launcher.proto.StopRequest.getDefaultInstance();
}
/**
* .StopRequest stop = 3;
*/
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.StopRequestOrBuilder getStopOrBuilder() {
if (requestCase_ == 3) {
return (com.github.veithen.daemon.launcher.proto.StopRequest) request_;
}
return com.github.veithen.daemon.launcher.proto.StopRequest.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;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (requestCase_ == 1) {
output.writeMessage(1, (com.github.veithen.daemon.launcher.proto.InitRequest) request_);
}
if (requestCase_ == 2) {
output.writeMessage(2, (com.github.veithen.daemon.launcher.proto.StartRequest) request_);
}
if (requestCase_ == 3) {
output.writeMessage(3, (com.github.veithen.daemon.launcher.proto.StopRequest) request_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (requestCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (com.github.veithen.daemon.launcher.proto.InitRequest) request_);
}
if (requestCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (com.github.veithen.daemon.launcher.proto.StartRequest) request_);
}
if (requestCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (com.github.veithen.daemon.launcher.proto.StopRequest) request_);
}
size += getUnknownFields().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.DaemonRequest)) {
return super.equals(obj);
}
com.github.veithen.daemon.launcher.proto.DaemonRequest other = (com.github.veithen.daemon.launcher.proto.DaemonRequest) obj;
if (!getRequestCase().equals(other.getRequestCase())) return false;
switch (requestCase_) {
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 (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (requestCase_) {
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) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.veithen.daemon.launcher.proto.DaemonRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.veithen.daemon.launcher.proto.DaemonRequest 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.DaemonRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.veithen.daemon.launcher.proto.DaemonRequest 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.DaemonRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.veithen.daemon.launcher.proto.DaemonRequest 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.DaemonRequest 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.DaemonRequest 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.DaemonRequest 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.DaemonRequest 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.DaemonRequest 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.DaemonRequest 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.DaemonRequest 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 DaemonRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:DaemonRequest)
com.github.veithen.daemon.launcher.proto.DaemonRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_DaemonRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_DaemonRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.veithen.daemon.launcher.proto.DaemonRequest.class, com.github.veithen.daemon.launcher.proto.DaemonRequest.Builder.class);
}
// Construct using com.github.veithen.daemon.launcher.proto.DaemonRequest.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (initBuilder_ != null) {
initBuilder_.clear();
}
if (startBuilder_ != null) {
startBuilder_.clear();
}
if (stopBuilder_ != null) {
stopBuilder_.clear();
}
requestCase_ = 0;
request_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_DaemonRequest_descriptor;
}
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.DaemonRequest getDefaultInstanceForType() {
return com.github.veithen.daemon.launcher.proto.DaemonRequest.getDefaultInstance();
}
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.DaemonRequest build() {
com.github.veithen.daemon.launcher.proto.DaemonRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.DaemonRequest buildPartial() {
com.github.veithen.daemon.launcher.proto.DaemonRequest result = new com.github.veithen.daemon.launcher.proto.DaemonRequest(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(com.github.veithen.daemon.launcher.proto.DaemonRequest result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(com.github.veithen.daemon.launcher.proto.DaemonRequest result) {
result.requestCase_ = requestCase_;
result.request_ = this.request_;
if (requestCase_ == 1 &&
initBuilder_ != null) {
result.request_ = initBuilder_.build();
}
if (requestCase_ == 2 &&
startBuilder_ != null) {
result.request_ = startBuilder_.build();
}
if (requestCase_ == 3 &&
stopBuilder_ != null) {
result.request_ = stopBuilder_.build();
}
}
@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.DaemonRequest) {
return mergeFrom((com.github.veithen.daemon.launcher.proto.DaemonRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.veithen.daemon.launcher.proto.DaemonRequest other) {
if (other == com.github.veithen.daemon.launcher.proto.DaemonRequest.getDefaultInstance()) return this;
switch (other.getRequestCase()) {
case INIT: {
mergeInit(other.getInit());
break;
}
case START: {
mergeStart(other.getStart());
break;
}
case STOP: {
mergeStop(other.getStop());
break;
}
case REQUEST_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
input.readMessage(
getInitFieldBuilder().getBuilder(),
extensionRegistry);
requestCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getStartFieldBuilder().getBuilder(),
extensionRegistry);
requestCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getStopFieldBuilder().getBuilder(),
extensionRegistry);
requestCase_ = 3;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int requestCase_ = 0;
private java.lang.Object request_;
public RequestCase
getRequestCase() {
return RequestCase.forNumber(
requestCase_);
}
public Builder clearRequest() {
requestCase_ = 0;
request_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
com.github.veithen.daemon.launcher.proto.InitRequest, com.github.veithen.daemon.launcher.proto.InitRequest.Builder, com.github.veithen.daemon.launcher.proto.InitRequestOrBuilder> initBuilder_;
/**
* .InitRequest init = 1;
* @return Whether the init field is set.
*/
@java.lang.Override
public boolean hasInit() {
return requestCase_ == 1;
}
/**
* .InitRequest init = 1;
* @return The init.
*/
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.InitRequest getInit() {
if (initBuilder_ == null) {
if (requestCase_ == 1) {
return (com.github.veithen.daemon.launcher.proto.InitRequest) request_;
}
return com.github.veithen.daemon.launcher.proto.InitRequest.getDefaultInstance();
} else {
if (requestCase_ == 1) {
return initBuilder_.getMessage();
}
return com.github.veithen.daemon.launcher.proto.InitRequest.getDefaultInstance();
}
}
/**
* .InitRequest init = 1;
*/
public Builder setInit(com.github.veithen.daemon.launcher.proto.InitRequest value) {
if (initBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
initBuilder_.setMessage(value);
}
requestCase_ = 1;
return this;
}
/**
* .InitRequest init = 1;
*/
public Builder setInit(
com.github.veithen.daemon.launcher.proto.InitRequest.Builder builderForValue) {
if (initBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
initBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 1;
return this;
}
/**
* .InitRequest init = 1;
*/
public Builder mergeInit(com.github.veithen.daemon.launcher.proto.InitRequest value) {
if (initBuilder_ == null) {
if (requestCase_ == 1 &&
request_ != com.github.veithen.daemon.launcher.proto.InitRequest.getDefaultInstance()) {
request_ = com.github.veithen.daemon.launcher.proto.InitRequest.newBuilder((com.github.veithen.daemon.launcher.proto.InitRequest) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 1) {
initBuilder_.mergeFrom(value);
} else {
initBuilder_.setMessage(value);
}
}
requestCase_ = 1;
return this;
}
/**
* .InitRequest init = 1;
*/
public Builder clearInit() {
if (initBuilder_ == null) {
if (requestCase_ == 1) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 1) {
requestCase_ = 0;
request_ = null;
}
initBuilder_.clear();
}
return this;
}
/**
* .InitRequest init = 1;
*/
public com.github.veithen.daemon.launcher.proto.InitRequest.Builder getInitBuilder() {
return getInitFieldBuilder().getBuilder();
}
/**
* .InitRequest init = 1;
*/
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.InitRequestOrBuilder getInitOrBuilder() {
if ((requestCase_ == 1) && (initBuilder_ != null)) {
return initBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 1) {
return (com.github.veithen.daemon.launcher.proto.InitRequest) request_;
}
return com.github.veithen.daemon.launcher.proto.InitRequest.getDefaultInstance();
}
}
/**
* .InitRequest init = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.github.veithen.daemon.launcher.proto.InitRequest, com.github.veithen.daemon.launcher.proto.InitRequest.Builder, com.github.veithen.daemon.launcher.proto.InitRequestOrBuilder>
getInitFieldBuilder() {
if (initBuilder_ == null) {
if (!(requestCase_ == 1)) {
request_ = com.github.veithen.daemon.launcher.proto.InitRequest.getDefaultInstance();
}
initBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.veithen.daemon.launcher.proto.InitRequest, com.github.veithen.daemon.launcher.proto.InitRequest.Builder, com.github.veithen.daemon.launcher.proto.InitRequestOrBuilder>(
(com.github.veithen.daemon.launcher.proto.InitRequest) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 1;
onChanged();
return initBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.github.veithen.daemon.launcher.proto.StartRequest, com.github.veithen.daemon.launcher.proto.StartRequest.Builder, com.github.veithen.daemon.launcher.proto.StartRequestOrBuilder> startBuilder_;
/**
* .StartRequest start = 2;
* @return Whether the start field is set.
*/
@java.lang.Override
public boolean hasStart() {
return requestCase_ == 2;
}
/**
* .StartRequest start = 2;
* @return The start.
*/
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.StartRequest getStart() {
if (startBuilder_ == null) {
if (requestCase_ == 2) {
return (com.github.veithen.daemon.launcher.proto.StartRequest) request_;
}
return com.github.veithen.daemon.launcher.proto.StartRequest.getDefaultInstance();
} else {
if (requestCase_ == 2) {
return startBuilder_.getMessage();
}
return com.github.veithen.daemon.launcher.proto.StartRequest.getDefaultInstance();
}
}
/**
* .StartRequest start = 2;
*/
public Builder setStart(com.github.veithen.daemon.launcher.proto.StartRequest value) {
if (startBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
startBuilder_.setMessage(value);
}
requestCase_ = 2;
return this;
}
/**
* .StartRequest start = 2;
*/
public Builder setStart(
com.github.veithen.daemon.launcher.proto.StartRequest.Builder builderForValue) {
if (startBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
startBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 2;
return this;
}
/**
* .StartRequest start = 2;
*/
public Builder mergeStart(com.github.veithen.daemon.launcher.proto.StartRequest value) {
if (startBuilder_ == null) {
if (requestCase_ == 2 &&
request_ != com.github.veithen.daemon.launcher.proto.StartRequest.getDefaultInstance()) {
request_ = com.github.veithen.daemon.launcher.proto.StartRequest.newBuilder((com.github.veithen.daemon.launcher.proto.StartRequest) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 2) {
startBuilder_.mergeFrom(value);
} else {
startBuilder_.setMessage(value);
}
}
requestCase_ = 2;
return this;
}
/**
* .StartRequest start = 2;
*/
public Builder clearStart() {
if (startBuilder_ == null) {
if (requestCase_ == 2) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 2) {
requestCase_ = 0;
request_ = null;
}
startBuilder_.clear();
}
return this;
}
/**
* .StartRequest start = 2;
*/
public com.github.veithen.daemon.launcher.proto.StartRequest.Builder getStartBuilder() {
return getStartFieldBuilder().getBuilder();
}
/**
* .StartRequest start = 2;
*/
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.StartRequestOrBuilder getStartOrBuilder() {
if ((requestCase_ == 2) && (startBuilder_ != null)) {
return startBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 2) {
return (com.github.veithen.daemon.launcher.proto.StartRequest) request_;
}
return com.github.veithen.daemon.launcher.proto.StartRequest.getDefaultInstance();
}
}
/**
* .StartRequest start = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.github.veithen.daemon.launcher.proto.StartRequest, com.github.veithen.daemon.launcher.proto.StartRequest.Builder, com.github.veithen.daemon.launcher.proto.StartRequestOrBuilder>
getStartFieldBuilder() {
if (startBuilder_ == null) {
if (!(requestCase_ == 2)) {
request_ = com.github.veithen.daemon.launcher.proto.StartRequest.getDefaultInstance();
}
startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.veithen.daemon.launcher.proto.StartRequest, com.github.veithen.daemon.launcher.proto.StartRequest.Builder, com.github.veithen.daemon.launcher.proto.StartRequestOrBuilder>(
(com.github.veithen.daemon.launcher.proto.StartRequest) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 2;
onChanged();
return startBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
com.github.veithen.daemon.launcher.proto.StopRequest, com.github.veithen.daemon.launcher.proto.StopRequest.Builder, com.github.veithen.daemon.launcher.proto.StopRequestOrBuilder> stopBuilder_;
/**
* .StopRequest stop = 3;
* @return Whether the stop field is set.
*/
@java.lang.Override
public boolean hasStop() {
return requestCase_ == 3;
}
/**
* .StopRequest stop = 3;
* @return The stop.
*/
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.StopRequest getStop() {
if (stopBuilder_ == null) {
if (requestCase_ == 3) {
return (com.github.veithen.daemon.launcher.proto.StopRequest) request_;
}
return com.github.veithen.daemon.launcher.proto.StopRequest.getDefaultInstance();
} else {
if (requestCase_ == 3) {
return stopBuilder_.getMessage();
}
return com.github.veithen.daemon.launcher.proto.StopRequest.getDefaultInstance();
}
}
/**
* .StopRequest stop = 3;
*/
public Builder setStop(com.github.veithen.daemon.launcher.proto.StopRequest value) {
if (stopBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
request_ = value;
onChanged();
} else {
stopBuilder_.setMessage(value);
}
requestCase_ = 3;
return this;
}
/**
* .StopRequest stop = 3;
*/
public Builder setStop(
com.github.veithen.daemon.launcher.proto.StopRequest.Builder builderForValue) {
if (stopBuilder_ == null) {
request_ = builderForValue.build();
onChanged();
} else {
stopBuilder_.setMessage(builderForValue.build());
}
requestCase_ = 3;
return this;
}
/**
* .StopRequest stop = 3;
*/
public Builder mergeStop(com.github.veithen.daemon.launcher.proto.StopRequest value) {
if (stopBuilder_ == null) {
if (requestCase_ == 3 &&
request_ != com.github.veithen.daemon.launcher.proto.StopRequest.getDefaultInstance()) {
request_ = com.github.veithen.daemon.launcher.proto.StopRequest.newBuilder((com.github.veithen.daemon.launcher.proto.StopRequest) request_)
.mergeFrom(value).buildPartial();
} else {
request_ = value;
}
onChanged();
} else {
if (requestCase_ == 3) {
stopBuilder_.mergeFrom(value);
} else {
stopBuilder_.setMessage(value);
}
}
requestCase_ = 3;
return this;
}
/**
* .StopRequest stop = 3;
*/
public Builder clearStop() {
if (stopBuilder_ == null) {
if (requestCase_ == 3) {
requestCase_ = 0;
request_ = null;
onChanged();
}
} else {
if (requestCase_ == 3) {
requestCase_ = 0;
request_ = null;
}
stopBuilder_.clear();
}
return this;
}
/**
* .StopRequest stop = 3;
*/
public com.github.veithen.daemon.launcher.proto.StopRequest.Builder getStopBuilder() {
return getStopFieldBuilder().getBuilder();
}
/**
* .StopRequest stop = 3;
*/
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.StopRequestOrBuilder getStopOrBuilder() {
if ((requestCase_ == 3) && (stopBuilder_ != null)) {
return stopBuilder_.getMessageOrBuilder();
} else {
if (requestCase_ == 3) {
return (com.github.veithen.daemon.launcher.proto.StopRequest) request_;
}
return com.github.veithen.daemon.launcher.proto.StopRequest.getDefaultInstance();
}
}
/**
* .StopRequest stop = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.github.veithen.daemon.launcher.proto.StopRequest, com.github.veithen.daemon.launcher.proto.StopRequest.Builder, com.github.veithen.daemon.launcher.proto.StopRequestOrBuilder>
getStopFieldBuilder() {
if (stopBuilder_ == null) {
if (!(requestCase_ == 3)) {
request_ = com.github.veithen.daemon.launcher.proto.StopRequest.getDefaultInstance();
}
stopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.github.veithen.daemon.launcher.proto.StopRequest, com.github.veithen.daemon.launcher.proto.StopRequest.Builder, com.github.veithen.daemon.launcher.proto.StopRequestOrBuilder>(
(com.github.veithen.daemon.launcher.proto.StopRequest) request_,
getParentForChildren(),
isClean());
request_ = null;
}
requestCase_ = 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:DaemonRequest)
}
// @@protoc_insertion_point(class_scope:DaemonRequest)
private static final com.github.veithen.daemon.launcher.proto.DaemonRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.veithen.daemon.launcher.proto.DaemonRequest();
}
public static com.github.veithen.daemon.launcher.proto.DaemonRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DaemonRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.DaemonRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy