io.axoniq.axonserver.grpc.MetaDataValue Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common.proto
package io.axoniq.axonserver.grpc;
/**
*
* The value of a MetaData entry.
*
*
* Protobuf type {@code io.axoniq.axonserver.grpc.MetaDataValue}
*/
public final class MetaDataValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.axoniq.axonserver.grpc.MetaDataValue)
MetaDataValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use MetaDataValue.newBuilder() to construct.
private MetaDataValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MetaDataValue() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MetaDataValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
dataCase_ = 1;
data_ = s;
break;
}
case 16: {
dataCase_ = 2;
data_ = input.readSInt64();
break;
}
case 24: {
dataCase_ = 3;
data_ = input.readBool();
break;
}
case 33: {
dataCase_ = 4;
data_ = input.readDouble();
break;
}
case 42: {
io.axoniq.axonserver.grpc.SerializedObject.Builder subBuilder = null;
if (dataCase_ == 5) {
subBuilder = ((io.axoniq.axonserver.grpc.SerializedObject) data_).toBuilder();
}
data_ =
input.readMessage(io.axoniq.axonserver.grpc.SerializedObject.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.axoniq.axonserver.grpc.SerializedObject) data_);
data_ = subBuilder.buildPartial();
}
dataCase_ = 5;
break;
}
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.axoniq.axonserver.grpc.Common.internal_static_io_axoniq_axonserver_grpc_MetaDataValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.axoniq.axonserver.grpc.Common.internal_static_io_axoniq_axonserver_grpc_MetaDataValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.axonserver.grpc.MetaDataValue.class, io.axoniq.axonserver.grpc.MetaDataValue.Builder.class);
}
private int dataCase_ = 0;
private java.lang.Object data_;
public enum DataCase
implements com.google.protobuf.Internal.EnumLite {
TEXT_VALUE(1),
NUMBER_VALUE(2),
BOOLEAN_VALUE(3),
DOUBLE_VALUE(4),
BYTES_VALUE(5),
DATA_NOT_SET(0);
private final int value;
private DataCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataCase valueOf(int value) {
return forNumber(value);
}
public static DataCase forNumber(int value) {
switch (value) {
case 1: return TEXT_VALUE;
case 2: return NUMBER_VALUE;
case 3: return BOOLEAN_VALUE;
case 4: return DOUBLE_VALUE;
case 5: return BYTES_VALUE;
case 0: return DATA_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public DataCase
getDataCase() {
return DataCase.forNumber(
dataCase_);
}
public static final int TEXT_VALUE_FIELD_NUMBER = 1;
/**
*
* The text value of the Meta Data entry.
*
*
* string text_value = 1;
*/
public java.lang.String getTextValue() {
java.lang.Object ref = "";
if (dataCase_ == 1) {
ref = data_;
}
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 (dataCase_ == 1) {
data_ = s;
}
return s;
}
}
/**
*
* The text value of the Meta Data entry.
*
*
* string text_value = 1;
*/
public com.google.protobuf.ByteString
getTextValueBytes() {
java.lang.Object ref = "";
if (dataCase_ == 1) {
ref = data_;
}
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (dataCase_ == 1) {
data_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NUMBER_VALUE_FIELD_NUMBER = 2;
/**
*
* The numeric value of the Meta Data entry.
*
*
* sint64 number_value = 2;
*/
public long getNumberValue() {
if (dataCase_ == 2) {
return (java.lang.Long) data_;
}
return 0L;
}
public static final int BOOLEAN_VALUE_FIELD_NUMBER = 3;
/**
*
* The boolean value of the Meta Data entry.
*
*
* bool boolean_value = 3;
*/
public boolean getBooleanValue() {
if (dataCase_ == 3) {
return (java.lang.Boolean) data_;
}
return false;
}
public static final int DOUBLE_VALUE_FIELD_NUMBER = 4;
/**
*
* The floating point value of the Meta Data entry.
*
*
* double double_value = 4;
*/
public double getDoubleValue() {
if (dataCase_ == 4) {
return (java.lang.Double) data_;
}
return 0D;
}
public static final int BYTES_VALUE_FIELD_NUMBER = 5;
/**
*
* The binary value of the Meta Data entry.
*
*
* .io.axoniq.axonserver.grpc.SerializedObject bytes_value = 5;
*/
public boolean hasBytesValue() {
return dataCase_ == 5;
}
/**
*
* The binary value of the Meta Data entry.
*
*
* .io.axoniq.axonserver.grpc.SerializedObject bytes_value = 5;
*/
public io.axoniq.axonserver.grpc.SerializedObject getBytesValue() {
if (dataCase_ == 5) {
return (io.axoniq.axonserver.grpc.SerializedObject) data_;
}
return io.axoniq.axonserver.grpc.SerializedObject.getDefaultInstance();
}
/**
*
* The binary value of the Meta Data entry.
*
*
* .io.axoniq.axonserver.grpc.SerializedObject bytes_value = 5;
*/
public io.axoniq.axonserver.grpc.SerializedObjectOrBuilder getBytesValueOrBuilder() {
if (dataCase_ == 5) {
return (io.axoniq.axonserver.grpc.SerializedObject) data_;
}
return io.axoniq.axonserver.grpc.SerializedObject.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 (dataCase_ == 1) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, data_);
}
if (dataCase_ == 2) {
output.writeSInt64(
2, (long)((java.lang.Long) data_));
}
if (dataCase_ == 3) {
output.writeBool(
3, (boolean)((java.lang.Boolean) data_));
}
if (dataCase_ == 4) {
output.writeDouble(
4, (double)((java.lang.Double) data_));
}
if (dataCase_ == 5) {
output.writeMessage(5, (io.axoniq.axonserver.grpc.SerializedObject) data_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (dataCase_ == 1) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, data_);
}
if (dataCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeSInt64Size(
2, (long)((java.lang.Long) data_));
}
if (dataCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
3, (boolean)((java.lang.Boolean) data_));
}
if (dataCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(
4, (double)((java.lang.Double) data_));
}
if (dataCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.axoniq.axonserver.grpc.SerializedObject) data_);
}
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 io.axoniq.axonserver.grpc.MetaDataValue)) {
return super.equals(obj);
}
io.axoniq.axonserver.grpc.MetaDataValue other = (io.axoniq.axonserver.grpc.MetaDataValue) obj;
boolean result = true;
result = result && getDataCase().equals(
other.getDataCase());
if (!result) return false;
switch (dataCase_) {
case 1:
result = result && getTextValue()
.equals(other.getTextValue());
break;
case 2:
result = result && (getNumberValue()
== other.getNumberValue());
break;
case 3:
result = result && (getBooleanValue()
== other.getBooleanValue());
break;
case 4:
result = result && (
java.lang.Double.doubleToLongBits(getDoubleValue())
== java.lang.Double.doubleToLongBits(
other.getDoubleValue()));
break;
case 5:
result = result && getBytesValue()
.equals(other.getBytesValue());
break;
case 0:
default:
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (dataCase_) {
case 1:
hash = (37 * hash) + TEXT_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getTextValue().hashCode();
break;
case 2:
hash = (37 * hash) + NUMBER_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNumberValue());
break;
case 3:
hash = (37 * hash) + BOOLEAN_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getBooleanValue());
break;
case 4:
hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getDoubleValue()));
break;
case 5:
hash = (37 * hash) + BYTES_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getBytesValue().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.axoniq.axonserver.grpc.MetaDataValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.MetaDataValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.MetaDataValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.MetaDataValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.MetaDataValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.axoniq.axonserver.grpc.MetaDataValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.axoniq.axonserver.grpc.MetaDataValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.MetaDataValue 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.axoniq.axonserver.grpc.MetaDataValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.MetaDataValue 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.axoniq.axonserver.grpc.MetaDataValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.axoniq.axonserver.grpc.MetaDataValue 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.axoniq.axonserver.grpc.MetaDataValue 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;
}
/**
*
* The value of a MetaData entry.
*
*
* Protobuf type {@code io.axoniq.axonserver.grpc.MetaDataValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.axoniq.axonserver.grpc.MetaDataValue)
io.axoniq.axonserver.grpc.MetaDataValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.axoniq.axonserver.grpc.Common.internal_static_io_axoniq_axonserver_grpc_MetaDataValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.axoniq.axonserver.grpc.Common.internal_static_io_axoniq_axonserver_grpc_MetaDataValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.axoniq.axonserver.grpc.MetaDataValue.class, io.axoniq.axonserver.grpc.MetaDataValue.Builder.class);
}
// Construct using io.axoniq.axonserver.grpc.MetaDataValue.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();
dataCase_ = 0;
data_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.axoniq.axonserver.grpc.Common.internal_static_io_axoniq_axonserver_grpc_MetaDataValue_descriptor;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.MetaDataValue getDefaultInstanceForType() {
return io.axoniq.axonserver.grpc.MetaDataValue.getDefaultInstance();
}
@java.lang.Override
public io.axoniq.axonserver.grpc.MetaDataValue build() {
io.axoniq.axonserver.grpc.MetaDataValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.axoniq.axonserver.grpc.MetaDataValue buildPartial() {
io.axoniq.axonserver.grpc.MetaDataValue result = new io.axoniq.axonserver.grpc.MetaDataValue(this);
if (dataCase_ == 1) {
result.data_ = data_;
}
if (dataCase_ == 2) {
result.data_ = data_;
}
if (dataCase_ == 3) {
result.data_ = data_;
}
if (dataCase_ == 4) {
result.data_ = data_;
}
if (dataCase_ == 5) {
if (bytesValueBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = bytesValueBuilder_.build();
}
}
result.dataCase_ = dataCase_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return (Builder) super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.axoniq.axonserver.grpc.MetaDataValue) {
return mergeFrom((io.axoniq.axonserver.grpc.MetaDataValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.axoniq.axonserver.grpc.MetaDataValue other) {
if (other == io.axoniq.axonserver.grpc.MetaDataValue.getDefaultInstance()) return this;
switch (other.getDataCase()) {
case TEXT_VALUE: {
dataCase_ = 1;
data_ = other.data_;
onChanged();
break;
}
case NUMBER_VALUE: {
setNumberValue(other.getNumberValue());
break;
}
case BOOLEAN_VALUE: {
setBooleanValue(other.getBooleanValue());
break;
}
case DOUBLE_VALUE: {
setDoubleValue(other.getDoubleValue());
break;
}
case BYTES_VALUE: {
mergeBytesValue(other.getBytesValue());
break;
}
case DATA_NOT_SET: {
break;
}
}
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 {
io.axoniq.axonserver.grpc.MetaDataValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.axoniq.axonserver.grpc.MetaDataValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int dataCase_ = 0;
private java.lang.Object data_;
public DataCase
getDataCase() {
return DataCase.forNumber(
dataCase_);
}
public Builder clearData() {
dataCase_ = 0;
data_ = null;
onChanged();
return this;
}
/**
*
* The text value of the Meta Data entry.
*
*
* string text_value = 1;
*/
public java.lang.String getTextValue() {
java.lang.Object ref = "";
if (dataCase_ == 1) {
ref = data_;
}
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (dataCase_ == 1) {
data_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The text value of the Meta Data entry.
*
*
* string text_value = 1;
*/
public com.google.protobuf.ByteString
getTextValueBytes() {
java.lang.Object ref = "";
if (dataCase_ == 1) {
ref = data_;
}
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
if (dataCase_ == 1) {
data_ = b;
}
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The text value of the Meta Data entry.
*
*
* string text_value = 1;
*/
public Builder setTextValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
dataCase_ = 1;
data_ = value;
onChanged();
return this;
}
/**
*
* The text value of the Meta Data entry.
*
*
* string text_value = 1;
*/
public Builder clearTextValue() {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
onChanged();
}
return this;
}
/**
*
* The text value of the Meta Data entry.
*
*
* string text_value = 1;
*/
public Builder setTextValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
dataCase_ = 1;
data_ = value;
onChanged();
return this;
}
/**
*
* The numeric value of the Meta Data entry.
*
*
* sint64 number_value = 2;
*/
public long getNumberValue() {
if (dataCase_ == 2) {
return (java.lang.Long) data_;
}
return 0L;
}
/**
*
* The numeric value of the Meta Data entry.
*
*
* sint64 number_value = 2;
*/
public Builder setNumberValue(long value) {
dataCase_ = 2;
data_ = value;
onChanged();
return this;
}
/**
*
* The numeric value of the Meta Data entry.
*
*
* sint64 number_value = 2;
*/
public Builder clearNumberValue() {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
onChanged();
}
return this;
}
/**
*
* The boolean value of the Meta Data entry.
*
*
* bool boolean_value = 3;
*/
public boolean getBooleanValue() {
if (dataCase_ == 3) {
return (java.lang.Boolean) data_;
}
return false;
}
/**
*
* The boolean value of the Meta Data entry.
*
*
* bool boolean_value = 3;
*/
public Builder setBooleanValue(boolean value) {
dataCase_ = 3;
data_ = value;
onChanged();
return this;
}
/**
*
* The boolean value of the Meta Data entry.
*
*
* bool boolean_value = 3;
*/
public Builder clearBooleanValue() {
if (dataCase_ == 3) {
dataCase_ = 0;
data_ = null;
onChanged();
}
return this;
}
/**
*
* The floating point value of the Meta Data entry.
*
*
* double double_value = 4;
*/
public double getDoubleValue() {
if (dataCase_ == 4) {
return (java.lang.Double) data_;
}
return 0D;
}
/**
*
* The floating point value of the Meta Data entry.
*
*
* double double_value = 4;
*/
public Builder setDoubleValue(double value) {
dataCase_ = 4;
data_ = value;
onChanged();
return this;
}
/**
*
* The floating point value of the Meta Data entry.
*
*
* double double_value = 4;
*/
public Builder clearDoubleValue() {
if (dataCase_ == 4) {
dataCase_ = 0;
data_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.SerializedObject, io.axoniq.axonserver.grpc.SerializedObject.Builder, io.axoniq.axonserver.grpc.SerializedObjectOrBuilder> bytesValueBuilder_;
/**
*
* The binary value of the Meta Data entry.
*
*
* .io.axoniq.axonserver.grpc.SerializedObject bytes_value = 5;
*/
public boolean hasBytesValue() {
return dataCase_ == 5;
}
/**
*
* The binary value of the Meta Data entry.
*
*
* .io.axoniq.axonserver.grpc.SerializedObject bytes_value = 5;
*/
public io.axoniq.axonserver.grpc.SerializedObject getBytesValue() {
if (bytesValueBuilder_ == null) {
if (dataCase_ == 5) {
return (io.axoniq.axonserver.grpc.SerializedObject) data_;
}
return io.axoniq.axonserver.grpc.SerializedObject.getDefaultInstance();
} else {
if (dataCase_ == 5) {
return bytesValueBuilder_.getMessage();
}
return io.axoniq.axonserver.grpc.SerializedObject.getDefaultInstance();
}
}
/**
*
* The binary value of the Meta Data entry.
*
*
* .io.axoniq.axonserver.grpc.SerializedObject bytes_value = 5;
*/
public Builder setBytesValue(io.axoniq.axonserver.grpc.SerializedObject value) {
if (bytesValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
bytesValueBuilder_.setMessage(value);
}
dataCase_ = 5;
return this;
}
/**
*
* The binary value of the Meta Data entry.
*
*
* .io.axoniq.axonserver.grpc.SerializedObject bytes_value = 5;
*/
public Builder setBytesValue(
io.axoniq.axonserver.grpc.SerializedObject.Builder builderForValue) {
if (bytesValueBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
bytesValueBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 5;
return this;
}
/**
*
* The binary value of the Meta Data entry.
*
*
* .io.axoniq.axonserver.grpc.SerializedObject bytes_value = 5;
*/
public Builder mergeBytesValue(io.axoniq.axonserver.grpc.SerializedObject value) {
if (bytesValueBuilder_ == null) {
if (dataCase_ == 5 &&
data_ != io.axoniq.axonserver.grpc.SerializedObject.getDefaultInstance()) {
data_ = io.axoniq.axonserver.grpc.SerializedObject.newBuilder((io.axoniq.axonserver.grpc.SerializedObject) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 5) {
bytesValueBuilder_.mergeFrom(value);
}
bytesValueBuilder_.setMessage(value);
}
dataCase_ = 5;
return this;
}
/**
*
* The binary value of the Meta Data entry.
*
*
* .io.axoniq.axonserver.grpc.SerializedObject bytes_value = 5;
*/
public Builder clearBytesValue() {
if (bytesValueBuilder_ == null) {
if (dataCase_ == 5) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 5) {
dataCase_ = 0;
data_ = null;
}
bytesValueBuilder_.clear();
}
return this;
}
/**
*
* The binary value of the Meta Data entry.
*
*
* .io.axoniq.axonserver.grpc.SerializedObject bytes_value = 5;
*/
public io.axoniq.axonserver.grpc.SerializedObject.Builder getBytesValueBuilder() {
return getBytesValueFieldBuilder().getBuilder();
}
/**
*
* The binary value of the Meta Data entry.
*
*
* .io.axoniq.axonserver.grpc.SerializedObject bytes_value = 5;
*/
public io.axoniq.axonserver.grpc.SerializedObjectOrBuilder getBytesValueOrBuilder() {
if ((dataCase_ == 5) && (bytesValueBuilder_ != null)) {
return bytesValueBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 5) {
return (io.axoniq.axonserver.grpc.SerializedObject) data_;
}
return io.axoniq.axonserver.grpc.SerializedObject.getDefaultInstance();
}
}
/**
*
* The binary value of the Meta Data entry.
*
*
* .io.axoniq.axonserver.grpc.SerializedObject bytes_value = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.SerializedObject, io.axoniq.axonserver.grpc.SerializedObject.Builder, io.axoniq.axonserver.grpc.SerializedObjectOrBuilder>
getBytesValueFieldBuilder() {
if (bytesValueBuilder_ == null) {
if (!(dataCase_ == 5)) {
data_ = io.axoniq.axonserver.grpc.SerializedObject.getDefaultInstance();
}
bytesValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.axoniq.axonserver.grpc.SerializedObject, io.axoniq.axonserver.grpc.SerializedObject.Builder, io.axoniq.axonserver.grpc.SerializedObjectOrBuilder>(
(io.axoniq.axonserver.grpc.SerializedObject) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 5;
onChanged();;
return bytesValueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:io.axoniq.axonserver.grpc.MetaDataValue)
}
// @@protoc_insertion_point(class_scope:io.axoniq.axonserver.grpc.MetaDataValue)
private static final io.axoniq.axonserver.grpc.MetaDataValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.axoniq.axonserver.grpc.MetaDataValue();
}
public static io.axoniq.axonserver.grpc.MetaDataValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MetaDataValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MetaDataValue(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 io.axoniq.axonserver.grpc.MetaDataValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy