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

org.yamcs.protobuf.IndexEntry 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/archive/index_service.proto

package org.yamcs.protobuf;

/**
 * Protobuf type {@code yamcs.protobuf.archive.IndexEntry}
 */
public final class IndexEntry extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.archive.IndexEntry)
    IndexEntryOrBuilder {
private static final long serialVersionUID = 0L;
  // Use IndexEntry.newBuilder() to construct.
  private IndexEntry(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private IndexEntry() {
    start_ = "";
    stop_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new IndexEntry();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private IndexEntry(
      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;
            start_ = bs;
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            stop_ = bs;
            break;
          }
          case 24: {
            bitField0_ |= 0x00000004;
            count_ = input.readInt32();
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            seqStart_ = input.readInt64();
            break;
          }
          case 40: {
            bitField0_ |= 0x00000010;
            seqStop_ = input.readInt64();
            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.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexEntry_descriptor;
  }

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

  private int bitField0_;
  public static final int START_FIELD_NUMBER = 1;
  private volatile java.lang.Object start_;
  /**
   * optional string start = 1;
   * @return Whether the start field is set.
   */
  @java.lang.Override
  public boolean hasStart() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional string start = 1;
   * @return The start.
   */
  @java.lang.Override
  public java.lang.String getStart() {
    java.lang.Object ref = start_;
    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()) {
        start_ = s;
      }
      return s;
    }
  }
  /**
   * optional string start = 1;
   * @return The bytes for start.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStartBytes() {
    java.lang.Object ref = start_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      start_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int STOP_FIELD_NUMBER = 2;
  private volatile java.lang.Object stop_;
  /**
   * optional string stop = 2;
   * @return Whether the stop field is set.
   */
  @java.lang.Override
  public boolean hasStop() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional string stop = 2;
   * @return The stop.
   */
  @java.lang.Override
  public java.lang.String getStop() {
    java.lang.Object ref = stop_;
    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()) {
        stop_ = s;
      }
      return s;
    }
  }
  /**
   * optional string stop = 2;
   * @return The bytes for stop.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStopBytes() {
    java.lang.Object ref = stop_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      stop_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int COUNT_FIELD_NUMBER = 3;
  private int count_;
  /**
   * optional int32 count = 3;
   * @return Whether the count field is set.
   */
  @java.lang.Override
  public boolean hasCount() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional int32 count = 3;
   * @return The count.
   */
  @java.lang.Override
  public int getCount() {
    return count_;
  }

  public static final int SEQSTART_FIELD_NUMBER = 4;
  private long seqStart_;
  /**
   * optional int64 seqStart = 4;
   * @return Whether the seqStart field is set.
   */
  @java.lang.Override
  public boolean hasSeqStart() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional int64 seqStart = 4;
   * @return The seqStart.
   */
  @java.lang.Override
  public long getSeqStart() {
    return seqStart_;
  }

  public static final int SEQSTOP_FIELD_NUMBER = 5;
  private long seqStop_;
  /**
   * optional int64 seqStop = 5;
   * @return Whether the seqStop field is set.
   */
  @java.lang.Override
  public boolean hasSeqStop() {
    return ((bitField0_ & 0x00000010) != 0);
  }
  /**
   * optional int64 seqStop = 5;
   * @return The seqStop.
   */
  @java.lang.Override
  public long getSeqStop() {
    return seqStop_;
  }

  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, start_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, stop_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeInt32(3, count_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeInt64(4, seqStart_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeInt64(5, seqStop_);
    }
    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, start_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, stop_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt32Size(3, count_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(4, seqStart_);
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeInt64Size(5, seqStop_);
    }
    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.IndexEntry)) {
      return super.equals(obj);
    }
    org.yamcs.protobuf.IndexEntry other = (org.yamcs.protobuf.IndexEntry) obj;

    if (hasStart() != other.hasStart()) return false;
    if (hasStart()) {
      if (!getStart()
          .equals(other.getStart())) return false;
    }
    if (hasStop() != other.hasStop()) return false;
    if (hasStop()) {
      if (!getStop()
          .equals(other.getStop())) return false;
    }
    if (hasCount() != other.hasCount()) return false;
    if (hasCount()) {
      if (getCount()
          != other.getCount()) return false;
    }
    if (hasSeqStart() != other.hasSeqStart()) return false;
    if (hasSeqStart()) {
      if (getSeqStart()
          != other.getSeqStart()) return false;
    }
    if (hasSeqStop() != other.hasSeqStop()) return false;
    if (hasSeqStop()) {
      if (getSeqStop()
          != other.getSeqStop()) 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 (hasStart()) {
      hash = (37 * hash) + START_FIELD_NUMBER;
      hash = (53 * hash) + getStart().hashCode();
    }
    if (hasStop()) {
      hash = (37 * hash) + STOP_FIELD_NUMBER;
      hash = (53 * hash) + getStop().hashCode();
    }
    if (hasCount()) {
      hash = (37 * hash) + COUNT_FIELD_NUMBER;
      hash = (53 * hash) + getCount();
    }
    if (hasSeqStart()) {
      hash = (37 * hash) + SEQSTART_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getSeqStart());
    }
    if (hasSeqStop()) {
      hash = (37 * hash) + SEQSTOP_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getSeqStop());
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static org.yamcs.protobuf.IndexEntry parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.yamcs.protobuf.IndexEntry 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.IndexEntry parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.yamcs.protobuf.IndexEntry 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.IndexEntry parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static org.yamcs.protobuf.IndexEntry parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static org.yamcs.protobuf.IndexEntry parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.yamcs.protobuf.IndexEntry 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.IndexEntry parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }
  public static org.yamcs.protobuf.IndexEntry 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.IndexEntry parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static org.yamcs.protobuf.IndexEntry 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.IndexEntry 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.archive.IndexEntry}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder implements
      // @@protoc_insertion_point(builder_implements:yamcs.protobuf.archive.IndexEntry)
      org.yamcs.protobuf.IndexEntryOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return org.yamcs.protobuf.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexEntry_descriptor;
    }

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

    // Construct using org.yamcs.protobuf.IndexEntry.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();
      start_ = "";
      bitField0_ = (bitField0_ & ~0x00000001);
      stop_ = "";
      bitField0_ = (bitField0_ & ~0x00000002);
      count_ = 0;
      bitField0_ = (bitField0_ & ~0x00000004);
      seqStart_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000008);
      seqStop_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000010);
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return org.yamcs.protobuf.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexEntry_descriptor;
    }

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

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

    @java.lang.Override
    public org.yamcs.protobuf.IndexEntry buildPartial() {
      org.yamcs.protobuf.IndexEntry result = new org.yamcs.protobuf.IndexEntry(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        to_bitField0_ |= 0x00000001;
      }
      result.start_ = start_;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        to_bitField0_ |= 0x00000002;
      }
      result.stop_ = stop_;
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.count_ = count_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.seqStart_ = seqStart_;
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.seqStop_ = seqStop_;
        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.IndexEntry) {
        return mergeFrom((org.yamcs.protobuf.IndexEntry)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.yamcs.protobuf.IndexEntry other) {
      if (other == org.yamcs.protobuf.IndexEntry.getDefaultInstance()) return this;
      if (other.hasStart()) {
        bitField0_ |= 0x00000001;
        start_ = other.start_;
        onChanged();
      }
      if (other.hasStop()) {
        bitField0_ |= 0x00000002;
        stop_ = other.stop_;
        onChanged();
      }
      if (other.hasCount()) {
        setCount(other.getCount());
      }
      if (other.hasSeqStart()) {
        setSeqStart(other.getSeqStart());
      }
      if (other.hasSeqStop()) {
        setSeqStop(other.getSeqStop());
      }
      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.IndexEntry parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.yamcs.protobuf.IndexEntry) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private java.lang.Object start_ = "";
    /**
     * optional string start = 1;
     * @return Whether the start field is set.
     */
    public boolean hasStart() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional string start = 1;
     * @return The start.
     */
    public java.lang.String getStart() {
      java.lang.Object ref = start_;
      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()) {
          start_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string start = 1;
     * @return The bytes for start.
     */
    public com.google.protobuf.ByteString
        getStartBytes() {
      java.lang.Object ref = start_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        start_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string start = 1;
     * @param value The start to set.
     * @return This builder for chaining.
     */
    public Builder setStart(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
      start_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string start = 1;
     * @return This builder for chaining.
     */
    public Builder clearStart() {
      bitField0_ = (bitField0_ & ~0x00000001);
      start_ = getDefaultInstance().getStart();
      onChanged();
      return this;
    }
    /**
     * optional string start = 1;
     * @param value The bytes for start to set.
     * @return This builder for chaining.
     */
    public Builder setStartBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000001;
      start_ = value;
      onChanged();
      return this;
    }

    private java.lang.Object stop_ = "";
    /**
     * optional string stop = 2;
     * @return Whether the stop field is set.
     */
    public boolean hasStop() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional string stop = 2;
     * @return The stop.
     */
    public java.lang.String getStop() {
      java.lang.Object ref = stop_;
      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()) {
          stop_ = s;
        }
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * optional string stop = 2;
     * @return The bytes for stop.
     */
    public com.google.protobuf.ByteString
        getStopBytes() {
      java.lang.Object ref = stop_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        stop_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * optional string stop = 2;
     * @param value The stop to set.
     * @return This builder for chaining.
     */
    public Builder setStop(
        java.lang.String value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      stop_ = value;
      onChanged();
      return this;
    }
    /**
     * optional string stop = 2;
     * @return This builder for chaining.
     */
    public Builder clearStop() {
      bitField0_ = (bitField0_ & ~0x00000002);
      stop_ = getDefaultInstance().getStop();
      onChanged();
      return this;
    }
    /**
     * optional string stop = 2;
     * @param value The bytes for stop to set.
     * @return This builder for chaining.
     */
    public Builder setStopBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) {
    throw new NullPointerException();
  }
  bitField0_ |= 0x00000002;
      stop_ = value;
      onChanged();
      return this;
    }

    private int count_ ;
    /**
     * optional int32 count = 3;
     * @return Whether the count field is set.
     */
    @java.lang.Override
    public boolean hasCount() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional int32 count = 3;
     * @return The count.
     */
    @java.lang.Override
    public int getCount() {
      return count_;
    }
    /**
     * optional int32 count = 3;
     * @param value The count to set.
     * @return This builder for chaining.
     */
    public Builder setCount(int value) {
      bitField0_ |= 0x00000004;
      count_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int32 count = 3;
     * @return This builder for chaining.
     */
    public Builder clearCount() {
      bitField0_ = (bitField0_ & ~0x00000004);
      count_ = 0;
      onChanged();
      return this;
    }

    private long seqStart_ ;
    /**
     * optional int64 seqStart = 4;
     * @return Whether the seqStart field is set.
     */
    @java.lang.Override
    public boolean hasSeqStart() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional int64 seqStart = 4;
     * @return The seqStart.
     */
    @java.lang.Override
    public long getSeqStart() {
      return seqStart_;
    }
    /**
     * optional int64 seqStart = 4;
     * @param value The seqStart to set.
     * @return This builder for chaining.
     */
    public Builder setSeqStart(long value) {
      bitField0_ |= 0x00000008;
      seqStart_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 seqStart = 4;
     * @return This builder for chaining.
     */
    public Builder clearSeqStart() {
      bitField0_ = (bitField0_ & ~0x00000008);
      seqStart_ = 0L;
      onChanged();
      return this;
    }

    private long seqStop_ ;
    /**
     * optional int64 seqStop = 5;
     * @return Whether the seqStop field is set.
     */
    @java.lang.Override
    public boolean hasSeqStop() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * optional int64 seqStop = 5;
     * @return The seqStop.
     */
    @java.lang.Override
    public long getSeqStop() {
      return seqStop_;
    }
    /**
     * optional int64 seqStop = 5;
     * @param value The seqStop to set.
     * @return This builder for chaining.
     */
    public Builder setSeqStop(long value) {
      bitField0_ |= 0x00000010;
      seqStop_ = value;
      onChanged();
      return this;
    }
    /**
     * optional int64 seqStop = 5;
     * @return This builder for chaining.
     */
    public Builder clearSeqStop() {
      bitField0_ = (bitField0_ & ~0x00000010);
      seqStop_ = 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.archive.IndexEntry)
  }

  // @@protoc_insertion_point(class_scope:yamcs.protobuf.archive.IndexEntry)
  private static final org.yamcs.protobuf.IndexEntry DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new org.yamcs.protobuf.IndexEntry();
  }

  public static org.yamcs.protobuf.IndexEntry getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  @java.lang.Deprecated public static final com.google.protobuf.Parser
      PARSER = new com.google.protobuf.AbstractParser() {
    @java.lang.Override
    public IndexEntry parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return new IndexEntry(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.IndexEntry getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy