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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<AlarmCondition.Builder>
    • clear

      public AlarmCondition.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<AlarmCondition.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<AlarmCondition.Builder>
    • getDefaultInstanceForType

      public AlarmCondition getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public AlarmCondition build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public AlarmCondition buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AlarmCondition.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AlarmCondition.Builder>
    • mergeFrom

      public AlarmCondition.Builder mergeFrom(AlarmCondition other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasAlarmType in interface AlarmConditionOrBuilder
      Returns:
      Whether the alarmType field is set.
    • getAlarmType

      public AlarmCondition.AlarmType getAlarmType()
       Type of alarm. Default: PARAMETER
       
      optional .yamcs.protobuf.activities.AlarmCondition.AlarmType alarmType = 1;
      Specified by:
      getAlarmType in interface AlarmConditionOrBuilder
      Returns:
      The alarmType.
    • setAlarmType

      public AlarmCondition.Builder setAlarmType(AlarmCondition.AlarmType value)
       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

      public AlarmCondition.Builder 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:
      getSubjectsList in interface AlarmConditionOrBuilder
      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:
      getSubjectsCount in interface AlarmConditionOrBuilder
      Returns:
      The count of subjects.
    • getSubjects

      public String getSubjects(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:
      getSubjects in interface AlarmConditionOrBuilder
      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:
      getSubjectsBytes in interface AlarmConditionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the subjects at the given index.
    • setSubjects

      public AlarmCondition.Builder setSubjects(int index, String value)
       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

      public AlarmCondition.Builder addSubjects(String value)
       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

      public AlarmCondition.Builder addAllSubjects(Iterable<String> values)
       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

      public AlarmCondition.Builder 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

      public AlarmCondition.Builder addSubjectsBytes(com.google.protobuf.ByteString value)
       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

      public List<AlarmNotificationType> getNotificationsList()
       Notifications that make the trigger fire.
       Default: TRIGGERED, SEVERITY_INCREASED
       
      repeated .yamcs.protobuf.alarms.AlarmNotificationType notifications = 3;
      Specified by:
      getNotificationsList in interface AlarmConditionOrBuilder
      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:
      getNotificationsCount in interface AlarmConditionOrBuilder
      Returns:
      The count of notifications.
    • getNotifications

      public AlarmNotificationType getNotifications(int index)
       Notifications that make the trigger fire.
       Default: TRIGGERED, SEVERITY_INCREASED
       
      repeated .yamcs.protobuf.alarms.AlarmNotificationType notifications = 3;
      Specified by:
      getNotifications in interface AlarmConditionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The notifications at the given index.
    • setNotifications

      public AlarmCondition.Builder setNotifications(int index, AlarmNotificationType value)
       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

      public AlarmCondition.Builder addNotifications(AlarmNotificationType value)
       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

      public AlarmCondition.Builder addAllNotifications(Iterable<? extends AlarmNotificationType> values)
       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

      public AlarmCondition.Builder 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:
      hasMinSeverity in interface AlarmConditionOrBuilder
      Returns:
      Whether the minSeverity field is set.
    • getMinSeverity

      public AlarmSeverity getMinSeverity()
       Minimum alarm severity. Default: WATCH
       
      optional .yamcs.protobuf.alarms.AlarmSeverity minSeverity = 4;
      Specified by:
      getMinSeverity in interface AlarmConditionOrBuilder
      Returns:
      The minSeverity.
    • setMinSeverity

      public AlarmCondition.Builder setMinSeverity(AlarmSeverity value)
       Minimum alarm severity. Default: WATCH
       
      optional .yamcs.protobuf.alarms.AlarmSeverity minSeverity = 4;
      Parameters:
      value - The minSeverity to set.
      Returns:
      This builder for chaining.
    • clearMinSeverity

      public AlarmCondition.Builder 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:
      hasIncludeShelved in interface AlarmConditionOrBuilder
      Returns:
      Whether the includeShelved field is set.
    • getIncludeShelved

      public boolean getIncludeShelved()
       Also fire for shelved alarms. Default: false
       
      optional bool includeShelved = 5;
      Specified by:
      getIncludeShelved in interface AlarmConditionOrBuilder
      Returns:
      The includeShelved.
    • setIncludeShelved

      public AlarmCondition.Builder setIncludeShelved(boolean value)
       Also fire for shelved alarms. Default: false
       
      optional bool includeShelved = 5;
      Parameters:
      value - The includeShelved to set.
      Returns:
      This builder for chaining.
    • clearIncludeShelved

      public AlarmCondition.Builder clearIncludeShelved()
       Also fire for shelved alarms. Default: false
       
      optional bool includeShelved = 5;
      Returns:
      This builder for chaining.