org.yamcs.protobuf.Mdb 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/mdb/mdb.proto
package org.yamcs.protobuf;
public final class Mdb {
private Mdb() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code yamcs.protobuf.mdb.DataSourceType}
*/
public enum DataSourceType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TELEMETERED = 0;
*/
TELEMETERED(0),
/**
* DERIVED = 1;
*/
DERIVED(1),
/**
* CONSTANT = 2;
*/
CONSTANT(2),
/**
* LOCAL = 3;
*/
LOCAL(3),
/**
* SYSTEM = 4;
*/
SYSTEM(4),
/**
* COMMAND = 5;
*/
COMMAND(5),
/**
* COMMAND_HISTORY = 6;
*/
COMMAND_HISTORY(6),
/**
* EXTERNAL1 = 7;
*/
EXTERNAL1(7),
/**
* EXTERNAL2 = 8;
*/
EXTERNAL2(8),
/**
* EXTERNAL3 = 9;
*/
EXTERNAL3(9),
;
/**
* TELEMETERED = 0;
*/
public static final int TELEMETERED_VALUE = 0;
/**
* DERIVED = 1;
*/
public static final int DERIVED_VALUE = 1;
/**
* CONSTANT = 2;
*/
public static final int CONSTANT_VALUE = 2;
/**
* LOCAL = 3;
*/
public static final int LOCAL_VALUE = 3;
/**
* SYSTEM = 4;
*/
public static final int SYSTEM_VALUE = 4;
/**
* COMMAND = 5;
*/
public static final int COMMAND_VALUE = 5;
/**
* COMMAND_HISTORY = 6;
*/
public static final int COMMAND_HISTORY_VALUE = 6;
/**
* EXTERNAL1 = 7;
*/
public static final int EXTERNAL1_VALUE = 7;
/**
* EXTERNAL2 = 8;
*/
public static final int EXTERNAL2_VALUE = 8;
/**
* EXTERNAL3 = 9;
*/
public static final int EXTERNAL3_VALUE = 9;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataSourceType valueOf(int value) {
return forNumber(value);
}
public static DataSourceType forNumber(int value) {
switch (value) {
case 0: return TELEMETERED;
case 1: return DERIVED;
case 2: return CONSTANT;
case 3: return LOCAL;
case 4: return SYSTEM;
case 5: return COMMAND;
case 6: return COMMAND_HISTORY;
case 7: return EXTERNAL1;
case 8: return EXTERNAL2;
case 9: return EXTERNAL3;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
DataSourceType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public DataSourceType findValueByNumber(int number) {
return DataSourceType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.getDescriptor().getEnumTypes().get(0);
}
private static final DataSourceType[] VALUES = values();
public static DataSourceType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private DataSourceType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.mdb.DataSourceType)
}
/**
* Protobuf enum {@code yamcs.protobuf.mdb.AlarmLevelType}
*/
public enum AlarmLevelType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* NORMAL = 0;
*/
NORMAL(0),
/**
* WATCH = 1;
*/
WATCH(1),
/**
* WARNING = 2;
*/
WARNING(2),
/**
* DISTRESS = 3;
*/
DISTRESS(3),
/**
* CRITICAL = 4;
*/
CRITICAL(4),
/**
* SEVERE = 5;
*/
SEVERE(5),
;
/**
* NORMAL = 0;
*/
public static final int NORMAL_VALUE = 0;
/**
* WATCH = 1;
*/
public static final int WATCH_VALUE = 1;
/**
* WARNING = 2;
*/
public static final int WARNING_VALUE = 2;
/**
* DISTRESS = 3;
*/
public static final int DISTRESS_VALUE = 3;
/**
* CRITICAL = 4;
*/
public static final int CRITICAL_VALUE = 4;
/**
* SEVERE = 5;
*/
public static final int SEVERE_VALUE = 5;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AlarmLevelType valueOf(int value) {
return forNumber(value);
}
public static AlarmLevelType forNumber(int value) {
switch (value) {
case 0: return NORMAL;
case 1: return WATCH;
case 2: return WARNING;
case 3: return DISTRESS;
case 4: return CRITICAL;
case 5: return SEVERE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AlarmLevelType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AlarmLevelType findValueByNumber(int number) {
return AlarmLevelType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.getDescriptor().getEnumTypes().get(1);
}
private static final AlarmLevelType[] VALUES = values();
public static AlarmLevelType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private AlarmLevelType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.mdb.AlarmLevelType)
}
public interface MissionDatabaseOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.MissionDatabase)
com.google.protobuf.MessageOrBuilder {
/**
*
*this is the config section in mdb.yaml
*
*
* optional string configName = 1;
*/
boolean hasConfigName();
/**
*
*this is the config section in mdb.yaml
*
*
* optional string configName = 1;
*/
java.lang.String getConfigName();
/**
*
*this is the config section in mdb.yaml
*
*
* optional string configName = 1;
*/
com.google.protobuf.ByteString
getConfigNameBytes();
/**
*
*XTCE root SpaceSystem name
*
*
* optional string name = 2;
*/
boolean hasName();
/**
*
*XTCE root SpaceSystem name
*
*
* optional string name = 2;
*/
java.lang.String getName();
/**
*
*XTCE root SpaceSystem name
*
*
* optional string name = 2;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
*XTCE root SpaceSystem header version
*
*
* optional string version = 3;
*/
boolean hasVersion();
/**
*
*XTCE root SpaceSystem header version
*
*
* optional string version = 3;
*/
java.lang.String getVersion();
/**
*
*XTCE root SpaceSystem header version
*
*
* optional string version = 3;
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
java.util.List
getSpaceSystemList();
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
org.yamcs.protobuf.Mdb.SpaceSystemInfo getSpaceSystem(int index);
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
int getSpaceSystemCount();
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
java.util.List extends org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>
getSpaceSystemOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder getSpaceSystemOrBuilder(
int index);
/**
* optional int32 parameterCount = 6;
*/
boolean hasParameterCount();
/**
* optional int32 parameterCount = 6;
*/
int getParameterCount();
/**
* optional int32 containerCount = 7;
*/
boolean hasContainerCount();
/**
* optional int32 containerCount = 7;
*/
int getContainerCount();
/**
* optional int32 commandCount = 8;
*/
boolean hasCommandCount();
/**
* optional int32 commandCount = 8;
*/
int getCommandCount();
/**
* optional int32 algorithmCount = 9;
*/
boolean hasAlgorithmCount();
/**
* optional int32 algorithmCount = 9;
*/
int getAlgorithmCount();
/**
* optional int32 parameterTypeCount = 10;
*/
boolean hasParameterTypeCount();
/**
* optional int32 parameterTypeCount = 10;
*/
int getParameterTypeCount();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.MissionDatabase}
*/
public static final class MissionDatabase extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.MissionDatabase)
MissionDatabaseOrBuilder {
private static final long serialVersionUID = 0L;
// Use MissionDatabase.newBuilder() to construct.
private MissionDatabase(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MissionDatabase() {
configName_ = "";
name_ = "";
version_ = "";
spaceSystem_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MissionDatabase(
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;
configName_ = bs;
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;
version_ = bs;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
spaceSystem_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
spaceSystem_.add(
input.readMessage(org.yamcs.protobuf.Mdb.SpaceSystemInfo.PARSER, extensionRegistry));
break;
}
case 48: {
bitField0_ |= 0x00000008;
parameterCount_ = input.readInt32();
break;
}
case 56: {
bitField0_ |= 0x00000010;
containerCount_ = input.readInt32();
break;
}
case 64: {
bitField0_ |= 0x00000020;
commandCount_ = input.readInt32();
break;
}
case 72: {
bitField0_ |= 0x00000040;
algorithmCount_ = input.readInt32();
break;
}
case 80: {
bitField0_ |= 0x00000080;
parameterTypeCount_ = input.readInt32();
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)) {
spaceSystem_ = java.util.Collections.unmodifiableList(spaceSystem_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_MissionDatabase_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_MissionDatabase_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.MissionDatabase.class, org.yamcs.protobuf.Mdb.MissionDatabase.Builder.class);
}
private int bitField0_;
public static final int CONFIGNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object configName_;
/**
*
*this is the config section in mdb.yaml
*
*
* optional string configName = 1;
*/
public boolean hasConfigName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*this is the config section in mdb.yaml
*
*
* optional string configName = 1;
*/
public java.lang.String getConfigName() {
java.lang.Object ref = configName_;
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()) {
configName_ = s;
}
return s;
}
}
/**
*
*this is the config section in mdb.yaml
*
*
* optional string configName = 1;
*/
public com.google.protobuf.ByteString
getConfigNameBytes() {
java.lang.Object ref = configName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
configName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
*
*XTCE root SpaceSystem name
*
*
* optional string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*XTCE root SpaceSystem name
*
*
* 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;
}
}
/**
*
*XTCE root SpaceSystem name
*
*
* 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 VERSION_FIELD_NUMBER = 3;
private volatile java.lang.Object version_;
/**
*
*XTCE root SpaceSystem header version
*
*
* optional string version = 3;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*XTCE root SpaceSystem header version
*
*
* optional string version = 3;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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()) {
version_ = s;
}
return s;
}
}
/**
*
*XTCE root SpaceSystem header version
*
*
* optional string version = 3;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SPACESYSTEM_FIELD_NUMBER = 4;
private java.util.List spaceSystem_;
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public java.util.List getSpaceSystemList() {
return spaceSystem_;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>
getSpaceSystemOrBuilderList() {
return spaceSystem_;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public int getSpaceSystemCount() {
return spaceSystem_.size();
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public org.yamcs.protobuf.Mdb.SpaceSystemInfo getSpaceSystem(int index) {
return spaceSystem_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder getSpaceSystemOrBuilder(
int index) {
return spaceSystem_.get(index);
}
public static final int PARAMETERCOUNT_FIELD_NUMBER = 6;
private int parameterCount_;
/**
* optional int32 parameterCount = 6;
*/
public boolean hasParameterCount() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int32 parameterCount = 6;
*/
public int getParameterCount() {
return parameterCount_;
}
public static final int CONTAINERCOUNT_FIELD_NUMBER = 7;
private int containerCount_;
/**
* optional int32 containerCount = 7;
*/
public boolean hasContainerCount() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int32 containerCount = 7;
*/
public int getContainerCount() {
return containerCount_;
}
public static final int COMMANDCOUNT_FIELD_NUMBER = 8;
private int commandCount_;
/**
* optional int32 commandCount = 8;
*/
public boolean hasCommandCount() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 commandCount = 8;
*/
public int getCommandCount() {
return commandCount_;
}
public static final int ALGORITHMCOUNT_FIELD_NUMBER = 9;
private int algorithmCount_;
/**
* optional int32 algorithmCount = 9;
*/
public boolean hasAlgorithmCount() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int32 algorithmCount = 9;
*/
public int getAlgorithmCount() {
return algorithmCount_;
}
public static final int PARAMETERTYPECOUNT_FIELD_NUMBER = 10;
private int parameterTypeCount_;
/**
* optional int32 parameterTypeCount = 10;
*/
public boolean hasParameterTypeCount() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int32 parameterTypeCount = 10;
*/
public int getParameterTypeCount() {
return parameterTypeCount_;
}
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, configName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, version_);
}
for (int i = 0; i < spaceSystem_.size(); i++) {
output.writeMessage(4, spaceSystem_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeInt32(6, parameterCount_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt32(7, containerCount_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt32(8, commandCount_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeInt32(9, algorithmCount_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeInt32(10, parameterTypeCount_);
}
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, configName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, version_);
}
for (int i = 0; i < spaceSystem_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, spaceSystem_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, parameterCount_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(7, containerCount_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(8, commandCount_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(9, algorithmCount_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(10, parameterTypeCount_);
}
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.Mdb.MissionDatabase)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.MissionDatabase other = (org.yamcs.protobuf.Mdb.MissionDatabase) obj;
if (hasConfigName() != other.hasConfigName()) return false;
if (hasConfigName()) {
if (!getConfigName()
.equals(other.getConfigName())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasVersion() != other.hasVersion()) return false;
if (hasVersion()) {
if (!getVersion()
.equals(other.getVersion())) return false;
}
if (!getSpaceSystemList()
.equals(other.getSpaceSystemList())) return false;
if (hasParameterCount() != other.hasParameterCount()) return false;
if (hasParameterCount()) {
if (getParameterCount()
!= other.getParameterCount()) return false;
}
if (hasContainerCount() != other.hasContainerCount()) return false;
if (hasContainerCount()) {
if (getContainerCount()
!= other.getContainerCount()) return false;
}
if (hasCommandCount() != other.hasCommandCount()) return false;
if (hasCommandCount()) {
if (getCommandCount()
!= other.getCommandCount()) return false;
}
if (hasAlgorithmCount() != other.hasAlgorithmCount()) return false;
if (hasAlgorithmCount()) {
if (getAlgorithmCount()
!= other.getAlgorithmCount()) return false;
}
if (hasParameterTypeCount() != other.hasParameterTypeCount()) return false;
if (hasParameterTypeCount()) {
if (getParameterTypeCount()
!= other.getParameterTypeCount()) 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 (hasConfigName()) {
hash = (37 * hash) + CONFIGNAME_FIELD_NUMBER;
hash = (53 * hash) + getConfigName().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
}
if (getSpaceSystemCount() > 0) {
hash = (37 * hash) + SPACESYSTEM_FIELD_NUMBER;
hash = (53 * hash) + getSpaceSystemList().hashCode();
}
if (hasParameterCount()) {
hash = (37 * hash) + PARAMETERCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getParameterCount();
}
if (hasContainerCount()) {
hash = (37 * hash) + CONTAINERCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getContainerCount();
}
if (hasCommandCount()) {
hash = (37 * hash) + COMMANDCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getCommandCount();
}
if (hasAlgorithmCount()) {
hash = (37 * hash) + ALGORITHMCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getAlgorithmCount();
}
if (hasParameterTypeCount()) {
hash = (37 * hash) + PARAMETERTYPECOUNT_FIELD_NUMBER;
hash = (53 * hash) + getParameterTypeCount();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.MissionDatabase parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.MissionDatabase 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.Mdb.MissionDatabase parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.MissionDatabase 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.Mdb.MissionDatabase parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.MissionDatabase parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.MissionDatabase parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.MissionDatabase 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.Mdb.MissionDatabase parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.MissionDatabase 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.Mdb.MissionDatabase parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.MissionDatabase 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.Mdb.MissionDatabase 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.mdb.MissionDatabase}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.MissionDatabase)
org.yamcs.protobuf.Mdb.MissionDatabaseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_MissionDatabase_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_MissionDatabase_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.MissionDatabase.class, org.yamcs.protobuf.Mdb.MissionDatabase.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.MissionDatabase.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getSpaceSystemFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
configName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
if (spaceSystemBuilder_ == null) {
spaceSystem_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
spaceSystemBuilder_.clear();
}
parameterCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
containerCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
commandCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
algorithmCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
parameterTypeCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_MissionDatabase_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.MissionDatabase getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.MissionDatabase.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.MissionDatabase build() {
org.yamcs.protobuf.Mdb.MissionDatabase result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.MissionDatabase buildPartial() {
org.yamcs.protobuf.Mdb.MissionDatabase result = new org.yamcs.protobuf.Mdb.MissionDatabase(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.configName_ = configName_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.version_ = version_;
if (spaceSystemBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
spaceSystem_ = java.util.Collections.unmodifiableList(spaceSystem_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.spaceSystem_ = spaceSystem_;
} else {
result.spaceSystem_ = spaceSystemBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.parameterCount_ = parameterCount_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.containerCount_ = containerCount_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.commandCount_ = commandCount_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.algorithmCount_ = algorithmCount_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.parameterTypeCount_ = parameterTypeCount_;
to_bitField0_ |= 0x00000080;
}
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.Mdb.MissionDatabase) {
return mergeFrom((org.yamcs.protobuf.Mdb.MissionDatabase)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.MissionDatabase other) {
if (other == org.yamcs.protobuf.Mdb.MissionDatabase.getDefaultInstance()) return this;
if (other.hasConfigName()) {
bitField0_ |= 0x00000001;
configName_ = other.configName_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
onChanged();
}
if (other.hasVersion()) {
bitField0_ |= 0x00000004;
version_ = other.version_;
onChanged();
}
if (spaceSystemBuilder_ == null) {
if (!other.spaceSystem_.isEmpty()) {
if (spaceSystem_.isEmpty()) {
spaceSystem_ = other.spaceSystem_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureSpaceSystemIsMutable();
spaceSystem_.addAll(other.spaceSystem_);
}
onChanged();
}
} else {
if (!other.spaceSystem_.isEmpty()) {
if (spaceSystemBuilder_.isEmpty()) {
spaceSystemBuilder_.dispose();
spaceSystemBuilder_ = null;
spaceSystem_ = other.spaceSystem_;
bitField0_ = (bitField0_ & ~0x00000008);
spaceSystemBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSpaceSystemFieldBuilder() : null;
} else {
spaceSystemBuilder_.addAllMessages(other.spaceSystem_);
}
}
}
if (other.hasParameterCount()) {
setParameterCount(other.getParameterCount());
}
if (other.hasContainerCount()) {
setContainerCount(other.getContainerCount());
}
if (other.hasCommandCount()) {
setCommandCount(other.getCommandCount());
}
if (other.hasAlgorithmCount()) {
setAlgorithmCount(other.getAlgorithmCount());
}
if (other.hasParameterTypeCount()) {
setParameterTypeCount(other.getParameterTypeCount());
}
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.Mdb.MissionDatabase parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.MissionDatabase) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object configName_ = "";
/**
*
*this is the config section in mdb.yaml
*
*
* optional string configName = 1;
*/
public boolean hasConfigName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*this is the config section in mdb.yaml
*
*
* optional string configName = 1;
*/
public java.lang.String getConfigName() {
java.lang.Object ref = configName_;
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()) {
configName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*this is the config section in mdb.yaml
*
*
* optional string configName = 1;
*/
public com.google.protobuf.ByteString
getConfigNameBytes() {
java.lang.Object ref = configName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
configName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*this is the config section in mdb.yaml
*
*
* optional string configName = 1;
*/
public Builder setConfigName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
configName_ = value;
onChanged();
return this;
}
/**
*
*this is the config section in mdb.yaml
*
*
* optional string configName = 1;
*/
public Builder clearConfigName() {
bitField0_ = (bitField0_ & ~0x00000001);
configName_ = getDefaultInstance().getConfigName();
onChanged();
return this;
}
/**
*
*this is the config section in mdb.yaml
*
*
* optional string configName = 1;
*/
public Builder setConfigNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
configName_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
*XTCE root SpaceSystem name
*
*
* optional string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*XTCE root SpaceSystem name
*
*
* 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;
}
}
/**
*
*XTCE root SpaceSystem name
*
*
* 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;
}
}
/**
*
*XTCE root SpaceSystem name
*
*
* optional string name = 2;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
*
*XTCE root SpaceSystem name
*
*
* optional string name = 2;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
*XTCE root SpaceSystem name
*
*
* 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 version_ = "";
/**
*
*XTCE root SpaceSystem header version
*
*
* optional string version = 3;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*XTCE root SpaceSystem header version
*
*
* optional string version = 3;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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()) {
version_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*XTCE root SpaceSystem header version
*
*
* optional string version = 3;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*XTCE root SpaceSystem header version
*
*
* optional string version = 3;
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
version_ = value;
onChanged();
return this;
}
/**
*
*XTCE root SpaceSystem header version
*
*
* optional string version = 3;
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
*
*XTCE root SpaceSystem header version
*
*
* optional string version = 3;
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
version_ = value;
onChanged();
return this;
}
private java.util.List spaceSystem_ =
java.util.Collections.emptyList();
private void ensureSpaceSystemIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
spaceSystem_ = new java.util.ArrayList(spaceSystem_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.SpaceSystemInfo, org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder, org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder> spaceSystemBuilder_;
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public java.util.List getSpaceSystemList() {
if (spaceSystemBuilder_ == null) {
return java.util.Collections.unmodifiableList(spaceSystem_);
} else {
return spaceSystemBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public int getSpaceSystemCount() {
if (spaceSystemBuilder_ == null) {
return spaceSystem_.size();
} else {
return spaceSystemBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public org.yamcs.protobuf.Mdb.SpaceSystemInfo getSpaceSystem(int index) {
if (spaceSystemBuilder_ == null) {
return spaceSystem_.get(index);
} else {
return spaceSystemBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public Builder setSpaceSystem(
int index, org.yamcs.protobuf.Mdb.SpaceSystemInfo value) {
if (spaceSystemBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpaceSystemIsMutable();
spaceSystem_.set(index, value);
onChanged();
} else {
spaceSystemBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public Builder setSpaceSystem(
int index, org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder builderForValue) {
if (spaceSystemBuilder_ == null) {
ensureSpaceSystemIsMutable();
spaceSystem_.set(index, builderForValue.build());
onChanged();
} else {
spaceSystemBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public Builder addSpaceSystem(org.yamcs.protobuf.Mdb.SpaceSystemInfo value) {
if (spaceSystemBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpaceSystemIsMutable();
spaceSystem_.add(value);
onChanged();
} else {
spaceSystemBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public Builder addSpaceSystem(
int index, org.yamcs.protobuf.Mdb.SpaceSystemInfo value) {
if (spaceSystemBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpaceSystemIsMutable();
spaceSystem_.add(index, value);
onChanged();
} else {
spaceSystemBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public Builder addSpaceSystem(
org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder builderForValue) {
if (spaceSystemBuilder_ == null) {
ensureSpaceSystemIsMutable();
spaceSystem_.add(builderForValue.build());
onChanged();
} else {
spaceSystemBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public Builder addSpaceSystem(
int index, org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder builderForValue) {
if (spaceSystemBuilder_ == null) {
ensureSpaceSystemIsMutable();
spaceSystem_.add(index, builderForValue.build());
onChanged();
} else {
spaceSystemBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public Builder addAllSpaceSystem(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.SpaceSystemInfo> values) {
if (spaceSystemBuilder_ == null) {
ensureSpaceSystemIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, spaceSystem_);
onChanged();
} else {
spaceSystemBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public Builder clearSpaceSystem() {
if (spaceSystemBuilder_ == null) {
spaceSystem_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
spaceSystemBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public Builder removeSpaceSystem(int index) {
if (spaceSystemBuilder_ == null) {
ensureSpaceSystemIsMutable();
spaceSystem_.remove(index);
onChanged();
} else {
spaceSystemBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder getSpaceSystemBuilder(
int index) {
return getSpaceSystemFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder getSpaceSystemOrBuilder(
int index) {
if (spaceSystemBuilder_ == null) {
return spaceSystem_.get(index); } else {
return spaceSystemBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>
getSpaceSystemOrBuilderList() {
if (spaceSystemBuilder_ != null) {
return spaceSystemBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(spaceSystem_);
}
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder addSpaceSystemBuilder() {
return getSpaceSystemFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.SpaceSystemInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder addSpaceSystemBuilder(
int index) {
return getSpaceSystemFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.SpaceSystemInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4;
*/
public java.util.List
getSpaceSystemBuilderList() {
return getSpaceSystemFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.SpaceSystemInfo, org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder, org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>
getSpaceSystemFieldBuilder() {
if (spaceSystemBuilder_ == null) {
spaceSystemBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.SpaceSystemInfo, org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder, org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>(
spaceSystem_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
spaceSystem_ = null;
}
return spaceSystemBuilder_;
}
private int parameterCount_ ;
/**
* optional int32 parameterCount = 6;
*/
public boolean hasParameterCount() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int32 parameterCount = 6;
*/
public int getParameterCount() {
return parameterCount_;
}
/**
* optional int32 parameterCount = 6;
*/
public Builder setParameterCount(int value) {
bitField0_ |= 0x00000010;
parameterCount_ = value;
onChanged();
return this;
}
/**
* optional int32 parameterCount = 6;
*/
public Builder clearParameterCount() {
bitField0_ = (bitField0_ & ~0x00000010);
parameterCount_ = 0;
onChanged();
return this;
}
private int containerCount_ ;
/**
* optional int32 containerCount = 7;
*/
public boolean hasContainerCount() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 containerCount = 7;
*/
public int getContainerCount() {
return containerCount_;
}
/**
* optional int32 containerCount = 7;
*/
public Builder setContainerCount(int value) {
bitField0_ |= 0x00000020;
containerCount_ = value;
onChanged();
return this;
}
/**
* optional int32 containerCount = 7;
*/
public Builder clearContainerCount() {
bitField0_ = (bitField0_ & ~0x00000020);
containerCount_ = 0;
onChanged();
return this;
}
private int commandCount_ ;
/**
* optional int32 commandCount = 8;
*/
public boolean hasCommandCount() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int32 commandCount = 8;
*/
public int getCommandCount() {
return commandCount_;
}
/**
* optional int32 commandCount = 8;
*/
public Builder setCommandCount(int value) {
bitField0_ |= 0x00000040;
commandCount_ = value;
onChanged();
return this;
}
/**
* optional int32 commandCount = 8;
*/
public Builder clearCommandCount() {
bitField0_ = (bitField0_ & ~0x00000040);
commandCount_ = 0;
onChanged();
return this;
}
private int algorithmCount_ ;
/**
* optional int32 algorithmCount = 9;
*/
public boolean hasAlgorithmCount() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int32 algorithmCount = 9;
*/
public int getAlgorithmCount() {
return algorithmCount_;
}
/**
* optional int32 algorithmCount = 9;
*/
public Builder setAlgorithmCount(int value) {
bitField0_ |= 0x00000080;
algorithmCount_ = value;
onChanged();
return this;
}
/**
* optional int32 algorithmCount = 9;
*/
public Builder clearAlgorithmCount() {
bitField0_ = (bitField0_ & ~0x00000080);
algorithmCount_ = 0;
onChanged();
return this;
}
private int parameterTypeCount_ ;
/**
* optional int32 parameterTypeCount = 10;
*/
public boolean hasParameterTypeCount() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int32 parameterTypeCount = 10;
*/
public int getParameterTypeCount() {
return parameterTypeCount_;
}
/**
* optional int32 parameterTypeCount = 10;
*/
public Builder setParameterTypeCount(int value) {
bitField0_ |= 0x00000100;
parameterTypeCount_ = value;
onChanged();
return this;
}
/**
* optional int32 parameterTypeCount = 10;
*/
public Builder clearParameterTypeCount() {
bitField0_ = (bitField0_ & ~0x00000100);
parameterTypeCount_ = 0;
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.mdb.MissionDatabase)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.MissionDatabase)
private static final org.yamcs.protobuf.Mdb.MissionDatabase DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.MissionDatabase();
}
public static org.yamcs.protobuf.Mdb.MissionDatabase getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MissionDatabase parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MissionDatabase(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.Mdb.MissionDatabase getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface HistoryInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.HistoryInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional string version = 1;
*/
boolean hasVersion();
/**
* optional string version = 1;
*/
java.lang.String getVersion();
/**
* optional string version = 1;
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* optional string date = 2;
*/
boolean hasDate();
/**
* optional string date = 2;
*/
java.lang.String getDate();
/**
* optional string date = 2;
*/
com.google.protobuf.ByteString
getDateBytes();
/**
* optional string message = 3;
*/
boolean hasMessage();
/**
* optional string message = 3;
*/
java.lang.String getMessage();
/**
* optional string message = 3;
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* optional string author = 4;
*/
boolean hasAuthor();
/**
* optional string author = 4;
*/
java.lang.String getAuthor();
/**
* optional string author = 4;
*/
com.google.protobuf.ByteString
getAuthorBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.HistoryInfo}
*/
public static final class HistoryInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.HistoryInfo)
HistoryInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use HistoryInfo.newBuilder() to construct.
private HistoryInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HistoryInfo() {
version_ = "";
date_ = "";
message_ = "";
author_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HistoryInfo(
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;
version_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
date_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
message_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
author_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_HistoryInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_HistoryInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.HistoryInfo.class, org.yamcs.protobuf.Mdb.HistoryInfo.Builder.class);
}
private int bitField0_;
public static final int VERSION_FIELD_NUMBER = 1;
private volatile java.lang.Object version_;
/**
* optional string version = 1;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string version = 1;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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()) {
version_ = s;
}
return s;
}
}
/**
* optional string version = 1;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATE_FIELD_NUMBER = 2;
private volatile java.lang.Object date_;
/**
* optional string date = 2;
*/
public boolean hasDate() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string date = 2;
*/
public java.lang.String getDate() {
java.lang.Object ref = date_;
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()) {
date_ = s;
}
return s;
}
}
/**
* optional string date = 2;
*/
public com.google.protobuf.ByteString
getDateBytes() {
java.lang.Object ref = date_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
date_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MESSAGE_FIELD_NUMBER = 3;
private volatile java.lang.Object message_;
/**
* optional string message = 3;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string message = 3;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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()) {
message_ = s;
}
return s;
}
}
/**
* optional string message = 3;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int AUTHOR_FIELD_NUMBER = 4;
private volatile java.lang.Object author_;
/**
* optional string author = 4;
*/
public boolean hasAuthor() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string author = 4;
*/
public java.lang.String getAuthor() {
java.lang.Object ref = author_;
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()) {
author_ = s;
}
return s;
}
}
/**
* optional string author = 4;
*/
public com.google.protobuf.ByteString
getAuthorBytes() {
java.lang.Object ref = author_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
author_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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, version_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, date_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, message_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, author_);
}
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, version_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, date_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, message_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, author_);
}
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.Mdb.HistoryInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.HistoryInfo other = (org.yamcs.protobuf.Mdb.HistoryInfo) obj;
if (hasVersion() != other.hasVersion()) return false;
if (hasVersion()) {
if (!getVersion()
.equals(other.getVersion())) return false;
}
if (hasDate() != other.hasDate()) return false;
if (hasDate()) {
if (!getDate()
.equals(other.getDate())) return false;
}
if (hasMessage() != other.hasMessage()) return false;
if (hasMessage()) {
if (!getMessage()
.equals(other.getMessage())) return false;
}
if (hasAuthor() != other.hasAuthor()) return false;
if (hasAuthor()) {
if (!getAuthor()
.equals(other.getAuthor())) 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 (hasVersion()) {
hash = (37 * hash) + VERSION_FIELD_NUMBER;
hash = (53 * hash) + getVersion().hashCode();
}
if (hasDate()) {
hash = (37 * hash) + DATE_FIELD_NUMBER;
hash = (53 * hash) + getDate().hashCode();
}
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
if (hasAuthor()) {
hash = (37 * hash) + AUTHOR_FIELD_NUMBER;
hash = (53 * hash) + getAuthor().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.HistoryInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.HistoryInfo 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.Mdb.HistoryInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.HistoryInfo 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.Mdb.HistoryInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.HistoryInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.HistoryInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.HistoryInfo 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.Mdb.HistoryInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.HistoryInfo 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.Mdb.HistoryInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.HistoryInfo 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.Mdb.HistoryInfo 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.mdb.HistoryInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.HistoryInfo)
org.yamcs.protobuf.Mdb.HistoryInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_HistoryInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_HistoryInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.HistoryInfo.class, org.yamcs.protobuf.Mdb.HistoryInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.HistoryInfo.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();
version_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
date_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
message_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
author_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_HistoryInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.HistoryInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.HistoryInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.HistoryInfo build() {
org.yamcs.protobuf.Mdb.HistoryInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.HistoryInfo buildPartial() {
org.yamcs.protobuf.Mdb.HistoryInfo result = new org.yamcs.protobuf.Mdb.HistoryInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.date_ = date_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.message_ = message_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.author_ = author_;
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.Mdb.HistoryInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.HistoryInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.HistoryInfo other) {
if (other == org.yamcs.protobuf.Mdb.HistoryInfo.getDefaultInstance()) return this;
if (other.hasVersion()) {
bitField0_ |= 0x00000001;
version_ = other.version_;
onChanged();
}
if (other.hasDate()) {
bitField0_ |= 0x00000002;
date_ = other.date_;
onChanged();
}
if (other.hasMessage()) {
bitField0_ |= 0x00000004;
message_ = other.message_;
onChanged();
}
if (other.hasAuthor()) {
bitField0_ |= 0x00000008;
author_ = other.author_;
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.Mdb.HistoryInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.HistoryInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object version_ = "";
/**
* optional string version = 1;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string version = 1;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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()) {
version_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string version = 1;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string version = 1;
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
version_ = value;
onChanged();
return this;
}
/**
* optional string version = 1;
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* optional string version = 1;
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
version_ = value;
onChanged();
return this;
}
private java.lang.Object date_ = "";
/**
* optional string date = 2;
*/
public boolean hasDate() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string date = 2;
*/
public java.lang.String getDate() {
java.lang.Object ref = date_;
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()) {
date_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string date = 2;
*/
public com.google.protobuf.ByteString
getDateBytes() {
java.lang.Object ref = date_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
date_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string date = 2;
*/
public Builder setDate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
date_ = value;
onChanged();
return this;
}
/**
* optional string date = 2;
*/
public Builder clearDate() {
bitField0_ = (bitField0_ & ~0x00000002);
date_ = getDefaultInstance().getDate();
onChanged();
return this;
}
/**
* optional string date = 2;
*/
public Builder setDateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
date_ = value;
onChanged();
return this;
}
private java.lang.Object message_ = "";
/**
* optional string message = 3;
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string message = 3;
*/
public java.lang.String getMessage() {
java.lang.Object ref = message_;
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()) {
message_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string message = 3;
*/
public com.google.protobuf.ByteString
getMessageBytes() {
java.lang.Object ref = message_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
message_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string message = 3;
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
message_ = value;
onChanged();
return this;
}
/**
* optional string message = 3;
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000004);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* optional string message = 3;
*/
public Builder setMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
message_ = value;
onChanged();
return this;
}
private java.lang.Object author_ = "";
/**
* optional string author = 4;
*/
public boolean hasAuthor() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string author = 4;
*/
public java.lang.String getAuthor() {
java.lang.Object ref = author_;
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()) {
author_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string author = 4;
*/
public com.google.protobuf.ByteString
getAuthorBytes() {
java.lang.Object ref = author_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
author_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string author = 4;
*/
public Builder setAuthor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
author_ = value;
onChanged();
return this;
}
/**
* optional string author = 4;
*/
public Builder clearAuthor() {
bitField0_ = (bitField0_ & ~0x00000008);
author_ = getDefaultInstance().getAuthor();
onChanged();
return this;
}
/**
* optional string author = 4;
*/
public Builder setAuthorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
author_ = 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.mdb.HistoryInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.HistoryInfo)
private static final org.yamcs.protobuf.Mdb.HistoryInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.HistoryInfo();
}
public static org.yamcs.protobuf.Mdb.HistoryInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HistoryInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HistoryInfo(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.Mdb.HistoryInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UnitInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.UnitInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional string unit = 1;
*/
boolean hasUnit();
/**
* optional string unit = 1;
*/
java.lang.String getUnit();
/**
* optional string unit = 1;
*/
com.google.protobuf.ByteString
getUnitBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.UnitInfo}
*/
public static final class UnitInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.UnitInfo)
UnitInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use UnitInfo.newBuilder() to construct.
private UnitInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UnitInfo() {
unit_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UnitInfo(
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;
unit_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_UnitInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_UnitInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.UnitInfo.class, org.yamcs.protobuf.Mdb.UnitInfo.Builder.class);
}
private int bitField0_;
public static final int UNIT_FIELD_NUMBER = 1;
private volatile java.lang.Object unit_;
/**
* optional string unit = 1;
*/
public boolean hasUnit() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string unit = 1;
*/
public java.lang.String getUnit() {
java.lang.Object ref = unit_;
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()) {
unit_ = s;
}
return s;
}
}
/**
* optional string unit = 1;
*/
public com.google.protobuf.ByteString
getUnitBytes() {
java.lang.Object ref = unit_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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, unit_);
}
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, unit_);
}
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.Mdb.UnitInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.UnitInfo other = (org.yamcs.protobuf.Mdb.UnitInfo) obj;
if (hasUnit() != other.hasUnit()) return false;
if (hasUnit()) {
if (!getUnit()
.equals(other.getUnit())) 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 (hasUnit()) {
hash = (37 * hash) + UNIT_FIELD_NUMBER;
hash = (53 * hash) + getUnit().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.UnitInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.UnitInfo 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.Mdb.UnitInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.UnitInfo 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.Mdb.UnitInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.UnitInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.UnitInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.UnitInfo 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.Mdb.UnitInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.UnitInfo 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.Mdb.UnitInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.UnitInfo 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.Mdb.UnitInfo 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.mdb.UnitInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.UnitInfo)
org.yamcs.protobuf.Mdb.UnitInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_UnitInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_UnitInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.UnitInfo.class, org.yamcs.protobuf.Mdb.UnitInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.UnitInfo.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();
unit_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_UnitInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.UnitInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.UnitInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.UnitInfo build() {
org.yamcs.protobuf.Mdb.UnitInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.UnitInfo buildPartial() {
org.yamcs.protobuf.Mdb.UnitInfo result = new org.yamcs.protobuf.Mdb.UnitInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.unit_ = unit_;
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.Mdb.UnitInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.UnitInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.UnitInfo other) {
if (other == org.yamcs.protobuf.Mdb.UnitInfo.getDefaultInstance()) return this;
if (other.hasUnit()) {
bitField0_ |= 0x00000001;
unit_ = other.unit_;
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.Mdb.UnitInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.UnitInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object unit_ = "";
/**
* optional string unit = 1;
*/
public boolean hasUnit() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string unit = 1;
*/
public java.lang.String getUnit() {
java.lang.Object ref = unit_;
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()) {
unit_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string unit = 1;
*/
public com.google.protobuf.ByteString
getUnitBytes() {
java.lang.Object ref = unit_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
unit_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string unit = 1;
*/
public Builder setUnit(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
unit_ = value;
onChanged();
return this;
}
/**
* optional string unit = 1;
*/
public Builder clearUnit() {
bitField0_ = (bitField0_ & ~0x00000001);
unit_ = getDefaultInstance().getUnit();
onChanged();
return this;
}
/**
* optional string unit = 1;
*/
public Builder setUnitBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
unit_ = 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.mdb.UnitInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.UnitInfo)
private static final org.yamcs.protobuf.Mdb.UnitInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.UnitInfo();
}
public static org.yamcs.protobuf.Mdb.UnitInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UnitInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UnitInfo(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.Mdb.UnitInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AlarmRangeOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.AlarmRange)
com.google.protobuf.MessageOrBuilder {
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
boolean hasLevel();
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
org.yamcs.protobuf.Mdb.AlarmLevelType getLevel();
/**
* optional double minInclusive = 2;
*/
boolean hasMinInclusive();
/**
* optional double minInclusive = 2;
*/
double getMinInclusive();
/**
* optional double maxInclusive = 3;
*/
boolean hasMaxInclusive();
/**
* optional double maxInclusive = 3;
*/
double getMaxInclusive();
/**
* optional double minExclusive = 4;
*/
boolean hasMinExclusive();
/**
* optional double minExclusive = 4;
*/
double getMinExclusive();
/**
* optional double maxExclusive = 5;
*/
boolean hasMaxExclusive();
/**
* optional double maxExclusive = 5;
*/
double getMaxExclusive();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.AlarmRange}
*/
public static final class AlarmRange extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.AlarmRange)
AlarmRangeOrBuilder {
private static final long serialVersionUID = 0L;
// Use AlarmRange.newBuilder() to construct.
private AlarmRange(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AlarmRange() {
level_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AlarmRange(
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 8: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.AlarmLevelType value = org.yamcs.protobuf.Mdb.AlarmLevelType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
level_ = rawValue;
}
break;
}
case 17: {
bitField0_ |= 0x00000002;
minInclusive_ = input.readDouble();
break;
}
case 25: {
bitField0_ |= 0x00000004;
maxInclusive_ = input.readDouble();
break;
}
case 33: {
bitField0_ |= 0x00000008;
minExclusive_ = input.readDouble();
break;
}
case 41: {
bitField0_ |= 0x00000010;
maxExclusive_ = input.readDouble();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AlarmRange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AlarmRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.AlarmRange.class, org.yamcs.protobuf.Mdb.AlarmRange.Builder.class);
}
private int bitField0_;
public static final int LEVEL_FIELD_NUMBER = 1;
private int level_;
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
public boolean hasLevel() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
public org.yamcs.protobuf.Mdb.AlarmLevelType getLevel() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.AlarmLevelType result = org.yamcs.protobuf.Mdb.AlarmLevelType.valueOf(level_);
return result == null ? org.yamcs.protobuf.Mdb.AlarmLevelType.NORMAL : result;
}
public static final int MININCLUSIVE_FIELD_NUMBER = 2;
private double minInclusive_;
/**
* optional double minInclusive = 2;
*/
public boolean hasMinInclusive() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double minInclusive = 2;
*/
public double getMinInclusive() {
return minInclusive_;
}
public static final int MAXINCLUSIVE_FIELD_NUMBER = 3;
private double maxInclusive_;
/**
* optional double maxInclusive = 3;
*/
public boolean hasMaxInclusive() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double maxInclusive = 3;
*/
public double getMaxInclusive() {
return maxInclusive_;
}
public static final int MINEXCLUSIVE_FIELD_NUMBER = 4;
private double minExclusive_;
/**
* optional double minExclusive = 4;
*/
public boolean hasMinExclusive() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional double minExclusive = 4;
*/
public double getMinExclusive() {
return minExclusive_;
}
public static final int MAXEXCLUSIVE_FIELD_NUMBER = 5;
private double maxExclusive_;
/**
* optional double maxExclusive = 5;
*/
public boolean hasMaxExclusive() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional double maxExclusive = 5;
*/
public double getMaxExclusive() {
return maxExclusive_;
}
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)) {
output.writeEnum(1, level_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, minInclusive_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(3, maxInclusive_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeDouble(4, minExclusive_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeDouble(5, maxExclusive_);
}
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.CodedOutputStream
.computeEnumSize(1, level_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, minInclusive_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, maxInclusive_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(4, minExclusive_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(5, maxExclusive_);
}
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.Mdb.AlarmRange)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.AlarmRange other = (org.yamcs.protobuf.Mdb.AlarmRange) obj;
if (hasLevel() != other.hasLevel()) return false;
if (hasLevel()) {
if (level_ != other.level_) return false;
}
if (hasMinInclusive() != other.hasMinInclusive()) return false;
if (hasMinInclusive()) {
if (java.lang.Double.doubleToLongBits(getMinInclusive())
!= java.lang.Double.doubleToLongBits(
other.getMinInclusive())) return false;
}
if (hasMaxInclusive() != other.hasMaxInclusive()) return false;
if (hasMaxInclusive()) {
if (java.lang.Double.doubleToLongBits(getMaxInclusive())
!= java.lang.Double.doubleToLongBits(
other.getMaxInclusive())) return false;
}
if (hasMinExclusive() != other.hasMinExclusive()) return false;
if (hasMinExclusive()) {
if (java.lang.Double.doubleToLongBits(getMinExclusive())
!= java.lang.Double.doubleToLongBits(
other.getMinExclusive())) return false;
}
if (hasMaxExclusive() != other.hasMaxExclusive()) return false;
if (hasMaxExclusive()) {
if (java.lang.Double.doubleToLongBits(getMaxExclusive())
!= java.lang.Double.doubleToLongBits(
other.getMaxExclusive())) 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 (hasLevel()) {
hash = (37 * hash) + LEVEL_FIELD_NUMBER;
hash = (53 * hash) + level_;
}
if (hasMinInclusive()) {
hash = (37 * hash) + MININCLUSIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMinInclusive()));
}
if (hasMaxInclusive()) {
hash = (37 * hash) + MAXINCLUSIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMaxInclusive()));
}
if (hasMinExclusive()) {
hash = (37 * hash) + MINEXCLUSIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMinExclusive()));
}
if (hasMaxExclusive()) {
hash = (37 * hash) + MAXEXCLUSIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getMaxExclusive()));
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.AlarmRange parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.AlarmRange 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.Mdb.AlarmRange parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.AlarmRange 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.Mdb.AlarmRange parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.AlarmRange parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.AlarmRange parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.AlarmRange 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.Mdb.AlarmRange parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.AlarmRange 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.Mdb.AlarmRange parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.AlarmRange 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.Mdb.AlarmRange 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.mdb.AlarmRange}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.AlarmRange)
org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AlarmRange_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AlarmRange_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.AlarmRange.class, org.yamcs.protobuf.Mdb.AlarmRange.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.AlarmRange.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();
level_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
minInclusive_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
maxInclusive_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
minExclusive_ = 0D;
bitField0_ = (bitField0_ & ~0x00000008);
maxExclusive_ = 0D;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AlarmRange_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.AlarmRange getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.AlarmRange.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.AlarmRange build() {
org.yamcs.protobuf.Mdb.AlarmRange result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.AlarmRange buildPartial() {
org.yamcs.protobuf.Mdb.AlarmRange result = new org.yamcs.protobuf.Mdb.AlarmRange(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.level_ = level_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.minInclusive_ = minInclusive_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.maxInclusive_ = maxInclusive_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.minExclusive_ = minExclusive_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.maxExclusive_ = maxExclusive_;
to_bitField0_ |= 0x00000010;
}
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.Mdb.AlarmRange) {
return mergeFrom((org.yamcs.protobuf.Mdb.AlarmRange)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.AlarmRange other) {
if (other == org.yamcs.protobuf.Mdb.AlarmRange.getDefaultInstance()) return this;
if (other.hasLevel()) {
setLevel(other.getLevel());
}
if (other.hasMinInclusive()) {
setMinInclusive(other.getMinInclusive());
}
if (other.hasMaxInclusive()) {
setMaxInclusive(other.getMaxInclusive());
}
if (other.hasMinExclusive()) {
setMinExclusive(other.getMinExclusive());
}
if (other.hasMaxExclusive()) {
setMaxExclusive(other.getMaxExclusive());
}
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.Mdb.AlarmRange parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.AlarmRange) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int level_ = 0;
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
public boolean hasLevel() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
public org.yamcs.protobuf.Mdb.AlarmLevelType getLevel() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.AlarmLevelType result = org.yamcs.protobuf.Mdb.AlarmLevelType.valueOf(level_);
return result == null ? org.yamcs.protobuf.Mdb.AlarmLevelType.NORMAL : result;
}
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
public Builder setLevel(org.yamcs.protobuf.Mdb.AlarmLevelType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
level_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
public Builder clearLevel() {
bitField0_ = (bitField0_ & ~0x00000001);
level_ = 0;
onChanged();
return this;
}
private double minInclusive_ ;
/**
* optional double minInclusive = 2;
*/
public boolean hasMinInclusive() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double minInclusive = 2;
*/
public double getMinInclusive() {
return minInclusive_;
}
/**
* optional double minInclusive = 2;
*/
public Builder setMinInclusive(double value) {
bitField0_ |= 0x00000002;
minInclusive_ = value;
onChanged();
return this;
}
/**
* optional double minInclusive = 2;
*/
public Builder clearMinInclusive() {
bitField0_ = (bitField0_ & ~0x00000002);
minInclusive_ = 0D;
onChanged();
return this;
}
private double maxInclusive_ ;
/**
* optional double maxInclusive = 3;
*/
public boolean hasMaxInclusive() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double maxInclusive = 3;
*/
public double getMaxInclusive() {
return maxInclusive_;
}
/**
* optional double maxInclusive = 3;
*/
public Builder setMaxInclusive(double value) {
bitField0_ |= 0x00000004;
maxInclusive_ = value;
onChanged();
return this;
}
/**
* optional double maxInclusive = 3;
*/
public Builder clearMaxInclusive() {
bitField0_ = (bitField0_ & ~0x00000004);
maxInclusive_ = 0D;
onChanged();
return this;
}
private double minExclusive_ ;
/**
* optional double minExclusive = 4;
*/
public boolean hasMinExclusive() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional double minExclusive = 4;
*/
public double getMinExclusive() {
return minExclusive_;
}
/**
* optional double minExclusive = 4;
*/
public Builder setMinExclusive(double value) {
bitField0_ |= 0x00000008;
minExclusive_ = value;
onChanged();
return this;
}
/**
* optional double minExclusive = 4;
*/
public Builder clearMinExclusive() {
bitField0_ = (bitField0_ & ~0x00000008);
minExclusive_ = 0D;
onChanged();
return this;
}
private double maxExclusive_ ;
/**
* optional double maxExclusive = 5;
*/
public boolean hasMaxExclusive() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional double maxExclusive = 5;
*/
public double getMaxExclusive() {
return maxExclusive_;
}
/**
* optional double maxExclusive = 5;
*/
public Builder setMaxExclusive(double value) {
bitField0_ |= 0x00000010;
maxExclusive_ = value;
onChanged();
return this;
}
/**
* optional double maxExclusive = 5;
*/
public Builder clearMaxExclusive() {
bitField0_ = (bitField0_ & ~0x00000010);
maxExclusive_ = 0D;
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.mdb.AlarmRange)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.AlarmRange)
private static final org.yamcs.protobuf.Mdb.AlarmRange DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.AlarmRange();
}
public static org.yamcs.protobuf.Mdb.AlarmRange getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AlarmRange parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AlarmRange(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.Mdb.AlarmRange getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EnumerationAlarmOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.EnumerationAlarm)
com.google.protobuf.MessageOrBuilder {
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
boolean hasLevel();
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
org.yamcs.protobuf.Mdb.AlarmLevelType getLevel();
/**
*
* optional int64 value = 2; //removed because it is not part of XTCE and it doesn't work with ranges
*
*
* optional string label = 3;
*/
boolean hasLabel();
/**
*
* optional int64 value = 2; //removed because it is not part of XTCE and it doesn't work with ranges
*
*
* optional string label = 3;
*/
java.lang.String getLabel();
/**
*
* optional int64 value = 2; //removed because it is not part of XTCE and it doesn't work with ranges
*
*
* optional string label = 3;
*/
com.google.protobuf.ByteString
getLabelBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.EnumerationAlarm}
*/
public static final class EnumerationAlarm extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.EnumerationAlarm)
EnumerationAlarmOrBuilder {
private static final long serialVersionUID = 0L;
// Use EnumerationAlarm.newBuilder() to construct.
private EnumerationAlarm(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EnumerationAlarm() {
level_ = 0;
label_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EnumerationAlarm(
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 8: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.AlarmLevelType value = org.yamcs.protobuf.Mdb.AlarmLevelType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
level_ = rawValue;
}
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
label_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_EnumerationAlarm_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_EnumerationAlarm_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.EnumerationAlarm.class, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder.class);
}
private int bitField0_;
public static final int LEVEL_FIELD_NUMBER = 1;
private int level_;
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
public boolean hasLevel() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
public org.yamcs.protobuf.Mdb.AlarmLevelType getLevel() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.AlarmLevelType result = org.yamcs.protobuf.Mdb.AlarmLevelType.valueOf(level_);
return result == null ? org.yamcs.protobuf.Mdb.AlarmLevelType.NORMAL : result;
}
public static final int LABEL_FIELD_NUMBER = 3;
private volatile java.lang.Object label_;
/**
*
* optional int64 value = 2; //removed because it is not part of XTCE and it doesn't work with ranges
*
*
* optional string label = 3;
*/
public boolean hasLabel() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* optional int64 value = 2; //removed because it is not part of XTCE and it doesn't work with ranges
*
*
* optional string label = 3;
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
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()) {
label_ = s;
}
return s;
}
}
/**
*
* optional int64 value = 2; //removed because it is not part of XTCE and it doesn't work with ranges
*
*
* optional string label = 3;
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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)) {
output.writeEnum(1, level_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, label_);
}
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.CodedOutputStream
.computeEnumSize(1, level_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, label_);
}
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.Mdb.EnumerationAlarm)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.EnumerationAlarm other = (org.yamcs.protobuf.Mdb.EnumerationAlarm) obj;
if (hasLevel() != other.hasLevel()) return false;
if (hasLevel()) {
if (level_ != other.level_) return false;
}
if (hasLabel() != other.hasLabel()) return false;
if (hasLabel()) {
if (!getLabel()
.equals(other.getLabel())) 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 (hasLevel()) {
hash = (37 * hash) + LEVEL_FIELD_NUMBER;
hash = (53 * hash) + level_;
}
if (hasLabel()) {
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.EnumerationAlarm parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.EnumerationAlarm 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.Mdb.EnumerationAlarm parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.EnumerationAlarm 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.Mdb.EnumerationAlarm parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.EnumerationAlarm parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.EnumerationAlarm parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.EnumerationAlarm 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.Mdb.EnumerationAlarm parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.EnumerationAlarm 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.Mdb.EnumerationAlarm parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.EnumerationAlarm 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.Mdb.EnumerationAlarm 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.mdb.EnumerationAlarm}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.EnumerationAlarm)
org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_EnumerationAlarm_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_EnumerationAlarm_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.EnumerationAlarm.class, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.EnumerationAlarm.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();
level_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
label_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_EnumerationAlarm_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.EnumerationAlarm getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.EnumerationAlarm.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.EnumerationAlarm build() {
org.yamcs.protobuf.Mdb.EnumerationAlarm result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.EnumerationAlarm buildPartial() {
org.yamcs.protobuf.Mdb.EnumerationAlarm result = new org.yamcs.protobuf.Mdb.EnumerationAlarm(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.level_ = level_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.label_ = label_;
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.Mdb.EnumerationAlarm) {
return mergeFrom((org.yamcs.protobuf.Mdb.EnumerationAlarm)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.EnumerationAlarm other) {
if (other == org.yamcs.protobuf.Mdb.EnumerationAlarm.getDefaultInstance()) return this;
if (other.hasLevel()) {
setLevel(other.getLevel());
}
if (other.hasLabel()) {
bitField0_ |= 0x00000002;
label_ = other.label_;
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.Mdb.EnumerationAlarm parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.EnumerationAlarm) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int level_ = 0;
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
public boolean hasLevel() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
public org.yamcs.protobuf.Mdb.AlarmLevelType getLevel() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.AlarmLevelType result = org.yamcs.protobuf.Mdb.AlarmLevelType.valueOf(level_);
return result == null ? org.yamcs.protobuf.Mdb.AlarmLevelType.NORMAL : result;
}
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
public Builder setLevel(org.yamcs.protobuf.Mdb.AlarmLevelType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
level_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
*/
public Builder clearLevel() {
bitField0_ = (bitField0_ & ~0x00000001);
level_ = 0;
onChanged();
return this;
}
private java.lang.Object label_ = "";
/**
*
* optional int64 value = 2; //removed because it is not part of XTCE and it doesn't work with ranges
*
*
* optional string label = 3;
*/
public boolean hasLabel() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* optional int64 value = 2; //removed because it is not part of XTCE and it doesn't work with ranges
*
*
* optional string label = 3;
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
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()) {
label_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* optional int64 value = 2; //removed because it is not part of XTCE and it doesn't work with ranges
*
*
* optional string label = 3;
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* optional int64 value = 2; //removed because it is not part of XTCE and it doesn't work with ranges
*
*
* optional string label = 3;
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
label_ = value;
onChanged();
return this;
}
/**
*
* optional int64 value = 2; //removed because it is not part of XTCE and it doesn't work with ranges
*
*
* optional string label = 3;
*/
public Builder clearLabel() {
bitField0_ = (bitField0_ & ~0x00000002);
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
*
* optional int64 value = 2; //removed because it is not part of XTCE and it doesn't work with ranges
*
*
* optional string label = 3;
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
label_ = 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.mdb.EnumerationAlarm)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.EnumerationAlarm)
private static final org.yamcs.protobuf.Mdb.EnumerationAlarm DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.EnumerationAlarm();
}
public static org.yamcs.protobuf.Mdb.EnumerationAlarm getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EnumerationAlarm parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EnumerationAlarm(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.Mdb.EnumerationAlarm getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AlarmInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.AlarmInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional int32 minViolations = 1;
*/
boolean hasMinViolations();
/**
* optional int32 minViolations = 1;
*/
int getMinViolations();
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
java.util.List
getStaticAlarmRangeList();
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
org.yamcs.protobuf.Mdb.AlarmRange getStaticAlarmRange(int index);
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
int getStaticAlarmRangeCount();
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
java.util.List extends org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>
getStaticAlarmRangeOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder getStaticAlarmRangeOrBuilder(
int index);
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
java.util.List
getEnumerationAlarmList();
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
org.yamcs.protobuf.Mdb.EnumerationAlarm getEnumerationAlarm(int index);
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
int getEnumerationAlarmCount();
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
java.util.List extends org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>
getEnumerationAlarmOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder getEnumerationAlarmOrBuilder(
int index);
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.AlarmInfo}
*/
public static final class AlarmInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.AlarmInfo)
AlarmInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AlarmInfo.newBuilder() to construct.
private AlarmInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AlarmInfo() {
staticAlarmRange_ = java.util.Collections.emptyList();
enumerationAlarm_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AlarmInfo(
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 8: {
bitField0_ |= 0x00000001;
minViolations_ = input.readInt32();
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
staticAlarmRange_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
staticAlarmRange_.add(
input.readMessage(org.yamcs.protobuf.Mdb.AlarmRange.PARSER, extensionRegistry));
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
enumerationAlarm_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
enumerationAlarm_.add(
input.readMessage(org.yamcs.protobuf.Mdb.EnumerationAlarm.PARSER, extensionRegistry));
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_ & 0x00000002) != 0)) {
staticAlarmRange_ = java.util.Collections.unmodifiableList(staticAlarmRange_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
enumerationAlarm_ = java.util.Collections.unmodifiableList(enumerationAlarm_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AlarmInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AlarmInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.AlarmInfo.class, org.yamcs.protobuf.Mdb.AlarmInfo.Builder.class);
}
private int bitField0_;
public static final int MINVIOLATIONS_FIELD_NUMBER = 1;
private int minViolations_;
/**
* optional int32 minViolations = 1;
*/
public boolean hasMinViolations() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 minViolations = 1;
*/
public int getMinViolations() {
return minViolations_;
}
public static final int STATICALARMRANGE_FIELD_NUMBER = 2;
private java.util.List staticAlarmRange_;
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public java.util.List getStaticAlarmRangeList() {
return staticAlarmRange_;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>
getStaticAlarmRangeOrBuilderList() {
return staticAlarmRange_;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public int getStaticAlarmRangeCount() {
return staticAlarmRange_.size();
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public org.yamcs.protobuf.Mdb.AlarmRange getStaticAlarmRange(int index) {
return staticAlarmRange_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder getStaticAlarmRangeOrBuilder(
int index) {
return staticAlarmRange_.get(index);
}
public static final int ENUMERATIONALARM_FIELD_NUMBER = 3;
private java.util.List enumerationAlarm_;
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public java.util.List getEnumerationAlarmList() {
return enumerationAlarm_;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>
getEnumerationAlarmOrBuilderList() {
return enumerationAlarm_;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public int getEnumerationAlarmCount() {
return enumerationAlarm_.size();
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public org.yamcs.protobuf.Mdb.EnumerationAlarm getEnumerationAlarm(int index) {
return enumerationAlarm_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder getEnumerationAlarmOrBuilder(
int index) {
return enumerationAlarm_.get(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)) {
output.writeInt32(1, minViolations_);
}
for (int i = 0; i < staticAlarmRange_.size(); i++) {
output.writeMessage(2, staticAlarmRange_.get(i));
}
for (int i = 0; i < enumerationAlarm_.size(); i++) {
output.writeMessage(3, enumerationAlarm_.get(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.CodedOutputStream
.computeInt32Size(1, minViolations_);
}
for (int i = 0; i < staticAlarmRange_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, staticAlarmRange_.get(i));
}
for (int i = 0; i < enumerationAlarm_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, enumerationAlarm_.get(i));
}
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.Mdb.AlarmInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.AlarmInfo other = (org.yamcs.protobuf.Mdb.AlarmInfo) obj;
if (hasMinViolations() != other.hasMinViolations()) return false;
if (hasMinViolations()) {
if (getMinViolations()
!= other.getMinViolations()) return false;
}
if (!getStaticAlarmRangeList()
.equals(other.getStaticAlarmRangeList())) return false;
if (!getEnumerationAlarmList()
.equals(other.getEnumerationAlarmList())) 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 (hasMinViolations()) {
hash = (37 * hash) + MINVIOLATIONS_FIELD_NUMBER;
hash = (53 * hash) + getMinViolations();
}
if (getStaticAlarmRangeCount() > 0) {
hash = (37 * hash) + STATICALARMRANGE_FIELD_NUMBER;
hash = (53 * hash) + getStaticAlarmRangeList().hashCode();
}
if (getEnumerationAlarmCount() > 0) {
hash = (37 * hash) + ENUMERATIONALARM_FIELD_NUMBER;
hash = (53 * hash) + getEnumerationAlarmList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.AlarmInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.AlarmInfo 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.Mdb.AlarmInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.AlarmInfo 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.Mdb.AlarmInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.AlarmInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.AlarmInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.AlarmInfo 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.Mdb.AlarmInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.AlarmInfo 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.Mdb.AlarmInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.AlarmInfo 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.Mdb.AlarmInfo 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.mdb.AlarmInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.AlarmInfo)
org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AlarmInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AlarmInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.AlarmInfo.class, org.yamcs.protobuf.Mdb.AlarmInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.AlarmInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStaticAlarmRangeFieldBuilder();
getEnumerationAlarmFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
minViolations_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (staticAlarmRangeBuilder_ == null) {
staticAlarmRange_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
staticAlarmRangeBuilder_.clear();
}
if (enumerationAlarmBuilder_ == null) {
enumerationAlarm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
enumerationAlarmBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AlarmInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.AlarmInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.AlarmInfo build() {
org.yamcs.protobuf.Mdb.AlarmInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.AlarmInfo buildPartial() {
org.yamcs.protobuf.Mdb.AlarmInfo result = new org.yamcs.protobuf.Mdb.AlarmInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.minViolations_ = minViolations_;
to_bitField0_ |= 0x00000001;
}
if (staticAlarmRangeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
staticAlarmRange_ = java.util.Collections.unmodifiableList(staticAlarmRange_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.staticAlarmRange_ = staticAlarmRange_;
} else {
result.staticAlarmRange_ = staticAlarmRangeBuilder_.build();
}
if (enumerationAlarmBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
enumerationAlarm_ = java.util.Collections.unmodifiableList(enumerationAlarm_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.enumerationAlarm_ = enumerationAlarm_;
} else {
result.enumerationAlarm_ = enumerationAlarmBuilder_.build();
}
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.Mdb.AlarmInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.AlarmInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.AlarmInfo other) {
if (other == org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance()) return this;
if (other.hasMinViolations()) {
setMinViolations(other.getMinViolations());
}
if (staticAlarmRangeBuilder_ == null) {
if (!other.staticAlarmRange_.isEmpty()) {
if (staticAlarmRange_.isEmpty()) {
staticAlarmRange_ = other.staticAlarmRange_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureStaticAlarmRangeIsMutable();
staticAlarmRange_.addAll(other.staticAlarmRange_);
}
onChanged();
}
} else {
if (!other.staticAlarmRange_.isEmpty()) {
if (staticAlarmRangeBuilder_.isEmpty()) {
staticAlarmRangeBuilder_.dispose();
staticAlarmRangeBuilder_ = null;
staticAlarmRange_ = other.staticAlarmRange_;
bitField0_ = (bitField0_ & ~0x00000002);
staticAlarmRangeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStaticAlarmRangeFieldBuilder() : null;
} else {
staticAlarmRangeBuilder_.addAllMessages(other.staticAlarmRange_);
}
}
}
if (enumerationAlarmBuilder_ == null) {
if (!other.enumerationAlarm_.isEmpty()) {
if (enumerationAlarm_.isEmpty()) {
enumerationAlarm_ = other.enumerationAlarm_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureEnumerationAlarmIsMutable();
enumerationAlarm_.addAll(other.enumerationAlarm_);
}
onChanged();
}
} else {
if (!other.enumerationAlarm_.isEmpty()) {
if (enumerationAlarmBuilder_.isEmpty()) {
enumerationAlarmBuilder_.dispose();
enumerationAlarmBuilder_ = null;
enumerationAlarm_ = other.enumerationAlarm_;
bitField0_ = (bitField0_ & ~0x00000004);
enumerationAlarmBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEnumerationAlarmFieldBuilder() : null;
} else {
enumerationAlarmBuilder_.addAllMessages(other.enumerationAlarm_);
}
}
}
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.Mdb.AlarmInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.AlarmInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int minViolations_ ;
/**
* optional int32 minViolations = 1;
*/
public boolean hasMinViolations() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 minViolations = 1;
*/
public int getMinViolations() {
return minViolations_;
}
/**
* optional int32 minViolations = 1;
*/
public Builder setMinViolations(int value) {
bitField0_ |= 0x00000001;
minViolations_ = value;
onChanged();
return this;
}
/**
* optional int32 minViolations = 1;
*/
public Builder clearMinViolations() {
bitField0_ = (bitField0_ & ~0x00000001);
minViolations_ = 0;
onChanged();
return this;
}
private java.util.List staticAlarmRange_ =
java.util.Collections.emptyList();
private void ensureStaticAlarmRangeIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
staticAlarmRange_ = new java.util.ArrayList(staticAlarmRange_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlarmRange, org.yamcs.protobuf.Mdb.AlarmRange.Builder, org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder> staticAlarmRangeBuilder_;
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public java.util.List getStaticAlarmRangeList() {
if (staticAlarmRangeBuilder_ == null) {
return java.util.Collections.unmodifiableList(staticAlarmRange_);
} else {
return staticAlarmRangeBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public int getStaticAlarmRangeCount() {
if (staticAlarmRangeBuilder_ == null) {
return staticAlarmRange_.size();
} else {
return staticAlarmRangeBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public org.yamcs.protobuf.Mdb.AlarmRange getStaticAlarmRange(int index) {
if (staticAlarmRangeBuilder_ == null) {
return staticAlarmRange_.get(index);
} else {
return staticAlarmRangeBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public Builder setStaticAlarmRange(
int index, org.yamcs.protobuf.Mdb.AlarmRange value) {
if (staticAlarmRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStaticAlarmRangeIsMutable();
staticAlarmRange_.set(index, value);
onChanged();
} else {
staticAlarmRangeBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public Builder setStaticAlarmRange(
int index, org.yamcs.protobuf.Mdb.AlarmRange.Builder builderForValue) {
if (staticAlarmRangeBuilder_ == null) {
ensureStaticAlarmRangeIsMutable();
staticAlarmRange_.set(index, builderForValue.build());
onChanged();
} else {
staticAlarmRangeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public Builder addStaticAlarmRange(org.yamcs.protobuf.Mdb.AlarmRange value) {
if (staticAlarmRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStaticAlarmRangeIsMutable();
staticAlarmRange_.add(value);
onChanged();
} else {
staticAlarmRangeBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public Builder addStaticAlarmRange(
int index, org.yamcs.protobuf.Mdb.AlarmRange value) {
if (staticAlarmRangeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStaticAlarmRangeIsMutable();
staticAlarmRange_.add(index, value);
onChanged();
} else {
staticAlarmRangeBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public Builder addStaticAlarmRange(
org.yamcs.protobuf.Mdb.AlarmRange.Builder builderForValue) {
if (staticAlarmRangeBuilder_ == null) {
ensureStaticAlarmRangeIsMutable();
staticAlarmRange_.add(builderForValue.build());
onChanged();
} else {
staticAlarmRangeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public Builder addStaticAlarmRange(
int index, org.yamcs.protobuf.Mdb.AlarmRange.Builder builderForValue) {
if (staticAlarmRangeBuilder_ == null) {
ensureStaticAlarmRangeIsMutable();
staticAlarmRange_.add(index, builderForValue.build());
onChanged();
} else {
staticAlarmRangeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public Builder addAllStaticAlarmRange(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.AlarmRange> values) {
if (staticAlarmRangeBuilder_ == null) {
ensureStaticAlarmRangeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, staticAlarmRange_);
onChanged();
} else {
staticAlarmRangeBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public Builder clearStaticAlarmRange() {
if (staticAlarmRangeBuilder_ == null) {
staticAlarmRange_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
staticAlarmRangeBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public Builder removeStaticAlarmRange(int index) {
if (staticAlarmRangeBuilder_ == null) {
ensureStaticAlarmRangeIsMutable();
staticAlarmRange_.remove(index);
onChanged();
} else {
staticAlarmRangeBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public org.yamcs.protobuf.Mdb.AlarmRange.Builder getStaticAlarmRangeBuilder(
int index) {
return getStaticAlarmRangeFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder getStaticAlarmRangeOrBuilder(
int index) {
if (staticAlarmRangeBuilder_ == null) {
return staticAlarmRange_.get(index); } else {
return staticAlarmRangeBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>
getStaticAlarmRangeOrBuilderList() {
if (staticAlarmRangeBuilder_ != null) {
return staticAlarmRangeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(staticAlarmRange_);
}
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public org.yamcs.protobuf.Mdb.AlarmRange.Builder addStaticAlarmRangeBuilder() {
return getStaticAlarmRangeFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.AlarmRange.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public org.yamcs.protobuf.Mdb.AlarmRange.Builder addStaticAlarmRangeBuilder(
int index) {
return getStaticAlarmRangeFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.AlarmRange.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2;
*/
public java.util.List
getStaticAlarmRangeBuilderList() {
return getStaticAlarmRangeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlarmRange, org.yamcs.protobuf.Mdb.AlarmRange.Builder, org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>
getStaticAlarmRangeFieldBuilder() {
if (staticAlarmRangeBuilder_ == null) {
staticAlarmRangeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlarmRange, org.yamcs.protobuf.Mdb.AlarmRange.Builder, org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>(
staticAlarmRange_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
staticAlarmRange_ = null;
}
return staticAlarmRangeBuilder_;
}
private java.util.List enumerationAlarm_ =
java.util.Collections.emptyList();
private void ensureEnumerationAlarmIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
enumerationAlarm_ = new java.util.ArrayList(enumerationAlarm_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.EnumerationAlarm, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder, org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder> enumerationAlarmBuilder_;
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public java.util.List getEnumerationAlarmList() {
if (enumerationAlarmBuilder_ == null) {
return java.util.Collections.unmodifiableList(enumerationAlarm_);
} else {
return enumerationAlarmBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public int getEnumerationAlarmCount() {
if (enumerationAlarmBuilder_ == null) {
return enumerationAlarm_.size();
} else {
return enumerationAlarmBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public org.yamcs.protobuf.Mdb.EnumerationAlarm getEnumerationAlarm(int index) {
if (enumerationAlarmBuilder_ == null) {
return enumerationAlarm_.get(index);
} else {
return enumerationAlarmBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public Builder setEnumerationAlarm(
int index, org.yamcs.protobuf.Mdb.EnumerationAlarm value) {
if (enumerationAlarmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnumerationAlarmIsMutable();
enumerationAlarm_.set(index, value);
onChanged();
} else {
enumerationAlarmBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public Builder setEnumerationAlarm(
int index, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder builderForValue) {
if (enumerationAlarmBuilder_ == null) {
ensureEnumerationAlarmIsMutable();
enumerationAlarm_.set(index, builderForValue.build());
onChanged();
} else {
enumerationAlarmBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public Builder addEnumerationAlarm(org.yamcs.protobuf.Mdb.EnumerationAlarm value) {
if (enumerationAlarmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnumerationAlarmIsMutable();
enumerationAlarm_.add(value);
onChanged();
} else {
enumerationAlarmBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public Builder addEnumerationAlarm(
int index, org.yamcs.protobuf.Mdb.EnumerationAlarm value) {
if (enumerationAlarmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnumerationAlarmIsMutable();
enumerationAlarm_.add(index, value);
onChanged();
} else {
enumerationAlarmBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public Builder addEnumerationAlarm(
org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder builderForValue) {
if (enumerationAlarmBuilder_ == null) {
ensureEnumerationAlarmIsMutable();
enumerationAlarm_.add(builderForValue.build());
onChanged();
} else {
enumerationAlarmBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public Builder addEnumerationAlarm(
int index, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder builderForValue) {
if (enumerationAlarmBuilder_ == null) {
ensureEnumerationAlarmIsMutable();
enumerationAlarm_.add(index, builderForValue.build());
onChanged();
} else {
enumerationAlarmBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public Builder addAllEnumerationAlarm(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.EnumerationAlarm> values) {
if (enumerationAlarmBuilder_ == null) {
ensureEnumerationAlarmIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, enumerationAlarm_);
onChanged();
} else {
enumerationAlarmBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public Builder clearEnumerationAlarm() {
if (enumerationAlarmBuilder_ == null) {
enumerationAlarm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
enumerationAlarmBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public Builder removeEnumerationAlarm(int index) {
if (enumerationAlarmBuilder_ == null) {
ensureEnumerationAlarmIsMutable();
enumerationAlarm_.remove(index);
onChanged();
} else {
enumerationAlarmBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder getEnumerationAlarmBuilder(
int index) {
return getEnumerationAlarmFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder getEnumerationAlarmOrBuilder(
int index) {
if (enumerationAlarmBuilder_ == null) {
return enumerationAlarm_.get(index); } else {
return enumerationAlarmBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>
getEnumerationAlarmOrBuilderList() {
if (enumerationAlarmBuilder_ != null) {
return enumerationAlarmBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(enumerationAlarm_);
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder addEnumerationAlarmBuilder() {
return getEnumerationAlarmFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.EnumerationAlarm.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder addEnumerationAlarmBuilder(
int index) {
return getEnumerationAlarmFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.EnumerationAlarm.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3;
*/
public java.util.List
getEnumerationAlarmBuilderList() {
return getEnumerationAlarmFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.EnumerationAlarm, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder, org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>
getEnumerationAlarmFieldBuilder() {
if (enumerationAlarmBuilder_ == null) {
enumerationAlarmBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.EnumerationAlarm, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder, org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>(
enumerationAlarm_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
enumerationAlarm_ = null;
}
return enumerationAlarmBuilder_;
}
@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.mdb.AlarmInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.AlarmInfo)
private static final org.yamcs.protobuf.Mdb.AlarmInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.AlarmInfo();
}
public static org.yamcs.protobuf.Mdb.AlarmInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AlarmInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AlarmInfo(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.Mdb.AlarmInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContextAlarmInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.ContextAlarmInfo)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
java.util.List
getComparisonList();
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
org.yamcs.protobuf.Mdb.ComparisonInfo getComparison(int index);
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
int getComparisonCount();
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
java.util.List extends org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder>
getComparisonOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder getComparisonOrBuilder(
int index);
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
boolean hasAlarm();
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
org.yamcs.protobuf.Mdb.AlarmInfo getAlarm();
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder getAlarmOrBuilder();
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
boolean hasContext();
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
java.lang.String getContext();
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
com.google.protobuf.ByteString
getContextBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.ContextAlarmInfo}
*/
public static final class ContextAlarmInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.ContextAlarmInfo)
ContextAlarmInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContextAlarmInfo.newBuilder() to construct.
private ContextAlarmInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContextAlarmInfo() {
comparison_ = java.util.Collections.emptyList();
context_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContextAlarmInfo(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
comparison_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
comparison_.add(
input.readMessage(org.yamcs.protobuf.Mdb.ComparisonInfo.PARSER, extensionRegistry));
break;
}
case 18: {
org.yamcs.protobuf.Mdb.AlarmInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = alarm_.toBuilder();
}
alarm_ = input.readMessage(org.yamcs.protobuf.Mdb.AlarmInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(alarm_);
alarm_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
context_ = 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_ & 0x00000001) != 0)) {
comparison_ = java.util.Collections.unmodifiableList(comparison_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ContextAlarmInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ContextAlarmInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.ContextAlarmInfo.class, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder.class);
}
private int bitField0_;
public static final int COMPARISON_FIELD_NUMBER = 1;
private java.util.List comparison_;
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public java.util.List getComparisonList() {
return comparison_;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder>
getComparisonOrBuilderList() {
return comparison_;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public int getComparisonCount() {
return comparison_.size();
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfo getComparison(int index) {
return comparison_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder getComparisonOrBuilder(
int index) {
return comparison_.get(index);
}
public static final int ALARM_FIELD_NUMBER = 2;
private org.yamcs.protobuf.Mdb.AlarmInfo alarm_;
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
public boolean hasAlarm() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
public org.yamcs.protobuf.Mdb.AlarmInfo getAlarm() {
return alarm_ == null ? org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance() : alarm_;
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
public org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder getAlarmOrBuilder() {
return alarm_ == null ? org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance() : alarm_;
}
public static final int CONTEXT_FIELD_NUMBER = 3;
private volatile java.lang.Object context_;
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public boolean hasContext() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public java.lang.String getContext() {
java.lang.Object ref = context_;
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()) {
context_ = s;
}
return s;
}
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public com.google.protobuf.ByteString
getContextBytes() {
java.lang.Object ref = context_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
context_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getComparisonCount(); i++) {
if (!getComparison(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < comparison_.size(); i++) {
output.writeMessage(1, comparison_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getAlarm());
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, context_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < comparison_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, comparison_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getAlarm());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, context_);
}
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.Mdb.ContextAlarmInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.ContextAlarmInfo other = (org.yamcs.protobuf.Mdb.ContextAlarmInfo) obj;
if (!getComparisonList()
.equals(other.getComparisonList())) return false;
if (hasAlarm() != other.hasAlarm()) return false;
if (hasAlarm()) {
if (!getAlarm()
.equals(other.getAlarm())) return false;
}
if (hasContext() != other.hasContext()) return false;
if (hasContext()) {
if (!getContext()
.equals(other.getContext())) 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 (getComparisonCount() > 0) {
hash = (37 * hash) + COMPARISON_FIELD_NUMBER;
hash = (53 * hash) + getComparisonList().hashCode();
}
if (hasAlarm()) {
hash = (37 * hash) + ALARM_FIELD_NUMBER;
hash = (53 * hash) + getAlarm().hashCode();
}
if (hasContext()) {
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.ContextAlarmInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ContextAlarmInfo 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.Mdb.ContextAlarmInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ContextAlarmInfo 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.Mdb.ContextAlarmInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ContextAlarmInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.ContextAlarmInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ContextAlarmInfo 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.Mdb.ContextAlarmInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ContextAlarmInfo 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.Mdb.ContextAlarmInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ContextAlarmInfo 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.Mdb.ContextAlarmInfo 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.mdb.ContextAlarmInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.ContextAlarmInfo)
org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ContextAlarmInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ContextAlarmInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.ContextAlarmInfo.class, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.ContextAlarmInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getComparisonFieldBuilder();
getAlarmFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (comparisonBuilder_ == null) {
comparison_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
comparisonBuilder_.clear();
}
if (alarmBuilder_ == null) {
alarm_ = null;
} else {
alarmBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
context_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ContextAlarmInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextAlarmInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.ContextAlarmInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextAlarmInfo build() {
org.yamcs.protobuf.Mdb.ContextAlarmInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextAlarmInfo buildPartial() {
org.yamcs.protobuf.Mdb.ContextAlarmInfo result = new org.yamcs.protobuf.Mdb.ContextAlarmInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (comparisonBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
comparison_ = java.util.Collections.unmodifiableList(comparison_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.comparison_ = comparison_;
} else {
result.comparison_ = comparisonBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (alarmBuilder_ == null) {
result.alarm_ = alarm_;
} else {
result.alarm_ = alarmBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.context_ = context_;
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.Mdb.ContextAlarmInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.ContextAlarmInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.ContextAlarmInfo other) {
if (other == org.yamcs.protobuf.Mdb.ContextAlarmInfo.getDefaultInstance()) return this;
if (comparisonBuilder_ == null) {
if (!other.comparison_.isEmpty()) {
if (comparison_.isEmpty()) {
comparison_ = other.comparison_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureComparisonIsMutable();
comparison_.addAll(other.comparison_);
}
onChanged();
}
} else {
if (!other.comparison_.isEmpty()) {
if (comparisonBuilder_.isEmpty()) {
comparisonBuilder_.dispose();
comparisonBuilder_ = null;
comparison_ = other.comparison_;
bitField0_ = (bitField0_ & ~0x00000001);
comparisonBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getComparisonFieldBuilder() : null;
} else {
comparisonBuilder_.addAllMessages(other.comparison_);
}
}
}
if (other.hasAlarm()) {
mergeAlarm(other.getAlarm());
}
if (other.hasContext()) {
bitField0_ |= 0x00000004;
context_ = other.context_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getComparisonCount(); i++) {
if (!getComparison(i).isInitialized()) {
return false;
}
}
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.Mdb.ContextAlarmInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.ContextAlarmInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List comparison_ =
java.util.Collections.emptyList();
private void ensureComparisonIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
comparison_ = new java.util.ArrayList(comparison_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ComparisonInfo, org.yamcs.protobuf.Mdb.ComparisonInfo.Builder, org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder> comparisonBuilder_;
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public java.util.List getComparisonList() {
if (comparisonBuilder_ == null) {
return java.util.Collections.unmodifiableList(comparison_);
} else {
return comparisonBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public int getComparisonCount() {
if (comparisonBuilder_ == null) {
return comparison_.size();
} else {
return comparisonBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfo getComparison(int index) {
if (comparisonBuilder_ == null) {
return comparison_.get(index);
} else {
return comparisonBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder setComparison(
int index, org.yamcs.protobuf.Mdb.ComparisonInfo value) {
if (comparisonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComparisonIsMutable();
comparison_.set(index, value);
onChanged();
} else {
comparisonBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder setComparison(
int index, org.yamcs.protobuf.Mdb.ComparisonInfo.Builder builderForValue) {
if (comparisonBuilder_ == null) {
ensureComparisonIsMutable();
comparison_.set(index, builderForValue.build());
onChanged();
} else {
comparisonBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder addComparison(org.yamcs.protobuf.Mdb.ComparisonInfo value) {
if (comparisonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComparisonIsMutable();
comparison_.add(value);
onChanged();
} else {
comparisonBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder addComparison(
int index, org.yamcs.protobuf.Mdb.ComparisonInfo value) {
if (comparisonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComparisonIsMutable();
comparison_.add(index, value);
onChanged();
} else {
comparisonBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder addComparison(
org.yamcs.protobuf.Mdb.ComparisonInfo.Builder builderForValue) {
if (comparisonBuilder_ == null) {
ensureComparisonIsMutable();
comparison_.add(builderForValue.build());
onChanged();
} else {
comparisonBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder addComparison(
int index, org.yamcs.protobuf.Mdb.ComparisonInfo.Builder builderForValue) {
if (comparisonBuilder_ == null) {
ensureComparisonIsMutable();
comparison_.add(index, builderForValue.build());
onChanged();
} else {
comparisonBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder addAllComparison(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.ComparisonInfo> values) {
if (comparisonBuilder_ == null) {
ensureComparisonIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, comparison_);
onChanged();
} else {
comparisonBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder clearComparison() {
if (comparisonBuilder_ == null) {
comparison_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
comparisonBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder removeComparison(int index) {
if (comparisonBuilder_ == null) {
ensureComparisonIsMutable();
comparison_.remove(index);
onChanged();
} else {
comparisonBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfo.Builder getComparisonBuilder(
int index) {
return getComparisonFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder getComparisonOrBuilder(
int index) {
if (comparisonBuilder_ == null) {
return comparison_.get(index); } else {
return comparisonBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder>
getComparisonOrBuilderList() {
if (comparisonBuilder_ != null) {
return comparisonBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(comparison_);
}
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfo.Builder addComparisonBuilder() {
return getComparisonFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ComparisonInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfo.Builder addComparisonBuilder(
int index) {
return getComparisonFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ComparisonInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public java.util.List
getComparisonBuilderList() {
return getComparisonFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ComparisonInfo, org.yamcs.protobuf.Mdb.ComparisonInfo.Builder, org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder>
getComparisonFieldBuilder() {
if (comparisonBuilder_ == null) {
comparisonBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ComparisonInfo, org.yamcs.protobuf.Mdb.ComparisonInfo.Builder, org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder>(
comparison_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
comparison_ = null;
}
return comparisonBuilder_;
}
private org.yamcs.protobuf.Mdb.AlarmInfo alarm_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlarmInfo, org.yamcs.protobuf.Mdb.AlarmInfo.Builder, org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder> alarmBuilder_;
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
public boolean hasAlarm() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
public org.yamcs.protobuf.Mdb.AlarmInfo getAlarm() {
if (alarmBuilder_ == null) {
return alarm_ == null ? org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance() : alarm_;
} else {
return alarmBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
public Builder setAlarm(org.yamcs.protobuf.Mdb.AlarmInfo value) {
if (alarmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
alarm_ = value;
onChanged();
} else {
alarmBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
public Builder setAlarm(
org.yamcs.protobuf.Mdb.AlarmInfo.Builder builderForValue) {
if (alarmBuilder_ == null) {
alarm_ = builderForValue.build();
onChanged();
} else {
alarmBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
public Builder mergeAlarm(org.yamcs.protobuf.Mdb.AlarmInfo value) {
if (alarmBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
alarm_ != null &&
alarm_ != org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance()) {
alarm_ =
org.yamcs.protobuf.Mdb.AlarmInfo.newBuilder(alarm_).mergeFrom(value).buildPartial();
} else {
alarm_ = value;
}
onChanged();
} else {
alarmBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
public Builder clearAlarm() {
if (alarmBuilder_ == null) {
alarm_ = null;
onChanged();
} else {
alarmBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
public org.yamcs.protobuf.Mdb.AlarmInfo.Builder getAlarmBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getAlarmFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
public org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder getAlarmOrBuilder() {
if (alarmBuilder_ != null) {
return alarmBuilder_.getMessageOrBuilder();
} else {
return alarm_ == null ?
org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance() : alarm_;
}
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlarmInfo, org.yamcs.protobuf.Mdb.AlarmInfo.Builder, org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder>
getAlarmFieldBuilder() {
if (alarmBuilder_ == null) {
alarmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlarmInfo, org.yamcs.protobuf.Mdb.AlarmInfo.Builder, org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder>(
getAlarm(),
getParentForChildren(),
isClean());
alarm_ = null;
}
return alarmBuilder_;
}
private java.lang.Object context_ = "";
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public boolean hasContext() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public java.lang.String getContext() {
java.lang.Object ref = context_;
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()) {
context_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public com.google.protobuf.ByteString
getContextBytes() {
java.lang.Object ref = context_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
context_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public Builder setContext(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
context_ = value;
onChanged();
return this;
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public Builder clearContext() {
bitField0_ = (bitField0_ & ~0x00000004);
context_ = getDefaultInstance().getContext();
onChanged();
return this;
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public Builder setContextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
context_ = 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.mdb.ContextAlarmInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.ContextAlarmInfo)
private static final org.yamcs.protobuf.Mdb.ContextAlarmInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.ContextAlarmInfo();
}
public static org.yamcs.protobuf.Mdb.ContextAlarmInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContextAlarmInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContextAlarmInfo(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.Mdb.ContextAlarmInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DataEncodingInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.DataEncodingInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo.Type type = 1;
*/
boolean hasType();
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo.Type type = 1;
*/
org.yamcs.protobuf.Mdb.DataEncodingInfo.Type getType();
/**
* optional bool littleEndian = 2;
*/
boolean hasLittleEndian();
/**
* optional bool littleEndian = 2;
*/
boolean getLittleEndian();
/**
* optional int32 sizeInBits = 3;
*/
boolean hasSizeInBits();
/**
* optional int32 sizeInBits = 3;
*/
int getSizeInBits();
/**
* optional string encoding = 4;
*/
boolean hasEncoding();
/**
* optional string encoding = 4;
*/
java.lang.String getEncoding();
/**
* optional string encoding = 4;
*/
com.google.protobuf.ByteString
getEncodingBytes();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
boolean hasDefaultCalibrator();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
org.yamcs.protobuf.Mdb.CalibratorInfo getDefaultCalibrator();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder getDefaultCalibratorOrBuilder();
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
java.util.List
getContextCalibratorList();
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrator(int index);
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
int getContextCalibratorCount();
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorOrBuilder(
int index);
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.DataEncodingInfo}
*/
public static final class DataEncodingInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.DataEncodingInfo)
DataEncodingInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use DataEncodingInfo.newBuilder() to construct.
private DataEncodingInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DataEncodingInfo() {
type_ = 0;
encoding_ = "";
contextCalibrator_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DataEncodingInfo(
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 8: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.DataEncodingInfo.Type value = org.yamcs.protobuf.Mdb.DataEncodingInfo.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(1, rawValue);
} else {
bitField0_ |= 0x00000001;
type_ = rawValue;
}
break;
}
case 16: {
bitField0_ |= 0x00000002;
littleEndian_ = input.readBool();
break;
}
case 24: {
bitField0_ |= 0x00000004;
sizeInBits_ = input.readInt32();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
encoding_ = bs;
break;
}
case 50: {
org.yamcs.protobuf.Mdb.CalibratorInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = defaultCalibrator_.toBuilder();
}
defaultCalibrator_ = input.readMessage(org.yamcs.protobuf.Mdb.CalibratorInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultCalibrator_);
defaultCalibrator_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
contextCalibrator_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000020;
}
contextCalibrator_.add(
input.readMessage(org.yamcs.protobuf.Mdb.ContextCalibratorInfo.PARSER, extensionRegistry));
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_ & 0x00000020) != 0)) {
contextCalibrator_ = java.util.Collections.unmodifiableList(contextCalibrator_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_DataEncodingInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_DataEncodingInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.DataEncodingInfo.class, org.yamcs.protobuf.Mdb.DataEncodingInfo.Builder.class);
}
/**
* Protobuf enum {@code yamcs.protobuf.mdb.DataEncodingInfo.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* BINARY = 0;
*/
BINARY(0),
/**
* BOOLEAN = 1;
*/
BOOLEAN(1),
/**
* FLOAT = 2;
*/
FLOAT(2),
/**
* INTEGER = 3;
*/
INTEGER(3),
/**
* STRING = 4;
*/
STRING(4),
;
/**
* BINARY = 0;
*/
public static final int BINARY_VALUE = 0;
/**
* BOOLEAN = 1;
*/
public static final int BOOLEAN_VALUE = 1;
/**
* FLOAT = 2;
*/
public static final int FLOAT_VALUE = 2;
/**
* INTEGER = 3;
*/
public static final int INTEGER_VALUE = 3;
/**
* STRING = 4;
*/
public static final int STRING_VALUE = 4;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
public static Type forNumber(int value) {
switch (value) {
case 0: return BINARY;
case 1: return BOOLEAN;
case 2: return FLOAT;
case 3: return INTEGER;
case 4: return STRING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.DataEncodingInfo.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.mdb.DataEncodingInfo.Type)
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo.Type type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo.Type type = 1;
*/
public org.yamcs.protobuf.Mdb.DataEncodingInfo.Type getType() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.DataEncodingInfo.Type result = org.yamcs.protobuf.Mdb.DataEncodingInfo.Type.valueOf(type_);
return result == null ? org.yamcs.protobuf.Mdb.DataEncodingInfo.Type.BINARY : result;
}
public static final int LITTLEENDIAN_FIELD_NUMBER = 2;
private boolean littleEndian_;
/**
* optional bool littleEndian = 2;
*/
public boolean hasLittleEndian() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool littleEndian = 2;
*/
public boolean getLittleEndian() {
return littleEndian_;
}
public static final int SIZEINBITS_FIELD_NUMBER = 3;
private int sizeInBits_;
/**
* optional int32 sizeInBits = 3;
*/
public boolean hasSizeInBits() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 sizeInBits = 3;
*/
public int getSizeInBits() {
return sizeInBits_;
}
public static final int ENCODING_FIELD_NUMBER = 4;
private volatile java.lang.Object encoding_;
/**
* optional string encoding = 4;
*/
public boolean hasEncoding() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string encoding = 4;
*/
public java.lang.String getEncoding() {
java.lang.Object ref = encoding_;
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()) {
encoding_ = s;
}
return s;
}
}
/**
* optional string encoding = 4;
*/
public com.google.protobuf.ByteString
getEncodingBytes() {
java.lang.Object ref = encoding_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
encoding_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULTCALIBRATOR_FIELD_NUMBER = 6;
private org.yamcs.protobuf.Mdb.CalibratorInfo defaultCalibrator_;
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
public boolean hasDefaultCalibrator() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfo getDefaultCalibrator() {
return defaultCalibrator_ == null ? org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : defaultCalibrator_;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder getDefaultCalibratorOrBuilder() {
return defaultCalibrator_ == null ? org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : defaultCalibrator_;
}
public static final int CONTEXTCALIBRATOR_FIELD_NUMBER = 7;
private java.util.List contextCalibrator_;
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public java.util.List getContextCalibratorList() {
return contextCalibrator_;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorOrBuilderList() {
return contextCalibrator_;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public int getContextCalibratorCount() {
return contextCalibrator_.size();
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrator(int index) {
return contextCalibrator_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorOrBuilder(
int index) {
return contextCalibrator_.get(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;
for (int i = 0; i < getContextCalibratorCount(); i++) {
if (!getContextCalibrator(i).isInitialized()) {
memoizedIsInitialized = 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)) {
output.writeEnum(1, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, littleEndian_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(3, sizeInBits_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, encoding_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(6, getDefaultCalibrator());
}
for (int i = 0; i < contextCalibrator_.size(); i++) {
output.writeMessage(7, contextCalibrator_.get(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.CodedOutputStream
.computeEnumSize(1, type_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, littleEndian_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, sizeInBits_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, encoding_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getDefaultCalibrator());
}
for (int i = 0; i < contextCalibrator_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, contextCalibrator_.get(i));
}
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.Mdb.DataEncodingInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.DataEncodingInfo other = (org.yamcs.protobuf.Mdb.DataEncodingInfo) obj;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (type_ != other.type_) return false;
}
if (hasLittleEndian() != other.hasLittleEndian()) return false;
if (hasLittleEndian()) {
if (getLittleEndian()
!= other.getLittleEndian()) return false;
}
if (hasSizeInBits() != other.hasSizeInBits()) return false;
if (hasSizeInBits()) {
if (getSizeInBits()
!= other.getSizeInBits()) return false;
}
if (hasEncoding() != other.hasEncoding()) return false;
if (hasEncoding()) {
if (!getEncoding()
.equals(other.getEncoding())) return false;
}
if (hasDefaultCalibrator() != other.hasDefaultCalibrator()) return false;
if (hasDefaultCalibrator()) {
if (!getDefaultCalibrator()
.equals(other.getDefaultCalibrator())) return false;
}
if (!getContextCalibratorList()
.equals(other.getContextCalibratorList())) 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 (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
if (hasLittleEndian()) {
hash = (37 * hash) + LITTLEENDIAN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getLittleEndian());
}
if (hasSizeInBits()) {
hash = (37 * hash) + SIZEINBITS_FIELD_NUMBER;
hash = (53 * hash) + getSizeInBits();
}
if (hasEncoding()) {
hash = (37 * hash) + ENCODING_FIELD_NUMBER;
hash = (53 * hash) + getEncoding().hashCode();
}
if (hasDefaultCalibrator()) {
hash = (37 * hash) + DEFAULTCALIBRATOR_FIELD_NUMBER;
hash = (53 * hash) + getDefaultCalibrator().hashCode();
}
if (getContextCalibratorCount() > 0) {
hash = (37 * hash) + CONTEXTCALIBRATOR_FIELD_NUMBER;
hash = (53 * hash) + getContextCalibratorList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.DataEncodingInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.DataEncodingInfo 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.Mdb.DataEncodingInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.DataEncodingInfo 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.Mdb.DataEncodingInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.DataEncodingInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.DataEncodingInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.DataEncodingInfo 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.Mdb.DataEncodingInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.DataEncodingInfo 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.Mdb.DataEncodingInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.DataEncodingInfo 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.Mdb.DataEncodingInfo 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.mdb.DataEncodingInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.DataEncodingInfo)
org.yamcs.protobuf.Mdb.DataEncodingInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_DataEncodingInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_DataEncodingInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.DataEncodingInfo.class, org.yamcs.protobuf.Mdb.DataEncodingInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.DataEncodingInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDefaultCalibratorFieldBuilder();
getContextCalibratorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
littleEndian_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
sizeInBits_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
encoding_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
if (defaultCalibratorBuilder_ == null) {
defaultCalibrator_ = null;
} else {
defaultCalibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (contextCalibratorBuilder_ == null) {
contextCalibrator_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
} else {
contextCalibratorBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_DataEncodingInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.DataEncodingInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.DataEncodingInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.DataEncodingInfo build() {
org.yamcs.protobuf.Mdb.DataEncodingInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.DataEncodingInfo buildPartial() {
org.yamcs.protobuf.Mdb.DataEncodingInfo result = new org.yamcs.protobuf.Mdb.DataEncodingInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.littleEndian_ = littleEndian_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.sizeInBits_ = sizeInBits_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.encoding_ = encoding_;
if (((from_bitField0_ & 0x00000010) != 0)) {
if (defaultCalibratorBuilder_ == null) {
result.defaultCalibrator_ = defaultCalibrator_;
} else {
result.defaultCalibrator_ = defaultCalibratorBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (contextCalibratorBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)) {
contextCalibrator_ = java.util.Collections.unmodifiableList(contextCalibrator_);
bitField0_ = (bitField0_ & ~0x00000020);
}
result.contextCalibrator_ = contextCalibrator_;
} else {
result.contextCalibrator_ = contextCalibratorBuilder_.build();
}
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.Mdb.DataEncodingInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.DataEncodingInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.DataEncodingInfo other) {
if (other == org.yamcs.protobuf.Mdb.DataEncodingInfo.getDefaultInstance()) return this;
if (other.hasType()) {
setType(other.getType());
}
if (other.hasLittleEndian()) {
setLittleEndian(other.getLittleEndian());
}
if (other.hasSizeInBits()) {
setSizeInBits(other.getSizeInBits());
}
if (other.hasEncoding()) {
bitField0_ |= 0x00000008;
encoding_ = other.encoding_;
onChanged();
}
if (other.hasDefaultCalibrator()) {
mergeDefaultCalibrator(other.getDefaultCalibrator());
}
if (contextCalibratorBuilder_ == null) {
if (!other.contextCalibrator_.isEmpty()) {
if (contextCalibrator_.isEmpty()) {
contextCalibrator_ = other.contextCalibrator_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureContextCalibratorIsMutable();
contextCalibrator_.addAll(other.contextCalibrator_);
}
onChanged();
}
} else {
if (!other.contextCalibrator_.isEmpty()) {
if (contextCalibratorBuilder_.isEmpty()) {
contextCalibratorBuilder_.dispose();
contextCalibratorBuilder_ = null;
contextCalibrator_ = other.contextCalibrator_;
bitField0_ = (bitField0_ & ~0x00000020);
contextCalibratorBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContextCalibratorFieldBuilder() : null;
} else {
contextCalibratorBuilder_.addAllMessages(other.contextCalibrator_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getContextCalibratorCount(); i++) {
if (!getContextCalibrator(i).isInitialized()) {
return false;
}
}
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.Mdb.DataEncodingInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.DataEncodingInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int type_ = 0;
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo.Type type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo.Type type = 1;
*/
public org.yamcs.protobuf.Mdb.DataEncodingInfo.Type getType() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.DataEncodingInfo.Type result = org.yamcs.protobuf.Mdb.DataEncodingInfo.Type.valueOf(type_);
return result == null ? org.yamcs.protobuf.Mdb.DataEncodingInfo.Type.BINARY : result;
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo.Type type = 1;
*/
public Builder setType(org.yamcs.protobuf.Mdb.DataEncodingInfo.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo.Type type = 1;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
onChanged();
return this;
}
private boolean littleEndian_ ;
/**
* optional bool littleEndian = 2;
*/
public boolean hasLittleEndian() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool littleEndian = 2;
*/
public boolean getLittleEndian() {
return littleEndian_;
}
/**
* optional bool littleEndian = 2;
*/
public Builder setLittleEndian(boolean value) {
bitField0_ |= 0x00000002;
littleEndian_ = value;
onChanged();
return this;
}
/**
* optional bool littleEndian = 2;
*/
public Builder clearLittleEndian() {
bitField0_ = (bitField0_ & ~0x00000002);
littleEndian_ = false;
onChanged();
return this;
}
private int sizeInBits_ ;
/**
* optional int32 sizeInBits = 3;
*/
public boolean hasSizeInBits() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 sizeInBits = 3;
*/
public int getSizeInBits() {
return sizeInBits_;
}
/**
* optional int32 sizeInBits = 3;
*/
public Builder setSizeInBits(int value) {
bitField0_ |= 0x00000004;
sizeInBits_ = value;
onChanged();
return this;
}
/**
* optional int32 sizeInBits = 3;
*/
public Builder clearSizeInBits() {
bitField0_ = (bitField0_ & ~0x00000004);
sizeInBits_ = 0;
onChanged();
return this;
}
private java.lang.Object encoding_ = "";
/**
* optional string encoding = 4;
*/
public boolean hasEncoding() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string encoding = 4;
*/
public java.lang.String getEncoding() {
java.lang.Object ref = encoding_;
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()) {
encoding_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string encoding = 4;
*/
public com.google.protobuf.ByteString
getEncodingBytes() {
java.lang.Object ref = encoding_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
encoding_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string encoding = 4;
*/
public Builder setEncoding(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
encoding_ = value;
onChanged();
return this;
}
/**
* optional string encoding = 4;
*/
public Builder clearEncoding() {
bitField0_ = (bitField0_ & ~0x00000008);
encoding_ = getDefaultInstance().getEncoding();
onChanged();
return this;
}
/**
* optional string encoding = 4;
*/
public Builder setEncodingBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
encoding_ = value;
onChanged();
return this;
}
private org.yamcs.protobuf.Mdb.CalibratorInfo defaultCalibrator_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.CalibratorInfo, org.yamcs.protobuf.Mdb.CalibratorInfo.Builder, org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder> defaultCalibratorBuilder_;
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
public boolean hasDefaultCalibrator() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfo getDefaultCalibrator() {
if (defaultCalibratorBuilder_ == null) {
return defaultCalibrator_ == null ? org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : defaultCalibrator_;
} else {
return defaultCalibratorBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
public Builder setDefaultCalibrator(org.yamcs.protobuf.Mdb.CalibratorInfo value) {
if (defaultCalibratorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultCalibrator_ = value;
onChanged();
} else {
defaultCalibratorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
public Builder setDefaultCalibrator(
org.yamcs.protobuf.Mdb.CalibratorInfo.Builder builderForValue) {
if (defaultCalibratorBuilder_ == null) {
defaultCalibrator_ = builderForValue.build();
onChanged();
} else {
defaultCalibratorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
public Builder mergeDefaultCalibrator(org.yamcs.protobuf.Mdb.CalibratorInfo value) {
if (defaultCalibratorBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
defaultCalibrator_ != null &&
defaultCalibrator_ != org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance()) {
defaultCalibrator_ =
org.yamcs.protobuf.Mdb.CalibratorInfo.newBuilder(defaultCalibrator_).mergeFrom(value).buildPartial();
} else {
defaultCalibrator_ = value;
}
onChanged();
} else {
defaultCalibratorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
public Builder clearDefaultCalibrator() {
if (defaultCalibratorBuilder_ == null) {
defaultCalibrator_ = null;
onChanged();
} else {
defaultCalibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfo.Builder getDefaultCalibratorBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getDefaultCalibratorFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder getDefaultCalibratorOrBuilder() {
if (defaultCalibratorBuilder_ != null) {
return defaultCalibratorBuilder_.getMessageOrBuilder();
} else {
return defaultCalibrator_ == null ?
org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : defaultCalibrator_;
}
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.CalibratorInfo, org.yamcs.protobuf.Mdb.CalibratorInfo.Builder, org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder>
getDefaultCalibratorFieldBuilder() {
if (defaultCalibratorBuilder_ == null) {
defaultCalibratorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.CalibratorInfo, org.yamcs.protobuf.Mdb.CalibratorInfo.Builder, org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder>(
getDefaultCalibrator(),
getParentForChildren(),
isClean());
defaultCalibrator_ = null;
}
return defaultCalibratorBuilder_;
}
private java.util.List contextCalibrator_ =
java.util.Collections.emptyList();
private void ensureContextCalibratorIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
contextCalibrator_ = new java.util.ArrayList(contextCalibrator_);
bitField0_ |= 0x00000020;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextCalibratorInfo, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder> contextCalibratorBuilder_;
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public java.util.List getContextCalibratorList() {
if (contextCalibratorBuilder_ == null) {
return java.util.Collections.unmodifiableList(contextCalibrator_);
} else {
return contextCalibratorBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public int getContextCalibratorCount() {
if (contextCalibratorBuilder_ == null) {
return contextCalibrator_.size();
} else {
return contextCalibratorBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrator(int index) {
if (contextCalibratorBuilder_ == null) {
return contextCalibrator_.get(index);
} else {
return contextCalibratorBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public Builder setContextCalibrator(
int index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo value) {
if (contextCalibratorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextCalibratorIsMutable();
contextCalibrator_.set(index, value);
onChanged();
} else {
contextCalibratorBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public Builder setContextCalibrator(
int index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder builderForValue) {
if (contextCalibratorBuilder_ == null) {
ensureContextCalibratorIsMutable();
contextCalibrator_.set(index, builderForValue.build());
onChanged();
} else {
contextCalibratorBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public Builder addContextCalibrator(org.yamcs.protobuf.Mdb.ContextCalibratorInfo value) {
if (contextCalibratorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextCalibratorIsMutable();
contextCalibrator_.add(value);
onChanged();
} else {
contextCalibratorBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public Builder addContextCalibrator(
int index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo value) {
if (contextCalibratorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextCalibratorIsMutable();
contextCalibrator_.add(index, value);
onChanged();
} else {
contextCalibratorBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public Builder addContextCalibrator(
org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder builderForValue) {
if (contextCalibratorBuilder_ == null) {
ensureContextCalibratorIsMutable();
contextCalibrator_.add(builderForValue.build());
onChanged();
} else {
contextCalibratorBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public Builder addContextCalibrator(
int index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder builderForValue) {
if (contextCalibratorBuilder_ == null) {
ensureContextCalibratorIsMutable();
contextCalibrator_.add(index, builderForValue.build());
onChanged();
} else {
contextCalibratorBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public Builder addAllContextCalibrator(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.ContextCalibratorInfo> values) {
if (contextCalibratorBuilder_ == null) {
ensureContextCalibratorIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contextCalibrator_);
onChanged();
} else {
contextCalibratorBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public Builder clearContextCalibrator() {
if (contextCalibratorBuilder_ == null) {
contextCalibrator_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
contextCalibratorBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public Builder removeContextCalibrator(int index) {
if (contextCalibratorBuilder_ == null) {
ensureContextCalibratorIsMutable();
contextCalibrator_.remove(index);
onChanged();
} else {
contextCalibratorBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder getContextCalibratorBuilder(
int index) {
return getContextCalibratorFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorOrBuilder(
int index) {
if (contextCalibratorBuilder_ == null) {
return contextCalibrator_.get(index); } else {
return contextCalibratorBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorOrBuilderList() {
if (contextCalibratorBuilder_ != null) {
return contextCalibratorBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contextCalibrator_);
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder addContextCalibratorBuilder() {
return getContextCalibratorFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ContextCalibratorInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder addContextCalibratorBuilder(
int index) {
return getContextCalibratorFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7;
*/
public java.util.List
getContextCalibratorBuilderList() {
return getContextCalibratorFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextCalibratorInfo, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorFieldBuilder() {
if (contextCalibratorBuilder_ == null) {
contextCalibratorBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextCalibratorInfo, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>(
contextCalibrator_,
((bitField0_ & 0x00000020) != 0),
getParentForChildren(),
isClean());
contextCalibrator_ = null;
}
return contextCalibratorBuilder_;
}
@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.mdb.DataEncodingInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.DataEncodingInfo)
private static final org.yamcs.protobuf.Mdb.DataEncodingInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.DataEncodingInfo();
}
public static org.yamcs.protobuf.Mdb.DataEncodingInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DataEncodingInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DataEncodingInfo(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.Mdb.DataEncodingInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ContextCalibratorInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.ContextCalibratorInfo)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
java.util.List
getComparisonList();
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
org.yamcs.protobuf.Mdb.ComparisonInfo getComparison(int index);
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
int getComparisonCount();
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
java.util.List extends org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder>
getComparisonOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder getComparisonOrBuilder(
int index);
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
boolean hasCalibrator();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
org.yamcs.protobuf.Mdb.CalibratorInfo getCalibrator();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder getCalibratorOrBuilder();
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
boolean hasContext();
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
java.lang.String getContext();
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
com.google.protobuf.ByteString
getContextBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.ContextCalibratorInfo}
*/
public static final class ContextCalibratorInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.ContextCalibratorInfo)
ContextCalibratorInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ContextCalibratorInfo.newBuilder() to construct.
private ContextCalibratorInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ContextCalibratorInfo() {
comparison_ = java.util.Collections.emptyList();
context_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ContextCalibratorInfo(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
comparison_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
comparison_.add(
input.readMessage(org.yamcs.protobuf.Mdb.ComparisonInfo.PARSER, extensionRegistry));
break;
}
case 18: {
org.yamcs.protobuf.Mdb.CalibratorInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = calibrator_.toBuilder();
}
calibrator_ = input.readMessage(org.yamcs.protobuf.Mdb.CalibratorInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(calibrator_);
calibrator_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
context_ = 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_ & 0x00000001) != 0)) {
comparison_ = java.util.Collections.unmodifiableList(comparison_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ContextCalibratorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ContextCalibratorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.ContextCalibratorInfo.class, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder.class);
}
private int bitField0_;
public static final int COMPARISON_FIELD_NUMBER = 1;
private java.util.List comparison_;
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public java.util.List getComparisonList() {
return comparison_;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder>
getComparisonOrBuilderList() {
return comparison_;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public int getComparisonCount() {
return comparison_.size();
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfo getComparison(int index) {
return comparison_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder getComparisonOrBuilder(
int index) {
return comparison_.get(index);
}
public static final int CALIBRATOR_FIELD_NUMBER = 2;
private org.yamcs.protobuf.Mdb.CalibratorInfo calibrator_;
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
public boolean hasCalibrator() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfo getCalibrator() {
return calibrator_ == null ? org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : calibrator_;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder getCalibratorOrBuilder() {
return calibrator_ == null ? org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : calibrator_;
}
public static final int CONTEXT_FIELD_NUMBER = 3;
private volatile java.lang.Object context_;
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public boolean hasContext() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public java.lang.String getContext() {
java.lang.Object ref = context_;
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()) {
context_ = s;
}
return s;
}
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public com.google.protobuf.ByteString
getContextBytes() {
java.lang.Object ref = context_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
context_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getComparisonCount(); i++) {
if (!getComparison(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < comparison_.size(); i++) {
output.writeMessage(1, comparison_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(2, getCalibrator());
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, context_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < comparison_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, comparison_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getCalibrator());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, context_);
}
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.Mdb.ContextCalibratorInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.ContextCalibratorInfo other = (org.yamcs.protobuf.Mdb.ContextCalibratorInfo) obj;
if (!getComparisonList()
.equals(other.getComparisonList())) return false;
if (hasCalibrator() != other.hasCalibrator()) return false;
if (hasCalibrator()) {
if (!getCalibrator()
.equals(other.getCalibrator())) return false;
}
if (hasContext() != other.hasContext()) return false;
if (hasContext()) {
if (!getContext()
.equals(other.getContext())) 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 (getComparisonCount() > 0) {
hash = (37 * hash) + COMPARISON_FIELD_NUMBER;
hash = (53 * hash) + getComparisonList().hashCode();
}
if (hasCalibrator()) {
hash = (37 * hash) + CALIBRATOR_FIELD_NUMBER;
hash = (53 * hash) + getCalibrator().hashCode();
}
if (hasContext()) {
hash = (37 * hash) + CONTEXT_FIELD_NUMBER;
hash = (53 * hash) + getContext().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.ContextCalibratorInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ContextCalibratorInfo 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.Mdb.ContextCalibratorInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ContextCalibratorInfo 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.Mdb.ContextCalibratorInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ContextCalibratorInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.ContextCalibratorInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ContextCalibratorInfo 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.Mdb.ContextCalibratorInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ContextCalibratorInfo 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.Mdb.ContextCalibratorInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ContextCalibratorInfo 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.Mdb.ContextCalibratorInfo 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.mdb.ContextCalibratorInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.ContextCalibratorInfo)
org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ContextCalibratorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ContextCalibratorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.ContextCalibratorInfo.class, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.ContextCalibratorInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getComparisonFieldBuilder();
getCalibratorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (comparisonBuilder_ == null) {
comparison_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
comparisonBuilder_.clear();
}
if (calibratorBuilder_ == null) {
calibrator_ = null;
} else {
calibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
context_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ContextCalibratorInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.ContextCalibratorInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo build() {
org.yamcs.protobuf.Mdb.ContextCalibratorInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo buildPartial() {
org.yamcs.protobuf.Mdb.ContextCalibratorInfo result = new org.yamcs.protobuf.Mdb.ContextCalibratorInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (comparisonBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
comparison_ = java.util.Collections.unmodifiableList(comparison_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.comparison_ = comparison_;
} else {
result.comparison_ = comparisonBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (calibratorBuilder_ == null) {
result.calibrator_ = calibrator_;
} else {
result.calibrator_ = calibratorBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.context_ = context_;
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.Mdb.ContextCalibratorInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.ContextCalibratorInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.ContextCalibratorInfo other) {
if (other == org.yamcs.protobuf.Mdb.ContextCalibratorInfo.getDefaultInstance()) return this;
if (comparisonBuilder_ == null) {
if (!other.comparison_.isEmpty()) {
if (comparison_.isEmpty()) {
comparison_ = other.comparison_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureComparisonIsMutable();
comparison_.addAll(other.comparison_);
}
onChanged();
}
} else {
if (!other.comparison_.isEmpty()) {
if (comparisonBuilder_.isEmpty()) {
comparisonBuilder_.dispose();
comparisonBuilder_ = null;
comparison_ = other.comparison_;
bitField0_ = (bitField0_ & ~0x00000001);
comparisonBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getComparisonFieldBuilder() : null;
} else {
comparisonBuilder_.addAllMessages(other.comparison_);
}
}
}
if (other.hasCalibrator()) {
mergeCalibrator(other.getCalibrator());
}
if (other.hasContext()) {
bitField0_ |= 0x00000004;
context_ = other.context_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getComparisonCount(); i++) {
if (!getComparison(i).isInitialized()) {
return false;
}
}
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.Mdb.ContextCalibratorInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.ContextCalibratorInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List comparison_ =
java.util.Collections.emptyList();
private void ensureComparisonIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
comparison_ = new java.util.ArrayList(comparison_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ComparisonInfo, org.yamcs.protobuf.Mdb.ComparisonInfo.Builder, org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder> comparisonBuilder_;
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public java.util.List getComparisonList() {
if (comparisonBuilder_ == null) {
return java.util.Collections.unmodifiableList(comparison_);
} else {
return comparisonBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public int getComparisonCount() {
if (comparisonBuilder_ == null) {
return comparison_.size();
} else {
return comparisonBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfo getComparison(int index) {
if (comparisonBuilder_ == null) {
return comparison_.get(index);
} else {
return comparisonBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder setComparison(
int index, org.yamcs.protobuf.Mdb.ComparisonInfo value) {
if (comparisonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComparisonIsMutable();
comparison_.set(index, value);
onChanged();
} else {
comparisonBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder setComparison(
int index, org.yamcs.protobuf.Mdb.ComparisonInfo.Builder builderForValue) {
if (comparisonBuilder_ == null) {
ensureComparisonIsMutable();
comparison_.set(index, builderForValue.build());
onChanged();
} else {
comparisonBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder addComparison(org.yamcs.protobuf.Mdb.ComparisonInfo value) {
if (comparisonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComparisonIsMutable();
comparison_.add(value);
onChanged();
} else {
comparisonBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder addComparison(
int index, org.yamcs.protobuf.Mdb.ComparisonInfo value) {
if (comparisonBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComparisonIsMutable();
comparison_.add(index, value);
onChanged();
} else {
comparisonBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder addComparison(
org.yamcs.protobuf.Mdb.ComparisonInfo.Builder builderForValue) {
if (comparisonBuilder_ == null) {
ensureComparisonIsMutable();
comparison_.add(builderForValue.build());
onChanged();
} else {
comparisonBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder addComparison(
int index, org.yamcs.protobuf.Mdb.ComparisonInfo.Builder builderForValue) {
if (comparisonBuilder_ == null) {
ensureComparisonIsMutable();
comparison_.add(index, builderForValue.build());
onChanged();
} else {
comparisonBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder addAllComparison(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.ComparisonInfo> values) {
if (comparisonBuilder_ == null) {
ensureComparisonIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, comparison_);
onChanged();
} else {
comparisonBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder clearComparison() {
if (comparisonBuilder_ == null) {
comparison_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
comparisonBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public Builder removeComparison(int index) {
if (comparisonBuilder_ == null) {
ensureComparisonIsMutable();
comparison_.remove(index);
onChanged();
} else {
comparisonBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfo.Builder getComparisonBuilder(
int index) {
return getComparisonFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder getComparisonOrBuilder(
int index) {
if (comparisonBuilder_ == null) {
return comparison_.get(index); } else {
return comparisonBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder>
getComparisonOrBuilderList() {
if (comparisonBuilder_ != null) {
return comparisonBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(comparison_);
}
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfo.Builder addComparisonBuilder() {
return getComparisonFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ComparisonInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public org.yamcs.protobuf.Mdb.ComparisonInfo.Builder addComparisonBuilder(
int index) {
return getComparisonFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ComparisonInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
public java.util.List
getComparisonBuilderList() {
return getComparisonFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ComparisonInfo, org.yamcs.protobuf.Mdb.ComparisonInfo.Builder, org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder>
getComparisonFieldBuilder() {
if (comparisonBuilder_ == null) {
comparisonBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ComparisonInfo, org.yamcs.protobuf.Mdb.ComparisonInfo.Builder, org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder>(
comparison_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
comparison_ = null;
}
return comparisonBuilder_;
}
private org.yamcs.protobuf.Mdb.CalibratorInfo calibrator_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.CalibratorInfo, org.yamcs.protobuf.Mdb.CalibratorInfo.Builder, org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder> calibratorBuilder_;
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
public boolean hasCalibrator() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfo getCalibrator() {
if (calibratorBuilder_ == null) {
return calibrator_ == null ? org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : calibrator_;
} else {
return calibratorBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
public Builder setCalibrator(org.yamcs.protobuf.Mdb.CalibratorInfo value) {
if (calibratorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
calibrator_ = value;
onChanged();
} else {
calibratorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
public Builder setCalibrator(
org.yamcs.protobuf.Mdb.CalibratorInfo.Builder builderForValue) {
if (calibratorBuilder_ == null) {
calibrator_ = builderForValue.build();
onChanged();
} else {
calibratorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
public Builder mergeCalibrator(org.yamcs.protobuf.Mdb.CalibratorInfo value) {
if (calibratorBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
calibrator_ != null &&
calibrator_ != org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance()) {
calibrator_ =
org.yamcs.protobuf.Mdb.CalibratorInfo.newBuilder(calibrator_).mergeFrom(value).buildPartial();
} else {
calibrator_ = value;
}
onChanged();
} else {
calibratorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
public Builder clearCalibrator() {
if (calibratorBuilder_ == null) {
calibrator_ = null;
onChanged();
} else {
calibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfo.Builder getCalibratorBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getCalibratorFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder getCalibratorOrBuilder() {
if (calibratorBuilder_ != null) {
return calibratorBuilder_.getMessageOrBuilder();
} else {
return calibrator_ == null ?
org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : calibrator_;
}
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.CalibratorInfo, org.yamcs.protobuf.Mdb.CalibratorInfo.Builder, org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder>
getCalibratorFieldBuilder() {
if (calibratorBuilder_ == null) {
calibratorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.CalibratorInfo, org.yamcs.protobuf.Mdb.CalibratorInfo.Builder, org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder>(
getCalibrator(),
getParentForChildren(),
isClean());
calibrator_ = null;
}
return calibratorBuilder_;
}
private java.lang.Object context_ = "";
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public boolean hasContext() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public java.lang.String getContext() {
java.lang.Object ref = context_;
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()) {
context_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public com.google.protobuf.ByteString
getContextBytes() {
java.lang.Object ref = context_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
context_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public Builder setContext(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
context_ = value;
onChanged();
return this;
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public Builder clearContext() {
bitField0_ = (bitField0_ & ~0x00000004);
context_ = getDefaultInstance().getContext();
onChanged();
return this;
}
/**
*
*this can be used in the ChangeParameteRequest to pass a context that is parsed on the server, according to the rules in the excel spreadsheet
* either this or the comparison above has to be used (not both at the same time)
*
*
* optional string context = 3;
*/
public Builder setContextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
context_ = 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.mdb.ContextCalibratorInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.ContextCalibratorInfo)
private static final org.yamcs.protobuf.Mdb.ContextCalibratorInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.ContextCalibratorInfo();
}
public static org.yamcs.protobuf.Mdb.ContextCalibratorInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ContextCalibratorInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ContextCalibratorInfo(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.Mdb.ContextCalibratorInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CalibratorInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.CalibratorInfo)
com.google.protobuf.MessageOrBuilder {
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
boolean hasPolynomialCalibrator();
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo getPolynomialCalibrator();
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfoOrBuilder getPolynomialCalibratorOrBuilder();
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
boolean hasSplineCalibrator();
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
org.yamcs.protobuf.Mdb.SplineCalibratorInfo getSplineCalibrator();
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
org.yamcs.protobuf.Mdb.SplineCalibratorInfoOrBuilder getSplineCalibratorOrBuilder();
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
boolean hasJavaExpressionCalibrator();
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo getJavaExpressionCalibrator();
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfoOrBuilder getJavaExpressionCalibratorOrBuilder();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo.Type type = 5;
*/
boolean hasType();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo.Type type = 5;
*/
org.yamcs.protobuf.Mdb.CalibratorInfo.Type getType();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.CalibratorInfo}
*/
public static final class CalibratorInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.CalibratorInfo)
CalibratorInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use CalibratorInfo.newBuilder() to construct.
private CalibratorInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CalibratorInfo() {
type_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private CalibratorInfo(
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 18: {
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = polynomialCalibrator_.toBuilder();
}
polynomialCalibrator_ = input.readMessage(org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(polynomialCalibrator_);
polynomialCalibrator_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 26: {
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = splineCalibrator_.toBuilder();
}
splineCalibrator_ = input.readMessage(org.yamcs.protobuf.Mdb.SplineCalibratorInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(splineCalibrator_);
splineCalibrator_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 34: {
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = javaExpressionCalibrator_.toBuilder();
}
javaExpressionCalibrator_ = input.readMessage(org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(javaExpressionCalibrator_);
javaExpressionCalibrator_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 40: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.CalibratorInfo.Type value = org.yamcs.protobuf.Mdb.CalibratorInfo.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(5, rawValue);
} else {
bitField0_ |= 0x00000008;
type_ = rawValue;
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_CalibratorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_CalibratorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.CalibratorInfo.class, org.yamcs.protobuf.Mdb.CalibratorInfo.Builder.class);
}
/**
* Protobuf enum {@code yamcs.protobuf.mdb.CalibratorInfo.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
* POLYNOMIAL = 0;
*/
POLYNOMIAL(0),
/**
* SPLINE = 1;
*/
SPLINE(1),
/**
* MATH_OPERATION = 2;
*/
MATH_OPERATION(2),
/**
* JAVA_EXPRESSION = 3;
*/
JAVA_EXPRESSION(3),
;
/**
* POLYNOMIAL = 0;
*/
public static final int POLYNOMIAL_VALUE = 0;
/**
* SPLINE = 1;
*/
public static final int SPLINE_VALUE = 1;
/**
* MATH_OPERATION = 2;
*/
public static final int MATH_OPERATION_VALUE = 2;
/**
* JAVA_EXPRESSION = 3;
*/
public static final int JAVA_EXPRESSION_VALUE = 3;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
public static Type forNumber(int value) {
switch (value) {
case 0: return POLYNOMIAL;
case 1: return SPLINE;
case 2: return MATH_OPERATION;
case 3: return JAVA_EXPRESSION;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.CalibratorInfo.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.mdb.CalibratorInfo.Type)
}
private int bitField0_;
public static final int POLYNOMIALCALIBRATOR_FIELD_NUMBER = 2;
private org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo polynomialCalibrator_;
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public boolean hasPolynomialCalibrator() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo getPolynomialCalibrator() {
return polynomialCalibrator_ == null ? org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.getDefaultInstance() : polynomialCalibrator_;
}
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public org.yamcs.protobuf.Mdb.PolynomialCalibratorInfoOrBuilder getPolynomialCalibratorOrBuilder() {
return polynomialCalibrator_ == null ? org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.getDefaultInstance() : polynomialCalibrator_;
}
public static final int SPLINECALIBRATOR_FIELD_NUMBER = 3;
private org.yamcs.protobuf.Mdb.SplineCalibratorInfo splineCalibrator_;
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
public boolean hasSplineCalibrator() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo getSplineCalibrator() {
return splineCalibrator_ == null ? org.yamcs.protobuf.Mdb.SplineCalibratorInfo.getDefaultInstance() : splineCalibrator_;
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfoOrBuilder getSplineCalibratorOrBuilder() {
return splineCalibrator_ == null ? org.yamcs.protobuf.Mdb.SplineCalibratorInfo.getDefaultInstance() : splineCalibrator_;
}
public static final int JAVAEXPRESSIONCALIBRATOR_FIELD_NUMBER = 4;
private org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator_;
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
public boolean hasJavaExpressionCalibrator() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
public org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo getJavaExpressionCalibrator() {
return javaExpressionCalibrator_ == null ? org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.getDefaultInstance() : javaExpressionCalibrator_;
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
public org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfoOrBuilder getJavaExpressionCalibratorOrBuilder() {
return javaExpressionCalibrator_ == null ? org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.getDefaultInstance() : javaExpressionCalibrator_;
}
public static final int TYPE_FIELD_NUMBER = 5;
private int type_;
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo.Type type = 5;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo.Type type = 5;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfo.Type getType() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.CalibratorInfo.Type result = org.yamcs.protobuf.Mdb.CalibratorInfo.Type.valueOf(type_);
return result == null ? org.yamcs.protobuf.Mdb.CalibratorInfo.Type.POLYNOMIAL : result;
}
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)) {
output.writeMessage(2, getPolynomialCalibrator());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(3, getSplineCalibrator());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getJavaExpressionCalibrator());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeEnum(5, type_);
}
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.CodedOutputStream
.computeMessageSize(2, getPolynomialCalibrator());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getSplineCalibrator());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getJavaExpressionCalibrator());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, type_);
}
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.Mdb.CalibratorInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.CalibratorInfo other = (org.yamcs.protobuf.Mdb.CalibratorInfo) obj;
if (hasPolynomialCalibrator() != other.hasPolynomialCalibrator()) return false;
if (hasPolynomialCalibrator()) {
if (!getPolynomialCalibrator()
.equals(other.getPolynomialCalibrator())) return false;
}
if (hasSplineCalibrator() != other.hasSplineCalibrator()) return false;
if (hasSplineCalibrator()) {
if (!getSplineCalibrator()
.equals(other.getSplineCalibrator())) return false;
}
if (hasJavaExpressionCalibrator() != other.hasJavaExpressionCalibrator()) return false;
if (hasJavaExpressionCalibrator()) {
if (!getJavaExpressionCalibrator()
.equals(other.getJavaExpressionCalibrator())) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (type_ != other.type_) 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 (hasPolynomialCalibrator()) {
hash = (37 * hash) + POLYNOMIALCALIBRATOR_FIELD_NUMBER;
hash = (53 * hash) + getPolynomialCalibrator().hashCode();
}
if (hasSplineCalibrator()) {
hash = (37 * hash) + SPLINECALIBRATOR_FIELD_NUMBER;
hash = (53 * hash) + getSplineCalibrator().hashCode();
}
if (hasJavaExpressionCalibrator()) {
hash = (37 * hash) + JAVAEXPRESSIONCALIBRATOR_FIELD_NUMBER;
hash = (53 * hash) + getJavaExpressionCalibrator().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.CalibratorInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.CalibratorInfo 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.Mdb.CalibratorInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.CalibratorInfo 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.Mdb.CalibratorInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.CalibratorInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.CalibratorInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.CalibratorInfo 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.Mdb.CalibratorInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.CalibratorInfo 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.Mdb.CalibratorInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.CalibratorInfo 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.Mdb.CalibratorInfo 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.mdb.CalibratorInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.CalibratorInfo)
org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_CalibratorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_CalibratorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.CalibratorInfo.class, org.yamcs.protobuf.Mdb.CalibratorInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.CalibratorInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPolynomialCalibratorFieldBuilder();
getSplineCalibratorFieldBuilder();
getJavaExpressionCalibratorFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (polynomialCalibratorBuilder_ == null) {
polynomialCalibrator_ = null;
} else {
polynomialCalibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (splineCalibratorBuilder_ == null) {
splineCalibrator_ = null;
} else {
splineCalibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (javaExpressionCalibratorBuilder_ == null) {
javaExpressionCalibrator_ = null;
} else {
javaExpressionCalibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_CalibratorInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.CalibratorInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.CalibratorInfo build() {
org.yamcs.protobuf.Mdb.CalibratorInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.CalibratorInfo buildPartial() {
org.yamcs.protobuf.Mdb.CalibratorInfo result = new org.yamcs.protobuf.Mdb.CalibratorInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (polynomialCalibratorBuilder_ == null) {
result.polynomialCalibrator_ = polynomialCalibrator_;
} else {
result.polynomialCalibrator_ = polynomialCalibratorBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (splineCalibratorBuilder_ == null) {
result.splineCalibrator_ = splineCalibrator_;
} else {
result.splineCalibrator_ = splineCalibratorBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (javaExpressionCalibratorBuilder_ == null) {
result.javaExpressionCalibrator_ = javaExpressionCalibrator_;
} else {
result.javaExpressionCalibrator_ = javaExpressionCalibratorBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.type_ = type_;
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.Mdb.CalibratorInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.CalibratorInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.CalibratorInfo other) {
if (other == org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance()) return this;
if (other.hasPolynomialCalibrator()) {
mergePolynomialCalibrator(other.getPolynomialCalibrator());
}
if (other.hasSplineCalibrator()) {
mergeSplineCalibrator(other.getSplineCalibrator());
}
if (other.hasJavaExpressionCalibrator()) {
mergeJavaExpressionCalibrator(other.getJavaExpressionCalibrator());
}
if (other.hasType()) {
setType(other.getType());
}
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.Mdb.CalibratorInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.CalibratorInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo polynomialCalibrator_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo, org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.PolynomialCalibratorInfoOrBuilder> polynomialCalibratorBuilder_;
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public boolean hasPolynomialCalibrator() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo getPolynomialCalibrator() {
if (polynomialCalibratorBuilder_ == null) {
return polynomialCalibrator_ == null ? org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.getDefaultInstance() : polynomialCalibrator_;
} else {
return polynomialCalibratorBuilder_.getMessage();
}
}
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public Builder setPolynomialCalibrator(org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo value) {
if (polynomialCalibratorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
polynomialCalibrator_ = value;
onChanged();
} else {
polynomialCalibratorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public Builder setPolynomialCalibrator(
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.Builder builderForValue) {
if (polynomialCalibratorBuilder_ == null) {
polynomialCalibrator_ = builderForValue.build();
onChanged();
} else {
polynomialCalibratorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public Builder mergePolynomialCalibrator(org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo value) {
if (polynomialCalibratorBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
polynomialCalibrator_ != null &&
polynomialCalibrator_ != org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.getDefaultInstance()) {
polynomialCalibrator_ =
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.newBuilder(polynomialCalibrator_).mergeFrom(value).buildPartial();
} else {
polynomialCalibrator_ = value;
}
onChanged();
} else {
polynomialCalibratorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public Builder clearPolynomialCalibrator() {
if (polynomialCalibratorBuilder_ == null) {
polynomialCalibrator_ = null;
onChanged();
} else {
polynomialCalibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.Builder getPolynomialCalibratorBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPolynomialCalibratorFieldBuilder().getBuilder();
}
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public org.yamcs.protobuf.Mdb.PolynomialCalibratorInfoOrBuilder getPolynomialCalibratorOrBuilder() {
if (polynomialCalibratorBuilder_ != null) {
return polynomialCalibratorBuilder_.getMessageOrBuilder();
} else {
return polynomialCalibrator_ == null ?
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.getDefaultInstance() : polynomialCalibrator_;
}
}
/**
*
*optional string type = 1; //replaced with an enum
*
*
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo, org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.PolynomialCalibratorInfoOrBuilder>
getPolynomialCalibratorFieldBuilder() {
if (polynomialCalibratorBuilder_ == null) {
polynomialCalibratorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo, org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.PolynomialCalibratorInfoOrBuilder>(
getPolynomialCalibrator(),
getParentForChildren(),
isClean());
polynomialCalibrator_ = null;
}
return polynomialCalibratorBuilder_;
}
private org.yamcs.protobuf.Mdb.SplineCalibratorInfo splineCalibrator_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.SplineCalibratorInfo, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.SplineCalibratorInfoOrBuilder> splineCalibratorBuilder_;
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
public boolean hasSplineCalibrator() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo getSplineCalibrator() {
if (splineCalibratorBuilder_ == null) {
return splineCalibrator_ == null ? org.yamcs.protobuf.Mdb.SplineCalibratorInfo.getDefaultInstance() : splineCalibrator_;
} else {
return splineCalibratorBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
public Builder setSplineCalibrator(org.yamcs.protobuf.Mdb.SplineCalibratorInfo value) {
if (splineCalibratorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
splineCalibrator_ = value;
onChanged();
} else {
splineCalibratorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
public Builder setSplineCalibrator(
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.Builder builderForValue) {
if (splineCalibratorBuilder_ == null) {
splineCalibrator_ = builderForValue.build();
onChanged();
} else {
splineCalibratorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
public Builder mergeSplineCalibrator(org.yamcs.protobuf.Mdb.SplineCalibratorInfo value) {
if (splineCalibratorBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
splineCalibrator_ != null &&
splineCalibrator_ != org.yamcs.protobuf.Mdb.SplineCalibratorInfo.getDefaultInstance()) {
splineCalibrator_ =
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.newBuilder(splineCalibrator_).mergeFrom(value).buildPartial();
} else {
splineCalibrator_ = value;
}
onChanged();
} else {
splineCalibratorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
public Builder clearSplineCalibrator() {
if (splineCalibratorBuilder_ == null) {
splineCalibrator_ = null;
onChanged();
} else {
splineCalibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.Builder getSplineCalibratorBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getSplineCalibratorFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfoOrBuilder getSplineCalibratorOrBuilder() {
if (splineCalibratorBuilder_ != null) {
return splineCalibratorBuilder_.getMessageOrBuilder();
} else {
return splineCalibrator_ == null ?
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.getDefaultInstance() : splineCalibrator_;
}
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.SplineCalibratorInfo, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.SplineCalibratorInfoOrBuilder>
getSplineCalibratorFieldBuilder() {
if (splineCalibratorBuilder_ == null) {
splineCalibratorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.SplineCalibratorInfo, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.SplineCalibratorInfoOrBuilder>(
getSplineCalibrator(),
getParentForChildren(),
isClean());
splineCalibrator_ = null;
}
return splineCalibratorBuilder_;
}
private org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo, org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfoOrBuilder> javaExpressionCalibratorBuilder_;
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
public boolean hasJavaExpressionCalibrator() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
public org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo getJavaExpressionCalibrator() {
if (javaExpressionCalibratorBuilder_ == null) {
return javaExpressionCalibrator_ == null ? org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.getDefaultInstance() : javaExpressionCalibrator_;
} else {
return javaExpressionCalibratorBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
public Builder setJavaExpressionCalibrator(org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo value) {
if (javaExpressionCalibratorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
javaExpressionCalibrator_ = value;
onChanged();
} else {
javaExpressionCalibratorBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
public Builder setJavaExpressionCalibrator(
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.Builder builderForValue) {
if (javaExpressionCalibratorBuilder_ == null) {
javaExpressionCalibrator_ = builderForValue.build();
onChanged();
} else {
javaExpressionCalibratorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
public Builder mergeJavaExpressionCalibrator(org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo value) {
if (javaExpressionCalibratorBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
javaExpressionCalibrator_ != null &&
javaExpressionCalibrator_ != org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.getDefaultInstance()) {
javaExpressionCalibrator_ =
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.newBuilder(javaExpressionCalibrator_).mergeFrom(value).buildPartial();
} else {
javaExpressionCalibrator_ = value;
}
onChanged();
} else {
javaExpressionCalibratorBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
public Builder clearJavaExpressionCalibrator() {
if (javaExpressionCalibratorBuilder_ == null) {
javaExpressionCalibrator_ = null;
onChanged();
} else {
javaExpressionCalibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
public org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.Builder getJavaExpressionCalibratorBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getJavaExpressionCalibratorFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
public org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfoOrBuilder getJavaExpressionCalibratorOrBuilder() {
if (javaExpressionCalibratorBuilder_ != null) {
return javaExpressionCalibratorBuilder_.getMessageOrBuilder();
} else {
return javaExpressionCalibrator_ == null ?
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.getDefaultInstance() : javaExpressionCalibrator_;
}
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo, org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfoOrBuilder>
getJavaExpressionCalibratorFieldBuilder() {
if (javaExpressionCalibratorBuilder_ == null) {
javaExpressionCalibratorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo, org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfoOrBuilder>(
getJavaExpressionCalibrator(),
getParentForChildren(),
isClean());
javaExpressionCalibrator_ = null;
}
return javaExpressionCalibratorBuilder_;
}
private int type_ = 0;
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo.Type type = 5;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo.Type type = 5;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfo.Type getType() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.CalibratorInfo.Type result = org.yamcs.protobuf.Mdb.CalibratorInfo.Type.valueOf(type_);
return result == null ? org.yamcs.protobuf.Mdb.CalibratorInfo.Type.POLYNOMIAL : result;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo.Type type = 5;
*/
public Builder setType(org.yamcs.protobuf.Mdb.CalibratorInfo.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo.Type type = 5;
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000008);
type_ = 0;
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.mdb.CalibratorInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.CalibratorInfo)
private static final org.yamcs.protobuf.Mdb.CalibratorInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.CalibratorInfo();
}
public static org.yamcs.protobuf.Mdb.CalibratorInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CalibratorInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new CalibratorInfo(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.Mdb.CalibratorInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PolynomialCalibratorInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.PolynomialCalibratorInfo)
com.google.protobuf.MessageOrBuilder {
/**
* repeated double coefficient = 1;
*/
java.util.List getCoefficientList();
/**
* repeated double coefficient = 1;
*/
int getCoefficientCount();
/**
* repeated double coefficient = 1;
*/
double getCoefficient(int index);
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.PolynomialCalibratorInfo}
*/
public static final class PolynomialCalibratorInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.PolynomialCalibratorInfo)
PolynomialCalibratorInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use PolynomialCalibratorInfo.newBuilder() to construct.
private PolynomialCalibratorInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PolynomialCalibratorInfo() {
coefficient_ = emptyDoubleList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PolynomialCalibratorInfo(
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 9: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
coefficient_ = newDoubleList();
mutable_bitField0_ |= 0x00000001;
}
coefficient_.addDouble(input.readDouble());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
coefficient_ = newDoubleList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
coefficient_.addDouble(input.readDouble());
}
input.popLimit(limit);
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_ & 0x00000001) != 0)) {
coefficient_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_PolynomialCalibratorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_PolynomialCalibratorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.class, org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.Builder.class);
}
public static final int COEFFICIENT_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.DoubleList coefficient_;
/**
* repeated double coefficient = 1;
*/
public java.util.List
getCoefficientList() {
return coefficient_;
}
/**
* repeated double coefficient = 1;
*/
public int getCoefficientCount() {
return coefficient_.size();
}
/**
* repeated double coefficient = 1;
*/
public double getCoefficient(int index) {
return coefficient_.getDouble(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 {
for (int i = 0; i < coefficient_.size(); i++) {
output.writeDouble(1, coefficient_.getDouble(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
dataSize = 8 * getCoefficientList().size();
size += dataSize;
size += 1 * getCoefficientList().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.Mdb.PolynomialCalibratorInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo other = (org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo) obj;
if (!getCoefficientList()
.equals(other.getCoefficientList())) 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 (getCoefficientCount() > 0) {
hash = (37 * hash) + COEFFICIENT_FIELD_NUMBER;
hash = (53 * hash) + getCoefficientList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo 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.Mdb.PolynomialCalibratorInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo 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.Mdb.PolynomialCalibratorInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo 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.Mdb.PolynomialCalibratorInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo 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.Mdb.PolynomialCalibratorInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo 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.Mdb.PolynomialCalibratorInfo 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.mdb.PolynomialCalibratorInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.PolynomialCalibratorInfo)
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_PolynomialCalibratorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_PolynomialCalibratorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.class, org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.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();
coefficient_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_PolynomialCalibratorInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo build() {
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo buildPartial() {
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo result = new org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
coefficient_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.coefficient_ = coefficient_;
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.Mdb.PolynomialCalibratorInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo other) {
if (other == org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.getDefaultInstance()) return this;
if (!other.coefficient_.isEmpty()) {
if (coefficient_.isEmpty()) {
coefficient_ = other.coefficient_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCoefficientIsMutable();
coefficient_.addAll(other.coefficient_);
}
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.Mdb.PolynomialCalibratorInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.DoubleList coefficient_ = emptyDoubleList();
private void ensureCoefficientIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
coefficient_ = mutableCopy(coefficient_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated double coefficient = 1;
*/
public java.util.List
getCoefficientList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(coefficient_) : coefficient_;
}
/**
* repeated double coefficient = 1;
*/
public int getCoefficientCount() {
return coefficient_.size();
}
/**
* repeated double coefficient = 1;
*/
public double getCoefficient(int index) {
return coefficient_.getDouble(index);
}
/**
* repeated double coefficient = 1;
*/
public Builder setCoefficient(
int index, double value) {
ensureCoefficientIsMutable();
coefficient_.setDouble(index, value);
onChanged();
return this;
}
/**
* repeated double coefficient = 1;
*/
public Builder addCoefficient(double value) {
ensureCoefficientIsMutable();
coefficient_.addDouble(value);
onChanged();
return this;
}
/**
* repeated double coefficient = 1;
*/
public Builder addAllCoefficient(
java.lang.Iterable extends java.lang.Double> values) {
ensureCoefficientIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, coefficient_);
onChanged();
return this;
}
/**
* repeated double coefficient = 1;
*/
public Builder clearCoefficient() {
coefficient_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000001);
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.mdb.PolynomialCalibratorInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.PolynomialCalibratorInfo)
private static final org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo();
}
public static org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PolynomialCalibratorInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PolynomialCalibratorInfo(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.Mdb.PolynomialCalibratorInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SplineCalibratorInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.SplineCalibratorInfo)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
java.util.List
getPointList();
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo getPoint(int index);
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
int getPointCount();
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
java.util.List extends org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder>
getPointOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder getPointOrBuilder(
int index);
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.SplineCalibratorInfo}
*/
public static final class SplineCalibratorInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.SplineCalibratorInfo)
SplineCalibratorInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SplineCalibratorInfo.newBuilder() to construct.
private SplineCalibratorInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SplineCalibratorInfo() {
point_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SplineCalibratorInfo(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
point_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
point_.add(
input.readMessage(org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.PARSER, extensionRegistry));
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_ & 0x00000001) != 0)) {
point_ = java.util.Collections.unmodifiableList(point_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_SplineCalibratorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_SplineCalibratorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.class, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.Builder.class);
}
public interface SplinePointInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional double raw = 1;
*/
boolean hasRaw();
/**
* optional double raw = 1;
*/
double getRaw();
/**
* optional double calibrated = 2;
*/
boolean hasCalibrated();
/**
* optional double calibrated = 2;
*/
double getCalibrated();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo}
*/
public static final class SplinePointInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo)
SplinePointInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use SplinePointInfo.newBuilder() to construct.
private SplinePointInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SplinePointInfo() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SplinePointInfo(
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 9: {
bitField0_ |= 0x00000001;
raw_ = input.readDouble();
break;
}
case 17: {
bitField0_ |= 0x00000002;
calibrated_ = input.readDouble();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_SplineCalibratorInfo_SplinePointInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_SplineCalibratorInfo_SplinePointInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.class, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder.class);
}
private int bitField0_;
public static final int RAW_FIELD_NUMBER = 1;
private double raw_;
/**
* optional double raw = 1;
*/
public boolean hasRaw() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional double raw = 1;
*/
public double getRaw() {
return raw_;
}
public static final int CALIBRATED_FIELD_NUMBER = 2;
private double calibrated_;
/**
* optional double calibrated = 2;
*/
public boolean hasCalibrated() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double calibrated = 2;
*/
public double getCalibrated() {
return calibrated_;
}
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)) {
output.writeDouble(1, raw_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, calibrated_);
}
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.CodedOutputStream
.computeDoubleSize(1, raw_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, calibrated_);
}
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.Mdb.SplineCalibratorInfo.SplinePointInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo other = (org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo) obj;
if (hasRaw() != other.hasRaw()) return false;
if (hasRaw()) {
if (java.lang.Double.doubleToLongBits(getRaw())
!= java.lang.Double.doubleToLongBits(
other.getRaw())) return false;
}
if (hasCalibrated() != other.hasCalibrated()) return false;
if (hasCalibrated()) {
if (java.lang.Double.doubleToLongBits(getCalibrated())
!= java.lang.Double.doubleToLongBits(
other.getCalibrated())) 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 (hasRaw()) {
hash = (37 * hash) + RAW_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getRaw()));
}
if (hasCalibrated()) {
hash = (37 * hash) + CALIBRATED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getCalibrated()));
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo 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.Mdb.SplineCalibratorInfo.SplinePointInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo 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.Mdb.SplineCalibratorInfo.SplinePointInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo 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.Mdb.SplineCalibratorInfo.SplinePointInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo 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.Mdb.SplineCalibratorInfo.SplinePointInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo 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.Mdb.SplineCalibratorInfo.SplinePointInfo 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.mdb.SplineCalibratorInfo.SplinePointInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo)
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_SplineCalibratorInfo_SplinePointInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_SplineCalibratorInfo_SplinePointInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.class, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.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();
raw_ = 0D;
bitField0_ = (bitField0_ & ~0x00000001);
calibrated_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_SplineCalibratorInfo_SplinePointInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo build() {
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo buildPartial() {
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo result = new org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.raw_ = raw_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.calibrated_ = calibrated_;
to_bitField0_ |= 0x00000002;
}
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.Mdb.SplineCalibratorInfo.SplinePointInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo other) {
if (other == org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.getDefaultInstance()) return this;
if (other.hasRaw()) {
setRaw(other.getRaw());
}
if (other.hasCalibrated()) {
setCalibrated(other.getCalibrated());
}
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.Mdb.SplineCalibratorInfo.SplinePointInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private double raw_ ;
/**
* optional double raw = 1;
*/
public boolean hasRaw() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional double raw = 1;
*/
public double getRaw() {
return raw_;
}
/**
* optional double raw = 1;
*/
public Builder setRaw(double value) {
bitField0_ |= 0x00000001;
raw_ = value;
onChanged();
return this;
}
/**
* optional double raw = 1;
*/
public Builder clearRaw() {
bitField0_ = (bitField0_ & ~0x00000001);
raw_ = 0D;
onChanged();
return this;
}
private double calibrated_ ;
/**
* optional double calibrated = 2;
*/
public boolean hasCalibrated() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double calibrated = 2;
*/
public double getCalibrated() {
return calibrated_;
}
/**
* optional double calibrated = 2;
*/
public Builder setCalibrated(double value) {
bitField0_ |= 0x00000002;
calibrated_ = value;
onChanged();
return this;
}
/**
* optional double calibrated = 2;
*/
public Builder clearCalibrated() {
bitField0_ = (bitField0_ & ~0x00000002);
calibrated_ = 0D;
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.mdb.SplineCalibratorInfo.SplinePointInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo)
private static final org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo();
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SplinePointInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SplinePointInfo(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.Mdb.SplineCalibratorInfo.SplinePointInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public static final int POINT_FIELD_NUMBER = 1;
private java.util.List point_;
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public java.util.List getPointList() {
return point_;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder>
getPointOrBuilderList() {
return point_;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public int getPointCount() {
return point_.size();
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo getPoint(int index) {
return point_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder getPointOrBuilder(
int index) {
return point_.get(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 {
for (int i = 0; i < point_.size(); i++) {
output.writeMessage(1, point_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < point_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, point_.get(i));
}
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.Mdb.SplineCalibratorInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.SplineCalibratorInfo other = (org.yamcs.protobuf.Mdb.SplineCalibratorInfo) obj;
if (!getPointList()
.equals(other.getPointList())) 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 (getPointCount() > 0) {
hash = (37 * hash) + POINT_FIELD_NUMBER;
hash = (53 * hash) + getPointList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo 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.Mdb.SplineCalibratorInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo 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.Mdb.SplineCalibratorInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo 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.Mdb.SplineCalibratorInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo 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.Mdb.SplineCalibratorInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo 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.Mdb.SplineCalibratorInfo 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.mdb.SplineCalibratorInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.SplineCalibratorInfo)
org.yamcs.protobuf.Mdb.SplineCalibratorInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_SplineCalibratorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_SplineCalibratorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.class, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.SplineCalibratorInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getPointFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (pointBuilder_ == null) {
point_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
pointBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_SplineCalibratorInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.SplineCalibratorInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo build() {
org.yamcs.protobuf.Mdb.SplineCalibratorInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo buildPartial() {
org.yamcs.protobuf.Mdb.SplineCalibratorInfo result = new org.yamcs.protobuf.Mdb.SplineCalibratorInfo(this);
int from_bitField0_ = bitField0_;
if (pointBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
point_ = java.util.Collections.unmodifiableList(point_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.point_ = point_;
} else {
result.point_ = pointBuilder_.build();
}
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.Mdb.SplineCalibratorInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.SplineCalibratorInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.SplineCalibratorInfo other) {
if (other == org.yamcs.protobuf.Mdb.SplineCalibratorInfo.getDefaultInstance()) return this;
if (pointBuilder_ == null) {
if (!other.point_.isEmpty()) {
if (point_.isEmpty()) {
point_ = other.point_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensurePointIsMutable();
point_.addAll(other.point_);
}
onChanged();
}
} else {
if (!other.point_.isEmpty()) {
if (pointBuilder_.isEmpty()) {
pointBuilder_.dispose();
pointBuilder_ = null;
point_ = other.point_;
bitField0_ = (bitField0_ & ~0x00000001);
pointBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPointFieldBuilder() : null;
} else {
pointBuilder_.addAllMessages(other.point_);
}
}
}
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.Mdb.SplineCalibratorInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.SplineCalibratorInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List point_ =
java.util.Collections.emptyList();
private void ensurePointIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
point_ = new java.util.ArrayList(point_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder> pointBuilder_;
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public java.util.List getPointList() {
if (pointBuilder_ == null) {
return java.util.Collections.unmodifiableList(point_);
} else {
return pointBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public int getPointCount() {
if (pointBuilder_ == null) {
return point_.size();
} else {
return pointBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo getPoint(int index) {
if (pointBuilder_ == null) {
return point_.get(index);
} else {
return pointBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public Builder setPoint(
int index, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo value) {
if (pointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePointIsMutable();
point_.set(index, value);
onChanged();
} else {
pointBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public Builder setPoint(
int index, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder builderForValue) {
if (pointBuilder_ == null) {
ensurePointIsMutable();
point_.set(index, builderForValue.build());
onChanged();
} else {
pointBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public Builder addPoint(org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo value) {
if (pointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePointIsMutable();
point_.add(value);
onChanged();
} else {
pointBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public Builder addPoint(
int index, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo value) {
if (pointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePointIsMutable();
point_.add(index, value);
onChanged();
} else {
pointBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public Builder addPoint(
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder builderForValue) {
if (pointBuilder_ == null) {
ensurePointIsMutable();
point_.add(builderForValue.build());
onChanged();
} else {
pointBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public Builder addPoint(
int index, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder builderForValue) {
if (pointBuilder_ == null) {
ensurePointIsMutable();
point_.add(index, builderForValue.build());
onChanged();
} else {
pointBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public Builder addAllPoint(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo> values) {
if (pointBuilder_ == null) {
ensurePointIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, point_);
onChanged();
} else {
pointBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public Builder clearPoint() {
if (pointBuilder_ == null) {
point_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
pointBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public Builder removePoint(int index) {
if (pointBuilder_ == null) {
ensurePointIsMutable();
point_.remove(index);
onChanged();
} else {
pointBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder getPointBuilder(
int index) {
return getPointFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder getPointOrBuilder(
int index) {
if (pointBuilder_ == null) {
return point_.get(index); } else {
return pointBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder>
getPointOrBuilderList() {
if (pointBuilder_ != null) {
return pointBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(point_);
}
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder addPointBuilder() {
return getPointFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder addPointBuilder(
int index) {
return getPointFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1;
*/
public java.util.List
getPointBuilderList() {
return getPointFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder>
getPointFieldBuilder() {
if (pointBuilder_ == null) {
pointBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder>(
point_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
point_ = null;
}
return pointBuilder_;
}
@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.mdb.SplineCalibratorInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.SplineCalibratorInfo)
private static final org.yamcs.protobuf.Mdb.SplineCalibratorInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.SplineCalibratorInfo();
}
public static org.yamcs.protobuf.Mdb.SplineCalibratorInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SplineCalibratorInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SplineCalibratorInfo(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.Mdb.SplineCalibratorInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface JavaExpressionCalibratorInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.JavaExpressionCalibratorInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional string formula = 1;
*/
boolean hasFormula();
/**
* optional string formula = 1;
*/
java.lang.String getFormula();
/**
* optional string formula = 1;
*/
com.google.protobuf.ByteString
getFormulaBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.JavaExpressionCalibratorInfo}
*/
public static final class JavaExpressionCalibratorInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.JavaExpressionCalibratorInfo)
JavaExpressionCalibratorInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use JavaExpressionCalibratorInfo.newBuilder() to construct.
private JavaExpressionCalibratorInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private JavaExpressionCalibratorInfo() {
formula_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private JavaExpressionCalibratorInfo(
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;
formula_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_JavaExpressionCalibratorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_JavaExpressionCalibratorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.class, org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.Builder.class);
}
private int bitField0_;
public static final int FORMULA_FIELD_NUMBER = 1;
private volatile java.lang.Object formula_;
/**
* optional string formula = 1;
*/
public boolean hasFormula() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string formula = 1;
*/
public java.lang.String getFormula() {
java.lang.Object ref = formula_;
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()) {
formula_ = s;
}
return s;
}
}
/**
* optional string formula = 1;
*/
public com.google.protobuf.ByteString
getFormulaBytes() {
java.lang.Object ref = formula_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formula_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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, formula_);
}
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, formula_);
}
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.Mdb.JavaExpressionCalibratorInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo other = (org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo) obj;
if (hasFormula() != other.hasFormula()) return false;
if (hasFormula()) {
if (!getFormula()
.equals(other.getFormula())) 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 (hasFormula()) {
hash = (37 * hash) + FORMULA_FIELD_NUMBER;
hash = (53 * hash) + getFormula().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo 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.Mdb.JavaExpressionCalibratorInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo 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.Mdb.JavaExpressionCalibratorInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo 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.Mdb.JavaExpressionCalibratorInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo 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.Mdb.JavaExpressionCalibratorInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo 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.Mdb.JavaExpressionCalibratorInfo 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.mdb.JavaExpressionCalibratorInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.JavaExpressionCalibratorInfo)
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_JavaExpressionCalibratorInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_JavaExpressionCalibratorInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.class, org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.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();
formula_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_JavaExpressionCalibratorInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo build() {
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo buildPartial() {
org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo result = new org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.formula_ = formula_;
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.Mdb.JavaExpressionCalibratorInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo other) {
if (other == org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.getDefaultInstance()) return this;
if (other.hasFormula()) {
bitField0_ |= 0x00000001;
formula_ = other.formula_;
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.Mdb.JavaExpressionCalibratorInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object formula_ = "";
/**
* optional string formula = 1;
*/
public boolean hasFormula() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string formula = 1;
*/
public java.lang.String getFormula() {
java.lang.Object ref = formula_;
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()) {
formula_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string formula = 1;
*/
public com.google.protobuf.ByteString
getFormulaBytes() {
java.lang.Object ref = formula_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
formula_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string formula = 1;
*/
public Builder setFormula(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
formula_ = value;
onChanged();
return this;
}
/**
* optional string formula = 1;
*/
public Builder clearFormula() {
bitField0_ = (bitField0_ & ~0x00000001);
formula_ = getDefaultInstance().getFormula();
onChanged();
return this;
}
/**
* optional string formula = 1;
*/
public Builder setFormulaBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
formula_ = 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.mdb.JavaExpressionCalibratorInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.JavaExpressionCalibratorInfo)
private static final org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo();
}
public static org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public JavaExpressionCalibratorInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new JavaExpressionCalibratorInfo(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.Mdb.JavaExpressionCalibratorInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EnumValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.EnumValue)
com.google.protobuf.MessageOrBuilder {
/**
* optional int64 value = 1;
*/
boolean hasValue();
/**
* optional int64 value = 1;
*/
long getValue();
/**
* optional string label = 2;
*/
boolean hasLabel();
/**
* optional string label = 2;
*/
java.lang.String getLabel();
/**
* optional string label = 2;
*/
com.google.protobuf.ByteString
getLabelBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.EnumValue}
*/
public static final class EnumValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.EnumValue)
EnumValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use EnumValue.newBuilder() to construct.
private EnumValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EnumValue() {
label_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EnumValue(
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 8: {
bitField0_ |= 0x00000001;
value_ = input.readInt64();
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
label_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_EnumValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_EnumValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.EnumValue.class, org.yamcs.protobuf.Mdb.EnumValue.Builder.class);
}
private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
private long value_;
/**
* optional int64 value = 1;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 value = 1;
*/
public long getValue() {
return value_;
}
public static final int LABEL_FIELD_NUMBER = 2;
private volatile java.lang.Object label_;
/**
* optional string label = 2;
*/
public boolean hasLabel() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string label = 2;
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
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()) {
label_ = s;
}
return s;
}
}
/**
* optional string label = 2;
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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)) {
output.writeInt64(1, value_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_);
}
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.CodedOutputStream
.computeInt64Size(1, value_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_);
}
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.Mdb.EnumValue)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.EnumValue other = (org.yamcs.protobuf.Mdb.EnumValue) obj;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (getValue()
!= other.getValue()) return false;
}
if (hasLabel() != other.hasLabel()) return false;
if (hasLabel()) {
if (!getLabel()
.equals(other.getLabel())) 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 (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getValue());
}
if (hasLabel()) {
hash = (37 * hash) + LABEL_FIELD_NUMBER;
hash = (53 * hash) + getLabel().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.EnumValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.EnumValue 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.Mdb.EnumValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.EnumValue 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.Mdb.EnumValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.EnumValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.EnumValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.EnumValue 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.Mdb.EnumValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.EnumValue 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.Mdb.EnumValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.EnumValue 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.Mdb.EnumValue 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.mdb.EnumValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.EnumValue)
org.yamcs.protobuf.Mdb.EnumValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_EnumValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_EnumValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.EnumValue.class, org.yamcs.protobuf.Mdb.EnumValue.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.EnumValue.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();
value_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
label_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_EnumValue_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.EnumValue getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.EnumValue.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.EnumValue build() {
org.yamcs.protobuf.Mdb.EnumValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.EnumValue buildPartial() {
org.yamcs.protobuf.Mdb.EnumValue result = new org.yamcs.protobuf.Mdb.EnumValue(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.value_ = value_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.label_ = label_;
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.Mdb.EnumValue) {
return mergeFrom((org.yamcs.protobuf.Mdb.EnumValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.EnumValue other) {
if (other == org.yamcs.protobuf.Mdb.EnumValue.getDefaultInstance()) return this;
if (other.hasValue()) {
setValue(other.getValue());
}
if (other.hasLabel()) {
bitField0_ |= 0x00000002;
label_ = other.label_;
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.Mdb.EnumValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.EnumValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long value_ ;
/**
* optional int64 value = 1;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 value = 1;
*/
public long getValue() {
return value_;
}
/**
* optional int64 value = 1;
*/
public Builder setValue(long value) {
bitField0_ |= 0x00000001;
value_ = value;
onChanged();
return this;
}
/**
* optional int64 value = 1;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
value_ = 0L;
onChanged();
return this;
}
private java.lang.Object label_ = "";
/**
* optional string label = 2;
*/
public boolean hasLabel() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string label = 2;
*/
public java.lang.String getLabel() {
java.lang.Object ref = label_;
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()) {
label_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string label = 2;
*/
public com.google.protobuf.ByteString
getLabelBytes() {
java.lang.Object ref = label_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
label_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string label = 2;
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
label_ = value;
onChanged();
return this;
}
/**
* optional string label = 2;
*/
public Builder clearLabel() {
bitField0_ = (bitField0_ & ~0x00000002);
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
* optional string label = 2;
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
label_ = 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.mdb.EnumValue)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.EnumValue)
private static final org.yamcs.protobuf.Mdb.EnumValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.EnumValue();
}
public static org.yamcs.protobuf.Mdb.EnumValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EnumValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EnumValue(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.Mdb.EnumValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ParameterTypeInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.ParameterTypeInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional string engType = 1;
*/
boolean hasEngType();
/**
* optional string engType = 1;
*/
java.lang.String getEngType();
/**
* optional string engType = 1;
*/
com.google.protobuf.ByteString
getEngTypeBytes();
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
boolean hasDataEncoding();
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
org.yamcs.protobuf.Mdb.DataEncodingInfo getDataEncoding();
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
org.yamcs.protobuf.Mdb.DataEncodingInfoOrBuilder getDataEncodingOrBuilder();
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
java.util.List
getUnitSetList();
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
org.yamcs.protobuf.Mdb.UnitInfo getUnitSet(int index);
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
int getUnitSetCount();
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
java.util.List extends org.yamcs.protobuf.Mdb.UnitInfoOrBuilder>
getUnitSetOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
org.yamcs.protobuf.Mdb.UnitInfoOrBuilder getUnitSetOrBuilder(
int index);
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
boolean hasDefaultAlarm();
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
org.yamcs.protobuf.Mdb.AlarmInfo getDefaultAlarm();
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder getDefaultAlarmOrBuilder();
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
java.util.List
getEnumValueList();
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
org.yamcs.protobuf.Mdb.EnumValue getEnumValue(int index);
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
int getEnumValueCount();
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
java.util.List extends org.yamcs.protobuf.Mdb.EnumValueOrBuilder>
getEnumValueOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
org.yamcs.protobuf.Mdb.EnumValueOrBuilder getEnumValueOrBuilder(
int index);
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
boolean hasAbsoluteTimeInfo();
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo getAbsoluteTimeInfo();
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
org.yamcs.protobuf.Mdb.AbsoluteTimeInfoOrBuilder getAbsoluteTimeInfoOrBuilder();
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
java.util.List
getContextAlarmList();
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
org.yamcs.protobuf.Mdb.ContextAlarmInfo getContextAlarm(int index);
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
int getContextAlarmCount();
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
java.util.List extends org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>
getContextAlarmOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder getContextAlarmOrBuilder(
int index);
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
java.util.List
getMemberList();
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
org.yamcs.protobuf.Mdb.MemberInfo getMember(int index);
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
int getMemberCount();
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
java.util.List extends org.yamcs.protobuf.Mdb.MemberInfoOrBuilder>
getMemberOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
org.yamcs.protobuf.Mdb.MemberInfoOrBuilder getMemberOrBuilder(
int index);
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
boolean hasArrayInfo();
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
org.yamcs.protobuf.Mdb.ArrayInfo getArrayInfo();
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
org.yamcs.protobuf.Mdb.ArrayInfoOrBuilder getArrayInfoOrBuilder();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.ParameterTypeInfo}
*/
public static final class ParameterTypeInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.ParameterTypeInfo)
ParameterTypeInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ParameterTypeInfo.newBuilder() to construct.
private ParameterTypeInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ParameterTypeInfo() {
engType_ = "";
unitSet_ = java.util.Collections.emptyList();
enumValue_ = java.util.Collections.emptyList();
contextAlarm_ = java.util.Collections.emptyList();
member_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ParameterTypeInfo(
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;
engType_ = bs;
break;
}
case 18: {
org.yamcs.protobuf.Mdb.DataEncodingInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = dataEncoding_.toBuilder();
}
dataEncoding_ = input.readMessage(org.yamcs.protobuf.Mdb.DataEncodingInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataEncoding_);
dataEncoding_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
unitSet_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
unitSet_.add(
input.readMessage(org.yamcs.protobuf.Mdb.UnitInfo.PARSER, extensionRegistry));
break;
}
case 34: {
org.yamcs.protobuf.Mdb.AlarmInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = defaultAlarm_.toBuilder();
}
defaultAlarm_ = input.readMessage(org.yamcs.protobuf.Mdb.AlarmInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultAlarm_);
defaultAlarm_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
enumValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
enumValue_.add(
input.readMessage(org.yamcs.protobuf.Mdb.EnumValue.PARSER, extensionRegistry));
break;
}
case 50: {
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = absoluteTimeInfo_.toBuilder();
}
absoluteTimeInfo_ = input.readMessage(org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(absoluteTimeInfo_);
absoluteTimeInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
contextAlarm_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
contextAlarm_.add(
input.readMessage(org.yamcs.protobuf.Mdb.ContextAlarmInfo.PARSER, extensionRegistry));
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) != 0)) {
member_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
member_.add(
input.readMessage(org.yamcs.protobuf.Mdb.MemberInfo.PARSER, extensionRegistry));
break;
}
case 74: {
org.yamcs.protobuf.Mdb.ArrayInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = arrayInfo_.toBuilder();
}
arrayInfo_ = input.readMessage(org.yamcs.protobuf.Mdb.ArrayInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(arrayInfo_);
arrayInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
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_ & 0x00000004) != 0)) {
unitSet_ = java.util.Collections.unmodifiableList(unitSet_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
enumValue_ = java.util.Collections.unmodifiableList(enumValue_);
}
if (((mutable_bitField0_ & 0x00000040) != 0)) {
contextAlarm_ = java.util.Collections.unmodifiableList(contextAlarm_);
}
if (((mutable_bitField0_ & 0x00000080) != 0)) {
member_ = java.util.Collections.unmodifiableList(member_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ParameterTypeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ParameterTypeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.ParameterTypeInfo.class, org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder.class);
}
private int bitField0_;
public static final int ENGTYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object engType_;
/**
* optional string engType = 1;
*/
public boolean hasEngType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string engType = 1;
*/
public java.lang.String getEngType() {
java.lang.Object ref = engType_;
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()) {
engType_ = s;
}
return s;
}
}
/**
* optional string engType = 1;
*/
public com.google.protobuf.ByteString
getEngTypeBytes() {
java.lang.Object ref = engType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
engType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATAENCODING_FIELD_NUMBER = 2;
private org.yamcs.protobuf.Mdb.DataEncodingInfo dataEncoding_;
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public boolean hasDataEncoding() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public org.yamcs.protobuf.Mdb.DataEncodingInfo getDataEncoding() {
return dataEncoding_ == null ? org.yamcs.protobuf.Mdb.DataEncodingInfo.getDefaultInstance() : dataEncoding_;
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public org.yamcs.protobuf.Mdb.DataEncodingInfoOrBuilder getDataEncodingOrBuilder() {
return dataEncoding_ == null ? org.yamcs.protobuf.Mdb.DataEncodingInfo.getDefaultInstance() : dataEncoding_;
}
public static final int UNITSET_FIELD_NUMBER = 3;
private java.util.List unitSet_;
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public java.util.List getUnitSetList() {
return unitSet_;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.UnitInfoOrBuilder>
getUnitSetOrBuilderList() {
return unitSet_;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public int getUnitSetCount() {
return unitSet_.size();
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public org.yamcs.protobuf.Mdb.UnitInfo getUnitSet(int index) {
return unitSet_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public org.yamcs.protobuf.Mdb.UnitInfoOrBuilder getUnitSetOrBuilder(
int index) {
return unitSet_.get(index);
}
public static final int DEFAULTALARM_FIELD_NUMBER = 4;
private org.yamcs.protobuf.Mdb.AlarmInfo defaultAlarm_;
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public boolean hasDefaultAlarm() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public org.yamcs.protobuf.Mdb.AlarmInfo getDefaultAlarm() {
return defaultAlarm_ == null ? org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance() : defaultAlarm_;
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder getDefaultAlarmOrBuilder() {
return defaultAlarm_ == null ? org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance() : defaultAlarm_;
}
public static final int ENUMVALUE_FIELD_NUMBER = 5;
private java.util.List enumValue_;
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public java.util.List getEnumValueList() {
return enumValue_;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.EnumValueOrBuilder>
getEnumValueOrBuilderList() {
return enumValue_;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public int getEnumValueCount() {
return enumValue_.size();
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public org.yamcs.protobuf.Mdb.EnumValue getEnumValue(int index) {
return enumValue_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public org.yamcs.protobuf.Mdb.EnumValueOrBuilder getEnumValueOrBuilder(
int index) {
return enumValue_.get(index);
}
public static final int ABSOLUTETIMEINFO_FIELD_NUMBER = 6;
private org.yamcs.protobuf.Mdb.AbsoluteTimeInfo absoluteTimeInfo_;
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public boolean hasAbsoluteTimeInfo() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public org.yamcs.protobuf.Mdb.AbsoluteTimeInfo getAbsoluteTimeInfo() {
return absoluteTimeInfo_ == null ? org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.getDefaultInstance() : absoluteTimeInfo_;
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public org.yamcs.protobuf.Mdb.AbsoluteTimeInfoOrBuilder getAbsoluteTimeInfoOrBuilder() {
return absoluteTimeInfo_ == null ? org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.getDefaultInstance() : absoluteTimeInfo_;
}
public static final int CONTEXTALARM_FIELD_NUMBER = 7;
private java.util.List contextAlarm_;
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public java.util.List getContextAlarmList() {
return contextAlarm_;
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>
getContextAlarmOrBuilderList() {
return contextAlarm_;
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public int getContextAlarmCount() {
return contextAlarm_.size();
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo getContextAlarm(int index) {
return contextAlarm_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder getContextAlarmOrBuilder(
int index) {
return contextAlarm_.get(index);
}
public static final int MEMBER_FIELD_NUMBER = 8;
private java.util.List member_;
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public java.util.List getMemberList() {
return member_;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.MemberInfoOrBuilder>
getMemberOrBuilderList() {
return member_;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public int getMemberCount() {
return member_.size();
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public org.yamcs.protobuf.Mdb.MemberInfo getMember(int index) {
return member_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public org.yamcs.protobuf.Mdb.MemberInfoOrBuilder getMemberOrBuilder(
int index) {
return member_.get(index);
}
public static final int ARRAYINFO_FIELD_NUMBER = 9;
private org.yamcs.protobuf.Mdb.ArrayInfo arrayInfo_;
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public boolean hasArrayInfo() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public org.yamcs.protobuf.Mdb.ArrayInfo getArrayInfo() {
return arrayInfo_ == null ? org.yamcs.protobuf.Mdb.ArrayInfo.getDefaultInstance() : arrayInfo_;
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public org.yamcs.protobuf.Mdb.ArrayInfoOrBuilder getArrayInfoOrBuilder() {
return arrayInfo_ == null ? org.yamcs.protobuf.Mdb.ArrayInfo.getDefaultInstance() : arrayInfo_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasDataEncoding()) {
if (!getDataEncoding().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasAbsoluteTimeInfo()) {
if (!getAbsoluteTimeInfo().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getContextAlarmCount(); i++) {
if (!getContextAlarm(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getMemberCount(); i++) {
if (!getMember(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasArrayInfo()) {
if (!getArrayInfo().isInitialized()) {
memoizedIsInitialized = 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, engType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getDataEncoding());
}
for (int i = 0; i < unitSet_.size(); i++) {
output.writeMessage(3, unitSet_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(4, getDefaultAlarm());
}
for (int i = 0; i < enumValue_.size(); i++) {
output.writeMessage(5, enumValue_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(6, getAbsoluteTimeInfo());
}
for (int i = 0; i < contextAlarm_.size(); i++) {
output.writeMessage(7, contextAlarm_.get(i));
}
for (int i = 0; i < member_.size(); i++) {
output.writeMessage(8, member_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(9, getArrayInfo());
}
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, engType_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getDataEncoding());
}
for (int i = 0; i < unitSet_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, unitSet_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getDefaultAlarm());
}
for (int i = 0; i < enumValue_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, enumValue_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getAbsoluteTimeInfo());
}
for (int i = 0; i < contextAlarm_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, contextAlarm_.get(i));
}
for (int i = 0; i < member_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, member_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getArrayInfo());
}
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.Mdb.ParameterTypeInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.ParameterTypeInfo other = (org.yamcs.protobuf.Mdb.ParameterTypeInfo) obj;
if (hasEngType() != other.hasEngType()) return false;
if (hasEngType()) {
if (!getEngType()
.equals(other.getEngType())) return false;
}
if (hasDataEncoding() != other.hasDataEncoding()) return false;
if (hasDataEncoding()) {
if (!getDataEncoding()
.equals(other.getDataEncoding())) return false;
}
if (!getUnitSetList()
.equals(other.getUnitSetList())) return false;
if (hasDefaultAlarm() != other.hasDefaultAlarm()) return false;
if (hasDefaultAlarm()) {
if (!getDefaultAlarm()
.equals(other.getDefaultAlarm())) return false;
}
if (!getEnumValueList()
.equals(other.getEnumValueList())) return false;
if (hasAbsoluteTimeInfo() != other.hasAbsoluteTimeInfo()) return false;
if (hasAbsoluteTimeInfo()) {
if (!getAbsoluteTimeInfo()
.equals(other.getAbsoluteTimeInfo())) return false;
}
if (!getContextAlarmList()
.equals(other.getContextAlarmList())) return false;
if (!getMemberList()
.equals(other.getMemberList())) return false;
if (hasArrayInfo() != other.hasArrayInfo()) return false;
if (hasArrayInfo()) {
if (!getArrayInfo()
.equals(other.getArrayInfo())) 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 (hasEngType()) {
hash = (37 * hash) + ENGTYPE_FIELD_NUMBER;
hash = (53 * hash) + getEngType().hashCode();
}
if (hasDataEncoding()) {
hash = (37 * hash) + DATAENCODING_FIELD_NUMBER;
hash = (53 * hash) + getDataEncoding().hashCode();
}
if (getUnitSetCount() > 0) {
hash = (37 * hash) + UNITSET_FIELD_NUMBER;
hash = (53 * hash) + getUnitSetList().hashCode();
}
if (hasDefaultAlarm()) {
hash = (37 * hash) + DEFAULTALARM_FIELD_NUMBER;
hash = (53 * hash) + getDefaultAlarm().hashCode();
}
if (getEnumValueCount() > 0) {
hash = (37 * hash) + ENUMVALUE_FIELD_NUMBER;
hash = (53 * hash) + getEnumValueList().hashCode();
}
if (hasAbsoluteTimeInfo()) {
hash = (37 * hash) + ABSOLUTETIMEINFO_FIELD_NUMBER;
hash = (53 * hash) + getAbsoluteTimeInfo().hashCode();
}
if (getContextAlarmCount() > 0) {
hash = (37 * hash) + CONTEXTALARM_FIELD_NUMBER;
hash = (53 * hash) + getContextAlarmList().hashCode();
}
if (getMemberCount() > 0) {
hash = (37 * hash) + MEMBER_FIELD_NUMBER;
hash = (53 * hash) + getMemberList().hashCode();
}
if (hasArrayInfo()) {
hash = (37 * hash) + ARRAYINFO_FIELD_NUMBER;
hash = (53 * hash) + getArrayInfo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.ParameterTypeInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ParameterTypeInfo 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.Mdb.ParameterTypeInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ParameterTypeInfo 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.Mdb.ParameterTypeInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ParameterTypeInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.ParameterTypeInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ParameterTypeInfo 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.Mdb.ParameterTypeInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ParameterTypeInfo 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.Mdb.ParameterTypeInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ParameterTypeInfo 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.Mdb.ParameterTypeInfo 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.mdb.ParameterTypeInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.ParameterTypeInfo)
org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ParameterTypeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ParameterTypeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.ParameterTypeInfo.class, org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.ParameterTypeInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDataEncodingFieldBuilder();
getUnitSetFieldBuilder();
getDefaultAlarmFieldBuilder();
getEnumValueFieldBuilder();
getAbsoluteTimeInfoFieldBuilder();
getContextAlarmFieldBuilder();
getMemberFieldBuilder();
getArrayInfoFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
engType_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (dataEncodingBuilder_ == null) {
dataEncoding_ = null;
} else {
dataEncodingBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (unitSetBuilder_ == null) {
unitSet_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
unitSetBuilder_.clear();
}
if (defaultAlarmBuilder_ == null) {
defaultAlarm_ = null;
} else {
defaultAlarmBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (enumValueBuilder_ == null) {
enumValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
enumValueBuilder_.clear();
}
if (absoluteTimeInfoBuilder_ == null) {
absoluteTimeInfo_ = null;
} else {
absoluteTimeInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
if (contextAlarmBuilder_ == null) {
contextAlarm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
contextAlarmBuilder_.clear();
}
if (memberBuilder_ == null) {
member_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
memberBuilder_.clear();
}
if (arrayInfoBuilder_ == null) {
arrayInfo_ = null;
} else {
arrayInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ParameterTypeInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ParameterTypeInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ParameterTypeInfo build() {
org.yamcs.protobuf.Mdb.ParameterTypeInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ParameterTypeInfo buildPartial() {
org.yamcs.protobuf.Mdb.ParameterTypeInfo result = new org.yamcs.protobuf.Mdb.ParameterTypeInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.engType_ = engType_;
if (((from_bitField0_ & 0x00000002) != 0)) {
if (dataEncodingBuilder_ == null) {
result.dataEncoding_ = dataEncoding_;
} else {
result.dataEncoding_ = dataEncodingBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (unitSetBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
unitSet_ = java.util.Collections.unmodifiableList(unitSet_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.unitSet_ = unitSet_;
} else {
result.unitSet_ = unitSetBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (defaultAlarmBuilder_ == null) {
result.defaultAlarm_ = defaultAlarm_;
} else {
result.defaultAlarm_ = defaultAlarmBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (enumValueBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
enumValue_ = java.util.Collections.unmodifiableList(enumValue_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.enumValue_ = enumValue_;
} else {
result.enumValue_ = enumValueBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
if (absoluteTimeInfoBuilder_ == null) {
result.absoluteTimeInfo_ = absoluteTimeInfo_;
} else {
result.absoluteTimeInfo_ = absoluteTimeInfoBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (contextAlarmBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
contextAlarm_ = java.util.Collections.unmodifiableList(contextAlarm_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.contextAlarm_ = contextAlarm_;
} else {
result.contextAlarm_ = contextAlarmBuilder_.build();
}
if (memberBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
member_ = java.util.Collections.unmodifiableList(member_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.member_ = member_;
} else {
result.member_ = memberBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
if (arrayInfoBuilder_ == null) {
result.arrayInfo_ = arrayInfo_;
} else {
result.arrayInfo_ = arrayInfoBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
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.Mdb.ParameterTypeInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.ParameterTypeInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.ParameterTypeInfo other) {
if (other == org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance()) return this;
if (other.hasEngType()) {
bitField0_ |= 0x00000001;
engType_ = other.engType_;
onChanged();
}
if (other.hasDataEncoding()) {
mergeDataEncoding(other.getDataEncoding());
}
if (unitSetBuilder_ == null) {
if (!other.unitSet_.isEmpty()) {
if (unitSet_.isEmpty()) {
unitSet_ = other.unitSet_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureUnitSetIsMutable();
unitSet_.addAll(other.unitSet_);
}
onChanged();
}
} else {
if (!other.unitSet_.isEmpty()) {
if (unitSetBuilder_.isEmpty()) {
unitSetBuilder_.dispose();
unitSetBuilder_ = null;
unitSet_ = other.unitSet_;
bitField0_ = (bitField0_ & ~0x00000004);
unitSetBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUnitSetFieldBuilder() : null;
} else {
unitSetBuilder_.addAllMessages(other.unitSet_);
}
}
}
if (other.hasDefaultAlarm()) {
mergeDefaultAlarm(other.getDefaultAlarm());
}
if (enumValueBuilder_ == null) {
if (!other.enumValue_.isEmpty()) {
if (enumValue_.isEmpty()) {
enumValue_ = other.enumValue_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureEnumValueIsMutable();
enumValue_.addAll(other.enumValue_);
}
onChanged();
}
} else {
if (!other.enumValue_.isEmpty()) {
if (enumValueBuilder_.isEmpty()) {
enumValueBuilder_.dispose();
enumValueBuilder_ = null;
enumValue_ = other.enumValue_;
bitField0_ = (bitField0_ & ~0x00000010);
enumValueBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEnumValueFieldBuilder() : null;
} else {
enumValueBuilder_.addAllMessages(other.enumValue_);
}
}
}
if (other.hasAbsoluteTimeInfo()) {
mergeAbsoluteTimeInfo(other.getAbsoluteTimeInfo());
}
if (contextAlarmBuilder_ == null) {
if (!other.contextAlarm_.isEmpty()) {
if (contextAlarm_.isEmpty()) {
contextAlarm_ = other.contextAlarm_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureContextAlarmIsMutable();
contextAlarm_.addAll(other.contextAlarm_);
}
onChanged();
}
} else {
if (!other.contextAlarm_.isEmpty()) {
if (contextAlarmBuilder_.isEmpty()) {
contextAlarmBuilder_.dispose();
contextAlarmBuilder_ = null;
contextAlarm_ = other.contextAlarm_;
bitField0_ = (bitField0_ & ~0x00000040);
contextAlarmBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContextAlarmFieldBuilder() : null;
} else {
contextAlarmBuilder_.addAllMessages(other.contextAlarm_);
}
}
}
if (memberBuilder_ == null) {
if (!other.member_.isEmpty()) {
if (member_.isEmpty()) {
member_ = other.member_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureMemberIsMutable();
member_.addAll(other.member_);
}
onChanged();
}
} else {
if (!other.member_.isEmpty()) {
if (memberBuilder_.isEmpty()) {
memberBuilder_.dispose();
memberBuilder_ = null;
member_ = other.member_;
bitField0_ = (bitField0_ & ~0x00000080);
memberBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMemberFieldBuilder() : null;
} else {
memberBuilder_.addAllMessages(other.member_);
}
}
}
if (other.hasArrayInfo()) {
mergeArrayInfo(other.getArrayInfo());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasDataEncoding()) {
if (!getDataEncoding().isInitialized()) {
return false;
}
}
if (hasAbsoluteTimeInfo()) {
if (!getAbsoluteTimeInfo().isInitialized()) {
return false;
}
}
for (int i = 0; i < getContextAlarmCount(); i++) {
if (!getContextAlarm(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getMemberCount(); i++) {
if (!getMember(i).isInitialized()) {
return false;
}
}
if (hasArrayInfo()) {
if (!getArrayInfo().isInitialized()) {
return false;
}
}
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.Mdb.ParameterTypeInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.ParameterTypeInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object engType_ = "";
/**
* optional string engType = 1;
*/
public boolean hasEngType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string engType = 1;
*/
public java.lang.String getEngType() {
java.lang.Object ref = engType_;
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()) {
engType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string engType = 1;
*/
public com.google.protobuf.ByteString
getEngTypeBytes() {
java.lang.Object ref = engType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
engType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string engType = 1;
*/
public Builder setEngType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
engType_ = value;
onChanged();
return this;
}
/**
* optional string engType = 1;
*/
public Builder clearEngType() {
bitField0_ = (bitField0_ & ~0x00000001);
engType_ = getDefaultInstance().getEngType();
onChanged();
return this;
}
/**
* optional string engType = 1;
*/
public Builder setEngTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
engType_ = value;
onChanged();
return this;
}
private org.yamcs.protobuf.Mdb.DataEncodingInfo dataEncoding_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.DataEncodingInfo, org.yamcs.protobuf.Mdb.DataEncodingInfo.Builder, org.yamcs.protobuf.Mdb.DataEncodingInfoOrBuilder> dataEncodingBuilder_;
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public boolean hasDataEncoding() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public org.yamcs.protobuf.Mdb.DataEncodingInfo getDataEncoding() {
if (dataEncodingBuilder_ == null) {
return dataEncoding_ == null ? org.yamcs.protobuf.Mdb.DataEncodingInfo.getDefaultInstance() : dataEncoding_;
} else {
return dataEncodingBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public Builder setDataEncoding(org.yamcs.protobuf.Mdb.DataEncodingInfo value) {
if (dataEncodingBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
dataEncoding_ = value;
onChanged();
} else {
dataEncodingBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public Builder setDataEncoding(
org.yamcs.protobuf.Mdb.DataEncodingInfo.Builder builderForValue) {
if (dataEncodingBuilder_ == null) {
dataEncoding_ = builderForValue.build();
onChanged();
} else {
dataEncodingBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public Builder mergeDataEncoding(org.yamcs.protobuf.Mdb.DataEncodingInfo value) {
if (dataEncodingBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
dataEncoding_ != null &&
dataEncoding_ != org.yamcs.protobuf.Mdb.DataEncodingInfo.getDefaultInstance()) {
dataEncoding_ =
org.yamcs.protobuf.Mdb.DataEncodingInfo.newBuilder(dataEncoding_).mergeFrom(value).buildPartial();
} else {
dataEncoding_ = value;
}
onChanged();
} else {
dataEncodingBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public Builder clearDataEncoding() {
if (dataEncodingBuilder_ == null) {
dataEncoding_ = null;
onChanged();
} else {
dataEncodingBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public org.yamcs.protobuf.Mdb.DataEncodingInfo.Builder getDataEncodingBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getDataEncodingFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public org.yamcs.protobuf.Mdb.DataEncodingInfoOrBuilder getDataEncodingOrBuilder() {
if (dataEncodingBuilder_ != null) {
return dataEncodingBuilder_.getMessageOrBuilder();
} else {
return dataEncoding_ == null ?
org.yamcs.protobuf.Mdb.DataEncodingInfo.getDefaultInstance() : dataEncoding_;
}
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.DataEncodingInfo, org.yamcs.protobuf.Mdb.DataEncodingInfo.Builder, org.yamcs.protobuf.Mdb.DataEncodingInfoOrBuilder>
getDataEncodingFieldBuilder() {
if (dataEncodingBuilder_ == null) {
dataEncodingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.DataEncodingInfo, org.yamcs.protobuf.Mdb.DataEncodingInfo.Builder, org.yamcs.protobuf.Mdb.DataEncodingInfoOrBuilder>(
getDataEncoding(),
getParentForChildren(),
isClean());
dataEncoding_ = null;
}
return dataEncodingBuilder_;
}
private java.util.List unitSet_ =
java.util.Collections.emptyList();
private void ensureUnitSetIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
unitSet_ = new java.util.ArrayList(unitSet_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.UnitInfo, org.yamcs.protobuf.Mdb.UnitInfo.Builder, org.yamcs.protobuf.Mdb.UnitInfoOrBuilder> unitSetBuilder_;
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public java.util.List getUnitSetList() {
if (unitSetBuilder_ == null) {
return java.util.Collections.unmodifiableList(unitSet_);
} else {
return unitSetBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public int getUnitSetCount() {
if (unitSetBuilder_ == null) {
return unitSet_.size();
} else {
return unitSetBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public org.yamcs.protobuf.Mdb.UnitInfo getUnitSet(int index) {
if (unitSetBuilder_ == null) {
return unitSet_.get(index);
} else {
return unitSetBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public Builder setUnitSet(
int index, org.yamcs.protobuf.Mdb.UnitInfo value) {
if (unitSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnitSetIsMutable();
unitSet_.set(index, value);
onChanged();
} else {
unitSetBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public Builder setUnitSet(
int index, org.yamcs.protobuf.Mdb.UnitInfo.Builder builderForValue) {
if (unitSetBuilder_ == null) {
ensureUnitSetIsMutable();
unitSet_.set(index, builderForValue.build());
onChanged();
} else {
unitSetBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public Builder addUnitSet(org.yamcs.protobuf.Mdb.UnitInfo value) {
if (unitSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnitSetIsMutable();
unitSet_.add(value);
onChanged();
} else {
unitSetBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public Builder addUnitSet(
int index, org.yamcs.protobuf.Mdb.UnitInfo value) {
if (unitSetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureUnitSetIsMutable();
unitSet_.add(index, value);
onChanged();
} else {
unitSetBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public Builder addUnitSet(
org.yamcs.protobuf.Mdb.UnitInfo.Builder builderForValue) {
if (unitSetBuilder_ == null) {
ensureUnitSetIsMutable();
unitSet_.add(builderForValue.build());
onChanged();
} else {
unitSetBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public Builder addUnitSet(
int index, org.yamcs.protobuf.Mdb.UnitInfo.Builder builderForValue) {
if (unitSetBuilder_ == null) {
ensureUnitSetIsMutable();
unitSet_.add(index, builderForValue.build());
onChanged();
} else {
unitSetBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public Builder addAllUnitSet(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.UnitInfo> values) {
if (unitSetBuilder_ == null) {
ensureUnitSetIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, unitSet_);
onChanged();
} else {
unitSetBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public Builder clearUnitSet() {
if (unitSetBuilder_ == null) {
unitSet_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
unitSetBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public Builder removeUnitSet(int index) {
if (unitSetBuilder_ == null) {
ensureUnitSetIsMutable();
unitSet_.remove(index);
onChanged();
} else {
unitSetBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public org.yamcs.protobuf.Mdb.UnitInfo.Builder getUnitSetBuilder(
int index) {
return getUnitSetFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public org.yamcs.protobuf.Mdb.UnitInfoOrBuilder getUnitSetOrBuilder(
int index) {
if (unitSetBuilder_ == null) {
return unitSet_.get(index); } else {
return unitSetBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.UnitInfoOrBuilder>
getUnitSetOrBuilderList() {
if (unitSetBuilder_ != null) {
return unitSetBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(unitSet_);
}
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public org.yamcs.protobuf.Mdb.UnitInfo.Builder addUnitSetBuilder() {
return getUnitSetFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.UnitInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public org.yamcs.protobuf.Mdb.UnitInfo.Builder addUnitSetBuilder(
int index) {
return getUnitSetFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.UnitInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
public java.util.List
getUnitSetBuilderList() {
return getUnitSetFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.UnitInfo, org.yamcs.protobuf.Mdb.UnitInfo.Builder, org.yamcs.protobuf.Mdb.UnitInfoOrBuilder>
getUnitSetFieldBuilder() {
if (unitSetBuilder_ == null) {
unitSetBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.UnitInfo, org.yamcs.protobuf.Mdb.UnitInfo.Builder, org.yamcs.protobuf.Mdb.UnitInfoOrBuilder>(
unitSet_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
unitSet_ = null;
}
return unitSetBuilder_;
}
private org.yamcs.protobuf.Mdb.AlarmInfo defaultAlarm_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlarmInfo, org.yamcs.protobuf.Mdb.AlarmInfo.Builder, org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder> defaultAlarmBuilder_;
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public boolean hasDefaultAlarm() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public org.yamcs.protobuf.Mdb.AlarmInfo getDefaultAlarm() {
if (defaultAlarmBuilder_ == null) {
return defaultAlarm_ == null ? org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance() : defaultAlarm_;
} else {
return defaultAlarmBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public Builder setDefaultAlarm(org.yamcs.protobuf.Mdb.AlarmInfo value) {
if (defaultAlarmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultAlarm_ = value;
onChanged();
} else {
defaultAlarmBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public Builder setDefaultAlarm(
org.yamcs.protobuf.Mdb.AlarmInfo.Builder builderForValue) {
if (defaultAlarmBuilder_ == null) {
defaultAlarm_ = builderForValue.build();
onChanged();
} else {
defaultAlarmBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public Builder mergeDefaultAlarm(org.yamcs.protobuf.Mdb.AlarmInfo value) {
if (defaultAlarmBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
defaultAlarm_ != null &&
defaultAlarm_ != org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance()) {
defaultAlarm_ =
org.yamcs.protobuf.Mdb.AlarmInfo.newBuilder(defaultAlarm_).mergeFrom(value).buildPartial();
} else {
defaultAlarm_ = value;
}
onChanged();
} else {
defaultAlarmBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public Builder clearDefaultAlarm() {
if (defaultAlarmBuilder_ == null) {
defaultAlarm_ = null;
onChanged();
} else {
defaultAlarmBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public org.yamcs.protobuf.Mdb.AlarmInfo.Builder getDefaultAlarmBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getDefaultAlarmFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder getDefaultAlarmOrBuilder() {
if (defaultAlarmBuilder_ != null) {
return defaultAlarmBuilder_.getMessageOrBuilder();
} else {
return defaultAlarm_ == null ?
org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance() : defaultAlarm_;
}
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlarmInfo, org.yamcs.protobuf.Mdb.AlarmInfo.Builder, org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder>
getDefaultAlarmFieldBuilder() {
if (defaultAlarmBuilder_ == null) {
defaultAlarmBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlarmInfo, org.yamcs.protobuf.Mdb.AlarmInfo.Builder, org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder>(
getDefaultAlarm(),
getParentForChildren(),
isClean());
defaultAlarm_ = null;
}
return defaultAlarmBuilder_;
}
private java.util.List enumValue_ =
java.util.Collections.emptyList();
private void ensureEnumValueIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
enumValue_ = new java.util.ArrayList(enumValue_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.EnumValue, org.yamcs.protobuf.Mdb.EnumValue.Builder, org.yamcs.protobuf.Mdb.EnumValueOrBuilder> enumValueBuilder_;
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public java.util.List getEnumValueList() {
if (enumValueBuilder_ == null) {
return java.util.Collections.unmodifiableList(enumValue_);
} else {
return enumValueBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public int getEnumValueCount() {
if (enumValueBuilder_ == null) {
return enumValue_.size();
} else {
return enumValueBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public org.yamcs.protobuf.Mdb.EnumValue getEnumValue(int index) {
if (enumValueBuilder_ == null) {
return enumValue_.get(index);
} else {
return enumValueBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public Builder setEnumValue(
int index, org.yamcs.protobuf.Mdb.EnumValue value) {
if (enumValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnumValueIsMutable();
enumValue_.set(index, value);
onChanged();
} else {
enumValueBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public Builder setEnumValue(
int index, org.yamcs.protobuf.Mdb.EnumValue.Builder builderForValue) {
if (enumValueBuilder_ == null) {
ensureEnumValueIsMutable();
enumValue_.set(index, builderForValue.build());
onChanged();
} else {
enumValueBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public Builder addEnumValue(org.yamcs.protobuf.Mdb.EnumValue value) {
if (enumValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnumValueIsMutable();
enumValue_.add(value);
onChanged();
} else {
enumValueBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public Builder addEnumValue(
int index, org.yamcs.protobuf.Mdb.EnumValue value) {
if (enumValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnumValueIsMutable();
enumValue_.add(index, value);
onChanged();
} else {
enumValueBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public Builder addEnumValue(
org.yamcs.protobuf.Mdb.EnumValue.Builder builderForValue) {
if (enumValueBuilder_ == null) {
ensureEnumValueIsMutable();
enumValue_.add(builderForValue.build());
onChanged();
} else {
enumValueBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public Builder addEnumValue(
int index, org.yamcs.protobuf.Mdb.EnumValue.Builder builderForValue) {
if (enumValueBuilder_ == null) {
ensureEnumValueIsMutable();
enumValue_.add(index, builderForValue.build());
onChanged();
} else {
enumValueBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public Builder addAllEnumValue(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.EnumValue> values) {
if (enumValueBuilder_ == null) {
ensureEnumValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, enumValue_);
onChanged();
} else {
enumValueBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public Builder clearEnumValue() {
if (enumValueBuilder_ == null) {
enumValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
enumValueBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public Builder removeEnumValue(int index) {
if (enumValueBuilder_ == null) {
ensureEnumValueIsMutable();
enumValue_.remove(index);
onChanged();
} else {
enumValueBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public org.yamcs.protobuf.Mdb.EnumValue.Builder getEnumValueBuilder(
int index) {
return getEnumValueFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public org.yamcs.protobuf.Mdb.EnumValueOrBuilder getEnumValueOrBuilder(
int index) {
if (enumValueBuilder_ == null) {
return enumValue_.get(index); } else {
return enumValueBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.EnumValueOrBuilder>
getEnumValueOrBuilderList() {
if (enumValueBuilder_ != null) {
return enumValueBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(enumValue_);
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public org.yamcs.protobuf.Mdb.EnumValue.Builder addEnumValueBuilder() {
return getEnumValueFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.EnumValue.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public org.yamcs.protobuf.Mdb.EnumValue.Builder addEnumValueBuilder(
int index) {
return getEnumValueFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.EnumValue.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
public java.util.List
getEnumValueBuilderList() {
return getEnumValueFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.EnumValue, org.yamcs.protobuf.Mdb.EnumValue.Builder, org.yamcs.protobuf.Mdb.EnumValueOrBuilder>
getEnumValueFieldBuilder() {
if (enumValueBuilder_ == null) {
enumValueBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.EnumValue, org.yamcs.protobuf.Mdb.EnumValue.Builder, org.yamcs.protobuf.Mdb.EnumValueOrBuilder>(
enumValue_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
enumValue_ = null;
}
return enumValueBuilder_;
}
private org.yamcs.protobuf.Mdb.AbsoluteTimeInfo absoluteTimeInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo, org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.Builder, org.yamcs.protobuf.Mdb.AbsoluteTimeInfoOrBuilder> absoluteTimeInfoBuilder_;
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public boolean hasAbsoluteTimeInfo() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public org.yamcs.protobuf.Mdb.AbsoluteTimeInfo getAbsoluteTimeInfo() {
if (absoluteTimeInfoBuilder_ == null) {
return absoluteTimeInfo_ == null ? org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.getDefaultInstance() : absoluteTimeInfo_;
} else {
return absoluteTimeInfoBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public Builder setAbsoluteTimeInfo(org.yamcs.protobuf.Mdb.AbsoluteTimeInfo value) {
if (absoluteTimeInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
absoluteTimeInfo_ = value;
onChanged();
} else {
absoluteTimeInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public Builder setAbsoluteTimeInfo(
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.Builder builderForValue) {
if (absoluteTimeInfoBuilder_ == null) {
absoluteTimeInfo_ = builderForValue.build();
onChanged();
} else {
absoluteTimeInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public Builder mergeAbsoluteTimeInfo(org.yamcs.protobuf.Mdb.AbsoluteTimeInfo value) {
if (absoluteTimeInfoBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
absoluteTimeInfo_ != null &&
absoluteTimeInfo_ != org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.getDefaultInstance()) {
absoluteTimeInfo_ =
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.newBuilder(absoluteTimeInfo_).mergeFrom(value).buildPartial();
} else {
absoluteTimeInfo_ = value;
}
onChanged();
} else {
absoluteTimeInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public Builder clearAbsoluteTimeInfo() {
if (absoluteTimeInfoBuilder_ == null) {
absoluteTimeInfo_ = null;
onChanged();
} else {
absoluteTimeInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.Builder getAbsoluteTimeInfoBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getAbsoluteTimeInfoFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public org.yamcs.protobuf.Mdb.AbsoluteTimeInfoOrBuilder getAbsoluteTimeInfoOrBuilder() {
if (absoluteTimeInfoBuilder_ != null) {
return absoluteTimeInfoBuilder_.getMessageOrBuilder();
} else {
return absoluteTimeInfo_ == null ?
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.getDefaultInstance() : absoluteTimeInfo_;
}
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo, org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.Builder, org.yamcs.protobuf.Mdb.AbsoluteTimeInfoOrBuilder>
getAbsoluteTimeInfoFieldBuilder() {
if (absoluteTimeInfoBuilder_ == null) {
absoluteTimeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo, org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.Builder, org.yamcs.protobuf.Mdb.AbsoluteTimeInfoOrBuilder>(
getAbsoluteTimeInfo(),
getParentForChildren(),
isClean());
absoluteTimeInfo_ = null;
}
return absoluteTimeInfoBuilder_;
}
private java.util.List contextAlarm_ =
java.util.Collections.emptyList();
private void ensureContextAlarmIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
contextAlarm_ = new java.util.ArrayList(contextAlarm_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextAlarmInfo, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder, org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder> contextAlarmBuilder_;
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public java.util.List getContextAlarmList() {
if (contextAlarmBuilder_ == null) {
return java.util.Collections.unmodifiableList(contextAlarm_);
} else {
return contextAlarmBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public int getContextAlarmCount() {
if (contextAlarmBuilder_ == null) {
return contextAlarm_.size();
} else {
return contextAlarmBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo getContextAlarm(int index) {
if (contextAlarmBuilder_ == null) {
return contextAlarm_.get(index);
} else {
return contextAlarmBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public Builder setContextAlarm(
int index, org.yamcs.protobuf.Mdb.ContextAlarmInfo value) {
if (contextAlarmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextAlarmIsMutable();
contextAlarm_.set(index, value);
onChanged();
} else {
contextAlarmBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public Builder setContextAlarm(
int index, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder builderForValue) {
if (contextAlarmBuilder_ == null) {
ensureContextAlarmIsMutable();
contextAlarm_.set(index, builderForValue.build());
onChanged();
} else {
contextAlarmBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public Builder addContextAlarm(org.yamcs.protobuf.Mdb.ContextAlarmInfo value) {
if (contextAlarmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextAlarmIsMutable();
contextAlarm_.add(value);
onChanged();
} else {
contextAlarmBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public Builder addContextAlarm(
int index, org.yamcs.protobuf.Mdb.ContextAlarmInfo value) {
if (contextAlarmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextAlarmIsMutable();
contextAlarm_.add(index, value);
onChanged();
} else {
contextAlarmBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public Builder addContextAlarm(
org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder builderForValue) {
if (contextAlarmBuilder_ == null) {
ensureContextAlarmIsMutable();
contextAlarm_.add(builderForValue.build());
onChanged();
} else {
contextAlarmBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public Builder addContextAlarm(
int index, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder builderForValue) {
if (contextAlarmBuilder_ == null) {
ensureContextAlarmIsMutable();
contextAlarm_.add(index, builderForValue.build());
onChanged();
} else {
contextAlarmBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public Builder addAllContextAlarm(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.ContextAlarmInfo> values) {
if (contextAlarmBuilder_ == null) {
ensureContextAlarmIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contextAlarm_);
onChanged();
} else {
contextAlarmBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public Builder clearContextAlarm() {
if (contextAlarmBuilder_ == null) {
contextAlarm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
contextAlarmBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public Builder removeContextAlarm(int index) {
if (contextAlarmBuilder_ == null) {
ensureContextAlarmIsMutable();
contextAlarm_.remove(index);
onChanged();
} else {
contextAlarmBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder getContextAlarmBuilder(
int index) {
return getContextAlarmFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder getContextAlarmOrBuilder(
int index) {
if (contextAlarmBuilder_ == null) {
return contextAlarm_.get(index); } else {
return contextAlarmBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>
getContextAlarmOrBuilderList() {
if (contextAlarmBuilder_ != null) {
return contextAlarmBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contextAlarm_);
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder addContextAlarmBuilder() {
return getContextAlarmFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ContextAlarmInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder addContextAlarmBuilder(
int index) {
return getContextAlarmFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ContextAlarmInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public java.util.List
getContextAlarmBuilderList() {
return getContextAlarmFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextAlarmInfo, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder, org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>
getContextAlarmFieldBuilder() {
if (contextAlarmBuilder_ == null) {
contextAlarmBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextAlarmInfo, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder, org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>(
contextAlarm_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
contextAlarm_ = null;
}
return contextAlarmBuilder_;
}
private java.util.List member_ =
java.util.Collections.emptyList();
private void ensureMemberIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
member_ = new java.util.ArrayList(member_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.MemberInfo, org.yamcs.protobuf.Mdb.MemberInfo.Builder, org.yamcs.protobuf.Mdb.MemberInfoOrBuilder> memberBuilder_;
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public java.util.List getMemberList() {
if (memberBuilder_ == null) {
return java.util.Collections.unmodifiableList(member_);
} else {
return memberBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public int getMemberCount() {
if (memberBuilder_ == null) {
return member_.size();
} else {
return memberBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public org.yamcs.protobuf.Mdb.MemberInfo getMember(int index) {
if (memberBuilder_ == null) {
return member_.get(index);
} else {
return memberBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public Builder setMember(
int index, org.yamcs.protobuf.Mdb.MemberInfo value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberIsMutable();
member_.set(index, value);
onChanged();
} else {
memberBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public Builder setMember(
int index, org.yamcs.protobuf.Mdb.MemberInfo.Builder builderForValue) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.set(index, builderForValue.build());
onChanged();
} else {
memberBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public Builder addMember(org.yamcs.protobuf.Mdb.MemberInfo value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberIsMutable();
member_.add(value);
onChanged();
} else {
memberBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public Builder addMember(
int index, org.yamcs.protobuf.Mdb.MemberInfo value) {
if (memberBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureMemberIsMutable();
member_.add(index, value);
onChanged();
} else {
memberBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public Builder addMember(
org.yamcs.protobuf.Mdb.MemberInfo.Builder builderForValue) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.add(builderForValue.build());
onChanged();
} else {
memberBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public Builder addMember(
int index, org.yamcs.protobuf.Mdb.MemberInfo.Builder builderForValue) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.add(index, builderForValue.build());
onChanged();
} else {
memberBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public Builder addAllMember(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.MemberInfo> values) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, member_);
onChanged();
} else {
memberBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public Builder clearMember() {
if (memberBuilder_ == null) {
member_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
memberBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public Builder removeMember(int index) {
if (memberBuilder_ == null) {
ensureMemberIsMutable();
member_.remove(index);
onChanged();
} else {
memberBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public org.yamcs.protobuf.Mdb.MemberInfo.Builder getMemberBuilder(
int index) {
return getMemberFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public org.yamcs.protobuf.Mdb.MemberInfoOrBuilder getMemberOrBuilder(
int index) {
if (memberBuilder_ == null) {
return member_.get(index); } else {
return memberBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.MemberInfoOrBuilder>
getMemberOrBuilderList() {
if (memberBuilder_ != null) {
return memberBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(member_);
}
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public org.yamcs.protobuf.Mdb.MemberInfo.Builder addMemberBuilder() {
return getMemberFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.MemberInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public org.yamcs.protobuf.Mdb.MemberInfo.Builder addMemberBuilder(
int index) {
return getMemberFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.MemberInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
public java.util.List
getMemberBuilderList() {
return getMemberFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.MemberInfo, org.yamcs.protobuf.Mdb.MemberInfo.Builder, org.yamcs.protobuf.Mdb.MemberInfoOrBuilder>
getMemberFieldBuilder() {
if (memberBuilder_ == null) {
memberBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.MemberInfo, org.yamcs.protobuf.Mdb.MemberInfo.Builder, org.yamcs.protobuf.Mdb.MemberInfoOrBuilder>(
member_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
member_ = null;
}
return memberBuilder_;
}
private org.yamcs.protobuf.Mdb.ArrayInfo arrayInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ArrayInfo, org.yamcs.protobuf.Mdb.ArrayInfo.Builder, org.yamcs.protobuf.Mdb.ArrayInfoOrBuilder> arrayInfoBuilder_;
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public boolean hasArrayInfo() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public org.yamcs.protobuf.Mdb.ArrayInfo getArrayInfo() {
if (arrayInfoBuilder_ == null) {
return arrayInfo_ == null ? org.yamcs.protobuf.Mdb.ArrayInfo.getDefaultInstance() : arrayInfo_;
} else {
return arrayInfoBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public Builder setArrayInfo(org.yamcs.protobuf.Mdb.ArrayInfo value) {
if (arrayInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
arrayInfo_ = value;
onChanged();
} else {
arrayInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public Builder setArrayInfo(
org.yamcs.protobuf.Mdb.ArrayInfo.Builder builderForValue) {
if (arrayInfoBuilder_ == null) {
arrayInfo_ = builderForValue.build();
onChanged();
} else {
arrayInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public Builder mergeArrayInfo(org.yamcs.protobuf.Mdb.ArrayInfo value) {
if (arrayInfoBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0) &&
arrayInfo_ != null &&
arrayInfo_ != org.yamcs.protobuf.Mdb.ArrayInfo.getDefaultInstance()) {
arrayInfo_ =
org.yamcs.protobuf.Mdb.ArrayInfo.newBuilder(arrayInfo_).mergeFrom(value).buildPartial();
} else {
arrayInfo_ = value;
}
onChanged();
} else {
arrayInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000100;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public Builder clearArrayInfo() {
if (arrayInfoBuilder_ == null) {
arrayInfo_ = null;
onChanged();
} else {
arrayInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public org.yamcs.protobuf.Mdb.ArrayInfo.Builder getArrayInfoBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getArrayInfoFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public org.yamcs.protobuf.Mdb.ArrayInfoOrBuilder getArrayInfoOrBuilder() {
if (arrayInfoBuilder_ != null) {
return arrayInfoBuilder_.getMessageOrBuilder();
} else {
return arrayInfo_ == null ?
org.yamcs.protobuf.Mdb.ArrayInfo.getDefaultInstance() : arrayInfo_;
}
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ArrayInfo, org.yamcs.protobuf.Mdb.ArrayInfo.Builder, org.yamcs.protobuf.Mdb.ArrayInfoOrBuilder>
getArrayInfoFieldBuilder() {
if (arrayInfoBuilder_ == null) {
arrayInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ArrayInfo, org.yamcs.protobuf.Mdb.ArrayInfo.Builder, org.yamcs.protobuf.Mdb.ArrayInfoOrBuilder>(
getArrayInfo(),
getParentForChildren(),
isClean());
arrayInfo_ = null;
}
return arrayInfoBuilder_;
}
@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.mdb.ParameterTypeInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.ParameterTypeInfo)
private static final org.yamcs.protobuf.Mdb.ParameterTypeInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.ParameterTypeInfo();
}
public static org.yamcs.protobuf.Mdb.ParameterTypeInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ParameterTypeInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ParameterTypeInfo(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.Mdb.ParameterTypeInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetParameterTypeRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.GetParameterTypeRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string instance = 1;
*/
boolean hasInstance();
/**
* optional string instance = 1;
*/
java.lang.String getInstance();
/**
* optional string instance = 1;
*/
com.google.protobuf.ByteString
getInstanceBytes();
/**
* optional string name = 2;
*/
boolean hasName();
/**
* optional string name = 2;
*/
java.lang.String getName();
/**
* optional string name = 2;
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.GetParameterTypeRequest}
*/
public static final class GetParameterTypeRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.GetParameterTypeRequest)
GetParameterTypeRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetParameterTypeRequest.newBuilder() to construct.
private GetParameterTypeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetParameterTypeRequest() {
instance_ = "";
name_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetParameterTypeRequest(
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;
instance_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
name_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_GetParameterTypeRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_GetParameterTypeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.GetParameterTypeRequest.class, org.yamcs.protobuf.Mdb.GetParameterTypeRequest.Builder.class);
}
private int bitField0_;
public static final int INSTANCE_FIELD_NUMBER = 1;
private volatile java.lang.Object instance_;
/**
* optional string instance = 1;
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string instance = 1;
*/
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
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()) {
instance_ = s;
}
return s;
}
}
/**
* optional string instance = 1;
*/
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* optional string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* 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;
}
}
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, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
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, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
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.Mdb.GetParameterTypeRequest)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.GetParameterTypeRequest other = (org.yamcs.protobuf.Mdb.GetParameterTypeRequest) obj;
if (hasInstance() != other.hasInstance()) return false;
if (hasInstance()) {
if (!getInstance()
.equals(other.getInstance())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) 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 (hasInstance()) {
hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getInstance().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.GetParameterTypeRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.GetParameterTypeRequest 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.Mdb.GetParameterTypeRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.GetParameterTypeRequest 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.Mdb.GetParameterTypeRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.GetParameterTypeRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.GetParameterTypeRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.GetParameterTypeRequest 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.Mdb.GetParameterTypeRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.GetParameterTypeRequest 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.Mdb.GetParameterTypeRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.GetParameterTypeRequest 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.Mdb.GetParameterTypeRequest 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.mdb.GetParameterTypeRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.GetParameterTypeRequest)
org.yamcs.protobuf.Mdb.GetParameterTypeRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_GetParameterTypeRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_GetParameterTypeRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.GetParameterTypeRequest.class, org.yamcs.protobuf.Mdb.GetParameterTypeRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.GetParameterTypeRequest.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();
instance_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_GetParameterTypeRequest_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.GetParameterTypeRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.GetParameterTypeRequest.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.GetParameterTypeRequest build() {
org.yamcs.protobuf.Mdb.GetParameterTypeRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.GetParameterTypeRequest buildPartial() {
org.yamcs.protobuf.Mdb.GetParameterTypeRequest result = new org.yamcs.protobuf.Mdb.GetParameterTypeRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.instance_ = instance_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
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.Mdb.GetParameterTypeRequest) {
return mergeFrom((org.yamcs.protobuf.Mdb.GetParameterTypeRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.GetParameterTypeRequest other) {
if (other == org.yamcs.protobuf.Mdb.GetParameterTypeRequest.getDefaultInstance()) return this;
if (other.hasInstance()) {
bitField0_ |= 0x00000001;
instance_ = other.instance_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
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.Mdb.GetParameterTypeRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.GetParameterTypeRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instance_ = "";
/**
* optional string instance = 1;
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string instance = 1;
*/
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
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()) {
instance_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string instance = 1;
*/
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string instance = 1;
*/
public Builder setInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
/**
* optional string instance = 1;
*/
public Builder clearInstance() {
bitField0_ = (bitField0_ & ~0x00000001);
instance_ = getDefaultInstance().getInstance();
onChanged();
return this;
}
/**
* optional string instance = 1;
*/
public Builder setInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* 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;
}
@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.mdb.GetParameterTypeRequest)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.GetParameterTypeRequest)
private static final org.yamcs.protobuf.Mdb.GetParameterTypeRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.GetParameterTypeRequest();
}
public static org.yamcs.protobuf.Mdb.GetParameterTypeRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetParameterTypeRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetParameterTypeRequest(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.Mdb.GetParameterTypeRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetContainerRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.GetContainerRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string instance = 1;
*/
boolean hasInstance();
/**
* optional string instance = 1;
*/
java.lang.String getInstance();
/**
* optional string instance = 1;
*/
com.google.protobuf.ByteString
getInstanceBytes();
/**
* optional string name = 2;
*/
boolean hasName();
/**
* optional string name = 2;
*/
java.lang.String getName();
/**
* optional string name = 2;
*/
com.google.protobuf.ByteString
getNameBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.GetContainerRequest}
*/
public static final class GetContainerRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.GetContainerRequest)
GetContainerRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetContainerRequest.newBuilder() to construct.
private GetContainerRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetContainerRequest() {
instance_ = "";
name_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetContainerRequest(
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;
instance_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
name_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_GetContainerRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_GetContainerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.GetContainerRequest.class, org.yamcs.protobuf.Mdb.GetContainerRequest.Builder.class);
}
private int bitField0_;
public static final int INSTANCE_FIELD_NUMBER = 1;
private volatile java.lang.Object instance_;
/**
* optional string instance = 1;
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string instance = 1;
*/
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
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()) {
instance_ = s;
}
return s;
}
}
/**
* optional string instance = 1;
*/
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 2;
private volatile java.lang.Object name_;
/**
* optional string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* 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;
}
}
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, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
}
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, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
}
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.Mdb.GetContainerRequest)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.GetContainerRequest other = (org.yamcs.protobuf.Mdb.GetContainerRequest) obj;
if (hasInstance() != other.hasInstance()) return false;
if (hasInstance()) {
if (!getInstance()
.equals(other.getInstance())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) 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 (hasInstance()) {
hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getInstance().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.GetContainerRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.GetContainerRequest 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.Mdb.GetContainerRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.GetContainerRequest 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.Mdb.GetContainerRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.GetContainerRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.GetContainerRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.GetContainerRequest 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.Mdb.GetContainerRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.GetContainerRequest 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.Mdb.GetContainerRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.GetContainerRequest 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.Mdb.GetContainerRequest 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.mdb.GetContainerRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.GetContainerRequest)
org.yamcs.protobuf.Mdb.GetContainerRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_GetContainerRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_GetContainerRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.GetContainerRequest.class, org.yamcs.protobuf.Mdb.GetContainerRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.GetContainerRequest.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();
instance_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_GetContainerRequest_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.GetContainerRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.GetContainerRequest.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.GetContainerRequest build() {
org.yamcs.protobuf.Mdb.GetContainerRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.GetContainerRequest buildPartial() {
org.yamcs.protobuf.Mdb.GetContainerRequest result = new org.yamcs.protobuf.Mdb.GetContainerRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.instance_ = instance_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.name_ = name_;
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.Mdb.GetContainerRequest) {
return mergeFrom((org.yamcs.protobuf.Mdb.GetContainerRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.GetContainerRequest other) {
if (other == org.yamcs.protobuf.Mdb.GetContainerRequest.getDefaultInstance()) return this;
if (other.hasInstance()) {
bitField0_ |= 0x00000001;
instance_ = other.instance_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000002;
name_ = other.name_;
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.Mdb.GetContainerRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.GetContainerRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instance_ = "";
/**
* optional string instance = 1;
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string instance = 1;
*/
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
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()) {
instance_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string instance = 1;
*/
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string instance = 1;
*/
public Builder setInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
/**
* optional string instance = 1;
*/
public Builder clearInstance() {
bitField0_ = (bitField0_ & ~0x00000001);
instance_ = getDefaultInstance().getInstance();
onChanged();
return this;
}
/**
* optional string instance = 1;
*/
public Builder setInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
* optional string name = 2;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* 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;
}
@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.mdb.GetContainerRequest)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.GetContainerRequest)
private static final org.yamcs.protobuf.Mdb.GetContainerRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.GetContainerRequest();
}
public static org.yamcs.protobuf.Mdb.GetContainerRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetContainerRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetContainerRequest(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.Mdb.GetContainerRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AbsoluteTimeInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.AbsoluteTimeInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional string initialValue = 1;
*/
boolean hasInitialValue();
/**
* optional string initialValue = 1;
*/
java.lang.String getInitialValue();
/**
* optional string initialValue = 1;
*/
com.google.protobuf.ByteString
getInitialValueBytes();
/**
* optional double scale = 2;
*/
boolean hasScale();
/**
* optional double scale = 2;
*/
double getScale();
/**
* optional double offset = 3;
*/
boolean hasOffset();
/**
* optional double offset = 3;
*/
double getOffset();
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
boolean hasOffsetFrom();
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
org.yamcs.protobuf.Mdb.ParameterInfo getOffsetFrom();
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getOffsetFromOrBuilder();
/**
* optional string epoch = 5;
*/
boolean hasEpoch();
/**
* optional string epoch = 5;
*/
java.lang.String getEpoch();
/**
* optional string epoch = 5;
*/
com.google.protobuf.ByteString
getEpochBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.AbsoluteTimeInfo}
*/
public static final class AbsoluteTimeInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.AbsoluteTimeInfo)
AbsoluteTimeInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AbsoluteTimeInfo.newBuilder() to construct.
private AbsoluteTimeInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AbsoluteTimeInfo() {
initialValue_ = "";
epoch_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AbsoluteTimeInfo(
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;
initialValue_ = bs;
break;
}
case 17: {
bitField0_ |= 0x00000002;
scale_ = input.readDouble();
break;
}
case 25: {
bitField0_ |= 0x00000004;
offset_ = input.readDouble();
break;
}
case 34: {
org.yamcs.protobuf.Mdb.ParameterInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = offsetFrom_.toBuilder();
}
offsetFrom_ = input.readMessage(org.yamcs.protobuf.Mdb.ParameterInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(offsetFrom_);
offsetFrom_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
epoch_ = 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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AbsoluteTimeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AbsoluteTimeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.class, org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.Builder.class);
}
private int bitField0_;
public static final int INITIALVALUE_FIELD_NUMBER = 1;
private volatile java.lang.Object initialValue_;
/**
* optional string initialValue = 1;
*/
public boolean hasInitialValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string initialValue = 1;
*/
public java.lang.String getInitialValue() {
java.lang.Object ref = initialValue_;
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()) {
initialValue_ = s;
}
return s;
}
}
/**
* optional string initialValue = 1;
*/
public com.google.protobuf.ByteString
getInitialValueBytes() {
java.lang.Object ref = initialValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
initialValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SCALE_FIELD_NUMBER = 2;
private double scale_;
/**
* optional double scale = 2;
*/
public boolean hasScale() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double scale = 2;
*/
public double getScale() {
return scale_;
}
public static final int OFFSET_FIELD_NUMBER = 3;
private double offset_;
/**
* optional double offset = 3;
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double offset = 3;
*/
public double getOffset() {
return offset_;
}
public static final int OFFSETFROM_FIELD_NUMBER = 4;
private org.yamcs.protobuf.Mdb.ParameterInfo offsetFrom_;
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
public boolean hasOffsetFrom() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo getOffsetFrom() {
return offsetFrom_ == null ? org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance() : offsetFrom_;
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getOffsetFromOrBuilder() {
return offsetFrom_ == null ? org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance() : offsetFrom_;
}
public static final int EPOCH_FIELD_NUMBER = 5;
private volatile java.lang.Object epoch_;
/**
* optional string epoch = 5;
*/
public boolean hasEpoch() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string epoch = 5;
*/
public java.lang.String getEpoch() {
java.lang.Object ref = epoch_;
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()) {
epoch_ = s;
}
return s;
}
}
/**
* optional string epoch = 5;
*/
public com.google.protobuf.ByteString
getEpochBytes() {
java.lang.Object ref = epoch_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
epoch_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasOffsetFrom()) {
if (!getOffsetFrom().isInitialized()) {
memoizedIsInitialized = 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, initialValue_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeDouble(2, scale_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeDouble(3, offset_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getOffsetFrom());
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, epoch_);
}
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, initialValue_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(2, scale_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(3, offset_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getOffsetFrom());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, epoch_);
}
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.Mdb.AbsoluteTimeInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo other = (org.yamcs.protobuf.Mdb.AbsoluteTimeInfo) obj;
if (hasInitialValue() != other.hasInitialValue()) return false;
if (hasInitialValue()) {
if (!getInitialValue()
.equals(other.getInitialValue())) return false;
}
if (hasScale() != other.hasScale()) return false;
if (hasScale()) {
if (java.lang.Double.doubleToLongBits(getScale())
!= java.lang.Double.doubleToLongBits(
other.getScale())) return false;
}
if (hasOffset() != other.hasOffset()) return false;
if (hasOffset()) {
if (java.lang.Double.doubleToLongBits(getOffset())
!= java.lang.Double.doubleToLongBits(
other.getOffset())) return false;
}
if (hasOffsetFrom() != other.hasOffsetFrom()) return false;
if (hasOffsetFrom()) {
if (!getOffsetFrom()
.equals(other.getOffsetFrom())) return false;
}
if (hasEpoch() != other.hasEpoch()) return false;
if (hasEpoch()) {
if (!getEpoch()
.equals(other.getEpoch())) 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 (hasInitialValue()) {
hash = (37 * hash) + INITIALVALUE_FIELD_NUMBER;
hash = (53 * hash) + getInitialValue().hashCode();
}
if (hasScale()) {
hash = (37 * hash) + SCALE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getScale()));
}
if (hasOffset()) {
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getOffset()));
}
if (hasOffsetFrom()) {
hash = (37 * hash) + OFFSETFROM_FIELD_NUMBER;
hash = (53 * hash) + getOffsetFrom().hashCode();
}
if (hasEpoch()) {
hash = (37 * hash) + EPOCH_FIELD_NUMBER;
hash = (53 * hash) + getEpoch().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.AbsoluteTimeInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.AbsoluteTimeInfo 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.Mdb.AbsoluteTimeInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.AbsoluteTimeInfo 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.Mdb.AbsoluteTimeInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.AbsoluteTimeInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.AbsoluteTimeInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.AbsoluteTimeInfo 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.Mdb.AbsoluteTimeInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.AbsoluteTimeInfo 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.Mdb.AbsoluteTimeInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.AbsoluteTimeInfo 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.Mdb.AbsoluteTimeInfo 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.mdb.AbsoluteTimeInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.AbsoluteTimeInfo)
org.yamcs.protobuf.Mdb.AbsoluteTimeInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AbsoluteTimeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AbsoluteTimeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.class, org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOffsetFromFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
initialValue_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
scale_ = 0D;
bitField0_ = (bitField0_ & ~0x00000002);
offset_ = 0D;
bitField0_ = (bitField0_ & ~0x00000004);
if (offsetFromBuilder_ == null) {
offsetFrom_ = null;
} else {
offsetFromBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
epoch_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_AbsoluteTimeInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.AbsoluteTimeInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.AbsoluteTimeInfo build() {
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.AbsoluteTimeInfo buildPartial() {
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo result = new org.yamcs.protobuf.Mdb.AbsoluteTimeInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.initialValue_ = initialValue_;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.scale_ = scale_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.offset_ = offset_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (offsetFromBuilder_ == null) {
result.offsetFrom_ = offsetFrom_;
} else {
result.offsetFrom_ = offsetFromBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.epoch_ = epoch_;
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.Mdb.AbsoluteTimeInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.AbsoluteTimeInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.AbsoluteTimeInfo other) {
if (other == org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.getDefaultInstance()) return this;
if (other.hasInitialValue()) {
bitField0_ |= 0x00000001;
initialValue_ = other.initialValue_;
onChanged();
}
if (other.hasScale()) {
setScale(other.getScale());
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasOffsetFrom()) {
mergeOffsetFrom(other.getOffsetFrom());
}
if (other.hasEpoch()) {
bitField0_ |= 0x00000010;
epoch_ = other.epoch_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasOffsetFrom()) {
if (!getOffsetFrom().isInitialized()) {
return false;
}
}
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.Mdb.AbsoluteTimeInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.AbsoluteTimeInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object initialValue_ = "";
/**
* optional string initialValue = 1;
*/
public boolean hasInitialValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string initialValue = 1;
*/
public java.lang.String getInitialValue() {
java.lang.Object ref = initialValue_;
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()) {
initialValue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string initialValue = 1;
*/
public com.google.protobuf.ByteString
getInitialValueBytes() {
java.lang.Object ref = initialValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
initialValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string initialValue = 1;
*/
public Builder setInitialValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
initialValue_ = value;
onChanged();
return this;
}
/**
* optional string initialValue = 1;
*/
public Builder clearInitialValue() {
bitField0_ = (bitField0_ & ~0x00000001);
initialValue_ = getDefaultInstance().getInitialValue();
onChanged();
return this;
}
/**
* optional string initialValue = 1;
*/
public Builder setInitialValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
initialValue_ = value;
onChanged();
return this;
}
private double scale_ ;
/**
* optional double scale = 2;
*/
public boolean hasScale() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double scale = 2;
*/
public double getScale() {
return scale_;
}
/**
* optional double scale = 2;
*/
public Builder setScale(double value) {
bitField0_ |= 0x00000002;
scale_ = value;
onChanged();
return this;
}
/**
* optional double scale = 2;
*/
public Builder clearScale() {
bitField0_ = (bitField0_ & ~0x00000002);
scale_ = 0D;
onChanged();
return this;
}
private double offset_ ;
/**
* optional double offset = 3;
*/
public boolean hasOffset() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double offset = 3;
*/
public double getOffset() {
return offset_;
}
/**
* optional double offset = 3;
*/
public Builder setOffset(double value) {
bitField0_ |= 0x00000004;
offset_ = value;
onChanged();
return this;
}
/**
* optional double offset = 3;
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000004);
offset_ = 0D;
onChanged();
return this;
}
private org.yamcs.protobuf.Mdb.ParameterInfo offsetFrom_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder> offsetFromBuilder_;
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
public boolean hasOffsetFrom() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo getOffsetFrom() {
if (offsetFromBuilder_ == null) {
return offsetFrom_ == null ? org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance() : offsetFrom_;
} else {
return offsetFromBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
public Builder setOffsetFrom(org.yamcs.protobuf.Mdb.ParameterInfo value) {
if (offsetFromBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
offsetFrom_ = value;
onChanged();
} else {
offsetFromBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
public Builder setOffsetFrom(
org.yamcs.protobuf.Mdb.ParameterInfo.Builder builderForValue) {
if (offsetFromBuilder_ == null) {
offsetFrom_ = builderForValue.build();
onChanged();
} else {
offsetFromBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
public Builder mergeOffsetFrom(org.yamcs.protobuf.Mdb.ParameterInfo value) {
if (offsetFromBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
offsetFrom_ != null &&
offsetFrom_ != org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance()) {
offsetFrom_ =
org.yamcs.protobuf.Mdb.ParameterInfo.newBuilder(offsetFrom_).mergeFrom(value).buildPartial();
} else {
offsetFrom_ = value;
}
onChanged();
} else {
offsetFromBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
public Builder clearOffsetFrom() {
if (offsetFromBuilder_ == null) {
offsetFrom_ = null;
onChanged();
} else {
offsetFromBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo.Builder getOffsetFromBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getOffsetFromFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getOffsetFromOrBuilder() {
if (offsetFromBuilder_ != null) {
return offsetFromBuilder_.getMessageOrBuilder();
} else {
return offsetFrom_ == null ?
org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance() : offsetFrom_;
}
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo offsetFrom = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>
getOffsetFromFieldBuilder() {
if (offsetFromBuilder_ == null) {
offsetFromBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>(
getOffsetFrom(),
getParentForChildren(),
isClean());
offsetFrom_ = null;
}
return offsetFromBuilder_;
}
private java.lang.Object epoch_ = "";
/**
* optional string epoch = 5;
*/
public boolean hasEpoch() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string epoch = 5;
*/
public java.lang.String getEpoch() {
java.lang.Object ref = epoch_;
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()) {
epoch_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string epoch = 5;
*/
public com.google.protobuf.ByteString
getEpochBytes() {
java.lang.Object ref = epoch_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
epoch_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string epoch = 5;
*/
public Builder setEpoch(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
epoch_ = value;
onChanged();
return this;
}
/**
* optional string epoch = 5;
*/
public Builder clearEpoch() {
bitField0_ = (bitField0_ & ~0x00000010);
epoch_ = getDefaultInstance().getEpoch();
onChanged();
return this;
}
/**
* optional string epoch = 5;
*/
public Builder setEpochBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
epoch_ = 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.mdb.AbsoluteTimeInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.AbsoluteTimeInfo)
private static final org.yamcs.protobuf.Mdb.AbsoluteTimeInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.AbsoluteTimeInfo();
}
public static org.yamcs.protobuf.Mdb.AbsoluteTimeInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AbsoluteTimeInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AbsoluteTimeInfo(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.Mdb.AbsoluteTimeInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface MemberInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.MemberInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string qualifiedName = 2;
*/
boolean hasQualifiedName();
/**
* optional string qualifiedName = 2;
*/
java.lang.String getQualifiedName();
/**
* optional string qualifiedName = 2;
*/
com.google.protobuf.ByteString
getQualifiedNameBytes();
/**
* optional string shortDescription = 3;
*/
boolean hasShortDescription();
/**
* optional string shortDescription = 3;
*/
java.lang.String getShortDescription();
/**
* optional string shortDescription = 3;
*/
com.google.protobuf.ByteString
getShortDescriptionBytes();
/**
* optional string longDescription = 4;
*/
boolean hasLongDescription();
/**
* optional string longDescription = 4;
*/
java.lang.String getLongDescription();
/**
* optional string longDescription = 4;
*/
com.google.protobuf.ByteString
getLongDescriptionBytes();
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
java.util.List
getAliasList();
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
org.yamcs.protobuf.Yamcs.NamedObjectId getAlias(int index);
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
int getAliasCount();
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getAliasOrBuilderList();
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getAliasOrBuilder(
int index);
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
boolean hasType();
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
org.yamcs.protobuf.Mdb.ParameterTypeInfo getType();
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder getTypeOrBuilder();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.MemberInfo}
*/
public static final class MemberInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.MemberInfo)
MemberInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use MemberInfo.newBuilder() to construct.
private MemberInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MemberInfo() {
name_ = "";
qualifiedName_ = "";
shortDescription_ = "";
longDescription_ = "";
alias_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MemberInfo(
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;
qualifiedName_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
shortDescription_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
longDescription_ = bs;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
alias_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
alias_.add(
input.readMessage(org.yamcs.protobuf.Yamcs.NamedObjectId.PARSER, extensionRegistry));
break;
}
case 50: {
org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = type_.toBuilder();
}
type_ = input.readMessage(org.yamcs.protobuf.Mdb.ParameterTypeInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(type_);
type_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
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_ & 0x00000010) != 0)) {
alias_ = java.util.Collections.unmodifiableList(alias_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_MemberInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_MemberInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.MemberInfo.class, org.yamcs.protobuf.Mdb.MemberInfo.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
*/
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 = 1;
*/
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 QUALIFIEDNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object qualifiedName_;
/**
* optional string qualifiedName = 2;
*/
public boolean hasQualifiedName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string qualifiedName = 2;
*/
public java.lang.String getQualifiedName() {
java.lang.Object ref = qualifiedName_;
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()) {
qualifiedName_ = s;
}
return s;
}
}
/**
* optional string qualifiedName = 2;
*/
public com.google.protobuf.ByteString
getQualifiedNameBytes() {
java.lang.Object ref = qualifiedName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
qualifiedName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHORTDESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object shortDescription_;
/**
* optional string shortDescription = 3;
*/
public boolean hasShortDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string shortDescription = 3;
*/
public java.lang.String getShortDescription() {
java.lang.Object ref = shortDescription_;
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()) {
shortDescription_ = s;
}
return s;
}
}
/**
* optional string shortDescription = 3;
*/
public com.google.protobuf.ByteString
getShortDescriptionBytes() {
java.lang.Object ref = shortDescription_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shortDescription_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LONGDESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object longDescription_;
/**
* optional string longDescription = 4;
*/
public boolean hasLongDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string longDescription = 4;
*/
public java.lang.String getLongDescription() {
java.lang.Object ref = longDescription_;
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()) {
longDescription_ = s;
}
return s;
}
}
/**
* optional string longDescription = 4;
*/
public com.google.protobuf.ByteString
getLongDescriptionBytes() {
java.lang.Object ref = longDescription_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
longDescription_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALIAS_FIELD_NUMBER = 5;
private java.util.List alias_;
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public java.util.List getAliasList() {
return alias_;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getAliasOrBuilderList() {
return alias_;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public int getAliasCount() {
return alias_.size();
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getAlias(int index) {
return alias_.get(index);
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getAliasOrBuilder(
int index) {
return alias_.get(index);
}
public static final int TYPE_FIELD_NUMBER = 6;
private org.yamcs.protobuf.Mdb.ParameterTypeInfo type_;
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfo getType() {
return type_ == null ? org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance() : type_;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder getTypeOrBuilder() {
return type_ == null ? org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance() : type_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getAliasCount(); i++) {
if (!getAlias(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasType()) {
if (!getType().isInitialized()) {
memoizedIsInitialized = 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, qualifiedName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shortDescription_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, longDescription_);
}
for (int i = 0; i < alias_.size(); i++) {
output.writeMessage(5, alias_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(6, getType());
}
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, qualifiedName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shortDescription_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, longDescription_);
}
for (int i = 0; i < alias_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, alias_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getType());
}
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.Mdb.MemberInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.MemberInfo other = (org.yamcs.protobuf.Mdb.MemberInfo) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasQualifiedName() != other.hasQualifiedName()) return false;
if (hasQualifiedName()) {
if (!getQualifiedName()
.equals(other.getQualifiedName())) return false;
}
if (hasShortDescription() != other.hasShortDescription()) return false;
if (hasShortDescription()) {
if (!getShortDescription()
.equals(other.getShortDescription())) return false;
}
if (hasLongDescription() != other.hasLongDescription()) return false;
if (hasLongDescription()) {
if (!getLongDescription()
.equals(other.getLongDescription())) return false;
}
if (!getAliasList()
.equals(other.getAliasList())) return false;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) 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 (hasQualifiedName()) {
hash = (37 * hash) + QUALIFIEDNAME_FIELD_NUMBER;
hash = (53 * hash) + getQualifiedName().hashCode();
}
if (hasShortDescription()) {
hash = (37 * hash) + SHORTDESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getShortDescription().hashCode();
}
if (hasLongDescription()) {
hash = (37 * hash) + LONGDESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getLongDescription().hashCode();
}
if (getAliasCount() > 0) {
hash = (37 * hash) + ALIAS_FIELD_NUMBER;
hash = (53 * hash) + getAliasList().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.MemberInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.MemberInfo 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.Mdb.MemberInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.MemberInfo 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.Mdb.MemberInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.MemberInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.MemberInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.MemberInfo 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.Mdb.MemberInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.MemberInfo 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.Mdb.MemberInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.MemberInfo 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.Mdb.MemberInfo 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.mdb.MemberInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.MemberInfo)
org.yamcs.protobuf.Mdb.MemberInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_MemberInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_MemberInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.MemberInfo.class, org.yamcs.protobuf.Mdb.MemberInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.MemberInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAliasFieldBuilder();
getTypeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
qualifiedName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
shortDescription_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
longDescription_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
if (aliasBuilder_ == null) {
alias_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
aliasBuilder_.clear();
}
if (typeBuilder_ == null) {
type_ = null;
} else {
typeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_MemberInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.MemberInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.MemberInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.MemberInfo build() {
org.yamcs.protobuf.Mdb.MemberInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.MemberInfo buildPartial() {
org.yamcs.protobuf.Mdb.MemberInfo result = new org.yamcs.protobuf.Mdb.MemberInfo(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.qualifiedName_ = qualifiedName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.shortDescription_ = shortDescription_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.longDescription_ = longDescription_;
if (aliasBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
alias_ = java.util.Collections.unmodifiableList(alias_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.alias_ = alias_;
} else {
result.alias_ = aliasBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
if (typeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = typeBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
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.Mdb.MemberInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.MemberInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.MemberInfo other) {
if (other == org.yamcs.protobuf.Mdb.MemberInfo.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasQualifiedName()) {
bitField0_ |= 0x00000002;
qualifiedName_ = other.qualifiedName_;
onChanged();
}
if (other.hasShortDescription()) {
bitField0_ |= 0x00000004;
shortDescription_ = other.shortDescription_;
onChanged();
}
if (other.hasLongDescription()) {
bitField0_ |= 0x00000008;
longDescription_ = other.longDescription_;
onChanged();
}
if (aliasBuilder_ == null) {
if (!other.alias_.isEmpty()) {
if (alias_.isEmpty()) {
alias_ = other.alias_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureAliasIsMutable();
alias_.addAll(other.alias_);
}
onChanged();
}
} else {
if (!other.alias_.isEmpty()) {
if (aliasBuilder_.isEmpty()) {
aliasBuilder_.dispose();
aliasBuilder_ = null;
alias_ = other.alias_;
bitField0_ = (bitField0_ & ~0x00000010);
aliasBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAliasFieldBuilder() : null;
} else {
aliasBuilder_.addAllMessages(other.alias_);
}
}
}
if (other.hasType()) {
mergeType(other.getType());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getAliasCount(); i++) {
if (!getAlias(i).isInitialized()) {
return false;
}
}
if (hasType()) {
if (!getType().isInitialized()) {
return false;
}
}
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.Mdb.MemberInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.MemberInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
*/
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 = 1;
*/
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 = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
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 qualifiedName_ = "";
/**
* optional string qualifiedName = 2;
*/
public boolean hasQualifiedName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string qualifiedName = 2;
*/
public java.lang.String getQualifiedName() {
java.lang.Object ref = qualifiedName_;
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()) {
qualifiedName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string qualifiedName = 2;
*/
public com.google.protobuf.ByteString
getQualifiedNameBytes() {
java.lang.Object ref = qualifiedName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
qualifiedName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string qualifiedName = 2;
*/
public Builder setQualifiedName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
qualifiedName_ = value;
onChanged();
return this;
}
/**
* optional string qualifiedName = 2;
*/
public Builder clearQualifiedName() {
bitField0_ = (bitField0_ & ~0x00000002);
qualifiedName_ = getDefaultInstance().getQualifiedName();
onChanged();
return this;
}
/**
* optional string qualifiedName = 2;
*/
public Builder setQualifiedNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
qualifiedName_ = value;
onChanged();
return this;
}
private java.lang.Object shortDescription_ = "";
/**
* optional string shortDescription = 3;
*/
public boolean hasShortDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string shortDescription = 3;
*/
public java.lang.String getShortDescription() {
java.lang.Object ref = shortDescription_;
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()) {
shortDescription_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string shortDescription = 3;
*/
public com.google.protobuf.ByteString
getShortDescriptionBytes() {
java.lang.Object ref = shortDescription_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shortDescription_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string shortDescription = 3;
*/
public Builder setShortDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
shortDescription_ = value;
onChanged();
return this;
}
/**
* optional string shortDescription = 3;
*/
public Builder clearShortDescription() {
bitField0_ = (bitField0_ & ~0x00000004);
shortDescription_ = getDefaultInstance().getShortDescription();
onChanged();
return this;
}
/**
* optional string shortDescription = 3;
*/
public Builder setShortDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
shortDescription_ = value;
onChanged();
return this;
}
private java.lang.Object longDescription_ = "";
/**
* optional string longDescription = 4;
*/
public boolean hasLongDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string longDescription = 4;
*/
public java.lang.String getLongDescription() {
java.lang.Object ref = longDescription_;
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()) {
longDescription_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string longDescription = 4;
*/
public com.google.protobuf.ByteString
getLongDescriptionBytes() {
java.lang.Object ref = longDescription_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
longDescription_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string longDescription = 4;
*/
public Builder setLongDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
longDescription_ = value;
onChanged();
return this;
}
/**
* optional string longDescription = 4;
*/
public Builder clearLongDescription() {
bitField0_ = (bitField0_ & ~0x00000008);
longDescription_ = getDefaultInstance().getLongDescription();
onChanged();
return this;
}
/**
* optional string longDescription = 4;
*/
public Builder setLongDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
longDescription_ = value;
onChanged();
return this;
}
private java.util.List alias_ =
java.util.Collections.emptyList();
private void ensureAliasIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
alias_ = new java.util.ArrayList(alias_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder> aliasBuilder_;
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public java.util.List getAliasList() {
if (aliasBuilder_ == null) {
return java.util.Collections.unmodifiableList(alias_);
} else {
return aliasBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public int getAliasCount() {
if (aliasBuilder_ == null) {
return alias_.size();
} else {
return aliasBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getAlias(int index) {
if (aliasBuilder_ == null) {
return alias_.get(index);
} else {
return aliasBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder setAlias(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (aliasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliasIsMutable();
alias_.set(index, value);
onChanged();
} else {
aliasBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder setAlias(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (aliasBuilder_ == null) {
ensureAliasIsMutable();
alias_.set(index, builderForValue.build());
onChanged();
} else {
aliasBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder addAlias(org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (aliasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliasIsMutable();
alias_.add(value);
onChanged();
} else {
aliasBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder addAlias(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (aliasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliasIsMutable();
alias_.add(index, value);
onChanged();
} else {
aliasBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder addAlias(
org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (aliasBuilder_ == null) {
ensureAliasIsMutable();
alias_.add(builderForValue.build());
onChanged();
} else {
aliasBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder addAlias(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (aliasBuilder_ == null) {
ensureAliasIsMutable();
alias_.add(index, builderForValue.build());
onChanged();
} else {
aliasBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder addAllAlias(
java.lang.Iterable extends org.yamcs.protobuf.Yamcs.NamedObjectId> values) {
if (aliasBuilder_ == null) {
ensureAliasIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, alias_);
onChanged();
} else {
aliasBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder clearAlias() {
if (aliasBuilder_ == null) {
alias_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
aliasBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder removeAlias(int index) {
if (aliasBuilder_ == null) {
ensureAliasIsMutable();
alias_.remove(index);
onChanged();
} else {
aliasBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder getAliasBuilder(
int index) {
return getAliasFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getAliasOrBuilder(
int index) {
if (aliasBuilder_ == null) {
return alias_.get(index); } else {
return aliasBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getAliasOrBuilderList() {
if (aliasBuilder_ != null) {
return aliasBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(alias_);
}
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addAliasBuilder() {
return getAliasFieldBuilder().addBuilder(
org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addAliasBuilder(
int index) {
return getAliasFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public java.util.List
getAliasBuilderList() {
return getAliasFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getAliasFieldBuilder() {
if (aliasBuilder_ == null) {
aliasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>(
alias_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
alias_ = null;
}
return aliasBuilder_;
}
private org.yamcs.protobuf.Mdb.ParameterTypeInfo type_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterTypeInfo, org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder, org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder> typeBuilder_;
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfo getType() {
if (typeBuilder_ == null) {
return type_ == null ? org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance() : type_;
} else {
return typeBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public Builder setType(org.yamcs.protobuf.Mdb.ParameterTypeInfo value) {
if (typeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
typeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public Builder setType(
org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder builderForValue) {
if (typeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
typeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public Builder mergeType(org.yamcs.protobuf.Mdb.ParameterTypeInfo value) {
if (typeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
type_ != null &&
type_ != org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance()) {
type_ =
org.yamcs.protobuf.Mdb.ParameterTypeInfo.newBuilder(type_).mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
typeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public Builder clearType() {
if (typeBuilder_ == null) {
type_ = null;
onChanged();
} else {
typeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder getTypeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder getTypeOrBuilder() {
if (typeBuilder_ != null) {
return typeBuilder_.getMessageOrBuilder();
} else {
return type_ == null ?
org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance() : type_;
}
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterTypeInfo, org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder, org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder>
getTypeFieldBuilder() {
if (typeBuilder_ == null) {
typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterTypeInfo, org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder, org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder>(
getType(),
getParentForChildren(),
isClean());
type_ = null;
}
return typeBuilder_;
}
@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.mdb.MemberInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.MemberInfo)
private static final org.yamcs.protobuf.Mdb.MemberInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.MemberInfo();
}
public static org.yamcs.protobuf.Mdb.MemberInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MemberInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MemberInfo(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.Mdb.MemberInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ArrayInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.ArrayInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
boolean hasType();
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
org.yamcs.protobuf.Mdb.ParameterTypeInfo getType();
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder getTypeOrBuilder();
/**
* optional int32 dimensions = 2;
*/
boolean hasDimensions();
/**
* optional int32 dimensions = 2;
*/
int getDimensions();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.ArrayInfo}
*/
public static final class ArrayInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.ArrayInfo)
ArrayInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ArrayInfo.newBuilder() to construct.
private ArrayInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ArrayInfo() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ArrayInfo(
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: {
org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = type_.toBuilder();
}
type_ = input.readMessage(org.yamcs.protobuf.Mdb.ParameterTypeInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(type_);
type_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
dimensions_ = input.readInt32();
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ArrayInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ArrayInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.ArrayInfo.class, org.yamcs.protobuf.Mdb.ArrayInfo.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private org.yamcs.protobuf.Mdb.ParameterTypeInfo type_;
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfo getType() {
return type_ == null ? org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance() : type_;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder getTypeOrBuilder() {
return type_ == null ? org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance() : type_;
}
public static final int DIMENSIONS_FIELD_NUMBER = 2;
private int dimensions_;
/**
* optional int32 dimensions = 2;
*/
public boolean hasDimensions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 dimensions = 2;
*/
public int getDimensions() {
return dimensions_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasType()) {
if (!getType().isInitialized()) {
memoizedIsInitialized = 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)) {
output.writeMessage(1, getType());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeInt32(2, dimensions_);
}
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.CodedOutputStream
.computeMessageSize(1, getType());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, dimensions_);
}
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.Mdb.ArrayInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.ArrayInfo other = (org.yamcs.protobuf.Mdb.ArrayInfo) obj;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (hasDimensions() != other.hasDimensions()) return false;
if (hasDimensions()) {
if (getDimensions()
!= other.getDimensions()) 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 (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (hasDimensions()) {
hash = (37 * hash) + DIMENSIONS_FIELD_NUMBER;
hash = (53 * hash) + getDimensions();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.ArrayInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ArrayInfo 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.Mdb.ArrayInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ArrayInfo 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.Mdb.ArrayInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ArrayInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.ArrayInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ArrayInfo 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.Mdb.ArrayInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ArrayInfo 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.Mdb.ArrayInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ArrayInfo 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.Mdb.ArrayInfo 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.mdb.ArrayInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.ArrayInfo)
org.yamcs.protobuf.Mdb.ArrayInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ArrayInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ArrayInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.ArrayInfo.class, org.yamcs.protobuf.Mdb.ArrayInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.ArrayInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTypeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (typeBuilder_ == null) {
type_ = null;
} else {
typeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
dimensions_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ArrayInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ArrayInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.ArrayInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ArrayInfo build() {
org.yamcs.protobuf.Mdb.ArrayInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ArrayInfo buildPartial() {
org.yamcs.protobuf.Mdb.ArrayInfo result = new org.yamcs.protobuf.Mdb.ArrayInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (typeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = typeBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.dimensions_ = dimensions_;
to_bitField0_ |= 0x00000002;
}
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.Mdb.ArrayInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.ArrayInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.ArrayInfo other) {
if (other == org.yamcs.protobuf.Mdb.ArrayInfo.getDefaultInstance()) return this;
if (other.hasType()) {
mergeType(other.getType());
}
if (other.hasDimensions()) {
setDimensions(other.getDimensions());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasType()) {
if (!getType().isInitialized()) {
return false;
}
}
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.Mdb.ArrayInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.ArrayInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.yamcs.protobuf.Mdb.ParameterTypeInfo type_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterTypeInfo, org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder, org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder> typeBuilder_;
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfo getType() {
if (typeBuilder_ == null) {
return type_ == null ? org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance() : type_;
} else {
return typeBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
public Builder setType(org.yamcs.protobuf.Mdb.ParameterTypeInfo value) {
if (typeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
typeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
public Builder setType(
org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder builderForValue) {
if (typeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
typeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
public Builder mergeType(org.yamcs.protobuf.Mdb.ParameterTypeInfo value) {
if (typeBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
type_ != null &&
type_ != org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance()) {
type_ =
org.yamcs.protobuf.Mdb.ParameterTypeInfo.newBuilder(type_).mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
typeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
public Builder clearType() {
if (typeBuilder_ == null) {
type_ = null;
onChanged();
} else {
typeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder getTypeBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder getTypeOrBuilder() {
if (typeBuilder_ != null) {
return typeBuilder_.getMessageOrBuilder();
} else {
return type_ == null ?
org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance() : type_;
}
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterTypeInfo, org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder, org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder>
getTypeFieldBuilder() {
if (typeBuilder_ == null) {
typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterTypeInfo, org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder, org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder>(
getType(),
getParentForChildren(),
isClean());
type_ = null;
}
return typeBuilder_;
}
private int dimensions_ ;
/**
* optional int32 dimensions = 2;
*/
public boolean hasDimensions() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional int32 dimensions = 2;
*/
public int getDimensions() {
return dimensions_;
}
/**
* optional int32 dimensions = 2;
*/
public Builder setDimensions(int value) {
bitField0_ |= 0x00000002;
dimensions_ = value;
onChanged();
return this;
}
/**
* optional int32 dimensions = 2;
*/
public Builder clearDimensions() {
bitField0_ = (bitField0_ & ~0x00000002);
dimensions_ = 0;
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.mdb.ArrayInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.ArrayInfo)
private static final org.yamcs.protobuf.Mdb.ArrayInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.ArrayInfo();
}
public static org.yamcs.protobuf.Mdb.ArrayInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ArrayInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ArrayInfo(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.Mdb.ArrayInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface UsedByInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.UsedByInfo)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
java.util.List
getAlgorithmList();
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
org.yamcs.protobuf.Mdb.AlgorithmInfo getAlgorithm(int index);
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
int getAlgorithmCount();
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
java.util.List extends org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder>
getAlgorithmOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder getAlgorithmOrBuilder(
int index);
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
java.util.List
getContainerList();
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
org.yamcs.protobuf.Mdb.ContainerInfo getContainer(int index);
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
int getContainerCount();
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
java.util.List extends org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder>
getContainerOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder getContainerOrBuilder(
int index);
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.UsedByInfo}
*/
public static final class UsedByInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.UsedByInfo)
UsedByInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use UsedByInfo.newBuilder() to construct.
private UsedByInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UsedByInfo() {
algorithm_ = java.util.Collections.emptyList();
container_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UsedByInfo(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
algorithm_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
algorithm_.add(
input.readMessage(org.yamcs.protobuf.Mdb.AlgorithmInfo.PARSER, extensionRegistry));
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
container_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
container_.add(
input.readMessage(org.yamcs.protobuf.Mdb.ContainerInfo.PARSER, extensionRegistry));
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_ & 0x00000001) != 0)) {
algorithm_ = java.util.Collections.unmodifiableList(algorithm_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
container_ = java.util.Collections.unmodifiableList(container_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_UsedByInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_UsedByInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.UsedByInfo.class, org.yamcs.protobuf.Mdb.UsedByInfo.Builder.class);
}
public static final int ALGORITHM_FIELD_NUMBER = 1;
private java.util.List algorithm_;
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public java.util.List getAlgorithmList() {
return algorithm_;
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder>
getAlgorithmOrBuilderList() {
return algorithm_;
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public int getAlgorithmCount() {
return algorithm_.size();
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfo getAlgorithm(int index) {
return algorithm_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder getAlgorithmOrBuilder(
int index) {
return algorithm_.get(index);
}
public static final int CONTAINER_FIELD_NUMBER = 2;
private java.util.List container_;
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public java.util.List getContainerList() {
return container_;
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder>
getContainerOrBuilderList() {
return container_;
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public int getContainerCount() {
return container_.size();
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public org.yamcs.protobuf.Mdb.ContainerInfo getContainer(int index) {
return container_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder getContainerOrBuilder(
int index) {
return container_.get(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;
for (int i = 0; i < getAlgorithmCount(); i++) {
if (!getAlgorithm(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getContainerCount(); i++) {
if (!getContainer(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < algorithm_.size(); i++) {
output.writeMessage(1, algorithm_.get(i));
}
for (int i = 0; i < container_.size(); i++) {
output.writeMessage(2, container_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < algorithm_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, algorithm_.get(i));
}
for (int i = 0; i < container_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, container_.get(i));
}
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.Mdb.UsedByInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.UsedByInfo other = (org.yamcs.protobuf.Mdb.UsedByInfo) obj;
if (!getAlgorithmList()
.equals(other.getAlgorithmList())) return false;
if (!getContainerList()
.equals(other.getContainerList())) 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 (getAlgorithmCount() > 0) {
hash = (37 * hash) + ALGORITHM_FIELD_NUMBER;
hash = (53 * hash) + getAlgorithmList().hashCode();
}
if (getContainerCount() > 0) {
hash = (37 * hash) + CONTAINER_FIELD_NUMBER;
hash = (53 * hash) + getContainerList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.UsedByInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.UsedByInfo 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.Mdb.UsedByInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.UsedByInfo 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.Mdb.UsedByInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.UsedByInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.UsedByInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.UsedByInfo 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.Mdb.UsedByInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.UsedByInfo 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.Mdb.UsedByInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.UsedByInfo 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.Mdb.UsedByInfo 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.mdb.UsedByInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.UsedByInfo)
org.yamcs.protobuf.Mdb.UsedByInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_UsedByInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_UsedByInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.UsedByInfo.class, org.yamcs.protobuf.Mdb.UsedByInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.UsedByInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAlgorithmFieldBuilder();
getContainerFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (algorithmBuilder_ == null) {
algorithm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
algorithmBuilder_.clear();
}
if (containerBuilder_ == null) {
container_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
containerBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_UsedByInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.UsedByInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.UsedByInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.UsedByInfo build() {
org.yamcs.protobuf.Mdb.UsedByInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.UsedByInfo buildPartial() {
org.yamcs.protobuf.Mdb.UsedByInfo result = new org.yamcs.protobuf.Mdb.UsedByInfo(this);
int from_bitField0_ = bitField0_;
if (algorithmBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
algorithm_ = java.util.Collections.unmodifiableList(algorithm_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.algorithm_ = algorithm_;
} else {
result.algorithm_ = algorithmBuilder_.build();
}
if (containerBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
container_ = java.util.Collections.unmodifiableList(container_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.container_ = container_;
} else {
result.container_ = containerBuilder_.build();
}
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.Mdb.UsedByInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.UsedByInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.UsedByInfo other) {
if (other == org.yamcs.protobuf.Mdb.UsedByInfo.getDefaultInstance()) return this;
if (algorithmBuilder_ == null) {
if (!other.algorithm_.isEmpty()) {
if (algorithm_.isEmpty()) {
algorithm_ = other.algorithm_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAlgorithmIsMutable();
algorithm_.addAll(other.algorithm_);
}
onChanged();
}
} else {
if (!other.algorithm_.isEmpty()) {
if (algorithmBuilder_.isEmpty()) {
algorithmBuilder_.dispose();
algorithmBuilder_ = null;
algorithm_ = other.algorithm_;
bitField0_ = (bitField0_ & ~0x00000001);
algorithmBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAlgorithmFieldBuilder() : null;
} else {
algorithmBuilder_.addAllMessages(other.algorithm_);
}
}
}
if (containerBuilder_ == null) {
if (!other.container_.isEmpty()) {
if (container_.isEmpty()) {
container_ = other.container_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureContainerIsMutable();
container_.addAll(other.container_);
}
onChanged();
}
} else {
if (!other.container_.isEmpty()) {
if (containerBuilder_.isEmpty()) {
containerBuilder_.dispose();
containerBuilder_ = null;
container_ = other.container_;
bitField0_ = (bitField0_ & ~0x00000002);
containerBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContainerFieldBuilder() : null;
} else {
containerBuilder_.addAllMessages(other.container_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getAlgorithmCount(); i++) {
if (!getAlgorithm(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getContainerCount(); i++) {
if (!getContainer(i).isInitialized()) {
return false;
}
}
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.Mdb.UsedByInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.UsedByInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List algorithm_ =
java.util.Collections.emptyList();
private void ensureAlgorithmIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
algorithm_ = new java.util.ArrayList(algorithm_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlgorithmInfo, org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder, org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder> algorithmBuilder_;
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public java.util.List getAlgorithmList() {
if (algorithmBuilder_ == null) {
return java.util.Collections.unmodifiableList(algorithm_);
} else {
return algorithmBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public int getAlgorithmCount() {
if (algorithmBuilder_ == null) {
return algorithm_.size();
} else {
return algorithmBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfo getAlgorithm(int index) {
if (algorithmBuilder_ == null) {
return algorithm_.get(index);
} else {
return algorithmBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public Builder setAlgorithm(
int index, org.yamcs.protobuf.Mdb.AlgorithmInfo value) {
if (algorithmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAlgorithmIsMutable();
algorithm_.set(index, value);
onChanged();
} else {
algorithmBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public Builder setAlgorithm(
int index, org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder builderForValue) {
if (algorithmBuilder_ == null) {
ensureAlgorithmIsMutable();
algorithm_.set(index, builderForValue.build());
onChanged();
} else {
algorithmBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public Builder addAlgorithm(org.yamcs.protobuf.Mdb.AlgorithmInfo value) {
if (algorithmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAlgorithmIsMutable();
algorithm_.add(value);
onChanged();
} else {
algorithmBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public Builder addAlgorithm(
int index, org.yamcs.protobuf.Mdb.AlgorithmInfo value) {
if (algorithmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAlgorithmIsMutable();
algorithm_.add(index, value);
onChanged();
} else {
algorithmBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public Builder addAlgorithm(
org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder builderForValue) {
if (algorithmBuilder_ == null) {
ensureAlgorithmIsMutable();
algorithm_.add(builderForValue.build());
onChanged();
} else {
algorithmBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public Builder addAlgorithm(
int index, org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder builderForValue) {
if (algorithmBuilder_ == null) {
ensureAlgorithmIsMutable();
algorithm_.add(index, builderForValue.build());
onChanged();
} else {
algorithmBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public Builder addAllAlgorithm(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.AlgorithmInfo> values) {
if (algorithmBuilder_ == null) {
ensureAlgorithmIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, algorithm_);
onChanged();
} else {
algorithmBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public Builder clearAlgorithm() {
if (algorithmBuilder_ == null) {
algorithm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
algorithmBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public Builder removeAlgorithm(int index) {
if (algorithmBuilder_ == null) {
ensureAlgorithmIsMutable();
algorithm_.remove(index);
onChanged();
} else {
algorithmBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder getAlgorithmBuilder(
int index) {
return getAlgorithmFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder getAlgorithmOrBuilder(
int index) {
if (algorithmBuilder_ == null) {
return algorithm_.get(index); } else {
return algorithmBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder>
getAlgorithmOrBuilderList() {
if (algorithmBuilder_ != null) {
return algorithmBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(algorithm_);
}
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder addAlgorithmBuilder() {
return getAlgorithmFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.AlgorithmInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder addAlgorithmBuilder(
int index) {
return getAlgorithmFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.AlgorithmInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.AlgorithmInfo algorithm = 1;
*/
public java.util.List
getAlgorithmBuilderList() {
return getAlgorithmFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlgorithmInfo, org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder, org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder>
getAlgorithmFieldBuilder() {
if (algorithmBuilder_ == null) {
algorithmBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlgorithmInfo, org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder, org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder>(
algorithm_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
algorithm_ = null;
}
return algorithmBuilder_;
}
private java.util.List container_ =
java.util.Collections.emptyList();
private void ensureContainerIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
container_ = new java.util.ArrayList(container_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContainerInfo, org.yamcs.protobuf.Mdb.ContainerInfo.Builder, org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder> containerBuilder_;
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public java.util.List getContainerList() {
if (containerBuilder_ == null) {
return java.util.Collections.unmodifiableList(container_);
} else {
return containerBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public int getContainerCount() {
if (containerBuilder_ == null) {
return container_.size();
} else {
return containerBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public org.yamcs.protobuf.Mdb.ContainerInfo getContainer(int index) {
if (containerBuilder_ == null) {
return container_.get(index);
} else {
return containerBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public Builder setContainer(
int index, org.yamcs.protobuf.Mdb.ContainerInfo value) {
if (containerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainerIsMutable();
container_.set(index, value);
onChanged();
} else {
containerBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public Builder setContainer(
int index, org.yamcs.protobuf.Mdb.ContainerInfo.Builder builderForValue) {
if (containerBuilder_ == null) {
ensureContainerIsMutable();
container_.set(index, builderForValue.build());
onChanged();
} else {
containerBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public Builder addContainer(org.yamcs.protobuf.Mdb.ContainerInfo value) {
if (containerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainerIsMutable();
container_.add(value);
onChanged();
} else {
containerBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public Builder addContainer(
int index, org.yamcs.protobuf.Mdb.ContainerInfo value) {
if (containerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainerIsMutable();
container_.add(index, value);
onChanged();
} else {
containerBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public Builder addContainer(
org.yamcs.protobuf.Mdb.ContainerInfo.Builder builderForValue) {
if (containerBuilder_ == null) {
ensureContainerIsMutable();
container_.add(builderForValue.build());
onChanged();
} else {
containerBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public Builder addContainer(
int index, org.yamcs.protobuf.Mdb.ContainerInfo.Builder builderForValue) {
if (containerBuilder_ == null) {
ensureContainerIsMutable();
container_.add(index, builderForValue.build());
onChanged();
} else {
containerBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public Builder addAllContainer(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.ContainerInfo> values) {
if (containerBuilder_ == null) {
ensureContainerIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, container_);
onChanged();
} else {
containerBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public Builder clearContainer() {
if (containerBuilder_ == null) {
container_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
containerBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public Builder removeContainer(int index) {
if (containerBuilder_ == null) {
ensureContainerIsMutable();
container_.remove(index);
onChanged();
} else {
containerBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public org.yamcs.protobuf.Mdb.ContainerInfo.Builder getContainerBuilder(
int index) {
return getContainerFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder getContainerOrBuilder(
int index) {
if (containerBuilder_ == null) {
return container_.get(index); } else {
return containerBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder>
getContainerOrBuilderList() {
if (containerBuilder_ != null) {
return containerBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(container_);
}
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public org.yamcs.protobuf.Mdb.ContainerInfo.Builder addContainerBuilder() {
return getContainerFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ContainerInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public org.yamcs.protobuf.Mdb.ContainerInfo.Builder addContainerBuilder(
int index) {
return getContainerFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ContainerInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.ContainerInfo container = 2;
*/
public java.util.List
getContainerBuilderList() {
return getContainerFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContainerInfo, org.yamcs.protobuf.Mdb.ContainerInfo.Builder, org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder>
getContainerFieldBuilder() {
if (containerBuilder_ == null) {
containerBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContainerInfo, org.yamcs.protobuf.Mdb.ContainerInfo.Builder, org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder>(
container_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
container_ = null;
}
return containerBuilder_;
}
@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.mdb.UsedByInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.UsedByInfo)
private static final org.yamcs.protobuf.Mdb.UsedByInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.UsedByInfo();
}
public static org.yamcs.protobuf.Mdb.UsedByInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UsedByInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UsedByInfo(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.Mdb.UsedByInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ParameterInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.ParameterInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string qualifiedName = 2;
*/
boolean hasQualifiedName();
/**
* optional string qualifiedName = 2;
*/
java.lang.String getQualifiedName();
/**
* optional string qualifiedName = 2;
*/
com.google.protobuf.ByteString
getQualifiedNameBytes();
/**
* optional string shortDescription = 3;
*/
boolean hasShortDescription();
/**
* optional string shortDescription = 3;
*/
java.lang.String getShortDescription();
/**
* optional string shortDescription = 3;
*/
com.google.protobuf.ByteString
getShortDescriptionBytes();
/**
* optional string longDescription = 4;
*/
boolean hasLongDescription();
/**
* optional string longDescription = 4;
*/
java.lang.String getLongDescription();
/**
* optional string longDescription = 4;
*/
com.google.protobuf.ByteString
getLongDescriptionBytes();
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
java.util.List
getAliasList();
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
org.yamcs.protobuf.Yamcs.NamedObjectId getAlias(int index);
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
int getAliasCount();
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getAliasOrBuilderList();
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getAliasOrBuilder(
int index);
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
boolean hasType();
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
org.yamcs.protobuf.Mdb.ParameterTypeInfo getType();
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder getTypeOrBuilder();
/**
* optional .yamcs.protobuf.mdb.DataSourceType dataSource = 7;
*/
boolean hasDataSource();
/**
* optional .yamcs.protobuf.mdb.DataSourceType dataSource = 7;
*/
org.yamcs.protobuf.Mdb.DataSourceType getDataSource();
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
boolean hasUsedBy();
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
org.yamcs.protobuf.Mdb.UsedByInfo getUsedBy();
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
org.yamcs.protobuf.Mdb.UsedByInfoOrBuilder getUsedByOrBuilder();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.ParameterInfo}
*/
public static final class ParameterInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.ParameterInfo)
ParameterInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ParameterInfo.newBuilder() to construct.
private ParameterInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ParameterInfo() {
name_ = "";
qualifiedName_ = "";
shortDescription_ = "";
longDescription_ = "";
alias_ = java.util.Collections.emptyList();
dataSource_ = 0;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ParameterInfo(
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;
qualifiedName_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
shortDescription_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
longDescription_ = bs;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
alias_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
alias_.add(
input.readMessage(org.yamcs.protobuf.Yamcs.NamedObjectId.PARSER, extensionRegistry));
break;
}
case 50: {
org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = type_.toBuilder();
}
type_ = input.readMessage(org.yamcs.protobuf.Mdb.ParameterTypeInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(type_);
type_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 56: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.DataSourceType value = org.yamcs.protobuf.Mdb.DataSourceType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(7, rawValue);
} else {
bitField0_ |= 0x00000020;
dataSource_ = rawValue;
}
break;
}
case 66: {
org.yamcs.protobuf.Mdb.UsedByInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) != 0)) {
subBuilder = usedBy_.toBuilder();
}
usedBy_ = input.readMessage(org.yamcs.protobuf.Mdb.UsedByInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(usedBy_);
usedBy_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
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_ & 0x00000010) != 0)) {
alias_ = java.util.Collections.unmodifiableList(alias_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ParameterInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ParameterInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.ParameterInfo.class, org.yamcs.protobuf.Mdb.ParameterInfo.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
*/
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 = 1;
*/
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 QUALIFIEDNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object qualifiedName_;
/**
* optional string qualifiedName = 2;
*/
public boolean hasQualifiedName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string qualifiedName = 2;
*/
public java.lang.String getQualifiedName() {
java.lang.Object ref = qualifiedName_;
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()) {
qualifiedName_ = s;
}
return s;
}
}
/**
* optional string qualifiedName = 2;
*/
public com.google.protobuf.ByteString
getQualifiedNameBytes() {
java.lang.Object ref = qualifiedName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
qualifiedName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHORTDESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object shortDescription_;
/**
* optional string shortDescription = 3;
*/
public boolean hasShortDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string shortDescription = 3;
*/
public java.lang.String getShortDescription() {
java.lang.Object ref = shortDescription_;
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()) {
shortDescription_ = s;
}
return s;
}
}
/**
* optional string shortDescription = 3;
*/
public com.google.protobuf.ByteString
getShortDescriptionBytes() {
java.lang.Object ref = shortDescription_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shortDescription_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LONGDESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object longDescription_;
/**
* optional string longDescription = 4;
*/
public boolean hasLongDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string longDescription = 4;
*/
public java.lang.String getLongDescription() {
java.lang.Object ref = longDescription_;
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()) {
longDescription_ = s;
}
return s;
}
}
/**
* optional string longDescription = 4;
*/
public com.google.protobuf.ByteString
getLongDescriptionBytes() {
java.lang.Object ref = longDescription_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
longDescription_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ALIAS_FIELD_NUMBER = 5;
private java.util.List alias_;
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public java.util.List getAliasList() {
return alias_;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getAliasOrBuilderList() {
return alias_;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public int getAliasCount() {
return alias_.size();
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getAlias(int index) {
return alias_.get(index);
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getAliasOrBuilder(
int index) {
return alias_.get(index);
}
public static final int TYPE_FIELD_NUMBER = 6;
private org.yamcs.protobuf.Mdb.ParameterTypeInfo type_;
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfo getType() {
return type_ == null ? org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance() : type_;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder getTypeOrBuilder() {
return type_ == null ? org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance() : type_;
}
public static final int DATASOURCE_FIELD_NUMBER = 7;
private int dataSource_;
/**
* optional .yamcs.protobuf.mdb.DataSourceType dataSource = 7;
*/
public boolean hasDataSource() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .yamcs.protobuf.mdb.DataSourceType dataSource = 7;
*/
public org.yamcs.protobuf.Mdb.DataSourceType getDataSource() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.DataSourceType result = org.yamcs.protobuf.Mdb.DataSourceType.valueOf(dataSource_);
return result == null ? org.yamcs.protobuf.Mdb.DataSourceType.TELEMETERED : result;
}
public static final int USEDBY_FIELD_NUMBER = 8;
private org.yamcs.protobuf.Mdb.UsedByInfo usedBy_;
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
public boolean hasUsedBy() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
public org.yamcs.protobuf.Mdb.UsedByInfo getUsedBy() {
return usedBy_ == null ? org.yamcs.protobuf.Mdb.UsedByInfo.getDefaultInstance() : usedBy_;
}
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
public org.yamcs.protobuf.Mdb.UsedByInfoOrBuilder getUsedByOrBuilder() {
return usedBy_ == null ? org.yamcs.protobuf.Mdb.UsedByInfo.getDefaultInstance() : usedBy_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getAliasCount(); i++) {
if (!getAlias(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasType()) {
if (!getType().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasUsedBy()) {
if (!getUsedBy().isInitialized()) {
memoizedIsInitialized = 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, qualifiedName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, shortDescription_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, longDescription_);
}
for (int i = 0; i < alias_.size(); i++) {
output.writeMessage(5, alias_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(6, getType());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeEnum(7, dataSource_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(8, getUsedBy());
}
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, qualifiedName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, shortDescription_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, longDescription_);
}
for (int i = 0; i < alias_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, alias_.get(i));
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getType());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, dataSource_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getUsedBy());
}
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.Mdb.ParameterInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Mdb.ParameterInfo other = (org.yamcs.protobuf.Mdb.ParameterInfo) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasQualifiedName() != other.hasQualifiedName()) return false;
if (hasQualifiedName()) {
if (!getQualifiedName()
.equals(other.getQualifiedName())) return false;
}
if (hasShortDescription() != other.hasShortDescription()) return false;
if (hasShortDescription()) {
if (!getShortDescription()
.equals(other.getShortDescription())) return false;
}
if (hasLongDescription() != other.hasLongDescription()) return false;
if (hasLongDescription()) {
if (!getLongDescription()
.equals(other.getLongDescription())) return false;
}
if (!getAliasList()
.equals(other.getAliasList())) return false;
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (!getType()
.equals(other.getType())) return false;
}
if (hasDataSource() != other.hasDataSource()) return false;
if (hasDataSource()) {
if (dataSource_ != other.dataSource_) return false;
}
if (hasUsedBy() != other.hasUsedBy()) return false;
if (hasUsedBy()) {
if (!getUsedBy()
.equals(other.getUsedBy())) 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 (hasQualifiedName()) {
hash = (37 * hash) + QUALIFIEDNAME_FIELD_NUMBER;
hash = (53 * hash) + getQualifiedName().hashCode();
}
if (hasShortDescription()) {
hash = (37 * hash) + SHORTDESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getShortDescription().hashCode();
}
if (hasLongDescription()) {
hash = (37 * hash) + LONGDESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getLongDescription().hashCode();
}
if (getAliasCount() > 0) {
hash = (37 * hash) + ALIAS_FIELD_NUMBER;
hash = (53 * hash) + getAliasList().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
}
if (hasDataSource()) {
hash = (37 * hash) + DATASOURCE_FIELD_NUMBER;
hash = (53 * hash) + dataSource_;
}
if (hasUsedBy()) {
hash = (37 * hash) + USEDBY_FIELD_NUMBER;
hash = (53 * hash) + getUsedBy().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Mdb.ParameterInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ParameterInfo 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.Mdb.ParameterInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ParameterInfo 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.Mdb.ParameterInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Mdb.ParameterInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Mdb.ParameterInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ParameterInfo 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.Mdb.ParameterInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ParameterInfo 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.Mdb.ParameterInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Mdb.ParameterInfo 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.Mdb.ParameterInfo 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.mdb.ParameterInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.mdb.ParameterInfo)
org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ParameterInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ParameterInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.ParameterInfo.class, org.yamcs.protobuf.Mdb.ParameterInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Mdb.ParameterInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAliasFieldBuilder();
getTypeFieldBuilder();
getUsedByFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
qualifiedName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
shortDescription_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
longDescription_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
if (aliasBuilder_ == null) {
alias_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
aliasBuilder_.clear();
}
if (typeBuilder_ == null) {
type_ = null;
} else {
typeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
dataSource_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
if (usedByBuilder_ == null) {
usedBy_ = null;
} else {
usedByBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ParameterInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ParameterInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ParameterInfo build() {
org.yamcs.protobuf.Mdb.ParameterInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Mdb.ParameterInfo buildPartial() {
org.yamcs.protobuf.Mdb.ParameterInfo result = new org.yamcs.protobuf.Mdb.ParameterInfo(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.qualifiedName_ = qualifiedName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.shortDescription_ = shortDescription_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.longDescription_ = longDescription_;
if (aliasBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
alias_ = java.util.Collections.unmodifiableList(alias_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.alias_ = alias_;
} else {
result.alias_ = aliasBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
if (typeBuilder_ == null) {
result.type_ = type_;
} else {
result.type_ = typeBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.dataSource_ = dataSource_;
if (((from_bitField0_ & 0x00000080) != 0)) {
if (usedByBuilder_ == null) {
result.usedBy_ = usedBy_;
} else {
result.usedBy_ = usedByBuilder_.build();
}
to_bitField0_ |= 0x00000040;
}
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.Mdb.ParameterInfo) {
return mergeFrom((org.yamcs.protobuf.Mdb.ParameterInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Mdb.ParameterInfo other) {
if (other == org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasQualifiedName()) {
bitField0_ |= 0x00000002;
qualifiedName_ = other.qualifiedName_;
onChanged();
}
if (other.hasShortDescription()) {
bitField0_ |= 0x00000004;
shortDescription_ = other.shortDescription_;
onChanged();
}
if (other.hasLongDescription()) {
bitField0_ |= 0x00000008;
longDescription_ = other.longDescription_;
onChanged();
}
if (aliasBuilder_ == null) {
if (!other.alias_.isEmpty()) {
if (alias_.isEmpty()) {
alias_ = other.alias_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureAliasIsMutable();
alias_.addAll(other.alias_);
}
onChanged();
}
} else {
if (!other.alias_.isEmpty()) {
if (aliasBuilder_.isEmpty()) {
aliasBuilder_.dispose();
aliasBuilder_ = null;
alias_ = other.alias_;
bitField0_ = (bitField0_ & ~0x00000010);
aliasBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAliasFieldBuilder() : null;
} else {
aliasBuilder_.addAllMessages(other.alias_);
}
}
}
if (other.hasType()) {
mergeType(other.getType());
}
if (other.hasDataSource()) {
setDataSource(other.getDataSource());
}
if (other.hasUsedBy()) {
mergeUsedBy(other.getUsedBy());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getAliasCount(); i++) {
if (!getAlias(i).isInitialized()) {
return false;
}
}
if (hasType()) {
if (!getType().isInitialized()) {
return false;
}
}
if (hasUsedBy()) {
if (!getUsedBy().isInitialized()) {
return false;
}
}
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.Mdb.ParameterInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Mdb.ParameterInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
*/
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 = 1;
*/
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 = 1;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
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 qualifiedName_ = "";
/**
* optional string qualifiedName = 2;
*/
public boolean hasQualifiedName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string qualifiedName = 2;
*/
public java.lang.String getQualifiedName() {
java.lang.Object ref = qualifiedName_;
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()) {
qualifiedName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string qualifiedName = 2;
*/
public com.google.protobuf.ByteString
getQualifiedNameBytes() {
java.lang.Object ref = qualifiedName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
qualifiedName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string qualifiedName = 2;
*/
public Builder setQualifiedName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
qualifiedName_ = value;
onChanged();
return this;
}
/**
* optional string qualifiedName = 2;
*/
public Builder clearQualifiedName() {
bitField0_ = (bitField0_ & ~0x00000002);
qualifiedName_ = getDefaultInstance().getQualifiedName();
onChanged();
return this;
}
/**
* optional string qualifiedName = 2;
*/
public Builder setQualifiedNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
qualifiedName_ = value;
onChanged();
return this;
}
private java.lang.Object shortDescription_ = "";
/**
* optional string shortDescription = 3;
*/
public boolean hasShortDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string shortDescription = 3;
*/
public java.lang.String getShortDescription() {
java.lang.Object ref = shortDescription_;
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()) {
shortDescription_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string shortDescription = 3;
*/
public com.google.protobuf.ByteString
getShortDescriptionBytes() {
java.lang.Object ref = shortDescription_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shortDescription_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string shortDescription = 3;
*/
public Builder setShortDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
shortDescription_ = value;
onChanged();
return this;
}
/**
* optional string shortDescription = 3;
*/
public Builder clearShortDescription() {
bitField0_ = (bitField0_ & ~0x00000004);
shortDescription_ = getDefaultInstance().getShortDescription();
onChanged();
return this;
}
/**
* optional string shortDescription = 3;
*/
public Builder setShortDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
shortDescription_ = value;
onChanged();
return this;
}
private java.lang.Object longDescription_ = "";
/**
* optional string longDescription = 4;
*/
public boolean hasLongDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string longDescription = 4;
*/
public java.lang.String getLongDescription() {
java.lang.Object ref = longDescription_;
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()) {
longDescription_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string longDescription = 4;
*/
public com.google.protobuf.ByteString
getLongDescriptionBytes() {
java.lang.Object ref = longDescription_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
longDescription_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string longDescription = 4;
*/
public Builder setLongDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
longDescription_ = value;
onChanged();
return this;
}
/**
* optional string longDescription = 4;
*/
public Builder clearLongDescription() {
bitField0_ = (bitField0_ & ~0x00000008);
longDescription_ = getDefaultInstance().getLongDescription();
onChanged();
return this;
}
/**
* optional string longDescription = 4;
*/
public Builder setLongDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
longDescription_ = value;
onChanged();
return this;
}
private java.util.List alias_ =
java.util.Collections.emptyList();
private void ensureAliasIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
alias_ = new java.util.ArrayList(alias_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder> aliasBuilder_;
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public java.util.List getAliasList() {
if (aliasBuilder_ == null) {
return java.util.Collections.unmodifiableList(alias_);
} else {
return aliasBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public int getAliasCount() {
if (aliasBuilder_ == null) {
return alias_.size();
} else {
return aliasBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getAlias(int index) {
if (aliasBuilder_ == null) {
return alias_.get(index);
} else {
return aliasBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder setAlias(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (aliasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliasIsMutable();
alias_.set(index, value);
onChanged();
} else {
aliasBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder setAlias(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (aliasBuilder_ == null) {
ensureAliasIsMutable();
alias_.set(index, builderForValue.build());
onChanged();
} else {
aliasBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder addAlias(org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (aliasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliasIsMutable();
alias_.add(value);
onChanged();
} else {
aliasBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder addAlias(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (aliasBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAliasIsMutable();
alias_.add(index, value);
onChanged();
} else {
aliasBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder addAlias(
org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (aliasBuilder_ == null) {
ensureAliasIsMutable();
alias_.add(builderForValue.build());
onChanged();
} else {
aliasBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder addAlias(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (aliasBuilder_ == null) {
ensureAliasIsMutable();
alias_.add(index, builderForValue.build());
onChanged();
} else {
aliasBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder addAllAlias(
java.lang.Iterable extends org.yamcs.protobuf.Yamcs.NamedObjectId> values) {
if (aliasBuilder_ == null) {
ensureAliasIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, alias_);
onChanged();
} else {
aliasBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder clearAlias() {
if (aliasBuilder_ == null) {
alias_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
aliasBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public Builder removeAlias(int index) {
if (aliasBuilder_ == null) {
ensureAliasIsMutable();
alias_.remove(index);
onChanged();
} else {
aliasBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder getAliasBuilder(
int index) {
return getAliasFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getAliasOrBuilder(
int index) {
if (aliasBuilder_ == null) {
return alias_.get(index); } else {
return aliasBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getAliasOrBuilderList() {
if (aliasBuilder_ != null) {
return aliasBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(alias_);
}
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addAliasBuilder() {
return getAliasFieldBuilder().addBuilder(
org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addAliasBuilder(
int index) {
return getAliasFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 5;
*/
public java.util.List
getAliasBuilderList() {
return getAliasFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getAliasFieldBuilder() {
if (aliasBuilder_ == null) {
aliasBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>(
alias_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
alias_ = null;
}
return aliasBuilder_;
}
private org.yamcs.protobuf.Mdb.ParameterTypeInfo type_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterTypeInfo, org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder, org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder> typeBuilder_;
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfo getType() {
if (typeBuilder_ == null) {
return type_ == null ? org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance() : type_;
} else {
return typeBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public Builder setType(org.yamcs.protobuf.Mdb.ParameterTypeInfo value) {
if (typeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
} else {
typeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public Builder setType(
org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder builderForValue) {
if (typeBuilder_ == null) {
type_ = builderForValue.build();
onChanged();
} else {
typeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public Builder mergeType(org.yamcs.protobuf.Mdb.ParameterTypeInfo value) {
if (typeBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0) &&
type_ != null &&
type_ != org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance()) {
type_ =
org.yamcs.protobuf.Mdb.ParameterTypeInfo.newBuilder(type_).mergeFrom(value).buildPartial();
} else {
type_ = value;
}
onChanged();
} else {
typeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public Builder clearType() {
if (typeBuilder_ == null) {
type_ = null;
onChanged();
} else {
typeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder getTypeBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getTypeFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
public org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder getTypeOrBuilder() {
if (typeBuilder_ != null) {
return typeBuilder_.getMessageOrBuilder();
} else {
return type_ == null ?
org.yamcs.protobuf.Mdb.ParameterTypeInfo.getDefaultInstance() : type_;
}
}
/**
* optional .yamcs.protobuf.mdb.ParameterTypeInfo type = 6;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterTypeInfo, org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder, org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder>
getTypeFieldBuilder() {
if (typeBuilder_ == null) {
typeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterTypeInfo, org.yamcs.protobuf.Mdb.ParameterTypeInfo.Builder, org.yamcs.protobuf.Mdb.ParameterTypeInfoOrBuilder>(
getType(),
getParentForChildren(),
isClean());
type_ = null;
}
return typeBuilder_;
}
private int dataSource_ = 0;
/**
* optional .yamcs.protobuf.mdb.DataSourceType dataSource = 7;
*/
public boolean hasDataSource() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .yamcs.protobuf.mdb.DataSourceType dataSource = 7;
*/
public org.yamcs.protobuf.Mdb.DataSourceType getDataSource() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.DataSourceType result = org.yamcs.protobuf.Mdb.DataSourceType.valueOf(dataSource_);
return result == null ? org.yamcs.protobuf.Mdb.DataSourceType.TELEMETERED : result;
}
/**
* optional .yamcs.protobuf.mdb.DataSourceType dataSource = 7;
*/
public Builder setDataSource(org.yamcs.protobuf.Mdb.DataSourceType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
dataSource_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .yamcs.protobuf.mdb.DataSourceType dataSource = 7;
*/
public Builder clearDataSource() {
bitField0_ = (bitField0_ & ~0x00000040);
dataSource_ = 0;
onChanged();
return this;
}
private org.yamcs.protobuf.Mdb.UsedByInfo usedBy_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.UsedByInfo, org.yamcs.protobuf.Mdb.UsedByInfo.Builder, org.yamcs.protobuf.Mdb.UsedByInfoOrBuilder> usedByBuilder_;
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
public boolean hasUsedBy() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
public org.yamcs.protobuf.Mdb.UsedByInfo getUsedBy() {
if (usedByBuilder_ == null) {
return usedBy_ == null ? org.yamcs.protobuf.Mdb.UsedByInfo.getDefaultInstance() : usedBy_;
} else {
return usedByBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
public Builder setUsedBy(org.yamcs.protobuf.Mdb.UsedByInfo value) {
if (usedByBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
usedBy_ = value;
onChanged();
} else {
usedByBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
public Builder setUsedBy(
org.yamcs.protobuf.Mdb.UsedByInfo.Builder builderForValue) {
if (usedByBuilder_ == null) {
usedBy_ = builderForValue.build();
onChanged();
} else {
usedByBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
public Builder mergeUsedBy(org.yamcs.protobuf.Mdb.UsedByInfo value) {
if (usedByBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
usedBy_ != null &&
usedBy_ != org.yamcs.protobuf.Mdb.UsedByInfo.getDefaultInstance()) {
usedBy_ =
org.yamcs.protobuf.Mdb.UsedByInfo.newBuilder(usedBy_).mergeFrom(value).buildPartial();
} else {
usedBy_ = value;
}
onChanged();
} else {
usedByBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
public Builder clearUsedBy() {
if (usedByBuilder_ == null) {
usedBy_ = null;
onChanged();
} else {
usedByBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
public org.yamcs.protobuf.Mdb.UsedByInfo.Builder getUsedByBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getUsedByFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
public org.yamcs.protobuf.Mdb.UsedByInfoOrBuilder getUsedByOrBuilder() {
if (usedByBuilder_ != null) {
return usedByBuilder_.getMessageOrBuilder();
} else {
return usedBy_ == null ?
org.yamcs.protobuf.Mdb.UsedByInfo.getDefaultInstance() : usedBy_;
}
}
/**
* optional .yamcs.protobuf.mdb.UsedByInfo usedBy = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.UsedByInfo, org.yamcs.protobuf.Mdb.UsedByInfo.Builder, org.yamcs.protobuf.Mdb.UsedByInfoOrBuilder>
getUsedByFieldBuilder() {
if (usedByBuilder_ == null) {
usedByBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.UsedByInfo, org.yamcs.protobuf.Mdb.UsedByInfo.Builder, org.yamcs.protobuf.Mdb.UsedByInfoOrBuilder>(
getUsedBy(),
getParentForChildren(),
isClean());
usedBy_ = null;
}
return usedByBuilder_;
}
@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.mdb.ParameterInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.mdb.ParameterInfo)
private static final org.yamcs.protobuf.Mdb.ParameterInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Mdb.ParameterInfo();
}
public static org.yamcs.protobuf.Mdb.ParameterInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ParameterInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ParameterInfo(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.Mdb.ParameterInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ArgumentTypeInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.mdb.ArgumentTypeInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional string engType = 1;
*/
boolean hasEngType();
/**
* optional string engType = 1;
*/
java.lang.String getEngType();
/**
* optional string engType = 1;
*/
com.google.protobuf.ByteString
getEngTypeBytes();
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
boolean hasDataEncoding();
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
org.yamcs.protobuf.Mdb.DataEncodingInfo getDataEncoding();
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
org.yamcs.protobuf.Mdb.DataEncodingInfoOrBuilder getDataEncodingOrBuilder();
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
java.util.List
getUnitSetList();
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
org.yamcs.protobuf.Mdb.UnitInfo getUnitSet(int index);
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
int getUnitSetCount();
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
java.util.List extends org.yamcs.protobuf.Mdb.UnitInfoOrBuilder>
getUnitSetOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
org.yamcs.protobuf.Mdb.UnitInfoOrBuilder getUnitSetOrBuilder(
int index);
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
java.util.List
getEnumValueList();
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
org.yamcs.protobuf.Mdb.EnumValue getEnumValue(int index);
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
int getEnumValueCount();
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
java.util.List extends org.yamcs.protobuf.Mdb.EnumValueOrBuilder>
getEnumValueOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
org.yamcs.protobuf.Mdb.EnumValueOrBuilder getEnumValueOrBuilder(
int index);
/**
* optional double rangeMin = 6;
*/
boolean hasRangeMin();
/**
* optional double rangeMin = 6;
*/
double getRangeMin();
/**
* optional double rangeMax = 7;
*/
boolean hasRangeMax();
/**
* optional double rangeMax = 7;
*/
double getRangeMax();
}
/**
* Protobuf type {@code yamcs.protobuf.mdb.ArgumentTypeInfo}
*/
public static final class ArgumentTypeInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.mdb.ArgumentTypeInfo)
ArgumentTypeInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ArgumentTypeInfo.newBuilder() to construct.
private ArgumentTypeInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ArgumentTypeInfo() {
engType_ = "";
unitSet_ = java.util.Collections.emptyList();
enumValue_ = java.util.Collections.emptyList();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ArgumentTypeInfo(
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;
engType_ = bs;
break;
}
case 18: {
org.yamcs.protobuf.Mdb.DataEncodingInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = dataEncoding_.toBuilder();
}
dataEncoding_ = input.readMessage(org.yamcs.protobuf.Mdb.DataEncodingInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataEncoding_);
dataEncoding_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
unitSet_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
unitSet_.add(
input.readMessage(org.yamcs.protobuf.Mdb.UnitInfo.PARSER, extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
enumValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
enumValue_.add(
input.readMessage(org.yamcs.protobuf.Mdb.EnumValue.PARSER, extensionRegistry));
break;
}
case 49: {
bitField0_ |= 0x00000004;
rangeMin_ = input.readDouble();
break;
}
case 57: {
bitField0_ |= 0x00000008;
rangeMax_ = input.readDouble();
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_ & 0x00000004) != 0)) {
unitSet_ = java.util.Collections.unmodifiableList(unitSet_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
enumValue_ = java.util.Collections.unmodifiableList(enumValue_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ArgumentTypeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ArgumentTypeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Mdb.ArgumentTypeInfo.class, org.yamcs.protobuf.Mdb.ArgumentTypeInfo.Builder.class);
}
private int bitField0_;
public static final int ENGTYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object engType_;
/**
* optional string engType = 1;
*/
public boolean hasEngType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string engType = 1;
*/
public java.lang.String getEngType() {
java.lang.Object ref = engType_;
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()) {
engType_ = s;
}
return s;
}
}
/**
* optional string engType = 1;
*/
public com.google.protobuf.ByteString
getEngTypeBytes() {
java.lang.Object ref = engType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
engType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DATAENCODING_FIELD_NUMBER = 2;
private org.yamcs.protobuf.Mdb.DataEncodingInfo dataEncoding_;
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public boolean hasDataEncoding() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public org.yamcs.protobuf.Mdb.DataEncodingInfo getDataEncoding() {
return dataEncoding_ == null ? org.yamcs.protobuf.Mdb.DataEncodingInfo.getDefaultInstance() : dataEncoding_;
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public org.yamcs.protobuf.Mdb.DataEncodingInfoOrBuilder getDataEncodingOrBuilder() {
return dataEncoding_ == null ? org.yamcs.protobuf.Mdb.DataEncodingInfo.getDefaultInstance() : dataEncoding_;
}
public static final int UNITSET_FIELD_NUMBER = 3;
private java.util.List unitSet_;
/**
*