org.yamcs.protobuf.Alarms Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yamcs/protobuf/alarms/alarms.proto
package org.yamcs.protobuf;
public final class Alarms {
private Alarms() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
/**
* Protobuf enum {@code yamcs.protobuf.alarms.AlarmNotificationType}
*/
public enum AlarmNotificationType
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Initial active alarms at the moment of request
*
*
* ACTIVE = 1;
*/
ACTIVE(1),
/**
*
* Whenever a new alarm triggers
*
*
* TRIGGERED = 2;
*/
TRIGGERED(2),
/**
*
* Whenever an alarm jumps severity
*
*
* SEVERITY_INCREASED = 3;
*/
SEVERITY_INCREASED(3),
/**
*
* Whenever a value is updated (even if that value is not a violation by itself)
*
*
* VALUE_UPDATED = 4;
*/
VALUE_UPDATED(4),
/**
*
* Whenever somebody acknowledged an alarm (it could be that it is still OOL)
*
*
* ACKNOWLEDGED = 5;
*/
ACKNOWLEDGED(5),
/**
*
* When the alarm was really cleared by the server (acknowledged && not OOL)
*
*
* CLEARED = 6;
*/
CLEARED(6),
/**
*
* When the parameter that triggered the alarm has returned to normal (the alarm may still be triggered if it has not been acknowledged)
*
*
* RTN = 7;
*/
RTN(7),
/**
*
*when the alarm has been shelved
*
*
* SHELVED = 8;
*/
SHELVED(8),
/**
*
*when the alarm has been unshelved (either by operator request or automatically at timer expiration)
*
*
* UNSHELVED = 9;
*/
UNSHELVED(9),
/**
*
*when a latching alarm has been reset
*
*
* RESET = 10;
*/
RESET(10),
;
/**
*
* Initial active alarms at the moment of request
*
*
* ACTIVE = 1;
*/
public static final int ACTIVE_VALUE = 1;
/**
*
* Whenever a new alarm triggers
*
*
* TRIGGERED = 2;
*/
public static final int TRIGGERED_VALUE = 2;
/**
*
* Whenever an alarm jumps severity
*
*
* SEVERITY_INCREASED = 3;
*/
public static final int SEVERITY_INCREASED_VALUE = 3;
/**
*
* Whenever a value is updated (even if that value is not a violation by itself)
*
*
* VALUE_UPDATED = 4;
*/
public static final int VALUE_UPDATED_VALUE = 4;
/**
*
* Whenever somebody acknowledged an alarm (it could be that it is still OOL)
*
*
* ACKNOWLEDGED = 5;
*/
public static final int ACKNOWLEDGED_VALUE = 5;
/**
*
* When the alarm was really cleared by the server (acknowledged && not OOL)
*
*
* CLEARED = 6;
*/
public static final int CLEARED_VALUE = 6;
/**
*
* When the parameter that triggered the alarm has returned to normal (the alarm may still be triggered if it has not been acknowledged)
*
*
* RTN = 7;
*/
public static final int RTN_VALUE = 7;
/**
*
*when the alarm has been shelved
*
*
* SHELVED = 8;
*/
public static final int SHELVED_VALUE = 8;
/**
*
*when the alarm has been unshelved (either by operator request or automatically at timer expiration)
*
*
* UNSHELVED = 9;
*/
public static final int UNSHELVED_VALUE = 9;
/**
*
*when a latching alarm has been reset
*
*
* RESET = 10;
*/
public static final int RESET_VALUE = 10;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AlarmNotificationType valueOf(int value) {
return forNumber(value);
}
public static AlarmNotificationType forNumber(int value) {
switch (value) {
case 1: return ACTIVE;
case 2: return TRIGGERED;
case 3: return SEVERITY_INCREASED;
case 4: return VALUE_UPDATED;
case 5: return ACKNOWLEDGED;
case 6: return CLEARED;
case 7: return RTN;
case 8: return SHELVED;
case 9: return UNSHELVED;
case 10: return RESET;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AlarmNotificationType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AlarmNotificationType findValueByNumber(int number) {
return AlarmNotificationType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.yamcs.protobuf.Alarms.getDescriptor().getEnumTypes().get(0);
}
private static final AlarmNotificationType[] VALUES = values();
public static AlarmNotificationType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private AlarmNotificationType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.alarms.AlarmNotificationType)
}
/**
* Protobuf enum {@code yamcs.protobuf.alarms.AlarmType}
*/
public enum AlarmType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* PARAMETER = 1;
*/
PARAMETER(1),
/**
* EVENT = 2;
*/
EVENT(2),
;
/**
* PARAMETER = 1;
*/
public static final int PARAMETER_VALUE = 1;
/**
* EVENT = 2;
*/
public static final int EVENT_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AlarmType valueOf(int value) {
return forNumber(value);
}
public static AlarmType forNumber(int value) {
switch (value) {
case 1: return PARAMETER;
case 2: return EVENT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AlarmType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AlarmType findValueByNumber(int number) {
return AlarmType.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.yamcs.protobuf.Alarms.getDescriptor().getEnumTypes().get(1);
}
private static final AlarmType[] VALUES = values();
public static AlarmType valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private AlarmType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.alarms.AlarmType)
}
/**
* Protobuf enum {@code yamcs.protobuf.alarms.AlarmSeverity}
*/
public enum AlarmSeverity
implements com.google.protobuf.ProtocolMessageEnum {
/**
* WATCH = 1;
*/
WATCH(1),
/**
* WARNING = 2;
*/
WARNING(2),
/**
* DISTRESS = 3;
*/
DISTRESS(3),
/**
* CRITICAL = 4;
*/
CRITICAL(4),
/**
* SEVERE = 5;
*/
SEVERE(5),
;
/**
* WATCH = 1;
*/
public static final int WATCH_VALUE = 1;
/**
* WARNING = 2;
*/
public static final int WARNING_VALUE = 2;
/**
* DISTRESS = 3;
*/
public static final int DISTRESS_VALUE = 3;
/**
* CRITICAL = 4;
*/
public static final int CRITICAL_VALUE = 4;
/**
* SEVERE = 5;
*/
public static final int SEVERE_VALUE = 5;
public final int getNumber() {
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static AlarmSeverity valueOf(int value) {
return forNumber(value);
}
public static AlarmSeverity forNumber(int value) {
switch (value) {
case 1: return WATCH;
case 2: return WARNING;
case 3: return DISTRESS;
case 4: return CRITICAL;
case 5: return SEVERE;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
AlarmSeverity> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public AlarmSeverity findValueByNumber(int number) {
return AlarmSeverity.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.yamcs.protobuf.Alarms.getDescriptor().getEnumTypes().get(2);
}
private static final AlarmSeverity[] VALUES = values();
public static AlarmSeverity valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private AlarmSeverity(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.alarms.AlarmSeverity)
}
public interface AcknowledgeInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.alarms.AcknowledgeInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional string acknowledgedBy = 1;
*/
boolean hasAcknowledgedBy();
/**
* optional string acknowledgedBy = 1;
*/
java.lang.String getAcknowledgedBy();
/**
* optional string acknowledgedBy = 1;
*/
com.google.protobuf.ByteString
getAcknowledgedByBytes();
/**
* optional string acknowledgeMessage = 2;
*/
boolean hasAcknowledgeMessage();
/**
* optional string acknowledgeMessage = 2;
*/
java.lang.String getAcknowledgeMessage();
/**
* optional string acknowledgeMessage = 2;
*/
com.google.protobuf.ByteString
getAcknowledgeMessageBytes();
/**
* optional int64 yamcsAcknowledgeTime = 3 [deprecated = true];
*/
@java.lang.Deprecated boolean hasYamcsAcknowledgeTime();
/**
* optional int64 yamcsAcknowledgeTime = 3 [deprecated = true];
*/
@java.lang.Deprecated long getYamcsAcknowledgeTime();
/**
* optional string acknowledgeTimeUTC = 4 [deprecated = true];
*/
@java.lang.Deprecated boolean hasAcknowledgeTimeUTC();
/**
* optional string acknowledgeTimeUTC = 4 [deprecated = true];
*/
@java.lang.Deprecated java.lang.String getAcknowledgeTimeUTC();
/**
* optional string acknowledgeTimeUTC = 4 [deprecated = true];
*/
@java.lang.Deprecated com.google.protobuf.ByteString
getAcknowledgeTimeUTCBytes();
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
boolean hasAcknowledgeTime();
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
com.google.protobuf.Timestamp getAcknowledgeTime();
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
com.google.protobuf.TimestampOrBuilder getAcknowledgeTimeOrBuilder();
}
/**
* Protobuf type {@code yamcs.protobuf.alarms.AcknowledgeInfo}
*/
public static final class AcknowledgeInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.alarms.AcknowledgeInfo)
AcknowledgeInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use AcknowledgeInfo.newBuilder() to construct.
private AcknowledgeInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AcknowledgeInfo() {
acknowledgedBy_ = "";
acknowledgeMessage_ = "";
acknowledgeTimeUTC_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AcknowledgeInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
acknowledgedBy_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
acknowledgeMessage_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
yamcsAcknowledgeTime_ = input.readInt64();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
acknowledgeTimeUTC_ = bs;
break;
}
case 42: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = acknowledgeTime_.toBuilder();
}
acknowledgeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(acknowledgeTime_);
acknowledgeTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_AcknowledgeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_AcknowledgeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.AcknowledgeInfo.class, org.yamcs.protobuf.Alarms.AcknowledgeInfo.Builder.class);
}
private int bitField0_;
public static final int ACKNOWLEDGEDBY_FIELD_NUMBER = 1;
private volatile java.lang.Object acknowledgedBy_;
/**
* optional string acknowledgedBy = 1;
*/
public boolean hasAcknowledgedBy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string acknowledgedBy = 1;
*/
public java.lang.String getAcknowledgedBy() {
java.lang.Object ref = acknowledgedBy_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
acknowledgedBy_ = s;
}
return s;
}
}
/**
* optional string acknowledgedBy = 1;
*/
public com.google.protobuf.ByteString
getAcknowledgedByBytes() {
java.lang.Object ref = acknowledgedBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
acknowledgedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACKNOWLEDGEMESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object acknowledgeMessage_;
/**
* optional string acknowledgeMessage = 2;
*/
public boolean hasAcknowledgeMessage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string acknowledgeMessage = 2;
*/
public java.lang.String getAcknowledgeMessage() {
java.lang.Object ref = acknowledgeMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
acknowledgeMessage_ = s;
}
return s;
}
}
/**
* optional string acknowledgeMessage = 2;
*/
public com.google.protobuf.ByteString
getAcknowledgeMessageBytes() {
java.lang.Object ref = acknowledgeMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
acknowledgeMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int YAMCSACKNOWLEDGETIME_FIELD_NUMBER = 3;
private long yamcsAcknowledgeTime_;
/**
* optional int64 yamcsAcknowledgeTime = 3 [deprecated = true];
*/
@java.lang.Deprecated public boolean hasYamcsAcknowledgeTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 yamcsAcknowledgeTime = 3 [deprecated = true];
*/
@java.lang.Deprecated public long getYamcsAcknowledgeTime() {
return yamcsAcknowledgeTime_;
}
public static final int ACKNOWLEDGETIMEUTC_FIELD_NUMBER = 4;
private volatile java.lang.Object acknowledgeTimeUTC_;
/**
* optional string acknowledgeTimeUTC = 4 [deprecated = true];
*/
@java.lang.Deprecated public boolean hasAcknowledgeTimeUTC() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string acknowledgeTimeUTC = 4 [deprecated = true];
*/
@java.lang.Deprecated public java.lang.String getAcknowledgeTimeUTC() {
java.lang.Object ref = acknowledgeTimeUTC_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
acknowledgeTimeUTC_ = s;
}
return s;
}
}
/**
* optional string acknowledgeTimeUTC = 4 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getAcknowledgeTimeUTCBytes() {
java.lang.Object ref = acknowledgeTimeUTC_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
acknowledgeTimeUTC_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ACKNOWLEDGETIME_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp acknowledgeTime_;
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
public boolean hasAcknowledgeTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
public com.google.protobuf.Timestamp getAcknowledgeTime() {
return acknowledgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : acknowledgeTime_;
}
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
public com.google.protobuf.TimestampOrBuilder getAcknowledgeTimeOrBuilder() {
return acknowledgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : acknowledgeTime_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, acknowledgedBy_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, acknowledgeMessage_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt64(3, yamcsAcknowledgeTime_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, acknowledgeTimeUTC_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getAcknowledgeTime());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, acknowledgedBy_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, acknowledgeMessage_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, yamcsAcknowledgeTime_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, acknowledgeTimeUTC_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getAcknowledgeTime());
}
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.Alarms.AcknowledgeInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Alarms.AcknowledgeInfo other = (org.yamcs.protobuf.Alarms.AcknowledgeInfo) obj;
if (hasAcknowledgedBy() != other.hasAcknowledgedBy()) return false;
if (hasAcknowledgedBy()) {
if (!getAcknowledgedBy()
.equals(other.getAcknowledgedBy())) return false;
}
if (hasAcknowledgeMessage() != other.hasAcknowledgeMessage()) return false;
if (hasAcknowledgeMessage()) {
if (!getAcknowledgeMessage()
.equals(other.getAcknowledgeMessage())) return false;
}
if (hasYamcsAcknowledgeTime() != other.hasYamcsAcknowledgeTime()) return false;
if (hasYamcsAcknowledgeTime()) {
if (getYamcsAcknowledgeTime()
!= other.getYamcsAcknowledgeTime()) return false;
}
if (hasAcknowledgeTimeUTC() != other.hasAcknowledgeTimeUTC()) return false;
if (hasAcknowledgeTimeUTC()) {
if (!getAcknowledgeTimeUTC()
.equals(other.getAcknowledgeTimeUTC())) return false;
}
if (hasAcknowledgeTime() != other.hasAcknowledgeTime()) return false;
if (hasAcknowledgeTime()) {
if (!getAcknowledgeTime()
.equals(other.getAcknowledgeTime())) 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 (hasAcknowledgedBy()) {
hash = (37 * hash) + ACKNOWLEDGEDBY_FIELD_NUMBER;
hash = (53 * hash) + getAcknowledgedBy().hashCode();
}
if (hasAcknowledgeMessage()) {
hash = (37 * hash) + ACKNOWLEDGEMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getAcknowledgeMessage().hashCode();
}
if (hasYamcsAcknowledgeTime()) {
hash = (37 * hash) + YAMCSACKNOWLEDGETIME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getYamcsAcknowledgeTime());
}
if (hasAcknowledgeTimeUTC()) {
hash = (37 * hash) + ACKNOWLEDGETIMEUTC_FIELD_NUMBER;
hash = (53 * hash) + getAcknowledgeTimeUTC().hashCode();
}
if (hasAcknowledgeTime()) {
hash = (37 * hash) + ACKNOWLEDGETIME_FIELD_NUMBER;
hash = (53 * hash) + getAcknowledgeTime().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Alarms.AcknowledgeInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.AcknowledgeInfo 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.Alarms.AcknowledgeInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.AcknowledgeInfo 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.Alarms.AcknowledgeInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.AcknowledgeInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Alarms.AcknowledgeInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.AcknowledgeInfo 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.Alarms.AcknowledgeInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.AcknowledgeInfo 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.Alarms.AcknowledgeInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.AcknowledgeInfo 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.Alarms.AcknowledgeInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yamcs.protobuf.alarms.AcknowledgeInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.alarms.AcknowledgeInfo)
org.yamcs.protobuf.Alarms.AcknowledgeInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_AcknowledgeInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_AcknowledgeInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.AcknowledgeInfo.class, org.yamcs.protobuf.Alarms.AcknowledgeInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Alarms.AcknowledgeInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAcknowledgeTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
acknowledgedBy_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
acknowledgeMessage_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
yamcsAcknowledgeTime_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
acknowledgeTimeUTC_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
if (acknowledgeTimeBuilder_ == null) {
acknowledgeTime_ = null;
} else {
acknowledgeTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_AcknowledgeInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.AcknowledgeInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Alarms.AcknowledgeInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.AcknowledgeInfo build() {
org.yamcs.protobuf.Alarms.AcknowledgeInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.AcknowledgeInfo buildPartial() {
org.yamcs.protobuf.Alarms.AcknowledgeInfo result = new org.yamcs.protobuf.Alarms.AcknowledgeInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.acknowledgedBy_ = acknowledgedBy_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.acknowledgeMessage_ = acknowledgeMessage_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.yamcsAcknowledgeTime_ = yamcsAcknowledgeTime_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.acknowledgeTimeUTC_ = acknowledgeTimeUTC_;
if (((from_bitField0_ & 0x00000010) != 0)) {
if (acknowledgeTimeBuilder_ == null) {
result.acknowledgeTime_ = acknowledgeTime_;
} else {
result.acknowledgeTime_ = acknowledgeTimeBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Alarms.AcknowledgeInfo) {
return mergeFrom((org.yamcs.protobuf.Alarms.AcknowledgeInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Alarms.AcknowledgeInfo other) {
if (other == org.yamcs.protobuf.Alarms.AcknowledgeInfo.getDefaultInstance()) return this;
if (other.hasAcknowledgedBy()) {
bitField0_ |= 0x00000001;
acknowledgedBy_ = other.acknowledgedBy_;
onChanged();
}
if (other.hasAcknowledgeMessage()) {
bitField0_ |= 0x00000002;
acknowledgeMessage_ = other.acknowledgeMessage_;
onChanged();
}
if (other.hasYamcsAcknowledgeTime()) {
setYamcsAcknowledgeTime(other.getYamcsAcknowledgeTime());
}
if (other.hasAcknowledgeTimeUTC()) {
bitField0_ |= 0x00000008;
acknowledgeTimeUTC_ = other.acknowledgeTimeUTC_;
onChanged();
}
if (other.hasAcknowledgeTime()) {
mergeAcknowledgeTime(other.getAcknowledgeTime());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Alarms.AcknowledgeInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Alarms.AcknowledgeInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object acknowledgedBy_ = "";
/**
* optional string acknowledgedBy = 1;
*/
public boolean hasAcknowledgedBy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string acknowledgedBy = 1;
*/
public java.lang.String getAcknowledgedBy() {
java.lang.Object ref = acknowledgedBy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
acknowledgedBy_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string acknowledgedBy = 1;
*/
public com.google.protobuf.ByteString
getAcknowledgedByBytes() {
java.lang.Object ref = acknowledgedBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
acknowledgedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string acknowledgedBy = 1;
*/
public Builder setAcknowledgedBy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
acknowledgedBy_ = value;
onChanged();
return this;
}
/**
* optional string acknowledgedBy = 1;
*/
public Builder clearAcknowledgedBy() {
bitField0_ = (bitField0_ & ~0x00000001);
acknowledgedBy_ = getDefaultInstance().getAcknowledgedBy();
onChanged();
return this;
}
/**
* optional string acknowledgedBy = 1;
*/
public Builder setAcknowledgedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
acknowledgedBy_ = value;
onChanged();
return this;
}
private java.lang.Object acknowledgeMessage_ = "";
/**
* optional string acknowledgeMessage = 2;
*/
public boolean hasAcknowledgeMessage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string acknowledgeMessage = 2;
*/
public java.lang.String getAcknowledgeMessage() {
java.lang.Object ref = acknowledgeMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
acknowledgeMessage_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string acknowledgeMessage = 2;
*/
public com.google.protobuf.ByteString
getAcknowledgeMessageBytes() {
java.lang.Object ref = acknowledgeMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
acknowledgeMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string acknowledgeMessage = 2;
*/
public Builder setAcknowledgeMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
acknowledgeMessage_ = value;
onChanged();
return this;
}
/**
* optional string acknowledgeMessage = 2;
*/
public Builder clearAcknowledgeMessage() {
bitField0_ = (bitField0_ & ~0x00000002);
acknowledgeMessage_ = getDefaultInstance().getAcknowledgeMessage();
onChanged();
return this;
}
/**
* optional string acknowledgeMessage = 2;
*/
public Builder setAcknowledgeMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
acknowledgeMessage_ = value;
onChanged();
return this;
}
private long yamcsAcknowledgeTime_ ;
/**
* optional int64 yamcsAcknowledgeTime = 3 [deprecated = true];
*/
@java.lang.Deprecated public boolean hasYamcsAcknowledgeTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int64 yamcsAcknowledgeTime = 3 [deprecated = true];
*/
@java.lang.Deprecated public long getYamcsAcknowledgeTime() {
return yamcsAcknowledgeTime_;
}
/**
* optional int64 yamcsAcknowledgeTime = 3 [deprecated = true];
*/
@java.lang.Deprecated public Builder setYamcsAcknowledgeTime(long value) {
bitField0_ |= 0x00000004;
yamcsAcknowledgeTime_ = value;
onChanged();
return this;
}
/**
* optional int64 yamcsAcknowledgeTime = 3 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearYamcsAcknowledgeTime() {
bitField0_ = (bitField0_ & ~0x00000004);
yamcsAcknowledgeTime_ = 0L;
onChanged();
return this;
}
private java.lang.Object acknowledgeTimeUTC_ = "";
/**
* optional string acknowledgeTimeUTC = 4 [deprecated = true];
*/
@java.lang.Deprecated public boolean hasAcknowledgeTimeUTC() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string acknowledgeTimeUTC = 4 [deprecated = true];
*/
@java.lang.Deprecated public java.lang.String getAcknowledgeTimeUTC() {
java.lang.Object ref = acknowledgeTimeUTC_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
acknowledgeTimeUTC_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string acknowledgeTimeUTC = 4 [deprecated = true];
*/
@java.lang.Deprecated public com.google.protobuf.ByteString
getAcknowledgeTimeUTCBytes() {
java.lang.Object ref = acknowledgeTimeUTC_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
acknowledgeTimeUTC_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string acknowledgeTimeUTC = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder setAcknowledgeTimeUTC(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
acknowledgeTimeUTC_ = value;
onChanged();
return this;
}
/**
* optional string acknowledgeTimeUTC = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder clearAcknowledgeTimeUTC() {
bitField0_ = (bitField0_ & ~0x00000008);
acknowledgeTimeUTC_ = getDefaultInstance().getAcknowledgeTimeUTC();
onChanged();
return this;
}
/**
* optional string acknowledgeTimeUTC = 4 [deprecated = true];
*/
@java.lang.Deprecated public Builder setAcknowledgeTimeUTCBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
acknowledgeTimeUTC_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp acknowledgeTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> acknowledgeTimeBuilder_;
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
public boolean hasAcknowledgeTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
public com.google.protobuf.Timestamp getAcknowledgeTime() {
if (acknowledgeTimeBuilder_ == null) {
return acknowledgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : acknowledgeTime_;
} else {
return acknowledgeTimeBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
public Builder setAcknowledgeTime(com.google.protobuf.Timestamp value) {
if (acknowledgeTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
acknowledgeTime_ = value;
onChanged();
} else {
acknowledgeTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
public Builder setAcknowledgeTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (acknowledgeTimeBuilder_ == null) {
acknowledgeTime_ = builderForValue.build();
onChanged();
} else {
acknowledgeTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
public Builder mergeAcknowledgeTime(com.google.protobuf.Timestamp value) {
if (acknowledgeTimeBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
acknowledgeTime_ != null &&
acknowledgeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
acknowledgeTime_ =
com.google.protobuf.Timestamp.newBuilder(acknowledgeTime_).mergeFrom(value).buildPartial();
} else {
acknowledgeTime_ = value;
}
onChanged();
} else {
acknowledgeTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
public Builder clearAcknowledgeTime() {
if (acknowledgeTimeBuilder_ == null) {
acknowledgeTime_ = null;
onChanged();
} else {
acknowledgeTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
public com.google.protobuf.Timestamp.Builder getAcknowledgeTimeBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getAcknowledgeTimeFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
public com.google.protobuf.TimestampOrBuilder getAcknowledgeTimeOrBuilder() {
if (acknowledgeTimeBuilder_ != null) {
return acknowledgeTimeBuilder_.getMessageOrBuilder();
} else {
return acknowledgeTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : acknowledgeTime_;
}
}
/**
* optional .google.protobuf.Timestamp acknowledgeTime = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getAcknowledgeTimeFieldBuilder() {
if (acknowledgeTimeBuilder_ == null) {
acknowledgeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getAcknowledgeTime(),
getParentForChildren(),
isClean());
acknowledgeTime_ = null;
}
return acknowledgeTimeBuilder_;
}
@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.AcknowledgeInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.alarms.AcknowledgeInfo)
private static final org.yamcs.protobuf.Alarms.AcknowledgeInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Alarms.AcknowledgeInfo();
}
public static org.yamcs.protobuf.Alarms.AcknowledgeInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AcknowledgeInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AcknowledgeInfo(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.Alarms.AcknowledgeInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ShelveInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.alarms.ShelveInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional string shelvedBy = 1;
*/
boolean hasShelvedBy();
/**
* optional string shelvedBy = 1;
*/
java.lang.String getShelvedBy();
/**
* optional string shelvedBy = 1;
*/
com.google.protobuf.ByteString
getShelvedByBytes();
/**
* optional string shelveMessage = 2;
*/
boolean hasShelveMessage();
/**
* optional string shelveMessage = 2;
*/
java.lang.String getShelveMessage();
/**
* optional string shelveMessage = 2;
*/
com.google.protobuf.ByteString
getShelveMessageBytes();
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
boolean hasShelveTime();
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
com.google.protobuf.Timestamp getShelveTime();
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
com.google.protobuf.TimestampOrBuilder getShelveTimeOrBuilder();
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
boolean hasShelveExpiration();
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
com.google.protobuf.Timestamp getShelveExpiration();
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
com.google.protobuf.TimestampOrBuilder getShelveExpirationOrBuilder();
}
/**
* Protobuf type {@code yamcs.protobuf.alarms.ShelveInfo}
*/
public static final class ShelveInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.alarms.ShelveInfo)
ShelveInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ShelveInfo.newBuilder() to construct.
private ShelveInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ShelveInfo() {
shelvedBy_ = "";
shelveMessage_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ShelveInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
shelvedBy_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
shelveMessage_ = bs;
break;
}
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = shelveTime_.toBuilder();
}
shelveTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shelveTime_);
shelveTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = shelveExpiration_.toBuilder();
}
shelveExpiration_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shelveExpiration_);
shelveExpiration_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
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.Alarms.internal_static_yamcs_protobuf_alarms_ShelveInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ShelveInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.ShelveInfo.class, org.yamcs.protobuf.Alarms.ShelveInfo.Builder.class);
}
private int bitField0_;
public static final int SHELVEDBY_FIELD_NUMBER = 1;
private volatile java.lang.Object shelvedBy_;
/**
* optional string shelvedBy = 1;
*/
public boolean hasShelvedBy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string shelvedBy = 1;
*/
public java.lang.String getShelvedBy() {
java.lang.Object ref = shelvedBy_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
shelvedBy_ = s;
}
return s;
}
}
/**
* optional string shelvedBy = 1;
*/
public com.google.protobuf.ByteString
getShelvedByBytes() {
java.lang.Object ref = shelvedBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shelvedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHELVEMESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object shelveMessage_;
/**
* optional string shelveMessage = 2;
*/
public boolean hasShelveMessage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string shelveMessage = 2;
*/
public java.lang.String getShelveMessage() {
java.lang.Object ref = shelveMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
shelveMessage_ = s;
}
return s;
}
}
/**
* optional string shelveMessage = 2;
*/
public com.google.protobuf.ByteString
getShelveMessageBytes() {
java.lang.Object ref = shelveMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shelveMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHELVETIME_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp shelveTime_;
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public boolean hasShelveTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public com.google.protobuf.Timestamp getShelveTime() {
return shelveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : shelveTime_;
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public com.google.protobuf.TimestampOrBuilder getShelveTimeOrBuilder() {
return shelveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : shelveTime_;
}
public static final int SHELVEEXPIRATION_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp shelveExpiration_;
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public boolean hasShelveExpiration() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public com.google.protobuf.Timestamp getShelveExpiration() {
return shelveExpiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : shelveExpiration_;
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public com.google.protobuf.TimestampOrBuilder getShelveExpirationOrBuilder() {
return shelveExpiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : shelveExpiration_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, shelvedBy_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, shelveMessage_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getShelveTime());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getShelveExpiration());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, shelvedBy_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, shelveMessage_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getShelveTime());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getShelveExpiration());
}
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.Alarms.ShelveInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Alarms.ShelveInfo other = (org.yamcs.protobuf.Alarms.ShelveInfo) obj;
if (hasShelvedBy() != other.hasShelvedBy()) return false;
if (hasShelvedBy()) {
if (!getShelvedBy()
.equals(other.getShelvedBy())) return false;
}
if (hasShelveMessage() != other.hasShelveMessage()) return false;
if (hasShelveMessage()) {
if (!getShelveMessage()
.equals(other.getShelveMessage())) return false;
}
if (hasShelveTime() != other.hasShelveTime()) return false;
if (hasShelveTime()) {
if (!getShelveTime()
.equals(other.getShelveTime())) return false;
}
if (hasShelveExpiration() != other.hasShelveExpiration()) return false;
if (hasShelveExpiration()) {
if (!getShelveExpiration()
.equals(other.getShelveExpiration())) 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 (hasShelvedBy()) {
hash = (37 * hash) + SHELVEDBY_FIELD_NUMBER;
hash = (53 * hash) + getShelvedBy().hashCode();
}
if (hasShelveMessage()) {
hash = (37 * hash) + SHELVEMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getShelveMessage().hashCode();
}
if (hasShelveTime()) {
hash = (37 * hash) + SHELVETIME_FIELD_NUMBER;
hash = (53 * hash) + getShelveTime().hashCode();
}
if (hasShelveExpiration()) {
hash = (37 * hash) + SHELVEEXPIRATION_FIELD_NUMBER;
hash = (53 * hash) + getShelveExpiration().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Alarms.ShelveInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.ShelveInfo 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.Alarms.ShelveInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.ShelveInfo 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.Alarms.ShelveInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.ShelveInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Alarms.ShelveInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.ShelveInfo 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.Alarms.ShelveInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.ShelveInfo 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.Alarms.ShelveInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.ShelveInfo 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.Alarms.ShelveInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yamcs.protobuf.alarms.ShelveInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.alarms.ShelveInfo)
org.yamcs.protobuf.Alarms.ShelveInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ShelveInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ShelveInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.ShelveInfo.class, org.yamcs.protobuf.Alarms.ShelveInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Alarms.ShelveInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getShelveTimeFieldBuilder();
getShelveExpirationFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
shelvedBy_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
shelveMessage_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (shelveTimeBuilder_ == null) {
shelveTime_ = null;
} else {
shelveTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (shelveExpirationBuilder_ == null) {
shelveExpiration_ = null;
} else {
shelveExpirationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ShelveInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.ShelveInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Alarms.ShelveInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.ShelveInfo build() {
org.yamcs.protobuf.Alarms.ShelveInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.ShelveInfo buildPartial() {
org.yamcs.protobuf.Alarms.ShelveInfo result = new org.yamcs.protobuf.Alarms.ShelveInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.shelvedBy_ = shelvedBy_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.shelveMessage_ = shelveMessage_;
if (((from_bitField0_ & 0x00000004) != 0)) {
if (shelveTimeBuilder_ == null) {
result.shelveTime_ = shelveTime_;
} else {
result.shelveTime_ = shelveTimeBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (shelveExpirationBuilder_ == null) {
result.shelveExpiration_ = shelveExpiration_;
} else {
result.shelveExpiration_ = shelveExpirationBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
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.Alarms.ShelveInfo) {
return mergeFrom((org.yamcs.protobuf.Alarms.ShelveInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Alarms.ShelveInfo other) {
if (other == org.yamcs.protobuf.Alarms.ShelveInfo.getDefaultInstance()) return this;
if (other.hasShelvedBy()) {
bitField0_ |= 0x00000001;
shelvedBy_ = other.shelvedBy_;
onChanged();
}
if (other.hasShelveMessage()) {
bitField0_ |= 0x00000002;
shelveMessage_ = other.shelveMessage_;
onChanged();
}
if (other.hasShelveTime()) {
mergeShelveTime(other.getShelveTime());
}
if (other.hasShelveExpiration()) {
mergeShelveExpiration(other.getShelveExpiration());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Alarms.ShelveInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Alarms.ShelveInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object shelvedBy_ = "";
/**
* optional string shelvedBy = 1;
*/
public boolean hasShelvedBy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string shelvedBy = 1;
*/
public java.lang.String getShelvedBy() {
java.lang.Object ref = shelvedBy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
shelvedBy_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string shelvedBy = 1;
*/
public com.google.protobuf.ByteString
getShelvedByBytes() {
java.lang.Object ref = shelvedBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shelvedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string shelvedBy = 1;
*/
public Builder setShelvedBy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
shelvedBy_ = value;
onChanged();
return this;
}
/**
* optional string shelvedBy = 1;
*/
public Builder clearShelvedBy() {
bitField0_ = (bitField0_ & ~0x00000001);
shelvedBy_ = getDefaultInstance().getShelvedBy();
onChanged();
return this;
}
/**
* optional string shelvedBy = 1;
*/
public Builder setShelvedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
shelvedBy_ = value;
onChanged();
return this;
}
private java.lang.Object shelveMessage_ = "";
/**
* optional string shelveMessage = 2;
*/
public boolean hasShelveMessage() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string shelveMessage = 2;
*/
public java.lang.String getShelveMessage() {
java.lang.Object ref = shelveMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
shelveMessage_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string shelveMessage = 2;
*/
public com.google.protobuf.ByteString
getShelveMessageBytes() {
java.lang.Object ref = shelveMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
shelveMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string shelveMessage = 2;
*/
public Builder setShelveMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
shelveMessage_ = value;
onChanged();
return this;
}
/**
* optional string shelveMessage = 2;
*/
public Builder clearShelveMessage() {
bitField0_ = (bitField0_ & ~0x00000002);
shelveMessage_ = getDefaultInstance().getShelveMessage();
onChanged();
return this;
}
/**
* optional string shelveMessage = 2;
*/
public Builder setShelveMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
shelveMessage_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp shelveTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> shelveTimeBuilder_;
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public boolean hasShelveTime() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public com.google.protobuf.Timestamp getShelveTime() {
if (shelveTimeBuilder_ == null) {
return shelveTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : shelveTime_;
} else {
return shelveTimeBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public Builder setShelveTime(com.google.protobuf.Timestamp value) {
if (shelveTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shelveTime_ = value;
onChanged();
} else {
shelveTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public Builder setShelveTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (shelveTimeBuilder_ == null) {
shelveTime_ = builderForValue.build();
onChanged();
} else {
shelveTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public Builder mergeShelveTime(com.google.protobuf.Timestamp value) {
if (shelveTimeBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
shelveTime_ != null &&
shelveTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
shelveTime_ =
com.google.protobuf.Timestamp.newBuilder(shelveTime_).mergeFrom(value).buildPartial();
} else {
shelveTime_ = value;
}
onChanged();
} else {
shelveTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public Builder clearShelveTime() {
if (shelveTimeBuilder_ == null) {
shelveTime_ = null;
onChanged();
} else {
shelveTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public com.google.protobuf.Timestamp.Builder getShelveTimeBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getShelveTimeFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
public com.google.protobuf.TimestampOrBuilder getShelveTimeOrBuilder() {
if (shelveTimeBuilder_ != null) {
return shelveTimeBuilder_.getMessageOrBuilder();
} else {
return shelveTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : shelveTime_;
}
}
/**
* optional .google.protobuf.Timestamp shelveTime = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getShelveTimeFieldBuilder() {
if (shelveTimeBuilder_ == null) {
shelveTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getShelveTime(),
getParentForChildren(),
isClean());
shelveTime_ = null;
}
return shelveTimeBuilder_;
}
private com.google.protobuf.Timestamp shelveExpiration_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> shelveExpirationBuilder_;
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public boolean hasShelveExpiration() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public com.google.protobuf.Timestamp getShelveExpiration() {
if (shelveExpirationBuilder_ == null) {
return shelveExpiration_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : shelveExpiration_;
} else {
return shelveExpirationBuilder_.getMessage();
}
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public Builder setShelveExpiration(com.google.protobuf.Timestamp value) {
if (shelveExpirationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shelveExpiration_ = value;
onChanged();
} else {
shelveExpirationBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public Builder setShelveExpiration(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (shelveExpirationBuilder_ == null) {
shelveExpiration_ = builderForValue.build();
onChanged();
} else {
shelveExpirationBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public Builder mergeShelveExpiration(com.google.protobuf.Timestamp value) {
if (shelveExpirationBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
shelveExpiration_ != null &&
shelveExpiration_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
shelveExpiration_ =
com.google.protobuf.Timestamp.newBuilder(shelveExpiration_).mergeFrom(value).buildPartial();
} else {
shelveExpiration_ = value;
}
onChanged();
} else {
shelveExpirationBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public Builder clearShelveExpiration() {
if (shelveExpirationBuilder_ == null) {
shelveExpiration_ = null;
onChanged();
} else {
shelveExpirationBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public com.google.protobuf.Timestamp.Builder getShelveExpirationBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getShelveExpirationFieldBuilder().getBuilder();
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
public com.google.protobuf.TimestampOrBuilder getShelveExpirationOrBuilder() {
if (shelveExpirationBuilder_ != null) {
return shelveExpirationBuilder_.getMessageOrBuilder();
} else {
return shelveExpiration_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : shelveExpiration_;
}
}
/**
*
*when the shelving will expire (can be unset which means that it will never expire)
*
*
* optional .google.protobuf.Timestamp shelveExpiration = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getShelveExpirationFieldBuilder() {
if (shelveExpirationBuilder_ == null) {
shelveExpirationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getShelveExpiration(),
getParentForChildren(),
isClean());
shelveExpiration_ = null;
}
return shelveExpirationBuilder_;
}
@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.ShelveInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.alarms.ShelveInfo)
private static final org.yamcs.protobuf.Alarms.ShelveInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Alarms.ShelveInfo();
}
public static org.yamcs.protobuf.Alarms.ShelveInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ShelveInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ShelveInfo(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.Alarms.ShelveInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ClearInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.alarms.ClearInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional string clearedBy = 1;
*/
boolean hasClearedBy();
/**
* optional string clearedBy = 1;
*/
java.lang.String getClearedBy();
/**
* optional string clearedBy = 1;
*/
com.google.protobuf.ByteString
getClearedByBytes();
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
boolean hasClearTime();
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
com.google.protobuf.Timestamp getClearTime();
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
com.google.protobuf.TimestampOrBuilder getClearTimeOrBuilder();
/**
*
*if the alarm has been manually cleared, this is the message provided by the operator
*
*
* optional string clearMessage = 3;
*/
boolean hasClearMessage();
/**
*
*if the alarm has been manually cleared, this is the message provided by the operator
*
*
* optional string clearMessage = 3;
*/
java.lang.String getClearMessage();
/**
*
*if the alarm has been manually cleared, this is the message provided by the operator
*
*
* optional string clearMessage = 3;
*/
com.google.protobuf.ByteString
getClearMessageBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.alarms.ClearInfo}
*/
public static final class ClearInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.alarms.ClearInfo)
ClearInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use ClearInfo.newBuilder() to construct.
private ClearInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ClearInfo() {
clearedBy_ = "";
clearMessage_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ClearInfo(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
clearedBy_ = bs;
break;
}
case 18: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = clearTime_.toBuilder();
}
clearTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clearTime_);
clearTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
clearMessage_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ClearInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ClearInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.ClearInfo.class, org.yamcs.protobuf.Alarms.ClearInfo.Builder.class);
}
private int bitField0_;
public static final int CLEAREDBY_FIELD_NUMBER = 1;
private volatile java.lang.Object clearedBy_;
/**
* optional string clearedBy = 1;
*/
public boolean hasClearedBy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string clearedBy = 1;
*/
public java.lang.String getClearedBy() {
java.lang.Object ref = clearedBy_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
clearedBy_ = s;
}
return s;
}
}
/**
* optional string clearedBy = 1;
*/
public com.google.protobuf.ByteString
getClearedByBytes() {
java.lang.Object ref = clearedBy_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clearedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CLEARTIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp clearTime_;
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
public boolean hasClearTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
public com.google.protobuf.Timestamp getClearTime() {
return clearTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : clearTime_;
}
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
public com.google.protobuf.TimestampOrBuilder getClearTimeOrBuilder() {
return clearTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : clearTime_;
}
public static final int CLEARMESSAGE_FIELD_NUMBER = 3;
private volatile java.lang.Object clearMessage_;
/**
*
*if the alarm has been manually cleared, this is the message provided by the operator
*
*
* optional string clearMessage = 3;
*/
public boolean hasClearMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*if the alarm has been manually cleared, this is the message provided by the operator
*
*
* optional string clearMessage = 3;
*/
public java.lang.String getClearMessage() {
java.lang.Object ref = clearMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
clearMessage_ = s;
}
return s;
}
}
/**
*
*if the alarm has been manually cleared, this is the message provided by the operator
*
*
* optional string clearMessage = 3;
*/
public com.google.protobuf.ByteString
getClearMessageBytes() {
java.lang.Object ref = clearMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clearMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, clearedBy_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getClearTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, clearMessage_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, clearedBy_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getClearTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, clearMessage_);
}
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.Alarms.ClearInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.Alarms.ClearInfo other = (org.yamcs.protobuf.Alarms.ClearInfo) obj;
if (hasClearedBy() != other.hasClearedBy()) return false;
if (hasClearedBy()) {
if (!getClearedBy()
.equals(other.getClearedBy())) return false;
}
if (hasClearTime() != other.hasClearTime()) return false;
if (hasClearTime()) {
if (!getClearTime()
.equals(other.getClearTime())) return false;
}
if (hasClearMessage() != other.hasClearMessage()) return false;
if (hasClearMessage()) {
if (!getClearMessage()
.equals(other.getClearMessage())) 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 (hasClearedBy()) {
hash = (37 * hash) + CLEAREDBY_FIELD_NUMBER;
hash = (53 * hash) + getClearedBy().hashCode();
}
if (hasClearTime()) {
hash = (37 * hash) + CLEARTIME_FIELD_NUMBER;
hash = (53 * hash) + getClearTime().hashCode();
}
if (hasClearMessage()) {
hash = (37 * hash) + CLEARMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getClearMessage().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Alarms.ClearInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.ClearInfo 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.Alarms.ClearInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.ClearInfo 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.Alarms.ClearInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.ClearInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Alarms.ClearInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.ClearInfo 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.Alarms.ClearInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.ClearInfo 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.Alarms.ClearInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.ClearInfo 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.Alarms.ClearInfo prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yamcs.protobuf.alarms.ClearInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.alarms.ClearInfo)
org.yamcs.protobuf.Alarms.ClearInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ClearInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ClearInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.ClearInfo.class, org.yamcs.protobuf.Alarms.ClearInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Alarms.ClearInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getClearTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
clearedBy_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (clearTimeBuilder_ == null) {
clearTime_ = null;
} else {
clearTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
clearMessage_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ClearInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.ClearInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Alarms.ClearInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.ClearInfo build() {
org.yamcs.protobuf.Alarms.ClearInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.ClearInfo buildPartial() {
org.yamcs.protobuf.Alarms.ClearInfo result = new org.yamcs.protobuf.Alarms.ClearInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.clearedBy_ = clearedBy_;
if (((from_bitField0_ & 0x00000002) != 0)) {
if (clearTimeBuilder_ == null) {
result.clearTime_ = clearTime_;
} else {
result.clearTime_ = clearTimeBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.clearMessage_ = clearMessage_;
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.Alarms.ClearInfo) {
return mergeFrom((org.yamcs.protobuf.Alarms.ClearInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Alarms.ClearInfo other) {
if (other == org.yamcs.protobuf.Alarms.ClearInfo.getDefaultInstance()) return this;
if (other.hasClearedBy()) {
bitField0_ |= 0x00000001;
clearedBy_ = other.clearedBy_;
onChanged();
}
if (other.hasClearTime()) {
mergeClearTime(other.getClearTime());
}
if (other.hasClearMessage()) {
bitField0_ |= 0x00000004;
clearMessage_ = other.clearMessage_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Alarms.ClearInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Alarms.ClearInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object clearedBy_ = "";
/**
* optional string clearedBy = 1;
*/
public boolean hasClearedBy() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string clearedBy = 1;
*/
public java.lang.String getClearedBy() {
java.lang.Object ref = clearedBy_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
clearedBy_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string clearedBy = 1;
*/
public com.google.protobuf.ByteString
getClearedByBytes() {
java.lang.Object ref = clearedBy_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clearedBy_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string clearedBy = 1;
*/
public Builder setClearedBy(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
clearedBy_ = value;
onChanged();
return this;
}
/**
* optional string clearedBy = 1;
*/
public Builder clearClearedBy() {
bitField0_ = (bitField0_ & ~0x00000001);
clearedBy_ = getDefaultInstance().getClearedBy();
onChanged();
return this;
}
/**
* optional string clearedBy = 1;
*/
public Builder setClearedByBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
clearedBy_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp clearTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> clearTimeBuilder_;
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
public boolean hasClearTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
public com.google.protobuf.Timestamp getClearTime() {
if (clearTimeBuilder_ == null) {
return clearTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : clearTime_;
} else {
return clearTimeBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
public Builder setClearTime(com.google.protobuf.Timestamp value) {
if (clearTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
clearTime_ = value;
onChanged();
} else {
clearTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
public Builder setClearTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (clearTimeBuilder_ == null) {
clearTime_ = builderForValue.build();
onChanged();
} else {
clearTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
public Builder mergeClearTime(com.google.protobuf.Timestamp value) {
if (clearTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
clearTime_ != null &&
clearTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
clearTime_ =
com.google.protobuf.Timestamp.newBuilder(clearTime_).mergeFrom(value).buildPartial();
} else {
clearTime_ = value;
}
onChanged();
} else {
clearTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
public Builder clearClearTime() {
if (clearTimeBuilder_ == null) {
clearTime_ = null;
onChanged();
} else {
clearTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
public com.google.protobuf.Timestamp.Builder getClearTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getClearTimeFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
public com.google.protobuf.TimestampOrBuilder getClearTimeOrBuilder() {
if (clearTimeBuilder_ != null) {
return clearTimeBuilder_.getMessageOrBuilder();
} else {
return clearTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : clearTime_;
}
}
/**
* optional .google.protobuf.Timestamp clearTime = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getClearTimeFieldBuilder() {
if (clearTimeBuilder_ == null) {
clearTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getClearTime(),
getParentForChildren(),
isClean());
clearTime_ = null;
}
return clearTimeBuilder_;
}
private java.lang.Object clearMessage_ = "";
/**
*
*if the alarm has been manually cleared, this is the message provided by the operator
*
*
* optional string clearMessage = 3;
*/
public boolean hasClearMessage() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*if the alarm has been manually cleared, this is the message provided by the operator
*
*
* optional string clearMessage = 3;
*/
public java.lang.String getClearMessage() {
java.lang.Object ref = clearMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
clearMessage_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*if the alarm has been manually cleared, this is the message provided by the operator
*
*
* optional string clearMessage = 3;
*/
public com.google.protobuf.ByteString
getClearMessageBytes() {
java.lang.Object ref = clearMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clearMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*if the alarm has been manually cleared, this is the message provided by the operator
*
*
* optional string clearMessage = 3;
*/
public Builder setClearMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
clearMessage_ = value;
onChanged();
return this;
}
/**
*
*if the alarm has been manually cleared, this is the message provided by the operator
*
*
* optional string clearMessage = 3;
*/
public Builder clearClearMessage() {
bitField0_ = (bitField0_ & ~0x00000004);
clearMessage_ = getDefaultInstance().getClearMessage();
onChanged();
return this;
}
/**
*
*if the alarm has been manually cleared, this is the message provided by the operator
*
*
* optional string clearMessage = 3;
*/
public Builder setClearMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
clearMessage_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yamcs.protobuf.alarms.ClearInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.alarms.ClearInfo)
private static final org.yamcs.protobuf.Alarms.ClearInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Alarms.ClearInfo();
}
public static org.yamcs.protobuf.Alarms.ClearInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ClearInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ClearInfo(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.Alarms.ClearInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface AlarmDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.alarms.AlarmData)
com.google.protobuf.MessageOrBuilder {
/**
* optional .yamcs.protobuf.alarms.AlarmType type = 1;
*/
boolean hasType();
/**
* optional .yamcs.protobuf.alarms.AlarmType type = 1;
*/
org.yamcs.protobuf.Alarms.AlarmType getType();
/**
* optional .google.protobuf.Timestamp triggerTime = 2;
*/
boolean hasTriggerTime();
/**
* optional .google.protobuf.Timestamp triggerTime = 2;
*/
com.google.protobuf.Timestamp getTriggerTime();
/**
* optional .google.protobuf.Timestamp triggerTime = 2;
*/
com.google.protobuf.TimestampOrBuilder getTriggerTimeOrBuilder();
/**
*
*for the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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;
*/
boolean hasId();
/**
*
*for the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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;
*/
org.yamcs.protobuf.Yamcs.NamedObjectId getId();
/**
*
*for the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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;
*/
org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder();
/**
*
*the sequence number allows to distinguish between multiple alarms for the same id
*
*
* optional uint32 seqNum = 4;
*/
boolean hasSeqNum();
/**
*
*the sequence number allows to distinguish between multiple alarms for the same id
*
*
* optional uint32 seqNum = 4;
*/
int getSeqNum();
/**
* optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5;
*/
boolean hasSeverity();
/**
* optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5;
*/
org.yamcs.protobuf.Alarms.AlarmSeverity getSeverity();
/**
*
*this represents the number of times the object was in alarm state
*
*
* optional uint32 violations = 6;
*/
boolean hasViolations();
/**
*
*this represents the number of times the object was in alarm state
*
*
* optional uint32 violations = 6;
*/
int getViolations();
/**
*
*this represents the number of samples received for the object
*
*
* optional uint32 count = 7;
*/
boolean hasCount();
/**
*
*this represents the number of samples received for the object
*
*
* optional uint32 count = 7;
*/
int getCount();
/**
* optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8;
*/
boolean hasAcknowledgeInfo();
/**
* optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8;
*/
org.yamcs.protobuf.Alarms.AcknowledgeInfo getAcknowledgeInfo();
/**
* optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8;
*/
org.yamcs.protobuf.Alarms.AcknowledgeInfoOrBuilder getAcknowledgeInfoOrBuilder();
/**
* optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9;
*/
boolean hasNotificationType();
/**
* optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9;
*/
org.yamcs.protobuf.Alarms.AlarmNotificationType getNotificationType();
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
boolean hasParameterDetail();
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
org.yamcs.protobuf.Alarms.ParameterAlarmData getParameterDetail();
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
org.yamcs.protobuf.Alarms.ParameterAlarmDataOrBuilder getParameterDetailOrBuilder();
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
boolean hasEventDetail();
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
org.yamcs.protobuf.Alarms.EventAlarmData getEventDetail();
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
org.yamcs.protobuf.Alarms.EventAlarmDataOrBuilder getEventDetailOrBuilder();
/**
*
*latching means that the alarm will stay triggered even when the process is OK
*
*
* optional bool latching = 12;
*/
boolean hasLatching();
/**
*
*latching means that the alarm will stay triggered even when the process is OK
*
*
* optional bool latching = 12;
*/
boolean getLatching();
/**
*
* if the process that generated the alarm is ok (i.e. parameter is within limits)
*
*
* optional bool processOK = 13;
*/
boolean hasProcessOK();
/**
*
* if the process that generated the alarm is ok (i.e. parameter is within limits)
*
*
* optional bool processOK = 13;
*/
boolean getProcessOK();
/**
*
* triggered is same with processOK except when the alarm is latching
*
*
* optional bool triggered = 14;
*/
boolean hasTriggered();
/**
*
* triggered is same with processOK except when the alarm is latching
*
*
* optional bool triggered = 14;
*/
boolean getTriggered();
/**
*
* if the operator has acknowledged the alarm
*
*
* optional bool acknowledged = 15;
*/
boolean hasAcknowledged();
/**
*
* if the operator has acknowledged the alarm
*
*
* optional bool acknowledged = 15;
*/
boolean getAcknowledged();
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
boolean hasShelveInfo();
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
org.yamcs.protobuf.Alarms.ShelveInfo getShelveInfo();
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
org.yamcs.protobuf.Alarms.ShelveInfoOrBuilder getShelveInfoOrBuilder();
/**
* optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17;
*/
boolean hasClearInfo();
/**
* optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17;
*/
org.yamcs.protobuf.Alarms.ClearInfo getClearInfo();
/**
* optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17;
*/
org.yamcs.protobuf.Alarms.ClearInfoOrBuilder getClearInfoOrBuilder();
}
/**
*
*the message contains a summary of an alarm applicable for Parameter or Event (possibly other in the future) alarms.
* it is sent over websocket as result of subscription with the type SUMMARY
*
*
* Protobuf type {@code yamcs.protobuf.alarms.AlarmData}
*/
public static 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
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.Alarms.AlarmType value = org.yamcs.protobuf.Alarms.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.Alarms.AlarmSeverity value = org.yamcs.protobuf.Alarms.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.Alarms.AcknowledgeInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) != 0)) {
subBuilder = acknowledgeInfo_.toBuilder();
}
acknowledgeInfo_ = input.readMessage(org.yamcs.protobuf.Alarms.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.Alarms.AlarmNotificationType value = org.yamcs.protobuf.Alarms.AlarmNotificationType.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(9, rawValue);
} else {
bitField0_ |= 0x00000100;
notificationType_ = rawValue;
}
break;
}
case 82: {
org.yamcs.protobuf.Alarms.ParameterAlarmData.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) != 0)) {
subBuilder = parameterDetail_.toBuilder();
}
parameterDetail_ = input.readMessage(org.yamcs.protobuf.Alarms.ParameterAlarmData.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parameterDetail_);
parameterDetail_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 90: {
org.yamcs.protobuf.Alarms.EventAlarmData.Builder subBuilder = null;
if (((bitField0_ & 0x00000400) != 0)) {
subBuilder = eventDetail_.toBuilder();
}
eventDetail_ = input.readMessage(org.yamcs.protobuf.Alarms.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.Alarms.ShelveInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00008000) != 0)) {
subBuilder = shelveInfo_.toBuilder();
}
shelveInfo_ = input.readMessage(org.yamcs.protobuf.Alarms.ShelveInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(shelveInfo_);
shelveInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00008000;
break;
}
case 138: {
org.yamcs.protobuf.Alarms.ClearInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00010000) != 0)) {
subBuilder = clearInfo_.toBuilder();
}
clearInfo_ = input.readMessage(org.yamcs.protobuf.Alarms.ClearInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(clearInfo_);
clearInfo_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00010000;
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.Alarms.internal_static_yamcs_protobuf_alarms_AlarmData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_AlarmData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.AlarmData.class, org.yamcs.protobuf.Alarms.AlarmData.Builder.class);
}
private int bitField0_;
public static final int TYPE_FIELD_NUMBER = 1;
private int type_;
/**
* optional .yamcs.protobuf.alarms.AlarmType type = 1;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.alarms.AlarmType type = 1;
*/
public org.yamcs.protobuf.Alarms.AlarmType getType() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Alarms.AlarmType result = org.yamcs.protobuf.Alarms.AlarmType.valueOf(type_);
return result == null ? org.yamcs.protobuf.Alarms.AlarmType.PARAMETER : result;
}
public static final int TRIGGERTIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp triggerTime_;
/**
* optional .google.protobuf.Timestamp triggerTime = 2;
*/
public boolean hasTriggerTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .google.protobuf.Timestamp triggerTime = 2;
*/
public com.google.protobuf.Timestamp getTriggerTime() {
return triggerTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : triggerTime_;
}
/**
* optional .google.protobuf.Timestamp triggerTime = 2;
*/
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 the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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 boolean hasId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*for the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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 getId() {
return id_ == null ? org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance() : id_;
}
/**
*
*for the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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() {
return id_ == null ? org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance() : id_;
}
public static final int SEQNUM_FIELD_NUMBER = 4;
private int seqNum_;
/**
*
*the sequence number allows to distinguish between multiple alarms for the same id
*
*
* optional uint32 seqNum = 4;
*/
public boolean hasSeqNum() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*the sequence number allows to distinguish between multiple alarms for the same id
*
*
* optional uint32 seqNum = 4;
*/
public int getSeqNum() {
return seqNum_;
}
public static final int SEVERITY_FIELD_NUMBER = 5;
private int severity_;
/**
* optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5;
*/
public boolean hasSeverity() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5;
*/
public org.yamcs.protobuf.Alarms.AlarmSeverity getSeverity() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Alarms.AlarmSeverity result = org.yamcs.protobuf.Alarms.AlarmSeverity.valueOf(severity_);
return result == null ? org.yamcs.protobuf.Alarms.AlarmSeverity.WATCH : result;
}
public static final int VIOLATIONS_FIELD_NUMBER = 6;
private int violations_;
/**
*
*this represents the number of times the object was in alarm state
*
*
* optional uint32 violations = 6;
*/
public boolean hasViolations() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*this represents the number of times the object was in alarm state
*
*
* optional uint32 violations = 6;
*/
public int getViolations() {
return violations_;
}
public static final int COUNT_FIELD_NUMBER = 7;
private int count_;
/**
*
*this represents the number of samples received for the object
*
*
* optional uint32 count = 7;
*/
public boolean hasCount() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*this represents the number of samples received for the object
*
*
* optional uint32 count = 7;
*/
public int getCount() {
return count_;
}
public static final int ACKNOWLEDGEINFO_FIELD_NUMBER = 8;
private org.yamcs.protobuf.Alarms.AcknowledgeInfo acknowledgeInfo_;
/**
* optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8;
*/
public boolean hasAcknowledgeInfo() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8;
*/
public org.yamcs.protobuf.Alarms.AcknowledgeInfo getAcknowledgeInfo() {
return acknowledgeInfo_ == null ? org.yamcs.protobuf.Alarms.AcknowledgeInfo.getDefaultInstance() : acknowledgeInfo_;
}
/**
* optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8;
*/
public org.yamcs.protobuf.Alarms.AcknowledgeInfoOrBuilder getAcknowledgeInfoOrBuilder() {
return acknowledgeInfo_ == null ? org.yamcs.protobuf.Alarms.AcknowledgeInfo.getDefaultInstance() : acknowledgeInfo_;
}
public static final int NOTIFICATIONTYPE_FIELD_NUMBER = 9;
private int notificationType_;
/**
* optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9;
*/
public boolean hasNotificationType() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9;
*/
public org.yamcs.protobuf.Alarms.AlarmNotificationType getNotificationType() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Alarms.AlarmNotificationType result = org.yamcs.protobuf.Alarms.AlarmNotificationType.valueOf(notificationType_);
return result == null ? org.yamcs.protobuf.Alarms.AlarmNotificationType.ACTIVE : result;
}
public static final int PARAMETERDETAIL_FIELD_NUMBER = 10;
private org.yamcs.protobuf.Alarms.ParameterAlarmData parameterDetail_;
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
public boolean hasParameterDetail() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
public org.yamcs.protobuf.Alarms.ParameterAlarmData getParameterDetail() {
return parameterDetail_ == null ? org.yamcs.protobuf.Alarms.ParameterAlarmData.getDefaultInstance() : parameterDetail_;
}
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
public org.yamcs.protobuf.Alarms.ParameterAlarmDataOrBuilder getParameterDetailOrBuilder() {
return parameterDetail_ == null ? org.yamcs.protobuf.Alarms.ParameterAlarmData.getDefaultInstance() : parameterDetail_;
}
public static final int EVENTDETAIL_FIELD_NUMBER = 11;
private org.yamcs.protobuf.Alarms.EventAlarmData eventDetail_;
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
public boolean hasEventDetail() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
public org.yamcs.protobuf.Alarms.EventAlarmData getEventDetail() {
return eventDetail_ == null ? org.yamcs.protobuf.Alarms.EventAlarmData.getDefaultInstance() : eventDetail_;
}
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
public org.yamcs.protobuf.Alarms.EventAlarmDataOrBuilder getEventDetailOrBuilder() {
return eventDetail_ == null ? org.yamcs.protobuf.Alarms.EventAlarmData.getDefaultInstance() : eventDetail_;
}
public static final int LATCHING_FIELD_NUMBER = 12;
private boolean latching_;
/**
*
*latching means that the alarm will stay triggered even when the process is OK
*
*
* optional bool latching = 12;
*/
public boolean hasLatching() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
*latching means that the alarm will stay triggered even when the process is OK
*
*
* optional bool latching = 12;
*/
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;
*/
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;
*/
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;
*/
public boolean hasTriggered() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* triggered is same with processOK except when the alarm is latching
*
*
* optional bool triggered = 14;
*/
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;
*/
public boolean hasAcknowledged() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* if the operator has acknowledged the alarm
*
*
* optional bool acknowledged = 15;
*/
public boolean getAcknowledged() {
return acknowledged_;
}
public static final int SHELVEINFO_FIELD_NUMBER = 16;
private org.yamcs.protobuf.Alarms.ShelveInfo shelveInfo_;
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
public boolean hasShelveInfo() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
public org.yamcs.protobuf.Alarms.ShelveInfo getShelveInfo() {
return shelveInfo_ == null ? org.yamcs.protobuf.Alarms.ShelveInfo.getDefaultInstance() : shelveInfo_;
}
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
public org.yamcs.protobuf.Alarms.ShelveInfoOrBuilder getShelveInfoOrBuilder() {
return shelveInfo_ == null ? org.yamcs.protobuf.Alarms.ShelveInfo.getDefaultInstance() : shelveInfo_;
}
public static final int CLEARINFO_FIELD_NUMBER = 17;
private org.yamcs.protobuf.Alarms.ClearInfo clearInfo_;
/**
* optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17;
*/
public boolean hasClearInfo() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17;
*/
public org.yamcs.protobuf.Alarms.ClearInfo getClearInfo() {
return clearInfo_ == null ? org.yamcs.protobuf.Alarms.ClearInfo.getDefaultInstance() : clearInfo_;
}
/**
* optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17;
*/
public org.yamcs.protobuf.Alarms.ClearInfoOrBuilder getClearInfoOrBuilder() {
return clearInfo_ == null ? org.yamcs.protobuf.Alarms.ClearInfo.getDefaultInstance() : clearInfo_;
}
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;
}
}
if (hasEventDetail()) {
if (!getEventDetail().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());
}
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());
}
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.Alarms.AlarmData)) {
return super.equals(obj);
}
org.yamcs.protobuf.Alarms.AlarmData other = (org.yamcs.protobuf.Alarms.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 (!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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Alarms.AlarmData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.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.Alarms.AlarmData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.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.Alarms.AlarmData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.AlarmData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Alarms.AlarmData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.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.Alarms.AlarmData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.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.Alarms.AlarmData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.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.Alarms.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;
}
/**
*
*the message contains a summary of an alarm applicable for Parameter or Event (possibly other in the future) alarms.
* it is sent over websocket as result of subscription with the type SUMMARY
*
*
* 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.Alarms.AlarmDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_AlarmData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_AlarmData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.AlarmData.class, org.yamcs.protobuf.Alarms.AlarmData.Builder.class);
}
// Construct using org.yamcs.protobuf.Alarms.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();
}
}
@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);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_AlarmData_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.AlarmData getDefaultInstanceForType() {
return org.yamcs.protobuf.Alarms.AlarmData.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.AlarmData build() {
org.yamcs.protobuf.Alarms.AlarmData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.AlarmData buildPartial() {
org.yamcs.protobuf.Alarms.AlarmData result = new org.yamcs.protobuf.Alarms.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;
}
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.Alarms.AlarmData) {
return mergeFrom((org.yamcs.protobuf.Alarms.AlarmData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Alarms.AlarmData other) {
if (other == org.yamcs.protobuf.Alarms.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());
}
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;
}
}
if (hasEventDetail()) {
if (!getEventDetail().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.Alarms.AlarmData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Alarms.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;
*/
public boolean hasType() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.alarms.AlarmType type = 1;
*/
public org.yamcs.protobuf.Alarms.AlarmType getType() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Alarms.AlarmType result = org.yamcs.protobuf.Alarms.AlarmType.valueOf(type_);
return result == null ? org.yamcs.protobuf.Alarms.AlarmType.PARAMETER : result;
}
/**
* optional .yamcs.protobuf.alarms.AlarmType type = 1;
*/
public Builder setType(org.yamcs.protobuf.Alarms.AlarmType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
type_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .yamcs.protobuf.alarms.AlarmType type = 1;
*/
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;
*/
public boolean hasTriggerTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .google.protobuf.Timestamp triggerTime = 2;
*/
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 the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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 boolean hasId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*for the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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 getId() {
if (idBuilder_ == null) {
return id_ == null ? org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
*
*for the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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 the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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 the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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 the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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 the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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 the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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 the parameter alarms, this is the id of the parameters
* for the event alarms
* - the id.namespace is /yamcs/event/<EVENT_SOURCE>, unless the 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_ ;
/**
*
*the sequence number allows to distinguish between multiple alarms for the same id
*
*
* optional uint32 seqNum = 4;
*/
public boolean hasSeqNum() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*the sequence number allows to distinguish between multiple alarms for the same id
*
*
* optional uint32 seqNum = 4;
*/
public int getSeqNum() {
return seqNum_;
}
/**
*
*the sequence number allows to distinguish between multiple alarms for the same id
*
*
* optional uint32 seqNum = 4;
*/
public Builder setSeqNum(int value) {
bitField0_ |= 0x00000008;
seqNum_ = value;
onChanged();
return this;
}
/**
*
*the sequence number allows to distinguish between multiple alarms for the same id
*
*
* optional uint32 seqNum = 4;
*/
public Builder clearSeqNum() {
bitField0_ = (bitField0_ & ~0x00000008);
seqNum_ = 0;
onChanged();
return this;
}
private int severity_ = 1;
/**
* optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5;
*/
public boolean hasSeverity() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5;
*/
public org.yamcs.protobuf.Alarms.AlarmSeverity getSeverity() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Alarms.AlarmSeverity result = org.yamcs.protobuf.Alarms.AlarmSeverity.valueOf(severity_);
return result == null ? org.yamcs.protobuf.Alarms.AlarmSeverity.WATCH : result;
}
/**
* optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5;
*/
public Builder setSeverity(org.yamcs.protobuf.Alarms.AlarmSeverity value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
severity_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .yamcs.protobuf.alarms.AlarmSeverity severity = 5;
*/
public Builder clearSeverity() {
bitField0_ = (bitField0_ & ~0x00000010);
severity_ = 1;
onChanged();
return this;
}
private int violations_ ;
/**
*
*this represents the number of times the object was in alarm state
*
*
* optional uint32 violations = 6;
*/
public boolean hasViolations() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*this represents the number of times the object was in alarm state
*
*
* optional uint32 violations = 6;
*/
public int getViolations() {
return violations_;
}
/**
*
*this represents the number of times the object was in alarm state
*
*
* optional uint32 violations = 6;
*/
public Builder setViolations(int value) {
bitField0_ |= 0x00000020;
violations_ = value;
onChanged();
return this;
}
/**
*
*this represents the number of times the object was in alarm state
*
*
* optional uint32 violations = 6;
*/
public Builder clearViolations() {
bitField0_ = (bitField0_ & ~0x00000020);
violations_ = 0;
onChanged();
return this;
}
private int count_ ;
/**
*
*this represents the number of samples received for the object
*
*
* optional uint32 count = 7;
*/
public boolean hasCount() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
*this represents the number of samples received for the object
*
*
* optional uint32 count = 7;
*/
public int getCount() {
return count_;
}
/**
*
*this represents the number of samples received for the object
*
*
* optional uint32 count = 7;
*/
public Builder setCount(int value) {
bitField0_ |= 0x00000040;
count_ = value;
onChanged();
return this;
}
/**
*
*this represents the number of samples received for the object
*
*
* optional uint32 count = 7;
*/
public Builder clearCount() {
bitField0_ = (bitField0_ & ~0x00000040);
count_ = 0;
onChanged();
return this;
}
private org.yamcs.protobuf.Alarms.AcknowledgeInfo acknowledgeInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.AcknowledgeInfo, org.yamcs.protobuf.Alarms.AcknowledgeInfo.Builder, org.yamcs.protobuf.Alarms.AcknowledgeInfoOrBuilder> acknowledgeInfoBuilder_;
/**
* optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8;
*/
public boolean hasAcknowledgeInfo() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8;
*/
public org.yamcs.protobuf.Alarms.AcknowledgeInfo getAcknowledgeInfo() {
if (acknowledgeInfoBuilder_ == null) {
return acknowledgeInfo_ == null ? org.yamcs.protobuf.Alarms.AcknowledgeInfo.getDefaultInstance() : acknowledgeInfo_;
} else {
return acknowledgeInfoBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8;
*/
public Builder setAcknowledgeInfo(org.yamcs.protobuf.Alarms.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.Alarms.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.Alarms.AcknowledgeInfo value) {
if (acknowledgeInfoBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
acknowledgeInfo_ != null &&
acknowledgeInfo_ != org.yamcs.protobuf.Alarms.AcknowledgeInfo.getDefaultInstance()) {
acknowledgeInfo_ =
org.yamcs.protobuf.Alarms.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.Alarms.AcknowledgeInfo.Builder getAcknowledgeInfoBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getAcknowledgeInfoFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8;
*/
public org.yamcs.protobuf.Alarms.AcknowledgeInfoOrBuilder getAcknowledgeInfoOrBuilder() {
if (acknowledgeInfoBuilder_ != null) {
return acknowledgeInfoBuilder_.getMessageOrBuilder();
} else {
return acknowledgeInfo_ == null ?
org.yamcs.protobuf.Alarms.AcknowledgeInfo.getDefaultInstance() : acknowledgeInfo_;
}
}
/**
* optional .yamcs.protobuf.alarms.AcknowledgeInfo acknowledgeInfo = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.AcknowledgeInfo, org.yamcs.protobuf.Alarms.AcknowledgeInfo.Builder, org.yamcs.protobuf.Alarms.AcknowledgeInfoOrBuilder>
getAcknowledgeInfoFieldBuilder() {
if (acknowledgeInfoBuilder_ == null) {
acknowledgeInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.AcknowledgeInfo, org.yamcs.protobuf.Alarms.AcknowledgeInfo.Builder, org.yamcs.protobuf.Alarms.AcknowledgeInfoOrBuilder>(
getAcknowledgeInfo(),
getParentForChildren(),
isClean());
acknowledgeInfo_ = null;
}
return acknowledgeInfoBuilder_;
}
private int notificationType_ = 1;
/**
* optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9;
*/
public boolean hasNotificationType() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9;
*/
public org.yamcs.protobuf.Alarms.AlarmNotificationType getNotificationType() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.Alarms.AlarmNotificationType result = org.yamcs.protobuf.Alarms.AlarmNotificationType.valueOf(notificationType_);
return result == null ? org.yamcs.protobuf.Alarms.AlarmNotificationType.ACTIVE : result;
}
/**
* optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9;
*/
public Builder setNotificationType(org.yamcs.protobuf.Alarms.AlarmNotificationType value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
notificationType_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .yamcs.protobuf.alarms.AlarmNotificationType notificationType = 9;
*/
public Builder clearNotificationType() {
bitField0_ = (bitField0_ & ~0x00000100);
notificationType_ = 1;
onChanged();
return this;
}
private org.yamcs.protobuf.Alarms.ParameterAlarmData parameterDetail_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.ParameterAlarmData, org.yamcs.protobuf.Alarms.ParameterAlarmData.Builder, org.yamcs.protobuf.Alarms.ParameterAlarmDataOrBuilder> parameterDetailBuilder_;
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
public boolean hasParameterDetail() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
public org.yamcs.protobuf.Alarms.ParameterAlarmData getParameterDetail() {
if (parameterDetailBuilder_ == null) {
return parameterDetail_ == null ? org.yamcs.protobuf.Alarms.ParameterAlarmData.getDefaultInstance() : parameterDetail_;
} else {
return parameterDetailBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
public Builder setParameterDetail(org.yamcs.protobuf.Alarms.ParameterAlarmData value) {
if (parameterDetailBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parameterDetail_ = value;
onChanged();
} else {
parameterDetailBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
public Builder setParameterDetail(
org.yamcs.protobuf.Alarms.ParameterAlarmData.Builder builderForValue) {
if (parameterDetailBuilder_ == null) {
parameterDetail_ = builderForValue.build();
onChanged();
} else {
parameterDetailBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
public Builder mergeParameterDetail(org.yamcs.protobuf.Alarms.ParameterAlarmData value) {
if (parameterDetailBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
parameterDetail_ != null &&
parameterDetail_ != org.yamcs.protobuf.Alarms.ParameterAlarmData.getDefaultInstance()) {
parameterDetail_ =
org.yamcs.protobuf.Alarms.ParameterAlarmData.newBuilder(parameterDetail_).mergeFrom(value).buildPartial();
} else {
parameterDetail_ = value;
}
onChanged();
} else {
parameterDetailBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
public Builder clearParameterDetail() {
if (parameterDetailBuilder_ == null) {
parameterDetail_ = null;
onChanged();
} else {
parameterDetailBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
public org.yamcs.protobuf.Alarms.ParameterAlarmData.Builder getParameterDetailBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getParameterDetailFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
public org.yamcs.protobuf.Alarms.ParameterAlarmDataOrBuilder getParameterDetailOrBuilder() {
if (parameterDetailBuilder_ != null) {
return parameterDetailBuilder_.getMessageOrBuilder();
} else {
return parameterDetail_ == null ?
org.yamcs.protobuf.Alarms.ParameterAlarmData.getDefaultInstance() : parameterDetail_;
}
}
/**
* optional .yamcs.protobuf.alarms.ParameterAlarmData parameterDetail = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.ParameterAlarmData, org.yamcs.protobuf.Alarms.ParameterAlarmData.Builder, org.yamcs.protobuf.Alarms.ParameterAlarmDataOrBuilder>
getParameterDetailFieldBuilder() {
if (parameterDetailBuilder_ == null) {
parameterDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.ParameterAlarmData, org.yamcs.protobuf.Alarms.ParameterAlarmData.Builder, org.yamcs.protobuf.Alarms.ParameterAlarmDataOrBuilder>(
getParameterDetail(),
getParentForChildren(),
isClean());
parameterDetail_ = null;
}
return parameterDetailBuilder_;
}
private org.yamcs.protobuf.Alarms.EventAlarmData eventDetail_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.EventAlarmData, org.yamcs.protobuf.Alarms.EventAlarmData.Builder, org.yamcs.protobuf.Alarms.EventAlarmDataOrBuilder> eventDetailBuilder_;
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
public boolean hasEventDetail() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
public org.yamcs.protobuf.Alarms.EventAlarmData getEventDetail() {
if (eventDetailBuilder_ == null) {
return eventDetail_ == null ? org.yamcs.protobuf.Alarms.EventAlarmData.getDefaultInstance() : eventDetail_;
} else {
return eventDetailBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
public Builder setEventDetail(org.yamcs.protobuf.Alarms.EventAlarmData value) {
if (eventDetailBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
eventDetail_ = value;
onChanged();
} else {
eventDetailBuilder_.setMessage(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
public Builder setEventDetail(
org.yamcs.protobuf.Alarms.EventAlarmData.Builder builderForValue) {
if (eventDetailBuilder_ == null) {
eventDetail_ = builderForValue.build();
onChanged();
} else {
eventDetailBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
public Builder mergeEventDetail(org.yamcs.protobuf.Alarms.EventAlarmData value) {
if (eventDetailBuilder_ == null) {
if (((bitField0_ & 0x00000400) != 0) &&
eventDetail_ != null &&
eventDetail_ != org.yamcs.protobuf.Alarms.EventAlarmData.getDefaultInstance()) {
eventDetail_ =
org.yamcs.protobuf.Alarms.EventAlarmData.newBuilder(eventDetail_).mergeFrom(value).buildPartial();
} else {
eventDetail_ = value;
}
onChanged();
} else {
eventDetailBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000400;
return this;
}
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
public Builder clearEventDetail() {
if (eventDetailBuilder_ == null) {
eventDetail_ = null;
onChanged();
} else {
eventDetailBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000400);
return this;
}
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
public org.yamcs.protobuf.Alarms.EventAlarmData.Builder getEventDetailBuilder() {
bitField0_ |= 0x00000400;
onChanged();
return getEventDetailFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
public org.yamcs.protobuf.Alarms.EventAlarmDataOrBuilder getEventDetailOrBuilder() {
if (eventDetailBuilder_ != null) {
return eventDetailBuilder_.getMessageOrBuilder();
} else {
return eventDetail_ == null ?
org.yamcs.protobuf.Alarms.EventAlarmData.getDefaultInstance() : eventDetail_;
}
}
/**
* optional .yamcs.protobuf.alarms.EventAlarmData eventDetail = 11;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.EventAlarmData, org.yamcs.protobuf.Alarms.EventAlarmData.Builder, org.yamcs.protobuf.Alarms.EventAlarmDataOrBuilder>
getEventDetailFieldBuilder() {
if (eventDetailBuilder_ == null) {
eventDetailBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.EventAlarmData, org.yamcs.protobuf.Alarms.EventAlarmData.Builder, org.yamcs.protobuf.Alarms.EventAlarmDataOrBuilder>(
getEventDetail(),
getParentForChildren(),
isClean());
eventDetail_ = null;
}
return eventDetailBuilder_;
}
private boolean latching_ ;
/**
*
*latching means that the alarm will stay triggered even when the process is OK
*
*
* optional bool latching = 12;
*/
public boolean hasLatching() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
*latching means that the alarm will stay triggered even when the process is OK
*
*
* optional bool latching = 12;
*/
public boolean getLatching() {
return latching_;
}
/**
*
*latching means that the alarm will stay triggered even when the process is OK
*
*
* optional bool latching = 12;
*/
public Builder setLatching(boolean value) {
bitField0_ |= 0x00000800;
latching_ = value;
onChanged();
return this;
}
/**
*
*latching means that the alarm will stay triggered even when the process is OK
*
*
* optional bool latching = 12;
*/
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;
*/
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;
*/
public boolean getProcessOK() {
return processOK_;
}
/**
*
* if the process that generated the alarm is ok (i.e. parameter is within limits)
*
*
* optional bool processOK = 13;
*/
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;
*/
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;
*/
public boolean hasTriggered() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* triggered is same with processOK except when the alarm is latching
*
*
* optional bool triggered = 14;
*/
public boolean getTriggered() {
return triggered_;
}
/**
*
* triggered is same with processOK except when the alarm is latching
*
*
* optional bool triggered = 14;
*/
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;
*/
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;
*/
public boolean hasAcknowledged() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* if the operator has acknowledged the alarm
*
*
* optional bool acknowledged = 15;
*/
public boolean getAcknowledged() {
return acknowledged_;
}
/**
*
* if the operator has acknowledged the alarm
*
*
* optional bool acknowledged = 15;
*/
public Builder setAcknowledged(boolean value) {
bitField0_ |= 0x00004000;
acknowledged_ = value;
onChanged();
return this;
}
/**
*
* if the operator has acknowledged the alarm
*
*
* optional bool acknowledged = 15;
*/
public Builder clearAcknowledged() {
bitField0_ = (bitField0_ & ~0x00004000);
acknowledged_ = false;
onChanged();
return this;
}
private org.yamcs.protobuf.Alarms.ShelveInfo shelveInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.ShelveInfo, org.yamcs.protobuf.Alarms.ShelveInfo.Builder, org.yamcs.protobuf.Alarms.ShelveInfoOrBuilder> shelveInfoBuilder_;
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
public boolean hasShelveInfo() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
public org.yamcs.protobuf.Alarms.ShelveInfo getShelveInfo() {
if (shelveInfoBuilder_ == null) {
return shelveInfo_ == null ? org.yamcs.protobuf.Alarms.ShelveInfo.getDefaultInstance() : shelveInfo_;
} else {
return shelveInfoBuilder_.getMessage();
}
}
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
public Builder setShelveInfo(org.yamcs.protobuf.Alarms.ShelveInfo value) {
if (shelveInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
shelveInfo_ = value;
onChanged();
} else {
shelveInfoBuilder_.setMessage(value);
}
bitField0_ |= 0x00008000;
return this;
}
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
public Builder setShelveInfo(
org.yamcs.protobuf.Alarms.ShelveInfo.Builder builderForValue) {
if (shelveInfoBuilder_ == null) {
shelveInfo_ = builderForValue.build();
onChanged();
} else {
shelveInfoBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00008000;
return this;
}
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
public Builder mergeShelveInfo(org.yamcs.protobuf.Alarms.ShelveInfo value) {
if (shelveInfoBuilder_ == null) {
if (((bitField0_ & 0x00008000) != 0) &&
shelveInfo_ != null &&
shelveInfo_ != org.yamcs.protobuf.Alarms.ShelveInfo.getDefaultInstance()) {
shelveInfo_ =
org.yamcs.protobuf.Alarms.ShelveInfo.newBuilder(shelveInfo_).mergeFrom(value).buildPartial();
} else {
shelveInfo_ = value;
}
onChanged();
} else {
shelveInfoBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00008000;
return this;
}
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
public Builder clearShelveInfo() {
if (shelveInfoBuilder_ == null) {
shelveInfo_ = null;
onChanged();
} else {
shelveInfoBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00008000);
return this;
}
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
public org.yamcs.protobuf.Alarms.ShelveInfo.Builder getShelveInfoBuilder() {
bitField0_ |= 0x00008000;
onChanged();
return getShelveInfoFieldBuilder().getBuilder();
}
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
public org.yamcs.protobuf.Alarms.ShelveInfoOrBuilder getShelveInfoOrBuilder() {
if (shelveInfoBuilder_ != null) {
return shelveInfoBuilder_.getMessageOrBuilder();
} else {
return shelveInfo_ == null ?
org.yamcs.protobuf.Alarms.ShelveInfo.getDefaultInstance() : shelveInfo_;
}
}
/**
*
*if the alarm is shelved, then this will be filled in with the shelving information
*
*
* optional .yamcs.protobuf.alarms.ShelveInfo shelveInfo = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.ShelveInfo, org.yamcs.protobuf.Alarms.ShelveInfo.Builder, org.yamcs.protobuf.Alarms.ShelveInfoOrBuilder>
getShelveInfoFieldBuilder() {
if (shelveInfoBuilder_ == null) {
shelveInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.ShelveInfo, org.yamcs.protobuf.Alarms.ShelveInfo.Builder, org.yamcs.protobuf.Alarms.ShelveInfoOrBuilder>(
getShelveInfo(),
getParentForChildren(),
isClean());
shelveInfo_ = null;
}
return shelveInfoBuilder_;
}
private org.yamcs.protobuf.Alarms.ClearInfo clearInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.ClearInfo, org.yamcs.protobuf.Alarms.ClearInfo.Builder, org.yamcs.protobuf.Alarms.ClearInfoOrBuilder> clearInfoBuilder_;
/**
* optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17;
*/
public boolean hasClearInfo() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17;
*/
public org.yamcs.protobuf.Alarms.ClearInfo getClearInfo() {
if (clearInfoBuilder_ == null) {
return clearInfo_ == null ? org.yamcs.protobuf.Alarms.ClearInfo.getDefaultInstance() : clearInfo_;
} else {
return clearInfoBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17;
*/
public Builder setClearInfo(org.yamcs.protobuf.Alarms.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.Alarms.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.Alarms.ClearInfo value) {
if (clearInfoBuilder_ == null) {
if (((bitField0_ & 0x00010000) != 0) &&
clearInfo_ != null &&
clearInfo_ != org.yamcs.protobuf.Alarms.ClearInfo.getDefaultInstance()) {
clearInfo_ =
org.yamcs.protobuf.Alarms.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.Alarms.ClearInfo.Builder getClearInfoBuilder() {
bitField0_ |= 0x00010000;
onChanged();
return getClearInfoFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17;
*/
public org.yamcs.protobuf.Alarms.ClearInfoOrBuilder getClearInfoOrBuilder() {
if (clearInfoBuilder_ != null) {
return clearInfoBuilder_.getMessageOrBuilder();
} else {
return clearInfo_ == null ?
org.yamcs.protobuf.Alarms.ClearInfo.getDefaultInstance() : clearInfo_;
}
}
/**
* optional .yamcs.protobuf.alarms.ClearInfo clearInfo = 17;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.ClearInfo, org.yamcs.protobuf.Alarms.ClearInfo.Builder, org.yamcs.protobuf.Alarms.ClearInfoOrBuilder>
getClearInfoFieldBuilder() {
if (clearInfoBuilder_ == null) {
clearInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Alarms.ClearInfo, org.yamcs.protobuf.Alarms.ClearInfo.Builder, org.yamcs.protobuf.Alarms.ClearInfoOrBuilder>(
getClearInfo(),
getParentForChildren(),
isClean());
clearInfo_ = null;
}
return clearInfoBuilder_;
}
@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.Alarms.AlarmData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Alarms.AlarmData();
}
public static org.yamcs.protobuf.Alarms.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.Alarms.AlarmData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface ParameterAlarmDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.alarms.ParameterAlarmData)
com.google.protobuf.MessageOrBuilder {
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
boolean hasTriggerValue();
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
org.yamcs.protobuf.Pvalue.ParameterValue getTriggerValue();
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder getTriggerValueOrBuilder();
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
boolean hasMostSevereValue();
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
org.yamcs.protobuf.Pvalue.ParameterValue getMostSevereValue();
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder getMostSevereValueOrBuilder();
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
boolean hasCurrentValue();
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
org.yamcs.protobuf.Pvalue.ParameterValue getCurrentValue();
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder getCurrentValueOrBuilder();
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
boolean hasParameter();
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
org.yamcs.protobuf.Mdb.ParameterInfo getParameter();
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getParameterOrBuilder();
}
/**
* Protobuf type {@code yamcs.protobuf.alarms.ParameterAlarmData}
*/
public static final class ParameterAlarmData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.alarms.ParameterAlarmData)
ParameterAlarmDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use ParameterAlarmData.newBuilder() to construct.
private ParameterAlarmData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ParameterAlarmData() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ParameterAlarmData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.yamcs.protobuf.Pvalue.ParameterValue.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = triggerValue_.toBuilder();
}
triggerValue_ = input.readMessage(org.yamcs.protobuf.Pvalue.ParameterValue.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(triggerValue_);
triggerValue_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.yamcs.protobuf.Pvalue.ParameterValue.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = mostSevereValue_.toBuilder();
}
mostSevereValue_ = input.readMessage(org.yamcs.protobuf.Pvalue.ParameterValue.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(mostSevereValue_);
mostSevereValue_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.yamcs.protobuf.Pvalue.ParameterValue.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = currentValue_.toBuilder();
}
currentValue_ = input.readMessage(org.yamcs.protobuf.Pvalue.ParameterValue.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(currentValue_);
currentValue_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
org.yamcs.protobuf.Mdb.ParameterInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = parameter_.toBuilder();
}
parameter_ = input.readMessage(org.yamcs.protobuf.Mdb.ParameterInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parameter_);
parameter_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
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.Alarms.internal_static_yamcs_protobuf_alarms_ParameterAlarmData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ParameterAlarmData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.ParameterAlarmData.class, org.yamcs.protobuf.Alarms.ParameterAlarmData.Builder.class);
}
private int bitField0_;
public static final int TRIGGERVALUE_FIELD_NUMBER = 1;
private org.yamcs.protobuf.Pvalue.ParameterValue triggerValue_;
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
public boolean hasTriggerValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue getTriggerValue() {
return triggerValue_ == null ? org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance() : triggerValue_;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
public org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder getTriggerValueOrBuilder() {
return triggerValue_ == null ? org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance() : triggerValue_;
}
public static final int MOSTSEVEREVALUE_FIELD_NUMBER = 2;
private org.yamcs.protobuf.Pvalue.ParameterValue mostSevereValue_;
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
public boolean hasMostSevereValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue getMostSevereValue() {
return mostSevereValue_ == null ? org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance() : mostSevereValue_;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
public org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder getMostSevereValueOrBuilder() {
return mostSevereValue_ == null ? org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance() : mostSevereValue_;
}
public static final int CURRENTVALUE_FIELD_NUMBER = 3;
private org.yamcs.protobuf.Pvalue.ParameterValue currentValue_;
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
public boolean hasCurrentValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue getCurrentValue() {
return currentValue_ == null ? org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance() : currentValue_;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
public org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder getCurrentValueOrBuilder() {
return currentValue_ == null ? org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance() : currentValue_;
}
public static final int PARAMETER_FIELD_NUMBER = 4;
private org.yamcs.protobuf.Mdb.ParameterInfo parameter_;
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
public boolean hasParameter() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo getParameter() {
return parameter_ == null ? org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance() : parameter_;
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getParameterOrBuilder() {
return parameter_ == null ? org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance() : parameter_;
}
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 (hasTriggerValue()) {
if (!getTriggerValue().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasMostSevereValue()) {
if (!getMostSevereValue().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasCurrentValue()) {
if (!getCurrentValue().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasParameter()) {
if (!getParameter().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTriggerValue());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getMostSevereValue());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getCurrentValue());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getParameter());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTriggerValue());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMostSevereValue());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCurrentValue());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getParameter());
}
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.Alarms.ParameterAlarmData)) {
return super.equals(obj);
}
org.yamcs.protobuf.Alarms.ParameterAlarmData other = (org.yamcs.protobuf.Alarms.ParameterAlarmData) obj;
if (hasTriggerValue() != other.hasTriggerValue()) return false;
if (hasTriggerValue()) {
if (!getTriggerValue()
.equals(other.getTriggerValue())) return false;
}
if (hasMostSevereValue() != other.hasMostSevereValue()) return false;
if (hasMostSevereValue()) {
if (!getMostSevereValue()
.equals(other.getMostSevereValue())) return false;
}
if (hasCurrentValue() != other.hasCurrentValue()) return false;
if (hasCurrentValue()) {
if (!getCurrentValue()
.equals(other.getCurrentValue())) return false;
}
if (hasParameter() != other.hasParameter()) return false;
if (hasParameter()) {
if (!getParameter()
.equals(other.getParameter())) 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 (hasTriggerValue()) {
hash = (37 * hash) + TRIGGERVALUE_FIELD_NUMBER;
hash = (53 * hash) + getTriggerValue().hashCode();
}
if (hasMostSevereValue()) {
hash = (37 * hash) + MOSTSEVEREVALUE_FIELD_NUMBER;
hash = (53 * hash) + getMostSevereValue().hashCode();
}
if (hasCurrentValue()) {
hash = (37 * hash) + CURRENTVALUE_FIELD_NUMBER;
hash = (53 * hash) + getCurrentValue().hashCode();
}
if (hasParameter()) {
hash = (37 * hash) + PARAMETER_FIELD_NUMBER;
hash = (53 * hash) + getParameter().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Alarms.ParameterAlarmData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.ParameterAlarmData 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.Alarms.ParameterAlarmData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.ParameterAlarmData 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.Alarms.ParameterAlarmData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.ParameterAlarmData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Alarms.ParameterAlarmData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.ParameterAlarmData 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.Alarms.ParameterAlarmData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.ParameterAlarmData 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.Alarms.ParameterAlarmData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.ParameterAlarmData 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.Alarms.ParameterAlarmData prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yamcs.protobuf.alarms.ParameterAlarmData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.alarms.ParameterAlarmData)
org.yamcs.protobuf.Alarms.ParameterAlarmDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ParameterAlarmData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ParameterAlarmData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.ParameterAlarmData.class, org.yamcs.protobuf.Alarms.ParameterAlarmData.Builder.class);
}
// Construct using org.yamcs.protobuf.Alarms.ParameterAlarmData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTriggerValueFieldBuilder();
getMostSevereValueFieldBuilder();
getCurrentValueFieldBuilder();
getParameterFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (triggerValueBuilder_ == null) {
triggerValue_ = null;
} else {
triggerValueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (mostSevereValueBuilder_ == null) {
mostSevereValue_ = null;
} else {
mostSevereValueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (currentValueBuilder_ == null) {
currentValue_ = null;
} else {
currentValueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (parameterBuilder_ == null) {
parameter_ = null;
} else {
parameterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_ParameterAlarmData_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.ParameterAlarmData getDefaultInstanceForType() {
return org.yamcs.protobuf.Alarms.ParameterAlarmData.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.ParameterAlarmData build() {
org.yamcs.protobuf.Alarms.ParameterAlarmData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.ParameterAlarmData buildPartial() {
org.yamcs.protobuf.Alarms.ParameterAlarmData result = new org.yamcs.protobuf.Alarms.ParameterAlarmData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (triggerValueBuilder_ == null) {
result.triggerValue_ = triggerValue_;
} else {
result.triggerValue_ = triggerValueBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (mostSevereValueBuilder_ == null) {
result.mostSevereValue_ = mostSevereValue_;
} else {
result.mostSevereValue_ = mostSevereValueBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (currentValueBuilder_ == null) {
result.currentValue_ = currentValue_;
} else {
result.currentValue_ = currentValueBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (parameterBuilder_ == null) {
result.parameter_ = parameter_;
} else {
result.parameter_ = parameterBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
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.Alarms.ParameterAlarmData) {
return mergeFrom((org.yamcs.protobuf.Alarms.ParameterAlarmData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Alarms.ParameterAlarmData other) {
if (other == org.yamcs.protobuf.Alarms.ParameterAlarmData.getDefaultInstance()) return this;
if (other.hasTriggerValue()) {
mergeTriggerValue(other.getTriggerValue());
}
if (other.hasMostSevereValue()) {
mergeMostSevereValue(other.getMostSevereValue());
}
if (other.hasCurrentValue()) {
mergeCurrentValue(other.getCurrentValue());
}
if (other.hasParameter()) {
mergeParameter(other.getParameter());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasTriggerValue()) {
if (!getTriggerValue().isInitialized()) {
return false;
}
}
if (hasMostSevereValue()) {
if (!getMostSevereValue().isInitialized()) {
return false;
}
}
if (hasCurrentValue()) {
if (!getCurrentValue().isInitialized()) {
return false;
}
}
if (hasParameter()) {
if (!getParameter().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.Alarms.ParameterAlarmData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Alarms.ParameterAlarmData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.yamcs.protobuf.Pvalue.ParameterValue triggerValue_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Pvalue.ParameterValue, org.yamcs.protobuf.Pvalue.ParameterValue.Builder, org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder> triggerValueBuilder_;
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
public boolean hasTriggerValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue getTriggerValue() {
if (triggerValueBuilder_ == null) {
return triggerValue_ == null ? org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance() : triggerValue_;
} else {
return triggerValueBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
public Builder setTriggerValue(org.yamcs.protobuf.Pvalue.ParameterValue value) {
if (triggerValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
triggerValue_ = value;
onChanged();
} else {
triggerValueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
public Builder setTriggerValue(
org.yamcs.protobuf.Pvalue.ParameterValue.Builder builderForValue) {
if (triggerValueBuilder_ == null) {
triggerValue_ = builderForValue.build();
onChanged();
} else {
triggerValueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
public Builder mergeTriggerValue(org.yamcs.protobuf.Pvalue.ParameterValue value) {
if (triggerValueBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
triggerValue_ != null &&
triggerValue_ != org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance()) {
triggerValue_ =
org.yamcs.protobuf.Pvalue.ParameterValue.newBuilder(triggerValue_).mergeFrom(value).buildPartial();
} else {
triggerValue_ = value;
}
onChanged();
} else {
triggerValueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
public Builder clearTriggerValue() {
if (triggerValueBuilder_ == null) {
triggerValue_ = null;
onChanged();
} else {
triggerValueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue.Builder getTriggerValueBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTriggerValueFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
public org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder getTriggerValueOrBuilder() {
if (triggerValueBuilder_ != null) {
return triggerValueBuilder_.getMessageOrBuilder();
} else {
return triggerValue_ == null ?
org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance() : triggerValue_;
}
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue triggerValue = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Pvalue.ParameterValue, org.yamcs.protobuf.Pvalue.ParameterValue.Builder, org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder>
getTriggerValueFieldBuilder() {
if (triggerValueBuilder_ == null) {
triggerValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Pvalue.ParameterValue, org.yamcs.protobuf.Pvalue.ParameterValue.Builder, org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder>(
getTriggerValue(),
getParentForChildren(),
isClean());
triggerValue_ = null;
}
return triggerValueBuilder_;
}
private org.yamcs.protobuf.Pvalue.ParameterValue mostSevereValue_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Pvalue.ParameterValue, org.yamcs.protobuf.Pvalue.ParameterValue.Builder, org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder> mostSevereValueBuilder_;
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
public boolean hasMostSevereValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue getMostSevereValue() {
if (mostSevereValueBuilder_ == null) {
return mostSevereValue_ == null ? org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance() : mostSevereValue_;
} else {
return mostSevereValueBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
public Builder setMostSevereValue(org.yamcs.protobuf.Pvalue.ParameterValue value) {
if (mostSevereValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
mostSevereValue_ = value;
onChanged();
} else {
mostSevereValueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
public Builder setMostSevereValue(
org.yamcs.protobuf.Pvalue.ParameterValue.Builder builderForValue) {
if (mostSevereValueBuilder_ == null) {
mostSevereValue_ = builderForValue.build();
onChanged();
} else {
mostSevereValueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
public Builder mergeMostSevereValue(org.yamcs.protobuf.Pvalue.ParameterValue value) {
if (mostSevereValueBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
mostSevereValue_ != null &&
mostSevereValue_ != org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance()) {
mostSevereValue_ =
org.yamcs.protobuf.Pvalue.ParameterValue.newBuilder(mostSevereValue_).mergeFrom(value).buildPartial();
} else {
mostSevereValue_ = value;
}
onChanged();
} else {
mostSevereValueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
public Builder clearMostSevereValue() {
if (mostSevereValueBuilder_ == null) {
mostSevereValue_ = null;
onChanged();
} else {
mostSevereValueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue.Builder getMostSevereValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getMostSevereValueFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
public org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder getMostSevereValueOrBuilder() {
if (mostSevereValueBuilder_ != null) {
return mostSevereValueBuilder_.getMessageOrBuilder();
} else {
return mostSevereValue_ == null ?
org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance() : mostSevereValue_;
}
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue mostSevereValue = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Pvalue.ParameterValue, org.yamcs.protobuf.Pvalue.ParameterValue.Builder, org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder>
getMostSevereValueFieldBuilder() {
if (mostSevereValueBuilder_ == null) {
mostSevereValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Pvalue.ParameterValue, org.yamcs.protobuf.Pvalue.ParameterValue.Builder, org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder>(
getMostSevereValue(),
getParentForChildren(),
isClean());
mostSevereValue_ = null;
}
return mostSevereValueBuilder_;
}
private org.yamcs.protobuf.Pvalue.ParameterValue currentValue_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Pvalue.ParameterValue, org.yamcs.protobuf.Pvalue.ParameterValue.Builder, org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder> currentValueBuilder_;
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
public boolean hasCurrentValue() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue getCurrentValue() {
if (currentValueBuilder_ == null) {
return currentValue_ == null ? org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance() : currentValue_;
} else {
return currentValueBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
public Builder setCurrentValue(org.yamcs.protobuf.Pvalue.ParameterValue value) {
if (currentValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
currentValue_ = value;
onChanged();
} else {
currentValueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
public Builder setCurrentValue(
org.yamcs.protobuf.Pvalue.ParameterValue.Builder builderForValue) {
if (currentValueBuilder_ == null) {
currentValue_ = builderForValue.build();
onChanged();
} else {
currentValueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
public Builder mergeCurrentValue(org.yamcs.protobuf.Pvalue.ParameterValue value) {
if (currentValueBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
currentValue_ != null &&
currentValue_ != org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance()) {
currentValue_ =
org.yamcs.protobuf.Pvalue.ParameterValue.newBuilder(currentValue_).mergeFrom(value).buildPartial();
} else {
currentValue_ = value;
}
onChanged();
} else {
currentValueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
public Builder clearCurrentValue() {
if (currentValueBuilder_ == null) {
currentValue_ = null;
onChanged();
} else {
currentValueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue.Builder getCurrentValueBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCurrentValueFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
public org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder getCurrentValueOrBuilder() {
if (currentValueBuilder_ != null) {
return currentValueBuilder_.getMessageOrBuilder();
} else {
return currentValue_ == null ?
org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance() : currentValue_;
}
}
/**
* optional .yamcs.protobuf.pvalue.ParameterValue currentValue = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Pvalue.ParameterValue, org.yamcs.protobuf.Pvalue.ParameterValue.Builder, org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder>
getCurrentValueFieldBuilder() {
if (currentValueBuilder_ == null) {
currentValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Pvalue.ParameterValue, org.yamcs.protobuf.Pvalue.ParameterValue.Builder, org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder>(
getCurrentValue(),
getParentForChildren(),
isClean());
currentValue_ = null;
}
return currentValueBuilder_;
}
private org.yamcs.protobuf.Mdb.ParameterInfo parameter_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder> parameterBuilder_;
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
public boolean hasParameter() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo getParameter() {
if (parameterBuilder_ == null) {
return parameter_ == null ? org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance() : parameter_;
} else {
return parameterBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
public Builder setParameter(org.yamcs.protobuf.Mdb.ParameterInfo value) {
if (parameterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parameter_ = value;
onChanged();
} else {
parameterBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
public Builder setParameter(
org.yamcs.protobuf.Mdb.ParameterInfo.Builder builderForValue) {
if (parameterBuilder_ == null) {
parameter_ = builderForValue.build();
onChanged();
} else {
parameterBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
public Builder mergeParameter(org.yamcs.protobuf.Mdb.ParameterInfo value) {
if (parameterBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
parameter_ != null &&
parameter_ != org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance()) {
parameter_ =
org.yamcs.protobuf.Mdb.ParameterInfo.newBuilder(parameter_).mergeFrom(value).buildPartial();
} else {
parameter_ = value;
}
onChanged();
} else {
parameterBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
public Builder clearParameter() {
if (parameterBuilder_ == null) {
parameter_ = null;
onChanged();
} else {
parameterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo.Builder getParameterBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getParameterFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getParameterOrBuilder() {
if (parameterBuilder_ != null) {
return parameterBuilder_.getMessageOrBuilder();
} else {
return parameter_ == null ?
org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance() : parameter_;
}
}
/**
* optional .yamcs.protobuf.mdb.ParameterInfo parameter = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>
getParameterFieldBuilder() {
if (parameterBuilder_ == null) {
parameterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>(
getParameter(),
getParentForChildren(),
isClean());
parameter_ = null;
}
return parameterBuilder_;
}
@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.ParameterAlarmData)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.alarms.ParameterAlarmData)
private static final org.yamcs.protobuf.Alarms.ParameterAlarmData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Alarms.ParameterAlarmData();
}
public static org.yamcs.protobuf.Alarms.ParameterAlarmData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ParameterAlarmData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ParameterAlarmData(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.Alarms.ParameterAlarmData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EventAlarmDataOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.alarms.EventAlarmData)
com.google.protobuf.MessageOrBuilder {
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
boolean hasTriggerEvent();
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
org.yamcs.protobuf.Yamcs.Event getTriggerEvent();
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
org.yamcs.protobuf.Yamcs.EventOrBuilder getTriggerEventOrBuilder();
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
boolean hasMostSevereEvent();
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
org.yamcs.protobuf.Yamcs.Event getMostSevereEvent();
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
org.yamcs.protobuf.Yamcs.EventOrBuilder getMostSevereEventOrBuilder();
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
boolean hasCurrentEvent();
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
org.yamcs.protobuf.Yamcs.Event getCurrentEvent();
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
org.yamcs.protobuf.Yamcs.EventOrBuilder getCurrentEventOrBuilder();
}
/**
* Protobuf type {@code yamcs.protobuf.alarms.EventAlarmData}
*/
public static final class EventAlarmData extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.alarms.EventAlarmData)
EventAlarmDataOrBuilder {
private static final long serialVersionUID = 0L;
// Use EventAlarmData.newBuilder() to construct.
private EventAlarmData(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EventAlarmData() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EventAlarmData(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
org.yamcs.protobuf.Yamcs.Event.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = triggerEvent_.toBuilder();
}
triggerEvent_ = input.readMessage(org.yamcs.protobuf.Yamcs.Event.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(triggerEvent_);
triggerEvent_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.yamcs.protobuf.Yamcs.Event.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = mostSevereEvent_.toBuilder();
}
mostSevereEvent_ = input.readMessage(org.yamcs.protobuf.Yamcs.Event.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(mostSevereEvent_);
mostSevereEvent_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
org.yamcs.protobuf.Yamcs.Event.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = currentEvent_.toBuilder();
}
currentEvent_ = input.readMessage(org.yamcs.protobuf.Yamcs.Event.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(currentEvent_);
currentEvent_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
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.Alarms.internal_static_yamcs_protobuf_alarms_EventAlarmData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_EventAlarmData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.EventAlarmData.class, org.yamcs.protobuf.Alarms.EventAlarmData.Builder.class);
}
private int bitField0_;
public static final int TRIGGEREVENT_FIELD_NUMBER = 1;
private org.yamcs.protobuf.Yamcs.Event triggerEvent_;
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
public boolean hasTriggerEvent() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
public org.yamcs.protobuf.Yamcs.Event getTriggerEvent() {
return triggerEvent_ == null ? org.yamcs.protobuf.Yamcs.Event.getDefaultInstance() : triggerEvent_;
}
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
public org.yamcs.protobuf.Yamcs.EventOrBuilder getTriggerEventOrBuilder() {
return triggerEvent_ == null ? org.yamcs.protobuf.Yamcs.Event.getDefaultInstance() : triggerEvent_;
}
public static final int MOSTSEVEREEVENT_FIELD_NUMBER = 2;
private org.yamcs.protobuf.Yamcs.Event mostSevereEvent_;
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
public boolean hasMostSevereEvent() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
public org.yamcs.protobuf.Yamcs.Event getMostSevereEvent() {
return mostSevereEvent_ == null ? org.yamcs.protobuf.Yamcs.Event.getDefaultInstance() : mostSevereEvent_;
}
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
public org.yamcs.protobuf.Yamcs.EventOrBuilder getMostSevereEventOrBuilder() {
return mostSevereEvent_ == null ? org.yamcs.protobuf.Yamcs.Event.getDefaultInstance() : mostSevereEvent_;
}
public static final int CURRENTEVENT_FIELD_NUMBER = 3;
private org.yamcs.protobuf.Yamcs.Event currentEvent_;
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
public boolean hasCurrentEvent() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
public org.yamcs.protobuf.Yamcs.Event getCurrentEvent() {
return currentEvent_ == null ? org.yamcs.protobuf.Yamcs.Event.getDefaultInstance() : currentEvent_;
}
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
public org.yamcs.protobuf.Yamcs.EventOrBuilder getCurrentEventOrBuilder() {
return currentEvent_ == null ? org.yamcs.protobuf.Yamcs.Event.getDefaultInstance() : currentEvent_;
}
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 (hasTriggerEvent()) {
if (!getTriggerEvent().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasMostSevereEvent()) {
if (!getMostSevereEvent().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasCurrentEvent()) {
if (!getCurrentEvent().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getTriggerEvent());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getMostSevereEvent());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getCurrentEvent());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getTriggerEvent());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getMostSevereEvent());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getCurrentEvent());
}
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.Alarms.EventAlarmData)) {
return super.equals(obj);
}
org.yamcs.protobuf.Alarms.EventAlarmData other = (org.yamcs.protobuf.Alarms.EventAlarmData) obj;
if (hasTriggerEvent() != other.hasTriggerEvent()) return false;
if (hasTriggerEvent()) {
if (!getTriggerEvent()
.equals(other.getTriggerEvent())) return false;
}
if (hasMostSevereEvent() != other.hasMostSevereEvent()) return false;
if (hasMostSevereEvent()) {
if (!getMostSevereEvent()
.equals(other.getMostSevereEvent())) return false;
}
if (hasCurrentEvent() != other.hasCurrentEvent()) return false;
if (hasCurrentEvent()) {
if (!getCurrentEvent()
.equals(other.getCurrentEvent())) 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 (hasTriggerEvent()) {
hash = (37 * hash) + TRIGGEREVENT_FIELD_NUMBER;
hash = (53 * hash) + getTriggerEvent().hashCode();
}
if (hasMostSevereEvent()) {
hash = (37 * hash) + MOSTSEVEREEVENT_FIELD_NUMBER;
hash = (53 * hash) + getMostSevereEvent().hashCode();
}
if (hasCurrentEvent()) {
hash = (37 * hash) + CURRENTEVENT_FIELD_NUMBER;
hash = (53 * hash) + getCurrentEvent().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Alarms.EventAlarmData parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.EventAlarmData 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.Alarms.EventAlarmData parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.EventAlarmData 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.Alarms.EventAlarmData parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.EventAlarmData parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Alarms.EventAlarmData parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.EventAlarmData 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.Alarms.EventAlarmData parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.EventAlarmData 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.Alarms.EventAlarmData parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.EventAlarmData 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.Alarms.EventAlarmData prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yamcs.protobuf.alarms.EventAlarmData}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.alarms.EventAlarmData)
org.yamcs.protobuf.Alarms.EventAlarmDataOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_EventAlarmData_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_EventAlarmData_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.EventAlarmData.class, org.yamcs.protobuf.Alarms.EventAlarmData.Builder.class);
}
// Construct using org.yamcs.protobuf.Alarms.EventAlarmData.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getTriggerEventFieldBuilder();
getMostSevereEventFieldBuilder();
getCurrentEventFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (triggerEventBuilder_ == null) {
triggerEvent_ = null;
} else {
triggerEventBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (mostSevereEventBuilder_ == null) {
mostSevereEvent_ = null;
} else {
mostSevereEventBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (currentEventBuilder_ == null) {
currentEvent_ = null;
} else {
currentEventBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_EventAlarmData_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.EventAlarmData getDefaultInstanceForType() {
return org.yamcs.protobuf.Alarms.EventAlarmData.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.EventAlarmData build() {
org.yamcs.protobuf.Alarms.EventAlarmData result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.EventAlarmData buildPartial() {
org.yamcs.protobuf.Alarms.EventAlarmData result = new org.yamcs.protobuf.Alarms.EventAlarmData(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (triggerEventBuilder_ == null) {
result.triggerEvent_ = triggerEvent_;
} else {
result.triggerEvent_ = triggerEventBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (mostSevereEventBuilder_ == null) {
result.mostSevereEvent_ = mostSevereEvent_;
} else {
result.mostSevereEvent_ = mostSevereEventBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (currentEventBuilder_ == null) {
result.currentEvent_ = currentEvent_;
} else {
result.currentEvent_ = currentEventBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
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.Alarms.EventAlarmData) {
return mergeFrom((org.yamcs.protobuf.Alarms.EventAlarmData)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Alarms.EventAlarmData other) {
if (other == org.yamcs.protobuf.Alarms.EventAlarmData.getDefaultInstance()) return this;
if (other.hasTriggerEvent()) {
mergeTriggerEvent(other.getTriggerEvent());
}
if (other.hasMostSevereEvent()) {
mergeMostSevereEvent(other.getMostSevereEvent());
}
if (other.hasCurrentEvent()) {
mergeCurrentEvent(other.getCurrentEvent());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasTriggerEvent()) {
if (!getTriggerEvent().isInitialized()) {
return false;
}
}
if (hasMostSevereEvent()) {
if (!getMostSevereEvent().isInitialized()) {
return false;
}
}
if (hasCurrentEvent()) {
if (!getCurrentEvent().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.Alarms.EventAlarmData parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Alarms.EventAlarmData) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.yamcs.protobuf.Yamcs.Event triggerEvent_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Yamcs.Event, org.yamcs.protobuf.Yamcs.Event.Builder, org.yamcs.protobuf.Yamcs.EventOrBuilder> triggerEventBuilder_;
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
public boolean hasTriggerEvent() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
public org.yamcs.protobuf.Yamcs.Event getTriggerEvent() {
if (triggerEventBuilder_ == null) {
return triggerEvent_ == null ? org.yamcs.protobuf.Yamcs.Event.getDefaultInstance() : triggerEvent_;
} else {
return triggerEventBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
public Builder setTriggerEvent(org.yamcs.protobuf.Yamcs.Event value) {
if (triggerEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
triggerEvent_ = value;
onChanged();
} else {
triggerEventBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
public Builder setTriggerEvent(
org.yamcs.protobuf.Yamcs.Event.Builder builderForValue) {
if (triggerEventBuilder_ == null) {
triggerEvent_ = builderForValue.build();
onChanged();
} else {
triggerEventBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
public Builder mergeTriggerEvent(org.yamcs.protobuf.Yamcs.Event value) {
if (triggerEventBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
triggerEvent_ != null &&
triggerEvent_ != org.yamcs.protobuf.Yamcs.Event.getDefaultInstance()) {
triggerEvent_ =
org.yamcs.protobuf.Yamcs.Event.newBuilder(triggerEvent_).mergeFrom(value).buildPartial();
} else {
triggerEvent_ = value;
}
onChanged();
} else {
triggerEventBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
public Builder clearTriggerEvent() {
if (triggerEventBuilder_ == null) {
triggerEvent_ = null;
onChanged();
} else {
triggerEventBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
public org.yamcs.protobuf.Yamcs.Event.Builder getTriggerEventBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getTriggerEventFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
public org.yamcs.protobuf.Yamcs.EventOrBuilder getTriggerEventOrBuilder() {
if (triggerEventBuilder_ != null) {
return triggerEventBuilder_.getMessageOrBuilder();
} else {
return triggerEvent_ == null ?
org.yamcs.protobuf.Yamcs.Event.getDefaultInstance() : triggerEvent_;
}
}
/**
* optional .yamcs.protobuf.Event triggerEvent = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Yamcs.Event, org.yamcs.protobuf.Yamcs.Event.Builder, org.yamcs.protobuf.Yamcs.EventOrBuilder>
getTriggerEventFieldBuilder() {
if (triggerEventBuilder_ == null) {
triggerEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Yamcs.Event, org.yamcs.protobuf.Yamcs.Event.Builder, org.yamcs.protobuf.Yamcs.EventOrBuilder>(
getTriggerEvent(),
getParentForChildren(),
isClean());
triggerEvent_ = null;
}
return triggerEventBuilder_;
}
private org.yamcs.protobuf.Yamcs.Event mostSevereEvent_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Yamcs.Event, org.yamcs.protobuf.Yamcs.Event.Builder, org.yamcs.protobuf.Yamcs.EventOrBuilder> mostSevereEventBuilder_;
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
public boolean hasMostSevereEvent() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
public org.yamcs.protobuf.Yamcs.Event getMostSevereEvent() {
if (mostSevereEventBuilder_ == null) {
return mostSevereEvent_ == null ? org.yamcs.protobuf.Yamcs.Event.getDefaultInstance() : mostSevereEvent_;
} else {
return mostSevereEventBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
public Builder setMostSevereEvent(org.yamcs.protobuf.Yamcs.Event value) {
if (mostSevereEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
mostSevereEvent_ = value;
onChanged();
} else {
mostSevereEventBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
public Builder setMostSevereEvent(
org.yamcs.protobuf.Yamcs.Event.Builder builderForValue) {
if (mostSevereEventBuilder_ == null) {
mostSevereEvent_ = builderForValue.build();
onChanged();
} else {
mostSevereEventBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
public Builder mergeMostSevereEvent(org.yamcs.protobuf.Yamcs.Event value) {
if (mostSevereEventBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
mostSevereEvent_ != null &&
mostSevereEvent_ != org.yamcs.protobuf.Yamcs.Event.getDefaultInstance()) {
mostSevereEvent_ =
org.yamcs.protobuf.Yamcs.Event.newBuilder(mostSevereEvent_).mergeFrom(value).buildPartial();
} else {
mostSevereEvent_ = value;
}
onChanged();
} else {
mostSevereEventBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
public Builder clearMostSevereEvent() {
if (mostSevereEventBuilder_ == null) {
mostSevereEvent_ = null;
onChanged();
} else {
mostSevereEventBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
public org.yamcs.protobuf.Yamcs.Event.Builder getMostSevereEventBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getMostSevereEventFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
public org.yamcs.protobuf.Yamcs.EventOrBuilder getMostSevereEventOrBuilder() {
if (mostSevereEventBuilder_ != null) {
return mostSevereEventBuilder_.getMessageOrBuilder();
} else {
return mostSevereEvent_ == null ?
org.yamcs.protobuf.Yamcs.Event.getDefaultInstance() : mostSevereEvent_;
}
}
/**
* optional .yamcs.protobuf.Event mostSevereEvent = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Yamcs.Event, org.yamcs.protobuf.Yamcs.Event.Builder, org.yamcs.protobuf.Yamcs.EventOrBuilder>
getMostSevereEventFieldBuilder() {
if (mostSevereEventBuilder_ == null) {
mostSevereEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Yamcs.Event, org.yamcs.protobuf.Yamcs.Event.Builder, org.yamcs.protobuf.Yamcs.EventOrBuilder>(
getMostSevereEvent(),
getParentForChildren(),
isClean());
mostSevereEvent_ = null;
}
return mostSevereEventBuilder_;
}
private org.yamcs.protobuf.Yamcs.Event currentEvent_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Yamcs.Event, org.yamcs.protobuf.Yamcs.Event.Builder, org.yamcs.protobuf.Yamcs.EventOrBuilder> currentEventBuilder_;
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
public boolean hasCurrentEvent() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
public org.yamcs.protobuf.Yamcs.Event getCurrentEvent() {
if (currentEventBuilder_ == null) {
return currentEvent_ == null ? org.yamcs.protobuf.Yamcs.Event.getDefaultInstance() : currentEvent_;
} else {
return currentEventBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
public Builder setCurrentEvent(org.yamcs.protobuf.Yamcs.Event value) {
if (currentEventBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
currentEvent_ = value;
onChanged();
} else {
currentEventBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
public Builder setCurrentEvent(
org.yamcs.protobuf.Yamcs.Event.Builder builderForValue) {
if (currentEventBuilder_ == null) {
currentEvent_ = builderForValue.build();
onChanged();
} else {
currentEventBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
public Builder mergeCurrentEvent(org.yamcs.protobuf.Yamcs.Event value) {
if (currentEventBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
currentEvent_ != null &&
currentEvent_ != org.yamcs.protobuf.Yamcs.Event.getDefaultInstance()) {
currentEvent_ =
org.yamcs.protobuf.Yamcs.Event.newBuilder(currentEvent_).mergeFrom(value).buildPartial();
} else {
currentEvent_ = value;
}
onChanged();
} else {
currentEventBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
public Builder clearCurrentEvent() {
if (currentEventBuilder_ == null) {
currentEvent_ = null;
onChanged();
} else {
currentEventBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
public org.yamcs.protobuf.Yamcs.Event.Builder getCurrentEventBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getCurrentEventFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
public org.yamcs.protobuf.Yamcs.EventOrBuilder getCurrentEventOrBuilder() {
if (currentEventBuilder_ != null) {
return currentEventBuilder_.getMessageOrBuilder();
} else {
return currentEvent_ == null ?
org.yamcs.protobuf.Yamcs.Event.getDefaultInstance() : currentEvent_;
}
}
/**
* optional .yamcs.protobuf.Event currentEvent = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Yamcs.Event, org.yamcs.protobuf.Yamcs.Event.Builder, org.yamcs.protobuf.Yamcs.EventOrBuilder>
getCurrentEventFieldBuilder() {
if (currentEventBuilder_ == null) {
currentEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Yamcs.Event, org.yamcs.protobuf.Yamcs.Event.Builder, org.yamcs.protobuf.Yamcs.EventOrBuilder>(
getCurrentEvent(),
getParentForChildren(),
isClean());
currentEvent_ = null;
}
return currentEventBuilder_;
}
@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.EventAlarmData)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.alarms.EventAlarmData)
private static final org.yamcs.protobuf.Alarms.EventAlarmData DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Alarms.EventAlarmData();
}
public static org.yamcs.protobuf.Alarms.EventAlarmData getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EventAlarmData parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EventAlarmData(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.Alarms.EventAlarmData getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface EditAlarmRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.alarms.EditAlarmRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string state = 1;
*/
boolean hasState();
/**
* optional string state = 1;
*/
java.lang.String getState();
/**
* optional string state = 1;
*/
com.google.protobuf.ByteString
getStateBytes();
/**
* optional string comment = 2;
*/
boolean hasComment();
/**
* optional string comment = 2;
*/
java.lang.String getComment();
/**
* optional string comment = 2;
*/
com.google.protobuf.ByteString
getCommentBytes();
/**
*
*shelve time in milliseconds (if the state = shelved)
*can be left out which means it is shelved indefinitely
*
*
* optional uint64 shelveDuration = 3;
*/
boolean hasShelveDuration();
/**
*
*shelve time in milliseconds (if the state = shelved)
*can be left out which means it is shelved indefinitely
*
*
* optional uint64 shelveDuration = 3;
*/
long getShelveDuration();
}
/**
* Protobuf type {@code yamcs.protobuf.alarms.EditAlarmRequest}
*/
public static final class EditAlarmRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.alarms.EditAlarmRequest)
EditAlarmRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use EditAlarmRequest.newBuilder() to construct.
private EditAlarmRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private EditAlarmRequest() {
state_ = "";
comment_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EditAlarmRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
state_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
comment_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
shelveDuration_ = input.readUInt64();
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.Alarms.internal_static_yamcs_protobuf_alarms_EditAlarmRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_EditAlarmRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.EditAlarmRequest.class, org.yamcs.protobuf.Alarms.EditAlarmRequest.Builder.class);
}
private int bitField0_;
public static final int STATE_FIELD_NUMBER = 1;
private volatile java.lang.Object state_;
/**
* optional string state = 1;
*/
public boolean hasState() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string state = 1;
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
state_ = s;
}
return s;
}
}
/**
* optional string state = 1;
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int COMMENT_FIELD_NUMBER = 2;
private volatile java.lang.Object comment_;
/**
* optional string comment = 2;
*/
public boolean hasComment() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string comment = 2;
*/
public java.lang.String getComment() {
java.lang.Object ref = comment_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
comment_ = s;
}
return s;
}
}
/**
* optional string comment = 2;
*/
public com.google.protobuf.ByteString
getCommentBytes() {
java.lang.Object ref = comment_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
comment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SHELVEDURATION_FIELD_NUMBER = 3;
private long shelveDuration_;
/**
*
*shelve time in milliseconds (if the state = shelved)
*can be left out which means it is shelved indefinitely
*
*
* optional uint64 shelveDuration = 3;
*/
public boolean hasShelveDuration() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*shelve time in milliseconds (if the state = shelved)
*can be left out which means it is shelved indefinitely
*
*
* optional uint64 shelveDuration = 3;
*/
public long getShelveDuration() {
return shelveDuration_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, state_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, comment_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt64(3, shelveDuration_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, state_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, comment_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, shelveDuration_);
}
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.Alarms.EditAlarmRequest)) {
return super.equals(obj);
}
org.yamcs.protobuf.Alarms.EditAlarmRequest other = (org.yamcs.protobuf.Alarms.EditAlarmRequest) obj;
if (hasState() != other.hasState()) return false;
if (hasState()) {
if (!getState()
.equals(other.getState())) return false;
}
if (hasComment() != other.hasComment()) return false;
if (hasComment()) {
if (!getComment()
.equals(other.getComment())) return false;
}
if (hasShelveDuration() != other.hasShelveDuration()) return false;
if (hasShelveDuration()) {
if (getShelveDuration()
!= other.getShelveDuration()) 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 (hasState()) {
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + getState().hashCode();
}
if (hasComment()) {
hash = (37 * hash) + COMMENT_FIELD_NUMBER;
hash = (53 * hash) + getComment().hashCode();
}
if (hasShelveDuration()) {
hash = (37 * hash) + SHELVEDURATION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getShelveDuration());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.Alarms.EditAlarmRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.EditAlarmRequest 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.Alarms.EditAlarmRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.EditAlarmRequest 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.Alarms.EditAlarmRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Alarms.EditAlarmRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Alarms.EditAlarmRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.EditAlarmRequest 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.Alarms.EditAlarmRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.EditAlarmRequest 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.Alarms.EditAlarmRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.Alarms.EditAlarmRequest 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.Alarms.EditAlarmRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yamcs.protobuf.alarms.EditAlarmRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.alarms.EditAlarmRequest)
org.yamcs.protobuf.Alarms.EditAlarmRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_EditAlarmRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_EditAlarmRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Alarms.EditAlarmRequest.class, org.yamcs.protobuf.Alarms.EditAlarmRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.Alarms.EditAlarmRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
state_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
comment_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
shelveDuration_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Alarms.internal_static_yamcs_protobuf_alarms_EditAlarmRequest_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.EditAlarmRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.Alarms.EditAlarmRequest.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.EditAlarmRequest build() {
org.yamcs.protobuf.Alarms.EditAlarmRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.Alarms.EditAlarmRequest buildPartial() {
org.yamcs.protobuf.Alarms.EditAlarmRequest result = new org.yamcs.protobuf.Alarms.EditAlarmRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.state_ = state_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.comment_ = comment_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.shelveDuration_ = shelveDuration_;
to_bitField0_ |= 0x00000004;
}
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.Alarms.EditAlarmRequest) {
return mergeFrom((org.yamcs.protobuf.Alarms.EditAlarmRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Alarms.EditAlarmRequest other) {
if (other == org.yamcs.protobuf.Alarms.EditAlarmRequest.getDefaultInstance()) return this;
if (other.hasState()) {
bitField0_ |= 0x00000001;
state_ = other.state_;
onChanged();
}
if (other.hasComment()) {
bitField0_ |= 0x00000002;
comment_ = other.comment_;
onChanged();
}
if (other.hasShelveDuration()) {
setShelveDuration(other.getShelveDuration());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Alarms.EditAlarmRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Alarms.EditAlarmRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object state_ = "";
/**
* optional string state = 1;
*/
public boolean hasState() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string state = 1;
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
state_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string state = 1;
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string state = 1;
*/
public Builder setState(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
state_ = value;
onChanged();
return this;
}
/**
* optional string state = 1;
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000001);
state_ = getDefaultInstance().getState();
onChanged();
return this;
}
/**
* optional string state = 1;
*/
public Builder setStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
state_ = value;
onChanged();
return this;
}
private java.lang.Object comment_ = "";
/**
* optional string comment = 2;
*/
public boolean hasComment() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string comment = 2;
*/
public java.lang.String getComment() {
java.lang.Object ref = comment_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
comment_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string comment = 2;
*/
public com.google.protobuf.ByteString
getCommentBytes() {
java.lang.Object ref = comment_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
comment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string comment = 2;
*/
public Builder setComment(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
comment_ = value;
onChanged();
return this;
}
/**
* optional string comment = 2;
*/
public Builder clearComment() {
bitField0_ = (bitField0_ & ~0x00000002);
comment_ = getDefaultInstance().getComment();
onChanged();
return this;
}
/**
* optional string comment = 2;
*/
public Builder setCommentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
comment_ = value;
onChanged();
return this;
}
private long shelveDuration_ ;
/**
*
*shelve time in milliseconds (if the state = shelved)
*can be left out which means it is shelved indefinitely
*
*
* optional uint64 shelveDuration = 3;
*/
public boolean hasShelveDuration() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*shelve time in milliseconds (if the state = shelved)
*can be left out which means it is shelved indefinitely
*
*
* optional uint64 shelveDuration = 3;
*/
public long getShelveDuration() {
return shelveDuration_;
}
/**
*
*shelve time in milliseconds (if the state = shelved)
*can be left out which means it is shelved indefinitely
*
*
* optional uint64 shelveDuration = 3;
*/
public Builder setShelveDuration(long value) {
bitField0_ |= 0x00000004;
shelveDuration_ = value;
onChanged();
return this;
}
/**
*
*shelve time in milliseconds (if the state = shelved)
*can be left out which means it is shelved indefinitely
*
*
* optional uint64 shelveDuration = 3;
*/
public Builder clearShelveDuration() {
bitField0_ = (bitField0_ & ~0x00000004);
shelveDuration_ = 0L;
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.EditAlarmRequest)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.alarms.EditAlarmRequest)
private static final org.yamcs.protobuf.Alarms.EditAlarmRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.Alarms.EditAlarmRequest();
}
public static org.yamcs.protobuf.Alarms.EditAlarmRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public EditAlarmRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EditAlarmRequest(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.Alarms.EditAlarmRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yamcs_protobuf_alarms_AcknowledgeInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yamcs_protobuf_alarms_AcknowledgeInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yamcs_protobuf_alarms_ShelveInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yamcs_protobuf_alarms_ShelveInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yamcs_protobuf_alarms_ClearInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yamcs_protobuf_alarms_ClearInfo_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yamcs_protobuf_alarms_AlarmData_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yamcs_protobuf_alarms_AlarmData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yamcs_protobuf_alarms_ParameterAlarmData_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yamcs_protobuf_alarms_ParameterAlarmData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yamcs_protobuf_alarms_EventAlarmData_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yamcs_protobuf_alarms_EventAlarmData_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_yamcs_protobuf_alarms_EditAlarmRequest_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_yamcs_protobuf_alarms_EditAlarmRequest_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\"yamcs/protobuf/alarms/alarms.proto\022\025ya" +
"mcs.protobuf.alarms\032\032yamcs/protobuf/yamc" +
"s.proto\032\034yamcs/protobuf/mdb/mdb.proto\032\"y" +
"amcs/protobuf/pvalue/pvalue.proto\032\037googl" +
"e/protobuf/timestamp.proto\"\274\001\n\017Acknowled" +
"geInfo\022\026\n\016acknowledgedBy\030\001 \001(\t\022\032\n\022acknow" +
"ledgeMessage\030\002 \001(\t\022 \n\024yamcsAcknowledgeTi" +
"me\030\003 \001(\003B\002\030\001\022\036\n\022acknowledgeTimeUTC\030\004 \001(\t" +
"B\002\030\001\0223\n\017acknowledgeTime\030\005 \001(\0132\032.google.p" +
"rotobuf.Timestamp\"\234\001\n\nShelveInfo\022\021\n\tshel" +
"vedBy\030\001 \001(\t\022\025\n\rshelveMessage\030\002 \001(\t\022.\n\nsh" +
"elveTime\030\003 \001(\0132\032.google.protobuf.Timesta" +
"mp\0224\n\020shelveExpiration\030\004 \001(\0132\032.google.pr" +
"otobuf.Timestamp\"c\n\tClearInfo\022\021\n\tcleared" +
"By\030\001 \001(\t\022-\n\tclearTime\030\002 \001(\0132\032.google.pro" +
"tobuf.Timestamp\022\024\n\014clearMessage\030\003 \001(\t\"\305\005" +
"\n\tAlarmData\022.\n\004type\030\001 \001(\0162 .yamcs.protob" +
"uf.alarms.AlarmType\022/\n\013triggerTime\030\002 \001(\013" +
"2\032.google.protobuf.Timestamp\022)\n\002id\030\003 \001(\013" +
"2\035.yamcs.protobuf.NamedObjectId\022\016\n\006seqNu" +
"m\030\004 \001(\r\0226\n\010severity\030\005 \001(\0162$.yamcs.protob" +
"uf.alarms.AlarmSeverity\022\022\n\nviolations\030\006 " +
"\001(\r\022\r\n\005count\030\007 \001(\r\022?\n\017acknowledgeInfo\030\010 " +
"\001(\0132&.yamcs.protobuf.alarms.AcknowledgeI" +
"nfo\022F\n\020notificationType\030\t \001(\0162,.yamcs.pr" +
"otobuf.alarms.AlarmNotificationType\022B\n\017p" +
"arameterDetail\030\n \001(\0132).yamcs.protobuf.al" +
"arms.ParameterAlarmData\022:\n\013eventDetail\030\013" +
" \001(\0132%.yamcs.protobuf.alarms.EventAlarmD" +
"ata\022\020\n\010latching\030\014 \001(\010\022\021\n\tprocessOK\030\r \001(\010" +
"\022\021\n\ttriggered\030\016 \001(\010\022\024\n\014acknowledged\030\017 \001(" +
"\010\0225\n\nshelveInfo\030\020 \001(\0132!.yamcs.protobuf.a" +
"larms.ShelveInfo\0223\n\tclearInfo\030\021 \001(\0132 .ya" +
"mcs.protobuf.alarms.ClearInfo\"\204\002\n\022Parame" +
"terAlarmData\022;\n\014triggerValue\030\001 \001(\0132%.yam" +
"cs.protobuf.pvalue.ParameterValue\022>\n\017mos" +
"tSevereValue\030\002 \001(\0132%.yamcs.protobuf.pval" +
"ue.ParameterValue\022;\n\014currentValue\030\003 \001(\0132" +
"%.yamcs.protobuf.pvalue.ParameterValue\0224" +
"\n\tparameter\030\004 \001(\0132!.yamcs.protobuf.mdb.P" +
"arameterInfo\"\232\001\n\016EventAlarmData\022+\n\014trigg" +
"erEvent\030\001 \001(\0132\025.yamcs.protobuf.Event\022.\n\017" +
"mostSevereEvent\030\002 \001(\0132\025.yamcs.protobuf.E" +
"vent\022+\n\014currentEvent\030\003 \001(\0132\025.yamcs.proto" +
"buf.Event\"J\n\020EditAlarmRequest\022\r\n\005state\030\001" +
" \001(\t\022\017\n\007comment\030\002 \001(\t\022\026\n\016shelveDuration\030" +
"\003 \001(\004*\254\001\n\025AlarmNotificationType\022\n\n\006ACTIV" +
"E\020\001\022\r\n\tTRIGGERED\020\002\022\026\n\022SEVERITY_INCREASED" +
"\020\003\022\021\n\rVALUE_UPDATED\020\004\022\020\n\014ACKNOWLEDGED\020\005\022" +
"\013\n\007CLEARED\020\006\022\007\n\003RTN\020\007\022\013\n\007SHELVED\020\010\022\r\n\tUN" +
"SHELVED\020\t\022\t\n\005RESET\020\n*%\n\tAlarmType\022\r\n\tPAR" +
"AMETER\020\001\022\t\n\005EVENT\020\002*O\n\rAlarmSeverity\022\t\n\005" +
"WATCH\020\001\022\013\n\007WARNING\020\002\022\014\n\010DISTRESS\020\003\022\014\n\010CR" +
"ITICAL\020\004\022\n\n\006SEVERE\020\005B\024\n\022org.yamcs.protob" +
"uf"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.yamcs.protobuf.Yamcs.getDescriptor(),
org.yamcs.protobuf.Mdb.getDescriptor(),
org.yamcs.protobuf.Pvalue.getDescriptor(),
com.google.protobuf.TimestampProto.getDescriptor(),
}, assigner);
internal_static_yamcs_protobuf_alarms_AcknowledgeInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_yamcs_protobuf_alarms_AcknowledgeInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yamcs_protobuf_alarms_AcknowledgeInfo_descriptor,
new java.lang.String[] { "AcknowledgedBy", "AcknowledgeMessage", "YamcsAcknowledgeTime", "AcknowledgeTimeUTC", "AcknowledgeTime", });
internal_static_yamcs_protobuf_alarms_ShelveInfo_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_yamcs_protobuf_alarms_ShelveInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yamcs_protobuf_alarms_ShelveInfo_descriptor,
new java.lang.String[] { "ShelvedBy", "ShelveMessage", "ShelveTime", "ShelveExpiration", });
internal_static_yamcs_protobuf_alarms_ClearInfo_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_yamcs_protobuf_alarms_ClearInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yamcs_protobuf_alarms_ClearInfo_descriptor,
new java.lang.String[] { "ClearedBy", "ClearTime", "ClearMessage", });
internal_static_yamcs_protobuf_alarms_AlarmData_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_yamcs_protobuf_alarms_AlarmData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yamcs_protobuf_alarms_AlarmData_descriptor,
new java.lang.String[] { "Type", "TriggerTime", "Id", "SeqNum", "Severity", "Violations", "Count", "AcknowledgeInfo", "NotificationType", "ParameterDetail", "EventDetail", "Latching", "ProcessOK", "Triggered", "Acknowledged", "ShelveInfo", "ClearInfo", });
internal_static_yamcs_protobuf_alarms_ParameterAlarmData_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_yamcs_protobuf_alarms_ParameterAlarmData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yamcs_protobuf_alarms_ParameterAlarmData_descriptor,
new java.lang.String[] { "TriggerValue", "MostSevereValue", "CurrentValue", "Parameter", });
internal_static_yamcs_protobuf_alarms_EventAlarmData_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_yamcs_protobuf_alarms_EventAlarmData_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yamcs_protobuf_alarms_EventAlarmData_descriptor,
new java.lang.String[] { "TriggerEvent", "MostSevereEvent", "CurrentEvent", });
internal_static_yamcs_protobuf_alarms_EditAlarmRequest_descriptor =
getDescriptor().getMessageTypes().get(6);
internal_static_yamcs_protobuf_alarms_EditAlarmRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_yamcs_protobuf_alarms_EditAlarmRequest_descriptor,
new java.lang.String[] { "State", "Comment", "ShelveDuration", });
org.yamcs.protobuf.Yamcs.getDescriptor();
org.yamcs.protobuf.Mdb.getDescriptor();
org.yamcs.protobuf.Pvalue.getDescriptor();
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}