java.io.deephaven.proto.backplane.grpc.Value Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of deephaven-proto-backplane-grpc Show documentation
Show all versions of deephaven-proto-backplane-grpc Show documentation
The Deephaven proto-backplane-grpc
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: deephaven/proto/table.proto
// Protobuf Java Version: 3.25.3
package io.deephaven.proto.backplane.grpc;
/**
*
* could also inline this to each place that uses it
*
*
* Protobuf type {@code io.deephaven.proto.backplane.grpc.Value}
*/
public final class Value extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.grpc.Value)
ValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use Value.newBuilder() to construct.
private Value(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Value() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Value();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_Value_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.Value.class, io.deephaven.proto.backplane.grpc.Value.Builder.class);
}
private int dataCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object data_;
public enum DataCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
REFERENCE(1),
LITERAL(2),
DATA_NOT_SET(0);
private final int value;
private DataCase(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 DataCase valueOf(int value) {
return forNumber(value);
}
public static DataCase forNumber(int value) {
switch (value) {
case 1: return REFERENCE;
case 2: return LITERAL;
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 REFERENCE_FIELD_NUMBER = 1;
/**
* .io.deephaven.proto.backplane.grpc.Reference reference = 1;
* @return Whether the reference field is set.
*/
@java.lang.Override
public boolean hasReference() {
return dataCase_ == 1;
}
/**
* .io.deephaven.proto.backplane.grpc.Reference reference = 1;
* @return The reference.
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.Reference getReference() {
if (dataCase_ == 1) {
return (io.deephaven.proto.backplane.grpc.Reference) data_;
}
return io.deephaven.proto.backplane.grpc.Reference.getDefaultInstance();
}
/**
* .io.deephaven.proto.backplane.grpc.Reference reference = 1;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ReferenceOrBuilder getReferenceOrBuilder() {
if (dataCase_ == 1) {
return (io.deephaven.proto.backplane.grpc.Reference) data_;
}
return io.deephaven.proto.backplane.grpc.Reference.getDefaultInstance();
}
public static final int LITERAL_FIELD_NUMBER = 2;
/**
* .io.deephaven.proto.backplane.grpc.Literal literal = 2;
* @return Whether the literal field is set.
*/
@java.lang.Override
public boolean hasLiteral() {
return dataCase_ == 2;
}
/**
* .io.deephaven.proto.backplane.grpc.Literal literal = 2;
* @return The literal.
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.Literal getLiteral() {
if (dataCase_ == 2) {
return (io.deephaven.proto.backplane.grpc.Literal) data_;
}
return io.deephaven.proto.backplane.grpc.Literal.getDefaultInstance();
}
/**
* .io.deephaven.proto.backplane.grpc.Literal literal = 2;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.LiteralOrBuilder getLiteralOrBuilder() {
if (dataCase_ == 2) {
return (io.deephaven.proto.backplane.grpc.Literal) data_;
}
return io.deephaven.proto.backplane.grpc.Literal.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) {
output.writeMessage(1, (io.deephaven.proto.backplane.grpc.Reference) data_);
}
if (dataCase_ == 2) {
output.writeMessage(2, (io.deephaven.proto.backplane.grpc.Literal) data_);
}
getUnknownFields().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.CodedOutputStream
.computeMessageSize(1, (io.deephaven.proto.backplane.grpc.Reference) data_);
}
if (dataCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.deephaven.proto.backplane.grpc.Literal) data_);
}
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.deephaven.proto.backplane.grpc.Value)) {
return super.equals(obj);
}
io.deephaven.proto.backplane.grpc.Value other = (io.deephaven.proto.backplane.grpc.Value) obj;
if (!getDataCase().equals(other.getDataCase())) return false;
switch (dataCase_) {
case 1:
if (!getReference()
.equals(other.getReference())) return false;
break;
case 2:
if (!getLiteral()
.equals(other.getLiteral())) 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 (dataCase_) {
case 1:
hash = (37 * hash) + REFERENCE_FIELD_NUMBER;
hash = (53 * hash) + getReference().hashCode();
break;
case 2:
hash = (37 * hash) + LITERAL_FIELD_NUMBER;
hash = (53 * hash) + getLiteral().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.deephaven.proto.backplane.grpc.Value parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.Value parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.deephaven.proto.backplane.grpc.Value parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.Value parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.deephaven.proto.backplane.grpc.Value parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.Value parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.deephaven.proto.backplane.grpc.Value parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.Value 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.deephaven.proto.backplane.grpc.Value parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.Value 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.deephaven.proto.backplane.grpc.Value parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.Value 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.deephaven.proto.backplane.grpc.Value 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;
}
/**
*
* could also inline this to each place that uses it
*
*
* Protobuf type {@code io.deephaven.proto.backplane.grpc.Value}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.grpc.Value)
io.deephaven.proto.backplane.grpc.ValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_Value_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.Value.class, io.deephaven.proto.backplane.grpc.Value.Builder.class);
}
// Construct using io.deephaven.proto.backplane.grpc.Value.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (referenceBuilder_ != null) {
referenceBuilder_.clear();
}
if (literalBuilder_ != null) {
literalBuilder_.clear();
}
dataCase_ = 0;
data_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.deephaven.proto.backplane.grpc.Table.internal_static_io_deephaven_proto_backplane_grpc_Value_descriptor;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.Value getDefaultInstanceForType() {
return io.deephaven.proto.backplane.grpc.Value.getDefaultInstance();
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.Value build() {
io.deephaven.proto.backplane.grpc.Value result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.Value buildPartial() {
io.deephaven.proto.backplane.grpc.Value result = new io.deephaven.proto.backplane.grpc.Value(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.deephaven.proto.backplane.grpc.Value result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.deephaven.proto.backplane.grpc.Value result) {
result.dataCase_ = dataCase_;
result.data_ = this.data_;
if (dataCase_ == 1 &&
referenceBuilder_ != null) {
result.data_ = referenceBuilder_.build();
}
if (dataCase_ == 2 &&
literalBuilder_ != null) {
result.data_ = literalBuilder_.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 io.deephaven.proto.backplane.grpc.Value) {
return mergeFrom((io.deephaven.proto.backplane.grpc.Value)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.deephaven.proto.backplane.grpc.Value other) {
if (other == io.deephaven.proto.backplane.grpc.Value.getDefaultInstance()) return this;
switch (other.getDataCase()) {
case REFERENCE: {
mergeReference(other.getReference());
break;
}
case LITERAL: {
mergeLiteral(other.getLiteral());
break;
}
case DATA_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(
getReferenceFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 1;
break;
} // case 10
case 18: {
input.readMessage(
getLiteralFieldBuilder().getBuilder(),
extensionRegistry);
dataCase_ = 2;
break;
} // case 18
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 dataCase_ = 0;
private java.lang.Object data_;
public DataCase
getDataCase() {
return DataCase.forNumber(
dataCase_);
}
public Builder clearData() {
dataCase_ = 0;
data_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Reference, io.deephaven.proto.backplane.grpc.Reference.Builder, io.deephaven.proto.backplane.grpc.ReferenceOrBuilder> referenceBuilder_;
/**
* .io.deephaven.proto.backplane.grpc.Reference reference = 1;
* @return Whether the reference field is set.
*/
@java.lang.Override
public boolean hasReference() {
return dataCase_ == 1;
}
/**
* .io.deephaven.proto.backplane.grpc.Reference reference = 1;
* @return The reference.
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.Reference getReference() {
if (referenceBuilder_ == null) {
if (dataCase_ == 1) {
return (io.deephaven.proto.backplane.grpc.Reference) data_;
}
return io.deephaven.proto.backplane.grpc.Reference.getDefaultInstance();
} else {
if (dataCase_ == 1) {
return referenceBuilder_.getMessage();
}
return io.deephaven.proto.backplane.grpc.Reference.getDefaultInstance();
}
}
/**
* .io.deephaven.proto.backplane.grpc.Reference reference = 1;
*/
public Builder setReference(io.deephaven.proto.backplane.grpc.Reference value) {
if (referenceBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
referenceBuilder_.setMessage(value);
}
dataCase_ = 1;
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Reference reference = 1;
*/
public Builder setReference(
io.deephaven.proto.backplane.grpc.Reference.Builder builderForValue) {
if (referenceBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
referenceBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 1;
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Reference reference = 1;
*/
public Builder mergeReference(io.deephaven.proto.backplane.grpc.Reference value) {
if (referenceBuilder_ == null) {
if (dataCase_ == 1 &&
data_ != io.deephaven.proto.backplane.grpc.Reference.getDefaultInstance()) {
data_ = io.deephaven.proto.backplane.grpc.Reference.newBuilder((io.deephaven.proto.backplane.grpc.Reference) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 1) {
referenceBuilder_.mergeFrom(value);
} else {
referenceBuilder_.setMessage(value);
}
}
dataCase_ = 1;
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Reference reference = 1;
*/
public Builder clearReference() {
if (referenceBuilder_ == null) {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 1) {
dataCase_ = 0;
data_ = null;
}
referenceBuilder_.clear();
}
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Reference reference = 1;
*/
public io.deephaven.proto.backplane.grpc.Reference.Builder getReferenceBuilder() {
return getReferenceFieldBuilder().getBuilder();
}
/**
* .io.deephaven.proto.backplane.grpc.Reference reference = 1;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ReferenceOrBuilder getReferenceOrBuilder() {
if ((dataCase_ == 1) && (referenceBuilder_ != null)) {
return referenceBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 1) {
return (io.deephaven.proto.backplane.grpc.Reference) data_;
}
return io.deephaven.proto.backplane.grpc.Reference.getDefaultInstance();
}
}
/**
* .io.deephaven.proto.backplane.grpc.Reference reference = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Reference, io.deephaven.proto.backplane.grpc.Reference.Builder, io.deephaven.proto.backplane.grpc.ReferenceOrBuilder>
getReferenceFieldBuilder() {
if (referenceBuilder_ == null) {
if (!(dataCase_ == 1)) {
data_ = io.deephaven.proto.backplane.grpc.Reference.getDefaultInstance();
}
referenceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Reference, io.deephaven.proto.backplane.grpc.Reference.Builder, io.deephaven.proto.backplane.grpc.ReferenceOrBuilder>(
(io.deephaven.proto.backplane.grpc.Reference) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 1;
onChanged();
return referenceBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Literal, io.deephaven.proto.backplane.grpc.Literal.Builder, io.deephaven.proto.backplane.grpc.LiteralOrBuilder> literalBuilder_;
/**
* .io.deephaven.proto.backplane.grpc.Literal literal = 2;
* @return Whether the literal field is set.
*/
@java.lang.Override
public boolean hasLiteral() {
return dataCase_ == 2;
}
/**
* .io.deephaven.proto.backplane.grpc.Literal literal = 2;
* @return The literal.
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.Literal getLiteral() {
if (literalBuilder_ == null) {
if (dataCase_ == 2) {
return (io.deephaven.proto.backplane.grpc.Literal) data_;
}
return io.deephaven.proto.backplane.grpc.Literal.getDefaultInstance();
} else {
if (dataCase_ == 2) {
return literalBuilder_.getMessage();
}
return io.deephaven.proto.backplane.grpc.Literal.getDefaultInstance();
}
}
/**
* .io.deephaven.proto.backplane.grpc.Literal literal = 2;
*/
public Builder setLiteral(io.deephaven.proto.backplane.grpc.Literal value) {
if (literalBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
literalBuilder_.setMessage(value);
}
dataCase_ = 2;
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Literal literal = 2;
*/
public Builder setLiteral(
io.deephaven.proto.backplane.grpc.Literal.Builder builderForValue) {
if (literalBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
literalBuilder_.setMessage(builderForValue.build());
}
dataCase_ = 2;
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Literal literal = 2;
*/
public Builder mergeLiteral(io.deephaven.proto.backplane.grpc.Literal value) {
if (literalBuilder_ == null) {
if (dataCase_ == 2 &&
data_ != io.deephaven.proto.backplane.grpc.Literal.getDefaultInstance()) {
data_ = io.deephaven.proto.backplane.grpc.Literal.newBuilder((io.deephaven.proto.backplane.grpc.Literal) data_)
.mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
if (dataCase_ == 2) {
literalBuilder_.mergeFrom(value);
} else {
literalBuilder_.setMessage(value);
}
}
dataCase_ = 2;
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Literal literal = 2;
*/
public Builder clearLiteral() {
if (literalBuilder_ == null) {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
onChanged();
}
} else {
if (dataCase_ == 2) {
dataCase_ = 0;
data_ = null;
}
literalBuilder_.clear();
}
return this;
}
/**
* .io.deephaven.proto.backplane.grpc.Literal literal = 2;
*/
public io.deephaven.proto.backplane.grpc.Literal.Builder getLiteralBuilder() {
return getLiteralFieldBuilder().getBuilder();
}
/**
* .io.deephaven.proto.backplane.grpc.Literal literal = 2;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.LiteralOrBuilder getLiteralOrBuilder() {
if ((dataCase_ == 2) && (literalBuilder_ != null)) {
return literalBuilder_.getMessageOrBuilder();
} else {
if (dataCase_ == 2) {
return (io.deephaven.proto.backplane.grpc.Literal) data_;
}
return io.deephaven.proto.backplane.grpc.Literal.getDefaultInstance();
}
}
/**
* .io.deephaven.proto.backplane.grpc.Literal literal = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Literal, io.deephaven.proto.backplane.grpc.Literal.Builder, io.deephaven.proto.backplane.grpc.LiteralOrBuilder>
getLiteralFieldBuilder() {
if (literalBuilder_ == null) {
if (!(dataCase_ == 2)) {
data_ = io.deephaven.proto.backplane.grpc.Literal.getDefaultInstance();
}
literalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.Literal, io.deephaven.proto.backplane.grpc.Literal.Builder, io.deephaven.proto.backplane.grpc.LiteralOrBuilder>(
(io.deephaven.proto.backplane.grpc.Literal) data_,
getParentForChildren(),
isClean());
data_ = null;
}
dataCase_ = 2;
onChanged();
return literalBuilder_;
}
@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:io.deephaven.proto.backplane.grpc.Value)
}
// @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.grpc.Value)
private static final io.deephaven.proto.backplane.grpc.Value DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.deephaven.proto.backplane.grpc.Value();
}
public static io.deephaven.proto.backplane.grpc.Value getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Value 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.deephaven.proto.backplane.grpc.Value getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}