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

com.solab.alarms.protobuf.AlarmProtos Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: alarm_protos.proto

package com.solab.alarms.protobuf;

public final class AlarmProtos {
  private AlarmProtos() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
  }
  public interface AlarmOrBuilder
      extends com.google.protobuf.MessageOrBuilder {

    // required string alarm = 1;
    /**
     * required string alarm = 1;
     */
    boolean hasAlarm();
    /**
     * required string alarm = 1;
     */
    java.lang.String getAlarm();
    /**
     * required string alarm = 1;
     */
    com.google.protobuf.ByteString
        getAlarmBytes();

    // optional string source = 2;
    /**
     * optional string source = 2;
     */
    boolean hasSource();
    /**
     * optional string source = 2;
     */
    java.lang.String getSource();
    /**
     * optional string source = 2;
     */
    com.google.protobuf.ByteString
        getSourceBytes();

    // optional bool always = 3;
    /**
     * optional bool always = 3;
     */
    boolean hasAlways();
    /**
     * optional bool always = 3;
     */
    boolean getAlways();
  }
  /**
   * Protobuf type {@code jalarms.Alarm}
   */
  public static final class Alarm extends
      com.google.protobuf.GeneratedMessage
      implements AlarmOrBuilder {
    // Use Alarm.newBuilder() to construct.
    private Alarm(com.google.protobuf.GeneratedMessage.Builder builder) {
      super(builder);
      this.unknownFields = builder.getUnknownFields();
    }
    private Alarm(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }

    private static final Alarm defaultInstance;
    public static Alarm getDefaultInstance() {
      return defaultInstance;
    }

    public Alarm getDefaultInstanceForType() {
      return defaultInstance;
    }

    private final com.google.protobuf.UnknownFieldSet unknownFields;
    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
        getUnknownFields() {
      return this.unknownFields;
    }
    private Alarm(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      initFields();
      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;
            default: {
              if (!parseUnknownField(input, unknownFields,
                                     extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
            case 10: {
              bitField0_ |= 0x00000001;
              alarm_ = input.readBytes();
              break;
            }
            case 18: {
              bitField0_ |= 0x00000002;
              source_ = input.readBytes();
              break;
            }
            case 24: {
              bitField0_ |= 0x00000004;
              always_ = input.readBool();
              break;
            }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(
            e.getMessage()).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return com.solab.alarms.protobuf.AlarmProtos.internal_static_jalarms_Alarm_descriptor;
    }

    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.solab.alarms.protobuf.AlarmProtos.internal_static_jalarms_Alarm_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.solab.alarms.protobuf.AlarmProtos.Alarm.class, com.solab.alarms.protobuf.AlarmProtos.Alarm.Builder.class);
    }

    public static com.google.protobuf.Parser PARSER =
        new com.google.protobuf.AbstractParser() {
      public Alarm parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new Alarm(input, extensionRegistry);
      }
    };

    @java.lang.Override
    public com.google.protobuf.Parser getParserForType() {
      return PARSER;
    }

    private int bitField0_;
    // required string alarm = 1;
    public static final int ALARM_FIELD_NUMBER = 1;
    private java.lang.Object alarm_;
    /**
     * required string alarm = 1;
     */
    public boolean hasAlarm() {
      return ((bitField0_ & 0x00000001) == 0x00000001);
    }
    /**
     * required string alarm = 1;
     */
    public java.lang.String getAlarm() {
      java.lang.Object ref = alarm_;
      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()) {
          alarm_ = s;
        }
        return s;
      }
    }
    /**
     * required string alarm = 1;
     */
    public com.google.protobuf.ByteString
        getAlarmBytes() {
      java.lang.Object ref = alarm_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        alarm_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional string source = 2;
    public static final int SOURCE_FIELD_NUMBER = 2;
    private java.lang.Object source_;
    /**
     * optional string source = 2;
     */
    public boolean hasSource() {
      return ((bitField0_ & 0x00000002) == 0x00000002);
    }
    /**
     * optional string source = 2;
     */
    public java.lang.String getSource() {
      java.lang.Object ref = source_;
      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()) {
          source_ = s;
        }
        return s;
      }
    }
    /**
     * optional string source = 2;
     */
    public com.google.protobuf.ByteString
        getSourceBytes() {
      java.lang.Object ref = source_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        source_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    // optional bool always = 3;
    public static final int ALWAYS_FIELD_NUMBER = 3;
    private boolean always_;
    /**
     * optional bool always = 3;
     */
    public boolean hasAlways() {
      return ((bitField0_ & 0x00000004) == 0x00000004);
    }
    /**
     * optional bool always = 3;
     */
    public boolean getAlways() {
      return always_;
    }

    private void initFields() {
      alarm_ = "";
      source_ = "";
      always_ = false;
    }
    private byte memoizedIsInitialized = -1;
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized != -1) return isInitialized == 1;

      if (!hasAlarm()) {
        memoizedIsInitialized = 0;
        return false;
      }
      memoizedIsInitialized = 1;
      return true;
    }

    public void writeTo(com.google.protobuf.CodedOutputStream output)
                        throws java.io.IOException {
      getSerializedSize();
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        output.writeBytes(1, getAlarmBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        output.writeBytes(2, getSourceBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        output.writeBool(3, always_);
      }
      getUnknownFields().writeTo(output);
    }

    private int memoizedSerializedSize = -1;
    public int getSerializedSize() {
      int size = memoizedSerializedSize;
      if (size != -1) return size;

      size = 0;
      if (((bitField0_ & 0x00000001) == 0x00000001)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(1, getAlarmBytes());
      }
      if (((bitField0_ & 0x00000002) == 0x00000002)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBytesSize(2, getSourceBytes());
      }
      if (((bitField0_ & 0x00000004) == 0x00000004)) {
        size += com.google.protobuf.CodedOutputStream
          .computeBoolSize(3, always_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSerializedSize = size;
      return size;
    }

    private static final long serialVersionUID = 0L;
    @java.lang.Override
    protected java.lang.Object writeReplace()
        throws java.io.ObjectStreamException {
      return super.writeReplace();
    }

    public static com.solab.alarms.protobuf.AlarmProtos.Alarm parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.solab.alarms.protobuf.AlarmProtos.Alarm parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.solab.alarms.protobuf.AlarmProtos.Alarm parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static com.solab.alarms.protobuf.AlarmProtos.Alarm parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static com.solab.alarms.protobuf.AlarmProtos.Alarm parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.solab.alarms.protobuf.AlarmProtos.Alarm parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }
    public static com.solab.alarms.protobuf.AlarmProtos.Alarm parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input);
    }
    public static com.solab.alarms.protobuf.AlarmProtos.Alarm parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseDelimitedFrom(input, extensionRegistry);
    }
    public static com.solab.alarms.protobuf.AlarmProtos.Alarm parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return PARSER.parseFrom(input);
    }
    public static com.solab.alarms.protobuf.AlarmProtos.Alarm parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return PARSER.parseFrom(input, extensionRegistry);
    }

    public static Builder newBuilder() { return Builder.create(); }
    public Builder newBuilderForType() { return newBuilder(); }
    public static Builder newBuilder(com.solab.alarms.protobuf.AlarmProtos.Alarm prototype) {
      return newBuilder().mergeFrom(prototype);
    }
    public Builder toBuilder() { return newBuilder(this); }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     * Protobuf type {@code jalarms.Alarm}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessage.Builder
       implements com.solab.alarms.protobuf.AlarmProtos.AlarmOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return com.solab.alarms.protobuf.AlarmProtos.internal_static_jalarms_Alarm_descriptor;
      }

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.solab.alarms.protobuf.AlarmProtos.internal_static_jalarms_Alarm_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.solab.alarms.protobuf.AlarmProtos.Alarm.class, com.solab.alarms.protobuf.AlarmProtos.Alarm.Builder.class);
      }

      // Construct using com.solab.alarms.protobuf.AlarmProtos.Alarm.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(
          com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }
      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        }
      }
      private static Builder create() {
        return new Builder();
      }

      public Builder clear() {
        super.clear();
        alarm_ = "";
        bitField0_ = (bitField0_ & ~0x00000001);
        source_ = "";
        bitField0_ = (bitField0_ & ~0x00000002);
        always_ = false;
        bitField0_ = (bitField0_ & ~0x00000004);
        return this;
      }

      public Builder clone() {
        return create().mergeFrom(buildPartial());
      }

      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return com.solab.alarms.protobuf.AlarmProtos.internal_static_jalarms_Alarm_descriptor;
      }

      public com.solab.alarms.protobuf.AlarmProtos.Alarm getDefaultInstanceForType() {
        return com.solab.alarms.protobuf.AlarmProtos.Alarm.getDefaultInstance();
      }

      public com.solab.alarms.protobuf.AlarmProtos.Alarm build() {
        com.solab.alarms.protobuf.AlarmProtos.Alarm result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      public com.solab.alarms.protobuf.AlarmProtos.Alarm buildPartial() {
        com.solab.alarms.protobuf.AlarmProtos.Alarm result = new com.solab.alarms.protobuf.AlarmProtos.Alarm(this);
        int from_bitField0_ = bitField0_;
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
          to_bitField0_ |= 0x00000001;
        }
        result.alarm_ = alarm_;
        if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
          to_bitField0_ |= 0x00000002;
        }
        result.source_ = source_;
        if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
          to_bitField0_ |= 0x00000004;
        }
        result.always_ = always_;
        result.bitField0_ = to_bitField0_;
        onBuilt();
        return result;
      }

      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.solab.alarms.protobuf.AlarmProtos.Alarm) {
          return mergeFrom((com.solab.alarms.protobuf.AlarmProtos.Alarm)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(com.solab.alarms.protobuf.AlarmProtos.Alarm other) {
        if (other == com.solab.alarms.protobuf.AlarmProtos.Alarm.getDefaultInstance()) return this;
        if (other.hasAlarm()) {
          bitField0_ |= 0x00000001;
          alarm_ = other.alarm_;
          onChanged();
        }
        if (other.hasSource()) {
          bitField0_ |= 0x00000002;
          source_ = other.source_;
          onChanged();
        }
        if (other.hasAlways()) {
          setAlways(other.getAlways());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        return this;
      }

      public final boolean isInitialized() {
        if (!hasAlarm()) {
          
          return false;
        }
        return true;
      }

      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.solab.alarms.protobuf.AlarmProtos.Alarm parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (com.solab.alarms.protobuf.AlarmProtos.Alarm) e.getUnfinishedMessage();
          throw e;
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }
      private int bitField0_;

      // required string alarm = 1;
      private java.lang.Object alarm_ = "";
      /**
       * required string alarm = 1;
       */
      public boolean hasAlarm() {
        return ((bitField0_ & 0x00000001) == 0x00000001);
      }
      /**
       * required string alarm = 1;
       */
      public java.lang.String getAlarm() {
        java.lang.Object ref = alarm_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          alarm_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * required string alarm = 1;
       */
      public com.google.protobuf.ByteString
          getAlarmBytes() {
        java.lang.Object ref = alarm_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          alarm_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * required string alarm = 1;
       */
      public Builder setAlarm(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        alarm_ = value;
        onChanged();
        return this;
      }
      /**
       * required string alarm = 1;
       */
      public Builder clearAlarm() {
        bitField0_ = (bitField0_ & ~0x00000001);
        alarm_ = getDefaultInstance().getAlarm();
        onChanged();
        return this;
      }
      /**
       * required string alarm = 1;
       */
      public Builder setAlarmBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
        alarm_ = value;
        onChanged();
        return this;
      }

      // optional string source = 2;
      private java.lang.Object source_ = "";
      /**
       * optional string source = 2;
       */
      public boolean hasSource() {
        return ((bitField0_ & 0x00000002) == 0x00000002);
      }
      /**
       * optional string source = 2;
       */
      public java.lang.String getSource() {
        java.lang.Object ref = source_;
        if (!(ref instanceof java.lang.String)) {
          java.lang.String s = ((com.google.protobuf.ByteString) ref)
              .toStringUtf8();
          source_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * optional string source = 2;
       */
      public com.google.protobuf.ByteString
          getSourceBytes() {
        java.lang.Object ref = source_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          source_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * optional string source = 2;
       */
      public Builder setSource(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        source_ = value;
        onChanged();
        return this;
      }
      /**
       * optional string source = 2;
       */
      public Builder clearSource() {
        bitField0_ = (bitField0_ & ~0x00000002);
        source_ = getDefaultInstance().getSource();
        onChanged();
        return this;
      }
      /**
       * optional string source = 2;
       */
      public Builder setSourceBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
        source_ = value;
        onChanged();
        return this;
      }

      // optional bool always = 3;
      private boolean always_ ;
      /**
       * optional bool always = 3;
       */
      public boolean hasAlways() {
        return ((bitField0_ & 0x00000004) == 0x00000004);
      }
      /**
       * optional bool always = 3;
       */
      public boolean getAlways() {
        return always_;
      }
      /**
       * optional bool always = 3;
       */
      public Builder setAlways(boolean value) {
        bitField0_ |= 0x00000004;
        always_ = value;
        onChanged();
        return this;
      }
      /**
       * optional bool always = 3;
       */
      public Builder clearAlways() {
        bitField0_ = (bitField0_ & ~0x00000004);
        always_ = false;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:jalarms.Alarm)
    }

    static {
      defaultInstance = new Alarm(true);
      defaultInstance.initFields();
    }

    // @@protoc_insertion_point(class_scope:jalarms.Alarm)
  }

  private static com.google.protobuf.Descriptors.Descriptor
    internal_static_jalarms_Alarm_descriptor;
  private static
    com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internal_static_jalarms_Alarm_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\022alarm_protos.proto\022\007jalarms\"6\n\005Alarm\022\r" +
      "\n\005alarm\030\001 \002(\t\022\016\n\006source\030\002 \001(\t\022\016\n\006always\030" +
      "\003 \001(\010B\033\n\031com.solab.alarms.protobuf"
    };
    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;
          internal_static_jalarms_Alarm_descriptor =
            getDescriptor().getMessageTypes().get(0);
          internal_static_jalarms_Alarm_fieldAccessorTable = new
            com.google.protobuf.GeneratedMessage.FieldAccessorTable(
              internal_static_jalarms_Alarm_descriptor,
              new java.lang.String[] { "Alarm", "Source", "Always", });
          return null;
        }
      };
    com.google.protobuf.Descriptors.FileDescriptor
      .internalBuildGeneratedFileFrom(descriptorData,
        new com.google.protobuf.Descriptors.FileDescriptor[] {
        }, assigner);
  }

  // @@protoc_insertion_point(outer_class_scope)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy