Package org.yamcs.protobuf.activities
Class AlarmCondition.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AlarmCondition.Builder>
org.yamcs.protobuf.activities.AlarmCondition.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,AlarmConditionOrBuilder
- Enclosing class:
- AlarmCondition
public static final class AlarmCondition.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AlarmCondition.Builder>
implements AlarmConditionOrBuilder
Protobuf type
yamcs.protobuf.activities.AlarmCondition-
Method Summary
Modifier and TypeMethodDescriptionaddAllNotifications(Iterable<? extends AlarmNotificationType> values) Notifications that make the trigger fire.addAllSubjects(Iterable<String> values) Glob patterns that match the alarm subject.Notifications that make the trigger fire.addSubjects(String value) Glob patterns that match the alarm subject.addSubjectsBytes(com.google.protobuf.ByteString value) Glob patterns that match the alarm subject.build()clear()Type of alarm.Also fire for shelved alarms.Minimum alarm severity.Notifications that make the trigger fire.Glob patterns that match the alarm subject.Type of alarm.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanAlso fire for shelved alarms.Minimum alarm severity.getNotifications(int index) Notifications that make the trigger fire.intNotifications that make the trigger fire.Notifications that make the trigger fire.getSubjects(int index) Glob patterns that match the alarm subject.com.google.protobuf.ByteStringgetSubjectsBytes(int index) Glob patterns that match the alarm subject.intGlob patterns that match the alarm subject.com.google.protobuf.ProtocolStringListGlob patterns that match the alarm subject.booleanType of alarm.booleanAlso fire for shelved alarms.booleanMinimum alarm severity.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(AlarmCondition other) Type of alarm.setIncludeShelved(boolean value) Also fire for shelved alarms.setMinSeverity(AlarmSeverity value) Minimum alarm severity.setNotifications(int index, AlarmNotificationType value) Notifications that make the trigger fire.setSubjects(int index, String value) Glob patterns that match the alarm subject.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AlarmCondition.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AlarmCondition.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AlarmCondition.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AlarmCondition.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AlarmCondition.Builder>
-
mergeFrom
public AlarmCondition.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AlarmCondition.Builder>- Throws:
IOException
-
hasAlarmType
public boolean hasAlarmType()Type of alarm. Default: PARAMETER
optional .yamcs.protobuf.activities.AlarmCondition.AlarmType alarmType = 1;- Specified by:
hasAlarmTypein interfaceAlarmConditionOrBuilder- Returns:
- Whether the alarmType field is set.
-
getAlarmType
Type of alarm. Default: PARAMETER
optional .yamcs.protobuf.activities.AlarmCondition.AlarmType alarmType = 1;- Specified by:
getAlarmTypein interfaceAlarmConditionOrBuilder- Returns:
- The alarmType.
-
setAlarmType
Type of alarm. Default: PARAMETER
optional .yamcs.protobuf.activities.AlarmCondition.AlarmType alarmType = 1;- Parameters:
value- The alarmType to set.- Returns:
- This builder for chaining.
-
clearAlarmType
Type of alarm. Default: PARAMETER
optional .yamcs.protobuf.activities.AlarmCondition.AlarmType alarmType = 1;- Returns:
- This builder for chaining.
-
getSubjectsList
public com.google.protobuf.ProtocolStringList getSubjectsList()Glob patterns that match the alarm subject. For parameter alarms this is the qualified parameter name. For event alarms this is ``source/type``. ``*`` matches any sequence of characters, ``?`` matches one character. If empty, any alarm of the given type matches.
repeated string subjects = 2;- Specified by:
getSubjectsListin interfaceAlarmConditionOrBuilder- Returns:
- A list containing the subjects.
-
getSubjectsCount
public int getSubjectsCount()Glob patterns that match the alarm subject. For parameter alarms this is the qualified parameter name. For event alarms this is ``source/type``. ``*`` matches any sequence of characters, ``?`` matches one character. If empty, any alarm of the given type matches.
repeated string subjects = 2;- Specified by:
getSubjectsCountin interfaceAlarmConditionOrBuilder- Returns:
- The count of subjects.
-
getSubjects
Glob patterns that match the alarm subject. For parameter alarms this is the qualified parameter name. For event alarms this is ``source/type``. ``*`` matches any sequence of characters, ``?`` matches one character. If empty, any alarm of the given type matches.
repeated string subjects = 2;- Specified by:
getSubjectsin interfaceAlarmConditionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The subjects at the given index.
-
getSubjectsBytes
public com.google.protobuf.ByteString getSubjectsBytes(int index) Glob patterns that match the alarm subject. For parameter alarms this is the qualified parameter name. For event alarms this is ``source/type``. ``*`` matches any sequence of characters, ``?`` matches one character. If empty, any alarm of the given type matches.
repeated string subjects = 2;- Specified by:
getSubjectsBytesin interfaceAlarmConditionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the subjects at the given index.
-
setSubjects
Glob patterns that match the alarm subject. For parameter alarms this is the qualified parameter name. For event alarms this is ``source/type``. ``*`` matches any sequence of characters, ``?`` matches one character. If empty, any alarm of the given type matches.
repeated string subjects = 2;- Parameters:
index- The index to set the value at.value- The subjects to set.- Returns:
- This builder for chaining.
-
addSubjects
Glob patterns that match the alarm subject. For parameter alarms this is the qualified parameter name. For event alarms this is ``source/type``. ``*`` matches any sequence of characters, ``?`` matches one character. If empty, any alarm of the given type matches.
repeated string subjects = 2;- Parameters:
value- The subjects to add.- Returns:
- This builder for chaining.
-
addAllSubjects
Glob patterns that match the alarm subject. For parameter alarms this is the qualified parameter name. For event alarms this is ``source/type``. ``*`` matches any sequence of characters, ``?`` matches one character. If empty, any alarm of the given type matches.
repeated string subjects = 2;- Parameters:
values- The subjects to add.- Returns:
- This builder for chaining.
-
clearSubjects
Glob patterns that match the alarm subject. For parameter alarms this is the qualified parameter name. For event alarms this is ``source/type``. ``*`` matches any sequence of characters, ``?`` matches one character. If empty, any alarm of the given type matches.
repeated string subjects = 2;- Returns:
- This builder for chaining.
-
addSubjectsBytes
Glob patterns that match the alarm subject. For parameter alarms this is the qualified parameter name. For event alarms this is ``source/type``. ``*`` matches any sequence of characters, ``?`` matches one character. If empty, any alarm of the given type matches.
repeated string subjects = 2;- Parameters:
value- The bytes of the subjects to add.- Returns:
- This builder for chaining.
-
getNotificationsList
Notifications that make the trigger fire. Default: TRIGGERED, SEVERITY_INCREASED
repeated .yamcs.protobuf.alarms.AlarmNotificationType notifications = 3;- Specified by:
getNotificationsListin interfaceAlarmConditionOrBuilder- Returns:
- A list containing the notifications.
-
getNotificationsCount
public int getNotificationsCount()Notifications that make the trigger fire. Default: TRIGGERED, SEVERITY_INCREASED
repeated .yamcs.protobuf.alarms.AlarmNotificationType notifications = 3;- Specified by:
getNotificationsCountin interfaceAlarmConditionOrBuilder- Returns:
- The count of notifications.
-
getNotifications
Notifications that make the trigger fire. Default: TRIGGERED, SEVERITY_INCREASED
repeated .yamcs.protobuf.alarms.AlarmNotificationType notifications = 3;- Specified by:
getNotificationsin interfaceAlarmConditionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The notifications at the given index.
-
setNotifications
Notifications that make the trigger fire. Default: TRIGGERED, SEVERITY_INCREASED
repeated .yamcs.protobuf.alarms.AlarmNotificationType notifications = 3;- Parameters:
index- The index to set the value at.value- The notifications to set.- Returns:
- This builder for chaining.
-
addNotifications
Notifications that make the trigger fire. Default: TRIGGERED, SEVERITY_INCREASED
repeated .yamcs.protobuf.alarms.AlarmNotificationType notifications = 3;- Parameters:
value- The notifications to add.- Returns:
- This builder for chaining.
-
addAllNotifications
Notifications that make the trigger fire. Default: TRIGGERED, SEVERITY_INCREASED
repeated .yamcs.protobuf.alarms.AlarmNotificationType notifications = 3;- Parameters:
values- The notifications to add.- Returns:
- This builder for chaining.
-
clearNotifications
Notifications that make the trigger fire. Default: TRIGGERED, SEVERITY_INCREASED
repeated .yamcs.protobuf.alarms.AlarmNotificationType notifications = 3;- Returns:
- This builder for chaining.
-
hasMinSeverity
public boolean hasMinSeverity()Minimum alarm severity. Default: WATCH
optional .yamcs.protobuf.alarms.AlarmSeverity minSeverity = 4;- Specified by:
hasMinSeverityin interfaceAlarmConditionOrBuilder- Returns:
- Whether the minSeverity field is set.
-
getMinSeverity
Minimum alarm severity. Default: WATCH
optional .yamcs.protobuf.alarms.AlarmSeverity minSeverity = 4;- Specified by:
getMinSeverityin interfaceAlarmConditionOrBuilder- Returns:
- The minSeverity.
-
setMinSeverity
Minimum alarm severity. Default: WATCH
optional .yamcs.protobuf.alarms.AlarmSeverity minSeverity = 4;- Parameters:
value- The minSeverity to set.- Returns:
- This builder for chaining.
-
clearMinSeverity
Minimum alarm severity. Default: WATCH
optional .yamcs.protobuf.alarms.AlarmSeverity minSeverity = 4;- Returns:
- This builder for chaining.
-
hasIncludeShelved
public boolean hasIncludeShelved()Also fire for shelved alarms. Default: false
optional bool includeShelved = 5;- Specified by:
hasIncludeShelvedin interfaceAlarmConditionOrBuilder- Returns:
- Whether the includeShelved field is set.
-
getIncludeShelved
public boolean getIncludeShelved()Also fire for shelved alarms. Default: false
optional bool includeShelved = 5;- Specified by:
getIncludeShelvedin interfaceAlarmConditionOrBuilder- Returns:
- The includeShelved.
-
setIncludeShelved
Also fire for shelved alarms. Default: false
optional bool includeShelved = 5;- Parameters:
value- The includeShelved to set.- Returns:
- This builder for chaining.
-
clearIncludeShelved
Also fire for shelved alarms. Default: false
optional bool includeShelved = 5;- Returns:
- This builder for chaining.
-