
org.yamcs.protobuf.TofInterval Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
// 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.TofInterval}
*/
public final class TofInterval extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.tco.TofInterval)
TofIntervalOrBuilder {
private static final long serialVersionUID = 0L;
// Use TofInterval.newBuilder() to construct.
private TofInterval(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TofInterval() {
polCoef_ = emptyDoubleList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TofInterval();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TofInterval(
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 = ertStart_.toBuilder();
}
ertStart_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ertStart_);
ertStart_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = ertStop_.toBuilder();
}
ertStop_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(ertStop_);
ertStop_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 25: {
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
polCoef_ = newDoubleList();
mutable_bitField0_ |= 0x00000004;
}
polCoef_.addDouble(input.readDouble());
break;
}
case 26: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000004) != 0) && input.getBytesUntilLimit() > 0) {
polCoef_ = newDoubleList();
mutable_bitField0_ |= 0x00000004;
}
while (input.getBytesUntilLimit() > 0) {
polCoef_.addDouble(input.readDouble());
}
input.popLimit(limit);
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_ & 0x00000004) != 0)) {
polCoef_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.TcoProto.internal_static_yamcs_protobuf_tco_TofInterval_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.TcoProto.internal_static_yamcs_protobuf_tco_TofInterval_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.TofInterval.class, org.yamcs.protobuf.TofInterval.Builder.class);
}
private int bitField0_;
public static final int ERTSTART_FIELD_NUMBER = 1;
private com.google.protobuf.Timestamp ertStart_;
/**
* optional .google.protobuf.Timestamp ertStart = 1;
* @return Whether the ertStart field is set.
*/
@java.lang.Override
public boolean hasErtStart() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .google.protobuf.Timestamp ertStart = 1;
* @return The ertStart.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getErtStart() {
return ertStart_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ertStart_;
}
/**
* optional .google.protobuf.Timestamp ertStart = 1;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getErtStartOrBuilder() {
return ertStart_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ertStart_;
}
public static final int ERTSTOP_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp ertStop_;
/**
* optional .google.protobuf.Timestamp ertStop = 2;
* @return Whether the ertStop field is set.
*/
@java.lang.Override
public boolean hasErtStop() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .google.protobuf.Timestamp ertStop = 2;
* @return The ertStop.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getErtStop() {
return ertStop_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ertStop_;
}
/**
* optional .google.protobuf.Timestamp ertStop = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getErtStopOrBuilder() {
return ertStop_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ertStop_;
}
public static final int POLCOEF_FIELD_NUMBER = 3;
private com.google.protobuf.Internal.DoubleList polCoef_;
/**
* repeated double polCoef = 3;
* @return A list containing the polCoef.
*/
@java.lang.Override
public java.util.List
getPolCoefList() {
return polCoef_;
}
/**
* repeated double polCoef = 3;
* @return The count of polCoef.
*/
public int getPolCoefCount() {
return polCoef_.size();
}
/**
* repeated double polCoef = 3;
* @param index The index of the element to return.
* @return The polCoef at the given index.
*/
public double getPolCoef(int index) {
return polCoef_.getDouble(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, getErtStart());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getErtStop());
}
for (int i = 0; i < polCoef_.size(); i++) {
output.writeDouble(3, polCoef_.getDouble(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, getErtStart());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getErtStop());
}
{
int dataSize = 0;
dataSize = 8 * getPolCoefList().size();
size += dataSize;
size += 1 * getPolCoefList().size();
}
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.TofInterval)) {
return super.equals(obj);
}
org.yamcs.protobuf.TofInterval other = (org.yamcs.protobuf.TofInterval) obj;
if (hasErtStart() != other.hasErtStart()) return false;
if (hasErtStart()) {
if (!getErtStart()
.equals(other.getErtStart())) return false;
}
if (hasErtStop() != other.hasErtStop()) return false;
if (hasErtStop()) {
if (!getErtStop()
.equals(other.getErtStop())) return false;
}
if (!getPolCoefList()
.equals(other.getPolCoefList())) 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 (hasErtStart()) {
hash = (37 * hash) + ERTSTART_FIELD_NUMBER;
hash = (53 * hash) + getErtStart().hashCode();
}
if (hasErtStop()) {
hash = (37 * hash) + ERTSTOP_FIELD_NUMBER;
hash = (53 * hash) + getErtStop().hashCode();
}
if (getPolCoefCount() > 0) {
hash = (37 * hash) + POLCOEF_FIELD_NUMBER;
hash = (53 * hash) + getPolCoefList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.TofInterval parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.TofInterval 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.TofInterval parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.TofInterval 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.TofInterval parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.TofInterval parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.TofInterval parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.TofInterval 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.TofInterval parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.TofInterval 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.TofInterval parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.TofInterval 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.TofInterval 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.TofInterval}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.tco.TofInterval)
org.yamcs.protobuf.TofIntervalOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.TcoProto.internal_static_yamcs_protobuf_tco_TofInterval_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.TcoProto.internal_static_yamcs_protobuf_tco_TofInterval_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.TofInterval.class, org.yamcs.protobuf.TofInterval.Builder.class);
}
// Construct using org.yamcs.protobuf.TofInterval.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getErtStartFieldBuilder();
getErtStopFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (ertStartBuilder_ == null) {
ertStart_ = null;
} else {
ertStartBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (ertStopBuilder_ == null) {
ertStop_ = null;
} else {
ertStopBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
polCoef_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.TcoProto.internal_static_yamcs_protobuf_tco_TofInterval_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.TofInterval getDefaultInstanceForType() {
return org.yamcs.protobuf.TofInterval.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.TofInterval build() {
org.yamcs.protobuf.TofInterval result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.TofInterval buildPartial() {
org.yamcs.protobuf.TofInterval result = new org.yamcs.protobuf.TofInterval(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (ertStartBuilder_ == null) {
result.ertStart_ = ertStart_;
} else {
result.ertStart_ = ertStartBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (ertStopBuilder_ == null) {
result.ertStop_ = ertStop_;
} else {
result.ertStop_ = ertStopBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((bitField0_ & 0x00000004) != 0)) {
polCoef_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000004);
}
result.polCoef_ = polCoef_;
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.TofInterval) {
return mergeFrom((org.yamcs.protobuf.TofInterval)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.TofInterval other) {
if (other == org.yamcs.protobuf.TofInterval.getDefaultInstance()) return this;
if (other.hasErtStart()) {
mergeErtStart(other.getErtStart());
}
if (other.hasErtStop()) {
mergeErtStop(other.getErtStop());
}
if (!other.polCoef_.isEmpty()) {
if (polCoef_.isEmpty()) {
polCoef_ = other.polCoef_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensurePolCoefIsMutable();
polCoef_.addAll(other.polCoef_);
}
onChanged();
}
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.TofInterval parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.TofInterval) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Timestamp ertStart_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> ertStartBuilder_;
/**
* optional .google.protobuf.Timestamp ertStart = 1;
* @return Whether the ertStart field is set.
*/
public boolean hasErtStart() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .google.protobuf.Timestamp ertStart = 1;
* @return The ertStart.
*/
public com.google.protobuf.Timestamp getErtStart() {
if (ertStartBuilder_ == null) {
return ertStart_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ertStart_;
} else {
return ertStartBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp ertStart = 1;
*/
public Builder setErtStart(com.google.protobuf.Timestamp value) {
if (ertStartBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ertStart_ = value;
onChanged();
} else {
ertStartBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .google.protobuf.Timestamp ertStart = 1;
*/
public Builder setErtStart(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (ertStartBuilder_ == null) {
ertStart_ = builderForValue.build();
onChanged();
} else {
ertStartBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .google.protobuf.Timestamp ertStart = 1;
*/
public Builder mergeErtStart(com.google.protobuf.Timestamp value) {
if (ertStartBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
ertStart_ != null &&
ertStart_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
ertStart_ =
com.google.protobuf.Timestamp.newBuilder(ertStart_).mergeFrom(value).buildPartial();
} else {
ertStart_ = value;
}
onChanged();
} else {
ertStartBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .google.protobuf.Timestamp ertStart = 1;
*/
public Builder clearErtStart() {
if (ertStartBuilder_ == null) {
ertStart_ = null;
onChanged();
} else {
ertStartBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .google.protobuf.Timestamp ertStart = 1;
*/
public com.google.protobuf.Timestamp.Builder getErtStartBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getErtStartFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp ertStart = 1;
*/
public com.google.protobuf.TimestampOrBuilder getErtStartOrBuilder() {
if (ertStartBuilder_ != null) {
return ertStartBuilder_.getMessageOrBuilder();
} else {
return ertStart_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : ertStart_;
}
}
/**
* optional .google.protobuf.Timestamp ertStart = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getErtStartFieldBuilder() {
if (ertStartBuilder_ == null) {
ertStartBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getErtStart(),
getParentForChildren(),
isClean());
ertStart_ = null;
}
return ertStartBuilder_;
}
private com.google.protobuf.Timestamp ertStop_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> ertStopBuilder_;
/**
* optional .google.protobuf.Timestamp ertStop = 2;
* @return Whether the ertStop field is set.
*/
public boolean hasErtStop() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .google.protobuf.Timestamp ertStop = 2;
* @return The ertStop.
*/
public com.google.protobuf.Timestamp getErtStop() {
if (ertStopBuilder_ == null) {
return ertStop_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : ertStop_;
} else {
return ertStopBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp ertStop = 2;
*/
public Builder setErtStop(com.google.protobuf.Timestamp value) {
if (ertStopBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ertStop_ = value;
onChanged();
} else {
ertStopBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .google.protobuf.Timestamp ertStop = 2;
*/
public Builder setErtStop(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (ertStopBuilder_ == null) {
ertStop_ = builderForValue.build();
onChanged();
} else {
ertStopBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .google.protobuf.Timestamp ertStop = 2;
*/
public Builder mergeErtStop(com.google.protobuf.Timestamp value) {
if (ertStopBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
ertStop_ != null &&
ertStop_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
ertStop_ =
com.google.protobuf.Timestamp.newBuilder(ertStop_).mergeFrom(value).buildPartial();
} else {
ertStop_ = value;
}
onChanged();
} else {
ertStopBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .google.protobuf.Timestamp ertStop = 2;
*/
public Builder clearErtStop() {
if (ertStopBuilder_ == null) {
ertStop_ = null;
onChanged();
} else {
ertStopBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .google.protobuf.Timestamp ertStop = 2;
*/
public com.google.protobuf.Timestamp.Builder getErtStopBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getErtStopFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp ertStop = 2;
*/
public com.google.protobuf.TimestampOrBuilder getErtStopOrBuilder() {
if (ertStopBuilder_ != null) {
return ertStopBuilder_.getMessageOrBuilder();
} else {
return ertStop_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : ertStop_;
}
}
/**
* optional .google.protobuf.Timestamp ertStop = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getErtStopFieldBuilder() {
if (ertStopBuilder_ == null) {
ertStopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getErtStop(),
getParentForChildren(),
isClean());
ertStop_ = null;
}
return ertStopBuilder_;
}
private com.google.protobuf.Internal.DoubleList polCoef_ = emptyDoubleList();
private void ensurePolCoefIsMutable() {
if (!((bitField0_ & 0x00000004) != 0)) {
polCoef_ = mutableCopy(polCoef_);
bitField0_ |= 0x00000004;
}
}
/**
* repeated double polCoef = 3;
* @return A list containing the polCoef.
*/
public java.util.List
getPolCoefList() {
return ((bitField0_ & 0x00000004) != 0) ?
java.util.Collections.unmodifiableList(polCoef_) : polCoef_;
}
/**
* repeated double polCoef = 3;
* @return The count of polCoef.
*/
public int getPolCoefCount() {
return polCoef_.size();
}
/**
* repeated double polCoef = 3;
* @param index The index of the element to return.
* @return The polCoef at the given index.
*/
public double getPolCoef(int index) {
return polCoef_.getDouble(index);
}
/**
* repeated double polCoef = 3;
* @param index The index to set the value at.
* @param value The polCoef to set.
* @return This builder for chaining.
*/
public Builder setPolCoef(
int index, double value) {
ensurePolCoefIsMutable();
polCoef_.setDouble(index, value);
onChanged();
return this;
}
/**
* repeated double polCoef = 3;
* @param value The polCoef to add.
* @return This builder for chaining.
*/
public Builder addPolCoef(double value) {
ensurePolCoefIsMutable();
polCoef_.addDouble(value);
onChanged();
return this;
}
/**
* repeated double polCoef = 3;
* @param values The polCoef to add.
* @return This builder for chaining.
*/
public Builder addAllPolCoef(
java.lang.Iterable extends java.lang.Double> values) {
ensurePolCoefIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, polCoef_);
onChanged();
return this;
}
/**
* repeated double polCoef = 3;
* @return This builder for chaining.
*/
public Builder clearPolCoef() {
polCoef_ = emptyDoubleList();
bitField0_ = (bitField0_ & ~0x00000004);
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.TofInterval)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.tco.TofInterval)
private static final org.yamcs.protobuf.TofInterval DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.TofInterval();
}
public static org.yamcs.protobuf.TofInterval getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TofInterval parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TofInterval(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.TofInterval getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy