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

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

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

package org.yamcs.protobuf;

/**
 * Protobuf type {@code yamcs.protobuf.alarms.EventAlarmData}
 */
public 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
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new 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.Event.Builder subBuilder = null;
            if (((bitField0_ & 0x00000001) != 0)) {
              subBuilder = triggerEvent_.toBuilder();
            }
            triggerEvent_ = input.readMessage(org.yamcs.protobuf.Event.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(triggerEvent_);
              triggerEvent_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000001;
            break;
          }
          case 18: {
            org.yamcs.protobuf.Event.Builder subBuilder = null;
            if (((bitField0_ & 0x00000002) != 0)) {
              subBuilder = mostSevereEvent_.toBuilder();
            }
            mostSevereEvent_ = input.readMessage(org.yamcs.protobuf.Event.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(mostSevereEvent_);
              mostSevereEvent_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000002;
            break;
          }
          case 26: {
            org.yamcs.protobuf.Event.Builder subBuilder = null;
            if (((bitField0_ & 0x00000004) != 0)) {
              subBuilder = currentEvent_.toBuilder();
            }
            currentEvent_ = input.readMessage(org.yamcs.protobuf.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.AlarmsProto.internal_static_yamcs_protobuf_alarms_EventAlarmData_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.AlarmsProto.internal_static_yamcs_protobuf_alarms_EventAlarmData_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.EventAlarmData.class, org.yamcs.protobuf.EventAlarmData.Builder.class);
  }

  private int bitField0_;
  public static final int TRIGGEREVENT_FIELD_NUMBER = 1;
  private org.yamcs.protobuf.Event triggerEvent_;
  /**
   * optional .yamcs.protobuf.events.Event triggerEvent = 1;
   * @return Whether the triggerEvent field is set.
   */
  @java.lang.Override
  public boolean hasTriggerEvent() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional .yamcs.protobuf.events.Event triggerEvent = 1;
   * @return The triggerEvent.
   */
  @java.lang.Override
  public org.yamcs.protobuf.Event getTriggerEvent() {
    return triggerEvent_ == null ? org.yamcs.protobuf.Event.getDefaultInstance() : triggerEvent_;
  }
  /**
   * optional .yamcs.protobuf.events.Event triggerEvent = 1;
   */
  @java.lang.Override
  public org.yamcs.protobuf.EventOrBuilder getTriggerEventOrBuilder() {
    return triggerEvent_ == null ? org.yamcs.protobuf.Event.getDefaultInstance() : triggerEvent_;
  }

  public static final int MOSTSEVEREEVENT_FIELD_NUMBER = 2;
  private org.yamcs.protobuf.Event mostSevereEvent_;
  /**
   * optional .yamcs.protobuf.events.Event mostSevereEvent = 2;
   * @return Whether the mostSevereEvent field is set.
   */
  @java.lang.Override
  public boolean hasMostSevereEvent() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional .yamcs.protobuf.events.Event mostSevereEvent = 2;
   * @return The mostSevereEvent.
   */
  @java.lang.Override
  public org.yamcs.protobuf.Event getMostSevereEvent() {
    return mostSevereEvent_ == null ? org.yamcs.protobuf.Event.getDefaultInstance() : mostSevereEvent_;
  }
  /**
   * optional .yamcs.protobuf.events.Event mostSevereEvent = 2;
   */
  @java.lang.Override
  public org.yamcs.protobuf.EventOrBuilder getMostSevereEventOrBuilder() {
    return mostSevereEvent_ == null ? org.yamcs.protobuf.Event.getDefaultInstance() : mostSevereEvent_;
  }

  public static final int CURRENTEVENT_FIELD_NUMBER = 3;
  private org.yamcs.protobuf.Event currentEvent_;
  /**
   * optional .yamcs.protobuf.events.Event currentEvent = 3;
   * @return Whether the currentEvent field is set.
   */
  @java.lang.Override
  public boolean hasCurrentEvent() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional .yamcs.protobuf.events.Event currentEvent = 3;
   * @return The currentEvent.
   */
  @java.lang.Override
  public org.yamcs.protobuf.Event getCurrentEvent() {
    return currentEvent_ == null ? org.yamcs.protobuf.Event.getDefaultInstance() : currentEvent_;
  }
  /**
   * optional .yamcs.protobuf.events.Event currentEvent = 3;
   */
  @java.lang.Override
  public org.yamcs.protobuf.EventOrBuilder getCurrentEventOrBuilder() {
    return currentEvent_ == null ? org.yamcs.protobuf.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;

    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.EventAlarmData)) {
      return super.equals(obj);
    }
    org.yamcs.protobuf.EventAlarmData other = (org.yamcs.protobuf.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.EventAlarmData parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.yamcs.protobuf.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.EventAlarmData parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.yamcs.protobuf.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.EventAlarmData parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.yamcs.protobuf.EventAlarmData parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.yamcs.protobuf.EventAlarmData parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.yamcs.protobuf.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.EventAlarmData parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.yamcs.protobuf.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.EventAlarmData parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.yamcs.protobuf.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.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.EventAlarmDataOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.yamcs.protobuf.AlarmsProto.internal_static_yamcs_protobuf_alarms_EventAlarmData_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return org.yamcs.protobuf.AlarmsProto.internal_static_yamcs_protobuf_alarms_EventAlarmData_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              org.yamcs.protobuf.EventAlarmData.class, org.yamcs.protobuf.EventAlarmData.Builder.class);
    }

    // Construct using org.yamcs.protobuf.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.AlarmsProto.internal_static_yamcs_protobuf_alarms_EventAlarmData_descriptor;
    }

    @java.lang.Override
    public org.yamcs.protobuf.EventAlarmData getDefaultInstanceForType() {
      return org.yamcs.protobuf.EventAlarmData.getDefaultInstance();
    }

    @java.lang.Override
    public org.yamcs.protobuf.EventAlarmData build() {
      org.yamcs.protobuf.EventAlarmData result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public org.yamcs.protobuf.EventAlarmData buildPartial() {
      org.yamcs.protobuf.EventAlarmData result = new org.yamcs.protobuf.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.EventAlarmData) {
        return mergeFrom((org.yamcs.protobuf.EventAlarmData)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.yamcs.protobuf.EventAlarmData other) {
      if (other == org.yamcs.protobuf.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() {
      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.EventAlarmData parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.yamcs.protobuf.EventAlarmData) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private org.yamcs.protobuf.Event triggerEvent_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.yamcs.protobuf.Event, org.yamcs.protobuf.Event.Builder, org.yamcs.protobuf.EventOrBuilder> triggerEventBuilder_;
    /**
     * optional .yamcs.protobuf.events.Event triggerEvent = 1;
     * @return Whether the triggerEvent field is set.
     */
    public boolean hasTriggerEvent() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional .yamcs.protobuf.events.Event triggerEvent = 1;
     * @return The triggerEvent.
     */
    public org.yamcs.protobuf.Event getTriggerEvent() {
      if (triggerEventBuilder_ == null) {
        return triggerEvent_ == null ? org.yamcs.protobuf.Event.getDefaultInstance() : triggerEvent_;
      } else {
        return triggerEventBuilder_.getMessage();
      }
    }
    /**
     * optional .yamcs.protobuf.events.Event triggerEvent = 1;
     */
    public Builder setTriggerEvent(org.yamcs.protobuf.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.events.Event triggerEvent = 1;
     */
    public Builder setTriggerEvent(
        org.yamcs.protobuf.Event.Builder builderForValue) {
      if (triggerEventBuilder_ == null) {
        triggerEvent_ = builderForValue.build();
        onChanged();
      } else {
        triggerEventBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .yamcs.protobuf.events.Event triggerEvent = 1;
     */
    public Builder mergeTriggerEvent(org.yamcs.protobuf.Event value) {
      if (triggerEventBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
            triggerEvent_ != null &&
            triggerEvent_ != org.yamcs.protobuf.Event.getDefaultInstance()) {
          triggerEvent_ =
            org.yamcs.protobuf.Event.newBuilder(triggerEvent_).mergeFrom(value).buildPartial();
        } else {
          triggerEvent_ = value;
        }
        onChanged();
      } else {
        triggerEventBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .yamcs.protobuf.events.Event triggerEvent = 1;
     */
    public Builder clearTriggerEvent() {
      if (triggerEventBuilder_ == null) {
        triggerEvent_ = null;
        onChanged();
      } else {
        triggerEventBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }
    /**
     * optional .yamcs.protobuf.events.Event triggerEvent = 1;
     */
    public org.yamcs.protobuf.Event.Builder getTriggerEventBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getTriggerEventFieldBuilder().getBuilder();
    }
    /**
     * optional .yamcs.protobuf.events.Event triggerEvent = 1;
     */
    public org.yamcs.protobuf.EventOrBuilder getTriggerEventOrBuilder() {
      if (triggerEventBuilder_ != null) {
        return triggerEventBuilder_.getMessageOrBuilder();
      } else {
        return triggerEvent_ == null ?
            org.yamcs.protobuf.Event.getDefaultInstance() : triggerEvent_;
      }
    }
    /**
     * optional .yamcs.protobuf.events.Event triggerEvent = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.yamcs.protobuf.Event, org.yamcs.protobuf.Event.Builder, org.yamcs.protobuf.EventOrBuilder> 
        getTriggerEventFieldBuilder() {
      if (triggerEventBuilder_ == null) {
        triggerEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.yamcs.protobuf.Event, org.yamcs.protobuf.Event.Builder, org.yamcs.protobuf.EventOrBuilder>(
                getTriggerEvent(),
                getParentForChildren(),
                isClean());
        triggerEvent_ = null;
      }
      return triggerEventBuilder_;
    }

    private org.yamcs.protobuf.Event mostSevereEvent_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.yamcs.protobuf.Event, org.yamcs.protobuf.Event.Builder, org.yamcs.protobuf.EventOrBuilder> mostSevereEventBuilder_;
    /**
     * optional .yamcs.protobuf.events.Event mostSevereEvent = 2;
     * @return Whether the mostSevereEvent field is set.
     */
    public boolean hasMostSevereEvent() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional .yamcs.protobuf.events.Event mostSevereEvent = 2;
     * @return The mostSevereEvent.
     */
    public org.yamcs.protobuf.Event getMostSevereEvent() {
      if (mostSevereEventBuilder_ == null) {
        return mostSevereEvent_ == null ? org.yamcs.protobuf.Event.getDefaultInstance() : mostSevereEvent_;
      } else {
        return mostSevereEventBuilder_.getMessage();
      }
    }
    /**
     * optional .yamcs.protobuf.events.Event mostSevereEvent = 2;
     */
    public Builder setMostSevereEvent(org.yamcs.protobuf.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.events.Event mostSevereEvent = 2;
     */
    public Builder setMostSevereEvent(
        org.yamcs.protobuf.Event.Builder builderForValue) {
      if (mostSevereEventBuilder_ == null) {
        mostSevereEvent_ = builderForValue.build();
        onChanged();
      } else {
        mostSevereEventBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .yamcs.protobuf.events.Event mostSevereEvent = 2;
     */
    public Builder mergeMostSevereEvent(org.yamcs.protobuf.Event value) {
      if (mostSevereEventBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
            mostSevereEvent_ != null &&
            mostSevereEvent_ != org.yamcs.protobuf.Event.getDefaultInstance()) {
          mostSevereEvent_ =
            org.yamcs.protobuf.Event.newBuilder(mostSevereEvent_).mergeFrom(value).buildPartial();
        } else {
          mostSevereEvent_ = value;
        }
        onChanged();
      } else {
        mostSevereEventBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      return this;
    }
    /**
     * optional .yamcs.protobuf.events.Event mostSevereEvent = 2;
     */
    public Builder clearMostSevereEvent() {
      if (mostSevereEventBuilder_ == null) {
        mostSevereEvent_ = null;
        onChanged();
      } else {
        mostSevereEventBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000002);
      return this;
    }
    /**
     * optional .yamcs.protobuf.events.Event mostSevereEvent = 2;
     */
    public org.yamcs.protobuf.Event.Builder getMostSevereEventBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getMostSevereEventFieldBuilder().getBuilder();
    }
    /**
     * optional .yamcs.protobuf.events.Event mostSevereEvent = 2;
     */
    public org.yamcs.protobuf.EventOrBuilder getMostSevereEventOrBuilder() {
      if (mostSevereEventBuilder_ != null) {
        return mostSevereEventBuilder_.getMessageOrBuilder();
      } else {
        return mostSevereEvent_ == null ?
            org.yamcs.protobuf.Event.getDefaultInstance() : mostSevereEvent_;
      }
    }
    /**
     * optional .yamcs.protobuf.events.Event mostSevereEvent = 2;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.yamcs.protobuf.Event, org.yamcs.protobuf.Event.Builder, org.yamcs.protobuf.EventOrBuilder> 
        getMostSevereEventFieldBuilder() {
      if (mostSevereEventBuilder_ == null) {
        mostSevereEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.yamcs.protobuf.Event, org.yamcs.protobuf.Event.Builder, org.yamcs.protobuf.EventOrBuilder>(
                getMostSevereEvent(),
                getParentForChildren(),
                isClean());
        mostSevereEvent_ = null;
      }
      return mostSevereEventBuilder_;
    }

    private org.yamcs.protobuf.Event currentEvent_;
    private com.google.protobuf.SingleFieldBuilderV3<
        org.yamcs.protobuf.Event, org.yamcs.protobuf.Event.Builder, org.yamcs.protobuf.EventOrBuilder> currentEventBuilder_;
    /**
     * optional .yamcs.protobuf.events.Event currentEvent = 3;
     * @return Whether the currentEvent field is set.
     */
    public boolean hasCurrentEvent() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional .yamcs.protobuf.events.Event currentEvent = 3;
     * @return The currentEvent.
     */
    public org.yamcs.protobuf.Event getCurrentEvent() {
      if (currentEventBuilder_ == null) {
        return currentEvent_ == null ? org.yamcs.protobuf.Event.getDefaultInstance() : currentEvent_;
      } else {
        return currentEventBuilder_.getMessage();
      }
    }
    /**
     * optional .yamcs.protobuf.events.Event currentEvent = 3;
     */
    public Builder setCurrentEvent(org.yamcs.protobuf.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.events.Event currentEvent = 3;
     */
    public Builder setCurrentEvent(
        org.yamcs.protobuf.Event.Builder builderForValue) {
      if (currentEventBuilder_ == null) {
        currentEvent_ = builderForValue.build();
        onChanged();
      } else {
        currentEventBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      return this;
    }
    /**
     * optional .yamcs.protobuf.events.Event currentEvent = 3;
     */
    public Builder mergeCurrentEvent(org.yamcs.protobuf.Event value) {
      if (currentEventBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0) &&
            currentEvent_ != null &&
            currentEvent_ != org.yamcs.protobuf.Event.getDefaultInstance()) {
          currentEvent_ =
            org.yamcs.protobuf.Event.newBuilder(currentEvent_).mergeFrom(value).buildPartial();
        } else {
          currentEvent_ = value;
        }
        onChanged();
      } else {
        currentEventBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      return this;
    }
    /**
     * optional .yamcs.protobuf.events.Event currentEvent = 3;
     */
    public Builder clearCurrentEvent() {
      if (currentEventBuilder_ == null) {
        currentEvent_ = null;
        onChanged();
      } else {
        currentEventBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000004);
      return this;
    }
    /**
     * optional .yamcs.protobuf.events.Event currentEvent = 3;
     */
    public org.yamcs.protobuf.Event.Builder getCurrentEventBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getCurrentEventFieldBuilder().getBuilder();
    }
    /**
     * optional .yamcs.protobuf.events.Event currentEvent = 3;
     */
    public org.yamcs.protobuf.EventOrBuilder getCurrentEventOrBuilder() {
      if (currentEventBuilder_ != null) {
        return currentEventBuilder_.getMessageOrBuilder();
      } else {
        return currentEvent_ == null ?
            org.yamcs.protobuf.Event.getDefaultInstance() : currentEvent_;
      }
    }
    /**
     * optional .yamcs.protobuf.events.Event currentEvent = 3;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        org.yamcs.protobuf.Event, org.yamcs.protobuf.Event.Builder, org.yamcs.protobuf.EventOrBuilder> 
        getCurrentEventFieldBuilder() {
      if (currentEventBuilder_ == null) {
        currentEventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            org.yamcs.protobuf.Event, org.yamcs.protobuf.Event.Builder, org.yamcs.protobuf.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.EventAlarmData DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.yamcs.protobuf.EventAlarmData();
  }

  public static org.yamcs.protobuf.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.EventAlarmData getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy