All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yamcs.protobuf.AlarmData Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yamcs/protobuf/alarms/alarms.proto

package org.yamcs.protobuf;

/**
 * 
 * Summary of an alarm applicable for Parameter or Event (possibly
 * other in the future) alarms.
 * Contains detailed information on the value occurrence that initially
 * triggered the alarm, the most severe value since it originally triggered,
 * and the latest value at the time of your request.
 * 
* * Protobuf type {@code yamcs.protobuf.alarms.AlarmData} */ public final class AlarmData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yamcs.protobuf.alarms.AlarmData) AlarmDataOrBuilder { private static final long serialVersionUID = 0L; // Use AlarmData.newBuilder() to construct. private AlarmData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AlarmData() { type_ = 1; severity_ = 1; notificationType_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AlarmData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private AlarmData( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") org.yamcs.protobuf.AlarmType value = org.yamcs.protobuf.AlarmType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; type_ = rawValue; } break; } case 18: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (((bitField0_ & 0x00000002) != 0)) { subBuilder = triggerTime_.toBuilder(); } triggerTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(triggerTime_); triggerTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 26: { org.yamcs.protobuf.Yamcs.NamedObjectId.Builder subBuilder = null; if (((bitField0_ & 0x00000004) != 0)) { subBuilder = id_.toBuilder(); } id_ = input.readMessage(org.yamcs.protobuf.Yamcs.NamedObjectId.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(id_); id_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000004; break; } case 32: { bitField0_ |= 0x00000008; seqNum_ = input.readUInt32(); break; } case 40: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") org.yamcs.protobuf.AlarmSeverity value = org.yamcs.protobuf.AlarmSeverity.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(5, rawValue); } else { bitField0_ |= 0x00000010; severity_ = rawValue; } break; } case 48: { bitField0_ |= 0x00000020; violations_ = input.readUInt32(); break; } case 56: { bitField0_ |= 0x00000040; count_ = input.readUInt32(); break; } case 66: { org.yamcs.protobuf.AcknowledgeInfo.Builder subBuilder = null; if (((bitField0_ & 0x00000080) != 0)) { subBuilder = acknowledgeInfo_.toBuilder(); } acknowledgeInfo_ = input.readMessage(org.yamcs.protobuf.AcknowledgeInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(acknowledgeInfo_); acknowledgeInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000080; break; } case 72: { int rawValue = input.readEnum(); @SuppressWarnings("deprecation") org.yamcs.protobuf.AlarmNotificationType value = org.yamcs.protobuf.AlarmNotificationType.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(9, rawValue); } else { bitField0_ |= 0x00000100; notificationType_ = rawValue; } break; } case 82: { org.yamcs.protobuf.ParameterAlarmData.Builder subBuilder = null; if (((bitField0_ & 0x00000200) != 0)) { subBuilder = parameterDetail_.toBuilder(); } parameterDetail_ = input.readMessage(org.yamcs.protobuf.ParameterAlarmData.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(parameterDetail_); parameterDetail_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000200; break; } case 90: { org.yamcs.protobuf.EventAlarmData.Builder subBuilder = null; if (((bitField0_ & 0x00000400) != 0)) { subBuilder = eventDetail_.toBuilder(); } eventDetail_ = input.readMessage(org.yamcs.protobuf.EventAlarmData.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(eventDetail_); eventDetail_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000400; break; } case 96: { bitField0_ |= 0x00000800; latching_ = input.readBool(); break; } case 104: { bitField0_ |= 0x00001000; processOK_ = input.readBool(); break; } case 112: { bitField0_ |= 0x00002000; triggered_ = input.readBool(); break; } case 120: { bitField0_ |= 0x00004000; acknowledged_ = input.readBool(); break; } case 130: { org.yamcs.protobuf.ShelveInfo.Builder subBuilder = null; if (((bitField0_ & 0x00008000) != 0)) { subBuilder = shelveInfo_.toBuilder(); } shelveInfo_ = input.readMessage(org.yamcs.protobuf.ShelveInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(shelveInfo_); shelveInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00008000; break; } case 138: { org.yamcs.protobuf.ClearInfo.Builder subBuilder = null; if (((bitField0_ & 0x00010000) != 0)) { subBuilder = clearInfo_.toBuilder(); } clearInfo_ = input.readMessage(org.yamcs.protobuf.ClearInfo.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(clearInfo_); clearInfo_ = subBuilder.buildPartial(); } bitField0_ |= 0x00010000; break; } case 146: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (((bitField0_ & 0x00020000) != 0)) { subBuilder = updateTime_.toBuilder(); } updateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(updateTime_); updateTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00020000; break; } case 152: { bitField0_ |= 0x00040000; readonly_ = input.readBool(); break; } case 160: { bitField0_ |= 0x00080000; pending_ = input.readBool(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.AlarmsProto.internal_static_yamcs_protobuf_alarms_AlarmData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.AlarmsProto.internal_static_yamcs_protobuf_alarms_AlarmData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.AlarmData.class, org.yamcs.protobuf.AlarmData.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * optional .yamcs.protobuf.alarms.AlarmType type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .yamcs.protobuf.alarms.AlarmType type = 1; * @return The type. */ @java.lang.Override public org.yamcs.protobuf.AlarmType getType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.AlarmType result = org.yamcs.protobuf.AlarmType.valueOf(type_); return result == null ? org.yamcs.protobuf.AlarmType.PARAMETER : result; } public static final int TRIGGERTIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp triggerTime_; /** * optional .google.protobuf.Timestamp triggerTime = 2; * @return Whether the triggerTime field is set. */ @java.lang.Override public boolean hasTriggerTime() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .google.protobuf.Timestamp triggerTime = 2; * @return The triggerTime. */ @java.lang.Override public com.google.protobuf.Timestamp getTriggerTime() { return triggerTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : triggerTime_; } /** * optional .google.protobuf.Timestamp triggerTime = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getTriggerTimeOrBuilder() { return triggerTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : triggerTime_; } public static final int ID_FIELD_NUMBER = 3; private org.yamcs.protobuf.Yamcs.NamedObjectId id_; /** *
   * For parameter alarms, this is the id of the parameters
   * For event alarms
   *   - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless 
   *     EVENT_SOURCE starts with a "/" in which case the namespace
   *     is just the <EVENT_SOURCE>
   *   - the id.name is the <EVENT_TYPE>
   * 
* * optional .yamcs.protobuf.NamedObjectId id = 3; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * For parameter alarms, this is the id of the parameters
   * For event alarms
   *   - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless 
   *     EVENT_SOURCE starts with a "/" in which case the namespace
   *     is just the <EVENT_SOURCE>
   *   - the id.name is the <EVENT_TYPE>
   * 
* * optional .yamcs.protobuf.NamedObjectId id = 3; * @return The id. */ @java.lang.Override public org.yamcs.protobuf.Yamcs.NamedObjectId getId() { return id_ == null ? org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance() : id_; } /** *
   * For parameter alarms, this is the id of the parameters
   * For event alarms
   *   - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless 
   *     EVENT_SOURCE starts with a "/" in which case the namespace
   *     is just the <EVENT_SOURCE>
   *   - the id.name is the <EVENT_TYPE>
   * 
* * optional .yamcs.protobuf.NamedObjectId id = 3; */ @java.lang.Override public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder() { return id_ == null ? org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance() : id_; } public static final int SEQNUM_FIELD_NUMBER = 4; private int seqNum_; /** *
   * Distinguisher between multiple alarms for the same id
   * 
* * optional uint32 seqNum = 4; * @return Whether the seqNum field is set. */ @java.lang.Override public boolean hasSeqNum() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Distinguisher between multiple alarms for the same id
   * 
* * optional uint32 seqNum = 4; * @return The seqNum. */ @java.lang.Override public int getSeqNum() { return seqNum_; } public static final int SEVERITY_FIELD_NUMBER = 5; private int severity_; /** * optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5; * @return Whether the severity field is set. */ @java.lang.Override public boolean hasSeverity() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5; * @return The severity. */ @java.lang.Override public org.yamcs.protobuf.AlarmSeverity getSeverity() { @SuppressWarnings("deprecation") org.yamcs.protobuf.AlarmSeverity result = org.yamcs.protobuf.AlarmSeverity.valueOf(severity_); return result == null ? org.yamcs.protobuf.AlarmSeverity.WATCH : result; } public static final int VIOLATIONS_FIELD_NUMBER = 6; private int violations_; /** *
   * Number of times the object was in alarm state
   * 
* * optional uint32 violations = 6; * @return Whether the violations field is set. */ @java.lang.Override public boolean hasViolations() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Number of times the object was in alarm state
   * 
* * optional uint32 violations = 6; * @return The violations. */ @java.lang.Override public int getViolations() { return violations_; } public static final int COUNT_FIELD_NUMBER = 7; private int count_; /** *
   * Number of samples received for the object
   * 
* * optional uint32 count = 7; * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * Number of samples received for the object
   * 
* * optional uint32 count = 7; * @return The count. */ @java.lang.Override public int getCount() { return count_; } public static final int ACKNOWLEDGEINFO_FIELD_NUMBER = 8; private org.yamcs.protobuf.AcknowledgeInfo acknowledgeInfo_; /** * optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8; * @return Whether the acknowledgeInfo field is set. */ @java.lang.Override public boolean hasAcknowledgeInfo() { return ((bitField0_ & 0x00000080) != 0); } /** * optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8; * @return The acknowledgeInfo. */ @java.lang.Override public org.yamcs.protobuf.AcknowledgeInfo getAcknowledgeInfo() { return acknowledgeInfo_ == null ? org.yamcs.protobuf.AcknowledgeInfo.getDefaultInstance() : acknowledgeInfo_; } /** * optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8; */ @java.lang.Override public org.yamcs.protobuf.AcknowledgeInfoOrBuilder getAcknowledgeInfoOrBuilder() { return acknowledgeInfo_ == null ? org.yamcs.protobuf.AcknowledgeInfo.getDefaultInstance() : acknowledgeInfo_; } public static final int NOTIFICATIONTYPE_FIELD_NUMBER = 9; private int notificationType_; /** * optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9; * @return Whether the notificationType field is set. */ @java.lang.Override public boolean hasNotificationType() { return ((bitField0_ & 0x00000100) != 0); } /** * optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9; * @return The notificationType. */ @java.lang.Override public org.yamcs.protobuf.AlarmNotificationType getNotificationType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.AlarmNotificationType result = org.yamcs.protobuf.AlarmNotificationType.valueOf(notificationType_); return result == null ? org.yamcs.protobuf.AlarmNotificationType.ACTIVE : result; } public static final int PARAMETERDETAIL_FIELD_NUMBER = 10; private org.yamcs.protobuf.ParameterAlarmData parameterDetail_; /** *
   * Additional detail in case the alarm is of type PARAMETER
   * 
* * optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10; * @return Whether the parameterDetail field is set. */ @java.lang.Override public boolean hasParameterDetail() { return ((bitField0_ & 0x00000200) != 0); } /** *
   * Additional detail in case the alarm is of type PARAMETER
   * 
* * optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10; * @return The parameterDetail. */ @java.lang.Override public org.yamcs.protobuf.ParameterAlarmData getParameterDetail() { return parameterDetail_ == null ? org.yamcs.protobuf.ParameterAlarmData.getDefaultInstance() : parameterDetail_; } /** *
   * Additional detail in case the alarm is of type PARAMETER
   * 
* * optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10; */ @java.lang.Override public org.yamcs.protobuf.ParameterAlarmDataOrBuilder getParameterDetailOrBuilder() { return parameterDetail_ == null ? org.yamcs.protobuf.ParameterAlarmData.getDefaultInstance() : parameterDetail_; } public static final int EVENTDETAIL_FIELD_NUMBER = 11; private org.yamcs.protobuf.EventAlarmData eventDetail_; /** *
   * Additional detail in case the alarm is of type EVENT
   * 
* * optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11; * @return Whether the eventDetail field is set. */ @java.lang.Override public boolean hasEventDetail() { return ((bitField0_ & 0x00000400) != 0); } /** *
   * Additional detail in case the alarm is of type EVENT
   * 
* * optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11; * @return The eventDetail. */ @java.lang.Override public org.yamcs.protobuf.EventAlarmData getEventDetail() { return eventDetail_ == null ? org.yamcs.protobuf.EventAlarmData.getDefaultInstance() : eventDetail_; } /** *
   * Additional detail in case the alarm is of type EVENT
   * 
* * optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11; */ @java.lang.Override public org.yamcs.protobuf.EventAlarmDataOrBuilder getEventDetailOrBuilder() { return eventDetail_ == null ? org.yamcs.protobuf.EventAlarmData.getDefaultInstance() : eventDetail_; } public static final int LATCHING_FIELD_NUMBER = 12; private boolean latching_; /** *
   * Whether the alarm will stay triggered even when the process is OK
   * 
* * optional bool latching = 12; * @return Whether the latching field is set. */ @java.lang.Override public boolean hasLatching() { return ((bitField0_ & 0x00000800) != 0); } /** *
   * Whether the alarm will stay triggered even when the process is OK
   * 
* * optional bool latching = 12; * @return The latching. */ @java.lang.Override public boolean getLatching() { return latching_; } public static final int PROCESSOK_FIELD_NUMBER = 13; private boolean processOK_; /** *
   * if the process that generated the alarm is ok (i.e. parameter is within limits)
   * 
* * optional bool processOK = 13; * @return Whether the processOK field is set. */ @java.lang.Override public boolean hasProcessOK() { return ((bitField0_ & 0x00001000) != 0); } /** *
   * if the process that generated the alarm is ok (i.e. parameter is within limits)
   * 
* * optional bool processOK = 13; * @return The processOK. */ @java.lang.Override public boolean getProcessOK() { return processOK_; } public static final int TRIGGERED_FIELD_NUMBER = 14; private boolean triggered_; /** *
   * triggered is same with processOK except when the alarm is latching
   * 
* * optional bool triggered = 14; * @return Whether the triggered field is set. */ @java.lang.Override public boolean hasTriggered() { return ((bitField0_ & 0x00002000) != 0); } /** *
   * triggered is same with processOK except when the alarm is latching
   * 
* * optional bool triggered = 14; * @return The triggered. */ @java.lang.Override public boolean getTriggered() { return triggered_; } public static final int ACKNOWLEDGED_FIELD_NUMBER = 15; private boolean acknowledged_; /** *
   * if the operator has acknowledged the alarm
   * 
* * optional bool acknowledged = 15; * @return Whether the acknowledged field is set. */ @java.lang.Override public boolean hasAcknowledged() { return ((bitField0_ & 0x00004000) != 0); } /** *
   * if the operator has acknowledged the alarm
   * 
* * optional bool acknowledged = 15; * @return The acknowledged. */ @java.lang.Override public boolean getAcknowledged() { return acknowledged_; } public static final int SHELVEINFO_FIELD_NUMBER = 16; private org.yamcs.protobuf.ShelveInfo shelveInfo_; /** *
   * Details in case the alarm was shelved
   * 
* * optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16; * @return Whether the shelveInfo field is set. */ @java.lang.Override public boolean hasShelveInfo() { return ((bitField0_ & 0x00008000) != 0); } /** *
   * Details in case the alarm was shelved
   * 
* * optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16; * @return The shelveInfo. */ @java.lang.Override public org.yamcs.protobuf.ShelveInfo getShelveInfo() { return shelveInfo_ == null ? org.yamcs.protobuf.ShelveInfo.getDefaultInstance() : shelveInfo_; } /** *
   * Details in case the alarm was shelved
   * 
* * optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16; */ @java.lang.Override public org.yamcs.protobuf.ShelveInfoOrBuilder getShelveInfoOrBuilder() { return shelveInfo_ == null ? org.yamcs.protobuf.ShelveInfo.getDefaultInstance() : shelveInfo_; } public static final int CLEARINFO_FIELD_NUMBER = 17; private org.yamcs.protobuf.ClearInfo clearInfo_; /** * optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17; * @return Whether the clearInfo field is set. */ @java.lang.Override public boolean hasClearInfo() { return ((bitField0_ & 0x00010000) != 0); } /** * optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17; * @return The clearInfo. */ @java.lang.Override public org.yamcs.protobuf.ClearInfo getClearInfo() { return clearInfo_ == null ? org.yamcs.protobuf.ClearInfo.getDefaultInstance() : clearInfo_; } /** * optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17; */ @java.lang.Override public org.yamcs.protobuf.ClearInfoOrBuilder getClearInfoOrBuilder() { return clearInfo_ == null ? org.yamcs.protobuf.ClearInfo.getDefaultInstance() : clearInfo_; } public static final int UPDATETIME_FIELD_NUMBER = 18; private com.google.protobuf.Timestamp updateTime_; /** *
   * Time when the alarm was last updated
   * 
* * optional .google.protobuf.Timestamp updateTime = 18; * @return Whether the updateTime field is set. */ @java.lang.Override public boolean hasUpdateTime() { return ((bitField0_ & 0x00020000) != 0); } /** *
   * Time when the alarm was last updated
   * 
* * optional .google.protobuf.Timestamp updateTime = 18; * @return The updateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getUpdateTime() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } /** *
   * Time when the alarm was last updated
   * 
* * optional .google.protobuf.Timestamp updateTime = 18; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } public static final int READONLY_FIELD_NUMBER = 19; private boolean readonly_; /** *
   * Whether this alarm may be updated by this processor.
   * Set to false when the alarms are mirrored from another Yamcs instance.
   * 
* * optional bool readonly = 19; * @return Whether the readonly field is set. */ @java.lang.Override public boolean hasReadonly() { return ((bitField0_ & 0x00040000) != 0); } /** *
   * Whether this alarm may be updated by this processor.
   * Set to false when the alarms are mirrored from another Yamcs instance.
   * 
* * optional bool readonly = 19; * @return The readonly. */ @java.lang.Override public boolean getReadonly() { return readonly_; } public static final int PENDING_FIELD_NUMBER = 20; private boolean pending_; /** *
   * An alarm is in pending state if the minViolations has not been reached
   * The alarm is not actually triggered in this case
   * This is only sent when true
   * 
* * optional bool pending = 20; * @return Whether the pending field is set. */ @java.lang.Override public boolean hasPending() { return ((bitField0_ & 0x00080000) != 0); } /** *
   * An alarm is in pending state if the minViolations has not been reached
   * The alarm is not actually triggered in this case
   * This is only sent when true
   * 
* * optional bool pending = 20; * @return The pending. */ @java.lang.Override public boolean getPending() { return pending_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; if (hasId()) { if (!getId().isInitialized()) { memoizedIsInitialized = 0; return false; } } if (hasParameterDetail()) { if (!getParameterDetail().isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, type_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getTriggerTime()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getId()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, seqNum_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(5, severity_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeUInt32(6, violations_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeUInt32(7, count_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(8, getAcknowledgeInfo()); } if (((bitField0_ & 0x00000100) != 0)) { output.writeEnum(9, notificationType_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(10, getParameterDetail()); } if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(11, getEventDetail()); } if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(12, latching_); } if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(13, processOK_); } if (((bitField0_ & 0x00002000) != 0)) { output.writeBool(14, triggered_); } if (((bitField0_ & 0x00004000) != 0)) { output.writeBool(15, acknowledged_); } if (((bitField0_ & 0x00008000) != 0)) { output.writeMessage(16, getShelveInfo()); } if (((bitField0_ & 0x00010000) != 0)) { output.writeMessage(17, getClearInfo()); } if (((bitField0_ & 0x00020000) != 0)) { output.writeMessage(18, getUpdateTime()); } if (((bitField0_ & 0x00040000) != 0)) { output.writeBool(19, readonly_); } if (((bitField0_ & 0x00080000) != 0)) { output.writeBool(20, pending_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, type_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getTriggerTime()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getId()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, seqNum_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, severity_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, violations_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, count_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getAcknowledgeInfo()); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, notificationType_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getParameterDetail()); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getEventDetail()); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, latching_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, processOK_); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, triggered_); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(15, acknowledged_); } if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, getShelveInfo()); } if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, getClearInfo()); } if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getUpdateTime()); } if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(19, readonly_); } if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, pending_); } 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.AlarmData)) { return super.equals(obj); } org.yamcs.protobuf.AlarmData other = (org.yamcs.protobuf.AlarmData) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasTriggerTime() != other.hasTriggerTime()) return false; if (hasTriggerTime()) { if (!getTriggerTime() .equals(other.getTriggerTime())) return false; } if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (hasSeqNum() != other.hasSeqNum()) return false; if (hasSeqNum()) { if (getSeqNum() != other.getSeqNum()) return false; } if (hasSeverity() != other.hasSeverity()) return false; if (hasSeverity()) { if (severity_ != other.severity_) return false; } if (hasViolations() != other.hasViolations()) return false; if (hasViolations()) { if (getViolations() != other.getViolations()) return false; } if (hasCount() != other.hasCount()) return false; if (hasCount()) { if (getCount() != other.getCount()) return false; } if (hasAcknowledgeInfo() != other.hasAcknowledgeInfo()) return false; if (hasAcknowledgeInfo()) { if (!getAcknowledgeInfo() .equals(other.getAcknowledgeInfo())) return false; } if (hasNotificationType() != other.hasNotificationType()) return false; if (hasNotificationType()) { if (notificationType_ != other.notificationType_) return false; } if (hasParameterDetail() != other.hasParameterDetail()) return false; if (hasParameterDetail()) { if (!getParameterDetail() .equals(other.getParameterDetail())) return false; } if (hasEventDetail() != other.hasEventDetail()) return false; if (hasEventDetail()) { if (!getEventDetail() .equals(other.getEventDetail())) return false; } if (hasLatching() != other.hasLatching()) return false; if (hasLatching()) { if (getLatching() != other.getLatching()) return false; } if (hasProcessOK() != other.hasProcessOK()) return false; if (hasProcessOK()) { if (getProcessOK() != other.getProcessOK()) return false; } if (hasTriggered() != other.hasTriggered()) return false; if (hasTriggered()) { if (getTriggered() != other.getTriggered()) return false; } if (hasAcknowledged() != other.hasAcknowledged()) return false; if (hasAcknowledged()) { if (getAcknowledged() != other.getAcknowledged()) return false; } if (hasShelveInfo() != other.hasShelveInfo()) return false; if (hasShelveInfo()) { if (!getShelveInfo() .equals(other.getShelveInfo())) return false; } if (hasClearInfo() != other.hasClearInfo()) return false; if (hasClearInfo()) { if (!getClearInfo() .equals(other.getClearInfo())) return false; } if (hasUpdateTime() != other.hasUpdateTime()) return false; if (hasUpdateTime()) { if (!getUpdateTime() .equals(other.getUpdateTime())) return false; } if (hasReadonly() != other.hasReadonly()) return false; if (hasReadonly()) { if (getReadonly() != other.getReadonly()) return false; } if (hasPending() != other.hasPending()) return false; if (hasPending()) { if (getPending() != other.getPending()) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasTriggerTime()) { hash = (37 * hash) + TRIGGERTIME_FIELD_NUMBER; hash = (53 * hash) + getTriggerTime().hashCode(); } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasSeqNum()) { hash = (37 * hash) + SEQNUM_FIELD_NUMBER; hash = (53 * hash) + getSeqNum(); } if (hasSeverity()) { hash = (37 * hash) + SEVERITY_FIELD_NUMBER; hash = (53 * hash) + severity_; } if (hasViolations()) { hash = (37 * hash) + VIOLATIONS_FIELD_NUMBER; hash = (53 * hash) + getViolations(); } if (hasCount()) { hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); } if (hasAcknowledgeInfo()) { hash = (37 * hash) + ACKNOWLEDGEINFO_FIELD_NUMBER; hash = (53 * hash) + getAcknowledgeInfo().hashCode(); } if (hasNotificationType()) { hash = (37 * hash) + NOTIFICATIONTYPE_FIELD_NUMBER; hash = (53 * hash) + notificationType_; } if (hasParameterDetail()) { hash = (37 * hash) + PARAMETERDETAIL_FIELD_NUMBER; hash = (53 * hash) + getParameterDetail().hashCode(); } if (hasEventDetail()) { hash = (37 * hash) + EVENTDETAIL_FIELD_NUMBER; hash = (53 * hash) + getEventDetail().hashCode(); } if (hasLatching()) { hash = (37 * hash) + LATCHING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getLatching()); } if (hasProcessOK()) { hash = (37 * hash) + PROCESSOK_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getProcessOK()); } if (hasTriggered()) { hash = (37 * hash) + TRIGGERED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getTriggered()); } if (hasAcknowledged()) { hash = (37 * hash) + ACKNOWLEDGED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAcknowledged()); } if (hasShelveInfo()) { hash = (37 * hash) + SHELVEINFO_FIELD_NUMBER; hash = (53 * hash) + getShelveInfo().hashCode(); } if (hasClearInfo()) { hash = (37 * hash) + CLEARINFO_FIELD_NUMBER; hash = (53 * hash) + getClearInfo().hashCode(); } if (hasUpdateTime()) { hash = (37 * hash) + UPDATETIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } if (hasReadonly()) { hash = (37 * hash) + READONLY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReadonly()); } if (hasPending()) { hash = (37 * hash) + PENDING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getPending()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.AlarmData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.AlarmData 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.AlarmData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.AlarmData 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.AlarmData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.AlarmData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.AlarmData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.AlarmData 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.AlarmData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.AlarmData 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.AlarmData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.AlarmData 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.AlarmData 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; } /** *
   * Summary of an alarm applicable for Parameter or Event (possibly
   * other in the future) alarms.
   * Contains detailed information on the value occurrence that initially
   * triggered the alarm, the most severe value since it originally triggered,
   * and the latest value at the time of your request.
   * 
* * Protobuf type {@code yamcs.protobuf.alarms.AlarmData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.alarms.AlarmData) org.yamcs.protobuf.AlarmDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.AlarmsProto.internal_static_yamcs_protobuf_alarms_AlarmData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.AlarmsProto.internal_static_yamcs_protobuf_alarms_AlarmData_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.AlarmData.class, org.yamcs.protobuf.AlarmData.Builder.class); } // Construct using org.yamcs.protobuf.AlarmData.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getTriggerTimeFieldBuilder(); getIdFieldBuilder(); getAcknowledgeInfoFieldBuilder(); getParameterDetailFieldBuilder(); getEventDetailFieldBuilder(); getShelveInfoFieldBuilder(); getClearInfoFieldBuilder(); getUpdateTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); type_ = 1; bitField0_ = (bitField0_ & ~0x00000001); if (triggerTimeBuilder_ == null) { triggerTime_ = null; } else { triggerTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (idBuilder_ == null) { id_ = null; } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); seqNum_ = 0; bitField0_ = (bitField0_ & ~0x00000008); severity_ = 1; bitField0_ = (bitField0_ & ~0x00000010); violations_ = 0; bitField0_ = (bitField0_ & ~0x00000020); count_ = 0; bitField0_ = (bitField0_ & ~0x00000040); if (acknowledgeInfoBuilder_ == null) { acknowledgeInfo_ = null; } else { acknowledgeInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); notificationType_ = 1; bitField0_ = (bitField0_ & ~0x00000100); if (parameterDetailBuilder_ == null) { parameterDetail_ = null; } else { parameterDetailBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); if (eventDetailBuilder_ == null) { eventDetail_ = null; } else { eventDetailBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); latching_ = false; bitField0_ = (bitField0_ & ~0x00000800); processOK_ = false; bitField0_ = (bitField0_ & ~0x00001000); triggered_ = false; bitField0_ = (bitField0_ & ~0x00002000); acknowledged_ = false; bitField0_ = (bitField0_ & ~0x00004000); if (shelveInfoBuilder_ == null) { shelveInfo_ = null; } else { shelveInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); if (clearInfoBuilder_ == null) { clearInfo_ = null; } else { clearInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00010000); if (updateTimeBuilder_ == null) { updateTime_ = null; } else { updateTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); readonly_ = false; bitField0_ = (bitField0_ & ~0x00040000); pending_ = false; bitField0_ = (bitField0_ & ~0x00080000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.AlarmsProto.internal_static_yamcs_protobuf_alarms_AlarmData_descriptor; } @java.lang.Override public org.yamcs.protobuf.AlarmData getDefaultInstanceForType() { return org.yamcs.protobuf.AlarmData.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.AlarmData build() { org.yamcs.protobuf.AlarmData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.AlarmData buildPartial() { org.yamcs.protobuf.AlarmData result = new org.yamcs.protobuf.AlarmData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) != 0)) { if (triggerTimeBuilder_ == null) { result.triggerTime_ = triggerTime_; } else { result.triggerTime_ = triggerTimeBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { if (idBuilder_ == null) { result.id_ = id_; } else { result.id_ = idBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.seqNum_ = seqNum_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.severity_ = severity_; if (((from_bitField0_ & 0x00000020) != 0)) { result.violations_ = violations_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.count_ = count_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { if (acknowledgeInfoBuilder_ == null) { result.acknowledgeInfo_ = acknowledgeInfo_; } else { result.acknowledgeInfo_ = acknowledgeInfoBuilder_.build(); } to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { to_bitField0_ |= 0x00000100; } result.notificationType_ = notificationType_; if (((from_bitField0_ & 0x00000200) != 0)) { if (parameterDetailBuilder_ == null) { result.parameterDetail_ = parameterDetail_; } else { result.parameterDetail_ = parameterDetailBuilder_.build(); } to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { if (eventDetailBuilder_ == null) { result.eventDetail_ = eventDetail_; } else { result.eventDetail_ = eventDetailBuilder_.build(); } to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { result.latching_ = latching_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00001000) != 0)) { result.processOK_ = processOK_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00002000) != 0)) { result.triggered_ = triggered_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00004000) != 0)) { result.acknowledged_ = acknowledged_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00008000) != 0)) { if (shelveInfoBuilder_ == null) { result.shelveInfo_ = shelveInfo_; } else { result.shelveInfo_ = shelveInfoBuilder_.build(); } to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00010000) != 0)) { if (clearInfoBuilder_ == null) { result.clearInfo_ = clearInfo_; } else { result.clearInfo_ = clearInfoBuilder_.build(); } to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00020000) != 0)) { if (updateTimeBuilder_ == null) { result.updateTime_ = updateTime_; } else { result.updateTime_ = updateTimeBuilder_.build(); } to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00040000) != 0)) { result.readonly_ = readonly_; to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x00080000) != 0)) { result.pending_ = pending_; to_bitField0_ |= 0x00080000; } 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.AlarmData) { return mergeFrom((org.yamcs.protobuf.AlarmData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.AlarmData other) { if (other == org.yamcs.protobuf.AlarmData.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasTriggerTime()) { mergeTriggerTime(other.getTriggerTime()); } if (other.hasId()) { mergeId(other.getId()); } if (other.hasSeqNum()) { setSeqNum(other.getSeqNum()); } if (other.hasSeverity()) { setSeverity(other.getSeverity()); } if (other.hasViolations()) { setViolations(other.getViolations()); } if (other.hasCount()) { setCount(other.getCount()); } if (other.hasAcknowledgeInfo()) { mergeAcknowledgeInfo(other.getAcknowledgeInfo()); } if (other.hasNotificationType()) { setNotificationType(other.getNotificationType()); } if (other.hasParameterDetail()) { mergeParameterDetail(other.getParameterDetail()); } if (other.hasEventDetail()) { mergeEventDetail(other.getEventDetail()); } if (other.hasLatching()) { setLatching(other.getLatching()); } if (other.hasProcessOK()) { setProcessOK(other.getProcessOK()); } if (other.hasTriggered()) { setTriggered(other.getTriggered()); } if (other.hasAcknowledged()) { setAcknowledged(other.getAcknowledged()); } if (other.hasShelveInfo()) { mergeShelveInfo(other.getShelveInfo()); } if (other.hasClearInfo()) { mergeClearInfo(other.getClearInfo()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } if (other.hasReadonly()) { setReadonly(other.getReadonly()); } if (other.hasPending()) { setPending(other.getPending()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { if (hasId()) { if (!getId().isInitialized()) { return false; } } if (hasParameterDetail()) { if (!getParameterDetail().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.AlarmData parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.AlarmData) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int type_ = 1; /** * optional .yamcs.protobuf.alarms.AlarmType type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .yamcs.protobuf.alarms.AlarmType type = 1; * @return The type. */ @java.lang.Override public org.yamcs.protobuf.AlarmType getType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.AlarmType result = org.yamcs.protobuf.AlarmType.valueOf(type_); return result == null ? org.yamcs.protobuf.AlarmType.PARAMETER : result; } /** * optional .yamcs.protobuf.alarms.AlarmType type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(org.yamcs.protobuf.AlarmType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * optional .yamcs.protobuf.alarms.AlarmType type = 1; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 1; onChanged(); return this; } private com.google.protobuf.Timestamp triggerTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> triggerTimeBuilder_; /** * optional .google.protobuf.Timestamp triggerTime = 2; * @return Whether the triggerTime field is set. */ public boolean hasTriggerTime() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .google.protobuf.Timestamp triggerTime = 2; * @return The triggerTime. */ public com.google.protobuf.Timestamp getTriggerTime() { if (triggerTimeBuilder_ == null) { return triggerTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : triggerTime_; } else { return triggerTimeBuilder_.getMessage(); } } /** * optional .google.protobuf.Timestamp triggerTime = 2; */ public Builder setTriggerTime(com.google.protobuf.Timestamp value) { if (triggerTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } triggerTime_ = value; onChanged(); } else { triggerTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .google.protobuf.Timestamp triggerTime = 2; */ public Builder setTriggerTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (triggerTimeBuilder_ == null) { triggerTime_ = builderForValue.build(); onChanged(); } else { triggerTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .google.protobuf.Timestamp triggerTime = 2; */ public Builder mergeTriggerTime(com.google.protobuf.Timestamp value) { if (triggerTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && triggerTime_ != null && triggerTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { triggerTime_ = com.google.protobuf.Timestamp.newBuilder(triggerTime_).mergeFrom(value).buildPartial(); } else { triggerTime_ = value; } onChanged(); } else { triggerTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .google.protobuf.Timestamp triggerTime = 2; */ public Builder clearTriggerTime() { if (triggerTimeBuilder_ == null) { triggerTime_ = null; onChanged(); } else { triggerTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .google.protobuf.Timestamp triggerTime = 2; */ public com.google.protobuf.Timestamp.Builder getTriggerTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getTriggerTimeFieldBuilder().getBuilder(); } /** * optional .google.protobuf.Timestamp triggerTime = 2; */ public com.google.protobuf.TimestampOrBuilder getTriggerTimeOrBuilder() { if (triggerTimeBuilder_ != null) { return triggerTimeBuilder_.getMessageOrBuilder(); } else { return triggerTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : triggerTime_; } } /** * optional .google.protobuf.Timestamp triggerTime = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getTriggerTimeFieldBuilder() { if (triggerTimeBuilder_ == null) { triggerTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getTriggerTime(), getParentForChildren(), isClean()); triggerTime_ = null; } return triggerTimeBuilder_; } private org.yamcs.protobuf.Yamcs.NamedObjectId id_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder> idBuilder_; /** *
     * For parameter alarms, this is the id of the parameters
     * For event alarms
     *   - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless 
     *     EVENT_SOURCE starts with a "/" in which case the namespace
     *     is just the <EVENT_SOURCE>
     *   - the id.name is the <EVENT_TYPE>
     * 
* * optional .yamcs.protobuf.NamedObjectId id = 3; * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * For parameter alarms, this is the id of the parameters
     * For event alarms
     *   - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless 
     *     EVENT_SOURCE starts with a "/" in which case the namespace
     *     is just the <EVENT_SOURCE>
     *   - the id.name is the <EVENT_TYPE>
     * 
* * optional .yamcs.protobuf.NamedObjectId id = 3; * @return The id. */ public org.yamcs.protobuf.Yamcs.NamedObjectId getId() { if (idBuilder_ == null) { return id_ == null ? org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance() : id_; } else { return idBuilder_.getMessage(); } } /** *
     * For parameter alarms, this is the id of the parameters
     * For event alarms
     *   - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless 
     *     EVENT_SOURCE starts with a "/" in which case the namespace
     *     is just the <EVENT_SOURCE>
     *   - the id.name is the <EVENT_TYPE>
     * 
* * optional .yamcs.protobuf.NamedObjectId id = 3; */ public Builder setId(org.yamcs.protobuf.Yamcs.NamedObjectId value) { if (idBuilder_ == null) { if (value == null) { throw new NullPointerException(); } id_ = value; onChanged(); } else { idBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
     * For parameter alarms, this is the id of the parameters
     * For event alarms
     *   - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless 
     *     EVENT_SOURCE starts with a "/" in which case the namespace
     *     is just the <EVENT_SOURCE>
     *   - the id.name is the <EVENT_TYPE>
     * 
* * optional .yamcs.protobuf.NamedObjectId id = 3; */ public Builder setId( org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) { if (idBuilder_ == null) { id_ = builderForValue.build(); onChanged(); } else { idBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
     * For parameter alarms, this is the id of the parameters
     * For event alarms
     *   - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless 
     *     EVENT_SOURCE starts with a "/" in which case the namespace
     *     is just the <EVENT_SOURCE>
     *   - the id.name is the <EVENT_TYPE>
     * 
* * optional .yamcs.protobuf.NamedObjectId id = 3; */ public Builder mergeId(org.yamcs.protobuf.Yamcs.NamedObjectId value) { if (idBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && id_ != null && id_ != org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance()) { id_ = org.yamcs.protobuf.Yamcs.NamedObjectId.newBuilder(id_).mergeFrom(value).buildPartial(); } else { id_ = value; } onChanged(); } else { idBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
     * For parameter alarms, this is the id of the parameters
     * For event alarms
     *   - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless 
     *     EVENT_SOURCE starts with a "/" in which case the namespace
     *     is just the <EVENT_SOURCE>
     *   - the id.name is the <EVENT_TYPE>
     * 
* * optional .yamcs.protobuf.NamedObjectId id = 3; */ public Builder clearId() { if (idBuilder_ == null) { id_ = null; onChanged(); } else { idBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
     * For parameter alarms, this is the id of the parameters
     * For event alarms
     *   - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless 
     *     EVENT_SOURCE starts with a "/" in which case the namespace
     *     is just the <EVENT_SOURCE>
     *   - the id.name is the <EVENT_TYPE>
     * 
* * optional .yamcs.protobuf.NamedObjectId id = 3; */ public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder getIdBuilder() { bitField0_ |= 0x00000004; onChanged(); return getIdFieldBuilder().getBuilder(); } /** *
     * For parameter alarms, this is the id of the parameters
     * For event alarms
     *   - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless 
     *     EVENT_SOURCE starts with a "/" in which case the namespace
     *     is just the <EVENT_SOURCE>
     *   - the id.name is the <EVENT_TYPE>
     * 
* * optional .yamcs.protobuf.NamedObjectId id = 3; */ public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder() { if (idBuilder_ != null) { return idBuilder_.getMessageOrBuilder(); } else { return id_ == null ? org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance() : id_; } } /** *
     * For parameter alarms, this is the id of the parameters
     * For event alarms
     *   - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless 
     *     EVENT_SOURCE starts with a "/" in which case the namespace
     *     is just the <EVENT_SOURCE>
     *   - the id.name is the <EVENT_TYPE>
     * 
* * optional .yamcs.protobuf.NamedObjectId id = 3; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder> getIdFieldBuilder() { if (idBuilder_ == null) { idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>( getId(), getParentForChildren(), isClean()); id_ = null; } return idBuilder_; } private int seqNum_ ; /** *
     * Distinguisher between multiple alarms for the same id
     * 
* * optional uint32 seqNum = 4; * @return Whether the seqNum field is set. */ @java.lang.Override public boolean hasSeqNum() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Distinguisher between multiple alarms for the same id
     * 
* * optional uint32 seqNum = 4; * @return The seqNum. */ @java.lang.Override public int getSeqNum() { return seqNum_; } /** *
     * Distinguisher between multiple alarms for the same id
     * 
* * optional uint32 seqNum = 4; * @param value The seqNum to set. * @return This builder for chaining. */ public Builder setSeqNum(int value) { bitField0_ |= 0x00000008; seqNum_ = value; onChanged(); return this; } /** *
     * Distinguisher between multiple alarms for the same id
     * 
* * optional uint32 seqNum = 4; * @return This builder for chaining. */ public Builder clearSeqNum() { bitField0_ = (bitField0_ & ~0x00000008); seqNum_ = 0; onChanged(); return this; } private int severity_ = 1; /** * optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5; * @return Whether the severity field is set. */ @java.lang.Override public boolean hasSeverity() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5; * @return The severity. */ @java.lang.Override public org.yamcs.protobuf.AlarmSeverity getSeverity() { @SuppressWarnings("deprecation") org.yamcs.protobuf.AlarmSeverity result = org.yamcs.protobuf.AlarmSeverity.valueOf(severity_); return result == null ? org.yamcs.protobuf.AlarmSeverity.WATCH : result; } /** * optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5; * @param value The severity to set. * @return This builder for chaining. */ public Builder setSeverity(org.yamcs.protobuf.AlarmSeverity value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; severity_ = value.getNumber(); onChanged(); return this; } /** * optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5; * @return This builder for chaining. */ public Builder clearSeverity() { bitField0_ = (bitField0_ & ~0x00000010); severity_ = 1; onChanged(); return this; } private int violations_ ; /** *
     * Number of times the object was in alarm state
     * 
* * optional uint32 violations = 6; * @return Whether the violations field is set. */ @java.lang.Override public boolean hasViolations() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Number of times the object was in alarm state
     * 
* * optional uint32 violations = 6; * @return The violations. */ @java.lang.Override public int getViolations() { return violations_; } /** *
     * Number of times the object was in alarm state
     * 
* * optional uint32 violations = 6; * @param value The violations to set. * @return This builder for chaining. */ public Builder setViolations(int value) { bitField0_ |= 0x00000020; violations_ = value; onChanged(); return this; } /** *
     * Number of times the object was in alarm state
     * 
* * optional uint32 violations = 6; * @return This builder for chaining. */ public Builder clearViolations() { bitField0_ = (bitField0_ & ~0x00000020); violations_ = 0; onChanged(); return this; } private int count_ ; /** *
     * Number of samples received for the object
     * 
* * optional uint32 count = 7; * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Number of samples received for the object
     * 
* * optional uint32 count = 7; * @return The count. */ @java.lang.Override public int getCount() { return count_; } /** *
     * Number of samples received for the object
     * 
* * optional uint32 count = 7; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(int value) { bitField0_ |= 0x00000040; count_ = value; onChanged(); return this; } /** *
     * Number of samples received for the object
     * 
* * optional uint32 count = 7; * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000040); count_ = 0; onChanged(); return this; } private org.yamcs.protobuf.AcknowledgeInfo acknowledgeInfo_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.AcknowledgeInfo, org.yamcs.protobuf.AcknowledgeInfo.Builder, org.yamcs.protobuf.AcknowledgeInfoOrBuilder> acknowledgeInfoBuilder_; /** * optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8; * @return Whether the acknowledgeInfo field is set. */ public boolean hasAcknowledgeInfo() { return ((bitField0_ & 0x00000080) != 0); } /** * optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8; * @return The acknowledgeInfo. */ public org.yamcs.protobuf.AcknowledgeInfo getAcknowledgeInfo() { if (acknowledgeInfoBuilder_ == null) { return acknowledgeInfo_ == null ? org.yamcs.protobuf.AcknowledgeInfo.getDefaultInstance() : acknowledgeInfo_; } else { return acknowledgeInfoBuilder_.getMessage(); } } /** * optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8; */ public Builder setAcknowledgeInfo(org.yamcs.protobuf.AcknowledgeInfo value) { if (acknowledgeInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } acknowledgeInfo_ = value; onChanged(); } else { acknowledgeInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** * optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8; */ public Builder setAcknowledgeInfo( org.yamcs.protobuf.AcknowledgeInfo.Builder builderForValue) { if (acknowledgeInfoBuilder_ == null) { acknowledgeInfo_ = builderForValue.build(); onChanged(); } else { acknowledgeInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** * optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8; */ public Builder mergeAcknowledgeInfo(org.yamcs.protobuf.AcknowledgeInfo value) { if (acknowledgeInfoBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && acknowledgeInfo_ != null && acknowledgeInfo_ != org.yamcs.protobuf.AcknowledgeInfo.getDefaultInstance()) { acknowledgeInfo_ = org.yamcs.protobuf.AcknowledgeInfo.newBuilder(acknowledgeInfo_).mergeFrom(value).buildPartial(); } else { acknowledgeInfo_ = value; } onChanged(); } else { acknowledgeInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** * optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8; */ public Builder clearAcknowledgeInfo() { if (acknowledgeInfoBuilder_ == null) { acknowledgeInfo_ = null; onChanged(); } else { acknowledgeInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** * optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8; */ public org.yamcs.protobuf.AcknowledgeInfo.Builder getAcknowledgeInfoBuilder() { bitField0_ |= 0x00000080; onChanged(); return getAcknowledgeInfoFieldBuilder().getBuilder(); } /** * optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8; */ public org.yamcs.protobuf.AcknowledgeInfoOrBuilder getAcknowledgeInfoOrBuilder() { if (acknowledgeInfoBuilder_ != null) { return acknowledgeInfoBuilder_.getMessageOrBuilder(); } else { return acknowledgeInfo_ == null ? org.yamcs.protobuf.AcknowledgeInfo.getDefaultInstance() : acknowledgeInfo_; } } /** * optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.AcknowledgeInfo, org.yamcs.protobuf.AcknowledgeInfo.Builder, org.yamcs.protobuf.AcknowledgeInfoOrBuilder> getAcknowledgeInfoFieldBuilder() { if (acknowledgeInfoBuilder_ == null) { acknowledgeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.AcknowledgeInfo, org.yamcs.protobuf.AcknowledgeInfo.Builder, org.yamcs.protobuf.AcknowledgeInfoOrBuilder>( getAcknowledgeInfo(), getParentForChildren(), isClean()); acknowledgeInfo_ = null; } return acknowledgeInfoBuilder_; } private int notificationType_ = 1; /** * optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9; * @return Whether the notificationType field is set. */ @java.lang.Override public boolean hasNotificationType() { return ((bitField0_ & 0x00000100) != 0); } /** * optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9; * @return The notificationType. */ @java.lang.Override public org.yamcs.protobuf.AlarmNotificationType getNotificationType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.AlarmNotificationType result = org.yamcs.protobuf.AlarmNotificationType.valueOf(notificationType_); return result == null ? org.yamcs.protobuf.AlarmNotificationType.ACTIVE : result; } /** * optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9; * @param value The notificationType to set. * @return This builder for chaining. */ public Builder setNotificationType(org.yamcs.protobuf.AlarmNotificationType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; notificationType_ = value.getNumber(); onChanged(); return this; } /** * optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9; * @return This builder for chaining. */ public Builder clearNotificationType() { bitField0_ = (bitField0_ & ~0x00000100); notificationType_ = 1; onChanged(); return this; } private org.yamcs.protobuf.ParameterAlarmData parameterDetail_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.ParameterAlarmData, org.yamcs.protobuf.ParameterAlarmData.Builder, org.yamcs.protobuf.ParameterAlarmDataOrBuilder> parameterDetailBuilder_; /** *
     * Additional detail in case the alarm is of type PARAMETER
     * 
* * optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10; * @return Whether the parameterDetail field is set. */ public boolean hasParameterDetail() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * Additional detail in case the alarm is of type PARAMETER
     * 
* * optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10; * @return The parameterDetail. */ public org.yamcs.protobuf.ParameterAlarmData getParameterDetail() { if (parameterDetailBuilder_ == null) { return parameterDetail_ == null ? org.yamcs.protobuf.ParameterAlarmData.getDefaultInstance() : parameterDetail_; } else { return parameterDetailBuilder_.getMessage(); } } /** *
     * Additional detail in case the alarm is of type PARAMETER
     * 
* * optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10; */ public Builder setParameterDetail(org.yamcs.protobuf.ParameterAlarmData value) { if (parameterDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } parameterDetail_ = value; onChanged(); } else { parameterDetailBuilder_.setMessage(value); } bitField0_ |= 0x00000200; return this; } /** *
     * Additional detail in case the alarm is of type PARAMETER
     * 
* * optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10; */ public Builder setParameterDetail( org.yamcs.protobuf.ParameterAlarmData.Builder builderForValue) { if (parameterDetailBuilder_ == null) { parameterDetail_ = builderForValue.build(); onChanged(); } else { parameterDetailBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** *
     * Additional detail in case the alarm is of type PARAMETER
     * 
* * optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10; */ public Builder mergeParameterDetail(org.yamcs.protobuf.ParameterAlarmData value) { if (parameterDetailBuilder_ == null) { if (((bitField0_ & 0x00000200) != 0) && parameterDetail_ != null && parameterDetail_ != org.yamcs.protobuf.ParameterAlarmData.getDefaultInstance()) { parameterDetail_ = org.yamcs.protobuf.ParameterAlarmData.newBuilder(parameterDetail_).mergeFrom(value).buildPartial(); } else { parameterDetail_ = value; } onChanged(); } else { parameterDetailBuilder_.mergeFrom(value); } bitField0_ |= 0x00000200; return this; } /** *
     * Additional detail in case the alarm is of type PARAMETER
     * 
* * optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10; */ public Builder clearParameterDetail() { if (parameterDetailBuilder_ == null) { parameterDetail_ = null; onChanged(); } else { parameterDetailBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** *
     * Additional detail in case the alarm is of type PARAMETER
     * 
* * optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10; */ public org.yamcs.protobuf.ParameterAlarmData.Builder getParameterDetailBuilder() { bitField0_ |= 0x00000200; onChanged(); return getParameterDetailFieldBuilder().getBuilder(); } /** *
     * Additional detail in case the alarm is of type PARAMETER
     * 
* * optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10; */ public org.yamcs.protobuf.ParameterAlarmDataOrBuilder getParameterDetailOrBuilder() { if (parameterDetailBuilder_ != null) { return parameterDetailBuilder_.getMessageOrBuilder(); } else { return parameterDetail_ == null ? org.yamcs.protobuf.ParameterAlarmData.getDefaultInstance() : parameterDetail_; } } /** *
     * Additional detail in case the alarm is of type PARAMETER
     * 
* * optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.ParameterAlarmData, org.yamcs.protobuf.ParameterAlarmData.Builder, org.yamcs.protobuf.ParameterAlarmDataOrBuilder> getParameterDetailFieldBuilder() { if (parameterDetailBuilder_ == null) { parameterDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.ParameterAlarmData, org.yamcs.protobuf.ParameterAlarmData.Builder, org.yamcs.protobuf.ParameterAlarmDataOrBuilder>( getParameterDetail(), getParentForChildren(), isClean()); parameterDetail_ = null; } return parameterDetailBuilder_; } private org.yamcs.protobuf.EventAlarmData eventDetail_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.EventAlarmData, org.yamcs.protobuf.EventAlarmData.Builder, org.yamcs.protobuf.EventAlarmDataOrBuilder> eventDetailBuilder_; /** *
     * Additional detail in case the alarm is of type EVENT
     * 
* * optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11; * @return Whether the eventDetail field is set. */ public boolean hasEventDetail() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * Additional detail in case the alarm is of type EVENT
     * 
* * optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11; * @return The eventDetail. */ public org.yamcs.protobuf.EventAlarmData getEventDetail() { if (eventDetailBuilder_ == null) { return eventDetail_ == null ? org.yamcs.protobuf.EventAlarmData.getDefaultInstance() : eventDetail_; } else { return eventDetailBuilder_.getMessage(); } } /** *
     * Additional detail in case the alarm is of type EVENT
     * 
* * optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11; */ public Builder setEventDetail(org.yamcs.protobuf.EventAlarmData value) { if (eventDetailBuilder_ == null) { if (value == null) { throw new NullPointerException(); } eventDetail_ = value; onChanged(); } else { eventDetailBuilder_.setMessage(value); } bitField0_ |= 0x00000400; return this; } /** *
     * Additional detail in case the alarm is of type EVENT
     * 
* * optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11; */ public Builder setEventDetail( org.yamcs.protobuf.EventAlarmData.Builder builderForValue) { if (eventDetailBuilder_ == null) { eventDetail_ = builderForValue.build(); onChanged(); } else { eventDetailBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000400; return this; } /** *
     * Additional detail in case the alarm is of type EVENT
     * 
* * optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11; */ public Builder mergeEventDetail(org.yamcs.protobuf.EventAlarmData value) { if (eventDetailBuilder_ == null) { if (((bitField0_ & 0x00000400) != 0) && eventDetail_ != null && eventDetail_ != org.yamcs.protobuf.EventAlarmData.getDefaultInstance()) { eventDetail_ = org.yamcs.protobuf.EventAlarmData.newBuilder(eventDetail_).mergeFrom(value).buildPartial(); } else { eventDetail_ = value; } onChanged(); } else { eventDetailBuilder_.mergeFrom(value); } bitField0_ |= 0x00000400; return this; } /** *
     * Additional detail in case the alarm is of type EVENT
     * 
* * optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11; */ public Builder clearEventDetail() { if (eventDetailBuilder_ == null) { eventDetail_ = null; onChanged(); } else { eventDetailBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000400); return this; } /** *
     * Additional detail in case the alarm is of type EVENT
     * 
* * optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11; */ public org.yamcs.protobuf.EventAlarmData.Builder getEventDetailBuilder() { bitField0_ |= 0x00000400; onChanged(); return getEventDetailFieldBuilder().getBuilder(); } /** *
     * Additional detail in case the alarm is of type EVENT
     * 
* * optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11; */ public org.yamcs.protobuf.EventAlarmDataOrBuilder getEventDetailOrBuilder() { if (eventDetailBuilder_ != null) { return eventDetailBuilder_.getMessageOrBuilder(); } else { return eventDetail_ == null ? org.yamcs.protobuf.EventAlarmData.getDefaultInstance() : eventDetail_; } } /** *
     * Additional detail in case the alarm is of type EVENT
     * 
* * optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.EventAlarmData, org.yamcs.protobuf.EventAlarmData.Builder, org.yamcs.protobuf.EventAlarmDataOrBuilder> getEventDetailFieldBuilder() { if (eventDetailBuilder_ == null) { eventDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.EventAlarmData, org.yamcs.protobuf.EventAlarmData.Builder, org.yamcs.protobuf.EventAlarmDataOrBuilder>( getEventDetail(), getParentForChildren(), isClean()); eventDetail_ = null; } return eventDetailBuilder_; } private boolean latching_ ; /** *
     * Whether the alarm will stay triggered even when the process is OK
     * 
* * optional bool latching = 12; * @return Whether the latching field is set. */ @java.lang.Override public boolean hasLatching() { return ((bitField0_ & 0x00000800) != 0); } /** *
     * Whether the alarm will stay triggered even when the process is OK
     * 
* * optional bool latching = 12; * @return The latching. */ @java.lang.Override public boolean getLatching() { return latching_; } /** *
     * Whether the alarm will stay triggered even when the process is OK
     * 
* * optional bool latching = 12; * @param value The latching to set. * @return This builder for chaining. */ public Builder setLatching(boolean value) { bitField0_ |= 0x00000800; latching_ = value; onChanged(); return this; } /** *
     * Whether the alarm will stay triggered even when the process is OK
     * 
* * optional bool latching = 12; * @return This builder for chaining. */ public Builder clearLatching() { bitField0_ = (bitField0_ & ~0x00000800); latching_ = false; onChanged(); return this; } private boolean processOK_ ; /** *
     * if the process that generated the alarm is ok (i.e. parameter is within limits)
     * 
* * optional bool processOK = 13; * @return Whether the processOK field is set. */ @java.lang.Override public boolean hasProcessOK() { return ((bitField0_ & 0x00001000) != 0); } /** *
     * if the process that generated the alarm is ok (i.e. parameter is within limits)
     * 
* * optional bool processOK = 13; * @return The processOK. */ @java.lang.Override public boolean getProcessOK() { return processOK_; } /** *
     * if the process that generated the alarm is ok (i.e. parameter is within limits)
     * 
* * optional bool processOK = 13; * @param value The processOK to set. * @return This builder for chaining. */ public Builder setProcessOK(boolean value) { bitField0_ |= 0x00001000; processOK_ = value; onChanged(); return this; } /** *
     * if the process that generated the alarm is ok (i.e. parameter is within limits)
     * 
* * optional bool processOK = 13; * @return This builder for chaining. */ public Builder clearProcessOK() { bitField0_ = (bitField0_ & ~0x00001000); processOK_ = false; onChanged(); return this; } private boolean triggered_ ; /** *
     * triggered is same with processOK except when the alarm is latching
     * 
* * optional bool triggered = 14; * @return Whether the triggered field is set. */ @java.lang.Override public boolean hasTriggered() { return ((bitField0_ & 0x00002000) != 0); } /** *
     * triggered is same with processOK except when the alarm is latching
     * 
* * optional bool triggered = 14; * @return The triggered. */ @java.lang.Override public boolean getTriggered() { return triggered_; } /** *
     * triggered is same with processOK except when the alarm is latching
     * 
* * optional bool triggered = 14; * @param value The triggered to set. * @return This builder for chaining. */ public Builder setTriggered(boolean value) { bitField0_ |= 0x00002000; triggered_ = value; onChanged(); return this; } /** *
     * triggered is same with processOK except when the alarm is latching
     * 
* * optional bool triggered = 14; * @return This builder for chaining. */ public Builder clearTriggered() { bitField0_ = (bitField0_ & ~0x00002000); triggered_ = false; onChanged(); return this; } private boolean acknowledged_ ; /** *
     * if the operator has acknowledged the alarm
     * 
* * optional bool acknowledged = 15; * @return Whether the acknowledged field is set. */ @java.lang.Override public boolean hasAcknowledged() { return ((bitField0_ & 0x00004000) != 0); } /** *
     * if the operator has acknowledged the alarm
     * 
* * optional bool acknowledged = 15; * @return The acknowledged. */ @java.lang.Override public boolean getAcknowledged() { return acknowledged_; } /** *
     * if the operator has acknowledged the alarm
     * 
* * optional bool acknowledged = 15; * @param value The acknowledged to set. * @return This builder for chaining. */ public Builder setAcknowledged(boolean value) { bitField0_ |= 0x00004000; acknowledged_ = value; onChanged(); return this; } /** *
     * if the operator has acknowledged the alarm
     * 
* * optional bool acknowledged = 15; * @return This builder for chaining. */ public Builder clearAcknowledged() { bitField0_ = (bitField0_ & ~0x00004000); acknowledged_ = false; onChanged(); return this; } private org.yamcs.protobuf.ShelveInfo shelveInfo_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.ShelveInfo, org.yamcs.protobuf.ShelveInfo.Builder, org.yamcs.protobuf.ShelveInfoOrBuilder> shelveInfoBuilder_; /** *
     * Details in case the alarm was shelved
     * 
* * optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16; * @return Whether the shelveInfo field is set. */ public boolean hasShelveInfo() { return ((bitField0_ & 0x00008000) != 0); } /** *
     * Details in case the alarm was shelved
     * 
* * optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16; * @return The shelveInfo. */ public org.yamcs.protobuf.ShelveInfo getShelveInfo() { if (shelveInfoBuilder_ == null) { return shelveInfo_ == null ? org.yamcs.protobuf.ShelveInfo.getDefaultInstance() : shelveInfo_; } else { return shelveInfoBuilder_.getMessage(); } } /** *
     * Details in case the alarm was shelved
     * 
* * optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16; */ public Builder setShelveInfo(org.yamcs.protobuf.ShelveInfo value) { if (shelveInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } shelveInfo_ = value; onChanged(); } else { shelveInfoBuilder_.setMessage(value); } bitField0_ |= 0x00008000; return this; } /** *
     * Details in case the alarm was shelved
     * 
* * optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16; */ public Builder setShelveInfo( org.yamcs.protobuf.ShelveInfo.Builder builderForValue) { if (shelveInfoBuilder_ == null) { shelveInfo_ = builderForValue.build(); onChanged(); } else { shelveInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00008000; return this; } /** *
     * Details in case the alarm was shelved
     * 
* * optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16; */ public Builder mergeShelveInfo(org.yamcs.protobuf.ShelveInfo value) { if (shelveInfoBuilder_ == null) { if (((bitField0_ & 0x00008000) != 0) && shelveInfo_ != null && shelveInfo_ != org.yamcs.protobuf.ShelveInfo.getDefaultInstance()) { shelveInfo_ = org.yamcs.protobuf.ShelveInfo.newBuilder(shelveInfo_).mergeFrom(value).buildPartial(); } else { shelveInfo_ = value; } onChanged(); } else { shelveInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00008000; return this; } /** *
     * Details in case the alarm was shelved
     * 
* * optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16; */ public Builder clearShelveInfo() { if (shelveInfoBuilder_ == null) { shelveInfo_ = null; onChanged(); } else { shelveInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00008000); return this; } /** *
     * Details in case the alarm was shelved
     * 
* * optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16; */ public org.yamcs.protobuf.ShelveInfo.Builder getShelveInfoBuilder() { bitField0_ |= 0x00008000; onChanged(); return getShelveInfoFieldBuilder().getBuilder(); } /** *
     * Details in case the alarm was shelved
     * 
* * optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16; */ public org.yamcs.protobuf.ShelveInfoOrBuilder getShelveInfoOrBuilder() { if (shelveInfoBuilder_ != null) { return shelveInfoBuilder_.getMessageOrBuilder(); } else { return shelveInfo_ == null ? org.yamcs.protobuf.ShelveInfo.getDefaultInstance() : shelveInfo_; } } /** *
     * Details in case the alarm was shelved
     * 
* * optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.ShelveInfo, org.yamcs.protobuf.ShelveInfo.Builder, org.yamcs.protobuf.ShelveInfoOrBuilder> getShelveInfoFieldBuilder() { if (shelveInfoBuilder_ == null) { shelveInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.ShelveInfo, org.yamcs.protobuf.ShelveInfo.Builder, org.yamcs.protobuf.ShelveInfoOrBuilder>( getShelveInfo(), getParentForChildren(), isClean()); shelveInfo_ = null; } return shelveInfoBuilder_; } private org.yamcs.protobuf.ClearInfo clearInfo_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.ClearInfo, org.yamcs.protobuf.ClearInfo.Builder, org.yamcs.protobuf.ClearInfoOrBuilder> clearInfoBuilder_; /** * optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17; * @return Whether the clearInfo field is set. */ public boolean hasClearInfo() { return ((bitField0_ & 0x00010000) != 0); } /** * optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17; * @return The clearInfo. */ public org.yamcs.protobuf.ClearInfo getClearInfo() { if (clearInfoBuilder_ == null) { return clearInfo_ == null ? org.yamcs.protobuf.ClearInfo.getDefaultInstance() : clearInfo_; } else { return clearInfoBuilder_.getMessage(); } } /** * optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17; */ public Builder setClearInfo(org.yamcs.protobuf.ClearInfo value) { if (clearInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } clearInfo_ = value; onChanged(); } else { clearInfoBuilder_.setMessage(value); } bitField0_ |= 0x00010000; return this; } /** * optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17; */ public Builder setClearInfo( org.yamcs.protobuf.ClearInfo.Builder builderForValue) { if (clearInfoBuilder_ == null) { clearInfo_ = builderForValue.build(); onChanged(); } else { clearInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00010000; return this; } /** * optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17; */ public Builder mergeClearInfo(org.yamcs.protobuf.ClearInfo value) { if (clearInfoBuilder_ == null) { if (((bitField0_ & 0x00010000) != 0) && clearInfo_ != null && clearInfo_ != org.yamcs.protobuf.ClearInfo.getDefaultInstance()) { clearInfo_ = org.yamcs.protobuf.ClearInfo.newBuilder(clearInfo_).mergeFrom(value).buildPartial(); } else { clearInfo_ = value; } onChanged(); } else { clearInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00010000; return this; } /** * optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17; */ public Builder clearClearInfo() { if (clearInfoBuilder_ == null) { clearInfo_ = null; onChanged(); } else { clearInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00010000); return this; } /** * optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17; */ public org.yamcs.protobuf.ClearInfo.Builder getClearInfoBuilder() { bitField0_ |= 0x00010000; onChanged(); return getClearInfoFieldBuilder().getBuilder(); } /** * optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17; */ public org.yamcs.protobuf.ClearInfoOrBuilder getClearInfoOrBuilder() { if (clearInfoBuilder_ != null) { return clearInfoBuilder_.getMessageOrBuilder(); } else { return clearInfo_ == null ? org.yamcs.protobuf.ClearInfo.getDefaultInstance() : clearInfo_; } } /** * optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.ClearInfo, org.yamcs.protobuf.ClearInfo.Builder, org.yamcs.protobuf.ClearInfoOrBuilder> getClearInfoFieldBuilder() { if (clearInfoBuilder_ == null) { clearInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.ClearInfo, org.yamcs.protobuf.ClearInfo.Builder, org.yamcs.protobuf.ClearInfoOrBuilder>( getClearInfo(), getParentForChildren(), isClean()); clearInfo_ = null; } return clearInfoBuilder_; } private com.google.protobuf.Timestamp updateTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> updateTimeBuilder_; /** *
     * Time when the alarm was last updated
     * 
* * optional .google.protobuf.Timestamp updateTime = 18; * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { return ((bitField0_ & 0x00020000) != 0); } /** *
     * Time when the alarm was last updated
     * 
* * optional .google.protobuf.Timestamp updateTime = 18; * @return The updateTime. */ public com.google.protobuf.Timestamp getUpdateTime() { if (updateTimeBuilder_ == null) { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } else { return updateTimeBuilder_.getMessage(); } } /** *
     * Time when the alarm was last updated
     * 
* * optional .google.protobuf.Timestamp updateTime = 18; */ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } updateTime_ = value; onChanged(); } else { updateTimeBuilder_.setMessage(value); } bitField0_ |= 0x00020000; return this; } /** *
     * Time when the alarm was last updated
     * 
* * optional .google.protobuf.Timestamp updateTime = 18; */ public Builder setUpdateTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (updateTimeBuilder_ == null) { updateTime_ = builderForValue.build(); onChanged(); } else { updateTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00020000; return this; } /** *
     * Time when the alarm was last updated
     * 
* * optional .google.protobuf.Timestamp updateTime = 18; */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { if (((bitField0_ & 0x00020000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { updateTime_ = com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial(); } else { updateTime_ = value; } onChanged(); } else { updateTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00020000; return this; } /** *
     * Time when the alarm was last updated
     * 
* * optional .google.protobuf.Timestamp updateTime = 18; */ public Builder clearUpdateTime() { if (updateTimeBuilder_ == null) { updateTime_ = null; onChanged(); } else { updateTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00020000); return this; } /** *
     * Time when the alarm was last updated
     * 
* * optional .google.protobuf.Timestamp updateTime = 18; */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { bitField0_ |= 0x00020000; onChanged(); return getUpdateTimeFieldBuilder().getBuilder(); } /** *
     * Time when the alarm was last updated
     * 
* * optional .google.protobuf.Timestamp updateTime = 18; */ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { if (updateTimeBuilder_ != null) { return updateTimeBuilder_.getMessageOrBuilder(); } else { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } } /** *
     * Time when the alarm was last updated
     * 
* * optional .google.protobuf.Timestamp updateTime = 18; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getUpdateTimeFieldBuilder() { if (updateTimeBuilder_ == null) { updateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getUpdateTime(), getParentForChildren(), isClean()); updateTime_ = null; } return updateTimeBuilder_; } private boolean readonly_ ; /** *
     * Whether this alarm may be updated by this processor.
     * Set to false when the alarms are mirrored from another Yamcs instance.
     * 
* * optional bool readonly = 19; * @return Whether the readonly field is set. */ @java.lang.Override public boolean hasReadonly() { return ((bitField0_ & 0x00040000) != 0); } /** *
     * Whether this alarm may be updated by this processor.
     * Set to false when the alarms are mirrored from another Yamcs instance.
     * 
* * optional bool readonly = 19; * @return The readonly. */ @java.lang.Override public boolean getReadonly() { return readonly_; } /** *
     * Whether this alarm may be updated by this processor.
     * Set to false when the alarms are mirrored from another Yamcs instance.
     * 
* * optional bool readonly = 19; * @param value The readonly to set. * @return This builder for chaining. */ public Builder setReadonly(boolean value) { bitField0_ |= 0x00040000; readonly_ = value; onChanged(); return this; } /** *
     * Whether this alarm may be updated by this processor.
     * Set to false when the alarms are mirrored from another Yamcs instance.
     * 
* * optional bool readonly = 19; * @return This builder for chaining. */ public Builder clearReadonly() { bitField0_ = (bitField0_ & ~0x00040000); readonly_ = false; onChanged(); return this; } private boolean pending_ ; /** *
     * An alarm is in pending state if the minViolations has not been reached
     * The alarm is not actually triggered in this case
     * This is only sent when true
     * 
* * optional bool pending = 20; * @return Whether the pending field is set. */ @java.lang.Override public boolean hasPending() { return ((bitField0_ & 0x00080000) != 0); } /** *
     * An alarm is in pending state if the minViolations has not been reached
     * The alarm is not actually triggered in this case
     * This is only sent when true
     * 
* * optional bool pending = 20; * @return The pending. */ @java.lang.Override public boolean getPending() { return pending_; } /** *
     * An alarm is in pending state if the minViolations has not been reached
     * The alarm is not actually triggered in this case
     * This is only sent when true
     * 
* * optional bool pending = 20; * @param value The pending to set. * @return This builder for chaining. */ public Builder setPending(boolean value) { bitField0_ |= 0x00080000; pending_ = value; onChanged(); return this; } /** *
     * An alarm is in pending state if the minViolations has not been reached
     * The alarm is not actually triggered in this case
     * This is only sent when true
     * 
* * optional bool pending = 20; * @return This builder for chaining. */ public Builder clearPending() { bitField0_ = (bitField0_ & ~0x00080000); pending_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yamcs.protobuf.alarms.AlarmData) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.alarms.AlarmData) private static final org.yamcs.protobuf.AlarmData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.AlarmData(); } public static org.yamcs.protobuf.AlarmData getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AlarmData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new AlarmData(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.AlarmData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy