
org.yamcs.protobuf.DatabaseInfo 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: yamcs/protobuf/database/database_service.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.archive.DatabaseInfo}
*/
public final class DatabaseInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.archive.DatabaseInfo)
DatabaseInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DatabaseInfo.newBuilder() to construct.
private DatabaseInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DatabaseInfo() {
name_ = "";
path_ = "";
tablespace_ = "";
tables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
streams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DatabaseInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DatabaseInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
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;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
path_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
tablespace_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
tables_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
tables_.add(bs);
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
streams_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
streams_.add(bs);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) != 0)) {
tables_ = tables_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
streams_ = streams_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.DbServiceProto.internal_static_yamcs_protobuf_archive_DatabaseInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.DbServiceProto.internal_static_yamcs_protobuf_archive_DatabaseInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.DatabaseInfo.class, org.yamcs.protobuf.DatabaseInfo.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Database name
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Database name
*
*
* optional string name = 1;
* @return The name.
*/
@java.lang.Override
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;
}
}
/**
*
* Database name
*
*
* optional string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
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 PATH_FIELD_NUMBER = 2;
private volatile java.lang.Object path_;
/**
*
* Path on server
*
*
* optional string path = 2;
* @return Whether the path field is set.
*/
@java.lang.Override
public boolean hasPath() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Path on server
*
*
* optional string path = 2;
* @return The path.
*/
@java.lang.Override
public java.lang.String getPath() {
java.lang.Object ref = path_;
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()) {
path_ = s;
}
return s;
}
}
/**
*
* Path on server
*
*
* optional string path = 2;
* @return The bytes for path.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TABLESPACE_FIELD_NUMBER = 3;
private volatile java.lang.Object tablespace_;
/**
* optional string tablespace = 3;
* @return Whether the tablespace field is set.
*/
@java.lang.Override
public boolean hasTablespace() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string tablespace = 3;
* @return The tablespace.
*/
@java.lang.Override
public java.lang.String getTablespace() {
java.lang.Object ref = tablespace_;
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()) {
tablespace_ = s;
}
return s;
}
}
/**
* optional string tablespace = 3;
* @return The bytes for tablespace.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTablespaceBytes() {
java.lang.Object ref = tablespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tablespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TABLES_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList tables_;
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @return A list containing the tables.
*/
public com.google.protobuf.ProtocolStringList
getTablesList() {
return tables_;
}
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @return The count of tables.
*/
public int getTablesCount() {
return tables_.size();
}
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @param index The index of the element to return.
* @return The tables at the given index.
*/
public java.lang.String getTables(int index) {
return tables_.get(index);
}
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @param index The index of the value to return.
* @return The bytes of the tables at the given index.
*/
public com.google.protobuf.ByteString
getTablesBytes(int index) {
return tables_.getByteString(index);
}
public static final int STREAMS_FIELD_NUMBER = 5;
private com.google.protobuf.LazyStringList streams_;
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @return A list containing the streams.
*/
public com.google.protobuf.ProtocolStringList
getStreamsList() {
return streams_;
}
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @return The count of streams.
*/
public int getStreamsCount() {
return streams_.size();
}
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @param index The index of the element to return.
* @return The streams at the given index.
*/
public java.lang.String getStreams(int index) {
return streams_.get(index);
}
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @param index The index of the value to return.
* @return The bytes of the streams at the given index.
*/
public com.google.protobuf.ByteString
getStreamsBytes(int index) {
return streams_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, path_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tablespace_);
}
for (int i = 0; i < tables_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, tables_.getRaw(i));
}
for (int i = 0; i < streams_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, streams_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, path_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tablespace_);
}
{
int dataSize = 0;
for (int i = 0; i < tables_.size(); i++) {
dataSize += computeStringSizeNoTag(tables_.getRaw(i));
}
size += dataSize;
size += 1 * getTablesList().size();
}
{
int dataSize = 0;
for (int i = 0; i < streams_.size(); i++) {
dataSize += computeStringSizeNoTag(streams_.getRaw(i));
}
size += dataSize;
size += 1 * getStreamsList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.yamcs.protobuf.DatabaseInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.DatabaseInfo other = (org.yamcs.protobuf.DatabaseInfo) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasPath() != other.hasPath()) return false;
if (hasPath()) {
if (!getPath()
.equals(other.getPath())) return false;
}
if (hasTablespace() != other.hasTablespace()) return false;
if (hasTablespace()) {
if (!getTablespace()
.equals(other.getTablespace())) return false;
}
if (!getTablesList()
.equals(other.getTablesList())) return false;
if (!getStreamsList()
.equals(other.getStreamsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasPath()) {
hash = (37 * hash) + PATH_FIELD_NUMBER;
hash = (53 * hash) + getPath().hashCode();
}
if (hasTablespace()) {
hash = (37 * hash) + TABLESPACE_FIELD_NUMBER;
hash = (53 * hash) + getTablespace().hashCode();
}
if (getTablesCount() > 0) {
hash = (37 * hash) + TABLES_FIELD_NUMBER;
hash = (53 * hash) + getTablesList().hashCode();
}
if (getStreamsCount() > 0) {
hash = (37 * hash) + STREAMS_FIELD_NUMBER;
hash = (53 * hash) + getStreamsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.DatabaseInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.DatabaseInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.DatabaseInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.DatabaseInfo 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.DatabaseInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.DatabaseInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.DatabaseInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.DatabaseInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.yamcs.protobuf.DatabaseInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.DatabaseInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.yamcs.protobuf.DatabaseInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.DatabaseInfo parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.yamcs.protobuf.DatabaseInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yamcs.protobuf.archive.DatabaseInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.archive.DatabaseInfo)
org.yamcs.protobuf.DatabaseInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.DbServiceProto.internal_static_yamcs_protobuf_archive_DatabaseInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.DbServiceProto.internal_static_yamcs_protobuf_archive_DatabaseInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.DatabaseInfo.class, org.yamcs.protobuf.DatabaseInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.DatabaseInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
path_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
tablespace_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
tables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
streams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.DbServiceProto.internal_static_yamcs_protobuf_archive_DatabaseInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.DatabaseInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.DatabaseInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.DatabaseInfo build() {
org.yamcs.protobuf.DatabaseInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.DatabaseInfo buildPartial() {
org.yamcs.protobuf.DatabaseInfo result = new org.yamcs.protobuf.DatabaseInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.path_ = path_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.tablespace_ = tablespace_;
if (((bitField0_ & 0x00000008) != 0)) {
tables_ = tables_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.tables_ = tables_;
if (((bitField0_ & 0x00000010) != 0)) {
streams_ = streams_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000010);
}
result.streams_ = streams_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.DatabaseInfo) {
return mergeFrom((org.yamcs.protobuf.DatabaseInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.DatabaseInfo other) {
if (other == org.yamcs.protobuf.DatabaseInfo.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasPath()) {
bitField0_ |= 0x00000002;
path_ = other.path_;
onChanged();
}
if (other.hasTablespace()) {
bitField0_ |= 0x00000004;
tablespace_ = other.tablespace_;
onChanged();
}
if (!other.tables_.isEmpty()) {
if (tables_.isEmpty()) {
tables_ = other.tables_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureTablesIsMutable();
tables_.addAll(other.tables_);
}
onChanged();
}
if (!other.streams_.isEmpty()) {
if (streams_.isEmpty()) {
streams_ = other.streams_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureStreamsIsMutable();
streams_.addAll(other.streams_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.DatabaseInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.DatabaseInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Database name
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Database name
*
*
* optional string name = 1;
* @return The name.
*/
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;
}
}
/**
*
* Database name
*
*
* optional string name = 1;
* @return The bytes for name.
*/
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;
}
}
/**
*
* Database name
*
*
* optional string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
*
* Database name
*
*
* optional string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Database name
*
*
* optional string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object path_ = "";
/**
*
* Path on server
*
*
* optional string path = 2;
* @return Whether the path field is set.
*/
public boolean hasPath() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Path on server
*
*
* optional string path = 2;
* @return The path.
*/
public java.lang.String getPath() {
java.lang.Object ref = path_;
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()) {
path_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Path on server
*
*
* optional string path = 2;
* @return The bytes for path.
*/
public com.google.protobuf.ByteString
getPathBytes() {
java.lang.Object ref = path_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
path_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Path on server
*
*
* optional string path = 2;
* @param value The path to set.
* @return This builder for chaining.
*/
public Builder setPath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
path_ = value;
onChanged();
return this;
}
/**
*
* Path on server
*
*
* optional string path = 2;
* @return This builder for chaining.
*/
public Builder clearPath() {
bitField0_ = (bitField0_ & ~0x00000002);
path_ = getDefaultInstance().getPath();
onChanged();
return this;
}
/**
*
* Path on server
*
*
* optional string path = 2;
* @param value The bytes for path to set.
* @return This builder for chaining.
*/
public Builder setPathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
path_ = value;
onChanged();
return this;
}
private java.lang.Object tablespace_ = "";
/**
* optional string tablespace = 3;
* @return Whether the tablespace field is set.
*/
public boolean hasTablespace() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string tablespace = 3;
* @return The tablespace.
*/
public java.lang.String getTablespace() {
java.lang.Object ref = tablespace_;
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()) {
tablespace_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string tablespace = 3;
* @return The bytes for tablespace.
*/
public com.google.protobuf.ByteString
getTablespaceBytes() {
java.lang.Object ref = tablespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tablespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string tablespace = 3;
* @param value The tablespace to set.
* @return This builder for chaining.
*/
public Builder setTablespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
tablespace_ = value;
onChanged();
return this;
}
/**
* optional string tablespace = 3;
* @return This builder for chaining.
*/
public Builder clearTablespace() {
bitField0_ = (bitField0_ & ~0x00000004);
tablespace_ = getDefaultInstance().getTablespace();
onChanged();
return this;
}
/**
* optional string tablespace = 3;
* @param value The bytes for tablespace to set.
* @return This builder for chaining.
*/
public Builder setTablespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
tablespace_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList tables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureTablesIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
tables_ = new com.google.protobuf.LazyStringArrayList(tables_);
bitField0_ |= 0x00000008;
}
}
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @return A list containing the tables.
*/
public com.google.protobuf.ProtocolStringList
getTablesList() {
return tables_.getUnmodifiableView();
}
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @return The count of tables.
*/
public int getTablesCount() {
return tables_.size();
}
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @param index The index of the element to return.
* @return The tables at the given index.
*/
public java.lang.String getTables(int index) {
return tables_.get(index);
}
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @param index The index of the value to return.
* @return The bytes of the tables at the given index.
*/
public com.google.protobuf.ByteString
getTablesBytes(int index) {
return tables_.getByteString(index);
}
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @param index The index to set the value at.
* @param value The tables to set.
* @return This builder for chaining.
*/
public Builder setTables(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTablesIsMutable();
tables_.set(index, value);
onChanged();
return this;
}
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @param value The tables to add.
* @return This builder for chaining.
*/
public Builder addTables(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTablesIsMutable();
tables_.add(value);
onChanged();
return this;
}
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @param values The tables to add.
* @return This builder for chaining.
*/
public Builder addAllTables(
java.lang.Iterable values) {
ensureTablesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, tables_);
onChanged();
return this;
}
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @return This builder for chaining.
*/
public Builder clearTables() {
tables_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
* Names of the tables in this database
*
*
* repeated string tables = 4;
* @param value The bytes of the tables to add.
* @return This builder for chaining.
*/
public Builder addTablesBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureTablesIsMutable();
tables_.add(value);
onChanged();
return this;
}
private com.google.protobuf.LazyStringList streams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureStreamsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
streams_ = new com.google.protobuf.LazyStringArrayList(streams_);
bitField0_ |= 0x00000010;
}
}
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @return A list containing the streams.
*/
public com.google.protobuf.ProtocolStringList
getStreamsList() {
return streams_.getUnmodifiableView();
}
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @return The count of streams.
*/
public int getStreamsCount() {
return streams_.size();
}
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @param index The index of the element to return.
* @return The streams at the given index.
*/
public java.lang.String getStreams(int index) {
return streams_.get(index);
}
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @param index The index of the value to return.
* @return The bytes of the streams at the given index.
*/
public com.google.protobuf.ByteString
getStreamsBytes(int index) {
return streams_.getByteString(index);
}
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @param index The index to set the value at.
* @param value The streams to set.
* @return This builder for chaining.
*/
public Builder setStreams(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamsIsMutable();
streams_.set(index, value);
onChanged();
return this;
}
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @param value The streams to add.
* @return This builder for chaining.
*/
public Builder addStreams(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamsIsMutable();
streams_.add(value);
onChanged();
return this;
}
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @param values The streams to add.
* @return This builder for chaining.
*/
public Builder addAllStreams(
java.lang.Iterable values) {
ensureStreamsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, streams_);
onChanged();
return this;
}
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @return This builder for chaining.
*/
public Builder clearStreams() {
streams_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
* Names of the streams in this database
*
*
* repeated string streams = 5;
* @param value The bytes of the streams to add.
* @return This builder for chaining.
*/
public Builder addStreamsBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureStreamsIsMutable();
streams_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yamcs.protobuf.archive.DatabaseInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.archive.DatabaseInfo)
private static final org.yamcs.protobuf.DatabaseInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.DatabaseInfo();
}
public static org.yamcs.protobuf.DatabaseInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DatabaseInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DatabaseInfo(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.yamcs.protobuf.DatabaseInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy