
org.yamcs.protobuf.ParameterOverride 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/processing/mdb_override_service.proto
package org.yamcs.protobuf;
/**
*
* A change to a parameter's type.
* This can be either due to an alarm or a calibrator change.
*
*
* Protobuf type {@code yamcs.protobuf.processing.ParameterOverride}
*/
public final class ParameterOverride extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.processing.ParameterOverride)
ParameterOverrideOrBuilder {
private static final long serialVersionUID = 0L;
// Use ParameterOverride.newBuilder() to construct.
private ParameterOverride(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ParameterOverride() {
parameter_ = "";
contextCalibrators_ = java.util.Collections.emptyList();
contextAlarms_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ParameterOverride();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ParameterOverride(
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;
parameter_ = bs;
break;
}
case 42: {
org.yamcs.protobuf.Mdb.CalibratorInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = defaultCalibrator_.toBuilder();
}
defaultCalibrator_ = input.readMessage(org.yamcs.protobuf.Mdb.CalibratorInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultCalibrator_);
defaultCalibrator_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 50: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
contextCalibrators_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
contextCalibrators_.add(
input.readMessage(org.yamcs.protobuf.Mdb.ContextCalibratorInfo.PARSER, extensionRegistry));
break;
}
case 58: {
org.yamcs.protobuf.Mdb.AlarmInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = defaultAlarm_.toBuilder();
}
defaultAlarm_ = input.readMessage(org.yamcs.protobuf.Mdb.AlarmInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultAlarm_);
defaultAlarm_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000010) != 0)) {
contextAlarms_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
contextAlarms_.add(
input.readMessage(org.yamcs.protobuf.Mdb.ContextAlarmInfo.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_ & 0x00000004) != 0)) {
contextCalibrators_ = java.util.Collections.unmodifiableList(contextCalibrators_);
}
if (((mutable_bitField0_ & 0x00000010) != 0)) {
contextAlarms_ = java.util.Collections.unmodifiableList(contextAlarms_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.MdbOverrideServiceProto.internal_static_yamcs_protobuf_processing_ParameterOverride_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.MdbOverrideServiceProto.internal_static_yamcs_protobuf_processing_ParameterOverride_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ParameterOverride.class, org.yamcs.protobuf.ParameterOverride.Builder.class);
}
private int bitField0_;
public static final int PARAMETER_FIELD_NUMBER = 1;
private volatile java.lang.Object parameter_;
/**
*
* Parameter name
*
*
* optional string parameter = 1;
* @return Whether the parameter field is set.
*/
@java.lang.Override
public boolean hasParameter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Parameter name
*
*
* optional string parameter = 1;
* @return The parameter.
*/
@java.lang.Override
public java.lang.String getParameter() {
java.lang.Object ref = parameter_;
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()) {
parameter_ = s;
}
return s;
}
}
/**
*
* Parameter name
*
*
* optional string parameter = 1;
* @return The bytes for parameter.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getParameterBytes() {
java.lang.Object ref = parameter_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parameter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULTCALIBRATOR_FIELD_NUMBER = 5;
private org.yamcs.protobuf.Mdb.CalibratorInfo defaultCalibrator_;
/**
*
* Default calibrator (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
* @return Whether the defaultCalibrator field is set.
*/
@java.lang.Override
public boolean hasDefaultCalibrator() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Default calibrator (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
* @return The defaultCalibrator.
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.CalibratorInfo getDefaultCalibrator() {
return defaultCalibrator_ == null ? org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : defaultCalibrator_;
}
/**
*
* Default calibrator (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder getDefaultCalibratorOrBuilder() {
return defaultCalibrator_ == null ? org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : defaultCalibrator_;
}
public static final int CONTEXTCALIBRATORS_FIELD_NUMBER = 6;
private java.util.List contextCalibrators_;
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
@java.lang.Override
public java.util.List getContextCalibratorsList() {
return contextCalibrators_;
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorsOrBuilderList() {
return contextCalibrators_;
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
@java.lang.Override
public int getContextCalibratorsCount() {
return contextCalibrators_.size();
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrators(int index) {
return contextCalibrators_.get(index);
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorsOrBuilder(
int index) {
return contextCalibrators_.get(index);
}
public static final int DEFAULTALARM_FIELD_NUMBER = 7;
private org.yamcs.protobuf.Mdb.AlarmInfo defaultAlarm_;
/**
*
* Default alarm properties (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
* @return Whether the defaultAlarm field is set.
*/
@java.lang.Override
public boolean hasDefaultAlarm() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Default alarm properties (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
* @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 properties (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.AlarmInfoOrBuilder getDefaultAlarmOrBuilder() {
return defaultAlarm_ == null ? org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance() : defaultAlarm_;
}
public static final int CONTEXTALARMS_FIELD_NUMBER = 8;
private java.util.List contextAlarms_;
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
@java.lang.Override
public java.util.List getContextAlarmsList() {
return contextAlarms_;
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>
getContextAlarmsOrBuilderList() {
return contextAlarms_;
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
@java.lang.Override
public int getContextAlarmsCount() {
return contextAlarms_.size();
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextAlarmInfo getContextAlarms(int index) {
return contextAlarms_.get(index);
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder getContextAlarmsOrBuilder(
int index) {
return contextAlarms_.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 < getContextCalibratorsCount(); i++) {
if (!getContextCalibrators(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
for (int i = 0; i < getContextAlarmsCount(); i++) {
if (!getContextAlarms(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, parameter_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(5, getDefaultCalibrator());
}
for (int i = 0; i < contextCalibrators_.size(); i++) {
output.writeMessage(6, contextCalibrators_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(7, getDefaultAlarm());
}
for (int i = 0; i < contextAlarms_.size(); i++) {
output.writeMessage(8, contextAlarms_.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, parameter_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDefaultCalibrator());
}
for (int i = 0; i < contextCalibrators_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, contextCalibrators_.get(i));
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getDefaultAlarm());
}
for (int i = 0; i < contextAlarms_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, contextAlarms_.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.ParameterOverride)) {
return super.equals(obj);
}
org.yamcs.protobuf.ParameterOverride other = (org.yamcs.protobuf.ParameterOverride) obj;
if (hasParameter() != other.hasParameter()) return false;
if (hasParameter()) {
if (!getParameter()
.equals(other.getParameter())) return false;
}
if (hasDefaultCalibrator() != other.hasDefaultCalibrator()) return false;
if (hasDefaultCalibrator()) {
if (!getDefaultCalibrator()
.equals(other.getDefaultCalibrator())) return false;
}
if (!getContextCalibratorsList()
.equals(other.getContextCalibratorsList())) return false;
if (hasDefaultAlarm() != other.hasDefaultAlarm()) return false;
if (hasDefaultAlarm()) {
if (!getDefaultAlarm()
.equals(other.getDefaultAlarm())) return false;
}
if (!getContextAlarmsList()
.equals(other.getContextAlarmsList())) 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 (hasParameter()) {
hash = (37 * hash) + PARAMETER_FIELD_NUMBER;
hash = (53 * hash) + getParameter().hashCode();
}
if (hasDefaultCalibrator()) {
hash = (37 * hash) + DEFAULTCALIBRATOR_FIELD_NUMBER;
hash = (53 * hash) + getDefaultCalibrator().hashCode();
}
if (getContextCalibratorsCount() > 0) {
hash = (37 * hash) + CONTEXTCALIBRATORS_FIELD_NUMBER;
hash = (53 * hash) + getContextCalibratorsList().hashCode();
}
if (hasDefaultAlarm()) {
hash = (37 * hash) + DEFAULTALARM_FIELD_NUMBER;
hash = (53 * hash) + getDefaultAlarm().hashCode();
}
if (getContextAlarmsCount() > 0) {
hash = (37 * hash) + CONTEXTALARMS_FIELD_NUMBER;
hash = (53 * hash) + getContextAlarmsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.ParameterOverride parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ParameterOverride 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.ParameterOverride parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ParameterOverride 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.ParameterOverride parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ParameterOverride parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.ParameterOverride parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ParameterOverride 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.ParameterOverride parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ParameterOverride 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.ParameterOverride parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ParameterOverride 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.ParameterOverride 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;
}
/**
*
* A change to a parameter's type.
* This can be either due to an alarm or a calibrator change.
*
*
* Protobuf type {@code yamcs.protobuf.processing.ParameterOverride}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.processing.ParameterOverride)
org.yamcs.protobuf.ParameterOverrideOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.MdbOverrideServiceProto.internal_static_yamcs_protobuf_processing_ParameterOverride_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.MdbOverrideServiceProto.internal_static_yamcs_protobuf_processing_ParameterOverride_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ParameterOverride.class, org.yamcs.protobuf.ParameterOverride.Builder.class);
}
// Construct using org.yamcs.protobuf.ParameterOverride.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();
getContextCalibratorsFieldBuilder();
getDefaultAlarmFieldBuilder();
getContextAlarmsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
parameter_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (defaultCalibratorBuilder_ == null) {
defaultCalibrator_ = null;
} else {
defaultCalibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (contextCalibratorsBuilder_ == null) {
contextCalibrators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
contextCalibratorsBuilder_.clear();
}
if (defaultAlarmBuilder_ == null) {
defaultAlarm_ = null;
} else {
defaultAlarmBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (contextAlarmsBuilder_ == null) {
contextAlarms_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
contextAlarmsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.MdbOverrideServiceProto.internal_static_yamcs_protobuf_processing_ParameterOverride_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.ParameterOverride getDefaultInstanceForType() {
return org.yamcs.protobuf.ParameterOverride.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.ParameterOverride build() {
org.yamcs.protobuf.ParameterOverride result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.ParameterOverride buildPartial() {
org.yamcs.protobuf.ParameterOverride result = new org.yamcs.protobuf.ParameterOverride(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.parameter_ = parameter_;
if (((from_bitField0_ & 0x00000002) != 0)) {
if (defaultCalibratorBuilder_ == null) {
result.defaultCalibrator_ = defaultCalibrator_;
} else {
result.defaultCalibrator_ = defaultCalibratorBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (contextCalibratorsBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0)) {
contextCalibrators_ = java.util.Collections.unmodifiableList(contextCalibrators_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.contextCalibrators_ = contextCalibrators_;
} else {
result.contextCalibrators_ = contextCalibratorsBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (defaultAlarmBuilder_ == null) {
result.defaultAlarm_ = defaultAlarm_;
} else {
result.defaultAlarm_ = defaultAlarmBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (contextAlarmsBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)) {
contextAlarms_ = java.util.Collections.unmodifiableList(contextAlarms_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.contextAlarms_ = contextAlarms_;
} else {
result.contextAlarms_ = contextAlarmsBuilder_.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.ParameterOverride) {
return mergeFrom((org.yamcs.protobuf.ParameterOverride)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.ParameterOverride other) {
if (other == org.yamcs.protobuf.ParameterOverride.getDefaultInstance()) return this;
if (other.hasParameter()) {
bitField0_ |= 0x00000001;
parameter_ = other.parameter_;
onChanged();
}
if (other.hasDefaultCalibrator()) {
mergeDefaultCalibrator(other.getDefaultCalibrator());
}
if (contextCalibratorsBuilder_ == null) {
if (!other.contextCalibrators_.isEmpty()) {
if (contextCalibrators_.isEmpty()) {
contextCalibrators_ = other.contextCalibrators_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureContextCalibratorsIsMutable();
contextCalibrators_.addAll(other.contextCalibrators_);
}
onChanged();
}
} else {
if (!other.contextCalibrators_.isEmpty()) {
if (contextCalibratorsBuilder_.isEmpty()) {
contextCalibratorsBuilder_.dispose();
contextCalibratorsBuilder_ = null;
contextCalibrators_ = other.contextCalibrators_;
bitField0_ = (bitField0_ & ~0x00000004);
contextCalibratorsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContextCalibratorsFieldBuilder() : null;
} else {
contextCalibratorsBuilder_.addAllMessages(other.contextCalibrators_);
}
}
}
if (other.hasDefaultAlarm()) {
mergeDefaultAlarm(other.getDefaultAlarm());
}
if (contextAlarmsBuilder_ == null) {
if (!other.contextAlarms_.isEmpty()) {
if (contextAlarms_.isEmpty()) {
contextAlarms_ = other.contextAlarms_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensureContextAlarmsIsMutable();
contextAlarms_.addAll(other.contextAlarms_);
}
onChanged();
}
} else {
if (!other.contextAlarms_.isEmpty()) {
if (contextAlarmsBuilder_.isEmpty()) {
contextAlarmsBuilder_.dispose();
contextAlarmsBuilder_ = null;
contextAlarms_ = other.contextAlarms_;
bitField0_ = (bitField0_ & ~0x00000010);
contextAlarmsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContextAlarmsFieldBuilder() : null;
} else {
contextAlarmsBuilder_.addAllMessages(other.contextAlarms_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getContextCalibratorsCount(); i++) {
if (!getContextCalibrators(i).isInitialized()) {
return false;
}
}
for (int i = 0; i < getContextAlarmsCount(); i++) {
if (!getContextAlarms(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.ParameterOverride parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.ParameterOverride) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object parameter_ = "";
/**
*
* Parameter name
*
*
* optional string parameter = 1;
* @return Whether the parameter field is set.
*/
public boolean hasParameter() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Parameter name
*
*
* optional string parameter = 1;
* @return The parameter.
*/
public java.lang.String getParameter() {
java.lang.Object ref = parameter_;
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()) {
parameter_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Parameter name
*
*
* optional string parameter = 1;
* @return The bytes for parameter.
*/
public com.google.protobuf.ByteString
getParameterBytes() {
java.lang.Object ref = parameter_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
parameter_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Parameter name
*
*
* optional string parameter = 1;
* @param value The parameter to set.
* @return This builder for chaining.
*/
public Builder setParameter(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
parameter_ = value;
onChanged();
return this;
}
/**
*
* Parameter name
*
*
* optional string parameter = 1;
* @return This builder for chaining.
*/
public Builder clearParameter() {
bitField0_ = (bitField0_ & ~0x00000001);
parameter_ = getDefaultInstance().getParameter();
onChanged();
return this;
}
/**
*
* Parameter name
*
*
* optional string parameter = 1;
* @param value The bytes for parameter to set.
* @return This builder for chaining.
*/
public Builder setParameterBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
parameter_ = 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_;
/**
*
* Default calibrator (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
* @return Whether the defaultCalibrator field is set.
*/
public boolean hasDefaultCalibrator() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Default calibrator (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
* @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();
}
}
/**
*
* Default calibrator (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
*/
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_ |= 0x00000002;
return this;
}
/**
*
* Default calibrator (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
*/
public Builder setDefaultCalibrator(
org.yamcs.protobuf.Mdb.CalibratorInfo.Builder builderForValue) {
if (defaultCalibratorBuilder_ == null) {
defaultCalibrator_ = builderForValue.build();
onChanged();
} else {
defaultCalibratorBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
* Default calibrator (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
*/
public Builder mergeDefaultCalibrator(org.yamcs.protobuf.Mdb.CalibratorInfo value) {
if (defaultCalibratorBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 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_ |= 0x00000002;
return this;
}
/**
*
* Default calibrator (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
*/
public Builder clearDefaultCalibrator() {
if (defaultCalibratorBuilder_ == null) {
defaultCalibrator_ = null;
onChanged();
} else {
defaultCalibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
* Default calibrator (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfo.Builder getDefaultCalibratorBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getDefaultCalibratorFieldBuilder().getBuilder();
}
/**
*
* Default calibrator (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfoOrBuilder getDefaultCalibratorOrBuilder() {
if (defaultCalibratorBuilder_ != null) {
return defaultCalibratorBuilder_.getMessageOrBuilder();
} else {
return defaultCalibrator_ == null ?
org.yamcs.protobuf.Mdb.CalibratorInfo.getDefaultInstance() : defaultCalibrator_;
}
}
/**
*
* Default calibrator (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
*/
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 contextCalibrators_ =
java.util.Collections.emptyList();
private void ensureContextCalibratorsIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
contextCalibrators_ = new java.util.ArrayList(contextCalibrators_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextCalibratorInfo, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder, org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder> contextCalibratorsBuilder_;
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
public java.util.List getContextCalibratorsList() {
if (contextCalibratorsBuilder_ == null) {
return java.util.Collections.unmodifiableList(contextCalibrators_);
} else {
return contextCalibratorsBuilder_.getMessageList();
}
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
public int getContextCalibratorsCount() {
if (contextCalibratorsBuilder_ == null) {
return contextCalibrators_.size();
} else {
return contextCalibratorsBuilder_.getCount();
}
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrators(int index) {
if (contextCalibratorsBuilder_ == null) {
return contextCalibrators_.get(index);
} else {
return contextCalibratorsBuilder_.getMessage(index);
}
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
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;
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
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;
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
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;
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
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;
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
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;
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
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;
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
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;
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
public Builder clearContextCalibrators() {
if (contextCalibratorsBuilder_ == null) {
contextCalibrators_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
contextCalibratorsBuilder_.clear();
}
return this;
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
public Builder removeContextCalibrators(int index) {
if (contextCalibratorsBuilder_ == null) {
ensureContextCalibratorsIsMutable();
contextCalibrators_.remove(index);
onChanged();
} else {
contextCalibratorsBuilder_.remove(index);
}
return this;
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder getContextCalibratorsBuilder(
int index) {
return getContextCalibratorsFieldBuilder().getBuilder(index);
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorsOrBuilder(
int index) {
if (contextCalibratorsBuilder_ == null) {
return contextCalibrators_.get(index); } else {
return contextCalibratorsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorsOrBuilderList() {
if (contextCalibratorsBuilder_ != null) {
return contextCalibratorsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contextCalibrators_);
}
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder addContextCalibratorsBuilder() {
return getContextCalibratorsFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ContextCalibratorInfo.getDefaultInstance());
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder addContextCalibratorsBuilder(
int index) {
return getContextCalibratorsFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.getDefaultInstance());
}
/**
*
* Calibrators under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrators = 6;
*/
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_ & 0x00000004) != 0),
getParentForChildren(),
isClean());
contextCalibrators_ = null;
}
return contextCalibratorsBuilder_;
}
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 properties (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
* @return Whether the defaultAlarm field is set.
*/
public boolean hasDefaultAlarm() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Default alarm properties (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
* @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 properties (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
*/
public Builder setDefaultAlarm(org.yamcs.protobuf.Mdb.AlarmInfo value) {
if (defaultAlarmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
defaultAlarm_ = value;
onChanged();
} else {
defaultAlarmBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* Default alarm properties (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
*/
public Builder setDefaultAlarm(
org.yamcs.protobuf.Mdb.AlarmInfo.Builder builderForValue) {
if (defaultAlarmBuilder_ == null) {
defaultAlarm_ = builderForValue.build();
onChanged();
} else {
defaultAlarmBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* Default alarm properties (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
*/
public Builder mergeDefaultAlarm(org.yamcs.protobuf.Mdb.AlarmInfo value) {
if (defaultAlarmBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
defaultAlarm_ != null &&
defaultAlarm_ != org.yamcs.protobuf.Mdb.AlarmInfo.getDefaultInstance()) {
defaultAlarm_ =
org.yamcs.protobuf.Mdb.AlarmInfo.newBuilder(defaultAlarm_).mergeFrom(value).buildPartial();
} else {
defaultAlarm_ = value;
}
onChanged();
} else {
defaultAlarmBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* Default alarm properties (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
*/
public Builder clearDefaultAlarm() {
if (defaultAlarmBuilder_ == null) {
defaultAlarm_ = null;
onChanged();
} else {
defaultAlarmBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
*
* Default alarm properties (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
*/
public org.yamcs.protobuf.Mdb.AlarmInfo.Builder getDefaultAlarmBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getDefaultAlarmFieldBuilder().getBuilder();
}
/**
*
* Default alarm properties (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
*/
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 properties (when no specific context)
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
*/
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 contextAlarms_ =
java.util.Collections.emptyList();
private void ensureContextAlarmsIsMutable() {
if (!((bitField0_ & 0x00000010) != 0)) {
contextAlarms_ = new java.util.ArrayList(contextAlarms_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextAlarmInfo, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder, org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder> contextAlarmsBuilder_;
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public java.util.List getContextAlarmsList() {
if (contextAlarmsBuilder_ == null) {
return java.util.Collections.unmodifiableList(contextAlarms_);
} else {
return contextAlarmsBuilder_.getMessageList();
}
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public int getContextAlarmsCount() {
if (contextAlarmsBuilder_ == null) {
return contextAlarms_.size();
} else {
return contextAlarmsBuilder_.getCount();
}
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo getContextAlarms(int index) {
if (contextAlarmsBuilder_ == null) {
return contextAlarms_.get(index);
} else {
return contextAlarmsBuilder_.getMessage(index);
}
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public Builder setContextAlarms(
int index, org.yamcs.protobuf.Mdb.ContextAlarmInfo value) {
if (contextAlarmsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextAlarmsIsMutable();
contextAlarms_.set(index, value);
onChanged();
} else {
contextAlarmsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public Builder setContextAlarms(
int index, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder builderForValue) {
if (contextAlarmsBuilder_ == null) {
ensureContextAlarmsIsMutable();
contextAlarms_.set(index, builderForValue.build());
onChanged();
} else {
contextAlarmsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public Builder addContextAlarms(org.yamcs.protobuf.Mdb.ContextAlarmInfo value) {
if (contextAlarmsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextAlarmsIsMutable();
contextAlarms_.add(value);
onChanged();
} else {
contextAlarmsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public Builder addContextAlarms(
int index, org.yamcs.protobuf.Mdb.ContextAlarmInfo value) {
if (contextAlarmsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContextAlarmsIsMutable();
contextAlarms_.add(index, value);
onChanged();
} else {
contextAlarmsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public Builder addContextAlarms(
org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder builderForValue) {
if (contextAlarmsBuilder_ == null) {
ensureContextAlarmsIsMutable();
contextAlarms_.add(builderForValue.build());
onChanged();
} else {
contextAlarmsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public Builder addContextAlarms(
int index, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder builderForValue) {
if (contextAlarmsBuilder_ == null) {
ensureContextAlarmsIsMutable();
contextAlarms_.add(index, builderForValue.build());
onChanged();
} else {
contextAlarmsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public Builder addAllContextAlarms(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.ContextAlarmInfo> values) {
if (contextAlarmsBuilder_ == null) {
ensureContextAlarmsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, contextAlarms_);
onChanged();
} else {
contextAlarmsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public Builder clearContextAlarms() {
if (contextAlarmsBuilder_ == null) {
contextAlarms_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
contextAlarmsBuilder_.clear();
}
return this;
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public Builder removeContextAlarms(int index) {
if (contextAlarmsBuilder_ == null) {
ensureContextAlarmsIsMutable();
contextAlarms_.remove(index);
onChanged();
} else {
contextAlarmsBuilder_.remove(index);
}
return this;
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder getContextAlarmsBuilder(
int index) {
return getContextAlarmsFieldBuilder().getBuilder(index);
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder getContextAlarmsOrBuilder(
int index) {
if (contextAlarmsBuilder_ == null) {
return contextAlarms_.get(index); } else {
return contextAlarmsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>
getContextAlarmsOrBuilderList() {
if (contextAlarmsBuilder_ != null) {
return contextAlarmsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contextAlarms_);
}
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder addContextAlarmsBuilder() {
return getContextAlarmsFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ContextAlarmInfo.getDefaultInstance());
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder addContextAlarmsBuilder(
int index) {
return getContextAlarmsFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ContextAlarmInfo.getDefaultInstance());
}
/**
*
* Alarm properties under specific context
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarms = 8;
*/
public java.util.List
getContextAlarmsBuilderList() {
return getContextAlarmsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextAlarmInfo, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder, org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>
getContextAlarmsFieldBuilder() {
if (contextAlarmsBuilder_ == null) {
contextAlarmsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextAlarmInfo, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder, org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>(
contextAlarms_,
((bitField0_ & 0x00000010) != 0),
getParentForChildren(),
isClean());
contextAlarms_ = null;
}
return contextAlarmsBuilder_;
}
@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.processing.ParameterOverride)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.processing.ParameterOverride)
private static final org.yamcs.protobuf.ParameterOverride DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.ParameterOverride();
}
public static org.yamcs.protobuf.ParameterOverride getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ParameterOverride parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ParameterOverride(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.ParameterOverride getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy