
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),
/**
* GROUND = 10;
*/
GROUND(10),
;
/**
* 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;
/**
* GROUND = 10;
*/
public static final int GROUND_VALUE = 10;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static DataSourceType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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;
case 10: return GROUND;
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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AlarmLevelType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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;
* @return Whether the configName field is set.
*/
boolean hasConfigName();
/**
*
* This is the config section in mdb.yaml
*
*
* optional string configName = 1;
* @return The configName.
*/
java.lang.String getConfigName();
/**
*
* This is the config section in mdb.yaml
*
*
* optional string configName = 1;
* @return The bytes for configName.
*/
com.google.protobuf.ByteString
getConfigNameBytes();
/**
*
* Root space-system name
*
*
* optional string name = 2;
* @return Whether the name field is set.
*/
boolean hasName();
/**
*
* Root space-system name
*
*
* optional string name = 2;
* @return The name.
*/
java.lang.String getName();
/**
*
* Root space-system name
*
*
* optional string name = 2;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
*
* Root space-system header version
*
*
* optional string version = 3;
* @return Whether the version field is set.
*/
boolean hasVersion();
/**
*
* Root space-system header version
*
*
* optional string version = 3;
* @return The version.
*/
java.lang.String getVersion();
/**
*
* Root space-system header version
*
*
* optional string version = 3;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated java.util.List
getSpaceSystemList();
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated org.yamcs.protobuf.Mdb.SpaceSystemInfo getSpaceSystem(int index);
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated int getSpaceSystemCount();
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated java.util.List extends org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>
getSpaceSystemOrBuilderList();
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder getSpaceSystemOrBuilder(
int index);
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
java.util.List
getSpaceSystemsList();
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
org.yamcs.protobuf.Mdb.SpaceSystemInfo getSpaceSystems(int index);
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
int getSpaceSystemsCount();
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
java.util.List extends org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>
getSpaceSystemsOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder getSpaceSystemsOrBuilder(
int index);
/**
* optional int32 parameterCount = 6;
* @return Whether the parameterCount field is set.
*/
boolean hasParameterCount();
/**
* optional int32 parameterCount = 6;
* @return The parameterCount.
*/
int getParameterCount();
/**
* optional int32 containerCount = 7;
* @return Whether the containerCount field is set.
*/
boolean hasContainerCount();
/**
* optional int32 containerCount = 7;
* @return The containerCount.
*/
int getContainerCount();
/**
* optional int32 commandCount = 8;
* @return Whether the commandCount field is set.
*/
boolean hasCommandCount();
/**
* optional int32 commandCount = 8;
* @return The commandCount.
*/
int getCommandCount();
/**
* optional int32 algorithmCount = 9;
* @return Whether the algorithmCount field is set.
*/
boolean hasAlgorithmCount();
/**
* optional int32 algorithmCount = 9;
* @return The algorithmCount.
*/
int getAlgorithmCount();
/**
* optional int32 parameterTypeCount = 10;
* @return Whether the parameterTypeCount field is set.
*/
boolean hasParameterTypeCount();
/**
* optional int32 parameterTypeCount = 10;
* @return The parameterTypeCount.
*/
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();
spaceSystems_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MissionDatabase();
}
@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;
}
case 90: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
spaceSystems_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
spaceSystems_.add(
input.readMessage(org.yamcs.protobuf.Mdb.SpaceSystemInfo.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_ & 0x00000008) != 0)) {
spaceSystem_ = java.util.Collections.unmodifiableList(spaceSystem_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
spaceSystems_ = java.util.Collections.unmodifiableList(spaceSystems_);
}
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;
* @return Whether the configName field is set.
*/
@java.lang.Override
public boolean hasConfigName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* This is the config section in mdb.yaml
*
*
* optional string configName = 1;
* @return The configName.
*/
@java.lang.Override
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;
* @return The bytes for configName.
*/
@java.lang.Override
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_;
/**
*
* Root space-system name
*
*
* optional string name = 2;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Root space-system name
*
*
* optional string name = 2;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* Root space-system name
*
*
* optional string name = 2;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 3;
private volatile java.lang.Object version_;
/**
*
* Root space-system header version
*
*
* optional string version = 3;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Root space-system header version
*
*
* optional string version = 3;
* @return The version.
*/
@java.lang.Override
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;
}
}
/**
*
* Root space-system header version
*
*
* optional string version = 3;
* @return The bytes for version.
*/
@java.lang.Override
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_;
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List getSpaceSystemList() {
return spaceSystem_;
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List extends org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>
getSpaceSystemOrBuilderList() {
return spaceSystem_;
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public int getSpaceSystemCount() {
return spaceSystem_.size();
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SpaceSystemInfo getSpaceSystem(int index) {
return spaceSystem_.get(index);
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder getSpaceSystemOrBuilder(
int index) {
return spaceSystem_.get(index);
}
public static final int SPACESYSTEMS_FIELD_NUMBER = 11;
private java.util.List spaceSystems_;
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
@java.lang.Override
public java.util.List getSpaceSystemsList() {
return spaceSystems_;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>
getSpaceSystemsOrBuilderList() {
return spaceSystems_;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
@java.lang.Override
public int getSpaceSystemsCount() {
return spaceSystems_.size();
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.SpaceSystemInfo getSpaceSystems(int index) {
return spaceSystems_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder getSpaceSystemsOrBuilder(
int index) {
return spaceSystems_.get(index);
}
public static final int PARAMETERCOUNT_FIELD_NUMBER = 6;
private int parameterCount_;
/**
* optional int32 parameterCount = 6;
* @return Whether the parameterCount field is set.
*/
@java.lang.Override
public boolean hasParameterCount() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional int32 parameterCount = 6;
* @return The parameterCount.
*/
@java.lang.Override
public int getParameterCount() {
return parameterCount_;
}
public static final int CONTAINERCOUNT_FIELD_NUMBER = 7;
private int containerCount_;
/**
* optional int32 containerCount = 7;
* @return Whether the containerCount field is set.
*/
@java.lang.Override
public boolean hasContainerCount() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int32 containerCount = 7;
* @return The containerCount.
*/
@java.lang.Override
public int getContainerCount() {
return containerCount_;
}
public static final int COMMANDCOUNT_FIELD_NUMBER = 8;
private int commandCount_;
/**
* optional int32 commandCount = 8;
* @return Whether the commandCount field is set.
*/
@java.lang.Override
public boolean hasCommandCount() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 commandCount = 8;
* @return The commandCount.
*/
@java.lang.Override
public int getCommandCount() {
return commandCount_;
}
public static final int ALGORITHMCOUNT_FIELD_NUMBER = 9;
private int algorithmCount_;
/**
* optional int32 algorithmCount = 9;
* @return Whether the algorithmCount field is set.
*/
@java.lang.Override
public boolean hasAlgorithmCount() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int32 algorithmCount = 9;
* @return The algorithmCount.
*/
@java.lang.Override
public int getAlgorithmCount() {
return algorithmCount_;
}
public static final int PARAMETERTYPECOUNT_FIELD_NUMBER = 10;
private int parameterTypeCount_;
/**
* optional int32 parameterTypeCount = 10;
* @return Whether the parameterTypeCount field is set.
*/
@java.lang.Override
public boolean hasParameterTypeCount() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int32 parameterTypeCount = 10;
* @return The parameterTypeCount.
*/
@java.lang.Override
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;
for (int i = 0; i < getSpaceSystemCount(); i++) {
if (!getSpaceSystem(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getSpaceSystemsCount(); i++) {
if (!getSpaceSystems(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)) {
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_);
}
for (int i = 0; i < spaceSystems_.size(); i++) {
output.writeMessage(11, spaceSystems_.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.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_);
}
for (int i = 0; i < spaceSystems_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, spaceSystems_.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.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 (!getSpaceSystemsList()
.equals(other.getSpaceSystemsList())) 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 (getSpaceSystemsCount() > 0) {
hash = (37 * hash) + SPACESYSTEMS_FIELD_NUMBER;
hash = (53 * hash) + getSpaceSystemsList().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();
getSpaceSystemsFieldBuilder();
}
}
@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();
}
if (spaceSystemsBuilder_ == null) {
spaceSystems_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
spaceSystemsBuilder_.clear();
}
parameterCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
containerCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
commandCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
algorithmCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
parameterTypeCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000200);
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 (spaceSystemsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
spaceSystems_ = java.util.Collections.unmodifiableList(spaceSystems_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.spaceSystems_ = spaceSystems_;
} else {
result.spaceSystems_ = spaceSystemsBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.parameterCount_ = parameterCount_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.containerCount_ = containerCount_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.commandCount_ = commandCount_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.algorithmCount_ = algorithmCount_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000200) != 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 (spaceSystemsBuilder_ == null) {
if (!other.spaceSystems_.isEmpty()) {
if (spaceSystems_.isEmpty()) {
spaceSystems_ = other.spaceSystems_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureSpaceSystemsIsMutable();
spaceSystems_.addAll(other.spaceSystems_);
}
onChanged();
}
} else {
if (!other.spaceSystems_.isEmpty()) {
if (spaceSystemsBuilder_.isEmpty()) {
spaceSystemsBuilder_.dispose();
spaceSystemsBuilder_ = null;
spaceSystems_ = other.spaceSystems_;
bitField0_ = (bitField0_ & ~0x00000010);
spaceSystemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getSpaceSystemsFieldBuilder() : null;
} else {
spaceSystemsBuilder_.addAllMessages(other.spaceSystems_);
}
}
}
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() {
for (int i = 0; i < getSpaceSystemCount(); i++) {
if (!getSpaceSystem(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getSpaceSystemsCount(); i++) {
if (!getSpaceSystems(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.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;
* @return Whether the configName field is set.
*/
public boolean hasConfigName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* This is the config section in mdb.yaml
*
*
* optional string configName = 1;
* @return The configName.
*/
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;
* @return The bytes for configName.
*/
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;
* @param value The configName to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearConfigName() {
bitField0_ = (bitField0_ & ~0x00000001);
configName_ = getDefaultInstance().getConfigName();
onChanged();
return this;
}
/**
*
* This is the config section in mdb.yaml
*
*
* optional string configName = 1;
* @param value The bytes for configName to set.
* @return This builder for chaining.
*/
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_ = "";
/**
*
* Root space-system name
*
*
* optional string name = 2;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Root space-system name
*
*
* optional string name = 2;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Root space-system name
*
*
* optional string name = 2;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Root space-system name
*
*
* optional string name = 2;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
/**
*
* Root space-system name
*
*
* optional string name = 2;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000002);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Root space-system name
*
*
* optional string name = 2;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
name_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
*
* Root space-system header version
*
*
* optional string version = 3;
* @return Whether the version field is set.
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Root space-system header version
*
*
* optional string version = 3;
* @return The version.
*/
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;
}
}
/**
*
* Root space-system header version
*
*
* optional string version = 3;
* @return The bytes for version.
*/
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;
}
}
/**
*
* Root space-system header version
*
*
* optional string version = 3;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
version_ = value;
onChanged();
return this;
}
/**
*
* Root space-system header version
*
*
* optional string version = 3;
* @return This builder for chaining.
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
*
* Root space-system header version
*
*
* optional string version = 3;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
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_;
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List getSpaceSystemList() {
if (spaceSystemBuilder_ == null) {
return java.util.Collections.unmodifiableList(spaceSystem_);
} else {
return spaceSystemBuilder_.getMessageList();
}
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated public int getSpaceSystemCount() {
if (spaceSystemBuilder_ == null) {
return spaceSystem_.size();
} else {
return spaceSystemBuilder_.getCount();
}
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SpaceSystemInfo getSpaceSystem(int index) {
if (spaceSystemBuilder_ == null) {
return spaceSystem_.get(index);
} else {
return spaceSystemBuilder_.getMessage(index);
}
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearSpaceSystem() {
if (spaceSystemBuilder_ == null) {
spaceSystem_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
spaceSystemBuilder_.clear();
}
return this;
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder removeSpaceSystem(int index) {
if (spaceSystemBuilder_ == null) {
ensureSpaceSystemIsMutable();
spaceSystem_.remove(index);
onChanged();
} else {
spaceSystemBuilder_.remove(index);
}
return this;
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder getSpaceSystemBuilder(
int index) {
return getSpaceSystemFieldBuilder().getBuilder(index);
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder getSpaceSystemOrBuilder(
int index) {
if (spaceSystemBuilder_ == null) {
return spaceSystem_.get(index); } else {
return spaceSystemBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List extends org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>
getSpaceSystemOrBuilderList() {
if (spaceSystemBuilder_ != null) {
return spaceSystemBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(spaceSystem_);
}
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder addSpaceSystemBuilder() {
return getSpaceSystemFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.SpaceSystemInfo.getDefaultInstance());
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder addSpaceSystemBuilder(
int index) {
return getSpaceSystemFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.SpaceSystemInfo.getDefaultInstance());
}
/**
*
* Deprecated, use ``spaceSystems`` instead
*
*
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystem = 4 [deprecated = true];
*/
@java.lang.Deprecated 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 java.util.List spaceSystems_ =
java.util.Collections.emptyList();
private void ensureSpaceSystemsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
spaceSystems_ = new java.util.ArrayList(spaceSystems_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.SpaceSystemInfo, org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder, org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder> spaceSystemsBuilder_;
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public java.util.List getSpaceSystemsList() {
if (spaceSystemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(spaceSystems_);
} else {
return spaceSystemsBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public int getSpaceSystemsCount() {
if (spaceSystemsBuilder_ == null) {
return spaceSystems_.size();
} else {
return spaceSystemsBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public org.yamcs.protobuf.Mdb.SpaceSystemInfo getSpaceSystems(int index) {
if (spaceSystemsBuilder_ == null) {
return spaceSystems_.get(index);
} else {
return spaceSystemsBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public Builder setSpaceSystems(
int index, org.yamcs.protobuf.Mdb.SpaceSystemInfo value) {
if (spaceSystemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpaceSystemsIsMutable();
spaceSystems_.set(index, value);
onChanged();
} else {
spaceSystemsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public Builder setSpaceSystems(
int index, org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder builderForValue) {
if (spaceSystemsBuilder_ == null) {
ensureSpaceSystemsIsMutable();
spaceSystems_.set(index, builderForValue.build());
onChanged();
} else {
spaceSystemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public Builder addSpaceSystems(org.yamcs.protobuf.Mdb.SpaceSystemInfo value) {
if (spaceSystemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpaceSystemsIsMutable();
spaceSystems_.add(value);
onChanged();
} else {
spaceSystemsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public Builder addSpaceSystems(
int index, org.yamcs.protobuf.Mdb.SpaceSystemInfo value) {
if (spaceSystemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpaceSystemsIsMutable();
spaceSystems_.add(index, value);
onChanged();
} else {
spaceSystemsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public Builder addSpaceSystems(
org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder builderForValue) {
if (spaceSystemsBuilder_ == null) {
ensureSpaceSystemsIsMutable();
spaceSystems_.add(builderForValue.build());
onChanged();
} else {
spaceSystemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public Builder addSpaceSystems(
int index, org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder builderForValue) {
if (spaceSystemsBuilder_ == null) {
ensureSpaceSystemsIsMutable();
spaceSystems_.add(index, builderForValue.build());
onChanged();
} else {
spaceSystemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public Builder addAllSpaceSystems(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.SpaceSystemInfo> values) {
if (spaceSystemsBuilder_ == null) {
ensureSpaceSystemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, spaceSystems_);
onChanged();
} else {
spaceSystemsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public Builder clearSpaceSystems() {
if (spaceSystemsBuilder_ == null) {
spaceSystems_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
spaceSystemsBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public Builder removeSpaceSystems(int index) {
if (spaceSystemsBuilder_ == null) {
ensureSpaceSystemsIsMutable();
spaceSystems_.remove(index);
onChanged();
} else {
spaceSystemsBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder getSpaceSystemsBuilder(
int index) {
return getSpaceSystemsFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder getSpaceSystemsOrBuilder(
int index) {
if (spaceSystemsBuilder_ == null) {
return spaceSystems_.get(index); } else {
return spaceSystemsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>
getSpaceSystemsOrBuilderList() {
if (spaceSystemsBuilder_ != null) {
return spaceSystemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(spaceSystems_);
}
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder addSpaceSystemsBuilder() {
return getSpaceSystemsFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.SpaceSystemInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder addSpaceSystemsBuilder(
int index) {
return getSpaceSystemsFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.SpaceSystemInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.SpaceSystemInfo spaceSystems = 11;
*/
public java.util.List
getSpaceSystemsBuilderList() {
return getSpaceSystemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.SpaceSystemInfo, org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder, org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>
getSpaceSystemsFieldBuilder() {
if (spaceSystemsBuilder_ == null) {
spaceSystemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.SpaceSystemInfo, org.yamcs.protobuf.Mdb.SpaceSystemInfo.Builder, org.yamcs.protobuf.Mdb.SpaceSystemInfoOrBuilder>(
spaceSystems_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
spaceSystems_ = null;
}
return spaceSystemsBuilder_;
}
private int parameterCount_ ;
/**
* optional int32 parameterCount = 6;
* @return Whether the parameterCount field is set.
*/
@java.lang.Override
public boolean hasParameterCount() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 parameterCount = 6;
* @return The parameterCount.
*/
@java.lang.Override
public int getParameterCount() {
return parameterCount_;
}
/**
* optional int32 parameterCount = 6;
* @param value The parameterCount to set.
* @return This builder for chaining.
*/
public Builder setParameterCount(int value) {
bitField0_ |= 0x00000020;
parameterCount_ = value;
onChanged();
return this;
}
/**
* optional int32 parameterCount = 6;
* @return This builder for chaining.
*/
public Builder clearParameterCount() {
bitField0_ = (bitField0_ & ~0x00000020);
parameterCount_ = 0;
onChanged();
return this;
}
private int containerCount_ ;
/**
* optional int32 containerCount = 7;
* @return Whether the containerCount field is set.
*/
@java.lang.Override
public boolean hasContainerCount() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional int32 containerCount = 7;
* @return The containerCount.
*/
@java.lang.Override
public int getContainerCount() {
return containerCount_;
}
/**
* optional int32 containerCount = 7;
* @param value The containerCount to set.
* @return This builder for chaining.
*/
public Builder setContainerCount(int value) {
bitField0_ |= 0x00000040;
containerCount_ = value;
onChanged();
return this;
}
/**
* optional int32 containerCount = 7;
* @return This builder for chaining.
*/
public Builder clearContainerCount() {
bitField0_ = (bitField0_ & ~0x00000040);
containerCount_ = 0;
onChanged();
return this;
}
private int commandCount_ ;
/**
* optional int32 commandCount = 8;
* @return Whether the commandCount field is set.
*/
@java.lang.Override
public boolean hasCommandCount() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional int32 commandCount = 8;
* @return The commandCount.
*/
@java.lang.Override
public int getCommandCount() {
return commandCount_;
}
/**
* optional int32 commandCount = 8;
* @param value The commandCount to set.
* @return This builder for chaining.
*/
public Builder setCommandCount(int value) {
bitField0_ |= 0x00000080;
commandCount_ = value;
onChanged();
return this;
}
/**
* optional int32 commandCount = 8;
* @return This builder for chaining.
*/
public Builder clearCommandCount() {
bitField0_ = (bitField0_ & ~0x00000080);
commandCount_ = 0;
onChanged();
return this;
}
private int algorithmCount_ ;
/**
* optional int32 algorithmCount = 9;
* @return Whether the algorithmCount field is set.
*/
@java.lang.Override
public boolean hasAlgorithmCount() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional int32 algorithmCount = 9;
* @return The algorithmCount.
*/
@java.lang.Override
public int getAlgorithmCount() {
return algorithmCount_;
}
/**
* optional int32 algorithmCount = 9;
* @param value The algorithmCount to set.
* @return This builder for chaining.
*/
public Builder setAlgorithmCount(int value) {
bitField0_ |= 0x00000100;
algorithmCount_ = value;
onChanged();
return this;
}
/**
* optional int32 algorithmCount = 9;
* @return This builder for chaining.
*/
public Builder clearAlgorithmCount() {
bitField0_ = (bitField0_ & ~0x00000100);
algorithmCount_ = 0;
onChanged();
return this;
}
private int parameterTypeCount_ ;
/**
* optional int32 parameterTypeCount = 10;
* @return Whether the parameterTypeCount field is set.
*/
@java.lang.Override
public boolean hasParameterTypeCount() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional int32 parameterTypeCount = 10;
* @return The parameterTypeCount.
*/
@java.lang.Override
public int getParameterTypeCount() {
return parameterTypeCount_;
}
/**
* optional int32 parameterTypeCount = 10;
* @param value The parameterTypeCount to set.
* @return This builder for chaining.
*/
public Builder setParameterTypeCount(int value) {
bitField0_ |= 0x00000200;
parameterTypeCount_ = value;
onChanged();
return this;
}
/**
* optional int32 parameterTypeCount = 10;
* @return This builder for chaining.
*/
public Builder clearParameterTypeCount() {
bitField0_ = (bitField0_ & ~0x00000200);
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;
* @return Whether the version field is set.
*/
boolean hasVersion();
/**
* optional string version = 1;
* @return The version.
*/
java.lang.String getVersion();
/**
* optional string version = 1;
* @return The bytes for version.
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* optional string date = 2;
* @return Whether the date field is set.
*/
boolean hasDate();
/**
* optional string date = 2;
* @return The date.
*/
java.lang.String getDate();
/**
* optional string date = 2;
* @return The bytes for date.
*/
com.google.protobuf.ByteString
getDateBytes();
/**
* optional string message = 3;
* @return Whether the message field is set.
*/
boolean hasMessage();
/**
* optional string message = 3;
* @return The message.
*/
java.lang.String getMessage();
/**
* optional string message = 3;
* @return The bytes for message.
*/
com.google.protobuf.ByteString
getMessageBytes();
/**
* optional string author = 4;
* @return Whether the author field is set.
*/
boolean hasAuthor();
/**
* optional string author = 4;
* @return The author.
*/
java.lang.String getAuthor();
/**
* optional string author = 4;
* @return The bytes for author.
*/
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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HistoryInfo();
}
@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;
* @return Whether the version field is set.
*/
@java.lang.Override
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string version = 1;
* @return The version.
*/
@java.lang.Override
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;
* @return The bytes for version.
*/
@java.lang.Override
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;
* @return Whether the date field is set.
*/
@java.lang.Override
public boolean hasDate() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string date = 2;
* @return The date.
*/
@java.lang.Override
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;
* @return The bytes for date.
*/
@java.lang.Override
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;
* @return Whether the message field is set.
*/
@java.lang.Override
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string message = 3;
* @return The message.
*/
@java.lang.Override
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;
* @return The bytes for message.
*/
@java.lang.Override
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;
* @return Whether the author field is set.
*/
@java.lang.Override
public boolean hasAuthor() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string author = 4;
* @return The author.
*/
@java.lang.Override
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;
* @return The bytes for author.
*/
@java.lang.Override
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;
* @return Whether the version field is set.
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string version = 1;
* @return The version.
*/
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;
* @return The bytes for version.
*/
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;
* @param value The version to set.
* @return This builder for chaining.
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
version_ = value;
onChanged();
return this;
}
/**
* optional string version = 1;
* @return This builder for chaining.
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* optional string version = 1;
* @param value The bytes for version to set.
* @return This builder for chaining.
*/
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;
* @return Whether the date field is set.
*/
public boolean hasDate() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string date = 2;
* @return The date.
*/
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;
* @return The bytes for date.
*/
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;
* @param value The date to set.
* @return This builder for chaining.
*/
public Builder setDate(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
date_ = value;
onChanged();
return this;
}
/**
* optional string date = 2;
* @return This builder for chaining.
*/
public Builder clearDate() {
bitField0_ = (bitField0_ & ~0x00000002);
date_ = getDefaultInstance().getDate();
onChanged();
return this;
}
/**
* optional string date = 2;
* @param value The bytes for date to set.
* @return This builder for chaining.
*/
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;
* @return Whether the message field is set.
*/
public boolean hasMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string message = 3;
* @return The message.
*/
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;
* @return The bytes for message.
*/
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;
* @param value The message to set.
* @return This builder for chaining.
*/
public Builder setMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
message_ = value;
onChanged();
return this;
}
/**
* optional string message = 3;
* @return This builder for chaining.
*/
public Builder clearMessage() {
bitField0_ = (bitField0_ & ~0x00000004);
message_ = getDefaultInstance().getMessage();
onChanged();
return this;
}
/**
* optional string message = 3;
* @param value The bytes for message to set.
* @return This builder for chaining.
*/
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;
* @return Whether the author field is set.
*/
public boolean hasAuthor() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string author = 4;
* @return The author.
*/
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;
* @return The bytes for author.
*/
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;
* @param value The author to set.
* @return This builder for chaining.
*/
public Builder setAuthor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
author_ = value;
onChanged();
return this;
}
/**
* optional string author = 4;
* @return This builder for chaining.
*/
public Builder clearAuthor() {
bitField0_ = (bitField0_ & ~0x00000008);
author_ = getDefaultInstance().getAuthor();
onChanged();
return this;
}
/**
* optional string author = 4;
* @param value The bytes for author to set.
* @return This builder for chaining.
*/
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;
* @return Whether the unit field is set.
*/
boolean hasUnit();
/**
* optional string unit = 1;
* @return The unit.
*/
java.lang.String getUnit();
/**
* optional string unit = 1;
* @return The bytes for unit.
*/
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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UnitInfo();
}
@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;
* @return Whether the unit field is set.
*/
@java.lang.Override
public boolean hasUnit() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string unit = 1;
* @return The unit.
*/
@java.lang.Override
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;
* @return The bytes for unit.
*/
@java.lang.Override
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;
* @return Whether the unit field is set.
*/
public boolean hasUnit() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string unit = 1;
* @return The unit.
*/
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;
* @return The bytes for unit.
*/
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;
* @param value The unit to set.
* @return This builder for chaining.
*/
public Builder setUnit(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
unit_ = value;
onChanged();
return this;
}
/**
* optional string unit = 1;
* @return This builder for chaining.
*/
public Builder clearUnit() {
bitField0_ = (bitField0_ & ~0x00000001);
unit_ = getDefaultInstance().getUnit();
onChanged();
return this;
}
/**
* optional string unit = 1;
* @param value The bytes for unit to set.
* @return This builder for chaining.
*/
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;
* @return Whether the level field is set.
*/
boolean hasLevel();
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
* @return The level.
*/
org.yamcs.protobuf.Mdb.AlarmLevelType getLevel();
/**
* optional double minInclusive = 2;
* @return Whether the minInclusive field is set.
*/
boolean hasMinInclusive();
/**
* optional double minInclusive = 2;
* @return The minInclusive.
*/
double getMinInclusive();
/**
* optional double maxInclusive = 3;
* @return Whether the maxInclusive field is set.
*/
boolean hasMaxInclusive();
/**
* optional double maxInclusive = 3;
* @return The maxInclusive.
*/
double getMaxInclusive();
/**
* optional double minExclusive = 4;
* @return Whether the minExclusive field is set.
*/
boolean hasMinExclusive();
/**
* optional double minExclusive = 4;
* @return The minExclusive.
*/
double getMinExclusive();
/**
* optional double maxExclusive = 5;
* @return Whether the maxExclusive field is set.
*/
boolean hasMaxExclusive();
/**
* optional double maxExclusive = 5;
* @return The maxExclusive.
*/
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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AlarmRange();
}
@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;
* @return Whether the level field is set.
*/
@java.lang.Override public boolean hasLevel() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
* @return The level.
*/
@java.lang.Override 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;
* @return Whether the minInclusive field is set.
*/
@java.lang.Override
public boolean hasMinInclusive() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double minInclusive = 2;
* @return The minInclusive.
*/
@java.lang.Override
public double getMinInclusive() {
return minInclusive_;
}
public static final int MAXINCLUSIVE_FIELD_NUMBER = 3;
private double maxInclusive_;
/**
* optional double maxInclusive = 3;
* @return Whether the maxInclusive field is set.
*/
@java.lang.Override
public boolean hasMaxInclusive() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double maxInclusive = 3;
* @return The maxInclusive.
*/
@java.lang.Override
public double getMaxInclusive() {
return maxInclusive_;
}
public static final int MINEXCLUSIVE_FIELD_NUMBER = 4;
private double minExclusive_;
/**
* optional double minExclusive = 4;
* @return Whether the minExclusive field is set.
*/
@java.lang.Override
public boolean hasMinExclusive() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional double minExclusive = 4;
* @return The minExclusive.
*/
@java.lang.Override
public double getMinExclusive() {
return minExclusive_;
}
public static final int MAXEXCLUSIVE_FIELD_NUMBER = 5;
private double maxExclusive_;
/**
* optional double maxExclusive = 5;
* @return Whether the maxExclusive field is set.
*/
@java.lang.Override
public boolean hasMaxExclusive() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional double maxExclusive = 5;
* @return The maxExclusive.
*/
@java.lang.Override
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;
* @return Whether the level field is set.
*/
@java.lang.Override public boolean hasLevel() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
* @return The level.
*/
@java.lang.Override
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;
* @param value The level to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearLevel() {
bitField0_ = (bitField0_ & ~0x00000001);
level_ = 0;
onChanged();
return this;
}
private double minInclusive_ ;
/**
* optional double minInclusive = 2;
* @return Whether the minInclusive field is set.
*/
@java.lang.Override
public boolean hasMinInclusive() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double minInclusive = 2;
* @return The minInclusive.
*/
@java.lang.Override
public double getMinInclusive() {
return minInclusive_;
}
/**
* optional double minInclusive = 2;
* @param value The minInclusive to set.
* @return This builder for chaining.
*/
public Builder setMinInclusive(double value) {
bitField0_ |= 0x00000002;
minInclusive_ = value;
onChanged();
return this;
}
/**
* optional double minInclusive = 2;
* @return This builder for chaining.
*/
public Builder clearMinInclusive() {
bitField0_ = (bitField0_ & ~0x00000002);
minInclusive_ = 0D;
onChanged();
return this;
}
private double maxInclusive_ ;
/**
* optional double maxInclusive = 3;
* @return Whether the maxInclusive field is set.
*/
@java.lang.Override
public boolean hasMaxInclusive() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional double maxInclusive = 3;
* @return The maxInclusive.
*/
@java.lang.Override
public double getMaxInclusive() {
return maxInclusive_;
}
/**
* optional double maxInclusive = 3;
* @param value The maxInclusive to set.
* @return This builder for chaining.
*/
public Builder setMaxInclusive(double value) {
bitField0_ |= 0x00000004;
maxInclusive_ = value;
onChanged();
return this;
}
/**
* optional double maxInclusive = 3;
* @return This builder for chaining.
*/
public Builder clearMaxInclusive() {
bitField0_ = (bitField0_ & ~0x00000004);
maxInclusive_ = 0D;
onChanged();
return this;
}
private double minExclusive_ ;
/**
* optional double minExclusive = 4;
* @return Whether the minExclusive field is set.
*/
@java.lang.Override
public boolean hasMinExclusive() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional double minExclusive = 4;
* @return The minExclusive.
*/
@java.lang.Override
public double getMinExclusive() {
return minExclusive_;
}
/**
* optional double minExclusive = 4;
* @param value The minExclusive to set.
* @return This builder for chaining.
*/
public Builder setMinExclusive(double value) {
bitField0_ |= 0x00000008;
minExclusive_ = value;
onChanged();
return this;
}
/**
* optional double minExclusive = 4;
* @return This builder for chaining.
*/
public Builder clearMinExclusive() {
bitField0_ = (bitField0_ & ~0x00000008);
minExclusive_ = 0D;
onChanged();
return this;
}
private double maxExclusive_ ;
/**
* optional double maxExclusive = 5;
* @return Whether the maxExclusive field is set.
*/
@java.lang.Override
public boolean hasMaxExclusive() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional double maxExclusive = 5;
* @return The maxExclusive.
*/
@java.lang.Override
public double getMaxExclusive() {
return maxExclusive_;
}
/**
* optional double maxExclusive = 5;
* @param value The maxExclusive to set.
* @return This builder for chaining.
*/
public Builder setMaxExclusive(double value) {
bitField0_ |= 0x00000010;
maxExclusive_ = value;
onChanged();
return this;
}
/**
* optional double maxExclusive = 5;
* @return This builder for chaining.
*/
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;
* @return Whether the level field is set.
*/
boolean hasLevel();
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
* @return The level.
*/
org.yamcs.protobuf.Mdb.AlarmLevelType getLevel();
/**
* optional string label = 3;
* @return Whether the label field is set.
*/
boolean hasLabel();
/**
* optional string label = 3;
* @return The label.
*/
java.lang.String getLabel();
/**
* optional string label = 3;
* @return The bytes for label.
*/
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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EnumerationAlarm();
}
@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;
* @return Whether the level field is set.
*/
@java.lang.Override public boolean hasLevel() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
* @return The level.
*/
@java.lang.Override 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 string label = 3;
* @return Whether the label field is set.
*/
@java.lang.Override
public boolean hasLabel() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string label = 3;
* @return The label.
*/
@java.lang.Override
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 = 3;
* @return The bytes for label.
*/
@java.lang.Override
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;
* @return Whether the level field is set.
*/
@java.lang.Override public boolean hasLevel() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmLevelType level = 1;
* @return The level.
*/
@java.lang.Override
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;
* @param value The level to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearLevel() {
bitField0_ = (bitField0_ & ~0x00000001);
level_ = 0;
onChanged();
return this;
}
private java.lang.Object label_ = "";
/**
* optional string label = 3;
* @return Whether the label field is set.
*/
public boolean hasLabel() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string label = 3;
* @return The label.
*/
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 = 3;
* @return The bytes for label.
*/
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 = 3;
* @param value The label to set.
* @return This builder for chaining.
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
label_ = value;
onChanged();
return this;
}
/**
* optional string label = 3;
* @return This builder for chaining.
*/
public Builder clearLabel() {
bitField0_ = (bitField0_ & ~0x00000002);
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
* optional string label = 3;
* @param value The bytes for label to set.
* @return This builder for chaining.
*/
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;
* @return Whether the minViolations field is set.
*/
boolean hasMinViolations();
/**
* optional int32 minViolations = 1;
* @return The minViolations.
*/
int getMinViolations();
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated java.util.List
getStaticAlarmRangeList();
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated org.yamcs.protobuf.Mdb.AlarmRange getStaticAlarmRange(int index);
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated int getStaticAlarmRangeCount();
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated java.util.List extends org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>
getStaticAlarmRangeOrBuilderList();
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder getStaticAlarmRangeOrBuilder(
int index);
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
java.util.List
getStaticAlarmRangesList();
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
org.yamcs.protobuf.Mdb.AlarmRange getStaticAlarmRanges(int index);
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
int getStaticAlarmRangesCount();
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
java.util.List extends org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>
getStaticAlarmRangesOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder getStaticAlarmRangesOrBuilder(
int index);
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated java.util.List
getEnumerationAlarmList();
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated org.yamcs.protobuf.Mdb.EnumerationAlarm getEnumerationAlarm(int index);
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated int getEnumerationAlarmCount();
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated java.util.List extends org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>
getEnumerationAlarmOrBuilderList();
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder getEnumerationAlarmOrBuilder(
int index);
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
java.util.List
getEnumerationAlarmsList();
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
org.yamcs.protobuf.Mdb.EnumerationAlarm getEnumerationAlarms(int index);
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
int getEnumerationAlarmsCount();
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
java.util.List extends org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>
getEnumerationAlarmsOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder getEnumerationAlarmsOrBuilder(
int index);
/**
*
* only used for enumeration alarms - defines the alarm state if none of the condition above applies
* as per XTCE description:
* defaults to "normal", which is almost always the case.
* Setting it to another alarm state permits a form of "inverted logic" where the alarm list can specify the normal states instead of the alarm states.
*
*
* optional .yamcs.protobuf.mdb.AlarmLevelType defaultLevel = 6;
* @return Whether the defaultLevel field is set.
*/
boolean hasDefaultLevel();
/**
*
* only used for enumeration alarms - defines the alarm state if none of the condition above applies
* as per XTCE description:
* defaults to "normal", which is almost always the case.
* Setting it to another alarm state permits a form of "inverted logic" where the alarm list can specify the normal states instead of the alarm states.
*
*
* optional .yamcs.protobuf.mdb.AlarmLevelType defaultLevel = 6;
* @return The defaultLevel.
*/
org.yamcs.protobuf.Mdb.AlarmLevelType getDefaultLevel();
}
/**
* 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();
staticAlarmRanges_ = java.util.Collections.emptyList();
enumerationAlarm_ = java.util.Collections.emptyList();
enumerationAlarms_ = java.util.Collections.emptyList();
defaultLevel_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AlarmInfo();
}
@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_ & 0x00000008) != 0)) {
enumerationAlarm_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
enumerationAlarm_.add(
input.readMessage(org.yamcs.protobuf.Mdb.EnumerationAlarm.PARSER, extensionRegistry));
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
staticAlarmRanges_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
staticAlarmRanges_.add(
input.readMessage(org.yamcs.protobuf.Mdb.AlarmRange.PARSER, extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
enumerationAlarms_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
enumerationAlarms_.add(
input.readMessage(org.yamcs.protobuf.Mdb.EnumerationAlarm.PARSER, extensionRegistry));
break;
}
case 48: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.AlarmLevelType value = org.yamcs.protobuf.Mdb.AlarmLevelType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(6, rawValue);
} else {
bitField0_ |= 0x00000002;
defaultLevel_ = 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 {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
staticAlarmRange_ = java.util.Collections.unmodifiableList(staticAlarmRange_);
}
if (((mutable_bitField0_ & 0x00000008) != 0)) {
enumerationAlarm_ = java.util.Collections.unmodifiableList(enumerationAlarm_);
}
if (((mutable_bitField0_ & 0x00000004) != 0)) {
staticAlarmRanges_ = java.util.Collections.unmodifiableList(staticAlarmRanges_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
enumerationAlarms_ = java.util.Collections.unmodifiableList(enumerationAlarms_);
}
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;
* @return Whether the minViolations field is set.
*/
@java.lang.Override
public boolean hasMinViolations() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 minViolations = 1;
* @return The minViolations.
*/
@java.lang.Override
public int getMinViolations() {
return minViolations_;
}
public static final int STATICALARMRANGE_FIELD_NUMBER = 2;
private java.util.List staticAlarmRange_;
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List getStaticAlarmRangeList() {
return staticAlarmRange_;
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List extends org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>
getStaticAlarmRangeOrBuilderList() {
return staticAlarmRange_;
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public int getStaticAlarmRangeCount() {
return staticAlarmRange_.size();
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.AlarmRange getStaticAlarmRange(int index) {
return staticAlarmRange_.get(index);
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder getStaticAlarmRangeOrBuilder(
int index) {
return staticAlarmRange_.get(index);
}
public static final int STATICALARMRANGES_FIELD_NUMBER = 4;
private java.util.List staticAlarmRanges_;
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
@java.lang.Override
public java.util.List getStaticAlarmRangesList() {
return staticAlarmRanges_;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>
getStaticAlarmRangesOrBuilderList() {
return staticAlarmRanges_;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
@java.lang.Override
public int getStaticAlarmRangesCount() {
return staticAlarmRanges_.size();
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.AlarmRange getStaticAlarmRanges(int index) {
return staticAlarmRanges_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder getStaticAlarmRangesOrBuilder(
int index) {
return staticAlarmRanges_.get(index);
}
public static final int ENUMERATIONALARM_FIELD_NUMBER = 3;
private java.util.List enumerationAlarm_;
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List getEnumerationAlarmList() {
return enumerationAlarm_;
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List extends org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>
getEnumerationAlarmOrBuilderList() {
return enumerationAlarm_;
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public int getEnumerationAlarmCount() {
return enumerationAlarm_.size();
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.EnumerationAlarm getEnumerationAlarm(int index) {
return enumerationAlarm_.get(index);
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder getEnumerationAlarmOrBuilder(
int index) {
return enumerationAlarm_.get(index);
}
public static final int ENUMERATIONALARMS_FIELD_NUMBER = 5;
private java.util.List enumerationAlarms_;
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
@java.lang.Override
public java.util.List getEnumerationAlarmsList() {
return enumerationAlarms_;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>
getEnumerationAlarmsOrBuilderList() {
return enumerationAlarms_;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
@java.lang.Override
public int getEnumerationAlarmsCount() {
return enumerationAlarms_.size();
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.EnumerationAlarm getEnumerationAlarms(int index) {
return enumerationAlarms_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder getEnumerationAlarmsOrBuilder(
int index) {
return enumerationAlarms_.get(index);
}
public static final int DEFAULTLEVEL_FIELD_NUMBER = 6;
private int defaultLevel_;
/**
*
* only used for enumeration alarms - defines the alarm state if none of the condition above applies
* as per XTCE description:
* defaults to "normal", which is almost always the case.
* Setting it to another alarm state permits a form of "inverted logic" where the alarm list can specify the normal states instead of the alarm states.
*
*
* optional .yamcs.protobuf.mdb.AlarmLevelType defaultLevel = 6;
* @return Whether the defaultLevel field is set.
*/
@java.lang.Override public boolean hasDefaultLevel() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* only used for enumeration alarms - defines the alarm state if none of the condition above applies
* as per XTCE description:
* defaults to "normal", which is almost always the case.
* Setting it to another alarm state permits a form of "inverted logic" where the alarm list can specify the normal states instead of the alarm states.
*
*
* optional .yamcs.protobuf.mdb.AlarmLevelType defaultLevel = 6;
* @return The defaultLevel.
*/
@java.lang.Override public org.yamcs.protobuf.Mdb.AlarmLevelType getDefaultLevel() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.AlarmLevelType result = org.yamcs.protobuf.Mdb.AlarmLevelType.valueOf(defaultLevel_);
return result == null ? org.yamcs.protobuf.Mdb.AlarmLevelType.NORMAL : 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.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));
}
for (int i = 0; i < staticAlarmRanges_.size(); i++) {
output.writeMessage(4, staticAlarmRanges_.get(i));
}
for (int i = 0; i < enumerationAlarms_.size(); i++) {
output.writeMessage(5, enumerationAlarms_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(6, defaultLevel_);
}
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));
}
for (int i = 0; i < staticAlarmRanges_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, staticAlarmRanges_.get(i));
}
for (int i = 0; i < enumerationAlarms_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, enumerationAlarms_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(6, defaultLevel_);
}
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 (!getStaticAlarmRangesList()
.equals(other.getStaticAlarmRangesList())) return false;
if (!getEnumerationAlarmList()
.equals(other.getEnumerationAlarmList())) return false;
if (!getEnumerationAlarmsList()
.equals(other.getEnumerationAlarmsList())) return false;
if (hasDefaultLevel() != other.hasDefaultLevel()) return false;
if (hasDefaultLevel()) {
if (defaultLevel_ != other.defaultLevel_) 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 (getStaticAlarmRangesCount() > 0) {
hash = (37 * hash) + STATICALARMRANGES_FIELD_NUMBER;
hash = (53 * hash) + getStaticAlarmRangesList().hashCode();
}
if (getEnumerationAlarmCount() > 0) {
hash = (37 * hash) + ENUMERATIONALARM_FIELD_NUMBER;
hash = (53 * hash) + getEnumerationAlarmList().hashCode();
}
if (getEnumerationAlarmsCount() > 0) {
hash = (37 * hash) + ENUMERATIONALARMS_FIELD_NUMBER;
hash = (53 * hash) + getEnumerationAlarmsList().hashCode();
}
if (hasDefaultLevel()) {
hash = (37 * hash) + DEFAULTLEVEL_FIELD_NUMBER;
hash = (53 * hash) + defaultLevel_;
}
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();
getStaticAlarmRangesFieldBuilder();
getEnumerationAlarmFieldBuilder();
getEnumerationAlarmsFieldBuilder();
}
}
@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 (staticAlarmRangesBuilder_ == null) {
staticAlarmRanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
staticAlarmRangesBuilder_.clear();
}
if (enumerationAlarmBuilder_ == null) {
enumerationAlarm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
enumerationAlarmBuilder_.clear();
}
if (enumerationAlarmsBuilder_ == null) {
enumerationAlarms_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
enumerationAlarmsBuilder_.clear();
}
defaultLevel_ = 0;
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_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 (staticAlarmRangesBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
staticAlarmRanges_ = java.util.Collections.unmodifiableList(staticAlarmRanges_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.staticAlarmRanges_ = staticAlarmRanges_;
} else {
result.staticAlarmRanges_ = staticAlarmRangesBuilder_.build();
}
if (enumerationAlarmBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
enumerationAlarm_ = java.util.Collections.unmodifiableList(enumerationAlarm_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.enumerationAlarm_ = enumerationAlarm_;
} else {
result.enumerationAlarm_ = enumerationAlarmBuilder_.build();
}
if (enumerationAlarmsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
enumerationAlarms_ = java.util.Collections.unmodifiableList(enumerationAlarms_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.enumerationAlarms_ = enumerationAlarms_;
} else {
result.enumerationAlarms_ = enumerationAlarmsBuilder_.build();
}
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.defaultLevel_ = defaultLevel_;
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 (staticAlarmRangesBuilder_ == null) {
if (!other.staticAlarmRanges_.isEmpty()) {
if (staticAlarmRanges_.isEmpty()) {
staticAlarmRanges_ = other.staticAlarmRanges_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureStaticAlarmRangesIsMutable();
staticAlarmRanges_.addAll(other.staticAlarmRanges_);
}
onChanged();
}
} else {
if (!other.staticAlarmRanges_.isEmpty()) {
if (staticAlarmRangesBuilder_.isEmpty()) {
staticAlarmRangesBuilder_.dispose();
staticAlarmRangesBuilder_ = null;
staticAlarmRanges_ = other.staticAlarmRanges_;
bitField0_ = (bitField0_ & ~0x00000004);
staticAlarmRangesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStaticAlarmRangesFieldBuilder() : null;
} else {
staticAlarmRangesBuilder_.addAllMessages(other.staticAlarmRanges_);
}
}
}
if (enumerationAlarmBuilder_ == null) {
if (!other.enumerationAlarm_.isEmpty()) {
if (enumerationAlarm_.isEmpty()) {
enumerationAlarm_ = other.enumerationAlarm_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureEnumerationAlarmIsMutable();
enumerationAlarm_.addAll(other.enumerationAlarm_);
}
onChanged();
}
} else {
if (!other.enumerationAlarm_.isEmpty()) {
if (enumerationAlarmBuilder_.isEmpty()) {
enumerationAlarmBuilder_.dispose();
enumerationAlarmBuilder_ = null;
enumerationAlarm_ = other.enumerationAlarm_;
bitField0_ = (bitField0_ & ~0x00000008);
enumerationAlarmBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEnumerationAlarmFieldBuilder() : null;
} else {
enumerationAlarmBuilder_.addAllMessages(other.enumerationAlarm_);
}
}
}
if (enumerationAlarmsBuilder_ == null) {
if (!other.enumerationAlarms_.isEmpty()) {
if (enumerationAlarms_.isEmpty()) {
enumerationAlarms_ = other.enumerationAlarms_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureEnumerationAlarmsIsMutable();
enumerationAlarms_.addAll(other.enumerationAlarms_);
}
onChanged();
}
} else {
if (!other.enumerationAlarms_.isEmpty()) {
if (enumerationAlarmsBuilder_.isEmpty()) {
enumerationAlarmsBuilder_.dispose();
enumerationAlarmsBuilder_ = null;
enumerationAlarms_ = other.enumerationAlarms_;
bitField0_ = (bitField0_ & ~0x00000010);
enumerationAlarmsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEnumerationAlarmsFieldBuilder() : null;
} else {
enumerationAlarmsBuilder_.addAllMessages(other.enumerationAlarms_);
}
}
}
if (other.hasDefaultLevel()) {
setDefaultLevel(other.getDefaultLevel());
}
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;
* @return Whether the minViolations field is set.
*/
@java.lang.Override
public boolean hasMinViolations() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int32 minViolations = 1;
* @return The minViolations.
*/
@java.lang.Override
public int getMinViolations() {
return minViolations_;
}
/**
* optional int32 minViolations = 1;
* @param value The minViolations to set.
* @return This builder for chaining.
*/
public Builder setMinViolations(int value) {
bitField0_ |= 0x00000001;
minViolations_ = value;
onChanged();
return this;
}
/**
* optional int32 minViolations = 1;
* @return This builder for chaining.
*/
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_;
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List getStaticAlarmRangeList() {
if (staticAlarmRangeBuilder_ == null) {
return java.util.Collections.unmodifiableList(staticAlarmRange_);
} else {
return staticAlarmRangeBuilder_.getMessageList();
}
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated public int getStaticAlarmRangeCount() {
if (staticAlarmRangeBuilder_ == null) {
return staticAlarmRange_.size();
} else {
return staticAlarmRangeBuilder_.getCount();
}
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.AlarmRange getStaticAlarmRange(int index) {
if (staticAlarmRangeBuilder_ == null) {
return staticAlarmRange_.get(index);
} else {
return staticAlarmRangeBuilder_.getMessage(index);
}
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearStaticAlarmRange() {
if (staticAlarmRangeBuilder_ == null) {
staticAlarmRange_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
staticAlarmRangeBuilder_.clear();
}
return this;
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated public Builder removeStaticAlarmRange(int index) {
if (staticAlarmRangeBuilder_ == null) {
ensureStaticAlarmRangeIsMutable();
staticAlarmRange_.remove(index);
onChanged();
} else {
staticAlarmRangeBuilder_.remove(index);
}
return this;
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.AlarmRange.Builder getStaticAlarmRangeBuilder(
int index) {
return getStaticAlarmRangeFieldBuilder().getBuilder(index);
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder getStaticAlarmRangeOrBuilder(
int index) {
if (staticAlarmRangeBuilder_ == null) {
return staticAlarmRange_.get(index); } else {
return staticAlarmRangeBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List extends org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>
getStaticAlarmRangeOrBuilderList() {
if (staticAlarmRangeBuilder_ != null) {
return staticAlarmRangeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(staticAlarmRange_);
}
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.AlarmRange.Builder addStaticAlarmRangeBuilder() {
return getStaticAlarmRangeFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.AlarmRange.getDefaultInstance());
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.AlarmRange.Builder addStaticAlarmRangeBuilder(
int index) {
return getStaticAlarmRangeFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.AlarmRange.getDefaultInstance());
}
/**
*
* Deprecated, use ``staticAlarmRanges`` instead
*
*
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRange = 2 [deprecated = true];
*/
@java.lang.Deprecated 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 staticAlarmRanges_ =
java.util.Collections.emptyList();
private void ensureStaticAlarmRangesIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
staticAlarmRanges_ = new java.util.ArrayList(staticAlarmRanges_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlarmRange, org.yamcs.protobuf.Mdb.AlarmRange.Builder, org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder> staticAlarmRangesBuilder_;
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public java.util.List getStaticAlarmRangesList() {
if (staticAlarmRangesBuilder_ == null) {
return java.util.Collections.unmodifiableList(staticAlarmRanges_);
} else {
return staticAlarmRangesBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public int getStaticAlarmRangesCount() {
if (staticAlarmRangesBuilder_ == null) {
return staticAlarmRanges_.size();
} else {
return staticAlarmRangesBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public org.yamcs.protobuf.Mdb.AlarmRange getStaticAlarmRanges(int index) {
if (staticAlarmRangesBuilder_ == null) {
return staticAlarmRanges_.get(index);
} else {
return staticAlarmRangesBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public Builder setStaticAlarmRanges(
int index, org.yamcs.protobuf.Mdb.AlarmRange value) {
if (staticAlarmRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStaticAlarmRangesIsMutable();
staticAlarmRanges_.set(index, value);
onChanged();
} else {
staticAlarmRangesBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public Builder setStaticAlarmRanges(
int index, org.yamcs.protobuf.Mdb.AlarmRange.Builder builderForValue) {
if (staticAlarmRangesBuilder_ == null) {
ensureStaticAlarmRangesIsMutable();
staticAlarmRanges_.set(index, builderForValue.build());
onChanged();
} else {
staticAlarmRangesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public Builder addStaticAlarmRanges(org.yamcs.protobuf.Mdb.AlarmRange value) {
if (staticAlarmRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStaticAlarmRangesIsMutable();
staticAlarmRanges_.add(value);
onChanged();
} else {
staticAlarmRangesBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public Builder addStaticAlarmRanges(
int index, org.yamcs.protobuf.Mdb.AlarmRange value) {
if (staticAlarmRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStaticAlarmRangesIsMutable();
staticAlarmRanges_.add(index, value);
onChanged();
} else {
staticAlarmRangesBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public Builder addStaticAlarmRanges(
org.yamcs.protobuf.Mdb.AlarmRange.Builder builderForValue) {
if (staticAlarmRangesBuilder_ == null) {
ensureStaticAlarmRangesIsMutable();
staticAlarmRanges_.add(builderForValue.build());
onChanged();
} else {
staticAlarmRangesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public Builder addStaticAlarmRanges(
int index, org.yamcs.protobuf.Mdb.AlarmRange.Builder builderForValue) {
if (staticAlarmRangesBuilder_ == null) {
ensureStaticAlarmRangesIsMutable();
staticAlarmRanges_.add(index, builderForValue.build());
onChanged();
} else {
staticAlarmRangesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public Builder addAllStaticAlarmRanges(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.AlarmRange> values) {
if (staticAlarmRangesBuilder_ == null) {
ensureStaticAlarmRangesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, staticAlarmRanges_);
onChanged();
} else {
staticAlarmRangesBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public Builder clearStaticAlarmRanges() {
if (staticAlarmRangesBuilder_ == null) {
staticAlarmRanges_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
staticAlarmRangesBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public Builder removeStaticAlarmRanges(int index) {
if (staticAlarmRangesBuilder_ == null) {
ensureStaticAlarmRangesIsMutable();
staticAlarmRanges_.remove(index);
onChanged();
} else {
staticAlarmRangesBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public org.yamcs.protobuf.Mdb.AlarmRange.Builder getStaticAlarmRangesBuilder(
int index) {
return getStaticAlarmRangesFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder getStaticAlarmRangesOrBuilder(
int index) {
if (staticAlarmRangesBuilder_ == null) {
return staticAlarmRanges_.get(index); } else {
return staticAlarmRangesBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>
getStaticAlarmRangesOrBuilderList() {
if (staticAlarmRangesBuilder_ != null) {
return staticAlarmRangesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(staticAlarmRanges_);
}
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public org.yamcs.protobuf.Mdb.AlarmRange.Builder addStaticAlarmRangesBuilder() {
return getStaticAlarmRangesFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.AlarmRange.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public org.yamcs.protobuf.Mdb.AlarmRange.Builder addStaticAlarmRangesBuilder(
int index) {
return getStaticAlarmRangesFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.AlarmRange.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.AlarmRange staticAlarmRanges = 4;
*/
public java.util.List
getStaticAlarmRangesBuilderList() {
return getStaticAlarmRangesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlarmRange, org.yamcs.protobuf.Mdb.AlarmRange.Builder, org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>
getStaticAlarmRangesFieldBuilder() {
if (staticAlarmRangesBuilder_ == null) {
staticAlarmRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.AlarmRange, org.yamcs.protobuf.Mdb.AlarmRange.Builder, org.yamcs.protobuf.Mdb.AlarmRangeOrBuilder>(
staticAlarmRanges_,
((bitField0_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
staticAlarmRanges_ = null;
}
return staticAlarmRangesBuilder_;
}
private java.util.List enumerationAlarm_ =
java.util.Collections.emptyList();
private void ensureEnumerationAlarmIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
enumerationAlarm_ = new java.util.ArrayList(enumerationAlarm_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.EnumerationAlarm, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder, org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder> enumerationAlarmBuilder_;
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List getEnumerationAlarmList() {
if (enumerationAlarmBuilder_ == null) {
return java.util.Collections.unmodifiableList(enumerationAlarm_);
} else {
return enumerationAlarmBuilder_.getMessageList();
}
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated public int getEnumerationAlarmCount() {
if (enumerationAlarmBuilder_ == null) {
return enumerationAlarm_.size();
} else {
return enumerationAlarmBuilder_.getCount();
}
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.EnumerationAlarm getEnumerationAlarm(int index) {
if (enumerationAlarmBuilder_ == null) {
return enumerationAlarm_.get(index);
} else {
return enumerationAlarmBuilder_.getMessage(index);
}
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearEnumerationAlarm() {
if (enumerationAlarmBuilder_ == null) {
enumerationAlarm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
enumerationAlarmBuilder_.clear();
}
return this;
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated public Builder removeEnumerationAlarm(int index) {
if (enumerationAlarmBuilder_ == null) {
ensureEnumerationAlarmIsMutable();
enumerationAlarm_.remove(index);
onChanged();
} else {
enumerationAlarmBuilder_.remove(index);
}
return this;
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder getEnumerationAlarmBuilder(
int index) {
return getEnumerationAlarmFieldBuilder().getBuilder(index);
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder getEnumerationAlarmOrBuilder(
int index) {
if (enumerationAlarmBuilder_ == null) {
return enumerationAlarm_.get(index); } else {
return enumerationAlarmBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List extends org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>
getEnumerationAlarmOrBuilderList() {
if (enumerationAlarmBuilder_ != null) {
return enumerationAlarmBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(enumerationAlarm_);
}
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder addEnumerationAlarmBuilder() {
return getEnumerationAlarmFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.EnumerationAlarm.getDefaultInstance());
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder addEnumerationAlarmBuilder(
int index) {
return getEnumerationAlarmFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.EnumerationAlarm.getDefaultInstance());
}
/**
*
* Deprecated, use ``enumerationAlarms`` instead
*
*
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarm = 3 [deprecated = true];
*/
@java.lang.Deprecated 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_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
enumerationAlarm_ = null;
}
return enumerationAlarmBuilder_;
}
private java.util.List enumerationAlarms_ =
java.util.Collections.emptyList();
private void ensureEnumerationAlarmsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
enumerationAlarms_ = new java.util.ArrayList(enumerationAlarms_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.EnumerationAlarm, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder, org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder> enumerationAlarmsBuilder_;
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public java.util.List getEnumerationAlarmsList() {
if (enumerationAlarmsBuilder_ == null) {
return java.util.Collections.unmodifiableList(enumerationAlarms_);
} else {
return enumerationAlarmsBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public int getEnumerationAlarmsCount() {
if (enumerationAlarmsBuilder_ == null) {
return enumerationAlarms_.size();
} else {
return enumerationAlarmsBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public org.yamcs.protobuf.Mdb.EnumerationAlarm getEnumerationAlarms(int index) {
if (enumerationAlarmsBuilder_ == null) {
return enumerationAlarms_.get(index);
} else {
return enumerationAlarmsBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public Builder setEnumerationAlarms(
int index, org.yamcs.protobuf.Mdb.EnumerationAlarm value) {
if (enumerationAlarmsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnumerationAlarmsIsMutable();
enumerationAlarms_.set(index, value);
onChanged();
} else {
enumerationAlarmsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public Builder setEnumerationAlarms(
int index, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder builderForValue) {
if (enumerationAlarmsBuilder_ == null) {
ensureEnumerationAlarmsIsMutable();
enumerationAlarms_.set(index, builderForValue.build());
onChanged();
} else {
enumerationAlarmsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public Builder addEnumerationAlarms(org.yamcs.protobuf.Mdb.EnumerationAlarm value) {
if (enumerationAlarmsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnumerationAlarmsIsMutable();
enumerationAlarms_.add(value);
onChanged();
} else {
enumerationAlarmsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public Builder addEnumerationAlarms(
int index, org.yamcs.protobuf.Mdb.EnumerationAlarm value) {
if (enumerationAlarmsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEnumerationAlarmsIsMutable();
enumerationAlarms_.add(index, value);
onChanged();
} else {
enumerationAlarmsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public Builder addEnumerationAlarms(
org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder builderForValue) {
if (enumerationAlarmsBuilder_ == null) {
ensureEnumerationAlarmsIsMutable();
enumerationAlarms_.add(builderForValue.build());
onChanged();
} else {
enumerationAlarmsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public Builder addEnumerationAlarms(
int index, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder builderForValue) {
if (enumerationAlarmsBuilder_ == null) {
ensureEnumerationAlarmsIsMutable();
enumerationAlarms_.add(index, builderForValue.build());
onChanged();
} else {
enumerationAlarmsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public Builder addAllEnumerationAlarms(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.EnumerationAlarm> values) {
if (enumerationAlarmsBuilder_ == null) {
ensureEnumerationAlarmsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, enumerationAlarms_);
onChanged();
} else {
enumerationAlarmsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public Builder clearEnumerationAlarms() {
if (enumerationAlarmsBuilder_ == null) {
enumerationAlarms_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
enumerationAlarmsBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public Builder removeEnumerationAlarms(int index) {
if (enumerationAlarmsBuilder_ == null) {
ensureEnumerationAlarmsIsMutable();
enumerationAlarms_.remove(index);
onChanged();
} else {
enumerationAlarmsBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder getEnumerationAlarmsBuilder(
int index) {
return getEnumerationAlarmsFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder getEnumerationAlarmsOrBuilder(
int index) {
if (enumerationAlarmsBuilder_ == null) {
return enumerationAlarms_.get(index); } else {
return enumerationAlarmsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>
getEnumerationAlarmsOrBuilderList() {
if (enumerationAlarmsBuilder_ != null) {
return enumerationAlarmsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(enumerationAlarms_);
}
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder addEnumerationAlarmsBuilder() {
return getEnumerationAlarmsFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.EnumerationAlarm.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder addEnumerationAlarmsBuilder(
int index) {
return getEnumerationAlarmsFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.EnumerationAlarm.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.EnumerationAlarm enumerationAlarms = 5;
*/
public java.util.List
getEnumerationAlarmsBuilderList() {
return getEnumerationAlarmsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.EnumerationAlarm, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder, org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>
getEnumerationAlarmsFieldBuilder() {
if (enumerationAlarmsBuilder_ == null) {
enumerationAlarmsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.EnumerationAlarm, org.yamcs.protobuf.Mdb.EnumerationAlarm.Builder, org.yamcs.protobuf.Mdb.EnumerationAlarmOrBuilder>(
enumerationAlarms_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
enumerationAlarms_ = null;
}
return enumerationAlarmsBuilder_;
}
private int defaultLevel_ = 0;
/**
*
* only used for enumeration alarms - defines the alarm state if none of the condition above applies
* as per XTCE description:
* defaults to "normal", which is almost always the case.
* Setting it to another alarm state permits a form of "inverted logic" where the alarm list can specify the normal states instead of the alarm states.
*
*
* optional .yamcs.protobuf.mdb.AlarmLevelType defaultLevel = 6;
* @return Whether the defaultLevel field is set.
*/
@java.lang.Override public boolean hasDefaultLevel() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* only used for enumeration alarms - defines the alarm state if none of the condition above applies
* as per XTCE description:
* defaults to "normal", which is almost always the case.
* Setting it to another alarm state permits a form of "inverted logic" where the alarm list can specify the normal states instead of the alarm states.
*
*
* optional .yamcs.protobuf.mdb.AlarmLevelType defaultLevel = 6;
* @return The defaultLevel.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.AlarmLevelType getDefaultLevel() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Mdb.AlarmLevelType result = org.yamcs.protobuf.Mdb.AlarmLevelType.valueOf(defaultLevel_);
return result == null ? org.yamcs.protobuf.Mdb.AlarmLevelType.NORMAL : result;
}
/**
*
* only used for enumeration alarms - defines the alarm state if none of the condition above applies
* as per XTCE description:
* defaults to "normal", which is almost always the case.
* Setting it to another alarm state permits a form of "inverted logic" where the alarm list can specify the normal states instead of the alarm states.
*
*
* optional .yamcs.protobuf.mdb.AlarmLevelType defaultLevel = 6;
* @param value The defaultLevel to set.
* @return This builder for chaining.
*/
public Builder setDefaultLevel(org.yamcs.protobuf.Mdb.AlarmLevelType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
defaultLevel_ = value.getNumber();
onChanged();
return this;
}
/**
*
* only used for enumeration alarms - defines the alarm state if none of the condition above applies
* as per XTCE description:
* defaults to "normal", which is almost always the case.
* Setting it to another alarm state permits a form of "inverted logic" where the alarm list can specify the normal states instead of the alarm states.
*
*
* optional .yamcs.protobuf.mdb.AlarmLevelType defaultLevel = 6;
* @return This builder for chaining.
*/
public Builder clearDefaultLevel() {
bitField0_ = (bitField0_ & ~0x00000020);
defaultLevel_ = 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.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;
* @return Whether the alarm field is set.
*/
boolean hasAlarm();
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
* @return The alarm.
*/
org.yamcs.protobuf.Mdb.AlarmInfo getAlarm();
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder getAlarmOrBuilder();
/**
*
* This can be used in UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return Whether the context field is set.
*/
boolean hasContext();
/**
*
* This can be used in UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return The context.
*/
java.lang.String getContext();
/**
*
* This can be used in UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return The bytes for context.
*/
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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContextAlarmInfo();
}
@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;
*/
@java.lang.Override
public java.util.List getComparisonList() {
return comparison_;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder>
getComparisonOrBuilderList() {
return comparison_;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
@java.lang.Override
public int getComparisonCount() {
return comparison_.size();
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ComparisonInfo getComparison(int index) {
return comparison_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
@java.lang.Override
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;
* @return Whether the alarm field is set.
*/
@java.lang.Override
public boolean hasAlarm() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
* @return The alarm.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.AlarmInfo getAlarm() {
return alarm_ == null ? org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance() : alarm_;
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
*/
@java.lang.Override
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 UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return Whether the context field is set.
*/
@java.lang.Override
public boolean hasContext() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* This can be used in UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return The context.
*/
@java.lang.Override
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 UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return The bytes for context.
*/
@java.lang.Override
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;
* @return Whether the alarm field is set.
*/
public boolean hasAlarm() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AlarmInfo alarm = 2;
* @return The alarm.
*/
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 UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return Whether the context field is set.
*/
public boolean hasContext() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* This can be used in UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return The context.
*/
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 UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return The bytes for context.
*/
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 UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @param value The context to set.
* @return This builder for chaining.
*/
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 UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return This builder for chaining.
*/
public Builder clearContext() {
bitField0_ = (bitField0_ & ~0x00000004);
context_ = getDefaultInstance().getContext();
onChanged();
return this;
}
/**
*
* This can be used in UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @param value The bytes for context to set.
* @return This builder for chaining.
*/
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;
* @return Whether the type field is set.
*/
boolean hasType();
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo.Type type = 1;
* @return The type.
*/
org.yamcs.protobuf.Mdb.DataEncodingInfo.Type getType();
/**
* optional bool littleEndian = 2;
* @return Whether the littleEndian field is set.
*/
boolean hasLittleEndian();
/**
* optional bool littleEndian = 2;
* @return The littleEndian.
*/
boolean getLittleEndian();
/**
* optional int32 sizeInBits = 3;
* @return Whether the sizeInBits field is set.
*/
boolean hasSizeInBits();
/**
* optional int32 sizeInBits = 3;
* @return The sizeInBits.
*/
int getSizeInBits();
/**
* optional string encoding = 4;
* @return Whether the encoding field is set.
*/
boolean hasEncoding();
/**
* optional string encoding = 4;
* @return The encoding.
*/
java.lang.String getEncoding();
/**
* optional string encoding = 4;
* @return The bytes for encoding.
*/
com.google.protobuf.ByteString
getEncodingBytes();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
* @return Whether the defaultCalibrator field is set.
*/
boolean hasDefaultCalibrator();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
* @return The defaultCalibrator.
*/
org.yamcs.protobuf.Mdb.CalibratorInfo getDefaultCalibrator();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder getDefaultCalibratorOrBuilder();
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated java.util.List
getContextCalibratorList();
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrator(int index);
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated int getContextCalibratorCount();
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorOrBuilderList();
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorOrBuilder(
int index);
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
java.util.List
getContextCalibratorsList();
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrators(int index);
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
int getContextCalibratorsCount();
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorsOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorsOrBuilder(
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();
contextCalibrators_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DataEncodingInfo();
}
@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;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
contextCalibrators_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
contextCalibrators_.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_);
}
if (((mutable_bitField0_ & 0x00000040) != 0)) {
contextCalibrators_ = java.util.Collections.unmodifiableList(contextCalibrators_);
}
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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo.Type type = 1;
* @return The type.
*/
@java.lang.Override 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;
* @return Whether the littleEndian field is set.
*/
@java.lang.Override
public boolean hasLittleEndian() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool littleEndian = 2;
* @return The littleEndian.
*/
@java.lang.Override
public boolean getLittleEndian() {
return littleEndian_;
}
public static final int SIZEINBITS_FIELD_NUMBER = 3;
private int sizeInBits_;
/**
* optional int32 sizeInBits = 3;
* @return Whether the sizeInBits field is set.
*/
@java.lang.Override
public boolean hasSizeInBits() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 sizeInBits = 3;
* @return The sizeInBits.
*/
@java.lang.Override
public int getSizeInBits() {
return sizeInBits_;
}
public static final int ENCODING_FIELD_NUMBER = 4;
private volatile java.lang.Object encoding_;
/**
* optional string encoding = 4;
* @return Whether the encoding field is set.
*/
@java.lang.Override
public boolean hasEncoding() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string encoding = 4;
* @return The encoding.
*/
@java.lang.Override
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;
* @return The bytes for encoding.
*/
@java.lang.Override
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;
* @return Whether the defaultCalibrator field is set.
*/
@java.lang.Override
public boolean hasDefaultCalibrator() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
* @return The defaultCalibrator.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.CalibratorInfo getDefaultCalibrator() {
return defaultCalibrator_ == null ? org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : defaultCalibrator_;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
*/
@java.lang.Override
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_;
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List getContextCalibratorList() {
return contextCalibrator_;
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorOrBuilderList() {
return contextCalibrator_;
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public int getContextCalibratorCount() {
return contextCalibrator_.size();
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrator(int index) {
return contextCalibrator_.get(index);
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorOrBuilder(
int index) {
return contextCalibrator_.get(index);
}
public static final int CONTEXTCALIBRATORS_FIELD_NUMBER = 8;
private java.util.List contextCalibrators_;
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
@java.lang.Override
public java.util.List getContextCalibratorsList() {
return contextCalibrators_;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorsOrBuilderList() {
return contextCalibrators_;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
@java.lang.Override
public int getContextCalibratorsCount() {
return contextCalibrators_.size();
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrators(int index) {
return contextCalibrators_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorsOrBuilder(
int index) {
return contextCalibrators_.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;
}
}
for (int i = 0; i < getContextCalibratorsCount(); i++) {
if (!getContextCalibrators(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));
}
for (int i = 0; i < contextCalibrators_.size(); i++) {
output.writeMessage(8, contextCalibrators_.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));
}
for (int i = 0; i < contextCalibrators_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, contextCalibrators_.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 (!getContextCalibratorsList()
.equals(other.getContextCalibratorsList())) 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();
}
if (getContextCalibratorsCount() > 0) {
hash = (37 * hash) + CONTEXTCALIBRATORS_FIELD_NUMBER;
hash = (53 * hash) + getContextCalibratorsList().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();
getContextCalibratorsFieldBuilder();
}
}
@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();
}
if (contextCalibratorsBuilder_ == null) {
contextCalibrators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
contextCalibratorsBuilder_.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();
}
if (contextCalibratorsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
contextCalibrators_ = java.util.Collections.unmodifiableList(contextCalibrators_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.contextCalibrators_ = contextCalibrators_;
} else {
result.contextCalibrators_ = contextCalibratorsBuilder_.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_);
}
}
}
if (contextCalibratorsBuilder_ == null) {
if (!other.contextCalibrators_.isEmpty()) {
if (contextCalibrators_.isEmpty()) {
contextCalibrators_ = other.contextCalibrators_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureContextCalibratorsIsMutable();
contextCalibrators_.addAll(other.contextCalibrators_);
}
onChanged();
}
} else {
if (!other.contextCalibrators_.isEmpty()) {
if (contextCalibratorsBuilder_.isEmpty()) {
contextCalibratorsBuilder_.dispose();
contextCalibratorsBuilder_ = null;
contextCalibrators_ = other.contextCalibrators_;
bitField0_ = (bitField0_ & ~0x00000040);
contextCalibratorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContextCalibratorsFieldBuilder() : null;
} else {
contextCalibratorsBuilder_.addAllMessages(other.contextCalibrators_);
}
}
}
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;
}
}
for (int i = 0; i < getContextCalibratorsCount(); i++) {
if (!getContextCalibrators(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;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo.Type type = 1;
* @return The type.
*/
@java.lang.Override
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;
* @param value The type to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
onChanged();
return this;
}
private boolean littleEndian_ ;
/**
* optional bool littleEndian = 2;
* @return Whether the littleEndian field is set.
*/
@java.lang.Override
public boolean hasLittleEndian() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional bool littleEndian = 2;
* @return The littleEndian.
*/
@java.lang.Override
public boolean getLittleEndian() {
return littleEndian_;
}
/**
* optional bool littleEndian = 2;
* @param value The littleEndian to set.
* @return This builder for chaining.
*/
public Builder setLittleEndian(boolean value) {
bitField0_ |= 0x00000002;
littleEndian_ = value;
onChanged();
return this;
}
/**
* optional bool littleEndian = 2;
* @return This builder for chaining.
*/
public Builder clearLittleEndian() {
bitField0_ = (bitField0_ & ~0x00000002);
littleEndian_ = false;
onChanged();
return this;
}
private int sizeInBits_ ;
/**
* optional int32 sizeInBits = 3;
* @return Whether the sizeInBits field is set.
*/
@java.lang.Override
public boolean hasSizeInBits() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 sizeInBits = 3;
* @return The sizeInBits.
*/
@java.lang.Override
public int getSizeInBits() {
return sizeInBits_;
}
/**
* optional int32 sizeInBits = 3;
* @param value The sizeInBits to set.
* @return This builder for chaining.
*/
public Builder setSizeInBits(int value) {
bitField0_ |= 0x00000004;
sizeInBits_ = value;
onChanged();
return this;
}
/**
* optional int32 sizeInBits = 3;
* @return This builder for chaining.
*/
public Builder clearSizeInBits() {
bitField0_ = (bitField0_ & ~0x00000004);
sizeInBits_ = 0;
onChanged();
return this;
}
private java.lang.Object encoding_ = "";
/**
* optional string encoding = 4;
* @return Whether the encoding field is set.
*/
public boolean hasEncoding() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string encoding = 4;
* @return The encoding.
*/
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;
* @return The bytes for encoding.
*/
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;
* @param value The encoding to set.
* @return This builder for chaining.
*/
public Builder setEncoding(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
encoding_ = value;
onChanged();
return this;
}
/**
* optional string encoding = 4;
* @return This builder for chaining.
*/
public Builder clearEncoding() {
bitField0_ = (bitField0_ & ~0x00000008);
encoding_ = getDefaultInstance().getEncoding();
onChanged();
return this;
}
/**
* optional string encoding = 4;
* @param value The bytes for encoding to set.
* @return This builder for chaining.
*/
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;
* @return Whether the defaultCalibrator field is set.
*/
public boolean hasDefaultCalibrator() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 6;
* @return The defaultCalibrator.
*/
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_;
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List getContextCalibratorList() {
if (contextCalibratorBuilder_ == null) {
return java.util.Collections.unmodifiableList(contextCalibrator_);
} else {
return contextCalibratorBuilder_.getMessageList();
}
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated public int getContextCalibratorCount() {
if (contextCalibratorBuilder_ == null) {
return contextCalibrator_.size();
} else {
return contextCalibratorBuilder_.getCount();
}
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrator(int index) {
if (contextCalibratorBuilder_ == null) {
return contextCalibrator_.get(index);
} else {
return contextCalibratorBuilder_.getMessage(index);
}
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearContextCalibrator() {
if (contextCalibratorBuilder_ == null) {
contextCalibrator_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
contextCalibratorBuilder_.clear();
}
return this;
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated public Builder removeContextCalibrator(int index) {
if (contextCalibratorBuilder_ == null) {
ensureContextCalibratorIsMutable();
contextCalibrator_.remove(index);
onChanged();
} else {
contextCalibratorBuilder_.remove(index);
}
return this;
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder getContextCalibratorBuilder(
int index) {
return getContextCalibratorFieldBuilder().getBuilder(index);
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorOrBuilder(
int index) {
if (contextCalibratorBuilder_ == null) {
return contextCalibrator_.get(index); } else {
return contextCalibratorBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorOrBuilderList() {
if (contextCalibratorBuilder_ != null) {
return contextCalibratorBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contextCalibrator_);
}
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder addContextCalibratorBuilder() {
return getContextCalibratorFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ContextCalibratorInfo.getDefaultInstance());
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder addContextCalibratorBuilder(
int index) {
return getContextCalibratorFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.getDefaultInstance());
}
/**
*
* Deprecated, use ``contextCalibrators`` instead
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 7 [deprecated = true];
*/
@java.lang.Deprecated 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_;
}
private java.util.List contextCalibrators_ =
java.util.Collections.emptyList();
private void ensureContextCalibratorsIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
contextCalibrators_ = new java.util.ArrayList(contextCalibrators_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextCalibratorInfo, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder> contextCalibratorsBuilder_;
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public java.util.List getContextCalibratorsList() {
if (contextCalibratorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(contextCalibrators_);
} else {
return contextCalibratorsBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public int getContextCalibratorsCount() {
if (contextCalibratorsBuilder_ == null) {
return contextCalibrators_.size();
} else {
return contextCalibratorsBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrators(int index) {
if (contextCalibratorsBuilder_ == null) {
return contextCalibrators_.get(index);
} else {
return contextCalibratorsBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public Builder setContextCalibrators(
int index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo value) {
if (contextCalibratorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextCalibratorsIsMutable();
contextCalibrators_.set(index, value);
onChanged();
} else {
contextCalibratorsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public Builder setContextCalibrators(
int index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder builderForValue) {
if (contextCalibratorsBuilder_ == null) {
ensureContextCalibratorsIsMutable();
contextCalibrators_.set(index, builderForValue.build());
onChanged();
} else {
contextCalibratorsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public Builder addContextCalibrators(org.yamcs.protobuf.Mdb.ContextCalibratorInfo value) {
if (contextCalibratorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextCalibratorsIsMutable();
contextCalibrators_.add(value);
onChanged();
} else {
contextCalibratorsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public Builder addContextCalibrators(
int index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo value) {
if (contextCalibratorsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextCalibratorsIsMutable();
contextCalibrators_.add(index, value);
onChanged();
} else {
contextCalibratorsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public Builder addContextCalibrators(
org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder builderForValue) {
if (contextCalibratorsBuilder_ == null) {
ensureContextCalibratorsIsMutable();
contextCalibrators_.add(builderForValue.build());
onChanged();
} else {
contextCalibratorsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public Builder addContextCalibrators(
int index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder builderForValue) {
if (contextCalibratorsBuilder_ == null) {
ensureContextCalibratorsIsMutable();
contextCalibrators_.add(index, builderForValue.build());
onChanged();
} else {
contextCalibratorsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public Builder addAllContextCalibrators(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.ContextCalibratorInfo> values) {
if (contextCalibratorsBuilder_ == null) {
ensureContextCalibratorsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contextCalibrators_);
onChanged();
} else {
contextCalibratorsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public Builder clearContextCalibrators() {
if (contextCalibratorsBuilder_ == null) {
contextCalibrators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
contextCalibratorsBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public Builder removeContextCalibrators(int index) {
if (contextCalibratorsBuilder_ == null) {
ensureContextCalibratorsIsMutable();
contextCalibrators_.remove(index);
onChanged();
} else {
contextCalibratorsBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder getContextCalibratorsBuilder(
int index) {
return getContextCalibratorsFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorsOrBuilder(
int index) {
if (contextCalibratorsBuilder_ == null) {
return contextCalibrators_.get(index); } else {
return contextCalibratorsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorsOrBuilderList() {
if (contextCalibratorsBuilder_ != null) {
return contextCalibratorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contextCalibrators_);
}
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder addContextCalibratorsBuilder() {
return getContextCalibratorsFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ContextCalibratorInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder addContextCalibratorsBuilder(
int index) {
return getContextCalibratorsFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 8;
*/
public java.util.List
getContextCalibratorsBuilderList() {
return getContextCalibratorsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextCalibratorInfo, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorsFieldBuilder() {
if (contextCalibratorsBuilder_ == null) {
contextCalibratorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextCalibratorInfo, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>(
contextCalibrators_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
contextCalibrators_ = null;
}
return contextCalibratorsBuilder_;
}
@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;
* @return Whether the calibrator field is set.
*/
boolean hasCalibrator();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
* @return The calibrator.
*/
org.yamcs.protobuf.Mdb.CalibratorInfo getCalibrator();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder getCalibratorOrBuilder();
/**
*
* This can be used in UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return Whether the context field is set.
*/
boolean hasContext();
/**
*
* This can be used in UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return The context.
*/
java.lang.String getContext();
/**
*
* This can be used in UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return The bytes for context.
*/
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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ContextCalibratorInfo();
}
@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;
*/
@java.lang.Override
public java.util.List getComparisonList() {
return comparison_;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.ComparisonInfoOrBuilder>
getComparisonOrBuilderList() {
return comparison_;
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
@java.lang.Override
public int getComparisonCount() {
return comparison_.size();
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ComparisonInfo getComparison(int index) {
return comparison_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.ComparisonInfo comparison = 1;
*/
@java.lang.Override
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;
* @return Whether the calibrator field is set.
*/
@java.lang.Override
public boolean hasCalibrator() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
* @return The calibrator.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.CalibratorInfo getCalibrator() {
return calibrator_ == null ? org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : calibrator_;
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
*/
@java.lang.Override
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 UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return Whether the context field is set.
*/
@java.lang.Override
public boolean hasContext() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* This can be used in UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return The context.
*/
@java.lang.Override
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 UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return The bytes for context.
*/
@java.lang.Override
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;
* @return Whether the calibrator field is set.
*/
public boolean hasCalibrator() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo calibrator = 2;
* @return The calibrator.
*/
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 UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return Whether the context field is set.
*/
public boolean hasContext() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* This can be used in UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return The context.
*/
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 UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return The bytes for context.
*/
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 UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @param value The context to set.
* @return This builder for chaining.
*/
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 UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @return This builder for chaining.
*/
public Builder clearContext() {
bitField0_ = (bitField0_ & ~0x00000004);
context_ = getDefaultInstance().getContext();
onChanged();
return this;
}
/**
*
* This can be used in UpdateParameterRequest to pass a context
* that is parsed on the server, according to the rules in the
* excel spreadsheet. Either this or a comparison has to be
* used (not both at the same time)
*
*
* optional string context = 3;
* @param value The bytes for context to set.
* @return This builder for chaining.
*/
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 .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
* @return Whether the polynomialCalibrator field is set.
*/
boolean hasPolynomialCalibrator();
/**
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
* @return The polynomialCalibrator.
*/
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo getPolynomialCalibrator();
/**
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
org.yamcs.protobuf.Mdb.PolynomialCalibratorInfoOrBuilder getPolynomialCalibratorOrBuilder();
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
* @return Whether the splineCalibrator field is set.
*/
boolean hasSplineCalibrator();
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
* @return The splineCalibrator.
*/
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;
* @return Whether the javaExpressionCalibrator field is set.
*/
boolean hasJavaExpressionCalibrator();
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
* @return The javaExpressionCalibrator.
*/
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;
* @return Whether the type field is set.
*/
boolean hasType();
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo.Type type = 5;
* @return The type.
*/
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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CalibratorInfo();
}
@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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire 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 .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
* @return Whether the polynomialCalibrator field is set.
*/
@java.lang.Override
public boolean hasPolynomialCalibrator() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
* @return The polynomialCalibrator.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo getPolynomialCalibrator() {
return polynomialCalibrator_ == null ? org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.getDefaultInstance() : polynomialCalibrator_;
}
/**
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
@java.lang.Override
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;
* @return Whether the splineCalibrator field is set.
*/
@java.lang.Override
public boolean hasSplineCalibrator() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
* @return The splineCalibrator.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo getSplineCalibrator() {
return splineCalibrator_ == null ? org.yamcs.protobuf.Mdb.SplineCalibratorInfo.getDefaultInstance() : splineCalibrator_;
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
*/
@java.lang.Override
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;
* @return Whether the javaExpressionCalibrator field is set.
*/
@java.lang.Override
public boolean hasJavaExpressionCalibrator() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
* @return The javaExpressionCalibrator.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo getJavaExpressionCalibrator() {
return javaExpressionCalibrator_ == null ? org.yamcs.protobuf.Mdb.JavaExpressionCalibratorInfo.getDefaultInstance() : javaExpressionCalibrator_;
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
*/
@java.lang.Override
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;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo.Type type = 5;
* @return The type.
*/
@java.lang.Override 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 .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
* @return Whether the polynomialCalibrator field is set.
*/
public boolean hasPolynomialCalibrator() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
* @return The polynomialCalibrator.
*/
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 .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 .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 .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 .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public Builder clearPolynomialCalibrator() {
if (polynomialCalibratorBuilder_ == null) {
polynomialCalibrator_ = null;
onChanged();
} else {
polynomialCalibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .yamcs.protobuf.mdb.PolynomialCalibratorInfo polynomialCalibrator = 2;
*/
public org.yamcs.protobuf.Mdb.PolynomialCalibratorInfo.Builder getPolynomialCalibratorBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getPolynomialCalibratorFieldBuilder().getBuilder();
}
/**
* 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 .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;
* @return Whether the splineCalibrator field is set.
*/
public boolean hasSplineCalibrator() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.mdb.SplineCalibratorInfo splineCalibrator = 3;
* @return The splineCalibrator.
*/
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;
* @return Whether the javaExpressionCalibrator field is set.
*/
public boolean hasJavaExpressionCalibrator() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.mdb.JavaExpressionCalibratorInfo javaExpressionCalibrator = 4;
* @return The javaExpressionCalibrator.
*/
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;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .yamcs.protobuf.mdb.CalibratorInfo.Type type = 5;
* @return The type.
*/
@java.lang.Override
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;
* @param value The type to set.
* @return This builder for chaining.
*/
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;
* @return This builder for chaining.
*/
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 {
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @return A list containing the coefficient.
*/
@java.lang.Deprecated java.util.List getCoefficientList();
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @return The count of coefficient.
*/
@java.lang.Deprecated int getCoefficientCount();
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @param index The index of the element to return.
* @return The coefficient at the given index.
*/
@java.lang.Deprecated double getCoefficient(int index);
/**
* repeated double coefficients = 2;
* @return A list containing the coefficients.
*/
java.util.List getCoefficientsList();
/**
* repeated double coefficients = 2;
* @return The count of coefficients.
*/
int getCoefficientsCount();
/**
* repeated double coefficients = 2;
* @param index The index of the element to return.
* @return The coefficients at the given index.
*/
double getCoefficients(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();
coefficients_ = emptyDoubleList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PolynomialCalibratorInfo();
}
@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;
}
case 17: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
coefficients_ = newDoubleList();
mutable_bitField0_ |= 0x00000002;
}
coefficients_.addDouble(input.readDouble());
break;
}
case 18: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
coefficients_ = newDoubleList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
coefficients_.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
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
coefficients_.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_;
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @return A list containing the coefficient.
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List
getCoefficientList() {
return coefficient_;
}
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @return The count of coefficient.
*/
@java.lang.Deprecated public int getCoefficientCount() {
return coefficient_.size();
}
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @param index The index of the element to return.
* @return The coefficient at the given index.
*/
@java.lang.Deprecated public double getCoefficient(int index) {
return coefficient_.getDouble(index);
}
public static final int COEFFICIENTS_FIELD_NUMBER = 2;
private com.google.protobuf.Internal.DoubleList coefficients_;
/**
* repeated double coefficients = 2;
* @return A list containing the coefficients.
*/
@java.lang.Override
public java.util.List
getCoefficientsList() {
return coefficients_;
}
/**
* repeated double coefficients = 2;
* @return The count of coefficients.
*/
public int getCoefficientsCount() {
return coefficients_.size();
}
/**
* repeated double coefficients = 2;
* @param index The index of the element to return.
* @return The coefficients at the given index.
*/
public double getCoefficients(int index) {
return coefficients_.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));
}
for (int i = 0; i < coefficients_.size(); i++) {
output.writeDouble(2, coefficients_.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();
}
{
int dataSize = 0;
dataSize = 8 * getCoefficientsList().size();
size += dataSize;
size += 1 * getCoefficientsList().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 (!getCoefficientsList()
.equals(other.getCoefficientsList())) 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();
}
if (getCoefficientsCount() > 0) {
hash = (37 * hash) + COEFFICIENTS_FIELD_NUMBER;
hash = (53 * hash) + getCoefficientsList().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);
coefficients_ = emptyDoubleList();
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_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_;
if (((bitField0_ & 0x00000002) != 0)) {
coefficients_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.coefficients_ = coefficients_;
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();
}
if (!other.coefficients_.isEmpty()) {
if (coefficients_.isEmpty()) {
coefficients_ = other.coefficients_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureCoefficientsIsMutable();
coefficients_.addAll(other.coefficients_);
}
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;
}
}
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @return A list containing the coefficient.
*/
@java.lang.Deprecated public java.util.List
getCoefficientList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(coefficient_) : coefficient_;
}
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @return The count of coefficient.
*/
@java.lang.Deprecated public int getCoefficientCount() {
return coefficient_.size();
}
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @param index The index of the element to return.
* @return The coefficient at the given index.
*/
@java.lang.Deprecated public double getCoefficient(int index) {
return coefficient_.getDouble(index);
}
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @param index The index to set the value at.
* @param value The coefficient to set.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder setCoefficient(
int index, double value) {
ensureCoefficientIsMutable();
coefficient_.setDouble(index, value);
onChanged();
return this;
}
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @param value The coefficient to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addCoefficient(double value) {
ensureCoefficientIsMutable();
coefficient_.addDouble(value);
onChanged();
return this;
}
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @param values The coefficient to add.
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder addAllCoefficient(
java.lang.Iterable extends java.lang.Double> values) {
ensureCoefficientIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, coefficient_);
onChanged();
return this;
}
/**
*
* Deprecated, use ``coefficients`` instead
*
*
* repeated double coefficient = 1 [deprecated = true];
* @deprecated
* @return This builder for chaining.
*/
@java.lang.Deprecated public Builder clearCoefficient() {
coefficient_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private com.google.protobuf.Internal.DoubleList coefficients_ = emptyDoubleList();
private void ensureCoefficientsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
coefficients_ = mutableCopy(coefficients_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated double coefficients = 2;
* @return A list containing the coefficients.
*/
public java.util.List
getCoefficientsList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(coefficients_) : coefficients_;
}
/**
* repeated double coefficients = 2;
* @return The count of coefficients.
*/
public int getCoefficientsCount() {
return coefficients_.size();
}
/**
* repeated double coefficients = 2;
* @param index The index of the element to return.
* @return The coefficients at the given index.
*/
public double getCoefficients(int index) {
return coefficients_.getDouble(index);
}
/**
* repeated double coefficients = 2;
* @param index The index to set the value at.
* @param value The coefficients to set.
* @return This builder for chaining.
*/
public Builder setCoefficients(
int index, double value) {
ensureCoefficientsIsMutable();
coefficients_.setDouble(index, value);
onChanged();
return this;
}
/**
* repeated double coefficients = 2;
* @param value The coefficients to add.
* @return This builder for chaining.
*/
public Builder addCoefficients(double value) {
ensureCoefficientsIsMutable();
coefficients_.addDouble(value);
onChanged();
return this;
}
/**
* repeated double coefficients = 2;
* @param values The coefficients to add.
* @return This builder for chaining.
*/
public Builder addAllCoefficients(
java.lang.Iterable extends java.lang.Double> values) {
ensureCoefficientsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, coefficients_);
onChanged();
return this;
}
/**
* repeated double coefficients = 2;
* @return This builder for chaining.
*/
public Builder clearCoefficients() {
coefficients_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000002);
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 {
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated java.util.List
getPointList();
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo getPoint(int index);
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated int getPointCount();
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated java.util.List extends org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder>
getPointOrBuilderList();
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder getPointOrBuilder(
int index);
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
java.util.List
getPointsList();
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo getPoints(int index);
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
int getPointsCount();
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
java.util.List extends org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder>
getPointsOrBuilderList();
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder getPointsOrBuilder(
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();
points_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SplineCalibratorInfo();
}
@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;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
points_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
points_.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_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
points_ = java.util.Collections.unmodifiableList(points_);
}
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;
* @return Whether the raw field is set.
*/
boolean hasRaw();
/**
* optional double raw = 1;
* @return The raw.
*/
double getRaw();
/**
* optional double calibrated = 2;
* @return Whether the calibrated field is set.
*/
boolean hasCalibrated();
/**
* optional double calibrated = 2;
* @return The calibrated.
*/
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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new 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;
* @return Whether the raw field is set.
*/
@java.lang.Override
public boolean hasRaw() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional double raw = 1;
* @return The raw.
*/
@java.lang.Override
public double getRaw() {
return raw_;
}
public static final int CALIBRATED_FIELD_NUMBER = 2;
private double calibrated_;
/**
* optional double calibrated = 2;
* @return Whether the calibrated field is set.
*/
@java.lang.Override
public boolean hasCalibrated() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double calibrated = 2;
* @return The calibrated.
*/
@java.lang.Override
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;
* @return Whether the raw field is set.
*/
@java.lang.Override
public boolean hasRaw() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional double raw = 1;
* @return The raw.
*/
@java.lang.Override
public double getRaw() {
return raw_;
}
/**
* optional double raw = 1;
* @param value The raw to set.
* @return This builder for chaining.
*/
public Builder setRaw(double value) {
bitField0_ |= 0x00000001;
raw_ = value;
onChanged();
return this;
}
/**
* optional double raw = 1;
* @return This builder for chaining.
*/
public Builder clearRaw() {
bitField0_ = (bitField0_ & ~0x00000001);
raw_ = 0D;
onChanged();
return this;
}
private double calibrated_ ;
/**
* optional double calibrated = 2;
* @return Whether the calibrated field is set.
*/
@java.lang.Override
public boolean hasCalibrated() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional double calibrated = 2;
* @return The calibrated.
*/
@java.lang.Override
public double getCalibrated() {
return calibrated_;
}
/**
* optional double calibrated = 2;
* @param value The calibrated to set.
* @return This builder for chaining.
*/
public Builder setCalibrated(double value) {
bitField0_ |= 0x00000002;
calibrated_ = value;
onChanged();
return this;
}
/**
* optional double calibrated = 2;
* @return This builder for chaining.
*/
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_;
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List getPointList() {
return point_;
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public java.util.List extends org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder>
getPointOrBuilderList() {
return point_;
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public int getPointCount() {
return point_.size();
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo getPoint(int index) {
return point_.get(index);
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Override
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder getPointOrBuilder(
int index) {
return point_.get(index);
}
public static final int POINTS_FIELD_NUMBER = 2;
private java.util.List points_;
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
@java.lang.Override
public java.util.List getPointsList() {
return points_;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder>
getPointsOrBuilderList() {
return points_;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
@java.lang.Override
public int getPointsCount() {
return points_.size();
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo getPoints(int index) {
return points_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder getPointsOrBuilder(
int index) {
return points_.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));
}
for (int i = 0; i < points_.size(); i++) {
output.writeMessage(2, points_.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));
}
for (int i = 0; i < points_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, points_.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 (!getPointsList()
.equals(other.getPointsList())) 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();
}
if (getPointsCount() > 0) {
hash = (37 * hash) + POINTS_FIELD_NUMBER;
hash = (53 * hash) + getPointsList().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();
getPointsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (pointBuilder_ == null) {
point_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
pointBuilder_.clear();
}
if (pointsBuilder_ == null) {
points_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
pointsBuilder_.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();
}
if (pointsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
points_ = java.util.Collections.unmodifiableList(points_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.points_ = points_;
} else {
result.points_ = pointsBuilder_.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_);
}
}
}
if (pointsBuilder_ == null) {
if (!other.points_.isEmpty()) {
if (points_.isEmpty()) {
points_ = other.points_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensurePointsIsMutable();
points_.addAll(other.points_);
}
onChanged();
}
} else {
if (!other.points_.isEmpty()) {
if (pointsBuilder_.isEmpty()) {
pointsBuilder_.dispose();
pointsBuilder_ = null;
points_ = other.points_;
bitField0_ = (bitField0_ & ~0x00000002);
pointsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getPointsFieldBuilder() : null;
} else {
pointsBuilder_.addAllMessages(other.points_);
}
}
}
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_;
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated public java.util.List getPointList() {
if (pointBuilder_ == null) {
return java.util.Collections.unmodifiableList(point_);
} else {
return pointBuilder_.getMessageList();
}
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated public int getPointCount() {
if (pointBuilder_ == null) {
return point_.size();
} else {
return pointBuilder_.getCount();
}
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo getPoint(int index) {
if (pointBuilder_ == null) {
return point_.get(index);
} else {
return pointBuilder_.getMessage(index);
}
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated 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;
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearPoint() {
if (pointBuilder_ == null) {
point_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
pointBuilder_.clear();
}
return this;
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated public Builder removePoint(int index) {
if (pointBuilder_ == null) {
ensurePointIsMutable();
point_.remove(index);
onChanged();
} else {
pointBuilder_.remove(index);
}
return this;
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder getPointBuilder(
int index) {
return getPointFieldBuilder().getBuilder(index);
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder getPointOrBuilder(
int index) {
if (pointBuilder_ == null) {
return point_.get(index); } else {
return pointBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated 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_);
}
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder addPointBuilder() {
return getPointFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.getDefaultInstance());
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder addPointBuilder(
int index) {
return getPointFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.getDefaultInstance());
}
/**
*
* Deprecated, use ``points`` instead
*
*
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo point = 1 [deprecated = true];
*/
@java.lang.Deprecated 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_;
}
private java.util.List points_ =
java.util.Collections.emptyList();
private void ensurePointsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
points_ = new java.util.ArrayList(points_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder> pointsBuilder_;
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public java.util.List getPointsList() {
if (pointsBuilder_ == null) {
return java.util.Collections.unmodifiableList(points_);
} else {
return pointsBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public int getPointsCount() {
if (pointsBuilder_ == null) {
return points_.size();
} else {
return pointsBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo getPoints(int index) {
if (pointsBuilder_ == null) {
return points_.get(index);
} else {
return pointsBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public Builder setPoints(
int index, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo value) {
if (pointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePointsIsMutable();
points_.set(index, value);
onChanged();
} else {
pointsBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public Builder setPoints(
int index, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder builderForValue) {
if (pointsBuilder_ == null) {
ensurePointsIsMutable();
points_.set(index, builderForValue.build());
onChanged();
} else {
pointsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public Builder addPoints(org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo value) {
if (pointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePointsIsMutable();
points_.add(value);
onChanged();
} else {
pointsBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public Builder addPoints(
int index, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo value) {
if (pointsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePointsIsMutable();
points_.add(index, value);
onChanged();
} else {
pointsBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public Builder addPoints(
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder builderForValue) {
if (pointsBuilder_ == null) {
ensurePointsIsMutable();
points_.add(builderForValue.build());
onChanged();
} else {
pointsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public Builder addPoints(
int index, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder builderForValue) {
if (pointsBuilder_ == null) {
ensurePointsIsMutable();
points_.add(index, builderForValue.build());
onChanged();
} else {
pointsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public Builder addAllPoints(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo> values) {
if (pointsBuilder_ == null) {
ensurePointsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, points_);
onChanged();
} else {
pointsBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public Builder clearPoints() {
if (pointsBuilder_ == null) {
points_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
pointsBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public Builder removePoints(int index) {
if (pointsBuilder_ == null) {
ensurePointsIsMutable();
points_.remove(index);
onChanged();
} else {
pointsBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder getPointsBuilder(
int index) {
return getPointsFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder getPointsOrBuilder(
int index) {
if (pointsBuilder_ == null) {
return points_.get(index); } else {
return pointsBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder>
getPointsOrBuilderList() {
if (pointsBuilder_ != null) {
return pointsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(points_);
}
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder addPointsBuilder() {
return getPointsFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder addPointsBuilder(
int index) {
return getPointsFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.mdb.SplineCalibratorInfo.SplinePointInfo points = 2;
*/
public java.util.List
getPointsBuilderList() {
return getPointsFieldBuilder().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>
getPointsFieldBuilder() {
if (pointsBuilder_ == null) {
pointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfo.Builder, org.yamcs.protobuf.Mdb.SplineCalibratorInfo.SplinePointInfoOrBuilder>(
points_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
points_ = null;
}
return pointsBuilder_;
}
@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;
* @return Whether the formula field is set.
*/
boolean hasFormula();
/**
* optional string formula = 1;
* @return The formula.
*/
java.lang.String getFormula();
/**
* optional string formula = 1;
* @return The bytes for formula.
*/
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
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new JavaExpressionCalibratorInfo();
}
@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;
* @return Whether the formula field is set.
*/
@java.lang.Override
public boolean hasFormula() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string formula = 1;
* @return The formula.
*/
@java.lang.Override
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;
* @return The bytes for formula.
*/
@java.lang.Override
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;
* @return Whether the formula field is set.
*/
public boolean hasFormula() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string formula = 1;
* @return The formula.
*/
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;
* @return The bytes for formula.
*/
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;
* @param value The formula to set.
* @return This builder for chaining.
*/
public Builder setFormula(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
formula_ = value;
onChanged();
return this;
}
/**
* optional string formula = 1;
* @return This builder for chaining.
*/
public Builder clearFormula() {
bitField0_ = (bitField0_ & ~0x00000001);
formula_ = getDefaultInstance().getFormula();
onChanged();
return this;
}
/**
* optional string formula = 1;
* @param value The bytes for formula to set.
* @return This builder for chaining.
*/
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;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* optional int64 value = 1;
* @return The value.
*/
long getValue();
/**
* optional string label = 2;
* @return Whether the label field is set.
*/
boolean hasLabel();
/**
* optional string label = 2;
* @return The label.
*/
java.lang.String getLabel();
/**
* optional string label = 2;
* @return The bytes for label.
*/
com.google.protobuf.ByteString
getLabelBytes();
/**
* optional string description = 3;
* @return Whether the description field is set.
*/
boolean hasDescription();
/**
* optional string description = 3;
* @return The description.
*/
java.lang.String getDescription();
/**
* optional string description = 3;
* @return The bytes for description.
*/
com.google.protobuf.ByteString
getDescriptionBytes();
}
/**
* 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_ = "";
description_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new EnumValue();
}
@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;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
description_ = 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;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 value = 1;
* @return The value.
*/
@java.lang.Override
public long getValue() {
return value_;
}
public static final int LABEL_FIELD_NUMBER = 2;
private volatile java.lang.Object label_;
/**
* optional string label = 2;
* @return Whether the label field is set.
*/
@java.lang.Override
public boolean hasLabel() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string label = 2;
* @return The label.
*/
@java.lang.Override
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;
* @return The bytes for label.
*/
@java.lang.Override
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;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 3;
private volatile java.lang.Object description_;
/**
* optional string description = 3;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string description = 3;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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()) {
description_ = s;
}
return s;
}
}
/**
* optional string description = 3;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = 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_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
}
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_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
}
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 (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) 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();
}
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().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);
description_ = "";
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_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_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.description_ = description_;
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();
}
if (other.hasDescription()) {
bitField0_ |= 0x00000004;
description_ = other.description_;
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;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional int64 value = 1;
* @return The value.
*/
@java.lang.Override
public long getValue() {
return value_;
}
/**
* optional int64 value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(long value) {
bitField0_ |= 0x00000001;
value_ = value;
onChanged();
return this;
}
/**
* optional int64 value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
value_ = 0L;
onChanged();
return this;
}
private java.lang.Object label_ = "";
/**
* optional string label = 2;
* @return Whether the label field is set.
*/
public boolean hasLabel() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string label = 2;
* @return The label.
*/
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;
* @return The bytes for label.
*/
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;
* @param value The label to set.
* @return This builder for chaining.
*/
public Builder setLabel(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
label_ = value;
onChanged();
return this;
}
/**
* optional string label = 2;
* @return This builder for chaining.
*/
public Builder clearLabel() {
bitField0_ = (bitField0_ & ~0x00000002);
label_ = getDefaultInstance().getLabel();
onChanged();
return this;
}
/**
* optional string label = 2;
* @param value The bytes for label to set.
* @return This builder for chaining.
*/
public Builder setLabelBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
label_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
* optional string description = 3;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string description = 3;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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()) {
description_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string description = 3;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string description = 3;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
description_ = value;
onChanged();
return this;
}
/**
* optional string description = 3;
* @return This builder for chaining.
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000004);
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* optional string description = 3;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
description_ = 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 name = 16;
* @return Whether the name field is set.
*/
boolean hasName();
/**
* optional string name = 16;
* @return The name.
*/
java.lang.String getName();
/**
* optional string name = 16;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string qualifiedName = 17;
* @return Whether the qualifiedName field is set.
*/
boolean hasQualifiedName();
/**
* optional string qualifiedName = 17;
* @return The qualifiedName.
*/
java.lang.String getQualifiedName();
/**
* optional string qualifiedName = 17;
* @return The bytes for qualifiedName.
*/
com.google.protobuf.ByteString
getQualifiedNameBytes();
/**
* optional string shortDescription = 18;
* @return Whether the shortDescription field is set.
*/
boolean hasShortDescription();
/**
* optional string shortDescription = 18;
* @return The shortDescription.
*/
java.lang.String getShortDescription();
/**
* optional string shortDescription = 18;
* @return The bytes for shortDescription.
*/
com.google.protobuf.ByteString
getShortDescriptionBytes();
/**
* optional string longDescription = 19;
* @return Whether the longDescription field is set.
*/
boolean hasLongDescription();
/**
* optional string longDescription = 19;
* @return The longDescription.
*/
java.lang.String getLongDescription();
/**
* optional string longDescription = 19;
* @return The bytes for longDescription.
*/
com.google.protobuf.ByteString
getLongDescriptionBytes();
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
java.util.List
getAliasList();
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
org.yamcs.protobuf.Yamcs.NamedObjectId getAlias(int index);
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
int getAliasCount();
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getAliasOrBuilderList();
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getAliasOrBuilder(
int index);
/**
*
* Engineering type
*
*
* optional string engType = 1;
* @return Whether the engType field is set.
*/
boolean hasEngType();
/**
*
* Engineering type
*
*
* optional string engType = 1;
* @return The engType.
*/
java.lang.String getEngType();
/**
*
* Engineering type
*
*
* optional string engType = 1;
* @return The bytes for engType.
*/
com.google.protobuf.ByteString
getEngTypeBytes();
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
* @return Whether the dataEncoding field is set.
*/
boolean hasDataEncoding();
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
* @return The dataEncoding.
*/
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);
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
* @return Whether the defaultAlarm field is set.
*/
boolean hasDefaultAlarm();
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
* @return The defaultAlarm.
*/
org.yamcs.protobuf.Mdb.AlarmInfo getDefaultAlarm();
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* 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;
* @return Whether the absoluteTimeInfo field is set.
*/
boolean hasAbsoluteTimeInfo();
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
* @return The absoluteTimeInfo.
*/
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo getAbsoluteTimeInfo();
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
org.yamcs.protobuf.Mdb.AbsoluteTimeInfoOrBuilder getAbsoluteTimeInfoOrBuilder();
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
java.util.List
getContextAlarmList();
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
org.yamcs.protobuf.Mdb.ContextAlarmInfo getContextAlarm(int index);
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
int getContextAlarmCount();
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
java.util.List extends org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>
getContextAlarmOrBuilderList();
/**
*
* Contextual alarms
*
*
* 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;
* @return Whether the arrayInfo field is set.
*/
boolean hasArrayInfo();
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
* @return The arrayInfo.
*/
org.yamcs.protobuf.Mdb.ArrayInfo getArrayInfo();
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
org.yamcs.protobuf.Mdb.ArrayInfoOrBuilder getArrayInfoOrBuilder();
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
int getAncillaryDataCount();
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
boolean containsAncillaryData(
java.lang.String key);
/**
* Use {@link #getAncillaryDataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getAncillaryData();
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
java.util.Map
getAncillaryDataMap();
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
org.yamcs.protobuf.Mdb.AncillaryDataInfo getAncillaryDataOrDefault(
java.lang.String key,
org.yamcs.protobuf.Mdb.AncillaryDataInfo defaultValue);
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
org.yamcs.protobuf.Mdb.AncillaryDataInfo getAncillaryDataOrThrow(
java.lang.String key);
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
* @return Whether the numberFormat field is set.
*/
boolean hasNumberFormat();
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
* @return The numberFormat.
*/
org.yamcs.protobuf.Mdb.NumberFormatTypeInfo getNumberFormat();
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
*/
org.yamcs.protobuf.Mdb.NumberFormatTypeInfoOrBuilder getNumberFormatOrBuilder();
/**
*
* True if the engineering type supports signed representation.
* (only used by integer parameter types)
*
*
* optional bool signed = 12;
* @return Whether the signed field is set.
*/
boolean hasSigned();
/**
*
* True if the engineering type supports signed representation.
* (only used by integer parameter types)
*
*
* optional bool signed = 12;
* @return The signed.
*/
boolean getSigned();
/**
*
* Hint about the range of allowed engineering values
*
*
* optional int32 sizeInBits = 21;
* @return Whether the sizeInBits field is set.
*/
boolean hasSizeInBits();
/**
*
* Hint about the range of allowed engineering values
*
*
* optional int32 sizeInBits = 21;
* @return The sizeInBits.
*/
int getSizeInBits();
/**
*
* String representation of a boolean zero (only used by boolean types)
*
*
* optional string zeroStringValue = 13;
* @return Whether the zeroStringValue field is set.
*/
boolean hasZeroStringValue();
/**
*
* String representation of a boolean zero (only used by boolean types)
*
*
* optional string zeroStringValue = 13;
* @return The zeroStringValue.
*/
java.lang.String getZeroStringValue();
/**
*
* String representation of a boolean zero (only used by boolean types)
*
*
* optional string zeroStringValue = 13;
* @return The bytes for zeroStringValue.
*/
com.google.protobuf.ByteString
getZeroStringValueBytes();
/**
*
* String representation of a boolean one (only used by boolean types)
*
*
* optional string oneStringValue = 14;
* @return Whether the oneStringValue field is set.
*/
boolean hasOneStringValue();
/**
*
* String representation of a boolean one (only used by boolean types)
*
*
* optional string oneStringValue = 14;
* @return The oneStringValue.
*/
java.lang.String getOneStringValue();
/**
*
* String representation of a boolean one (only used by boolean types)
*
*
* optional string oneStringValue = 14;
* @return The bytes for oneStringValue.
*/
com.google.protobuf.ByteString
getOneStringValueBytes();
/**
*
* Which parameters this type is used by. This field is only
* populated when requesting directly a single parameter type.
*
*
* repeated .yamcs.protobuf.mdb.ParameterInfo usedBy = 15;
*/
java.util.List
getUsedByList();
/**
*
* Which parameters this type is used by. This field is only
* populated when requesting directly a single parameter type.
*
*
* repeated .yamcs.protobuf.mdb.ParameterInfo usedBy = 15;
*/
org.yamcs.protobuf.Mdb.ParameterInfo getUsedBy(int index);
/**
*
* Which parameters this type is used by. This field is only
* populated when requesting directly a single parameter type.
*
*
* repeated .yamcs.protobuf.mdb.ParameterInfo usedBy = 15;
*/
int getUsedByCount();
/**
*
* Which parameters this type is used by. This field is only
* populated when requesting directly a single parameter type.
*
*
* repeated .yamcs.protobuf.mdb.ParameterInfo usedBy = 15;
*/
java.util.List extends org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>
getUsedByOrBuilderList();
/**
*
* Which parameters this type is used by. This field is only
* populated when requesting directly a single parameter type.
*
*
* repeated .yamcs.protobuf.mdb.ParameterInfo usedBy = 15;
*/
org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getUsedByOrBuilder(
int index);
}
/**
* 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() {
name_ = "";
qualifiedName_ = "";
shortDescription_ = "";
longDescription_ = "";
alias_ = java.util.Collections.emptyList();
engType_ = "";
unitSet_ = java.util.Collections.emptyList();
enumValue_ = java.util.Collections.emptyList();
contextAlarm_ = java.util.Collections.emptyList();
member_ = java.util.Collections.emptyList();
zeroStringValue_ = "";
oneStringValue_ = "";
usedBy_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ParameterTypeInfo();
}
@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_ |= 0x00000010;
engType_ = bs;
break;
}
case 18: {
org.yamcs.protobuf.Mdb.DataEncodingInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) != 0)) {
subBuilder = dataEncoding_.toBuilder();
}
dataEncoding_ = input.readMessage(org.yamcs.protobuf.Mdb.DataEncodingInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(dataEncoding_);
dataEncoding_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000080) != 0)) {
unitSet_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
unitSet_.add(
input.readMessage(org.yamcs.protobuf.Mdb.UnitInfo.PARSER, extensionRegistry));
break;
}
case 34: {
org.yamcs.protobuf.Mdb.AlarmInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) != 0)) {
subBuilder = defaultAlarm_.toBuilder();
}
defaultAlarm_ = input.readMessage(org.yamcs.protobuf.Mdb.AlarmInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultAlarm_);
defaultAlarm_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000200) != 0)) {
enumValue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000200;
}
enumValue_.add(
input.readMessage(org.yamcs.protobuf.Mdb.EnumValue.PARSER, extensionRegistry));
break;
}
case 50: {
org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) != 0)) {
subBuilder = absoluteTimeInfo_.toBuilder();
}
absoluteTimeInfo_ = input.readMessage(org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(absoluteTimeInfo_);
absoluteTimeInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000800) != 0)) {
contextAlarm_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000800;
}
contextAlarm_.add(
input.readMessage(org.yamcs.protobuf.Mdb.ContextAlarmInfo.PARSER, extensionRegistry));
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00001000) != 0)) {
member_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00001000;
}
member_.add(
input.readMessage(org.yamcs.protobuf.Mdb.MemberInfo.PARSER, extensionRegistry));
break;
}
case 74: {
org.yamcs.protobuf.Mdb.ArrayInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000100) != 0)) {
subBuilder = arrayInfo_.toBuilder();
}
arrayInfo_ = input.readMessage(org.yamcs.protobuf.Mdb.ArrayInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(arrayInfo_);
arrayInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000100;
break;
}
case 82: {
if (!((mutable_bitField0_ & 0x00004000) != 0)) {
ancillaryData_ = com.google.protobuf.MapField.newMapField(
AncillaryDataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00004000;
}
com.google.protobuf.MapEntry
ancillaryData__ = input.readMessage(
AncillaryDataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
ancillaryData_.getMutableMap().put(
ancillaryData__.getKey(), ancillaryData__.getValue());
break;
}
case 90: {
org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) != 0)) {
subBuilder = numberFormat_.toBuilder();
}
numberFormat_ = input.readMessage(org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(numberFormat_);
numberFormat_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 96: {
bitField0_ |= 0x00000400;
signed_ = input.readBool();
break;
}
case 106: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00001000;
zeroStringValue_ = bs;
break;
}
case 114: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
oneStringValue_ = bs;
break;
}
case 122: {
if (!((mutable_bitField0_ & 0x00100000) != 0)) {
usedBy_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00100000;
}
usedBy_.add(
input.readMessage(org.yamcs.protobuf.Mdb.ParameterInfo.PARSER, extensionRegistry));
break;
}
case 130: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 138: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
qualifiedName_ = bs;
break;
}
case 146: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
shortDescription_ = bs;
break;
}
case 154: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
longDescription_ = bs;
break;
}
case 162: {
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 168: {
bitField0_ |= 0x00000800;
sizeInBits_ = 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_ & 0x00000080) != 0)) {
unitSet_ = java.util.Collections.unmodifiableList(unitSet_);
}
if (((mutable_bitField0_ & 0x00000200) != 0)) {
enumValue_ = java.util.Collections.unmodifiableList(enumValue_);
}
if (((mutable_bitField0_ & 0x00000800) != 0)) {
contextAlarm_ = java.util.Collections.unmodifiableList(contextAlarm_);
}
if (((mutable_bitField0_ & 0x00001000) != 0)) {
member_ = java.util.Collections.unmodifiableList(member_);
}
if (((mutable_bitField0_ & 0x00100000) != 0)) {
usedBy_ = java.util.Collections.unmodifiableList(usedBy_);
}
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_ParameterTypeInfo_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 10:
return internalGetAncillaryData();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@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 NAME_FIELD_NUMBER = 16;
private volatile java.lang.Object name_;
/**
* optional string name = 16;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 16;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 16;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUALIFIEDNAME_FIELD_NUMBER = 17;
private volatile java.lang.Object qualifiedName_;
/**
* optional string qualifiedName = 17;
* @return Whether the qualifiedName field is set.
*/
@java.lang.Override
public boolean hasQualifiedName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string qualifiedName = 17;
* @return The qualifiedName.
*/
@java.lang.Override
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 = 17;
* @return The bytes for qualifiedName.
*/
@java.lang.Override
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 = 18;
private volatile java.lang.Object shortDescription_;
/**
* optional string shortDescription = 18;
* @return Whether the shortDescription field is set.
*/
@java.lang.Override
public boolean hasShortDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string shortDescription = 18;
* @return The shortDescription.
*/
@java.lang.Override
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 = 18;
* @return The bytes for shortDescription.
*/
@java.lang.Override
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 = 19;
private volatile java.lang.Object longDescription_;
/**
* optional string longDescription = 19;
* @return Whether the longDescription field is set.
*/
@java.lang.Override
public boolean hasLongDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string longDescription = 19;
* @return The longDescription.
*/
@java.lang.Override
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 = 19;
* @return The bytes for longDescription.
*/
@java.lang.Override
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 = 20;
private java.util.List alias_;
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
@java.lang.Override
public java.util.List getAliasList() {
return alias_;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getAliasOrBuilderList() {
return alias_;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
@java.lang.Override
public int getAliasCount() {
return alias_.size();
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
@java.lang.Override
public org.yamcs.protobuf.Yamcs.NamedObjectId getAlias(int index) {
return alias_.get(index);
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
@java.lang.Override
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getAliasOrBuilder(
int index) {
return alias_.get(index);
}
public static final int ENGTYPE_FIELD_NUMBER = 1;
private volatile java.lang.Object engType_;
/**
*
* Engineering type
*
*
* optional string engType = 1;
* @return Whether the engType field is set.
*/
@java.lang.Override
public boolean hasEngType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Engineering type
*
*
* optional string engType = 1;
* @return The engType.
*/
@java.lang.Override
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;
}
}
/**
*
* Engineering type
*
*
* optional string engType = 1;
* @return The bytes for engType.
*/
@java.lang.Override
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;
* @return Whether the dataEncoding field is set.
*/
@java.lang.Override
public boolean hasDataEncoding() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
* @return The dataEncoding.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.DataEncodingInfo getDataEncoding() {
return dataEncoding_ == null ? org.yamcs.protobuf.Mdb.DataEncodingInfo.getDefaultInstance() : dataEncoding_;
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
@java.lang.Override
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;
*/
@java.lang.Override
public java.util.List getUnitSetList() {
return unitSet_;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.UnitInfoOrBuilder>
getUnitSetOrBuilderList() {
return unitSet_;
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
@java.lang.Override
public int getUnitSetCount() {
return unitSet_.size();
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.UnitInfo getUnitSet(int index) {
return unitSet_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.UnitInfo unitSet = 3;
*/
@java.lang.Override
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_;
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
* @return Whether the defaultAlarm field is set.
*/
@java.lang.Override
public boolean hasDefaultAlarm() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
* @return The defaultAlarm.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.AlarmInfo getDefaultAlarm() {
return defaultAlarm_ == null ? org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance() : defaultAlarm_;
}
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
@java.lang.Override
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;
*/
@java.lang.Override
public java.util.List getEnumValueList() {
return enumValue_;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.EnumValueOrBuilder>
getEnumValueOrBuilderList() {
return enumValue_;
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
@java.lang.Override
public int getEnumValueCount() {
return enumValue_.size();
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.EnumValue getEnumValue(int index) {
return enumValue_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.EnumValue enumValue = 5;
*/
@java.lang.Override
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;
* @return Whether the absoluteTimeInfo field is set.
*/
@java.lang.Override
public boolean hasAbsoluteTimeInfo() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
* @return The absoluteTimeInfo.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.AbsoluteTimeInfo getAbsoluteTimeInfo() {
return absoluteTimeInfo_ == null ? org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.getDefaultInstance() : absoluteTimeInfo_;
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
@java.lang.Override
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_;
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
@java.lang.Override
public java.util.List getContextAlarmList() {
return contextAlarm_;
}
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>
getContextAlarmOrBuilderList() {
return contextAlarm_;
}
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
@java.lang.Override
public int getContextAlarmCount() {
return contextAlarm_.size();
}
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextAlarmInfo getContextAlarm(int index) {
return contextAlarm_.get(index);
}
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
@java.lang.Override
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;
*/
@java.lang.Override
public java.util.List getMemberList() {
return member_;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.MemberInfoOrBuilder>
getMemberOrBuilderList() {
return member_;
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
@java.lang.Override
public int getMemberCount() {
return member_.size();
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.MemberInfo getMember(int index) {
return member_.get(index);
}
/**
* repeated .yamcs.protobuf.mdb.MemberInfo member = 8;
*/
@java.lang.Override
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;
* @return Whether the arrayInfo field is set.
*/
@java.lang.Override
public boolean hasArrayInfo() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
* @return The arrayInfo.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ArrayInfo getArrayInfo() {
return arrayInfo_ == null ? org.yamcs.protobuf.Mdb.ArrayInfo.getDefaultInstance() : arrayInfo_;
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ArrayInfoOrBuilder getArrayInfoOrBuilder() {
return arrayInfo_ == null ? org.yamcs.protobuf.Mdb.ArrayInfo.getDefaultInstance() : arrayInfo_;
}
public static final int ANCILLARYDATA_FIELD_NUMBER = 10;
private static final class AncillaryDataDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.yamcs.protobuf.Mdb.AncillaryDataInfo> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.yamcs.protobuf.Mdb.internal_static_yamcs_protobuf_mdb_ParameterTypeInfo_AncillaryDataEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.yamcs.protobuf.Mdb.AncillaryDataInfo.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, org.yamcs.protobuf.Mdb.AncillaryDataInfo> ancillaryData_;
private com.google.protobuf.MapField
internalGetAncillaryData() {
if (ancillaryData_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AncillaryDataDefaultEntryHolder.defaultEntry);
}
return ancillaryData_;
}
public int getAncillaryDataCount() {
return internalGetAncillaryData().getMap().size();
}
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
@java.lang.Override
public boolean containsAncillaryData(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAncillaryData().getMap().containsKey(key);
}
/**
* Use {@link #getAncillaryDataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAncillaryData() {
return getAncillaryDataMap();
}
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
@java.lang.Override
public java.util.Map getAncillaryDataMap() {
return internalGetAncillaryData().getMap();
}
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.AncillaryDataInfo getAncillaryDataOrDefault(
java.lang.String key,
org.yamcs.protobuf.Mdb.AncillaryDataInfo defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAncillaryData().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.AncillaryDataInfo getAncillaryDataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAncillaryData().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int NUMBERFORMAT_FIELD_NUMBER = 11;
private org.yamcs.protobuf.Mdb.NumberFormatTypeInfo numberFormat_;
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
* @return Whether the numberFormat field is set.
*/
@java.lang.Override
public boolean hasNumberFormat() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
* @return The numberFormat.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.NumberFormatTypeInfo getNumberFormat() {
return numberFormat_ == null ? org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.getDefaultInstance() : numberFormat_;
}
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.NumberFormatTypeInfoOrBuilder getNumberFormatOrBuilder() {
return numberFormat_ == null ? org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.getDefaultInstance() : numberFormat_;
}
public static final int SIGNED_FIELD_NUMBER = 12;
private boolean signed_;
/**
*
* True if the engineering type supports signed representation.
* (only used by integer parameter types)
*
*
* optional bool signed = 12;
* @return Whether the signed field is set.
*/
@java.lang.Override
public boolean hasSigned() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* True if the engineering type supports signed representation.
* (only used by integer parameter types)
*
*
* optional bool signed = 12;
* @return The signed.
*/
@java.lang.Override
public boolean getSigned() {
return signed_;
}
public static final int SIZEINBITS_FIELD_NUMBER = 21;
private int sizeInBits_;
/**
*
* Hint about the range of allowed engineering values
*
*
* optional int32 sizeInBits = 21;
* @return Whether the sizeInBits field is set.
*/
@java.lang.Override
public boolean hasSizeInBits() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* Hint about the range of allowed engineering values
*
*
* optional int32 sizeInBits = 21;
* @return The sizeInBits.
*/
@java.lang.Override
public int getSizeInBits() {
return sizeInBits_;
}
public static final int ZEROSTRINGVALUE_FIELD_NUMBER = 13;
private volatile java.lang.Object zeroStringValue_;
/**
*
* String representation of a boolean zero (only used by boolean types)
*
*
* optional string zeroStringValue = 13;
* @return Whether the zeroStringValue field is set.
*/
@java.lang.Override
public boolean hasZeroStringValue() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* String representation of a boolean zero (only used by boolean types)
*
*
* optional string zeroStringValue = 13;
* @return The zeroStringValue.
*/
@java.lang.Override
public java.lang.String getZeroStringValue() {
java.lang.Object ref = zeroStringValue_;
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()) {
zeroStringValue_ = s;
}
return s;
}
}
/**
*
* String representation of a boolean zero (only used by boolean types)
*
*
* optional string zeroStringValue = 13;
* @return The bytes for zeroStringValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getZeroStringValueBytes() {
java.lang.Object ref = zeroStringValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zeroStringValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ONESTRINGVALUE_FIELD_NUMBER = 14;
private volatile java.lang.Object oneStringValue_;
/**
*
* String representation of a boolean one (only used by boolean types)
*
*
* optional string oneStringValue = 14;
* @return Whether the oneStringValue field is set.
*/
@java.lang.Override
public boolean hasOneStringValue() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* String representation of a boolean one (only used by boolean types)
*
*
* optional string oneStringValue = 14;
* @return The oneStringValue.
*/
@java.lang.Override
public java.lang.String getOneStringValue() {
java.lang.Object ref = oneStringValue_;
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()) {
oneStringValue_ = s;
}
return s;
}
}
/**
*
* String representation of a boolean one (only used by boolean types)
*
*
* optional string oneStringValue = 14;
* @return The bytes for oneStringValue.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOneStringValueBytes() {
java.lang.Object ref = oneStringValue_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
oneStringValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int USEDBY_FIELD_NUMBER = 15;
private java.util.List usedBy_;
/**
*
* Which parameters this type is used by. This field is only
* populated when requesting directly a single parameter type.
*
*
* repeated .yamcs.protobuf.mdb.ParameterInfo usedBy = 15;
*/
@java.lang.Override
public java.util.List getUsedByList() {
return usedBy_;
}
/**
*
* Which parameters this type is used by. This field is only
* populated when requesting directly a single parameter type.
*
*
* repeated .yamcs.protobuf.mdb.ParameterInfo usedBy = 15;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>
getUsedByOrBuilderList() {
return usedBy_;
}
/**
*
* Which parameters this type is used by. This field is only
* populated when requesting directly a single parameter type.
*
*
* repeated .yamcs.protobuf.mdb.ParameterInfo usedBy = 15;
*/
@java.lang.Override
public int getUsedByCount() {
return usedBy_.size();
}
/**
*
* Which parameters this type is used by. This field is only
* populated when requesting directly a single parameter type.
*
*
* repeated .yamcs.protobuf.mdb.ParameterInfo usedBy = 15;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ParameterInfo getUsedBy(int index) {
return usedBy_.get(index);
}
/**
*
* Which parameters this type is used by. This field is only
* populated when requesting directly a single parameter type.
*
*
* repeated .yamcs.protobuf.mdb.ParameterInfo usedBy = 15;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getUsedByOrBuilder(
int index) {
return usedBy_.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 < getAliasCount(); i++) {
if (!getAlias(i).isInitialized()) {
memoizedIsInitialized = 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;
}
}
for (int i = 0; i < getUsedByCount(); i++) {
if (!getUsedBy(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_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, engType_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(2, getDataEncoding());
}
for (int i = 0; i < unitSet_.size(); i++) {
output.writeMessage(3, unitSet_.get(i));
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(4, getDefaultAlarm());
}
for (int i = 0; i < enumValue_.size(); i++) {
output.writeMessage(5, enumValue_.get(i));
}
if (((bitField0_ & 0x00000080) != 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_ & 0x00000100) != 0)) {
output.writeMessage(9, getArrayInfo());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetAncillaryData(),
AncillaryDataDefaultEntryHolder.defaultEntry,
10);
if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(11, getNumberFormat());
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeBool(12, signed_);
}
if (((bitField0_ & 0x00001000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 13, zeroStringValue_);
}
if (((bitField0_ & 0x00002000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, oneStringValue_);
}
for (int i = 0; i < usedBy_.size(); i++) {
output.writeMessage(15, usedBy_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 16, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 17, qualifiedName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 18, shortDescription_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 19, longDescription_);
}
for (int i = 0; i < alias_.size(); i++) {
output.writeMessage(20, alias_.get(i));
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeInt32(21, sizeInBits_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, engType_);
}
if (((bitField0_ & 0x00000020) != 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_ & 0x00000040) != 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_ & 0x00000080) != 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_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, getArrayInfo());
}
for (java.util.Map.Entry entry
: internalGetAncillaryData().getMap().entrySet()) {
com.google.protobuf.MapEntry
ancillaryData__ = AncillaryDataDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, ancillaryData__);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(11, getNumberFormat());
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, signed_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, zeroStringValue_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, oneStringValue_);
}
for (int i = 0; i < usedBy_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, usedBy_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, qualifiedName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(18, shortDescription_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(19, longDescription_);
}
for (int i = 0; i < alias_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(20, alias_.get(i));
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(21, sizeInBits_);
}
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 (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 (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 (!internalGetAncillaryData().equals(
other.internalGetAncillaryData())) return false;
if (hasNumberFormat() != other.hasNumberFormat()) return false;
if (hasNumberFormat()) {
if (!getNumberFormat()
.equals(other.getNumberFormat())) return false;
}
if (hasSigned() != other.hasSigned()) return false;
if (hasSigned()) {
if (getSigned()
!= other.getSigned()) return false;
}
if (hasSizeInBits() != other.hasSizeInBits()) return false;
if (hasSizeInBits()) {
if (getSizeInBits()
!= other.getSizeInBits()) return false;
}
if (hasZeroStringValue() != other.hasZeroStringValue()) return false;
if (hasZeroStringValue()) {
if (!getZeroStringValue()
.equals(other.getZeroStringValue())) return false;
}
if (hasOneStringValue() != other.hasOneStringValue()) return false;
if (hasOneStringValue()) {
if (!getOneStringValue()
.equals(other.getOneStringValue())) return false;
}
if (!getUsedByList()
.equals(other.getUsedByList())) 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 (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();
}
if (!internalGetAncillaryData().getMap().isEmpty()) {
hash = (37 * hash) + ANCILLARYDATA_FIELD_NUMBER;
hash = (53 * hash) + internalGetAncillaryData().hashCode();
}
if (hasNumberFormat()) {
hash = (37 * hash) + NUMBERFORMAT_FIELD_NUMBER;
hash = (53 * hash) + getNumberFormat().hashCode();
}
if (hasSigned()) {
hash = (37 * hash) + SIGNED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSigned());
}
if (hasSizeInBits()) {
hash = (37 * hash) + SIZEINBITS_FIELD_NUMBER;
hash = (53 * hash) + getSizeInBits();
}
if (hasZeroStringValue()) {
hash = (37 * hash) + ZEROSTRINGVALUE_FIELD_NUMBER;
hash = (53 * hash) + getZeroStringValue().hashCode();
}
if (hasOneStringValue()) {
hash = (37 * hash) + ONESTRINGVALUE_FIELD_NUMBER;
hash = (53 * hash) + getOneStringValue().hashCode();
}
if (getUsedByCount() > 0) {
hash = (37 * hash) + USEDBY_FIELD_NUMBER;
hash = (53 * hash) + getUsedByList().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;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 10:
return internalGetAncillaryData();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 10:
return internalGetMutableAncillaryData();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@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) {
getAliasFieldBuilder();
getDataEncodingFieldBuilder();
getUnitSetFieldBuilder();
getDefaultAlarmFieldBuilder();
getEnumValueFieldBuilder();
getAbsoluteTimeInfoFieldBuilder();
getContextAlarmFieldBuilder();
getMemberFieldBuilder();
getArrayInfoFieldBuilder();
getNumberFormatFieldBuilder();
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();
}
engType_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
if (dataEncodingBuilder_ == null) {
dataEncoding_ = null;
} else {
dataEncodingBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (unitSetBuilder_ == null) {
unitSet_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
unitSetBuilder_.clear();
}
if (defaultAlarmBuilder_ == null) {
defaultAlarm_ = null;
} else {
defaultAlarmBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
if (enumValueBuilder_ == null) {
enumValue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000200);
} else {
enumValueBuilder_.clear();
}
if (absoluteTimeInfoBuilder_ == null) {
absoluteTimeInfo_ = null;
} else {
absoluteTimeInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
if (contextAlarmBuilder_ == null) {
contextAlarm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
} else {
contextAlarmBuilder_.clear();
}
if (memberBuilder_ == null) {
member_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00001000);
} else {
memberBuilder_.clear();
}
if (arrayInfoBuilder_ == null) {
arrayInfo_ = null;
} else {
arrayInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
internalGetMutableAncillaryData().clear();
if (numberFormatBuilder_ == null) {
numberFormat_ = null;
} else {
numberFormatBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00008000);
signed_ = false;
bitField0_ = (bitField0_ & ~0x00010000);
sizeInBits_ = 0;
bitField0_ = (bitField0_ & ~0x00020000);
zeroStringValue_ = "";
bitField0_ = (bitField0_ & ~0x00040000);
oneStringValue_ = "";
bitField0_ = (bitField0_ & ~0x00080000);
if (usedByBuilder_ == null) {
usedBy_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00100000);
} else {
usedByBuilder_.clear();
}
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.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)) {
to_bitField0_ |= 0x00000010;
}
result.engType_ = engType_;
if (((from_bitField0_ & 0x00000040) != 0)) {
if (dataEncodingBuilder_ == null) {
result.dataEncoding_ = dataEncoding_;
} else {
result.dataEncoding_ = dataEncodingBuilder_.build();
}
to_bitField0_ |= 0x00000020;
}
if (unitSetBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
unitSet_ = java.util.Collections.unmodifiableList(unitSet_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.unitSet_ = unitSet_;
} else {
result.unitSet_ = unitSetBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
if (defaultAlarmBuilder_ == null) {
result.defaultAlarm_ = defaultAlarm_;
} else {
result.defaultAlarm_ = defaultAlarmBuilder_.build();
}
to_bitField0_ |= 0x00000040;
}
if (enumValueBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0)) {
enumValue_ = java.util.Collections.unmodifiableList(enumValue_);
bitField0_ = (bitField0_ & ~0x00000200);
}
result.enumValue_ = enumValue_;
} else {
result.enumValue_ = enumValueBuilder_.build();
}
if (((from_bitField0_ & 0x00000400) != 0)) {
if (absoluteTimeInfoBuilder_ == null) {
result.absoluteTimeInfo_ = absoluteTimeInfo_;
} else {
result.absoluteTimeInfo_ = absoluteTimeInfoBuilder_.build();
}
to_bitField0_ |= 0x00000080;
}
if (contextAlarmBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0)) {
contextAlarm_ = java.util.Collections.unmodifiableList(contextAlarm_);
bitField0_ = (bitField0_ & ~0x00000800);
}
result.contextAlarm_ = contextAlarm_;
} else {
result.contextAlarm_ = contextAlarmBuilder_.build();
}
if (memberBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0)) {
member_ = java.util.Collections.unmodifiableList(member_);
bitField0_ = (bitField0_ & ~0x00001000);
}
result.member_ = member_;
} else {
result.member_ = memberBuilder_.build();
}
if (((from_bitField0_ & 0x00002000) != 0)) {
if (arrayInfoBuilder_ == null) {
result.arrayInfo_ = arrayInfo_;
} else {
result.arrayInfo_ = arrayInfoBuilder_.build();
}
to_bitField0_ |= 0x00000100;
}
result.ancillaryData_ = internalGetAncillaryData();
result.ancillaryData_.makeImmutable();
if (((from_bitField0_ & 0x00008000) != 0)) {
if (numberFormatBuilder_ == null) {
result.numberFormat_ = numberFormat_;
} else {
result.numberFormat_ = numberFormatBuilder_.build();
}
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.signed_ = signed_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
result.sizeInBits_ = sizeInBits_;
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00040000) != 0)) {
to_bitField0_ |= 0x00001000;
}
result.zeroStringValue_ = zeroStringValue_;
if (((from_bitField0_ & 0x00080000) != 0)) {
to_bitField0_ |= 0x00002000;
}
result.oneStringValue_ = oneStringValue_;
if (usedByBuilder_ == null) {
if (((bitField0_ & 0x00100000) != 0)) {
usedBy_ = java.util.Collections.unmodifiableList(usedBy_);
bitField0_ = (bitField0_ & ~0x00100000);
}
result.usedBy_ = usedBy_;
} else {
result.usedBy_ = usedByBuilder_.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.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.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.hasEngType()) {
bitField0_ |= 0x00000020;
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_ & ~0x00000080);
} else {
ensureUnitSetIsMutable();
unitSet_.addAll(other.unitSet_);
}
onChanged();
}
} else {
if (!other.unitSet_.isEmpty()) {
if (unitSetBuilder_.isEmpty()) {
unitSetBuilder_.dispose();
unitSetBuilder_ = null;
unitSet_ = other.unitSet_;
bitField0_ = (bitField0_ & ~0x00000080);
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_ & ~0x00000200);
} else {
ensureEnumValueIsMutable();
enumValue_.addAll(other.enumValue_);
}
onChanged();
}
} else {
if (!other.enumValue_.isEmpty()) {
if (enumValueBuilder_.isEmpty()) {
enumValueBuilder_.dispose();
enumValueBuilder_ = null;
enumValue_ = other.enumValue_;
bitField0_ = (bitField0_ & ~0x00000200);
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_ & ~0x00000800);
} else {
ensureContextAlarmIsMutable();
contextAlarm_.addAll(other.contextAlarm_);
}
onChanged();
}
} else {
if (!other.contextAlarm_.isEmpty()) {
if (contextAlarmBuilder_.isEmpty()) {
contextAlarmBuilder_.dispose();
contextAlarmBuilder_ = null;
contextAlarm_ = other.contextAlarm_;
bitField0_ = (bitField0_ & ~0x00000800);
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_ & ~0x00001000);
} else {
ensureMemberIsMutable();
member_.addAll(other.member_);
}
onChanged();
}
} else {
if (!other.member_.isEmpty()) {
if (memberBuilder_.isEmpty()) {
memberBuilder_.dispose();
memberBuilder_ = null;
member_ = other.member_;
bitField0_ = (bitField0_ & ~0x00001000);
memberBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getMemberFieldBuilder() : null;
} else {
memberBuilder_.addAllMessages(other.member_);
}
}
}
if (other.hasArrayInfo()) {
mergeArrayInfo(other.getArrayInfo());
}
internalGetMutableAncillaryData().mergeFrom(
other.internalGetAncillaryData());
if (other.hasNumberFormat()) {
mergeNumberFormat(other.getNumberFormat());
}
if (other.hasSigned()) {
setSigned(other.getSigned());
}
if (other.hasSizeInBits()) {
setSizeInBits(other.getSizeInBits());
}
if (other.hasZeroStringValue()) {
bitField0_ |= 0x00040000;
zeroStringValue_ = other.zeroStringValue_;
onChanged();
}
if (other.hasOneStringValue()) {
bitField0_ |= 0x00080000;
oneStringValue_ = other.oneStringValue_;
onChanged();
}
if (usedByBuilder_ == null) {
if (!other.usedBy_.isEmpty()) {
if (usedBy_.isEmpty()) {
usedBy_ = other.usedBy_;
bitField0_ = (bitField0_ & ~0x00100000);
} else {
ensureUsedByIsMutable();
usedBy_.addAll(other.usedBy_);
}
onChanged();
}
} else {
if (!other.usedBy_.isEmpty()) {
if (usedByBuilder_.isEmpty()) {
usedByBuilder_.dispose();
usedByBuilder_ = null;
usedBy_ = other.usedBy_;
bitField0_ = (bitField0_ & ~0x00100000);
usedByBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getUsedByFieldBuilder() : null;
} else {
usedByBuilder_.addAllMessages(other.usedBy_);
}
}
}
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 (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;
}
}
for (int i = 0; i < getUsedByCount(); i++) {
if (!getUsedBy(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.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 name_ = "";
/**
* optional string name = 16;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 16;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 16;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 16;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 16;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 16;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object qualifiedName_ = "";
/**
* optional string qualifiedName = 17;
* @return Whether the qualifiedName field is set.
*/
public boolean hasQualifiedName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string qualifiedName = 17;
* @return The qualifiedName.
*/
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 = 17;
* @return The bytes for qualifiedName.
*/
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 = 17;
* @param value The qualifiedName to set.
* @return This builder for chaining.
*/
public Builder setQualifiedName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
qualifiedName_ = value;
onChanged();
return this;
}
/**
* optional string qualifiedName = 17;
* @return This builder for chaining.
*/
public Builder clearQualifiedName() {
bitField0_ = (bitField0_ & ~0x00000002);
qualifiedName_ = getDefaultInstance().getQualifiedName();
onChanged();
return this;
}
/**
* optional string qualifiedName = 17;
* @param value The bytes for qualifiedName to set.
* @return This builder for chaining.
*/
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 = 18;
* @return Whether the shortDescription field is set.
*/
public boolean hasShortDescription() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string shortDescription = 18;
* @return The shortDescription.
*/
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 = 18;
* @return The bytes for shortDescription.
*/
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 = 18;
* @param value The shortDescription to set.
* @return This builder for chaining.
*/
public Builder setShortDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
shortDescription_ = value;
onChanged();
return this;
}
/**
* optional string shortDescription = 18;
* @return This builder for chaining.
*/
public Builder clearShortDescription() {
bitField0_ = (bitField0_ & ~0x00000004);
shortDescription_ = getDefaultInstance().getShortDescription();
onChanged();
return this;
}
/**
* optional string shortDescription = 18;
* @param value The bytes for shortDescription to set.
* @return This builder for chaining.
*/
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 = 19;
* @return Whether the longDescription field is set.
*/
public boolean hasLongDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string longDescription = 19;
* @return The longDescription.
*/
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 = 19;
* @return The bytes for longDescription.
*/
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 = 19;
* @param value The longDescription to set.
* @return This builder for chaining.
*/
public Builder setLongDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
longDescription_ = value;
onChanged();
return this;
}
/**
* optional string longDescription = 19;
* @return This builder for chaining.
*/
public Builder clearLongDescription() {
bitField0_ = (bitField0_ & ~0x00000008);
longDescription_ = getDefaultInstance().getLongDescription();
onChanged();
return this;
}
/**
* optional string longDescription = 19;
* @param value The bytes for longDescription to set.
* @return This builder for chaining.
*/
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 = 20;
*/
public java.util.List getAliasList() {
if (aliasBuilder_ == null) {
return java.util.Collections.unmodifiableList(alias_);
} else {
return aliasBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
public int getAliasCount() {
if (aliasBuilder_ == null) {
return alias_.size();
} else {
return aliasBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
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 = 20;
*/
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 = 20;
*/
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 = 20;
*/
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 = 20;
*/
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 = 20;
*/
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 = 20;
*/
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 = 20;
*/
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 = 20;
*/
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 = 20;
*/
public Builder removeAlias(int index) {
if (aliasBuilder_ == null) {
ensureAliasIsMutable();
alias_.remove(index);
onChanged();
} else {
aliasBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder getAliasBuilder(
int index) {
return getAliasFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
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 = 20;
*/
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 = 20;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addAliasBuilder() {
return getAliasFieldBuilder().addBuilder(
org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.NamedObjectId alias = 20;
*/
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 = 20;
*/
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 java.lang.Object engType_ = "";
/**
*
* Engineering type
*
*
* optional string engType = 1;
* @return Whether the engType field is set.
*/
public boolean hasEngType() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Engineering type
*
*
* optional string engType = 1;
* @return The engType.
*/
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;
}
}
/**
*
* Engineering type
*
*
* optional string engType = 1;
* @return The bytes for engType.
*/
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;
}
}
/**
*
* Engineering type
*
*
* optional string engType = 1;
* @param value The engType to set.
* @return This builder for chaining.
*/
public Builder setEngType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
engType_ = value;
onChanged();
return this;
}
/**
*
* Engineering type
*
*
* optional string engType = 1;
* @return This builder for chaining.
*/
public Builder clearEngType() {
bitField0_ = (bitField0_ & ~0x00000020);
engType_ = getDefaultInstance().getEngType();
onChanged();
return this;
}
/**
*
* Engineering type
*
*
* optional string engType = 1;
* @param value The bytes for engType to set.
* @return This builder for chaining.
*/
public Builder setEngTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
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;
* @return Whether the dataEncoding field is set.
*/
public boolean hasDataEncoding() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
* @return The dataEncoding.
*/
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_ |= 0x00000040;
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_ |= 0x00000040;
return this;
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public Builder mergeDataEncoding(org.yamcs.protobuf.Mdb.DataEncodingInfo value) {
if (dataEncodingBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 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_ |= 0x00000040;
return this;
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public Builder clearDataEncoding() {
if (dataEncodingBuilder_ == null) {
dataEncoding_ = null;
onChanged();
} else {
dataEncodingBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* optional .yamcs.protobuf.mdb.DataEncodingInfo dataEncoding = 2;
*/
public org.yamcs.protobuf.Mdb.DataEncodingInfo.Builder getDataEncodingBuilder() {
bitField0_ |= 0x00000040;
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_ & 0x00000080) != 0)) {
unitSet_ = new java.util.ArrayList(unitSet_);
bitField0_ |= 0x00000080;
}
}
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_ & ~0x00000080);
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_ & 0x00000080) != 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_;
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
* @return Whether the defaultAlarm field is set.
*/
public boolean hasDefaultAlarm() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
* @return The defaultAlarm.
*/
public org.yamcs.protobuf.Mdb.AlarmInfo getDefaultAlarm() {
if (defaultAlarmBuilder_ == null) {
return defaultAlarm_ == null ? org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance() : defaultAlarm_;
} else {
return defaultAlarmBuilder_.getMessage();
}
}
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* 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_ |= 0x00000100;
return this;
}
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* 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_ |= 0x00000100;
return this;
}
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public Builder mergeDefaultAlarm(org.yamcs.protobuf.Mdb.AlarmInfo value) {
if (defaultAlarmBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 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_ |= 0x00000100;
return this;
}
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public Builder clearDefaultAlarm() {
if (defaultAlarmBuilder_ == null) {
defaultAlarm_ = null;
onChanged();
} else {
defaultAlarmBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 4;
*/
public org.yamcs.protobuf.Mdb.AlarmInfo.Builder getDefaultAlarmBuilder() {
bitField0_ |= 0x00000100;
onChanged();
return getDefaultAlarmFieldBuilder().getBuilder();
}
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* 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_;
}
}
/**
*
* Default Alarm, effective when no contextual alarm takes precedence.
*
*
* 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_ & 0x00000200) != 0)) {
enumValue_ = new java.util.ArrayList(enumValue_);
bitField0_ |= 0x00000200;
}
}
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_ & ~0x00000200);
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_ & 0x00000200) != 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;
* @return Whether the absoluteTimeInfo field is set.
*/
public boolean hasAbsoluteTimeInfo() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
* @return The absoluteTimeInfo.
*/
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_ |= 0x00000400;
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_ |= 0x00000400;
return this;
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public Builder mergeAbsoluteTimeInfo(org.yamcs.protobuf.Mdb.AbsoluteTimeInfo value) {
if (absoluteTimeInfoBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 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_ |= 0x00000400;
return this;
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public Builder clearAbsoluteTimeInfo() {
if (absoluteTimeInfoBuilder_ == null) {
absoluteTimeInfo_ = null;
onChanged();
} else {
absoluteTimeInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
* optional .yamcs.protobuf.mdb.AbsoluteTimeInfo absoluteTimeInfo = 6;
*/
public org.yamcs.protobuf.Mdb.AbsoluteTimeInfo.Builder getAbsoluteTimeInfoBuilder() {
bitField0_ |= 0x00000400;
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_ & 0x00000800) != 0)) {
contextAlarm_ = new java.util.ArrayList(contextAlarm_);
bitField0_ |= 0x00000800;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextAlarmInfo, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder, org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder> contextAlarmBuilder_;
/**
*
* Contextual alarms
*
*
* 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();
}
}
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public int getContextAlarmCount() {
if (contextAlarmBuilder_ == null) {
return contextAlarm_.size();
} else {
return contextAlarmBuilder_.getCount();
}
}
/**
*
* Contextual alarms
*
*
* 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);
}
}
/**
*
* Contextual alarms
*
*
* 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;
}
/**
*
* Contextual alarms
*
*
* 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;
}
/**
*
* Contextual alarms
*
*
* 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;
}
/**
*
* Contextual alarms
*
*
* 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;
}
/**
*
* Contextual alarms
*
*
* 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;
}
/**
*
* Contextual alarms
*
*
* 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;
}
/**
*
* Contextual alarms
*
*
* 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;
}
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public Builder clearContextAlarm() {
if (contextAlarmBuilder_ == null) {
contextAlarm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000800);
onChanged();
} else {
contextAlarmBuilder_.clear();
}
return this;
}
/**
*
* Contextual alarms
*
*
* 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;
}
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder getContextAlarmBuilder(
int index) {
return getContextAlarmFieldBuilder().getBuilder(index);
}
/**
*
* Contextual alarms
*
*
* 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);
}
}
/**
*
* Contextual alarms
*
*
* 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_);
}
}
/**
*
* Contextual alarms
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 7;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder addContextAlarmBuilder() {
return getContextAlarmFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ContextAlarmInfo.getDefaultInstance());
}
/**
*
* Contextual alarms
*
*
* 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());
}
/**
*
* Contextual alarms
*
*
* 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_ & 0x00000800) != 0),
getParentForChildren(),
isClean());
contextAlarm_ = null;
}
return contextAlarmBuilder_;
}
private java.util.List member_ =
java.util.Collections.emptyList();
private void ensureMemberIsMutable() {
if (!((bitField0_ & 0x00001000) != 0)) {
member_ = new java.util.ArrayList(member_);
bitField0_ |= 0x00001000;
}
}
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_ & ~0x00001000);
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_ & 0x00001000) != 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;
* @return Whether the arrayInfo field is set.
*/
public boolean hasArrayInfo() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
* @return The arrayInfo.
*/
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_ |= 0x00002000;
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_ |= 0x00002000;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public Builder mergeArrayInfo(org.yamcs.protobuf.Mdb.ArrayInfo value) {
if (arrayInfoBuilder_ == null) {
if (((bitField0_ & 0x00002000) != 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_ |= 0x00002000;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public Builder clearArrayInfo() {
if (arrayInfoBuilder_ == null) {
arrayInfo_ = null;
onChanged();
} else {
arrayInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00002000);
return this;
}
/**
* optional .yamcs.protobuf.mdb.ArrayInfo arrayInfo = 9;
*/
public org.yamcs.protobuf.Mdb.ArrayInfo.Builder getArrayInfoBuilder() {
bitField0_ |= 0x00002000;
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_;
}
private com.google.protobuf.MapField<
java.lang.String, org.yamcs.protobuf.Mdb.AncillaryDataInfo> ancillaryData_;
private com.google.protobuf.MapField
internalGetAncillaryData() {
if (ancillaryData_ == null) {
return com.google.protobuf.MapField.emptyMapField(
AncillaryDataDefaultEntryHolder.defaultEntry);
}
return ancillaryData_;
}
private com.google.protobuf.MapField
internalGetMutableAncillaryData() {
onChanged();;
if (ancillaryData_ == null) {
ancillaryData_ = com.google.protobuf.MapField.newMapField(
AncillaryDataDefaultEntryHolder.defaultEntry);
}
if (!ancillaryData_.isMutable()) {
ancillaryData_ = ancillaryData_.copy();
}
return ancillaryData_;
}
public int getAncillaryDataCount() {
return internalGetAncillaryData().getMap().size();
}
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
@java.lang.Override
public boolean containsAncillaryData(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetAncillaryData().getMap().containsKey(key);
}
/**
* Use {@link #getAncillaryDataMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getAncillaryData() {
return getAncillaryDataMap();
}
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
@java.lang.Override
public java.util.Map getAncillaryDataMap() {
return internalGetAncillaryData().getMap();
}
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.AncillaryDataInfo getAncillaryDataOrDefault(
java.lang.String key,
org.yamcs.protobuf.Mdb.AncillaryDataInfo defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAncillaryData().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.AncillaryDataInfo getAncillaryDataOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetAncillaryData().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearAncillaryData() {
internalGetMutableAncillaryData().getMutableMap()
.clear();
return this;
}
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
public Builder removeAncillaryData(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableAncillaryData().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableAncillaryData() {
return internalGetMutableAncillaryData().getMutableMap();
}
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
public Builder putAncillaryData(
java.lang.String key,
org.yamcs.protobuf.Mdb.AncillaryDataInfo value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableAncillaryData().getMutableMap()
.put(key, value);
return this;
}
/**
* map<string, .yamcs.protobuf.mdb.AncillaryDataInfo> ancillaryData = 10;
*/
public Builder putAllAncillaryData(
java.util.Map values) {
internalGetMutableAncillaryData().getMutableMap()
.putAll(values);
return this;
}
private org.yamcs.protobuf.Mdb.NumberFormatTypeInfo numberFormat_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.NumberFormatTypeInfo, org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.Builder, org.yamcs.protobuf.Mdb.NumberFormatTypeInfoOrBuilder> numberFormatBuilder_;
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
* @return Whether the numberFormat field is set.
*/
public boolean hasNumberFormat() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
* @return The numberFormat.
*/
public org.yamcs.protobuf.Mdb.NumberFormatTypeInfo getNumberFormat() {
if (numberFormatBuilder_ == null) {
return numberFormat_ == null ? org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.getDefaultInstance() : numberFormat_;
} else {
return numberFormatBuilder_.getMessage();
}
}
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
*/
public Builder setNumberFormat(org.yamcs.protobuf.Mdb.NumberFormatTypeInfo value) {
if (numberFormatBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
numberFormat_ = value;
onChanged();
} else {
numberFormatBuilder_.setMessage(value);
}
bitField0_ |= 0x00008000;
return this;
}
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
*/
public Builder setNumberFormat(
org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.Builder builderForValue) {
if (numberFormatBuilder_ == null) {
numberFormat_ = builderForValue.build();
onChanged();
} else {
numberFormatBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00008000;
return this;
}
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
*/
public Builder mergeNumberFormat(org.yamcs.protobuf.Mdb.NumberFormatTypeInfo value) {
if (numberFormatBuilder_ == null) {
if (((bitField0_ & 0x00008000) != 0) &&
numberFormat_ != null &&
numberFormat_ != org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.getDefaultInstance()) {
numberFormat_ =
org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.newBuilder(numberFormat_).mergeFrom(value).buildPartial();
} else {
numberFormat_ = value;
}
onChanged();
} else {
numberFormatBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00008000;
return this;
}
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
*/
public Builder clearNumberFormat() {
if (numberFormatBuilder_ == null) {
numberFormat_ = null;
onChanged();
} else {
numberFormatBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00008000);
return this;
}
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
*/
public org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.Builder getNumberFormatBuilder() {
bitField0_ |= 0x00008000;
onChanged();
return getNumberFormatFieldBuilder().getBuilder();
}
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
*/
public org.yamcs.protobuf.Mdb.NumberFormatTypeInfoOrBuilder getNumberFormatOrBuilder() {
if (numberFormatBuilder_ != null) {
return numberFormatBuilder_.getMessageOrBuilder();
} else {
return numberFormat_ == null ?
org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.getDefaultInstance() : numberFormat_;
}
}
/**
*
* Provides hints on how to format the engineering
* value as a string.
*
*
* optional .yamcs.protobuf.mdb.NumberFormatTypeInfo numberFormat = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.NumberFormatTypeInfo, org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.Builder, org.yamcs.protobuf.Mdb.NumberFormatTypeInfoOrBuilder>
getNumberFormatFieldBuilder() {
if (numberFormatBuilder_ == null) {
numberFormatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.NumberFormatTypeInfo, org.yamcs.protobuf.Mdb.NumberFormatTypeInfo.Builder, org.yamcs.protobuf.Mdb.NumberFormatTypeInfoOrBuilder>(
getNumberFormat(),
getParentForChildren(),
isClean());
numberFormat_ = null;
}
return numberFormatBuilder_;
}
private boolean signed_ ;
/**
*
* True if the engineering type supports signed representation.
* (only used by integer parameter types)
*
*
* optional bool signed = 12;
* @return Whether the signed field is set.
*/
@java.lang.Override
public boolean hasSigned() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
*
* True if the engineering type supports signed representation.
* (only used by integer parameter types)
*
*
* optional bool signed = 12;
* @return The signed.
*/
@java.lang.Override
public boolean getSigned() {
return signed_;
}
/**
*
* True if the engineering type supports signed representation.
* (only used by integer parameter types)
*
*
* optional bool signed = 12;
* @param value The signed to set.
* @return This builder for chaining.
*/
public Builder setSigned(boolean value) {
bitField0_ |= 0x00010000;
signed_ = value;
onChanged();
return this;
}
/**
*
* True if the engineering type supports signed representation.
* (only used by integer parameter types)
*
*
* optional bool signed = 12;
* @return This builder for chaining.
*/
public Builder clearSigned() {
bitField0_ = (bitField0_ & ~0x00010000);
signed_ = false;
onChanged();
return this;
}
private int sizeInBits_ ;
/**
*
* Hint about the range of allowed engineering values
*
*
* optional int32 sizeInBits = 21;
* @return Whether the sizeInBits field is set.
*/
@java.lang.Override
public boolean hasSizeInBits() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
*
* Hint about the range of allowed engineering values
*
*
* optional int32 sizeInBits = 21;
* @return The sizeInBits.
*/
@java.lang.Override
public int getSizeInBits() {
return sizeInBits_;
}
/**
*
* Hint about the range of allowed engineering values
*
*
* optional int32 sizeInBits = 21;
* @param value The sizeInBits to set.
* @return This builder for chaining.
*/
public Builder setSizeInBits(int value) {
bitField0_ |= 0x00020000;
sizeInBits_ = value;
onChanged();
return this;
}
/**
*
* Hint about the range of allowed engineering values
*
*
* optional int32 sizeInBits = 21;
* @return This builder for chaining.
*/
public Builder clearSizeInBits() {
bitField0_ = (bitField0_ & ~0x00020000);
sizeInBits_ = 0;
onChanged();
return this;
}
private java.lang.Object zeroStringValue_ = "";
/**
*
* String representation of a boolean zero (only used by boolean types)
*
*
* optional string zeroStringValue = 13;
* @return Whether the zeroStringValue field is set.
*/
public boolean hasZeroStringValue() {
return ((bitField0_ & 0x00040000) != 0);
}
/**
*
* String representation of a boolean zero (only used by boolean types)
*
*
* optional string zeroStringValue = 13;
* @return The zeroStringValue.
*/
public java.lang.String getZeroStringValue() {
java.lang.Object ref = zeroStringValue_;
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()) {
zeroStringValue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* String representation of a boolean zero (only used by boolean types)
*
*
* optional string zeroStringValue = 13;
* @return The bytes for zeroStringValue.
*/
public com.google.protobuf.ByteString
getZeroStringValueBytes() {
java.lang.Object ref = zeroStringValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
zeroStringValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* String representation of a boolean zero (only used by boolean types)
*
*
* optional string zeroStringValue = 13;
* @param value The zeroStringValue to set.
* @return This builder for chaining.
*/
public Builder setZeroStringValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00040000;
zeroStringValue_ = value;
onChanged();
return this;
}
/**
*
* String representation of a boolean zero (only used by boolean types)
*
*
* optional string zeroStringValue = 13;
* @return This builder for chaining.
*/
public Builder clearZeroStringValue() {
bitField0_ = (bitField0_ & ~0x00040000);
zeroStringValue_ = getDefaultInstance().getZeroStringValue();
onChanged();
return this;
}
/**
*
* String representation of a boolean zero (only used by boolean types)
*
*
* optional string zeroStringValue = 13;
* @param value The bytes for zeroStringValue to set.
* @return This builder for chaining.
*/
public Builder setZeroStringValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00040000;
zeroStringValue_ = value;
onChanged();
return this;
}
private java.lang.Object oneStringValue_ = "";
/**
*
* String representation of a boolean one (only used by boolean types)
*
*
* optional string oneStringValue = 14;
* @return Whether the oneStringValue field is set.
*/
public boolean hasOneStringValue() {
return ((bitField0_ & 0x00080000) != 0);
}
/**
*
* String representation of a boolean one (only used by boolean types)
*
*
* optional string oneStringValue = 14;
* @return The oneStringValue.
*/
public java.lang.String getOneStringValue() {
java.lang.Object ref = oneStringValue_;
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()) {
oneStringValue_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* String representation of a boolean one (only used by boolean types)
*
*
* optional string oneStringValue = 14;
* @return The bytes for oneStringValue.
*/
public com.google.protobuf.ByteString
getOneStringValueBytes() {
java.lang.Object ref = oneStringValue_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
oneStringValue_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* String representation of a boolean one (only used by boolean types)
*
*
* optional string oneStringValue = 14;
* @param value The oneStringValue to set.
* @return This builder for chaining.
*/
public Builder setOneStringValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00080000;
oneStringValue_ = value;
onChanged();
return this;
}
/**
*
* String representation of a boolean one (only used by boolean types)
*
*
* optional string oneStringValue = 14;
* @return This builder for chaining.
*/
public Builder clearOneStringValue() {
bitField0_ = (bitField0_ & ~0x00080000);
oneStringValue_ = getDefaultInstance().getOneStringValue();
onChanged();
return this;
}
/**
*
* String representation of a boolean one (only used by boolean types)
*
*
* optional string oneStringValue = 14;
* @param value The bytes for oneStringValue to set.
* @return This builder for chaining.
*/
public Builder setOneStringValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00080000;
oneStringValue_ = value;
onChanged();
return this;
}
private java.util.List usedBy_ =
java.util.Collections.emptyList();
private void ensureUsedByIsMutable() {
if (!((bitField0_ & 0x00100000) != 0)) {
usedBy_ = new java.util.ArrayList