com.alachisoft.ncache.common.protobuf.RecordSetProtocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-common Show documentation
Show all versions of nc-common Show documentation
Internal package of Alachisoft.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: RecordSet.proto
package com.alachisoft.ncache.common.protobuf;
public final class RecordSetProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_RecordSet_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_RecordSet_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\017RecordSet.proto\022%com.alachisoft.ncache" +
".common.protobuf\032\022RecordColumn.proto\032\017Re" +
"cordRow.proto\"\221\001\n\tRecordSet\022D\n\007columns\030\001" +
" \003(\01323.com.alachisoft.ncache.common.prot" +
"obuf.RecordColumn\022>\n\004rows\030\002 \003(\01320.com.al" +
"achisoft.ncache.common.protobuf.RecordRo" +
"wB\023B\021RecordSetProtocol"
};
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_RecordSet_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_RecordSet_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_RecordSet_descriptor,
new java.lang.String[]{"Columns", "Rows",},
com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.class,
com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.getDescriptor(),
com.alachisoft.ncache.common.protobuf.RecordRowProtocol.getDescriptor(),
}, assigner);
}
private RecordSetProtocol() {
}
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 RecordSet extends
com.google.protobuf.GeneratedMessage {
// repeated .com.alachisoft.ncache.common.protobuf.RecordColumn columns = 1;
public static final int COLUMNS_FIELD_NUMBER = 1;
// repeated .com.alachisoft.ncache.common.protobuf.RecordRow rows = 2;
public static final int ROWS_FIELD_NUMBER = 2;
private static final RecordSet defaultInstance;
static {
defaultInstance = new RecordSet(true);
com.alachisoft.ncache.common.protobuf.RecordSetProtocol.internalForceInit();
defaultInstance.initFields();
}
private java.util.List columns_ =
java.util.Collections.emptyList();
private java.util.List rows_ =
java.util.Collections.emptyList();
private int memoizedSerializedSize = -1;
// Use RecordSet.newBuilder() to construct.
private RecordSet() {
initFields();
}
private RecordSet(boolean noInit) {
}
public static RecordSet getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.RecordSetProtocol.internal_static_com_alachisoft_ncache_common_protobuf_RecordSet_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet 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.RecordSetProtocol.RecordSet parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet 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.RecordSetProtocol.RecordSet parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet 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.RecordSetProtocol.RecordSet 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.RecordSetProtocol.RecordSet 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.RecordSetProtocol.RecordSet parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet 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.RecordSetProtocol.RecordSet prototype) {
return newBuilder().mergeFrom(prototype);
}
public RecordSet getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.RecordSetProtocol.internal_static_com_alachisoft_ncache_common_protobuf_RecordSet_fieldAccessorTable;
}
public java.util.List getColumnsList() {
return columns_;
}
public int getColumnsCount() {
return columns_.size();
}
public com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn getColumns(int index) {
return columns_.get(index);
}
public java.util.List getRowsList() {
return rows_;
}
public int getRowsCount() {
return rows_.size();
}
public com.alachisoft.ncache.common.protobuf.RecordRowProtocol.RecordRow getRows(int index) {
return rows_.get(index);
}
private void initFields() {
}
public final boolean isInitialized() {
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn element : getColumnsList()) {
output.writeMessage(1, element);
}
for (com.alachisoft.ncache.common.protobuf.RecordRowProtocol.RecordRow element : getRowsList()) {
output.writeMessage(2, element);
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn element : getColumnsList()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, element);
}
for (com.alachisoft.ncache.common.protobuf.RecordRowProtocol.RecordRow element : getRowsList()) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, element);
}
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.RecordSetProtocol.RecordSet result;
// Construct using com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
if (result.columns_ != java.util.Collections.EMPTY_LIST) {
result.columns_ =
java.util.Collections.unmodifiableList(result.columns_);
}
if (result.rows_ != java.util.Collections.EMPTY_LIST) {
result.rows_ =
java.util.Collections.unmodifiableList(result.rows_);
}
com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet other) {
if (other == com.alachisoft.ncache.common.protobuf.RecordSetProtocol.RecordSet.getDefaultInstance())
return this;
if (!other.columns_.isEmpty()) {
if (result.columns_.isEmpty()) {
result.columns_ = new java.util.ArrayList();
}
result.columns_.addAll(other.columns_);
}
if (!other.rows_.isEmpty()) {
if (result.rows_.isEmpty()) {
result.rows_ = new java.util.ArrayList();
}
result.rows_.addAll(other.rows_);
}
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: {
com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn.Builder subBuilder = com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addColumns(subBuilder.buildPartial());
break;
}
case 18: {
com.alachisoft.ncache.common.protobuf.RecordRowProtocol.RecordRow.Builder subBuilder = com.alachisoft.ncache.common.protobuf.RecordRowProtocol.RecordRow.newBuilder();
input.readMessage(subBuilder, extensionRegistry);
addRows(subBuilder.buildPartial());
break;
}
}
}
}
// repeated .com.alachisoft.ncache.common.protobuf.RecordColumn columns = 1;
public java.util.List getColumnsList() {
return java.util.Collections.unmodifiableList(result.columns_);
}
public int getColumnsCount() {
return result.getColumnsCount();
}
public com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn getColumns(int index) {
return result.getColumns(index);
}
public Builder setColumns(int index, com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn value) {
if (value == null) {
throw new NullPointerException();
}
result.columns_.set(index, value);
return this;
}
public Builder setColumns(int index, com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn.Builder builderForValue) {
result.columns_.set(index, builderForValue.build());
return this;
}
public Builder addColumns(com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn value) {
if (value == null) {
throw new NullPointerException();
}
if (result.columns_.isEmpty()) {
result.columns_ = new java.util.ArrayList();
}
result.columns_.add(value);
return this;
}
public Builder addColumns(com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn.Builder builderForValue) {
if (result.columns_.isEmpty()) {
result.columns_ = new java.util.ArrayList();
}
result.columns_.add(builderForValue.build());
return this;
}
public Builder addAllColumns(
java.lang.Iterable extends com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn> values) {
if (result.columns_.isEmpty()) {
result.columns_ = new java.util.ArrayList();
}
super.addAll(values, result.columns_);
return this;
}
public Builder clearColumns() {
result.columns_ = java.util.Collections.emptyList();
return this;
}
// repeated .com.alachisoft.ncache.common.protobuf.RecordRow rows = 2;
public java.util.List getRowsList() {
return java.util.Collections.unmodifiableList(result.rows_);
}
public int getRowsCount() {
return result.getRowsCount();
}
public com.alachisoft.ncache.common.protobuf.RecordRowProtocol.RecordRow getRows(int index) {
return result.getRows(index);
}
public Builder setRows(int index, com.alachisoft.ncache.common.protobuf.RecordRowProtocol.RecordRow value) {
if (value == null) {
throw new NullPointerException();
}
result.rows_.set(index, value);
return this;
}
public Builder setRows(int index, com.alachisoft.ncache.common.protobuf.RecordRowProtocol.RecordRow.Builder builderForValue) {
result.rows_.set(index, builderForValue.build());
return this;
}
public Builder addRows(com.alachisoft.ncache.common.protobuf.RecordRowProtocol.RecordRow value) {
if (value == null) {
throw new NullPointerException();
}
if (result.rows_.isEmpty()) {
result.rows_ = new java.util.ArrayList();
}
result.rows_.add(value);
return this;
}
public Builder addRows(com.alachisoft.ncache.common.protobuf.RecordRowProtocol.RecordRow.Builder builderForValue) {
if (result.rows_.isEmpty()) {
result.rows_ = new java.util.ArrayList();
}
result.rows_.add(builderForValue.build());
return this;
}
public Builder addAllRows(
java.lang.Iterable extends com.alachisoft.ncache.common.protobuf.RecordRowProtocol.RecordRow> values) {
if (result.rows_.isEmpty()) {
result.rows_ = new java.util.ArrayList();
}
super.addAll(values, result.rows_);
return this;
}
public Builder clearRows() {
result.rows_ = java.util.Collections.emptyList();
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.RecordSet)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.RecordSet)
}
// @@protoc_insertion_point(outer_class_scope)
}