
com.github.veithen.daemon.launcher.proto.StartRequest 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 StartRequest}
*/
public final class StartRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:StartRequest)
StartRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use StartRequest.newBuilder() to construct.
private StartRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StartRequest() {
configuration_ = com.google.protobuf.ByteString.EMPTY;
testClasspathEntry_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StartRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StartRequest(
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: {
configuration_ = input.readBytes();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
testClasspathEntry_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
testClasspathEntry_.add(s);
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
ports_ = com.google.protobuf.MapField.newMapField(
PortsDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
com.google.protobuf.MapEntry
ports__ = input.readMessage(
PortsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
ports_.getMutableMap().put(
ports__.getKey(), ports__.getValue());
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
testClasspathEntry_ = testClasspathEntry_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_StartRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetPorts();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_StartRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.veithen.daemon.launcher.proto.StartRequest.class, com.github.veithen.daemon.launcher.proto.StartRequest.Builder.class);
}
public static final int CONFIGURATION_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString configuration_;
/**
* bytes configuration = 1;
* @return The configuration.
*/
@java.lang.Override
public com.google.protobuf.ByteString getConfiguration() {
return configuration_;
}
public static final int TEST_CLASSPATH_ENTRY_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList testClasspathEntry_;
/**
* repeated string test_classpath_entry = 2;
* @return A list containing the testClasspathEntry.
*/
public com.google.protobuf.ProtocolStringList
getTestClasspathEntryList() {
return testClasspathEntry_;
}
/**
* repeated string test_classpath_entry = 2;
* @return The count of testClasspathEntry.
*/
public int getTestClasspathEntryCount() {
return testClasspathEntry_.size();
}
/**
* repeated string test_classpath_entry = 2;
* @param index The index of the element to return.
* @return The testClasspathEntry at the given index.
*/
public java.lang.String getTestClasspathEntry(int index) {
return testClasspathEntry_.get(index);
}
/**
* repeated string test_classpath_entry = 2;
* @param index The index of the value to return.
* @return The bytes of the testClasspathEntry at the given index.
*/
public com.google.protobuf.ByteString
getTestClasspathEntryBytes(int index) {
return testClasspathEntry_.getByteString(index);
}
public static final int PORTS_FIELD_NUMBER = 3;
private static final class PortsDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, java.lang.Integer> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
com.github.veithen.daemon.launcher.proto.Daemon.internal_static_StartRequest_PortsEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.UINT32,
0);
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Integer> ports_;
private com.google.protobuf.MapField
internalGetPorts() {
if (ports_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PortsDefaultEntryHolder.defaultEntry);
}
return ports_;
}
public int getPortsCount() {
return internalGetPorts().getMap().size();
}
/**
* map<string, uint32> ports = 3;
*/
@java.lang.Override
public boolean containsPorts(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetPorts().getMap().containsKey(key);
}
/**
* Use {@link #getPortsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getPorts() {
return getPortsMap();
}
/**
* map<string, uint32> ports = 3;
*/
@java.lang.Override
public java.util.Map getPortsMap() {
return internalGetPorts().getMap();
}
/**
* map<string, uint32> ports = 3;
*/
@java.lang.Override
public int getPortsOrDefault(
java.lang.String key,
int defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetPorts().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, uint32> ports = 3;
*/
@java.lang.Override
public int getPortsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetPorts().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 {
if (!configuration_.isEmpty()) {
output.writeBytes(1, configuration_);
}
for (int i = 0; i < testClasspathEntry_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, testClasspathEntry_.getRaw(i));
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetPorts(),
PortsDefaultEntryHolder.defaultEntry,
3);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!configuration_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, configuration_);
}
{
int dataSize = 0;
for (int i = 0; i < testClasspathEntry_.size(); i++) {
dataSize += computeStringSizeNoTag(testClasspathEntry_.getRaw(i));
}
size += dataSize;
size += 1 * getTestClasspathEntryList().size();
}
for (java.util.Map.Entry entry
: internalGetPorts().getMap().entrySet()) {
com.google.protobuf.MapEntry
ports__ = PortsDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, ports__);
}
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.StartRequest)) {
return super.equals(obj);
}
com.github.veithen.daemon.launcher.proto.StartRequest other = (com.github.veithen.daemon.launcher.proto.StartRequest) obj;
if (!getConfiguration()
.equals(other.getConfiguration())) return false;
if (!getTestClasspathEntryList()
.equals(other.getTestClasspathEntryList())) return false;
if (!internalGetPorts().equals(
other.internalGetPorts())) 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();
hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER;
hash = (53 * hash) + getConfiguration().hashCode();
if (getTestClasspathEntryCount() > 0) {
hash = (37 * hash) + TEST_CLASSPATH_ENTRY_FIELD_NUMBER;
hash = (53 * hash) + getTestClasspathEntryList().hashCode();
}
if (!internalGetPorts().getMap().isEmpty()) {
hash = (37 * hash) + PORTS_FIELD_NUMBER;
hash = (53 * hash) + internalGetPorts().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.github.veithen.daemon.launcher.proto.StartRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.veithen.daemon.launcher.proto.StartRequest 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.StartRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.veithen.daemon.launcher.proto.StartRequest 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.StartRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.github.veithen.daemon.launcher.proto.StartRequest 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.StartRequest 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.StartRequest 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.StartRequest 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.StartRequest 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.StartRequest 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.StartRequest 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.StartRequest 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 StartRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:StartRequest)
com.github.veithen.daemon.launcher.proto.StartRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_StartRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 3:
return internalGetPorts();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 3:
return internalGetMutablePorts();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_StartRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.github.veithen.daemon.launcher.proto.StartRequest.class, com.github.veithen.daemon.launcher.proto.StartRequest.Builder.class);
}
// Construct using com.github.veithen.daemon.launcher.proto.StartRequest.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();
configuration_ = com.google.protobuf.ByteString.EMPTY;
testClasspathEntry_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
internalGetMutablePorts().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.github.veithen.daemon.launcher.proto.Daemon.internal_static_StartRequest_descriptor;
}
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.StartRequest getDefaultInstanceForType() {
return com.github.veithen.daemon.launcher.proto.StartRequest.getDefaultInstance();
}
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.StartRequest build() {
com.github.veithen.daemon.launcher.proto.StartRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.github.veithen.daemon.launcher.proto.StartRequest buildPartial() {
com.github.veithen.daemon.launcher.proto.StartRequest result = new com.github.veithen.daemon.launcher.proto.StartRequest(this);
int from_bitField0_ = bitField0_;
result.configuration_ = configuration_;
if (((bitField0_ & 0x00000001) != 0)) {
testClasspathEntry_ = testClasspathEntry_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.testClasspathEntry_ = testClasspathEntry_;
result.ports_ = internalGetPorts();
result.ports_.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.github.veithen.daemon.launcher.proto.StartRequest) {
return mergeFrom((com.github.veithen.daemon.launcher.proto.StartRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.github.veithen.daemon.launcher.proto.StartRequest other) {
if (other == com.github.veithen.daemon.launcher.proto.StartRequest.getDefaultInstance()) return this;
if (other.getConfiguration() != com.google.protobuf.ByteString.EMPTY) {
setConfiguration(other.getConfiguration());
}
if (!other.testClasspathEntry_.isEmpty()) {
if (testClasspathEntry_.isEmpty()) {
testClasspathEntry_ = other.testClasspathEntry_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureTestClasspathEntryIsMutable();
testClasspathEntry_.addAll(other.testClasspathEntry_);
}
onChanged();
}
internalGetMutablePorts().mergeFrom(
other.internalGetPorts());
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.github.veithen.daemon.launcher.proto.StartRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (com.github.veithen.daemon.launcher.proto.StartRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString configuration_ = com.google.protobuf.ByteString.EMPTY;
/**
* bytes configuration = 1;
* @return The configuration.
*/
@java.lang.Override
public com.google.protobuf.ByteString getConfiguration() {
return configuration_;
}
/**
* bytes configuration = 1;
* @param value The configuration to set.
* @return This builder for chaining.
*/
public Builder setConfiguration(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
configuration_ = value;
onChanged();
return this;
}
/**
* bytes configuration = 1;
* @return This builder for chaining.
*/
public Builder clearConfiguration() {
configuration_ = getDefaultInstance().getConfiguration();
onChanged();
return this;
}
private com.google.protobuf.LazyStringList testClasspathEntry_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTestClasspathEntryIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
testClasspathEntry_ = new com.google.protobuf.LazyStringArrayList(testClasspathEntry_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated string test_classpath_entry = 2;
* @return A list containing the testClasspathEntry.
*/
public com.google.protobuf.ProtocolStringList
getTestClasspathEntryList() {
return testClasspathEntry_.getUnmodifiableView();
}
/**
* repeated string test_classpath_entry = 2;
* @return The count of testClasspathEntry.
*/
public int getTestClasspathEntryCount() {
return testClasspathEntry_.size();
}
/**
* repeated string test_classpath_entry = 2;
* @param index The index of the element to return.
* @return The testClasspathEntry at the given index.
*/
public java.lang.String getTestClasspathEntry(int index) {
return testClasspathEntry_.get(index);
}
/**
* repeated string test_classpath_entry = 2;
* @param index The index of the value to return.
* @return The bytes of the testClasspathEntry at the given index.
*/
public com.google.protobuf.ByteString
getTestClasspathEntryBytes(int index) {
return testClasspathEntry_.getByteString(index);
}
/**
* repeated string test_classpath_entry = 2;
* @param index The index to set the value at.
* @param value The testClasspathEntry to set.
* @return This builder for chaining.
*/
public Builder setTestClasspathEntry(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTestClasspathEntryIsMutable();
testClasspathEntry_.set(index, value);
onChanged();
return this;
}
/**
* repeated string test_classpath_entry = 2;
* @param value The testClasspathEntry to add.
* @return This builder for chaining.
*/
public Builder addTestClasspathEntry(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTestClasspathEntryIsMutable();
testClasspathEntry_.add(value);
onChanged();
return this;
}
/**
* repeated string test_classpath_entry = 2;
* @param values The testClasspathEntry to add.
* @return This builder for chaining.
*/
public Builder addAllTestClasspathEntry(
java.lang.Iterable values) {
ensureTestClasspathEntryIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, testClasspathEntry_);
onChanged();
return this;
}
/**
* repeated string test_classpath_entry = 2;
* @return This builder for chaining.
*/
public Builder clearTestClasspathEntry() {
testClasspathEntry_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated string test_classpath_entry = 2;
* @param value The bytes of the testClasspathEntry to add.
* @return This builder for chaining.
*/
public Builder addTestClasspathEntryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureTestClasspathEntryIsMutable();
testClasspathEntry_.add(value);
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, java.lang.Integer> ports_;
private com.google.protobuf.MapField
internalGetPorts() {
if (ports_ == null) {
return com.google.protobuf.MapField.emptyMapField(
PortsDefaultEntryHolder.defaultEntry);
}
return ports_;
}
private com.google.protobuf.MapField
internalGetMutablePorts() {
onChanged();;
if (ports_ == null) {
ports_ = com.google.protobuf.MapField.newMapField(
PortsDefaultEntryHolder.defaultEntry);
}
if (!ports_.isMutable()) {
ports_ = ports_.copy();
}
return ports_;
}
public int getPortsCount() {
return internalGetPorts().getMap().size();
}
/**
* map<string, uint32> ports = 3;
*/
@java.lang.Override
public boolean containsPorts(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetPorts().getMap().containsKey(key);
}
/**
* Use {@link #getPortsMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getPorts() {
return getPortsMap();
}
/**
* map<string, uint32> ports = 3;
*/
@java.lang.Override
public java.util.Map getPortsMap() {
return internalGetPorts().getMap();
}
/**
* map<string, uint32> ports = 3;
*/
@java.lang.Override
public int getPortsOrDefault(
java.lang.String key,
int defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetPorts().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, uint32> ports = 3;
*/
@java.lang.Override
public int getPortsOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetPorts().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearPorts() {
internalGetMutablePorts().getMutableMap()
.clear();
return this;
}
/**
* map<string, uint32> ports = 3;
*/
public Builder removePorts(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutablePorts().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutablePorts() {
return internalGetMutablePorts().getMutableMap();
}
/**
* map<string, uint32> ports = 3;
*/
public Builder putPorts(
java.lang.String key,
int value) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutablePorts().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, uint32> ports = 3;
*/
public Builder putAllPorts(
java.util.Map values) {
internalGetMutablePorts().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:StartRequest)
}
// @@protoc_insertion_point(class_scope:StartRequest)
private static final com.github.veithen.daemon.launcher.proto.StartRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.github.veithen.daemon.launcher.proto.StartRequest();
}
public static com.github.veithen.daemon.launcher.proto.StartRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StartRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StartRequest(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.StartRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy