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

org.yamcs.protobuf.ArchiveParameterSegmentInfo 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/parameter_archive_service.proto

package org.yamcs.protobuf;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ArchiveParameterSegmentInfo(
      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 8: {
            bitField0_ |= 0x00000001;
            groupId_ = input.readUInt32();
            break;
          }
          case 18: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000002) != 0)) {
              subBuilder = start_.toBuilder();
            }
            start_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(start_);
              start_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000002;
            break;
          }
          case 26: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000004) != 0)) {
              subBuilder = end_.toBuilder();
            }
            end_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(end_);
              end_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000004;
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            count_ = input.readUInt32();
            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.ParameterArchiveServiceProto.internal_static_yamcs_protobuf_archive_ArchiveParameterSegmentInfo_descriptor;
  }

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

  private int bitField0_;
  public static final int GROUPID_FIELD_NUMBER = 1;
  private int groupId_;
  /**
   * 
   * Multiple parameters are grouped such that all in one group have
   * the same timestamps. For example: all parameters extracted from
   * one TM packet usually have the same timestamp.
   * This way we have a unique segment storing the timestamps for a
   * group of parameters. The groupId can be used to retrieve all parameters
   * from the same group.
   * 
* * optional uint32 groupId = 1; * @return Whether the groupId field is set. */ @java.lang.Override public boolean hasGroupId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Multiple parameters are grouped such that all in one group have
   * the same timestamps. For example: all parameters extracted from
   * one TM packet usually have the same timestamp.
   * This way we have a unique segment storing the timestamps for a
   * group of parameters. The groupId can be used to retrieve all parameters
   * from the same group.
   * 
* * optional uint32 groupId = 1; * @return The groupId. */ @java.lang.Override public int getGroupId() { return groupId_; } public static final int START_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp start_; /** *
   *the segment start
   * 
* * optional .google.protobuf.Timestamp start = 2; * @return Whether the start field is set. */ @java.lang.Override public boolean hasStart() { return ((bitField0_ & 0x00000002) != 0); } /** *
   *the segment start
   * 
* * optional .google.protobuf.Timestamp start = 2; * @return The start. */ @java.lang.Override public com.google.protobuf.Timestamp getStart() { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } /** *
   *the segment start
   * 
* * optional .google.protobuf.Timestamp start = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } public static final int END_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp end_; /** *
   *the segment end 
   * 
* * optional .google.protobuf.Timestamp end = 3; * @return Whether the end field is set. */ @java.lang.Override public boolean hasEnd() { return ((bitField0_ & 0x00000004) != 0); } /** *
   *the segment end 
   * 
* * optional .google.protobuf.Timestamp end = 3; * @return The end. */ @java.lang.Override public com.google.protobuf.Timestamp getEnd() { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } /** *
   *the segment end 
   * 
* * optional .google.protobuf.Timestamp end = 3; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } public static final int COUNT_FIELD_NUMBER = 4; private int count_; /** *
   *the number of samples in the segment
   * 
* * optional uint32 count = 4; * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000008) != 0); } /** *
   *the number of samples in the segment
   * 
* * optional uint32 count = 4; * @return The count. */ @java.lang.Override public int getCount() { return count_; } 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.writeUInt32(1, groupId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getStart()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getEnd()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, count_); } 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 .computeUInt32Size(1, groupId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getStart()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getEnd()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, count_); } 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.ArchiveParameterSegmentInfo)) { return super.equals(obj); } org.yamcs.protobuf.ArchiveParameterSegmentInfo other = (org.yamcs.protobuf.ArchiveParameterSegmentInfo) obj; if (hasGroupId() != other.hasGroupId()) return false; if (hasGroupId()) { if (getGroupId() != other.getGroupId()) return false; } if (hasStart() != other.hasStart()) return false; if (hasStart()) { if (!getStart() .equals(other.getStart())) return false; } if (hasEnd() != other.hasEnd()) return false; if (hasEnd()) { if (!getEnd() .equals(other.getEnd())) return false; } if (hasCount() != other.hasCount()) return false; if (hasCount()) { if (getCount() != other.getCount()) 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 (hasGroupId()) { hash = (37 * hash) + GROUPID_FIELD_NUMBER; hash = (53 * hash) + getGroupId(); } if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart().hashCode(); } if (hasEnd()) { hash = (37 * hash) + END_FIELD_NUMBER; hash = (53 * hash) + getEnd().hashCode(); } if (hasCount()) { hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.ArchiveParameterSegmentInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ArchiveParameterSegmentInfo 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.ArchiveParameterSegmentInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ArchiveParameterSegmentInfo 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.ArchiveParameterSegmentInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ArchiveParameterSegmentInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.ArchiveParameterSegmentInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ArchiveParameterSegmentInfo 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.ArchiveParameterSegmentInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.ArchiveParameterSegmentInfo 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.ArchiveParameterSegmentInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ArchiveParameterSegmentInfo 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.ArchiveParameterSegmentInfo 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.ArchiveParameterSegmentInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.archive.ArchiveParameterSegmentInfo) org.yamcs.protobuf.ArchiveParameterSegmentInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.ParameterArchiveServiceProto.internal_static_yamcs_protobuf_archive_ArchiveParameterSegmentInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.ParameterArchiveServiceProto.internal_static_yamcs_protobuf_archive_ArchiveParameterSegmentInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.ArchiveParameterSegmentInfo.class, org.yamcs.protobuf.ArchiveParameterSegmentInfo.Builder.class); } // Construct using org.yamcs.protobuf.ArchiveParameterSegmentInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStartFieldBuilder(); getEndFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); groupId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (startBuilder_ == null) { start_ = null; } else { startBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (endBuilder_ == null) { end_ = null; } else { endBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); count_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.ParameterArchiveServiceProto.internal_static_yamcs_protobuf_archive_ArchiveParameterSegmentInfo_descriptor; } @java.lang.Override public org.yamcs.protobuf.ArchiveParameterSegmentInfo getDefaultInstanceForType() { return org.yamcs.protobuf.ArchiveParameterSegmentInfo.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.ArchiveParameterSegmentInfo build() { org.yamcs.protobuf.ArchiveParameterSegmentInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.ArchiveParameterSegmentInfo buildPartial() { org.yamcs.protobuf.ArchiveParameterSegmentInfo result = new org.yamcs.protobuf.ArchiveParameterSegmentInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.groupId_ = groupId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (startBuilder_ == null) { result.start_ = start_; } else { result.start_ = startBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { if (endBuilder_ == null) { result.end_ = end_; } else { result.end_ = endBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.count_ = count_; to_bitField0_ |= 0x00000008; } 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.ArchiveParameterSegmentInfo) { return mergeFrom((org.yamcs.protobuf.ArchiveParameterSegmentInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.ArchiveParameterSegmentInfo other) { if (other == org.yamcs.protobuf.ArchiveParameterSegmentInfo.getDefaultInstance()) return this; if (other.hasGroupId()) { setGroupId(other.getGroupId()); } if (other.hasStart()) { mergeStart(other.getStart()); } if (other.hasEnd()) { mergeEnd(other.getEnd()); } if (other.hasCount()) { setCount(other.getCount()); } 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.ArchiveParameterSegmentInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.ArchiveParameterSegmentInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int groupId_ ; /** *
     * Multiple parameters are grouped such that all in one group have
     * the same timestamps. For example: all parameters extracted from
     * one TM packet usually have the same timestamp.
     * This way we have a unique segment storing the timestamps for a
     * group of parameters. The groupId can be used to retrieve all parameters
     * from the same group.
     * 
* * optional uint32 groupId = 1; * @return Whether the groupId field is set. */ @java.lang.Override public boolean hasGroupId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Multiple parameters are grouped such that all in one group have
     * the same timestamps. For example: all parameters extracted from
     * one TM packet usually have the same timestamp.
     * This way we have a unique segment storing the timestamps for a
     * group of parameters. The groupId can be used to retrieve all parameters
     * from the same group.
     * 
* * optional uint32 groupId = 1; * @return The groupId. */ @java.lang.Override public int getGroupId() { return groupId_; } /** *
     * Multiple parameters are grouped such that all in one group have
     * the same timestamps. For example: all parameters extracted from
     * one TM packet usually have the same timestamp.
     * This way we have a unique segment storing the timestamps for a
     * group of parameters. The groupId can be used to retrieve all parameters
     * from the same group.
     * 
* * optional uint32 groupId = 1; * @param value The groupId to set. * @return This builder for chaining. */ public Builder setGroupId(int value) { bitField0_ |= 0x00000001; groupId_ = value; onChanged(); return this; } /** *
     * Multiple parameters are grouped such that all in one group have
     * the same timestamps. For example: all parameters extracted from
     * one TM packet usually have the same timestamp.
     * This way we have a unique segment storing the timestamps for a
     * group of parameters. The groupId can be used to retrieve all parameters
     * from the same group.
     * 
* * optional uint32 groupId = 1; * @return This builder for chaining. */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000001); groupId_ = 0; onChanged(); return this; } private com.google.protobuf.Timestamp start_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startBuilder_; /** *
     *the segment start
     * 
* * optional .google.protobuf.Timestamp start = 2; * @return Whether the start field is set. */ public boolean hasStart() { return ((bitField0_ & 0x00000002) != 0); } /** *
     *the segment start
     * 
* * optional .google.protobuf.Timestamp start = 2; * @return The start. */ public com.google.protobuf.Timestamp getStart() { if (startBuilder_ == null) { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } else { return startBuilder_.getMessage(); } } /** *
     *the segment start
     * 
* * optional .google.protobuf.Timestamp start = 2; */ public Builder setStart(com.google.protobuf.Timestamp value) { if (startBuilder_ == null) { if (value == null) { throw new NullPointerException(); } start_ = value; onChanged(); } else { startBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
     *the segment start
     * 
* * optional .google.protobuf.Timestamp start = 2; */ public Builder setStart( com.google.protobuf.Timestamp.Builder builderForValue) { if (startBuilder_ == null) { start_ = builderForValue.build(); onChanged(); } else { startBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
     *the segment start
     * 
* * optional .google.protobuf.Timestamp start = 2; */ public Builder mergeStart(com.google.protobuf.Timestamp value) { if (startBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && start_ != null && start_ != com.google.protobuf.Timestamp.getDefaultInstance()) { start_ = com.google.protobuf.Timestamp.newBuilder(start_).mergeFrom(value).buildPartial(); } else { start_ = value; } onChanged(); } else { startBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
     *the segment start
     * 
* * optional .google.protobuf.Timestamp start = 2; */ public Builder clearStart() { if (startBuilder_ == null) { start_ = null; onChanged(); } else { startBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
     *the segment start
     * 
* * optional .google.protobuf.Timestamp start = 2; */ public com.google.protobuf.Timestamp.Builder getStartBuilder() { bitField0_ |= 0x00000002; onChanged(); return getStartFieldBuilder().getBuilder(); } /** *
     *the segment start
     * 
* * optional .google.protobuf.Timestamp start = 2; */ public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() { if (startBuilder_ != null) { return startBuilder_.getMessageOrBuilder(); } else { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } } /** *
     *the segment start
     * 
* * optional .google.protobuf.Timestamp start = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartFieldBuilder() { if (startBuilder_ == null) { startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStart(), getParentForChildren(), isClean()); start_ = null; } return startBuilder_; } private com.google.protobuf.Timestamp end_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endBuilder_; /** *
     *the segment end 
     * 
* * optional .google.protobuf.Timestamp end = 3; * @return Whether the end field is set. */ public boolean hasEnd() { return ((bitField0_ & 0x00000004) != 0); } /** *
     *the segment end 
     * 
* * optional .google.protobuf.Timestamp end = 3; * @return The end. */ public com.google.protobuf.Timestamp getEnd() { if (endBuilder_ == null) { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } else { return endBuilder_.getMessage(); } } /** *
     *the segment end 
     * 
* * optional .google.protobuf.Timestamp end = 3; */ public Builder setEnd(com.google.protobuf.Timestamp value) { if (endBuilder_ == null) { if (value == null) { throw new NullPointerException(); } end_ = value; onChanged(); } else { endBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
     *the segment end 
     * 
* * optional .google.protobuf.Timestamp end = 3; */ public Builder setEnd( com.google.protobuf.Timestamp.Builder builderForValue) { if (endBuilder_ == null) { end_ = builderForValue.build(); onChanged(); } else { endBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
     *the segment end 
     * 
* * optional .google.protobuf.Timestamp end = 3; */ public Builder mergeEnd(com.google.protobuf.Timestamp value) { if (endBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && end_ != null && end_ != com.google.protobuf.Timestamp.getDefaultInstance()) { end_ = com.google.protobuf.Timestamp.newBuilder(end_).mergeFrom(value).buildPartial(); } else { end_ = value; } onChanged(); } else { endBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
     *the segment end 
     * 
* * optional .google.protobuf.Timestamp end = 3; */ public Builder clearEnd() { if (endBuilder_ == null) { end_ = null; onChanged(); } else { endBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
     *the segment end 
     * 
* * optional .google.protobuf.Timestamp end = 3; */ public com.google.protobuf.Timestamp.Builder getEndBuilder() { bitField0_ |= 0x00000004; onChanged(); return getEndFieldBuilder().getBuilder(); } /** *
     *the segment end 
     * 
* * optional .google.protobuf.Timestamp end = 3; */ public com.google.protobuf.TimestampOrBuilder getEndOrBuilder() { if (endBuilder_ != null) { return endBuilder_.getMessageOrBuilder(); } else { return end_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : end_; } } /** *
     *the segment end 
     * 
* * optional .google.protobuf.Timestamp end = 3; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getEndFieldBuilder() { if (endBuilder_ == null) { endBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getEnd(), getParentForChildren(), isClean()); end_ = null; } return endBuilder_; } private int count_ ; /** *
     *the number of samples in the segment
     * 
* * optional uint32 count = 4; * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000008) != 0); } /** *
     *the number of samples in the segment
     * 
* * optional uint32 count = 4; * @return The count. */ @java.lang.Override public int getCount() { return count_; } /** *
     *the number of samples in the segment
     * 
* * optional uint32 count = 4; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(int value) { bitField0_ |= 0x00000008; count_ = value; onChanged(); return this; } /** *
     *the number of samples in the segment
     * 
* * optional uint32 count = 4; * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000008); count_ = 0; 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.ArchiveParameterSegmentInfo) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.archive.ArchiveParameterSegmentInfo) private static final org.yamcs.protobuf.ArchiveParameterSegmentInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.ArchiveParameterSegmentInfo(); } public static org.yamcs.protobuf.ArchiveParameterSegmentInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ArchiveParameterSegmentInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ArchiveParameterSegmentInfo(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.ArchiveParameterSegmentInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy