
org.yamcs.protobuf.UpdateParameterRequest 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;
/**
*
* Used to change calibrators or alarms for one parameter
*
*
* Protobuf type {@code yamcs.protobuf.processing.UpdateParameterRequest}
*/
public final class UpdateParameterRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.processing.UpdateParameterRequest)
UpdateParameterRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UpdateParameterRequest.newBuilder() to construct.
private UpdateParameterRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UpdateParameterRequest() {
instance_ = "";
processor_ = "";
name_ = "";
action_ = 0;
contextCalibrator_ = java.util.Collections.emptyList();
contextAlarm_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UpdateParameterRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UpdateParameterRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
instance_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
processor_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
name_ = bs;
break;
}
case 32: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.UpdateParameterRequest.ActionType value = org.yamcs.protobuf.UpdateParameterRequest.ActionType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(4, rawValue);
} else {
bitField0_ |= 0x00000008;
action_ = rawValue;
}
break;
}
case 42: {
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 50: {
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 58: {
org.yamcs.protobuf.Mdb.AlarmInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) != 0)) {
subBuilder = defaultAlarm_.toBuilder();
}
defaultAlarm_ = input.readMessage(org.yamcs.protobuf.Mdb.AlarmInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(defaultAlarm_);
defaultAlarm_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) != 0)) {
contextAlarm_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
contextAlarm_.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_ & 0x00000020) != 0)) {
contextCalibrator_ = java.util.Collections.unmodifiableList(contextCalibrator_);
}
if (((mutable_bitField0_ & 0x00000080) != 0)) {
contextAlarm_ = java.util.Collections.unmodifiableList(contextAlarm_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.MdbOverrideServiceProto.internal_static_yamcs_protobuf_processing_UpdateParameterRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.MdbOverrideServiceProto.internal_static_yamcs_protobuf_processing_UpdateParameterRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.UpdateParameterRequest.class, org.yamcs.protobuf.UpdateParameterRequest.Builder.class);
}
/**
* Protobuf enum {@code yamcs.protobuf.processing.UpdateParameterRequest.ActionType}
*/
public enum ActionType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Reset all parameter properties (calibrators+alarms) to their default
* Mission Database value
*
*
* RESET = 0;
*/
RESET(0),
/**
*
* Reset calibrators to their default MDB value
*
*
* RESET_CALIBRATORS = 1;
*/
RESET_CALIBRATORS(1),
/**
*
* Sets the default calibrator (the contextual ones are unmodified)
*
*
* SET_DEFAULT_CALIBRATOR = 2;
*/
SET_DEFAULT_CALIBRATOR(2),
/**
*
* Sets all calibrations (default + contextual), if default is not set,
* the existing calibration is not modified
*
*
* SET_CALIBRATORS = 3;
*/
SET_CALIBRATORS(3),
/**
*
* Reset alarms to their default Mission Database value
*
*
* RESET_ALARMS = 4;
*/
RESET_ALARMS(4),
/**
*
* Sets the default alarms (contextual ones are unmodified)
*
*
* SET_DEFAULT_ALARMS = 5;
*/
SET_DEFAULT_ALARMS(5),
/**
*
* Sets all alarms (default + contextual), if default is not set, the
* existing alarm is not modified.
*
*
* SET_ALARMS = 6;
*/
SET_ALARMS(6),
;
/**
*
* Reset all parameter properties (calibrators+alarms) to their default
* Mission Database value
*
*
* RESET = 0;
*/
public static final int RESET_VALUE = 0;
/**
*
* Reset calibrators to their default MDB value
*
*
* RESET_CALIBRATORS = 1;
*/
public static final int RESET_CALIBRATORS_VALUE = 1;
/**
*
* Sets the default calibrator (the contextual ones are unmodified)
*
*
* SET_DEFAULT_CALIBRATOR = 2;
*/
public static final int SET_DEFAULT_CALIBRATOR_VALUE = 2;
/**
*
* Sets all calibrations (default + contextual), if default is not set,
* the existing calibration is not modified
*
*
* SET_CALIBRATORS = 3;
*/
public static final int SET_CALIBRATORS_VALUE = 3;
/**
*
* Reset alarms to their default Mission Database value
*
*
* RESET_ALARMS = 4;
*/
public static final int RESET_ALARMS_VALUE = 4;
/**
*
* Sets the default alarms (contextual ones are unmodified)
*
*
* SET_DEFAULT_ALARMS = 5;
*/
public static final int SET_DEFAULT_ALARMS_VALUE = 5;
/**
*
* Sets all alarms (default + contextual), if default is not set, the
* existing alarm is not modified.
*
*
* SET_ALARMS = 6;
*/
public static final int SET_ALARMS_VALUE = 6;
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 ActionType 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 ActionType forNumber(int value) {
switch (value) {
case 0: return RESET;
case 1: return RESET_CALIBRATORS;
case 2: return SET_DEFAULT_CALIBRATOR;
case 3: return SET_CALIBRATORS;
case 4: return RESET_ALARMS;
case 5: return SET_DEFAULT_ALARMS;
case 6: return SET_ALARMS;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
ActionType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public ActionType findValueByNumber(int number) {
return ActionType.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.UpdateParameterRequest.getDescriptor().getEnumTypes().get(0);
}
private static final ActionType[] VALUES = values();
public static ActionType 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 ActionType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.processing.UpdateParameterRequest.ActionType)
}
private int bitField0_;
public static final int INSTANCE_FIELD_NUMBER = 1;
private volatile java.lang.Object instance_;
/**
*
* Yamcs instance name.
*
*
* optional string instance = 1;
* @return Whether the instance field is set.
*/
@java.lang.Override
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Yamcs instance name.
*
*
* optional string instance = 1;
* @return The instance.
*/
@java.lang.Override
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
instance_ = s;
}
return s;
}
}
/**
*
* Yamcs instance name.
*
*
* optional string instance = 1;
* @return The bytes for instance.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROCESSOR_FIELD_NUMBER = 2;
private volatile java.lang.Object processor_;
/**
*
* Processor name.
*
*
* optional string processor = 2;
* @return Whether the processor field is set.
*/
@java.lang.Override
public boolean hasProcessor() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Processor name.
*
*
* optional string processor = 2;
* @return The processor.
*/
@java.lang.Override
public java.lang.String getProcessor() {
java.lang.Object ref = processor_;
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()) {
processor_ = s;
}
return s;
}
}
/**
*
* Processor name.
*
*
* optional string processor = 2;
* @return The bytes for processor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProcessorBytes() {
java.lang.Object ref = processor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
processor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 3;
private volatile java.lang.Object name_;
/**
*
* Parameter name.
*
*
* optional string name = 3;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Parameter name.
*
*
* optional string name = 3;
* @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;
}
}
/**
*
* Parameter name.
*
*
* optional string name = 3;
* @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 ACTION_FIELD_NUMBER = 4;
private int action_;
/**
*
* The action by which to modify this parameter.
*
*
* optional .yamcs.protobuf.processing.UpdateParameterRequest.ActionType action = 4;
* @return Whether the action field is set.
*/
@java.lang.Override public boolean hasAction() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The action by which to modify this parameter.
*
*
* optional .yamcs.protobuf.processing.UpdateParameterRequest.ActionType action = 4;
* @return The action.
*/
@java.lang.Override public org.yamcs.protobuf.UpdateParameterRequest.ActionType getAction() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.UpdateParameterRequest.ActionType result = org.yamcs.protobuf.UpdateParameterRequest.ActionType.valueOf(action_);
return result == null ? org.yamcs.protobuf.UpdateParameterRequest.ActionType.RESET : result;
}
public static final int DEFAULTCALIBRATOR_FIELD_NUMBER = 5;
private org.yamcs.protobuf.Mdb.CalibratorInfo defaultCalibrator_;
/**
*
* Used when action = SET_DEFAULT_CALIBRATOR or SET_CALIBRATORS
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
* @return Whether the defaultCalibrator field is set.
*/
@java.lang.Override
public boolean hasDefaultCalibrator() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Used when action = SET_DEFAULT_CALIBRATOR or SET_CALIBRATORS
*
*
* 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_;
}
/**
*
* Used when action = SET_DEFAULT_CALIBRATOR or SET_CALIBRATORS
*
*
* 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 CONTEXTCALIBRATOR_FIELD_NUMBER = 6;
private java.util.List contextCalibrator_;
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
@java.lang.Override
public java.util.List getContextCalibratorList() {
return contextCalibrator_;
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorOrBuilderList() {
return contextCalibrator_;
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
@java.lang.Override
public int getContextCalibratorCount() {
return contextCalibrator_.size();
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrator(int index) {
return contextCalibrator_.get(index);
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorOrBuilder(
int index) {
return contextCalibrator_.get(index);
}
public static final int DEFAULTALARM_FIELD_NUMBER = 7;
private org.yamcs.protobuf.Mdb.AlarmInfo defaultAlarm_;
/**
*
* Used when action = SET_DEFAULT_ALARMS or SET_ALARMS
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
* @return Whether the defaultAlarm field is set.
*/
@java.lang.Override
public boolean hasDefaultAlarm() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Used when action = SET_DEFAULT_ALARMS or SET_ALARMS
*
*
* 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_;
}
/**
*
* Used when action = SET_DEFAULT_ALARMS or SET_ALARMS
*
*
* 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 CONTEXTALARM_FIELD_NUMBER = 8;
private java.util.List contextAlarm_;
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
@java.lang.Override
public java.util.List getContextAlarmList() {
return contextAlarm_;
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>
getContextAlarmOrBuilderList() {
return contextAlarm_;
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
@java.lang.Override
public int getContextAlarmCount() {
return contextAlarm_.size();
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextAlarmInfo getContextAlarm(int index) {
return contextAlarm_.get(index);
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
@java.lang.Override
public org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder getContextAlarmOrBuilder(
int index) {
return contextAlarm_.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 < getContextAlarmCount(); i++) {
if (!getContextAlarm(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, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, processor_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeEnum(4, action_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getDefaultCalibrator());
}
for (int i = 0; i < contextCalibrator_.size(); i++) {
output.writeMessage(6, contextCalibrator_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(7, getDefaultAlarm());
}
for (int i = 0; i < contextAlarm_.size(); i++) {
output.writeMessage(8, contextAlarm_.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, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, processor_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(4, action_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getDefaultCalibrator());
}
for (int i = 0; i < contextCalibrator_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, contextCalibrator_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getDefaultAlarm());
}
for (int i = 0; i < contextAlarm_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, contextAlarm_.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.UpdateParameterRequest)) {
return super.equals(obj);
}
org.yamcs.protobuf.UpdateParameterRequest other = (org.yamcs.protobuf.UpdateParameterRequest) obj;
if (hasInstance() != other.hasInstance()) return false;
if (hasInstance()) {
if (!getInstance()
.equals(other.getInstance())) return false;
}
if (hasProcessor() != other.hasProcessor()) return false;
if (hasProcessor()) {
if (!getProcessor()
.equals(other.getProcessor())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasAction() != other.hasAction()) return false;
if (hasAction()) {
if (action_ != other.action_) 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 (hasDefaultAlarm() != other.hasDefaultAlarm()) return false;
if (hasDefaultAlarm()) {
if (!getDefaultAlarm()
.equals(other.getDefaultAlarm())) return false;
}
if (!getContextAlarmList()
.equals(other.getContextAlarmList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasInstance()) {
hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getInstance().hashCode();
}
if (hasProcessor()) {
hash = (37 * hash) + PROCESSOR_FIELD_NUMBER;
hash = (53 * hash) + getProcessor().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasAction()) {
hash = (37 * hash) + ACTION_FIELD_NUMBER;
hash = (53 * hash) + action_;
}
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 (hasDefaultAlarm()) {
hash = (37 * hash) + DEFAULTALARM_FIELD_NUMBER;
hash = (53 * hash) + getDefaultAlarm().hashCode();
}
if (getContextAlarmCount() > 0) {
hash = (37 * hash) + CONTEXTALARM_FIELD_NUMBER;
hash = (53 * hash) + getContextAlarmList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.UpdateParameterRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.UpdateParameterRequest 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.UpdateParameterRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.UpdateParameterRequest 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.UpdateParameterRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.UpdateParameterRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.UpdateParameterRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.UpdateParameterRequest 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.UpdateParameterRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.UpdateParameterRequest 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.UpdateParameterRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.UpdateParameterRequest 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.UpdateParameterRequest 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;
}
/**
*
* Used to change calibrators or alarms for one parameter
*
*
* Protobuf type {@code yamcs.protobuf.processing.UpdateParameterRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.processing.UpdateParameterRequest)
org.yamcs.protobuf.UpdateParameterRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.MdbOverrideServiceProto.internal_static_yamcs_protobuf_processing_UpdateParameterRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.MdbOverrideServiceProto.internal_static_yamcs_protobuf_processing_UpdateParameterRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.UpdateParameterRequest.class, org.yamcs.protobuf.UpdateParameterRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.UpdateParameterRequest.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();
getDefaultAlarmFieldBuilder();
getContextAlarmFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
instance_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
processor_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
action_ = 0;
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 (defaultAlarmBuilder_ == null) {
defaultAlarm_ = null;
} else {
defaultAlarmBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
if (contextAlarmBuilder_ == null) {
contextAlarm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
contextAlarmBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.MdbOverrideServiceProto.internal_static_yamcs_protobuf_processing_UpdateParameterRequest_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.UpdateParameterRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.UpdateParameterRequest.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.UpdateParameterRequest build() {
org.yamcs.protobuf.UpdateParameterRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.UpdateParameterRequest buildPartial() {
org.yamcs.protobuf.UpdateParameterRequest result = new org.yamcs.protobuf.UpdateParameterRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.instance_ = instance_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.processor_ = processor_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.action_ = action_;
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 (((from_bitField0_ & 0x00000040) != 0)) {
if (defaultAlarmBuilder_ == null) {
result.defaultAlarm_ = defaultAlarm_;
} else {
result.defaultAlarm_ = defaultAlarmBuilder_.build();
}
to_bitField0_ |= 0x00000020;
}
if (contextAlarmBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
contextAlarm_ = java.util.Collections.unmodifiableList(contextAlarm_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.contextAlarm_ = contextAlarm_;
} else {
result.contextAlarm_ = contextAlarmBuilder_.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.UpdateParameterRequest) {
return mergeFrom((org.yamcs.protobuf.UpdateParameterRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.UpdateParameterRequest other) {
if (other == org.yamcs.protobuf.UpdateParameterRequest.getDefaultInstance()) return this;
if (other.hasInstance()) {
bitField0_ |= 0x00000001;
instance_ = other.instance_;
onChanged();
}
if (other.hasProcessor()) {
bitField0_ |= 0x00000002;
processor_ = other.processor_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000004;
name_ = other.name_;
onChanged();
}
if (other.hasAction()) {
setAction(other.getAction());
}
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 (other.hasDefaultAlarm()) {
mergeDefaultAlarm(other.getDefaultAlarm());
}
if (contextAlarmBuilder_ == null) {
if (!other.contextAlarm_.isEmpty()) {
if (contextAlarm_.isEmpty()) {
contextAlarm_ = other.contextAlarm_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureContextAlarmIsMutable();
contextAlarm_.addAll(other.contextAlarm_);
}
onChanged();
}
} else {
if (!other.contextAlarm_.isEmpty()) {
if (contextAlarmBuilder_.isEmpty()) {
contextAlarmBuilder_.dispose();
contextAlarmBuilder_ = null;
contextAlarm_ = other.contextAlarm_;
bitField0_ = (bitField0_ & ~0x00000080);
contextAlarmBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getContextAlarmFieldBuilder() : null;
} else {
contextAlarmBuilder_.addAllMessages(other.contextAlarm_);
}
}
}
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 < getContextAlarmCount(); i++) {
if (!getContextAlarm(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.UpdateParameterRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.UpdateParameterRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instance_ = "";
/**
*
* Yamcs instance name.
*
*
* optional string instance = 1;
* @return Whether the instance field is set.
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Yamcs instance name.
*
*
* optional string instance = 1;
* @return The instance.
*/
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
instance_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Yamcs instance name.
*
*
* optional string instance = 1;
* @return The bytes for instance.
*/
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Yamcs instance name.
*
*
* optional string instance = 1;
* @param value The instance to set.
* @return This builder for chaining.
*/
public Builder setInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
/**
*
* Yamcs instance name.
*
*
* optional string instance = 1;
* @return This builder for chaining.
*/
public Builder clearInstance() {
bitField0_ = (bitField0_ & ~0x00000001);
instance_ = getDefaultInstance().getInstance();
onChanged();
return this;
}
/**
*
* Yamcs instance name.
*
*
* optional string instance = 1;
* @param value The bytes for instance to set.
* @return This builder for chaining.
*/
public Builder setInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
private java.lang.Object processor_ = "";
/**
*
* Processor name.
*
*
* optional string processor = 2;
* @return Whether the processor field is set.
*/
public boolean hasProcessor() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Processor name.
*
*
* optional string processor = 2;
* @return The processor.
*/
public java.lang.String getProcessor() {
java.lang.Object ref = processor_;
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()) {
processor_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Processor name.
*
*
* optional string processor = 2;
* @return The bytes for processor.
*/
public com.google.protobuf.ByteString
getProcessorBytes() {
java.lang.Object ref = processor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
processor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Processor name.
*
*
* optional string processor = 2;
* @param value The processor to set.
* @return This builder for chaining.
*/
public Builder setProcessor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
processor_ = value;
onChanged();
return this;
}
/**
*
* Processor name.
*
*
* optional string processor = 2;
* @return This builder for chaining.
*/
public Builder clearProcessor() {
bitField0_ = (bitField0_ & ~0x00000002);
processor_ = getDefaultInstance().getProcessor();
onChanged();
return this;
}
/**
*
* Processor name.
*
*
* optional string processor = 2;
* @param value The bytes for processor to set.
* @return This builder for chaining.
*/
public Builder setProcessorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
processor_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Parameter name.
*
*
* optional string name = 3;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Parameter name.
*
*
* optional string name = 3;
* @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;
}
}
/**
*
* Parameter name.
*
*
* optional string name = 3;
* @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;
}
}
/**
*
* Parameter name.
*
*
* optional string name = 3;
* @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_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
/**
*
* Parameter name.
*
*
* optional string name = 3;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000004);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Parameter name.
*
*
* optional string name = 3;
* @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_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
private int action_ = 0;
/**
*
* The action by which to modify this parameter.
*
*
* optional .yamcs.protobuf.processing.UpdateParameterRequest.ActionType action = 4;
* @return Whether the action field is set.
*/
@java.lang.Override public boolean hasAction() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The action by which to modify this parameter.
*
*
* optional .yamcs.protobuf.processing.UpdateParameterRequest.ActionType action = 4;
* @return The action.
*/
@java.lang.Override
public org.yamcs.protobuf.UpdateParameterRequest.ActionType getAction() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.UpdateParameterRequest.ActionType result = org.yamcs.protobuf.UpdateParameterRequest.ActionType.valueOf(action_);
return result == null ? org.yamcs.protobuf.UpdateParameterRequest.ActionType.RESET : result;
}
/**
*
* The action by which to modify this parameter.
*
*
* optional .yamcs.protobuf.processing.UpdateParameterRequest.ActionType action = 4;
* @param value The action to set.
* @return This builder for chaining.
*/
public Builder setAction(org.yamcs.protobuf.UpdateParameterRequest.ActionType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
action_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The action by which to modify this parameter.
*
*
* optional .yamcs.protobuf.processing.UpdateParameterRequest.ActionType action = 4;
* @return This builder for chaining.
*/
public Builder clearAction() {
bitField0_ = (bitField0_ & ~0x00000008);
action_ = 0;
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_;
/**
*
* Used when action = SET_DEFAULT_CALIBRATOR or SET_CALIBRATORS
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
* @return Whether the defaultCalibrator field is set.
*/
public boolean hasDefaultCalibrator() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Used when action = SET_DEFAULT_CALIBRATOR or SET_CALIBRATORS
*
*
* 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();
}
}
/**
*
* Used when action = SET_DEFAULT_CALIBRATOR or SET_CALIBRATORS
*
*
* 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_ |= 0x00000010;
return this;
}
/**
*
* Used when action = SET_DEFAULT_CALIBRATOR or SET_CALIBRATORS
*
*
* 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_ |= 0x00000010;
return this;
}
/**
*
* Used when action = SET_DEFAULT_CALIBRATOR or SET_CALIBRATORS
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
*/
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;
}
/**
*
* Used when action = SET_DEFAULT_CALIBRATOR or SET_CALIBRATORS
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
*/
public Builder clearDefaultCalibrator() {
if (defaultCalibratorBuilder_ == null) {
defaultCalibrator_ = null;
onChanged();
} else {
defaultCalibratorBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
*
* Used when action = SET_DEFAULT_CALIBRATOR or SET_CALIBRATORS
*
*
* optional .yamcs.protobuf.mdb.CalibratorInfo defaultCalibrator = 5;
*/
public org.yamcs.protobuf.Mdb.CalibratorInfo.Builder getDefaultCalibratorBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getDefaultCalibratorFieldBuilder().getBuilder();
}
/**
*
* Used when action = SET_DEFAULT_CALIBRATOR or SET_CALIBRATORS
*
*
* 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_;
}
}
/**
*
* Used when action = SET_DEFAULT_CALIBRATOR or SET_CALIBRATORS
*
*
* 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 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_;
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
public java.util.List getContextCalibratorList() {
if (contextCalibratorBuilder_ == null) {
return java.util.Collections.unmodifiableList(contextCalibrator_);
} else {
return contextCalibratorBuilder_.getMessageList();
}
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
public int getContextCalibratorCount() {
if (contextCalibratorBuilder_ == null) {
return contextCalibrator_.size();
} else {
return contextCalibratorBuilder_.getCount();
}
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo getContextCalibrator(int index) {
if (contextCalibratorBuilder_ == null) {
return contextCalibrator_.get(index);
} else {
return contextCalibratorBuilder_.getMessage(index);
}
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
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;
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
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;
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
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;
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
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;
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
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;
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
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;
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
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;
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
public Builder clearContextCalibrator() {
if (contextCalibratorBuilder_ == null) {
contextCalibrator_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
} else {
contextCalibratorBuilder_.clear();
}
return this;
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
public Builder removeContextCalibrator(int index) {
if (contextCalibratorBuilder_ == null) {
ensureContextCalibratorIsMutable();
contextCalibrator_.remove(index);
onChanged();
} else {
contextCalibratorBuilder_.remove(index);
}
return this;
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder getContextCalibratorBuilder(
int index) {
return getContextCalibratorFieldBuilder().getBuilder(index);
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder getContextCalibratorOrBuilder(
int index) {
if (contextCalibratorBuilder_ == null) {
return contextCalibrator_.get(index); } else {
return contextCalibratorBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContextCalibratorInfoOrBuilder>
getContextCalibratorOrBuilderList() {
if (contextCalibratorBuilder_ != null) {
return contextCalibratorBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contextCalibrator_);
}
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder addContextCalibratorBuilder() {
return getContextCalibratorFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ContextCalibratorInfo.getDefaultInstance());
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
public org.yamcs.protobuf.Mdb.ContextCalibratorInfo.Builder addContextCalibratorBuilder(
int index) {
return getContextCalibratorFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ContextCalibratorInfo.getDefaultInstance());
}
/**
*
* Used when action = SET_CALIBRATORS
*
*
* repeated .yamcs.protobuf.mdb.ContextCalibratorInfo contextCalibrator = 6;
*/
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 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_;
/**
*
* Used when action = SET_DEFAULT_ALARMS or SET_ALARMS
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
* @return Whether the defaultAlarm field is set.
*/
public boolean hasDefaultAlarm() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Used when action = SET_DEFAULT_ALARMS or SET_ALARMS
*
*
* 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();
}
}
/**
*
* Used when action = SET_DEFAULT_ALARMS or SET_ALARMS
*
*
* 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_ |= 0x00000040;
return this;
}
/**
*
* Used when action = SET_DEFAULT_ALARMS or SET_ALARMS
*
*
* 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_ |= 0x00000040;
return this;
}
/**
*
* Used when action = SET_DEFAULT_ALARMS or SET_ALARMS
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
*/
public Builder mergeDefaultAlarm(org.yamcs.protobuf.Mdb.AlarmInfo value) {
if (defaultAlarmBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 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_ |= 0x00000040;
return this;
}
/**
*
* Used when action = SET_DEFAULT_ALARMS or SET_ALARMS
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
*/
public Builder clearDefaultAlarm() {
if (defaultAlarmBuilder_ == null) {
defaultAlarm_ = null;
onChanged();
} else {
defaultAlarmBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
*
* Used when action = SET_DEFAULT_ALARMS or SET_ALARMS
*
*
* optional .yamcs.protobuf.mdb.AlarmInfo defaultAlarm = 7;
*/
public org.yamcs.protobuf.Mdb.AlarmInfo.Builder getDefaultAlarmBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getDefaultAlarmFieldBuilder().getBuilder();
}
/**
*
* Used when action = SET_DEFAULT_ALARMS or SET_ALARMS
*
*
* 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_;
}
}
/**
*
* Used when action = SET_DEFAULT_ALARMS or SET_ALARMS
*
*
* 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 contextAlarm_ =
java.util.Collections.emptyList();
private void ensureContextAlarmIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
contextAlarm_ = new java.util.ArrayList(contextAlarm_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Mdb.ContextAlarmInfo, org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder, org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder> contextAlarmBuilder_;
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
public java.util.List getContextAlarmList() {
if (contextAlarmBuilder_ == null) {
return java.util.Collections.unmodifiableList(contextAlarm_);
} else {
return contextAlarmBuilder_.getMessageList();
}
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
public int getContextAlarmCount() {
if (contextAlarmBuilder_ == null) {
return contextAlarm_.size();
} else {
return contextAlarmBuilder_.getCount();
}
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo getContextAlarm(int index) {
if (contextAlarmBuilder_ == null) {
return contextAlarm_.get(index);
} else {
return contextAlarmBuilder_.getMessage(index);
}
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
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;
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
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;
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
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;
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
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;
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
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;
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
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;
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
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;
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
public Builder clearContextAlarm() {
if (contextAlarmBuilder_ == null) {
contextAlarm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
contextAlarmBuilder_.clear();
}
return this;
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
public Builder removeContextAlarm(int index) {
if (contextAlarmBuilder_ == null) {
ensureContextAlarmIsMutable();
contextAlarm_.remove(index);
onChanged();
} else {
contextAlarmBuilder_.remove(index);
}
return this;
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder getContextAlarmBuilder(
int index) {
return getContextAlarmFieldBuilder().getBuilder(index);
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder getContextAlarmOrBuilder(
int index) {
if (contextAlarmBuilder_ == null) {
return contextAlarm_.get(index); } else {
return contextAlarmBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContextAlarmInfoOrBuilder>
getContextAlarmOrBuilderList() {
if (contextAlarmBuilder_ != null) {
return contextAlarmBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(contextAlarm_);
}
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder addContextAlarmBuilder() {
return getContextAlarmFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ContextAlarmInfo.getDefaultInstance());
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
public org.yamcs.protobuf.Mdb.ContextAlarmInfo.Builder addContextAlarmBuilder(
int index) {
return getContextAlarmFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ContextAlarmInfo.getDefaultInstance());
}
/**
*
* Used when action = SET_ALARMS
*
*
* repeated .yamcs.protobuf.mdb.ContextAlarmInfo contextAlarm = 8;
*/
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_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
contextAlarm_ = null;
}
return contextAlarmBuilder_;
}
@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.UpdateParameterRequest)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.processing.UpdateParameterRequest)
private static final org.yamcs.protobuf.UpdateParameterRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.UpdateParameterRequest();
}
public static org.yamcs.protobuf.UpdateParameterRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UpdateParameterRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UpdateParameterRequest(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.UpdateParameterRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy