org.yamcs.protobuf.Table Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: table.proto
package org.yamcs.protobuf;
public final class Table {
private Table() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registry.add(org.yamcs.protobuf.Table.rowsLoaded);
}
public interface ColumnInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:table.ColumnInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional uint32 id = 1;
*/
boolean hasId();
/**
* optional uint32 id = 1;
*/
int getId();
/**
* optional string name = 2;
*/
boolean hasName();
/**
* optional string name = 2;
*/
java.lang.String getName();
/**
* optional string name = 2;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string type = 3;
*/
boolean hasType();
/**
* optional string type = 3;
*/
java.lang.String getType();
/**
* optional string type = 3;
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* optional string protoClass = 4;
*
*
*the name of the class implementing the proto object if the dataType=PROTOBUF
*
*/
boolean hasProtoClass();
/**
* optional string protoClass = 4;
*
*
*the name of the class implementing the proto object if the dataType=PROTOBUF
*
*/
java.lang.String getProtoClass();
/**
* optional string protoClass = 4;
*
*
*the name of the class implementing the proto object if the dataType=PROTOBUF
*
*/
com.google.protobuf.ByteString
getProtoClassBytes();
}
/**
* Protobuf type {@code table.ColumnInfo}
*/
public static final class ColumnInfo extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:table.ColumnInfo)
ColumnInfoOrBuilder {
// Use ColumnInfo.newBuilder() to construct.
private ColumnInfo(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ColumnInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ColumnInfo defaultInstance;
public static ColumnInfo getDefaultInstance() {
return defaultInstance;
}
public ColumnInfo getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ColumnInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
id_ = input.readUInt32();
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
name_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
type_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
protoClass_ = bs;
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Table.internal_static_table_ColumnInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Table.internal_static_table_ColumnInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Table.ColumnInfo.class, org.yamcs.protobuf.Table.ColumnInfo.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ColumnInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ColumnInfo(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private int id_;
/**
* optional uint32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 id = 1;
*/
public int getId() {
return id_;
}
public static final int NAME_FIELD_NUMBER = 2;
private java.lang.Object name_;
/**
* optional string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 2;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 3;
private java.lang.Object type_;
/**
* optional string type = 3;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string type = 3;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
type_ = s;
}
return s;
}
}
/**
* optional string type = 3;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROTOCLASS_FIELD_NUMBER = 4;
private java.lang.Object protoClass_;
/**
* optional string protoClass = 4;
*
*
*the name of the class implementing the proto object if the dataType=PROTOBUF
*
*/
public boolean hasProtoClass() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string protoClass = 4;
*
*
*the name of the class implementing the proto object if the dataType=PROTOBUF
*
*/
public java.lang.String getProtoClass() {
java.lang.Object ref = protoClass_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
protoClass_ = s;
}
return s;
}
}
/**
* optional string protoClass = 4;
*
*
*the name of the class implementing the proto object if the dataType=PROTOBUF
*
*/
public com.google.protobuf.ByteString
getProtoClassBytes() {
java.lang.Object ref = protoClass_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
protoClass_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
id_ = 0;
name_ = "";
type_ = "";
protoClass_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getTypeBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getProtoClassBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getNameBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getTypeBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getProtoClassBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.yamcs.protobuf.Table.ColumnInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Table.ColumnInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Table.ColumnInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Table.ColumnInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Table.ColumnInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Table.ColumnInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Table.ColumnInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Table.ColumnInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Table.ColumnInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Table.ColumnInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.yamcs.protobuf.Table.ColumnInfo prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code table.ColumnInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:table.ColumnInfo)
org.yamcs.protobuf.Table.ColumnInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Table.internal_static_table_ColumnInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Table.internal_static_table_ColumnInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Table.ColumnInfo.class, org.yamcs.protobuf.Table.ColumnInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Table.ColumnInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
id_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
type_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
protoClass_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Table.internal_static_table_ColumnInfo_descriptor;
}
public org.yamcs.protobuf.Table.ColumnInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Table.ColumnInfo.getDefaultInstance();
}
public org.yamcs.protobuf.Table.ColumnInfo build() {
org.yamcs.protobuf.Table.ColumnInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Table.ColumnInfo buildPartial() {
org.yamcs.protobuf.Table.ColumnInfo result = new org.yamcs.protobuf.Table.ColumnInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.id_ = id_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.protoClass_ = protoClass_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Table.ColumnInfo) {
return mergeFrom((org.yamcs.protobuf.Table.ColumnInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Table.ColumnInfo other) {
if (other == org.yamcs.protobuf.Table.ColumnInfo.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasType()) {
bitField0_ |= 0x00000004;
type_ = other.type_;
onChanged();
}
if (other.hasProtoClass()) {
bitField0_ |= 0x00000008;
protoClass_ = other.protoClass_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Table.ColumnInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Table.ColumnInfo) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int id_ ;
/**
* optional uint32 id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 id = 1;
*/
public int getId() {
return id_;
}
/**
* optional uint32 id = 1;
*/
public Builder setId(int value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
* optional uint32 id = 1;
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string name = 2;
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 2;
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 2;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 2;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 2;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
* optional string type = 3;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string type = 3;
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
type_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string type = 3;
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string type = 3;
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
type_ = value;
onChanged();
return this;
}
/**
* optional string type = 3;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000004);
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* optional string type = 3;
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
type_ = value;
onChanged();
return this;
}
private java.lang.Object protoClass_ = "";
/**
* optional string protoClass = 4;
*
*
*the name of the class implementing the proto object if the dataType=PROTOBUF
*
*/
public boolean hasProtoClass() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string protoClass = 4;
*
*
*the name of the class implementing the proto object if the dataType=PROTOBUF
*
*/
public java.lang.String getProtoClass() {
java.lang.Object ref = protoClass_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
protoClass_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string protoClass = 4;
*
*
*the name of the class implementing the proto object if the dataType=PROTOBUF
*
*/
public com.google.protobuf.ByteString
getProtoClassBytes() {
java.lang.Object ref = protoClass_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
protoClass_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string protoClass = 4;
*
*
*the name of the class implementing the proto object if the dataType=PROTOBUF
*
*/
public Builder setProtoClass(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
protoClass_ = value;
onChanged();
return this;
}
/**
* optional string protoClass = 4;
*
*
*the name of the class implementing the proto object if the dataType=PROTOBUF
*
*/
public Builder clearProtoClass() {
bitField0_ = (bitField0_ & ~0x00000008);
protoClass_ = getDefaultInstance().getProtoClass();
onChanged();
return this;
}
/**
* optional string protoClass = 4;
*
*
*the name of the class implementing the proto object if the dataType=PROTOBUF
*
*/
public Builder setProtoClassBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
protoClass_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:table.ColumnInfo)
}
static {
defaultInstance = new ColumnInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:table.ColumnInfo)
}
public interface CellOrBuilder extends
// @@protoc_insertion_point(interface_extends:table.Cell)
com.google.protobuf.MessageOrBuilder {
/**
* optional uint32 columnId = 1;
*/
boolean hasColumnId();
/**
* optional uint32 columnId = 1;
*/
int getColumnId();
/**
* optional bytes data = 2;
*/
boolean hasData();
/**
* optional bytes data = 2;
*/
com.google.protobuf.ByteString getData();
}
/**
* Protobuf type {@code table.Cell}
*/
public static final class Cell extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:table.Cell)
CellOrBuilder {
// Use Cell.newBuilder() to construct.
private Cell(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Cell(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Cell defaultInstance;
public static Cell getDefaultInstance() {
return defaultInstance;
}
public Cell getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Cell(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
columnId_ = input.readUInt32();
break;
}
case 18: {
bitField0_ |= 0x00000002;
data_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Table.internal_static_table_Cell_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Table.internal_static_table_Cell_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Table.Cell.class, org.yamcs.protobuf.Table.Cell.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Cell parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Cell(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int COLUMNID_FIELD_NUMBER = 1;
private int columnId_;
/**
* optional uint32 columnId = 1;
*/
public boolean hasColumnId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 columnId = 1;
*/
public int getColumnId() {
return columnId_;
}
public static final int DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString data_;
/**
* optional bytes data = 2;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes data = 2;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
private void initFields() {
columnId_ = 0;
data_ = com.google.protobuf.ByteString.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, columnId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, data_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, columnId_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, data_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.yamcs.protobuf.Table.Cell parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Table.Cell parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Table.Cell parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Table.Cell parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Table.Cell parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Table.Cell parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Table.Cell parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Table.Cell parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Table.Cell parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Table.Cell parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.yamcs.protobuf.Table.Cell prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code table.Cell}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:table.Cell)
org.yamcs.protobuf.Table.CellOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Table.internal_static_table_Cell_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Table.internal_static_table_Cell_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Table.Cell.class, org.yamcs.protobuf.Table.Cell.Builder.class);
}
// Construct using org.yamcs.protobuf.Table.Cell.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
columnId_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
data_ = com.google.protobuf.ByteString.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Table.internal_static_table_Cell_descriptor;
}
public org.yamcs.protobuf.Table.Cell getDefaultInstanceForType() {
return org.yamcs.protobuf.Table.Cell.getDefaultInstance();
}
public org.yamcs.protobuf.Table.Cell build() {
org.yamcs.protobuf.Table.Cell result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Table.Cell buildPartial() {
org.yamcs.protobuf.Table.Cell result = new org.yamcs.protobuf.Table.Cell(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.columnId_ = columnId_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.data_ = data_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Table.Cell) {
return mergeFrom((org.yamcs.protobuf.Table.Cell)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Table.Cell other) {
if (other == org.yamcs.protobuf.Table.Cell.getDefaultInstance()) return this;
if (other.hasColumnId()) {
setColumnId(other.getColumnId());
}
if (other.hasData()) {
setData(other.getData());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Table.Cell parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Table.Cell) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int columnId_ ;
/**
* optional uint32 columnId = 1;
*/
public boolean hasColumnId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 columnId = 1;
*/
public int getColumnId() {
return columnId_;
}
/**
* optional uint32 columnId = 1;
*/
public Builder setColumnId(int value) {
bitField0_ |= 0x00000001;
columnId_ = value;
onChanged();
return this;
}
/**
* optional uint32 columnId = 1;
*/
public Builder clearColumnId() {
bitField0_ = (bitField0_ & ~0x00000001);
columnId_ = 0;
onChanged();
return this;
}
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
* optional bytes data = 2;
*/
public boolean hasData() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bytes data = 2;
*/
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
* optional bytes data = 2;
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
data_ = value;
onChanged();
return this;
}
/**
* optional bytes data = 2;
*/
public Builder clearData() {
bitField0_ = (bitField0_ & ~0x00000002);
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:table.Cell)
}
static {
defaultInstance = new Cell(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:table.Cell)
}
public interface RowOrBuilder extends
// @@protoc_insertion_point(interface_extends:table.Row)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
java.util.List
getColumnList();
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
org.yamcs.protobuf.Table.ColumnInfo getColumn(int index);
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
int getColumnCount();
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
java.util.List
getColumnOrBuilderList();
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
org.yamcs.protobuf.Table.ColumnInfoOrBuilder getColumnOrBuilder(
int index);
/**
* repeated .table.Cell cell = 2;
*/
java.util.List
getCellList();
/**
* repeated .table.Cell cell = 2;
*/
org.yamcs.protobuf.Table.Cell getCell(int index);
/**
* repeated .table.Cell cell = 2;
*/
int getCellCount();
/**
* repeated .table.Cell cell = 2;
*/
java.util.List
getCellOrBuilderList();
/**
* repeated .table.Cell cell = 2;
*/
org.yamcs.protobuf.Table.CellOrBuilder getCellOrBuilder(
int index);
}
/**
* Protobuf type {@code table.Row}
*/
public static final class Row extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:table.Row)
RowOrBuilder {
// Use Row.newBuilder() to construct.
private Row(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Row(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Row defaultInstance;
public static Row getDefaultInstance() {
return defaultInstance;
}
public Row getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Row(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
column_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
column_.add(input.readMessage(org.yamcs.protobuf.Table.ColumnInfo.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
cell_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
cell_.add(input.readMessage(org.yamcs.protobuf.Table.Cell.PARSER, extensionRegistry));
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
column_ = java.util.Collections.unmodifiableList(column_);
}
if (((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
cell_ = java.util.Collections.unmodifiableList(cell_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Table.internal_static_table_Row_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Table.internal_static_table_Row_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Table.Row.class, org.yamcs.protobuf.Table.Row.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public Row parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Row(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int COLUMN_FIELD_NUMBER = 1;
private java.util.List column_;
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public java.util.List getColumnList() {
return column_;
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public java.util.List
getColumnOrBuilderList() {
return column_;
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public int getColumnCount() {
return column_.size();
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public org.yamcs.protobuf.Table.ColumnInfo getColumn(int index) {
return column_.get(index);
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public org.yamcs.protobuf.Table.ColumnInfoOrBuilder getColumnOrBuilder(
int index) {
return column_.get(index);
}
public static final int CELL_FIELD_NUMBER = 2;
private java.util.List cell_;
/**
* repeated .table.Cell cell = 2;
*/
public java.util.List getCellList() {
return cell_;
}
/**
* repeated .table.Cell cell = 2;
*/
public java.util.List
getCellOrBuilderList() {
return cell_;
}
/**
* repeated .table.Cell cell = 2;
*/
public int getCellCount() {
return cell_.size();
}
/**
* repeated .table.Cell cell = 2;
*/
public org.yamcs.protobuf.Table.Cell getCell(int index) {
return cell_.get(index);
}
/**
* repeated .table.Cell cell = 2;
*/
public org.yamcs.protobuf.Table.CellOrBuilder getCellOrBuilder(
int index) {
return cell_.get(index);
}
private void initFields() {
column_ = java.util.Collections.emptyList();
cell_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < column_.size(); i++) {
output.writeMessage(1, column_.get(i));
}
for (int i = 0; i < cell_.size(); i++) {
output.writeMessage(2, cell_.get(i));
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < column_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, column_.get(i));
}
for (int i = 0; i < cell_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, cell_.get(i));
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.yamcs.protobuf.Table.Row parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Table.Row parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Table.Row parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Table.Row parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Table.Row parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Table.Row parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Table.Row parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Table.Row parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Table.Row parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Table.Row parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.yamcs.protobuf.Table.Row prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code table.Row}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:table.Row)
org.yamcs.protobuf.Table.RowOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Table.internal_static_table_Row_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Table.internal_static_table_Row_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Table.Row.class, org.yamcs.protobuf.Table.Row.Builder.class);
}
// Construct using org.yamcs.protobuf.Table.Row.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getColumnFieldBuilder();
getCellFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (columnBuilder_ == null) {
column_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
columnBuilder_.clear();
}
if (cellBuilder_ == null) {
cell_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
cellBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Table.internal_static_table_Row_descriptor;
}
public org.yamcs.protobuf.Table.Row getDefaultInstanceForType() {
return org.yamcs.protobuf.Table.Row.getDefaultInstance();
}
public org.yamcs.protobuf.Table.Row build() {
org.yamcs.protobuf.Table.Row result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Table.Row buildPartial() {
org.yamcs.protobuf.Table.Row result = new org.yamcs.protobuf.Table.Row(this);
int from_bitField0_ = bitField0_;
if (columnBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
column_ = java.util.Collections.unmodifiableList(column_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.column_ = column_;
} else {
result.column_ = columnBuilder_.build();
}
if (cellBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002)) {
cell_ = java.util.Collections.unmodifiableList(cell_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.cell_ = cell_;
} else {
result.cell_ = cellBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Table.Row) {
return mergeFrom((org.yamcs.protobuf.Table.Row)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Table.Row other) {
if (other == org.yamcs.protobuf.Table.Row.getDefaultInstance()) return this;
if (columnBuilder_ == null) {
if (!other.column_.isEmpty()) {
if (column_.isEmpty()) {
column_ = other.column_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureColumnIsMutable();
column_.addAll(other.column_);
}
onChanged();
}
} else {
if (!other.column_.isEmpty()) {
if (columnBuilder_.isEmpty()) {
columnBuilder_.dispose();
columnBuilder_ = null;
column_ = other.column_;
bitField0_ = (bitField0_ & ~0x00000001);
columnBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getColumnFieldBuilder() : null;
} else {
columnBuilder_.addAllMessages(other.column_);
}
}
}
if (cellBuilder_ == null) {
if (!other.cell_.isEmpty()) {
if (cell_.isEmpty()) {
cell_ = other.cell_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCellIsMutable();
cell_.addAll(other.cell_);
}
onChanged();
}
} else {
if (!other.cell_.isEmpty()) {
if (cellBuilder_.isEmpty()) {
cellBuilder_.dispose();
cellBuilder_ = null;
cell_ = other.cell_;
bitField0_ = (bitField0_ & ~0x00000002);
cellBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCellFieldBuilder() : null;
} else {
cellBuilder_.addAllMessages(other.cell_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Table.Row parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Table.Row) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List column_ =
java.util.Collections.emptyList();
private void ensureColumnIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
column_ = new java.util.ArrayList(column_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Table.ColumnInfo, org.yamcs.protobuf.Table.ColumnInfo.Builder, org.yamcs.protobuf.Table.ColumnInfoOrBuilder> columnBuilder_;
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public java.util.List getColumnList() {
if (columnBuilder_ == null) {
return java.util.Collections.unmodifiableList(column_);
} else {
return columnBuilder_.getMessageList();
}
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public int getColumnCount() {
if (columnBuilder_ == null) {
return column_.size();
} else {
return columnBuilder_.getCount();
}
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public org.yamcs.protobuf.Table.ColumnInfo getColumn(int index) {
if (columnBuilder_ == null) {
return column_.get(index);
} else {
return columnBuilder_.getMessage(index);
}
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public Builder setColumn(
int index, org.yamcs.protobuf.Table.ColumnInfo value) {
if (columnBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnIsMutable();
column_.set(index, value);
onChanged();
} else {
columnBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public Builder setColumn(
int index, org.yamcs.protobuf.Table.ColumnInfo.Builder builderForValue) {
if (columnBuilder_ == null) {
ensureColumnIsMutable();
column_.set(index, builderForValue.build());
onChanged();
} else {
columnBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public Builder addColumn(org.yamcs.protobuf.Table.ColumnInfo value) {
if (columnBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnIsMutable();
column_.add(value);
onChanged();
} else {
columnBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public Builder addColumn(
int index, org.yamcs.protobuf.Table.ColumnInfo value) {
if (columnBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureColumnIsMutable();
column_.add(index, value);
onChanged();
} else {
columnBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public Builder addColumn(
org.yamcs.protobuf.Table.ColumnInfo.Builder builderForValue) {
if (columnBuilder_ == null) {
ensureColumnIsMutable();
column_.add(builderForValue.build());
onChanged();
} else {
columnBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public Builder addColumn(
int index, org.yamcs.protobuf.Table.ColumnInfo.Builder builderForValue) {
if (columnBuilder_ == null) {
ensureColumnIsMutable();
column_.add(index, builderForValue.build());
onChanged();
} else {
columnBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public Builder addAllColumn(
java.lang.Iterable values) {
if (columnBuilder_ == null) {
ensureColumnIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, column_);
onChanged();
} else {
columnBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public Builder clearColumn() {
if (columnBuilder_ == null) {
column_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
columnBuilder_.clear();
}
return this;
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public Builder removeColumn(int index) {
if (columnBuilder_ == null) {
ensureColumnIsMutable();
column_.remove(index);
onChanged();
} else {
columnBuilder_.remove(index);
}
return this;
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public org.yamcs.protobuf.Table.ColumnInfo.Builder getColumnBuilder(
int index) {
return getColumnFieldBuilder().getBuilder(index);
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public org.yamcs.protobuf.Table.ColumnInfoOrBuilder getColumnOrBuilder(
int index) {
if (columnBuilder_ == null) {
return column_.get(index); } else {
return columnBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public java.util.List
getColumnOrBuilderList() {
if (columnBuilder_ != null) {
return columnBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(column_);
}
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public org.yamcs.protobuf.Table.ColumnInfo.Builder addColumnBuilder() {
return getColumnFieldBuilder().addBuilder(
org.yamcs.protobuf.Table.ColumnInfo.getDefaultInstance());
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public org.yamcs.protobuf.Table.ColumnInfo.Builder addColumnBuilder(
int index) {
return getColumnFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Table.ColumnInfo.getDefaultInstance());
}
/**
* repeated .table.ColumnInfo column = 1;
*
*
*the column info is only present for new columns in a stream of Row messages
*
*/
public java.util.List
getColumnBuilderList() {
return getColumnFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Table.ColumnInfo, org.yamcs.protobuf.Table.ColumnInfo.Builder, org.yamcs.protobuf.Table.ColumnInfoOrBuilder>
getColumnFieldBuilder() {
if (columnBuilder_ == null) {
columnBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Table.ColumnInfo, org.yamcs.protobuf.Table.ColumnInfo.Builder, org.yamcs.protobuf.Table.ColumnInfoOrBuilder>(
column_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
column_ = null;
}
return columnBuilder_;
}
private java.util.List cell_ =
java.util.Collections.emptyList();
private void ensureCellIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
cell_ = new java.util.ArrayList(cell_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Table.Cell, org.yamcs.protobuf.Table.Cell.Builder, org.yamcs.protobuf.Table.CellOrBuilder> cellBuilder_;
/**
* repeated .table.Cell cell = 2;
*/
public java.util.List getCellList() {
if (cellBuilder_ == null) {
return java.util.Collections.unmodifiableList(cell_);
} else {
return cellBuilder_.getMessageList();
}
}
/**
* repeated .table.Cell cell = 2;
*/
public int getCellCount() {
if (cellBuilder_ == null) {
return cell_.size();
} else {
return cellBuilder_.getCount();
}
}
/**
* repeated .table.Cell cell = 2;
*/
public org.yamcs.protobuf.Table.Cell getCell(int index) {
if (cellBuilder_ == null) {
return cell_.get(index);
} else {
return cellBuilder_.getMessage(index);
}
}
/**
* repeated .table.Cell cell = 2;
*/
public Builder setCell(
int index, org.yamcs.protobuf.Table.Cell value) {
if (cellBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCellIsMutable();
cell_.set(index, value);
onChanged();
} else {
cellBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .table.Cell cell = 2;
*/
public Builder setCell(
int index, org.yamcs.protobuf.Table.Cell.Builder builderForValue) {
if (cellBuilder_ == null) {
ensureCellIsMutable();
cell_.set(index, builderForValue.build());
onChanged();
} else {
cellBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .table.Cell cell = 2;
*/
public Builder addCell(org.yamcs.protobuf.Table.Cell value) {
if (cellBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCellIsMutable();
cell_.add(value);
onChanged();
} else {
cellBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .table.Cell cell = 2;
*/
public Builder addCell(
int index, org.yamcs.protobuf.Table.Cell value) {
if (cellBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCellIsMutable();
cell_.add(index, value);
onChanged();
} else {
cellBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .table.Cell cell = 2;
*/
public Builder addCell(
org.yamcs.protobuf.Table.Cell.Builder builderForValue) {
if (cellBuilder_ == null) {
ensureCellIsMutable();
cell_.add(builderForValue.build());
onChanged();
} else {
cellBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .table.Cell cell = 2;
*/
public Builder addCell(
int index, org.yamcs.protobuf.Table.Cell.Builder builderForValue) {
if (cellBuilder_ == null) {
ensureCellIsMutable();
cell_.add(index, builderForValue.build());
onChanged();
} else {
cellBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .table.Cell cell = 2;
*/
public Builder addAllCell(
java.lang.Iterable values) {
if (cellBuilder_ == null) {
ensureCellIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, cell_);
onChanged();
} else {
cellBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .table.Cell cell = 2;
*/
public Builder clearCell() {
if (cellBuilder_ == null) {
cell_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
cellBuilder_.clear();
}
return this;
}
/**
* repeated .table.Cell cell = 2;
*/
public Builder removeCell(int index) {
if (cellBuilder_ == null) {
ensureCellIsMutable();
cell_.remove(index);
onChanged();
} else {
cellBuilder_.remove(index);
}
return this;
}
/**
* repeated .table.Cell cell = 2;
*/
public org.yamcs.protobuf.Table.Cell.Builder getCellBuilder(
int index) {
return getCellFieldBuilder().getBuilder(index);
}
/**
* repeated .table.Cell cell = 2;
*/
public org.yamcs.protobuf.Table.CellOrBuilder getCellOrBuilder(
int index) {
if (cellBuilder_ == null) {
return cell_.get(index); } else {
return cellBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .table.Cell cell = 2;
*/
public java.util.List
getCellOrBuilderList() {
if (cellBuilder_ != null) {
return cellBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(cell_);
}
}
/**
* repeated .table.Cell cell = 2;
*/
public org.yamcs.protobuf.Table.Cell.Builder addCellBuilder() {
return getCellFieldBuilder().addBuilder(
org.yamcs.protobuf.Table.Cell.getDefaultInstance());
}
/**
* repeated .table.Cell cell = 2;
*/
public org.yamcs.protobuf.Table.Cell.Builder addCellBuilder(
int index) {
return getCellFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Table.Cell.getDefaultInstance());
}
/**
* repeated .table.Cell cell = 2;
*/
public java.util.List
getCellBuilderList() {
return getCellFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Table.Cell, org.yamcs.protobuf.Table.Cell.Builder, org.yamcs.protobuf.Table.CellOrBuilder>
getCellFieldBuilder() {
if (cellBuilder_ == null) {
cellBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Table.Cell, org.yamcs.protobuf.Table.Cell.Builder, org.yamcs.protobuf.Table.CellOrBuilder>(
cell_,
((bitField0_ & 0x00000002) == 0x00000002),
getParentForChildren(),
isClean());
cell_ = null;
}
return cellBuilder_;
}
// @@protoc_insertion_point(builder_scope:table.Row)
}
static {
defaultInstance = new Row(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:table.Row)
}
public interface TableLoadResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:table.TableLoadResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional uint32 rowsLoaded = 1;
*/
boolean hasRowsLoaded();
/**
* optional uint32 rowsLoaded = 1;
*/
int getRowsLoaded();
}
/**
* Protobuf type {@code table.TableLoadResponse}
*/
public static final class TableLoadResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:table.TableLoadResponse)
TableLoadResponseOrBuilder {
// Use TableLoadResponse.newBuilder() to construct.
private TableLoadResponse(com.google.protobuf.GeneratedMessage.Builder builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private TableLoadResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final TableLoadResponse defaultInstance;
public static TableLoadResponse getDefaultInstance() {
return defaultInstance;
}
public TableLoadResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TableLoadResponse(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 8: {
bitField0_ |= 0x00000001;
rowsLoaded_ = input.readUInt32();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Table.internal_static_table_TableLoadResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Table.internal_static_table_TableLoadResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Table.TableLoadResponse.class, org.yamcs.protobuf.Table.TableLoadResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public TableLoadResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TableLoadResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int ROWSLOADED_FIELD_NUMBER = 1;
private int rowsLoaded_;
/**
* optional uint32 rowsLoaded = 1;
*/
public boolean hasRowsLoaded() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 rowsLoaded = 1;
*/
public int getRowsLoaded() {
return rowsLoaded_;
}
private void initFields() {
rowsLoaded_ = 0;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeUInt32(1, rowsLoaded_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(1, rowsLoaded_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.yamcs.protobuf.Table.TableLoadResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Table.TableLoadResponse parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Table.TableLoadResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Table.TableLoadResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Table.TableLoadResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Table.TableLoadResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Table.TableLoadResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Table.TableLoadResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Table.TableLoadResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Table.TableLoadResponse parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.yamcs.protobuf.Table.TableLoadResponse prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code table.TableLoadResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:table.TableLoadResponse)
org.yamcs.protobuf.Table.TableLoadResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Table.internal_static_table_TableLoadResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Table.internal_static_table_TableLoadResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Table.TableLoadResponse.class, org.yamcs.protobuf.Table.TableLoadResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Table.TableLoadResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
rowsLoaded_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Table.internal_static_table_TableLoadResponse_descriptor;
}
public org.yamcs.protobuf.Table.TableLoadResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Table.TableLoadResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Table.TableLoadResponse build() {
org.yamcs.protobuf.Table.TableLoadResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Table.TableLoadResponse buildPartial() {
org.yamcs.protobuf.Table.TableLoadResponse result = new org.yamcs.protobuf.Table.TableLoadResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.rowsLoaded_ = rowsLoaded_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Table.TableLoadResponse) {
return mergeFrom((org.yamcs.protobuf.Table.TableLoadResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Table.TableLoadResponse other) {
if (other == org.yamcs.protobuf.Table.TableLoadResponse.getDefaultInstance()) return this;
if (other.hasRowsLoaded()) {
setRowsLoaded(other.getRowsLoaded());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Table.TableLoadResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Table.TableLoadResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int rowsLoaded_ ;
/**
* optional uint32 rowsLoaded = 1;
*/
public boolean hasRowsLoaded() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional uint32 rowsLoaded = 1;
*/
public int getRowsLoaded() {
return rowsLoaded_;
}
/**
* optional uint32 rowsLoaded = 1;
*/
public Builder setRowsLoaded(int value) {
bitField0_ |= 0x00000001;
rowsLoaded_ = value;
onChanged();
return this;
}
/**
* optional uint32 rowsLoaded = 1;
*/
public Builder clearRowsLoaded() {
bitField0_ = (bitField0_ & ~0x00000001);
rowsLoaded_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:table.TableLoadResponse)
}
static {
defaultInstance = new TableLoadResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:table.TableLoadResponse)
}
public static final int ROWSLOADED_FIELD_NUMBER = 100;
/**
* extend .web.RestExceptionMessage { ... }
*/
public static final
com.google.protobuf.GeneratedMessage.GeneratedExtension<
org.yamcs.protobuf.Web.RestExceptionMessage,
java.lang.Integer> rowsLoaded = com.google.protobuf.GeneratedMessage
.newFileScopedGeneratedExtension(
java.lang.Integer.class,
null);
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_table_ColumnInfo_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_table_ColumnInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_table_Cell_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_table_Cell_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_table_Row_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_table_Row_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_table_TableLoadResponse_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_table_TableLoadResponse_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\013table.proto\022\005table\032\tweb.proto\"H\n\nColum" +
"nInfo\022\n\n\002id\030\001 \001(\r\022\014\n\004name\030\002 \001(\t\022\014\n\004type\030" +
"\003 \001(\t\022\022\n\nprotoClass\030\004 \001(\t\"&\n\004Cell\022\020\n\010col" +
"umnId\030\001 \001(\r\022\014\n\004data\030\002 \001(\014\"C\n\003Row\022!\n\006colu" +
"mn\030\001 \003(\0132\021.table.ColumnInfo\022\031\n\004cell\030\002 \003(" +
"\0132\013.table.Cell\"\'\n\021TableLoadResponse\022\022\n\nr" +
"owsLoaded\030\001 \001(\r:-\n\nrowsLoaded\022\031.web.Rest" +
"ExceptionMessage\030d \001(\rB\024\n\022org.yamcs.prot" +
"obuf"
};
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;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.yamcs.protobuf.Web.getDescriptor(),
}, assigner);
internal_static_table_ColumnInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_table_ColumnInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_table_ColumnInfo_descriptor,
new java.lang.String[] { "Id", "Name", "Type", "ProtoClass", });
internal_static_table_Cell_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_table_Cell_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_table_Cell_descriptor,
new java.lang.String[] { "ColumnId", "Data", });
internal_static_table_Row_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_table_Row_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_table_Row_descriptor,
new java.lang.String[] { "Column", "Cell", });
internal_static_table_TableLoadResponse_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_table_TableLoadResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_table_TableLoadResponse_descriptor,
new java.lang.String[] { "RowsLoaded", });
rowsLoaded.internalInit(descriptor.getExtensions().get(0));
org.yamcs.protobuf.Web.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}
| | |