com.alachisoft.ncache.common.protobuf.RecordColumnProtocol 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: RecordColumn.proto
package com.alachisoft.ncache.common.protobuf;
public final class RecordColumnProtocol {
private static com.google.protobuf.Descriptors.Descriptor
internal_static_com_alachisoft_ncache_common_protobuf_RecordColumn_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_com_alachisoft_ncache_common_protobuf_RecordColumn_fieldAccessorTable;
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\022RecordColumn.proto\022%com.alachisoft.nca" +
"che.common.protobuf\032\020ColumnType.proto\032\021C" +
"olumnValue.proto\032\033AggregateFunctionType." +
"proto\032\024ColumnDataType.proto\"\365\002\n\014RecordCo" +
"lumn\022\014\n\004name\030\001 \001(\t\022\020\n\010isHidden\030\002 \001(\010\022W\n\n" +
"columnType\030\003 \001(\01621.com.alachisoft.ncache" +
".common.protobuf.ColumnType:\020ATTRIBUTE_C" +
"OLUMN\022O\n\010dataType\030\004 \001(\01625.com.alachisoft" +
".ncache.common.protobuf.ColumnDataType:\006" +
"OBJECT\022j\n\025aggregateFunctionType\030\005 \001(\0162<.",
"com.alachisoft.ncache.common.protobuf.Ag" +
"gregateFunctionType:\rNOTAPPLICABLE\022\020\n\010is" +
"Filled\030\006 \001(\010\022\035\n\025isUserSpecifiedColumn\030\007 " +
"\001(\010B\026B\024RecordColumnProtocol"
};
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_RecordColumn_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_com_alachisoft_ncache_common_protobuf_RecordColumn_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_com_alachisoft_ncache_common_protobuf_RecordColumn_descriptor,
new java.lang.String[]{"Name", "IsHidden", "ColumnType", "DataType", "AggregateFunctionType", "IsFilled", "IsUserSpecifiedColumn",},
com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn.class,
com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn.Builder.class);
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[]{
com.alachisoft.ncache.common.protobuf.ColumnTypeProtocol.getDescriptor(),
com.alachisoft.ncache.common.protobuf.ColumnValueProtocol.getDescriptor(),
com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.getDescriptor(),
com.alachisoft.ncache.common.protobuf.ColumnDataTypeProtocol.getDescriptor(),
}, assigner);
}
private RecordColumnProtocol() {
}
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 RecordColumn extends
com.google.protobuf.GeneratedMessage {
// optional string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
// optional bool isHidden = 2;
public static final int ISHIDDEN_FIELD_NUMBER = 2;
// optional .com.alachisoft.ncache.common.protobuf.ColumnType columnType = 3 [default = ATTRIBUTE_COLUMN];
public static final int COLUMNTYPE_FIELD_NUMBER = 3;
// optional .com.alachisoft.ncache.common.protobuf.ColumnDataType dataType = 4 [default = OBJECT];
public static final int DATATYPE_FIELD_NUMBER = 4;
// optional .com.alachisoft.ncache.common.protobuf.AggregateFunctionType aggregateFunctionType = 5 [default = NOTAPPLICABLE];
public static final int AGGREGATEFUNCTIONTYPE_FIELD_NUMBER = 5;
// optional bool isFilled = 6;
public static final int ISFILLED_FIELD_NUMBER = 6;
// optional bool isUserSpecifiedColumn = 7;
public static final int ISUSERSPECIFIEDCOLUMN_FIELD_NUMBER = 7;
private static final RecordColumn defaultInstance;
static {
defaultInstance = new RecordColumn(true);
com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.internalForceInit();
defaultInstance.initFields();
}
private boolean hasName;
private java.lang.String name_ = "";
private boolean hasIsHidden;
private boolean isHidden_ = false;
private boolean hasColumnType;
private com.alachisoft.ncache.common.protobuf.ColumnTypeProtocol.ColumnType columnType_;
private boolean hasDataType;
private com.alachisoft.ncache.common.protobuf.ColumnDataTypeProtocol.ColumnDataType dataType_;
private boolean hasAggregateFunctionType;
private com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType aggregateFunctionType_;
private boolean hasIsFilled;
private boolean isFilled_ = false;
private boolean hasIsUserSpecifiedColumn;
private boolean isUserSpecifiedColumn_ = false;
private int memoizedSerializedSize = -1;
// Use RecordColumn.newBuilder() to construct.
private RecordColumn() {
initFields();
}
private RecordColumn(boolean noInit) {
}
public static RecordColumn getDefaultInstance() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.internal_static_com_alachisoft_ncache_common_protobuf_RecordColumn_descriptor;
}
public static com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn 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.RecordColumnProtocol.RecordColumn parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn 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.RecordColumnProtocol.RecordColumn parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn 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.RecordColumnProtocol.RecordColumn 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.RecordColumnProtocol.RecordColumn 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.RecordColumnProtocol.RecordColumn parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn 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.RecordColumnProtocol.RecordColumn prototype) {
return newBuilder().mergeFrom(prototype);
}
public RecordColumn getDefaultInstanceForType() {
return defaultInstance;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.internal_static_com_alachisoft_ncache_common_protobuf_RecordColumn_fieldAccessorTable;
}
public boolean hasName() {
return hasName;
}
public java.lang.String getName() {
return name_;
}
public boolean hasIsHidden() {
return hasIsHidden;
}
public boolean getIsHidden() {
return isHidden_;
}
public boolean hasColumnType() {
return hasColumnType;
}
public com.alachisoft.ncache.common.protobuf.ColumnTypeProtocol.ColumnType getColumnType() {
return columnType_;
}
public boolean hasDataType() {
return hasDataType;
}
public com.alachisoft.ncache.common.protobuf.ColumnDataTypeProtocol.ColumnDataType getDataType() {
return dataType_;
}
public boolean hasAggregateFunctionType() {
return hasAggregateFunctionType;
}
public com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType getAggregateFunctionType() {
return aggregateFunctionType_;
}
public boolean hasIsFilled() {
return hasIsFilled;
}
public boolean getIsFilled() {
return isFilled_;
}
public boolean hasIsUserSpecifiedColumn() {
return hasIsUserSpecifiedColumn;
}
public boolean getIsUserSpecifiedColumn() {
return isUserSpecifiedColumn_;
}
private void initFields() {
columnType_ = com.alachisoft.ncache.common.protobuf.ColumnTypeProtocol.ColumnType.ATTRIBUTE_COLUMN;
dataType_ = com.alachisoft.ncache.common.protobuf.ColumnDataTypeProtocol.ColumnDataType.OBJECT;
aggregateFunctionType_ = com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType.NOTAPPLICABLE;
}
public final boolean isInitialized() {
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (hasName()) {
output.writeString(1, getName());
}
if (hasIsHidden()) {
output.writeBool(2, getIsHidden());
}
if (hasColumnType()) {
output.writeEnum(3, getColumnType().getNumber());
}
if (hasDataType()) {
output.writeEnum(4, getDataType().getNumber());
}
if (hasAggregateFunctionType()) {
output.writeEnum(5, getAggregateFunctionType().getNumber());
}
if (hasIsFilled()) {
output.writeBool(6, getIsFilled());
}
if (hasIsUserSpecifiedColumn()) {
output.writeBool(7, getIsUserSpecifiedColumn());
}
getUnknownFields().writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (hasName()) {
size += com.google.protobuf.CodedOutputStream
.computeStringSize(1, getName());
}
if (hasIsHidden()) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, getIsHidden());
}
if (hasColumnType()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, getColumnType().getNumber());
}
if (hasDataType()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, getDataType().getNumber());
}
if (hasAggregateFunctionType()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, getAggregateFunctionType().getNumber());
}
if (hasIsFilled()) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, getIsFilled());
}
if (hasIsUserSpecifiedColumn()) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(7, getIsUserSpecifiedColumn());
}
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.RecordColumnProtocol.RecordColumn result;
// Construct using com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn.newBuilder()
private Builder() {
}
private static Builder create() {
Builder builder = new Builder();
builder.result = new com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn();
return builder;
}
protected com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn internalGetResult() {
return result;
}
public Builder clear() {
if (result == null) {
throw new IllegalStateException(
"Cannot call clear() after build().");
}
result = new com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn();
return this;
}
public Builder clone() {
return create().mergeFrom(result);
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn.getDescriptor();
}
public com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn getDefaultInstanceForType() {
return com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn.getDefaultInstance();
}
public boolean isInitialized() {
return result.isInitialized();
}
public com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn build() {
if (result != null && !isInitialized()) {
throw newUninitializedMessageException(result);
}
return buildPartial();
}
private com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn buildParsed()
throws com.google.protobuf.InvalidProtocolBufferException {
if (!isInitialized()) {
throw newUninitializedMessageException(
result).asInvalidProtocolBufferException();
}
return buildPartial();
}
public com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn buildPartial() {
if (result == null) {
throw new IllegalStateException(
"build() has already been called on this Builder.");
}
com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn returnMe = result;
result = null;
return returnMe;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn) {
return mergeFrom((com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn other) {
if (other == com.alachisoft.ncache.common.protobuf.RecordColumnProtocol.RecordColumn.getDefaultInstance())
return this;
if (other.hasName()) {
setName(other.getName());
}
if (other.hasIsHidden()) {
setIsHidden(other.getIsHidden());
}
if (other.hasColumnType()) {
setColumnType(other.getColumnType());
}
if (other.hasDataType()) {
setDataType(other.getDataType());
}
if (other.hasAggregateFunctionType()) {
setAggregateFunctionType(other.getAggregateFunctionType());
}
if (other.hasIsFilled()) {
setIsFilled(other.getIsFilled());
}
if (other.hasIsUserSpecifiedColumn()) {
setIsUserSpecifiedColumn(other.getIsUserSpecifiedColumn());
}
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: {
setName(input.readString());
break;
}
case 16: {
setIsHidden(input.readBool());
break;
}
case 24: {
int rawValue = input.readEnum();
com.alachisoft.ncache.common.protobuf.ColumnTypeProtocol.ColumnType value = com.alachisoft.ncache.common.protobuf.ColumnTypeProtocol.ColumnType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
setColumnType(value);
}
break;
}
case 32: {
int rawValue = input.readEnum();
com.alachisoft.ncache.common.protobuf.ColumnDataTypeProtocol.ColumnDataType value = com.alachisoft.ncache.common.protobuf.ColumnDataTypeProtocol.ColumnDataType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(4, rawValue);
} else {
setDataType(value);
}
break;
}
case 40: {
int rawValue = input.readEnum();
com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType value = com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(5, rawValue);
} else {
setAggregateFunctionType(value);
}
break;
}
case 48: {
setIsFilled(input.readBool());
break;
}
case 56: {
setIsUserSpecifiedColumn(input.readBool());
break;
}
}
}
}
// optional string name = 1;
public boolean hasName() {
return result.hasName();
}
public java.lang.String getName() {
return result.getName();
}
public Builder setName(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
result.hasName = true;
result.name_ = value;
return this;
}
public Builder clearName() {
result.hasName = false;
result.name_ = getDefaultInstance().getName();
return this;
}
// optional bool isHidden = 2;
public boolean hasIsHidden() {
return result.hasIsHidden();
}
public boolean getIsHidden() {
return result.getIsHidden();
}
public Builder setIsHidden(boolean value) {
result.hasIsHidden = true;
result.isHidden_ = value;
return this;
}
public Builder clearIsHidden() {
result.hasIsHidden = false;
result.isHidden_ = false;
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.ColumnType columnType = 3 [default = ATTRIBUTE_COLUMN];
public boolean hasColumnType() {
return result.hasColumnType();
}
public com.alachisoft.ncache.common.protobuf.ColumnTypeProtocol.ColumnType getColumnType() {
return result.getColumnType();
}
public Builder setColumnType(com.alachisoft.ncache.common.protobuf.ColumnTypeProtocol.ColumnType value) {
if (value == null) {
throw new NullPointerException();
}
result.hasColumnType = true;
result.columnType_ = value;
return this;
}
public Builder clearColumnType() {
result.hasColumnType = false;
result.columnType_ = com.alachisoft.ncache.common.protobuf.ColumnTypeProtocol.ColumnType.ATTRIBUTE_COLUMN;
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.ColumnDataType dataType = 4 [default = OBJECT];
public boolean hasDataType() {
return result.hasDataType();
}
public com.alachisoft.ncache.common.protobuf.ColumnDataTypeProtocol.ColumnDataType getDataType() {
return result.getDataType();
}
public Builder setDataType(com.alachisoft.ncache.common.protobuf.ColumnDataTypeProtocol.ColumnDataType value) {
if (value == null) {
throw new NullPointerException();
}
result.hasDataType = true;
result.dataType_ = value;
return this;
}
public Builder clearDataType() {
result.hasDataType = false;
result.dataType_ = com.alachisoft.ncache.common.protobuf.ColumnDataTypeProtocol.ColumnDataType.OBJECT;
return this;
}
// optional .com.alachisoft.ncache.common.protobuf.AggregateFunctionType aggregateFunctionType = 5 [default = NOTAPPLICABLE];
public boolean hasAggregateFunctionType() {
return result.hasAggregateFunctionType();
}
public com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType getAggregateFunctionType() {
return result.getAggregateFunctionType();
}
public Builder setAggregateFunctionType(com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType value) {
if (value == null) {
throw new NullPointerException();
}
result.hasAggregateFunctionType = true;
result.aggregateFunctionType_ = value;
return this;
}
public Builder clearAggregateFunctionType() {
result.hasAggregateFunctionType = false;
result.aggregateFunctionType_ = com.alachisoft.ncache.common.protobuf.AggregateFunctionTypeProtocol.AggregateFunctionType.NOTAPPLICABLE;
return this;
}
// optional bool isFilled = 6;
public boolean hasIsFilled() {
return result.hasIsFilled();
}
public boolean getIsFilled() {
return result.getIsFilled();
}
public Builder setIsFilled(boolean value) {
result.hasIsFilled = true;
result.isFilled_ = value;
return this;
}
public Builder clearIsFilled() {
result.hasIsFilled = false;
result.isFilled_ = false;
return this;
}
// optional bool isUserSpecifiedColumn = 7;
public boolean hasIsUserSpecifiedColumn() {
return result.hasIsUserSpecifiedColumn();
}
public boolean getIsUserSpecifiedColumn() {
return result.getIsUserSpecifiedColumn();
}
public Builder setIsUserSpecifiedColumn(boolean value) {
result.hasIsUserSpecifiedColumn = true;
result.isUserSpecifiedColumn_ = value;
return this;
}
public Builder clearIsUserSpecifiedColumn() {
result.hasIsUserSpecifiedColumn = false;
result.isUserSpecifiedColumn_ = false;
return this;
}
// @@protoc_insertion_point(builder_scope:com.alachisoft.ncache.common.protobuf.RecordColumn)
}
// @@protoc_insertion_point(class_scope:com.alachisoft.ncache.common.protobuf.RecordColumn)
}
// @@protoc_insertion_point(outer_class_scope)
}