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

org.yamcs.protobuf.TcoCoefficients 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/tco/tco.proto

package org.yamcs.protobuf;

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private TcoCoefficients(
      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.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000001) != 0)) {
              subBuilder = utc_.toBuilder();
            }
            utc_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(utc_);
              utc_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000001;
            break;
          }
          case 16: {
            bitField0_ |= 0x00000002;
            obt_ = input.readUInt64();
            break;
          }
          case 25: {
            bitField0_ |= 0x00000004;
            gradient_ = input.readDouble();
            break;
          }
          case 33: {
            bitField0_ |= 0x00000008;
            offset_ = input.readDouble();
            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.TcoProto.internal_static_yamcs_protobuf_tco_TcoCoefficients_descriptor;
  }

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

  private int bitField0_;
  public static final int UTC_FIELD_NUMBER = 1;
  private com.google.protobuf.Timestamp utc_;
  /**
   * optional .google.protobuf.Timestamp utc = 1;
   * @return Whether the utc field is set.
   */
  @java.lang.Override
  public boolean hasUtc() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional .google.protobuf.Timestamp utc = 1;
   * @return The utc.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getUtc() {
    return utc_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : utc_;
  }
  /**
   * optional .google.protobuf.Timestamp utc = 1;
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getUtcOrBuilder() {
    return utc_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : utc_;
  }

  public static final int OBT_FIELD_NUMBER = 2;
  private long obt_;
  /**
   * optional uint64 obt = 2;
   * @return Whether the obt field is set.
   */
  @java.lang.Override
  public boolean hasObt() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional uint64 obt = 2;
   * @return The obt.
   */
  @java.lang.Override
  public long getObt() {
    return obt_;
  }

  public static final int GRADIENT_FIELD_NUMBER = 3;
  private double gradient_;
  /**
   * optional double gradient = 3;
   * @return Whether the gradient field is set.
   */
  @java.lang.Override
  public boolean hasGradient() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional double gradient = 3;
   * @return The gradient.
   */
  @java.lang.Override
  public double getGradient() {
    return gradient_;
  }

  public static final int OFFSET_FIELD_NUMBER = 4;
  private double offset_;
  /**
   * optional double offset = 4;
   * @return Whether the offset field is set.
   */
  @java.lang.Override
  public boolean hasOffset() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional double offset = 4;
   * @return The offset.
   */
  @java.lang.Override
  public double getOffset() {
    return offset_;
  }

  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, getUtc());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeUInt64(2, obt_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeDouble(3, gradient_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeDouble(4, offset_);
    }
    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, getUtc());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(2, obt_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(3, gradient_);
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeDoubleSize(4, offset_);
    }
    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.TcoCoefficients)) {
      return super.equals(obj);
    }
    org.yamcs.protobuf.TcoCoefficients other = (org.yamcs.protobuf.TcoCoefficients) obj;

    if (hasUtc() != other.hasUtc()) return false;
    if (hasUtc()) {
      if (!getUtc()
          .equals(other.getUtc())) return false;
    }
    if (hasObt() != other.hasObt()) return false;
    if (hasObt()) {
      if (getObt()
          != other.getObt()) return false;
    }
    if (hasGradient() != other.hasGradient()) return false;
    if (hasGradient()) {
      if (java.lang.Double.doubleToLongBits(getGradient())
          != java.lang.Double.doubleToLongBits(
              other.getGradient())) return false;
    }
    if (hasOffset() != other.hasOffset()) return false;
    if (hasOffset()) {
      if (java.lang.Double.doubleToLongBits(getOffset())
          != java.lang.Double.doubleToLongBits(
              other.getOffset())) 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 (hasUtc()) {
      hash = (37 * hash) + UTC_FIELD_NUMBER;
      hash = (53 * hash) + getUtc().hashCode();
    }
    if (hasObt()) {
      hash = (37 * hash) + OBT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getObt());
    }
    if (hasGradient()) {
      hash = (37 * hash) + GRADIENT_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getGradient()));
    }
    if (hasOffset()) {
      hash = (37 * hash) + OFFSET_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          java.lang.Double.doubleToLongBits(getOffset()));
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

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

    // Construct using org.yamcs.protobuf.TcoCoefficients.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getUtcFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (utcBuilder_ == null) {
        utc_ = null;
      } else {
        utcBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      obt_ = 0L;
      bitField0_ = (bitField0_ & ~0x00000002);
      gradient_ = 0D;
      bitField0_ = (bitField0_ & ~0x00000004);
      offset_ = 0D;
      bitField0_ = (bitField0_ & ~0x00000008);
      return this;
    }

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

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

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

    @java.lang.Override
    public org.yamcs.protobuf.TcoCoefficients buildPartial() {
      org.yamcs.protobuf.TcoCoefficients result = new org.yamcs.protobuf.TcoCoefficients(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        if (utcBuilder_ == null) {
          result.utc_ = utc_;
        } else {
          result.utc_ = utcBuilder_.build();
        }
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.obt_ = obt_;
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.gradient_ = gradient_;
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.offset_ = offset_;
        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.TcoCoefficients) {
        return mergeFrom((org.yamcs.protobuf.TcoCoefficients)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(org.yamcs.protobuf.TcoCoefficients other) {
      if (other == org.yamcs.protobuf.TcoCoefficients.getDefaultInstance()) return this;
      if (other.hasUtc()) {
        mergeUtc(other.getUtc());
      }
      if (other.hasObt()) {
        setObt(other.getObt());
      }
      if (other.hasGradient()) {
        setGradient(other.getGradient());
      }
      if (other.hasOffset()) {
        setOffset(other.getOffset());
      }
      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.TcoCoefficients parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (org.yamcs.protobuf.TcoCoefficients) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }
    private int bitField0_;

    private com.google.protobuf.Timestamp utc_;
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> utcBuilder_;
    /**
     * optional .google.protobuf.Timestamp utc = 1;
     * @return Whether the utc field is set.
     */
    public boolean hasUtc() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * optional .google.protobuf.Timestamp utc = 1;
     * @return The utc.
     */
    public com.google.protobuf.Timestamp getUtc() {
      if (utcBuilder_ == null) {
        return utc_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : utc_;
      } else {
        return utcBuilder_.getMessage();
      }
    }
    /**
     * optional .google.protobuf.Timestamp utc = 1;
     */
    public Builder setUtc(com.google.protobuf.Timestamp value) {
      if (utcBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        utc_ = value;
        onChanged();
      } else {
        utcBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .google.protobuf.Timestamp utc = 1;
     */
    public Builder setUtc(
        com.google.protobuf.Timestamp.Builder builderForValue) {
      if (utcBuilder_ == null) {
        utc_ = builderForValue.build();
        onChanged();
      } else {
        utcBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .google.protobuf.Timestamp utc = 1;
     */
    public Builder mergeUtc(com.google.protobuf.Timestamp value) {
      if (utcBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
            utc_ != null &&
            utc_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          utc_ =
            com.google.protobuf.Timestamp.newBuilder(utc_).mergeFrom(value).buildPartial();
        } else {
          utc_ = value;
        }
        onChanged();
      } else {
        utcBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000001;
      return this;
    }
    /**
     * optional .google.protobuf.Timestamp utc = 1;
     */
    public Builder clearUtc() {
      if (utcBuilder_ == null) {
        utc_ = null;
        onChanged();
      } else {
        utcBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      return this;
    }
    /**
     * optional .google.protobuf.Timestamp utc = 1;
     */
    public com.google.protobuf.Timestamp.Builder getUtcBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getUtcFieldBuilder().getBuilder();
    }
    /**
     * optional .google.protobuf.Timestamp utc = 1;
     */
    public com.google.protobuf.TimestampOrBuilder getUtcOrBuilder() {
      if (utcBuilder_ != null) {
        return utcBuilder_.getMessageOrBuilder();
      } else {
        return utc_ == null ?
            com.google.protobuf.Timestamp.getDefaultInstance() : utc_;
      }
    }
    /**
     * optional .google.protobuf.Timestamp utc = 1;
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
        getUtcFieldBuilder() {
      if (utcBuilder_ == null) {
        utcBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
                getUtc(),
                getParentForChildren(),
                isClean());
        utc_ = null;
      }
      return utcBuilder_;
    }

    private long obt_ ;
    /**
     * optional uint64 obt = 2;
     * @return Whether the obt field is set.
     */
    @java.lang.Override
    public boolean hasObt() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * optional uint64 obt = 2;
     * @return The obt.
     */
    @java.lang.Override
    public long getObt() {
      return obt_;
    }
    /**
     * optional uint64 obt = 2;
     * @param value The obt to set.
     * @return This builder for chaining.
     */
    public Builder setObt(long value) {
      bitField0_ |= 0x00000002;
      obt_ = value;
      onChanged();
      return this;
    }
    /**
     * optional uint64 obt = 2;
     * @return This builder for chaining.
     */
    public Builder clearObt() {
      bitField0_ = (bitField0_ & ~0x00000002);
      obt_ = 0L;
      onChanged();
      return this;
    }

    private double gradient_ ;
    /**
     * optional double gradient = 3;
     * @return Whether the gradient field is set.
     */
    @java.lang.Override
    public boolean hasGradient() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     * optional double gradient = 3;
     * @return The gradient.
     */
    @java.lang.Override
    public double getGradient() {
      return gradient_;
    }
    /**
     * optional double gradient = 3;
     * @param value The gradient to set.
     * @return This builder for chaining.
     */
    public Builder setGradient(double value) {
      bitField0_ |= 0x00000004;
      gradient_ = value;
      onChanged();
      return this;
    }
    /**
     * optional double gradient = 3;
     * @return This builder for chaining.
     */
    public Builder clearGradient() {
      bitField0_ = (bitField0_ & ~0x00000004);
      gradient_ = 0D;
      onChanged();
      return this;
    }

    private double offset_ ;
    /**
     * optional double offset = 4;
     * @return Whether the offset field is set.
     */
    @java.lang.Override
    public boolean hasOffset() {
      return ((bitField0_ & 0x00000008) != 0);
    }
    /**
     * optional double offset = 4;
     * @return The offset.
     */
    @java.lang.Override
    public double getOffset() {
      return offset_;
    }
    /**
     * optional double offset = 4;
     * @param value The offset to set.
     * @return This builder for chaining.
     */
    public Builder setOffset(double value) {
      bitField0_ |= 0x00000008;
      offset_ = value;
      onChanged();
      return this;
    }
    /**
     * optional double offset = 4;
     * @return This builder for chaining.
     */
    public Builder clearOffset() {
      bitField0_ = (bitField0_ & ~0x00000008);
      offset_ = 0D;
      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.tco.TcoCoefficients)
  }

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

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

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

}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy