com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ReaderResultSet.proto
package com.alachisoft.ncache.common.protobuf;
public final class ReaderResultSetProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_ReaderResultSet_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_ReaderResultSet_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\025ReaderResultSet.proto\022%com.alachisoft." +
"ncache.common.protobuf\032\017RecordSet.proto\032" +
"\025OrderByArgument.proto\"\365\001\n\017ReaderResultS" +
"et\022\020\n\010readerId\030\001 \001(\t\022C\n\trecordSet\030\002 \001(\0132" +
"0.com.alachisoft.ncache.common.protobuf." +
"RecordSet\022\023\n\013nodeAddress\030\003 \001(\t\022P\n\020orderB" +
"yArguments\030\004 \003(\01326.com.alachisoft.ncache" +
".common.protobuf.OrderByArgument\022\021\n\tisGr" +
"ouped\030\005 \001(\010\022\021\n\tnextIndex\030\006 \001(\005B\031B\027Reader" +
"ResultSetProtocol"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_com_alachisoft_ncache_common_protobuf_ReaderResultSet_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_ReaderResultSet_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_ReaderResultSet_descriptor,
new java.lang.String[]{"ReaderId", "RecordSet", "NodeAddress", "OrderByArguments", "IsGrouped", "NextIndex",},
com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet.class,
com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
com.alachisoft.ncache.common.protobuf.RecordSetProtocol.getDescriptor(),
com.alachisoft.ncache.common.protobuf.OrderByArgumentProtocol.getDescriptor(),
}, assigner);
}
private ReaderResultSetProtocol() {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
public static void internalForceInit() {
}
public static final class ReaderResultSet extends
com.google.protobuf.GeneratedMessage {
// optional string readerId = 1;
public static final int READERID_FIELD_NUMBER = 1;
// optional .com.alachisoft.ncache.common.protobuf.RecordSet recordSet = 2;
public static final int RECORDSET_FIELD_NUMBER = 2;
// optional string nodeAddress = 3;
public static final int NODEADDRESS_FIELD_NUMBER = 3;
// repeated .com.alachisoft.ncache.common.protobuf.OrderByArgument orderByArguments = 4;
public static final int ORDERBYARGUMENTS_FIELD_NUMBER = 4;
// optional bool isGrouped = 5;
public static final int ISGROUPED_FIELD_NUMBER = 5;
// optional int32 nextIndex = 6;
public static final int NEXTINDEX_FIELD_NUMBER = 6;
private static final ReaderResultSet defaultInstance;
static {
defaultInstance = new ReaderResultSet(true);
com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.internalForceInit();
defaultInstance.initFields();
}
private boolean hasReaderId;
private java.lang.String readerId_ = "";
private boolean hasRecordSet;
private com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet recordSet_;
private boolean hasNodeAddress;
private java.lang.String nodeAddress_ = "";
private java.util.List orderByArguments_ =
java.util.Collections.emptyList();
private boolean hasIsGrouped;
private boolean isGrouped_ = false;
private boolean hasNextIndex;
private int nextIndex_ = 0;
private int memoizedSerializedSize = -1;
// Use ReaderResultSet.newBuilder() to construct.
private ReaderResultSet() {
initFields();
}
private ReaderResultSet(boolean noInit) {
}
public static ReaderResultSet getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.internal_static_com_alachisoft_ncache_common_protobuf_ReaderResultSet_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry)
.buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input)) {
return builder.buildParsed();
} else {
return null;
}
}
public static com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDelimitedFrom(input, extensionRegistry)) {
return builder.buildParsed();
} else {
return null;
}
}
public static com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry)
.buildParsed();
}
public static Builder newBuilder() {
return Builder.create();
}
public static Builder newBuilder(com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet prototype) {
return newBuilder().mergeFrom(prototype);
}
public ReaderResultSet getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.internal_static_com_alachisoft_ncache_common_protobuf_ReaderResultSet_fieldAccessorTable;
}
public boolean hasReaderId() {
return hasReaderId;
}
public java.lang.String getReaderId() {
return readerId_;
}
public boolean hasRecordSet() {
return hasRecordSet;
}
public com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet getRecordSet() {
return recordSet_;
}
public boolean hasNodeAddress() {
return hasNodeAddress;
}
public java.lang.String getNodeAddress() {
return nodeAddress_;
}
public java.util.List getOrderByArgumentsList() {
return orderByArguments_;
}
public int getOrderByArgumentsCount() {
return orderByArguments_.size();
}
public com.alachisoft.ncache.common.protobuf.OrderByArgumentProtocol.OrderByArgument getOrderByArguments(int index) {
return orderByArguments_.get(index);
}
public boolean hasIsGrouped() {
return hasIsGrouped;
}
public boolean getIsGrouped() {
return isGrouped_;
}
public boolean hasNextIndex() {
return hasNextIndex;
}
public int getNextIndex() {
return nextIndex_;
}
private void initFields() {
recordSet_ = com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.getDefaultInstance();
}
public final boolean isInitialized() {
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (hasReaderId()) {
output.writeString(1, getReaderId());
}
if (hasRecordSet()) {
output.writeMessage(2, getRecordSet());
}
if (hasNodeAddress()) {
output.writeString(3, getNodeAddress());
}
for (com.alachisoft.ncache.common.protobuf.OrderByArgumentProtocol.OrderByArgument element : getOrderByArgumentsList()) {
output.writeMessage(4, element);
}
if (hasIsGrouped()) {
output.writeBool(5, getIsGrouped());
}
if (hasNextIndex()) {
output.writeInt32(6, getNextIndex());
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasReaderId()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getReaderId());
}
if (hasRecordSet()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRecordSet());
}
if (hasNodeAddress()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(3, getNodeAddress());
}
for (com.alachisoft.ncache.common.protobuf.OrderByArgumentProtocol.OrderByArgument element : getOrderByArgumentsList()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, element);
}
if (hasIsGrouped()) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, getIsGrouped());
}
if (hasNextIndex()) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, getNextIndex());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public Builder newBuilderForType() {
return newBuilder();
}
public Builder toBuilder() {
return newBuilder(this);
}
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder {
private com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet result;
// Construct using com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
if (result.orderByArguments_ != java.util.Collections.EMPTY_LIST) {
result.orderByArguments_ =
java.util.Collections.unmodifiableList(result.orderByArguments_);
}
com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet other) {
if (other == com.alachisoft.ncache.common.protobuf.ReaderResultSetProtocol.ReaderResultSet.getDefaultInstance())
return this;
if (other.hasReaderId()) {
setReaderId(other.getReaderId());
}
if (other.hasRecordSet()) {
mergeRecordSet(other.getRecordSet());
}
if (other.hasNodeAddress()) {
setNodeAddress(other.getNodeAddress());
}
if (!other.orderByArguments_.isEmpty()) {
if (result.orderByArguments_.isEmpty()) {
result.orderByArguments_ = new java.util.ArrayList();
}
result.orderByArguments_.addAll(other.orderByArguments_);
}
if (other.hasIsGrouped()) {
setIsGrouped(other.getIsGrouped());
}
if (other.hasNextIndex()) {
setNextIndex(other.getNextIndex());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder(
this.getUnknownFields());
while (true) {
int tag = input.readTag();
switch (tag) {
case 0:
this.setUnknownFields(unknownFields.build());
return this;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
this.setUnknownFields(unknownFields.build());
return this;
}
break;
}
case 10: {
setReaderId(input.readString());
break;
}
case 18: {
com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.Builder subBuilder = com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.newBuilder();
if (hasRecordSet()) {
subBuilder.mergeFrom(getRecordSet());
}
input.readMessage(subBuilder, extensionRegistry);
setRecordSet(subBuilder.buildPartial());
break;
}
case 26: {
setNodeAddress(input.readString());
break;
}
case 34: {
com.alachisoft.ncache.common.protobuf.OrderByArgumentProtocol.OrderByArgument.Builder subBuilder = com.alachisoft.ncache.common.protobuf.OrderByArgumentProtocol.OrderByArgument.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addOrderByArguments(subBuilder.buildPartial());
break;
}
case 40: {
setIsGrouped(input.readBool());
break;
}
case 48: {
setNextIndex(input.readInt32());
break;
}
}
}
}
// optional string readerId = 1;
public boolean hasReaderId() {
return result.hasReaderId();
}
public java.lang.String getReaderId() {
return result.getReaderId();
}
public Builder setReaderId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasReaderId = true;
result.readerId_ = value;
return this;
}
public Builder clearReaderId() {
result.hasReaderId = false;
result.readerId_ = getDefaultInstance().getReaderId();
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.RecordSet recordSet = 2;
public boolean hasRecordSet() {
return result.hasRecordSet();
}
public com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet getRecordSet() {
return result.getRecordSet();
}
public Builder setRecordSet(com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet value) {
if (value == null) {
throw new NullPointerException();
}
result.hasRecordSet = true;
result.recordSet_ = value;
return this;
}
public Builder setRecordSet(com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.Builder builderForValue) {
result.hasRecordSet = true;
result.recordSet_ = builderForValue.build();
return this;
}
public Builder mergeRecordSet(com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet value) {
if (result.hasRecordSet() &&
result.recordSet_ != com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.getDefaultInstance()) {
result.recordSet_ =
com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.newBuilder(result.recordSet_).mergeFrom(value).buildPartial();
} else {
result.recordSet_ = value;
}
result.hasRecordSet = true;
return this;
}
public Builder clearRecordSet() {
result.hasRecordSet = false;
result.recordSet_ = com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.getDefaultInstance();
return this;
}
// optional string nodeAddress = 3;
public boolean hasNodeAddress() {
return result.hasNodeAddress();
}
public java.lang.String getNodeAddress() {
return result.getNodeAddress();
}
public Builder setNodeAddress(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasNodeAddress = true;
result.nodeAddress_ = value;
return this;
}
public Builder clearNodeAddress() {
result.hasNodeAddress = false;
result.nodeAddress_ = getDefaultInstance().getNodeAddress();
return this;
}
// repeated .com.alachisoft.ncache.common.protobuf.OrderByArgument orderByArguments = 4;
public java.util.List getOrderByArgumentsList() {
return java.util.Collections.unmodifiableList(result.orderByArguments_);
}
public int getOrderByArgumentsCount() {
return result.getOrderByArgumentsCount();
}
public com.alachisoft.ncache.common.protobuf.OrderByArgumentProtocol.OrderByArgument getOrderByArguments(int index) {
return result.getOrderByArguments(index);
}
public Builder setOrderByArguments(int index, com.alachisoft.ncache.common.protobuf.OrderByArgumentProtocol.OrderByArgument value) {
if (value == null) {
throw new NullPointerException();
}
result.orderByArguments_.set(index, value);
return this;
}
public Builder setOrderByArguments(int index, com.alachisoft.ncache.common.protobuf.OrderByArgumentProtocol.OrderByArgument.Builder builderForValue) {
result.orderByArguments_.set(index, builderForValue.build());
return this;
}
public Builder addOrderByArguments(com.alachisoft.ncache.common.protobuf.OrderByArgumentProtocol.OrderByArgument value) {
if (value == null) {
throw new NullPointerException();
}
if (result.orderByArguments_.isEmpty()) {
result.orderByArguments_ = new java.util.ArrayList();
}
result.orderByArguments_.add(value);
return this;
}
public Builder addOrderByArguments(com.alachisoft.ncache.common.protobuf.OrderByArgumentProtocol.OrderByArgument.Builder builderForValue) {
if (result.orderByArguments_.isEmpty()) {
result.orderByArguments_ = new java.util.ArrayList();
}
result.orderByArguments_.add(builderForValue.build());
return this;
}
public Builder addAllOrderByArguments(
java.lang.Iterable extends com.alachisoft.ncache.common.protobuf.OrderByArgumentProtocol.OrderByArgument> values) {
if (result.orderByArguments_.isEmpty()) {
result.orderByArguments_ = new java.util.ArrayList();
}
super.addAll(values, result.orderByArguments_);
return this;
}
public Builder clearOrderByArguments() {
result.orderByArguments_ = java.util.Collections.emptyList();
return this;
}
// optional bool isGrouped = 5;
public boolean hasIsGrouped() {
return result.hasIsGrouped();
}
public boolean getIsGrouped() {
return result.getIsGrouped();
}
public Builder setIsGrouped(boolean value) {
result.hasIsGrouped = true;
result.isGrouped_ = value;
return this;
}
public Builder clearIsGrouped() {
result.hasIsGrouped = false;
result.isGrouped_ = false;
return this;
}
// optional int32 nextIndex = 6;
public boolean hasNextIndex() {
return result.hasNextIndex();
}
public int getNextIndex() {
return result.getNextIndex();
}
public Builder setNextIndex(int value) {
result.hasNextIndex = true;
result.nextIndex_ = value;
return this;
}
public Builder clearNextIndex() {
result.hasNextIndex = false;
result.nextIndex_ = 0;
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.ReaderResultSet)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.ReaderResultSet)
}
// @@protoc_insertion_point(outer_class_scope)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy