io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bpms-protobuf-api Show documentation
Show all versions of bpms-protobuf-api Show documentation
Protobuf classes for efficient transmission of the BPMS events
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1.proto
package io.vanillabp.cockpit.bpms.api.protobuf.v1;
/**
* Protobuf type {@code DetailsValue}
*/
public final class DetailsValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:DetailsValue)
DetailsValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use DetailsValue.newBuilder() to construct.
private DetailsValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DetailsValue() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DetailsValue();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.vanillabp.cockpit.bpms.api.protobuf.v1.V1.internal_static_DetailsValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.vanillabp.cockpit.bpms.api.protobuf.v1.V1.internal_static_DetailsValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue.class, io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue.Builder.class);
}
private int theseCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object these_;
public enum TheseCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
NULLVALUE(1),
NUMERICVALUE(2),
STRINGVALUE(3),
BOOLVALUE(4),
MAPVALUE(5),
THESE_NOT_SET(0);
private final int value;
private TheseCase(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 TheseCase valueOf(int value) {
return forNumber(value);
}
public static TheseCase forNumber(int value) {
switch (value) {
case 1: return NULLVALUE;
case 2: return NUMERICVALUE;
case 3: return STRINGVALUE;
case 4: return BOOLVALUE;
case 5: return MAPVALUE;
case 0: return THESE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public TheseCase
getTheseCase() {
return TheseCase.forNumber(
theseCase_);
}
public static final int NULLVALUE_FIELD_NUMBER = 1;
/**
* bool nullValue = 1;
* @return Whether the nullValue field is set.
*/
@java.lang.Override
public boolean hasNullValue() {
return theseCase_ == 1;
}
/**
* bool nullValue = 1;
* @return The nullValue.
*/
@java.lang.Override
public boolean getNullValue() {
if (theseCase_ == 1) {
return (java.lang.Boolean) these_;
}
return false;
}
public static final int NUMERICVALUE_FIELD_NUMBER = 2;
/**
* string numericValue = 2;
* @return Whether the numericValue field is set.
*/
public boolean hasNumericValue() {
return theseCase_ == 2;
}
/**
* string numericValue = 2;
* @return The numericValue.
*/
public java.lang.String getNumericValue() {
java.lang.Object ref = "";
if (theseCase_ == 2) {
ref = these_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (theseCase_ == 2) {
these_ = s;
}
return s;
}
}
/**
* string numericValue = 2;
* @return The bytes for numericValue.
*/
public com.google.protobuf.ByteString
getNumericValueBytes() {
java.lang.Object ref = "";
if (theseCase_ == 2) {
ref = these_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (theseCase_ == 2) {
these_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STRINGVALUE_FIELD_NUMBER = 3;
/**
* string stringValue = 3;
* @return Whether the stringValue field is set.
*/
public boolean hasStringValue() {
return theseCase_ == 3;
}
/**
* string stringValue = 3;
* @return The stringValue.
*/
public java.lang.String getStringValue() {
java.lang.Object ref = "";
if (theseCase_ == 3) {
ref = these_;
}
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (theseCase_ == 3) {
these_ = s;
}
return s;
}
}
/**
* string stringValue = 3;
* @return The bytes for stringValue.
*/
public com.google.protobuf.ByteString
getStringValueBytes() {
java.lang.Object ref = "";
if (theseCase_ == 3) {
ref = these_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (theseCase_ == 3) {
these_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int BOOLVALUE_FIELD_NUMBER = 4;
/**
* bool boolValue = 4;
* @return Whether the boolValue field is set.
*/
@java.lang.Override
public boolean hasBoolValue() {
return theseCase_ == 4;
}
/**
* bool boolValue = 4;
* @return The boolValue.
*/
@java.lang.Override
public boolean getBoolValue() {
if (theseCase_ == 4) {
return (java.lang.Boolean) these_;
}
return false;
}
public static final int MAPVALUE_FIELD_NUMBER = 5;
/**
* .DetailsMap mapValue = 5;
* @return Whether the mapValue field is set.
*/
@java.lang.Override
public boolean hasMapValue() {
return theseCase_ == 5;
}
/**
* .DetailsMap mapValue = 5;
* @return The mapValue.
*/
@java.lang.Override
public io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap getMapValue() {
if (theseCase_ == 5) {
return (io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap) these_;
}
return io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.getDefaultInstance();
}
/**
* .DetailsMap mapValue = 5;
*/
@java.lang.Override
public io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMapOrBuilder getMapValueOrBuilder() {
if (theseCase_ == 5) {
return (io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap) these_;
}
return io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.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 (theseCase_ == 1) {
output.writeBool(
1, (boolean)((java.lang.Boolean) these_));
}
if (theseCase_ == 2) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, these_);
}
if (theseCase_ == 3) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, these_);
}
if (theseCase_ == 4) {
output.writeBool(
4, (boolean)((java.lang.Boolean) these_));
}
if (theseCase_ == 5) {
output.writeMessage(5, (io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap) these_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (theseCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
1, (boolean)((java.lang.Boolean) these_));
}
if (theseCase_ == 2) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, these_);
}
if (theseCase_ == 3) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, these_);
}
if (theseCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
4, (boolean)((java.lang.Boolean) these_));
}
if (theseCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap) these_);
}
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 io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue)) {
return super.equals(obj);
}
io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue other = (io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue) obj;
if (!getTheseCase().equals(other.getTheseCase())) return false;
switch (theseCase_) {
case 1:
if (getNullValue()
!= other.getNullValue()) return false;
break;
case 2:
if (!getNumericValue()
.equals(other.getNumericValue())) return false;
break;
case 3:
if (!getStringValue()
.equals(other.getStringValue())) return false;
break;
case 4:
if (getBoolValue()
!= other.getBoolValue()) return false;
break;
case 5:
if (!getMapValue()
.equals(other.getMapValue())) 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 (theseCase_) {
case 1:
hash = (37 * hash) + NULLVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getNullValue());
break;
case 2:
hash = (37 * hash) + NUMERICVALUE_FIELD_NUMBER;
hash = (53 * hash) + getNumericValue().hashCode();
break;
case 3:
hash = (37 * hash) + STRINGVALUE_FIELD_NUMBER;
hash = (53 * hash) + getStringValue().hashCode();
break;
case 4:
hash = (37 * hash) + BOOLVALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBoolValue());
break;
case 5:
hash = (37 * hash) + MAPVALUE_FIELD_NUMBER;
hash = (53 * hash) + getMapValue().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue 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 io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue 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 io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue 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(io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue 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 DetailsValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:DetailsValue)
io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.vanillabp.cockpit.bpms.api.protobuf.v1.V1.internal_static_DetailsValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.vanillabp.cockpit.bpms.api.protobuf.v1.V1.internal_static_DetailsValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue.class, io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue.Builder.class);
}
// Construct using io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (mapValueBuilder_ != null) {
mapValueBuilder_.clear();
}
theseCase_ = 0;
these_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.vanillabp.cockpit.bpms.api.protobuf.v1.V1.internal_static_DetailsValue_descriptor;
}
@java.lang.Override
public io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue getDefaultInstanceForType() {
return io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue.getDefaultInstance();
}
@java.lang.Override
public io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue build() {
io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue buildPartial() {
io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue result = new io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue result) {
result.theseCase_ = theseCase_;
result.these_ = this.these_;
if (theseCase_ == 5 &&
mapValueBuilder_ != null) {
result.these_ = mapValueBuilder_.build();
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue) {
return mergeFrom((io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue other) {
if (other == io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue.getDefaultInstance()) return this;
switch (other.getTheseCase()) {
case NULLVALUE: {
setNullValue(other.getNullValue());
break;
}
case NUMERICVALUE: {
theseCase_ = 2;
these_ = other.these_;
onChanged();
break;
}
case STRINGVALUE: {
theseCase_ = 3;
these_ = other.these_;
onChanged();
break;
}
case BOOLVALUE: {
setBoolValue(other.getBoolValue());
break;
}
case MAPVALUE: {
mergeMapValue(other.getMapValue());
break;
}
case THESE_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 8: {
these_ = input.readBool();
theseCase_ = 1;
break;
} // case 8
case 18: {
java.lang.String s = input.readStringRequireUtf8();
theseCase_ = 2;
these_ = s;
break;
} // case 18
case 26: {
java.lang.String s = input.readStringRequireUtf8();
theseCase_ = 3;
these_ = s;
break;
} // case 26
case 32: {
these_ = input.readBool();
theseCase_ = 4;
break;
} // case 32
case 42: {
input.readMessage(
getMapValueFieldBuilder().getBuilder(),
extensionRegistry);
theseCase_ = 5;
break;
} // case 42
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 theseCase_ = 0;
private java.lang.Object these_;
public TheseCase
getTheseCase() {
return TheseCase.forNumber(
theseCase_);
}
public Builder clearThese() {
theseCase_ = 0;
these_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
* bool nullValue = 1;
* @return Whether the nullValue field is set.
*/
public boolean hasNullValue() {
return theseCase_ == 1;
}
/**
* bool nullValue = 1;
* @return The nullValue.
*/
public boolean getNullValue() {
if (theseCase_ == 1) {
return (java.lang.Boolean) these_;
}
return false;
}
/**
* bool nullValue = 1;
* @param value The nullValue to set.
* @return This builder for chaining.
*/
public Builder setNullValue(boolean value) {
theseCase_ = 1;
these_ = value;
onChanged();
return this;
}
/**
* bool nullValue = 1;
* @return This builder for chaining.
*/
public Builder clearNullValue() {
if (theseCase_ == 1) {
theseCase_ = 0;
these_ = null;
onChanged();
}
return this;
}
/**
* string numericValue = 2;
* @return Whether the numericValue field is set.
*/
@java.lang.Override
public boolean hasNumericValue() {
return theseCase_ == 2;
}
/**
* string numericValue = 2;
* @return The numericValue.
*/
@java.lang.Override
public java.lang.String getNumericValue() {
java.lang.Object ref = "";
if (theseCase_ == 2) {
ref = these_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (theseCase_ == 2) {
these_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string numericValue = 2;
* @return The bytes for numericValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNumericValueBytes() {
java.lang.Object ref = "";
if (theseCase_ == 2) {
ref = these_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (theseCase_ == 2) {
these_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string numericValue = 2;
* @param value The numericValue to set.
* @return This builder for chaining.
*/
public Builder setNumericValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
theseCase_ = 2;
these_ = value;
onChanged();
return this;
}
/**
* string numericValue = 2;
* @return This builder for chaining.
*/
public Builder clearNumericValue() {
if (theseCase_ == 2) {
theseCase_ = 0;
these_ = null;
onChanged();
}
return this;
}
/**
* string numericValue = 2;
* @param value The bytes for numericValue to set.
* @return This builder for chaining.
*/
public Builder setNumericValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
theseCase_ = 2;
these_ = value;
onChanged();
return this;
}
/**
* string stringValue = 3;
* @return Whether the stringValue field is set.
*/
@java.lang.Override
public boolean hasStringValue() {
return theseCase_ == 3;
}
/**
* string stringValue = 3;
* @return The stringValue.
*/
@java.lang.Override
public java.lang.String getStringValue() {
java.lang.Object ref = "";
if (theseCase_ == 3) {
ref = these_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (theseCase_ == 3) {
these_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* string stringValue = 3;
* @return The bytes for stringValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStringValueBytes() {
java.lang.Object ref = "";
if (theseCase_ == 3) {
ref = these_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (theseCase_ == 3) {
these_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* string stringValue = 3;
* @param value The stringValue to set.
* @return This builder for chaining.
*/
public Builder setStringValue(
java.lang.String value) {
if (value == null) { throw new NullPointerException(); }
theseCase_ = 3;
these_ = value;
onChanged();
return this;
}
/**
* string stringValue = 3;
* @return This builder for chaining.
*/
public Builder clearStringValue() {
if (theseCase_ == 3) {
theseCase_ = 0;
these_ = null;
onChanged();
}
return this;
}
/**
* string stringValue = 3;
* @param value The bytes for stringValue to set.
* @return This builder for chaining.
*/
public Builder setStringValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) { throw new NullPointerException(); }
checkByteStringIsUtf8(value);
theseCase_ = 3;
these_ = value;
onChanged();
return this;
}
/**
* bool boolValue = 4;
* @return Whether the boolValue field is set.
*/
public boolean hasBoolValue() {
return theseCase_ == 4;
}
/**
* bool boolValue = 4;
* @return The boolValue.
*/
public boolean getBoolValue() {
if (theseCase_ == 4) {
return (java.lang.Boolean) these_;
}
return false;
}
/**
* bool boolValue = 4;
* @param value The boolValue to set.
* @return This builder for chaining.
*/
public Builder setBoolValue(boolean value) {
theseCase_ = 4;
these_ = value;
onChanged();
return this;
}
/**
* bool boolValue = 4;
* @return This builder for chaining.
*/
public Builder clearBoolValue() {
if (theseCase_ == 4) {
theseCase_ = 0;
these_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap, io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.Builder, io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMapOrBuilder> mapValueBuilder_;
/**
* .DetailsMap mapValue = 5;
* @return Whether the mapValue field is set.
*/
@java.lang.Override
public boolean hasMapValue() {
return theseCase_ == 5;
}
/**
* .DetailsMap mapValue = 5;
* @return The mapValue.
*/
@java.lang.Override
public io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap getMapValue() {
if (mapValueBuilder_ == null) {
if (theseCase_ == 5) {
return (io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap) these_;
}
return io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.getDefaultInstance();
} else {
if (theseCase_ == 5) {
return mapValueBuilder_.getMessage();
}
return io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.getDefaultInstance();
}
}
/**
* .DetailsMap mapValue = 5;
*/
public Builder setMapValue(io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap value) {
if (mapValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
these_ = value;
onChanged();
} else {
mapValueBuilder_.setMessage(value);
}
theseCase_ = 5;
return this;
}
/**
* .DetailsMap mapValue = 5;
*/
public Builder setMapValue(
io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.Builder builderForValue) {
if (mapValueBuilder_ == null) {
these_ = builderForValue.build();
onChanged();
} else {
mapValueBuilder_.setMessage(builderForValue.build());
}
theseCase_ = 5;
return this;
}
/**
* .DetailsMap mapValue = 5;
*/
public Builder mergeMapValue(io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap value) {
if (mapValueBuilder_ == null) {
if (theseCase_ == 5 &&
these_ != io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.getDefaultInstance()) {
these_ = io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.newBuilder((io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap) these_)
.mergeFrom(value).buildPartial();
} else {
these_ = value;
}
onChanged();
} else {
if (theseCase_ == 5) {
mapValueBuilder_.mergeFrom(value);
} else {
mapValueBuilder_.setMessage(value);
}
}
theseCase_ = 5;
return this;
}
/**
* .DetailsMap mapValue = 5;
*/
public Builder clearMapValue() {
if (mapValueBuilder_ == null) {
if (theseCase_ == 5) {
theseCase_ = 0;
these_ = null;
onChanged();
}
} else {
if (theseCase_ == 5) {
theseCase_ = 0;
these_ = null;
}
mapValueBuilder_.clear();
}
return this;
}
/**
* .DetailsMap mapValue = 5;
*/
public io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.Builder getMapValueBuilder() {
return getMapValueFieldBuilder().getBuilder();
}
/**
* .DetailsMap mapValue = 5;
*/
@java.lang.Override
public io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMapOrBuilder getMapValueOrBuilder() {
if ((theseCase_ == 5) && (mapValueBuilder_ != null)) {
return mapValueBuilder_.getMessageOrBuilder();
} else {
if (theseCase_ == 5) {
return (io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap) these_;
}
return io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.getDefaultInstance();
}
}
/**
* .DetailsMap mapValue = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap, io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.Builder, io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMapOrBuilder>
getMapValueFieldBuilder() {
if (mapValueBuilder_ == null) {
if (!(theseCase_ == 5)) {
these_ = io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.getDefaultInstance();
}
mapValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap, io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap.Builder, io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMapOrBuilder>(
(io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsMap) these_,
getParentForChildren(),
isClean());
these_ = null;
}
theseCase_ = 5;
onChanged();
return mapValueBuilder_;
}
@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:DetailsValue)
}
// @@protoc_insertion_point(class_scope:DetailsValue)
private static final io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue();
}
public static io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DetailsValue 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 io.vanillabp.cockpit.bpms.api.protobuf.v1.DetailsValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}