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

org.yamcs.protobuf.TcoStatus 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;

/**
 * 
 *If the TCO is used only for verifying the synchronization, the message will 
 * contain only the validity, accuracy and deviation.
 * 
* * Protobuf type {@code yamcs.protobuf.tco.TcoStatus} */ public final class TcoStatus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:yamcs.protobuf.tco.TcoStatus) TcoStatusOrBuilder { private static final long serialVersionUID = 0L; // Use TcoStatus.newBuilder() to construct. private TcoStatus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private TcoStatus() { samples_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new TcoStatus(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private TcoStatus( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { org.yamcs.protobuf.TcoCoefficients.Builder subBuilder = null; if (((bitField0_ & 0x00000001) != 0)) { subBuilder = coefficients_.toBuilder(); } coefficients_ = input.readMessage(org.yamcs.protobuf.TcoCoefficients.PARSER, extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(coefficients_); coefficients_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000001; break; } case 18: { com.google.protobuf.Timestamp.Builder subBuilder = null; if (((bitField0_ & 0x00000002) != 0)) { subBuilder = coefficientsTime_.toBuilder(); } coefficientsTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(coefficientsTime_); coefficientsTime_ = subBuilder.buildPartial(); } bitField0_ |= 0x00000002; break; } case 25: { bitField0_ |= 0x00000004; deviation_ = input.readDouble(); break; } case 34: { if (!((mutable_bitField0_ & 0x00000008) != 0)) { samples_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000008; } samples_.add( input.readMessage(org.yamcs.protobuf.TcoSample.PARSER, extensionRegistry)); 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 { if (((mutable_bitField0_ & 0x00000008) != 0)) { samples_ = java.util.Collections.unmodifiableList(samples_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.TcoProto.internal_static_yamcs_protobuf_tco_TcoStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.TcoProto.internal_static_yamcs_protobuf_tco_TcoStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.TcoStatus.class, org.yamcs.protobuf.TcoStatus.Builder.class); } private int bitField0_; public static final int COEFFICIENTS_FIELD_NUMBER = 1; private org.yamcs.protobuf.TcoCoefficients coefficients_; /** *
   *Currently used coefficients.
   * If not present, the synchronization is not established
   * 
* * optional .yamcs.protobuf.tco.TcoCoefficients coefficients = 1; * @return Whether the coefficients field is set. */ @java.lang.Override public boolean hasCoefficients() { return ((bitField0_ & 0x00000001) != 0); } /** *
   *Currently used coefficients.
   * If not present, the synchronization is not established
   * 
* * optional .yamcs.protobuf.tco.TcoCoefficients coefficients = 1; * @return The coefficients. */ @java.lang.Override public org.yamcs.protobuf.TcoCoefficients getCoefficients() { return coefficients_ == null ? org.yamcs.protobuf.TcoCoefficients.getDefaultInstance() : coefficients_; } /** *
   *Currently used coefficients.
   * If not present, the synchronization is not established
   * 
* * optional .yamcs.protobuf.tco.TcoCoefficients coefficients = 1; */ @java.lang.Override public org.yamcs.protobuf.TcoCoefficientsOrBuilder getCoefficientsOrBuilder() { return coefficients_ == null ? org.yamcs.protobuf.TcoCoefficients.getDefaultInstance() : coefficients_; } public static final int COEFFICIENTSTIME_FIELD_NUMBER = 2; private com.google.protobuf.Timestamp coefficientsTime_; /** *
   *The time when the coefficients have been computed
   * 
* * optional .google.protobuf.Timestamp coefficientsTime = 2; * @return Whether the coefficientsTime field is set. */ @java.lang.Override public boolean hasCoefficientsTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
   *The time when the coefficients have been computed
   * 
* * optional .google.protobuf.Timestamp coefficientsTime = 2; * @return The coefficientsTime. */ @java.lang.Override public com.google.protobuf.Timestamp getCoefficientsTime() { return coefficientsTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : coefficientsTime_; } /** *
   *The time when the coefficients have been computed
   * 
* * optional .google.protobuf.Timestamp coefficientsTime = 2; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCoefficientsTimeOrBuilder() { return coefficientsTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : coefficientsTime_; } public static final int DEVIATION_FIELD_NUMBER = 3; private double deviation_; /** *
   *The last computed deviation
   * 
* * optional double deviation = 3; * @return Whether the deviation field is set. */ @java.lang.Override public boolean hasDeviation() { return ((bitField0_ & 0x00000004) != 0); } /** *
   *The last computed deviation
   * 
* * optional double deviation = 3; * @return The deviation. */ @java.lang.Override public double getDeviation() { return deviation_; } public static final int SAMPLES_FIELD_NUMBER = 4; private java.util.List samples_; /** *
   *The last accumulated samples
   *These are not necessary those from which the coefficients 
   *have been calculated because the coefficients will only 
   *be recalculated when the deviation is higher than the accuracy settings
   * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ @java.lang.Override public java.util.List getSamplesList() { return samples_; } /** *
   *The last accumulated samples
   *These are not necessary those from which the coefficients 
   *have been calculated because the coefficients will only 
   *be recalculated when the deviation is higher than the accuracy settings
   * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ @java.lang.Override public java.util.List getSamplesOrBuilderList() { return samples_; } /** *
   *The last accumulated samples
   *These are not necessary those from which the coefficients 
   *have been calculated because the coefficients will only 
   *be recalculated when the deviation is higher than the accuracy settings
   * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ @java.lang.Override public int getSamplesCount() { return samples_.size(); } /** *
   *The last accumulated samples
   *These are not necessary those from which the coefficients 
   *have been calculated because the coefficients will only 
   *be recalculated when the deviation is higher than the accuracy settings
   * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ @java.lang.Override public org.yamcs.protobuf.TcoSample getSamples(int index) { return samples_.get(index); } /** *
   *The last accumulated samples
   *These are not necessary those from which the coefficients 
   *have been calculated because the coefficients will only 
   *be recalculated when the deviation is higher than the accuracy settings
   * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ @java.lang.Override public org.yamcs.protobuf.TcoSampleOrBuilder getSamplesOrBuilder( int index) { return samples_.get(index); } 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, getCoefficients()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getCoefficientsTime()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeDouble(3, deviation_); } for (int i = 0; i < samples_.size(); i++) { output.writeMessage(4, samples_.get(i)); } 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, getCoefficients()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCoefficientsTime()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeDoubleSize(3, deviation_); } for (int i = 0; i < samples_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, samples_.get(i)); } 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.TcoStatus)) { return super.equals(obj); } org.yamcs.protobuf.TcoStatus other = (org.yamcs.protobuf.TcoStatus) obj; if (hasCoefficients() != other.hasCoefficients()) return false; if (hasCoefficients()) { if (!getCoefficients() .equals(other.getCoefficients())) return false; } if (hasCoefficientsTime() != other.hasCoefficientsTime()) return false; if (hasCoefficientsTime()) { if (!getCoefficientsTime() .equals(other.getCoefficientsTime())) return false; } if (hasDeviation() != other.hasDeviation()) return false; if (hasDeviation()) { if (java.lang.Double.doubleToLongBits(getDeviation()) != java.lang.Double.doubleToLongBits( other.getDeviation())) return false; } if (!getSamplesList() .equals(other.getSamplesList())) 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 (hasCoefficients()) { hash = (37 * hash) + COEFFICIENTS_FIELD_NUMBER; hash = (53 * hash) + getCoefficients().hashCode(); } if (hasCoefficientsTime()) { hash = (37 * hash) + COEFFICIENTSTIME_FIELD_NUMBER; hash = (53 * hash) + getCoefficientsTime().hashCode(); } if (hasDeviation()) { hash = (37 * hash) + DEVIATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getDeviation())); } if (getSamplesCount() > 0) { hash = (37 * hash) + SAMPLES_FIELD_NUMBER; hash = (53 * hash) + getSamplesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.TcoStatus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.TcoStatus 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.TcoStatus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.TcoStatus 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.TcoStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.TcoStatus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.TcoStatus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.TcoStatus 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.TcoStatus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.TcoStatus 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.TcoStatus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.TcoStatus 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.TcoStatus 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; } /** *
   *If the TCO is used only for verifying the synchronization, the message will 
   * contain only the validity, accuracy and deviation.
   * 
* * Protobuf type {@code yamcs.protobuf.tco.TcoStatus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.tco.TcoStatus) org.yamcs.protobuf.TcoStatusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.TcoProto.internal_static_yamcs_protobuf_tco_TcoStatus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.TcoProto.internal_static_yamcs_protobuf_tco_TcoStatus_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.TcoStatus.class, org.yamcs.protobuf.TcoStatus.Builder.class); } // Construct using org.yamcs.protobuf.TcoStatus.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCoefficientsFieldBuilder(); getCoefficientsTimeFieldBuilder(); getSamplesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (coefficientsBuilder_ == null) { coefficients_ = null; } else { coefficientsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (coefficientsTimeBuilder_ == null) { coefficientsTime_ = null; } else { coefficientsTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); deviation_ = 0D; bitField0_ = (bitField0_ & ~0x00000004); if (samplesBuilder_ == null) { samples_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); } else { samplesBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.TcoProto.internal_static_yamcs_protobuf_tco_TcoStatus_descriptor; } @java.lang.Override public org.yamcs.protobuf.TcoStatus getDefaultInstanceForType() { return org.yamcs.protobuf.TcoStatus.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.TcoStatus build() { org.yamcs.protobuf.TcoStatus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.TcoStatus buildPartial() { org.yamcs.protobuf.TcoStatus result = new org.yamcs.protobuf.TcoStatus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (coefficientsBuilder_ == null) { result.coefficients_ = coefficients_; } else { result.coefficients_ = coefficientsBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (coefficientsTimeBuilder_ == null) { result.coefficientsTime_ = coefficientsTime_; } else { result.coefficientsTime_ = coefficientsTimeBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.deviation_ = deviation_; to_bitField0_ |= 0x00000004; } if (samplesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { samples_ = java.util.Collections.unmodifiableList(samples_); bitField0_ = (bitField0_ & ~0x00000008); } result.samples_ = samples_; } else { result.samples_ = samplesBuilder_.build(); } 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.TcoStatus) { return mergeFrom((org.yamcs.protobuf.TcoStatus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.TcoStatus other) { if (other == org.yamcs.protobuf.TcoStatus.getDefaultInstance()) return this; if (other.hasCoefficients()) { mergeCoefficients(other.getCoefficients()); } if (other.hasCoefficientsTime()) { mergeCoefficientsTime(other.getCoefficientsTime()); } if (other.hasDeviation()) { setDeviation(other.getDeviation()); } if (samplesBuilder_ == null) { if (!other.samples_.isEmpty()) { if (samples_.isEmpty()) { samples_ = other.samples_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSamplesIsMutable(); samples_.addAll(other.samples_); } onChanged(); } } else { if (!other.samples_.isEmpty()) { if (samplesBuilder_.isEmpty()) { samplesBuilder_.dispose(); samplesBuilder_ = null; samples_ = other.samples_; bitField0_ = (bitField0_ & ~0x00000008); samplesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSamplesFieldBuilder() : null; } else { samplesBuilder_.addAllMessages(other.samples_); } } } 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.TcoStatus parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.TcoStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private org.yamcs.protobuf.TcoCoefficients coefficients_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.TcoCoefficients, org.yamcs.protobuf.TcoCoefficients.Builder, org.yamcs.protobuf.TcoCoefficientsOrBuilder> coefficientsBuilder_; /** *
     *Currently used coefficients.
     * If not present, the synchronization is not established
     * 
* * optional .yamcs.protobuf.tco.TcoCoefficients coefficients = 1; * @return Whether the coefficients field is set. */ public boolean hasCoefficients() { return ((bitField0_ & 0x00000001) != 0); } /** *
     *Currently used coefficients.
     * If not present, the synchronization is not established
     * 
* * optional .yamcs.protobuf.tco.TcoCoefficients coefficients = 1; * @return The coefficients. */ public org.yamcs.protobuf.TcoCoefficients getCoefficients() { if (coefficientsBuilder_ == null) { return coefficients_ == null ? org.yamcs.protobuf.TcoCoefficients.getDefaultInstance() : coefficients_; } else { return coefficientsBuilder_.getMessage(); } } /** *
     *Currently used coefficients.
     * If not present, the synchronization is not established
     * 
* * optional .yamcs.protobuf.tco.TcoCoefficients coefficients = 1; */ public Builder setCoefficients(org.yamcs.protobuf.TcoCoefficients value) { if (coefficientsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } coefficients_ = value; onChanged(); } else { coefficientsBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
     *Currently used coefficients.
     * If not present, the synchronization is not established
     * 
* * optional .yamcs.protobuf.tco.TcoCoefficients coefficients = 1; */ public Builder setCoefficients( org.yamcs.protobuf.TcoCoefficients.Builder builderForValue) { if (coefficientsBuilder_ == null) { coefficients_ = builderForValue.build(); onChanged(); } else { coefficientsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
     *Currently used coefficients.
     * If not present, the synchronization is not established
     * 
* * optional .yamcs.protobuf.tco.TcoCoefficients coefficients = 1; */ public Builder mergeCoefficients(org.yamcs.protobuf.TcoCoefficients value) { if (coefficientsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && coefficients_ != null && coefficients_ != org.yamcs.protobuf.TcoCoefficients.getDefaultInstance()) { coefficients_ = org.yamcs.protobuf.TcoCoefficients.newBuilder(coefficients_).mergeFrom(value).buildPartial(); } else { coefficients_ = value; } onChanged(); } else { coefficientsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
     *Currently used coefficients.
     * If not present, the synchronization is not established
     * 
* * optional .yamcs.protobuf.tco.TcoCoefficients coefficients = 1; */ public Builder clearCoefficients() { if (coefficientsBuilder_ == null) { coefficients_ = null; onChanged(); } else { coefficientsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
     *Currently used coefficients.
     * If not present, the synchronization is not established
     * 
* * optional .yamcs.protobuf.tco.TcoCoefficients coefficients = 1; */ public org.yamcs.protobuf.TcoCoefficients.Builder getCoefficientsBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCoefficientsFieldBuilder().getBuilder(); } /** *
     *Currently used coefficients.
     * If not present, the synchronization is not established
     * 
* * optional .yamcs.protobuf.tco.TcoCoefficients coefficients = 1; */ public org.yamcs.protobuf.TcoCoefficientsOrBuilder getCoefficientsOrBuilder() { if (coefficientsBuilder_ != null) { return coefficientsBuilder_.getMessageOrBuilder(); } else { return coefficients_ == null ? org.yamcs.protobuf.TcoCoefficients.getDefaultInstance() : coefficients_; } } /** *
     *Currently used coefficients.
     * If not present, the synchronization is not established
     * 
* * optional .yamcs.protobuf.tco.TcoCoefficients coefficients = 1; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.TcoCoefficients, org.yamcs.protobuf.TcoCoefficients.Builder, org.yamcs.protobuf.TcoCoefficientsOrBuilder> getCoefficientsFieldBuilder() { if (coefficientsBuilder_ == null) { coefficientsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.TcoCoefficients, org.yamcs.protobuf.TcoCoefficients.Builder, org.yamcs.protobuf.TcoCoefficientsOrBuilder>( getCoefficients(), getParentForChildren(), isClean()); coefficients_ = null; } return coefficientsBuilder_; } private com.google.protobuf.Timestamp coefficientsTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> coefficientsTimeBuilder_; /** *
     *The time when the coefficients have been computed
     * 
* * optional .google.protobuf.Timestamp coefficientsTime = 2; * @return Whether the coefficientsTime field is set. */ public boolean hasCoefficientsTime() { return ((bitField0_ & 0x00000002) != 0); } /** *
     *The time when the coefficients have been computed
     * 
* * optional .google.protobuf.Timestamp coefficientsTime = 2; * @return The coefficientsTime. */ public com.google.protobuf.Timestamp getCoefficientsTime() { if (coefficientsTimeBuilder_ == null) { return coefficientsTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : coefficientsTime_; } else { return coefficientsTimeBuilder_.getMessage(); } } /** *
     *The time when the coefficients have been computed
     * 
* * optional .google.protobuf.Timestamp coefficientsTime = 2; */ public Builder setCoefficientsTime(com.google.protobuf.Timestamp value) { if (coefficientsTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } coefficientsTime_ = value; onChanged(); } else { coefficientsTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
     *The time when the coefficients have been computed
     * 
* * optional .google.protobuf.Timestamp coefficientsTime = 2; */ public Builder setCoefficientsTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (coefficientsTimeBuilder_ == null) { coefficientsTime_ = builderForValue.build(); onChanged(); } else { coefficientsTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
     *The time when the coefficients have been computed
     * 
* * optional .google.protobuf.Timestamp coefficientsTime = 2; */ public Builder mergeCoefficientsTime(com.google.protobuf.Timestamp value) { if (coefficientsTimeBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && coefficientsTime_ != null && coefficientsTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { coefficientsTime_ = com.google.protobuf.Timestamp.newBuilder(coefficientsTime_).mergeFrom(value).buildPartial(); } else { coefficientsTime_ = value; } onChanged(); } else { coefficientsTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
     *The time when the coefficients have been computed
     * 
* * optional .google.protobuf.Timestamp coefficientsTime = 2; */ public Builder clearCoefficientsTime() { if (coefficientsTimeBuilder_ == null) { coefficientsTime_ = null; onChanged(); } else { coefficientsTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
     *The time when the coefficients have been computed
     * 
* * optional .google.protobuf.Timestamp coefficientsTime = 2; */ public com.google.protobuf.Timestamp.Builder getCoefficientsTimeBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCoefficientsTimeFieldBuilder().getBuilder(); } /** *
     *The time when the coefficients have been computed
     * 
* * optional .google.protobuf.Timestamp coefficientsTime = 2; */ public com.google.protobuf.TimestampOrBuilder getCoefficientsTimeOrBuilder() { if (coefficientsTimeBuilder_ != null) { return coefficientsTimeBuilder_.getMessageOrBuilder(); } else { return coefficientsTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : coefficientsTime_; } } /** *
     *The time when the coefficients have been computed
     * 
* * optional .google.protobuf.Timestamp coefficientsTime = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getCoefficientsTimeFieldBuilder() { if (coefficientsTimeBuilder_ == null) { coefficientsTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getCoefficientsTime(), getParentForChildren(), isClean()); coefficientsTime_ = null; } return coefficientsTimeBuilder_; } private double deviation_ ; /** *
     *The last computed deviation
     * 
* * optional double deviation = 3; * @return Whether the deviation field is set. */ @java.lang.Override public boolean hasDeviation() { return ((bitField0_ & 0x00000004) != 0); } /** *
     *The last computed deviation
     * 
* * optional double deviation = 3; * @return The deviation. */ @java.lang.Override public double getDeviation() { return deviation_; } /** *
     *The last computed deviation
     * 
* * optional double deviation = 3; * @param value The deviation to set. * @return This builder for chaining. */ public Builder setDeviation(double value) { bitField0_ |= 0x00000004; deviation_ = value; onChanged(); return this; } /** *
     *The last computed deviation
     * 
* * optional double deviation = 3; * @return This builder for chaining. */ public Builder clearDeviation() { bitField0_ = (bitField0_ & ~0x00000004); deviation_ = 0D; onChanged(); return this; } private java.util.List samples_ = java.util.Collections.emptyList(); private void ensureSamplesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { samples_ = new java.util.ArrayList(samples_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.TcoSample, org.yamcs.protobuf.TcoSample.Builder, org.yamcs.protobuf.TcoSampleOrBuilder> samplesBuilder_; /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public java.util.List getSamplesList() { if (samplesBuilder_ == null) { return java.util.Collections.unmodifiableList(samples_); } else { return samplesBuilder_.getMessageList(); } } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public int getSamplesCount() { if (samplesBuilder_ == null) { return samples_.size(); } else { return samplesBuilder_.getCount(); } } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public org.yamcs.protobuf.TcoSample getSamples(int index) { if (samplesBuilder_ == null) { return samples_.get(index); } else { return samplesBuilder_.getMessage(index); } } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public Builder setSamples( int index, org.yamcs.protobuf.TcoSample value) { if (samplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSamplesIsMutable(); samples_.set(index, value); onChanged(); } else { samplesBuilder_.setMessage(index, value); } return this; } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public Builder setSamples( int index, org.yamcs.protobuf.TcoSample.Builder builderForValue) { if (samplesBuilder_ == null) { ensureSamplesIsMutable(); samples_.set(index, builderForValue.build()); onChanged(); } else { samplesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public Builder addSamples(org.yamcs.protobuf.TcoSample value) { if (samplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSamplesIsMutable(); samples_.add(value); onChanged(); } else { samplesBuilder_.addMessage(value); } return this; } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public Builder addSamples( int index, org.yamcs.protobuf.TcoSample value) { if (samplesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSamplesIsMutable(); samples_.add(index, value); onChanged(); } else { samplesBuilder_.addMessage(index, value); } return this; } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public Builder addSamples( org.yamcs.protobuf.TcoSample.Builder builderForValue) { if (samplesBuilder_ == null) { ensureSamplesIsMutable(); samples_.add(builderForValue.build()); onChanged(); } else { samplesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public Builder addSamples( int index, org.yamcs.protobuf.TcoSample.Builder builderForValue) { if (samplesBuilder_ == null) { ensureSamplesIsMutable(); samples_.add(index, builderForValue.build()); onChanged(); } else { samplesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public Builder addAllSamples( java.lang.Iterable values) { if (samplesBuilder_ == null) { ensureSamplesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, samples_); onChanged(); } else { samplesBuilder_.addAllMessages(values); } return this; } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public Builder clearSamples() { if (samplesBuilder_ == null) { samples_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { samplesBuilder_.clear(); } return this; } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public Builder removeSamples(int index) { if (samplesBuilder_ == null) { ensureSamplesIsMutable(); samples_.remove(index); onChanged(); } else { samplesBuilder_.remove(index); } return this; } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public org.yamcs.protobuf.TcoSample.Builder getSamplesBuilder( int index) { return getSamplesFieldBuilder().getBuilder(index); } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public org.yamcs.protobuf.TcoSampleOrBuilder getSamplesOrBuilder( int index) { if (samplesBuilder_ == null) { return samples_.get(index); } else { return samplesBuilder_.getMessageOrBuilder(index); } } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public java.util.List getSamplesOrBuilderList() { if (samplesBuilder_ != null) { return samplesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(samples_); } } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public org.yamcs.protobuf.TcoSample.Builder addSamplesBuilder() { return getSamplesFieldBuilder().addBuilder( org.yamcs.protobuf.TcoSample.getDefaultInstance()); } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public org.yamcs.protobuf.TcoSample.Builder addSamplesBuilder( int index) { return getSamplesFieldBuilder().addBuilder( index, org.yamcs.protobuf.TcoSample.getDefaultInstance()); } /** *
     *The last accumulated samples
     *These are not necessary those from which the coefficients 
     *have been calculated because the coefficients will only 
     *be recalculated when the deviation is higher than the accuracy settings
     * 
* * repeated .yamcs.protobuf.tco.TcoSample samples = 4; */ public java.util.List getSamplesBuilderList() { return getSamplesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.TcoSample, org.yamcs.protobuf.TcoSample.Builder, org.yamcs.protobuf.TcoSampleOrBuilder> getSamplesFieldBuilder() { if (samplesBuilder_ == null) { samplesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.TcoSample, org.yamcs.protobuf.TcoSample.Builder, org.yamcs.protobuf.TcoSampleOrBuilder>( samples_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); samples_ = null; } return samplesBuilder_; } @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.TcoStatus) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.tco.TcoStatus) private static final org.yamcs.protobuf.TcoStatus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.TcoStatus(); } public static org.yamcs.protobuf.TcoStatus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TcoStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TcoStatus(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.TcoStatus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy