java.io.deephaven.proto.backplane.grpc.StreamResponse 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
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: deephaven/proto/object.proto
// Protobuf Java Version: 3.25.3
package io.deephaven.proto.backplane.grpc;
/**
*
*
* Server responses to the client. Currently can only be ServerData messages.
*
*
* Protobuf type {@code io.deephaven.proto.backplane.grpc.StreamResponse}
*/
public final class StreamResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:io.deephaven.proto.backplane.grpc.StreamResponse)
StreamResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use StreamResponse.newBuilder() to construct.
private StreamResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StreamResponse() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StreamResponse();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Object.internal_static_io_deephaven_proto_backplane_grpc_StreamResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.deephaven.proto.backplane.grpc.Object.internal_static_io_deephaven_proto_backplane_grpc_StreamResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.StreamResponse.class, io.deephaven.proto.backplane.grpc.StreamResponse.Builder.class);
}
private int messageCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object message_;
public enum MessageCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
DATA(1),
MESSAGE_NOT_SET(0);
private final int value;
private MessageCase(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 MessageCase valueOf(int value) {
return forNumber(value);
}
public static MessageCase forNumber(int value) {
switch (value) {
case 1: return DATA;
case 0: return MESSAGE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public MessageCase
getMessageCase() {
return MessageCase.forNumber(
messageCase_);
}
public static final int DATA_FIELD_NUMBER = 1;
/**
*
* Data to pass to the client about the object on the server.
*
*
* .io.deephaven.proto.backplane.grpc.ServerData data = 1;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return messageCase_ == 1;
}
/**
*
* Data to pass to the client about the object on the server.
*
*
* .io.deephaven.proto.backplane.grpc.ServerData data = 1;
* @return The data.
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ServerData getData() {
if (messageCase_ == 1) {
return (io.deephaven.proto.backplane.grpc.ServerData) message_;
}
return io.deephaven.proto.backplane.grpc.ServerData.getDefaultInstance();
}
/**
*
* Data to pass to the client about the object on the server.
*
*
* .io.deephaven.proto.backplane.grpc.ServerData data = 1;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ServerDataOrBuilder getDataOrBuilder() {
if (messageCase_ == 1) {
return (io.deephaven.proto.backplane.grpc.ServerData) message_;
}
return io.deephaven.proto.backplane.grpc.ServerData.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 (messageCase_ == 1) {
output.writeMessage(1, (io.deephaven.proto.backplane.grpc.ServerData) message_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (messageCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.deephaven.proto.backplane.grpc.ServerData) message_);
}
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.StreamResponse)) {
return super.equals(obj);
}
io.deephaven.proto.backplane.grpc.StreamResponse other = (io.deephaven.proto.backplane.grpc.StreamResponse) obj;
if (!getMessageCase().equals(other.getMessageCase())) return false;
switch (messageCase_) {
case 1:
if (!getData()
.equals(other.getData())) 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 (messageCase_) {
case 1:
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.deephaven.proto.backplane.grpc.StreamResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.StreamResponse 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.StreamResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.StreamResponse 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.StreamResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.deephaven.proto.backplane.grpc.StreamResponse 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.StreamResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.StreamResponse 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.StreamResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.deephaven.proto.backplane.grpc.StreamResponse 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.StreamResponse 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.StreamResponse 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.StreamResponse 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;
}
/**
*
*
* Server responses to the client. Currently can only be ServerData messages.
*
*
* Protobuf type {@code io.deephaven.proto.backplane.grpc.StreamResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:io.deephaven.proto.backplane.grpc.StreamResponse)
io.deephaven.proto.backplane.grpc.StreamResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.deephaven.proto.backplane.grpc.Object.internal_static_io_deephaven_proto_backplane_grpc_StreamResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.deephaven.proto.backplane.grpc.Object.internal_static_io_deephaven_proto_backplane_grpc_StreamResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.deephaven.proto.backplane.grpc.StreamResponse.class, io.deephaven.proto.backplane.grpc.StreamResponse.Builder.class);
}
// Construct using io.deephaven.proto.backplane.grpc.StreamResponse.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (dataBuilder_ != null) {
dataBuilder_.clear();
}
messageCase_ = 0;
message_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.deephaven.proto.backplane.grpc.Object.internal_static_io_deephaven_proto_backplane_grpc_StreamResponse_descriptor;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.StreamResponse getDefaultInstanceForType() {
return io.deephaven.proto.backplane.grpc.StreamResponse.getDefaultInstance();
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.StreamResponse build() {
io.deephaven.proto.backplane.grpc.StreamResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.deephaven.proto.backplane.grpc.StreamResponse buildPartial() {
io.deephaven.proto.backplane.grpc.StreamResponse result = new io.deephaven.proto.backplane.grpc.StreamResponse(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.deephaven.proto.backplane.grpc.StreamResponse result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.deephaven.proto.backplane.grpc.StreamResponse result) {
result.messageCase_ = messageCase_;
result.message_ = this.message_;
if (messageCase_ == 1 &&
dataBuilder_ != null) {
result.message_ = dataBuilder_.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.StreamResponse) {
return mergeFrom((io.deephaven.proto.backplane.grpc.StreamResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.deephaven.proto.backplane.grpc.StreamResponse other) {
if (other == io.deephaven.proto.backplane.grpc.StreamResponse.getDefaultInstance()) return this;
switch (other.getMessageCase()) {
case DATA: {
mergeData(other.getData());
break;
}
case MESSAGE_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(
getDataFieldBuilder().getBuilder(),
extensionRegistry);
messageCase_ = 1;
break;
} // case 10
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 messageCase_ = 0;
private java.lang.Object message_;
public MessageCase
getMessageCase() {
return MessageCase.forNumber(
messageCase_);
}
public Builder clearMessage() {
messageCase_ = 0;
message_ = null;
onChanged();
return this;
}
private int bitField0_;
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.ServerData, io.deephaven.proto.backplane.grpc.ServerData.Builder, io.deephaven.proto.backplane.grpc.ServerDataOrBuilder> dataBuilder_;
/**
*
* Data to pass to the client about the object on the server.
*
*
* .io.deephaven.proto.backplane.grpc.ServerData data = 1;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return messageCase_ == 1;
}
/**
*
* Data to pass to the client about the object on the server.
*
*
* .io.deephaven.proto.backplane.grpc.ServerData data = 1;
* @return The data.
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ServerData getData() {
if (dataBuilder_ == null) {
if (messageCase_ == 1) {
return (io.deephaven.proto.backplane.grpc.ServerData) message_;
}
return io.deephaven.proto.backplane.grpc.ServerData.getDefaultInstance();
} else {
if (messageCase_ == 1) {
return dataBuilder_.getMessage();
}
return io.deephaven.proto.backplane.grpc.ServerData.getDefaultInstance();
}
}
/**
*
* Data to pass to the client about the object on the server.
*
*
* .io.deephaven.proto.backplane.grpc.ServerData data = 1;
*/
public Builder setData(io.deephaven.proto.backplane.grpc.ServerData value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
messageCase_ = 1;
return this;
}
/**
*
* Data to pass to the client about the object on the server.
*
*
* .io.deephaven.proto.backplane.grpc.ServerData data = 1;
*/
public Builder setData(
io.deephaven.proto.backplane.grpc.ServerData.Builder builderForValue) {
if (dataBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
messageCase_ = 1;
return this;
}
/**
*
* Data to pass to the client about the object on the server.
*
*
* .io.deephaven.proto.backplane.grpc.ServerData data = 1;
*/
public Builder mergeData(io.deephaven.proto.backplane.grpc.ServerData value) {
if (dataBuilder_ == null) {
if (messageCase_ == 1 &&
message_ != io.deephaven.proto.backplane.grpc.ServerData.getDefaultInstance()) {
message_ = io.deephaven.proto.backplane.grpc.ServerData.newBuilder((io.deephaven.proto.backplane.grpc.ServerData) message_)
.mergeFrom(value).buildPartial();
} else {
message_ = value;
}
onChanged();
} else {
if (messageCase_ == 1) {
dataBuilder_.mergeFrom(value);
} else {
dataBuilder_.setMessage(value);
}
}
messageCase_ = 1;
return this;
}
/**
*
* Data to pass to the client about the object on the server.
*
*
* .io.deephaven.proto.backplane.grpc.ServerData data = 1;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
if (messageCase_ == 1) {
messageCase_ = 0;
message_ = null;
onChanged();
}
} else {
if (messageCase_ == 1) {
messageCase_ = 0;
message_ = null;
}
dataBuilder_.clear();
}
return this;
}
/**
*
* Data to pass to the client about the object on the server.
*
*
* .io.deephaven.proto.backplane.grpc.ServerData data = 1;
*/
public io.deephaven.proto.backplane.grpc.ServerData.Builder getDataBuilder() {
return getDataFieldBuilder().getBuilder();
}
/**
*
* Data to pass to the client about the object on the server.
*
*
* .io.deephaven.proto.backplane.grpc.ServerData data = 1;
*/
@java.lang.Override
public io.deephaven.proto.backplane.grpc.ServerDataOrBuilder getDataOrBuilder() {
if ((messageCase_ == 1) && (dataBuilder_ != null)) {
return dataBuilder_.getMessageOrBuilder();
} else {
if (messageCase_ == 1) {
return (io.deephaven.proto.backplane.grpc.ServerData) message_;
}
return io.deephaven.proto.backplane.grpc.ServerData.getDefaultInstance();
}
}
/**
*
* Data to pass to the client about the object on the server.
*
*
* .io.deephaven.proto.backplane.grpc.ServerData data = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.ServerData, io.deephaven.proto.backplane.grpc.ServerData.Builder, io.deephaven.proto.backplane.grpc.ServerDataOrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
if (!(messageCase_ == 1)) {
message_ = io.deephaven.proto.backplane.grpc.ServerData.getDefaultInstance();
}
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.deephaven.proto.backplane.grpc.ServerData, io.deephaven.proto.backplane.grpc.ServerData.Builder, io.deephaven.proto.backplane.grpc.ServerDataOrBuilder>(
(io.deephaven.proto.backplane.grpc.ServerData) message_,
getParentForChildren(),
isClean());
message_ = null;
}
messageCase_ = 1;
onChanged();
return dataBuilder_;
}
@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.StreamResponse)
}
// @@protoc_insertion_point(class_scope:io.deephaven.proto.backplane.grpc.StreamResponse)
private static final io.deephaven.proto.backplane.grpc.StreamResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.deephaven.proto.backplane.grpc.StreamResponse();
}
public static io.deephaven.proto.backplane.grpc.StreamResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StreamResponse 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.StreamResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}