
org.yamcs.protobuf.AlgorithmStatus 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/processing/processing.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.processing.AlgorithmStatus}
*/
public final class AlgorithmStatus extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.processing.AlgorithmStatus)
AlgorithmStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use AlgorithmStatus.newBuilder() to construct.
private AlgorithmStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private AlgorithmStatus() {
errorMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new AlgorithmStatus();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private AlgorithmStatus(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
bitField0_ |= 0x00000001;
active_ = input.readBool();
break;
}
case 16: {
bitField0_ |= 0x00000002;
traceEnabled_ = input.readBool();
break;
}
case 24: {
bitField0_ |= 0x00000004;
runCount_ = input.readUInt32();
break;
}
case 34: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = lastRun_.toBuilder();
}
lastRun_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(lastRun_);
lastRun_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 40: {
bitField0_ |= 0x00000010;
errorCount_ = input.readUInt32();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
errorMessage_ = bs;
break;
}
case 58: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000040) != 0)) {
subBuilder = errorTime_.toBuilder();
}
errorTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(errorTime_);
errorTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000040;
break;
}
case 64: {
bitField0_ |= 0x00000080;
execTimeNs_ = input.readUInt64();
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.ProcessingProto.internal_static_yamcs_protobuf_processing_AlgorithmStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.ProcessingProto.internal_static_yamcs_protobuf_processing_AlgorithmStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.AlgorithmStatus.class, org.yamcs.protobuf.AlgorithmStatus.Builder.class);
}
private int bitField0_;
public static final int ACTIVE_FIELD_NUMBER = 1;
private boolean active_;
/**
*
*true if the algorithm is active
*
*
* optional bool active = 1;
* @return Whether the active field is set.
*/
@java.lang.Override
public boolean hasActive() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*true if the algorithm is active
*
*
* optional bool active = 1;
* @return The active.
*/
@java.lang.Override
public boolean getActive() {
return active_;
}
public static final int TRACEENABLED_FIELD_NUMBER = 2;
private boolean traceEnabled_;
/**
*
*true if the tracing has been enabled
*
*
* optional bool traceEnabled = 2;
* @return Whether the traceEnabled field is set.
*/
@java.lang.Override
public boolean hasTraceEnabled() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*true if the tracing has been enabled
*
*
* optional bool traceEnabled = 2;
* @return The traceEnabled.
*/
@java.lang.Override
public boolean getTraceEnabled() {
return traceEnabled_;
}
public static final int RUNCOUNT_FIELD_NUMBER = 3;
private int runCount_;
/**
*
* how many times the algorithm ran (successfully or with error)
*
*
* optional uint32 runCount = 3;
* @return Whether the runCount field is set.
*/
@java.lang.Override
public boolean hasRunCount() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* how many times the algorithm ran (successfully or with error)
*
*
* optional uint32 runCount = 3;
* @return The runCount.
*/
@java.lang.Override
public int getRunCount() {
return runCount_;
}
public static final int LASTRUN_FIELD_NUMBER = 4;
private com.google.protobuf.Timestamp lastRun_;
/**
*
* when the algorithm was last run
*
*
* optional .google.protobuf.Timestamp lastRun = 4;
* @return Whether the lastRun field is set.
*/
@java.lang.Override
public boolean hasLastRun() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* when the algorithm was last run
*
*
* optional .google.protobuf.Timestamp lastRun = 4;
* @return The lastRun.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getLastRun() {
return lastRun_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastRun_;
}
/**
*
* when the algorithm was last run
*
*
* optional .google.protobuf.Timestamp lastRun = 4;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getLastRunOrBuilder() {
return lastRun_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastRun_;
}
public static final int ERRORCOUNT_FIELD_NUMBER = 5;
private int errorCount_;
/**
*
* how many times the algorithm ran with errors
*
*
* optional uint32 errorCount = 5;
* @return Whether the errorCount field is set.
*/
@java.lang.Override
public boolean hasErrorCount() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* how many times the algorithm ran with errors
*
*
* optional uint32 errorCount = 5;
* @return The errorCount.
*/
@java.lang.Override
public int getErrorCount() {
return errorCount_;
}
public static final int ERRORMESSAGE_FIELD_NUMBER = 6;
private volatile java.lang.Object errorMessage_;
/**
*
* if the algorithm produced an error,
* the fields below contain the error message and the time when the error was raised
*
*
* optional string errorMessage = 6;
* @return Whether the errorMessage field is set.
*/
@java.lang.Override
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* if the algorithm produced an error,
* the fields below contain the error message and the time when the error was raised
*
*
* optional string errorMessage = 6;
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
errorMessage_ = s;
}
return s;
}
}
/**
*
* if the algorithm produced an error,
* the fields below contain the error message and the time when the error was raised
*
*
* optional string errorMessage = 6;
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ERRORTIME_FIELD_NUMBER = 7;
private com.google.protobuf.Timestamp errorTime_;
/**
* optional .google.protobuf.Timestamp errorTime = 7;
* @return Whether the errorTime field is set.
*/
@java.lang.Override
public boolean hasErrorTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .google.protobuf.Timestamp errorTime = 7;
* @return The errorTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getErrorTime() {
return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_;
}
/**
* optional .google.protobuf.Timestamp errorTime = 7;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() {
return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_;
}
public static final int EXECTIMENS_FIELD_NUMBER = 8;
private long execTimeNs_;
/**
*
*total execution time in nanoseconds
*
*
* optional uint64 execTimeNs = 8;
* @return Whether the execTimeNs field is set.
*/
@java.lang.Override
public boolean hasExecTimeNs() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*total execution time in nanoseconds
*
*
* optional uint64 execTimeNs = 8;
* @return The execTimeNs.
*/
@java.lang.Override
public long getExecTimeNs() {
return execTimeNs_;
}
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.writeBool(1, active_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, traceEnabled_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, runCount_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getLastRun());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(5, errorCount_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, errorMessage_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeMessage(7, getErrorTime());
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeUInt64(8, execTimeNs_);
}
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
.computeBoolSize(1, active_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, traceEnabled_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, runCount_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getLastRun());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, errorCount_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, errorMessage_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getErrorTime());
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, execTimeNs_);
}
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.AlgorithmStatus)) {
return super.equals(obj);
}
org.yamcs.protobuf.AlgorithmStatus other = (org.yamcs.protobuf.AlgorithmStatus) obj;
if (hasActive() != other.hasActive()) return false;
if (hasActive()) {
if (getActive()
!= other.getActive()) return false;
}
if (hasTraceEnabled() != other.hasTraceEnabled()) return false;
if (hasTraceEnabled()) {
if (getTraceEnabled()
!= other.getTraceEnabled()) return false;
}
if (hasRunCount() != other.hasRunCount()) return false;
if (hasRunCount()) {
if (getRunCount()
!= other.getRunCount()) return false;
}
if (hasLastRun() != other.hasLastRun()) return false;
if (hasLastRun()) {
if (!getLastRun()
.equals(other.getLastRun())) return false;
}
if (hasErrorCount() != other.hasErrorCount()) return false;
if (hasErrorCount()) {
if (getErrorCount()
!= other.getErrorCount()) return false;
}
if (hasErrorMessage() != other.hasErrorMessage()) return false;
if (hasErrorMessage()) {
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
}
if (hasErrorTime() != other.hasErrorTime()) return false;
if (hasErrorTime()) {
if (!getErrorTime()
.equals(other.getErrorTime())) return false;
}
if (hasExecTimeNs() != other.hasExecTimeNs()) return false;
if (hasExecTimeNs()) {
if (getExecTimeNs()
!= other.getExecTimeNs()) 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 (hasActive()) {
hash = (37 * hash) + ACTIVE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getActive());
}
if (hasTraceEnabled()) {
hash = (37 * hash) + TRACEENABLED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getTraceEnabled());
}
if (hasRunCount()) {
hash = (37 * hash) + RUNCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getRunCount();
}
if (hasLastRun()) {
hash = (37 * hash) + LASTRUN_FIELD_NUMBER;
hash = (53 * hash) + getLastRun().hashCode();
}
if (hasErrorCount()) {
hash = (37 * hash) + ERRORCOUNT_FIELD_NUMBER;
hash = (53 * hash) + getErrorCount();
}
if (hasErrorMessage()) {
hash = (37 * hash) + ERRORMESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
}
if (hasErrorTime()) {
hash = (37 * hash) + ERRORTIME_FIELD_NUMBER;
hash = (53 * hash) + getErrorTime().hashCode();
}
if (hasExecTimeNs()) {
hash = (37 * hash) + EXECTIMENS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getExecTimeNs());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.AlgorithmStatus parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.AlgorithmStatus 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.AlgorithmStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.AlgorithmStatus 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.AlgorithmStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.AlgorithmStatus parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.AlgorithmStatus parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.AlgorithmStatus 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.AlgorithmStatus parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.AlgorithmStatus 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.AlgorithmStatus parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.AlgorithmStatus 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.AlgorithmStatus 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.processing.AlgorithmStatus}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.processing.AlgorithmStatus)
org.yamcs.protobuf.AlgorithmStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.ProcessingProto.internal_static_yamcs_protobuf_processing_AlgorithmStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.ProcessingProto.internal_static_yamcs_protobuf_processing_AlgorithmStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.AlgorithmStatus.class, org.yamcs.protobuf.AlgorithmStatus.Builder.class);
}
// Construct using org.yamcs.protobuf.AlgorithmStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getLastRunFieldBuilder();
getErrorTimeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
active_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
traceEnabled_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
runCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (lastRunBuilder_ == null) {
lastRun_ = null;
} else {
lastRunBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
errorCount_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
errorMessage_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
if (errorTimeBuilder_ == null) {
errorTime_ = null;
} else {
errorTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
execTimeNs_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.ProcessingProto.internal_static_yamcs_protobuf_processing_AlgorithmStatus_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.AlgorithmStatus getDefaultInstanceForType() {
return org.yamcs.protobuf.AlgorithmStatus.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.AlgorithmStatus build() {
org.yamcs.protobuf.AlgorithmStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.AlgorithmStatus buildPartial() {
org.yamcs.protobuf.AlgorithmStatus result = new org.yamcs.protobuf.AlgorithmStatus(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.active_ = active_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.traceEnabled_ = traceEnabled_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.runCount_ = runCount_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (lastRunBuilder_ == null) {
result.lastRun_ = lastRun_;
} else {
result.lastRun_ = lastRunBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.errorCount_ = errorCount_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.errorMessage_ = errorMessage_;
if (((from_bitField0_ & 0x00000040) != 0)) {
if (errorTimeBuilder_ == null) {
result.errorTime_ = errorTime_;
} else {
result.errorTime_ = errorTimeBuilder_.build();
}
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.execTimeNs_ = execTimeNs_;
to_bitField0_ |= 0x00000080;
}
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.AlgorithmStatus) {
return mergeFrom((org.yamcs.protobuf.AlgorithmStatus)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.AlgorithmStatus other) {
if (other == org.yamcs.protobuf.AlgorithmStatus.getDefaultInstance()) return this;
if (other.hasActive()) {
setActive(other.getActive());
}
if (other.hasTraceEnabled()) {
setTraceEnabled(other.getTraceEnabled());
}
if (other.hasRunCount()) {
setRunCount(other.getRunCount());
}
if (other.hasLastRun()) {
mergeLastRun(other.getLastRun());
}
if (other.hasErrorCount()) {
setErrorCount(other.getErrorCount());
}
if (other.hasErrorMessage()) {
bitField0_ |= 0x00000020;
errorMessage_ = other.errorMessage_;
onChanged();
}
if (other.hasErrorTime()) {
mergeErrorTime(other.getErrorTime());
}
if (other.hasExecTimeNs()) {
setExecTimeNs(other.getExecTimeNs());
}
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.AlgorithmStatus parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.AlgorithmStatus) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean active_ ;
/**
*
*true if the algorithm is active
*
*
* optional bool active = 1;
* @return Whether the active field is set.
*/
@java.lang.Override
public boolean hasActive() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*true if the algorithm is active
*
*
* optional bool active = 1;
* @return The active.
*/
@java.lang.Override
public boolean getActive() {
return active_;
}
/**
*
*true if the algorithm is active
*
*
* optional bool active = 1;
* @param value The active to set.
* @return This builder for chaining.
*/
public Builder setActive(boolean value) {
bitField0_ |= 0x00000001;
active_ = value;
onChanged();
return this;
}
/**
*
*true if the algorithm is active
*
*
* optional bool active = 1;
* @return This builder for chaining.
*/
public Builder clearActive() {
bitField0_ = (bitField0_ & ~0x00000001);
active_ = false;
onChanged();
return this;
}
private boolean traceEnabled_ ;
/**
*
*true if the tracing has been enabled
*
*
* optional bool traceEnabled = 2;
* @return Whether the traceEnabled field is set.
*/
@java.lang.Override
public boolean hasTraceEnabled() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*true if the tracing has been enabled
*
*
* optional bool traceEnabled = 2;
* @return The traceEnabled.
*/
@java.lang.Override
public boolean getTraceEnabled() {
return traceEnabled_;
}
/**
*
*true if the tracing has been enabled
*
*
* optional bool traceEnabled = 2;
* @param value The traceEnabled to set.
* @return This builder for chaining.
*/
public Builder setTraceEnabled(boolean value) {
bitField0_ |= 0x00000002;
traceEnabled_ = value;
onChanged();
return this;
}
/**
*
*true if the tracing has been enabled
*
*
* optional bool traceEnabled = 2;
* @return This builder for chaining.
*/
public Builder clearTraceEnabled() {
bitField0_ = (bitField0_ & ~0x00000002);
traceEnabled_ = false;
onChanged();
return this;
}
private int runCount_ ;
/**
*
* how many times the algorithm ran (successfully or with error)
*
*
* optional uint32 runCount = 3;
* @return Whether the runCount field is set.
*/
@java.lang.Override
public boolean hasRunCount() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* how many times the algorithm ran (successfully or with error)
*
*
* optional uint32 runCount = 3;
* @return The runCount.
*/
@java.lang.Override
public int getRunCount() {
return runCount_;
}
/**
*
* how many times the algorithm ran (successfully or with error)
*
*
* optional uint32 runCount = 3;
* @param value The runCount to set.
* @return This builder for chaining.
*/
public Builder setRunCount(int value) {
bitField0_ |= 0x00000004;
runCount_ = value;
onChanged();
return this;
}
/**
*
* how many times the algorithm ran (successfully or with error)
*
*
* optional uint32 runCount = 3;
* @return This builder for chaining.
*/
public Builder clearRunCount() {
bitField0_ = (bitField0_ & ~0x00000004);
runCount_ = 0;
onChanged();
return this;
}
private com.google.protobuf.Timestamp lastRun_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> lastRunBuilder_;
/**
*
* when the algorithm was last run
*
*
* optional .google.protobuf.Timestamp lastRun = 4;
* @return Whether the lastRun field is set.
*/
public boolean hasLastRun() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* when the algorithm was last run
*
*
* optional .google.protobuf.Timestamp lastRun = 4;
* @return The lastRun.
*/
public com.google.protobuf.Timestamp getLastRun() {
if (lastRunBuilder_ == null) {
return lastRun_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : lastRun_;
} else {
return lastRunBuilder_.getMessage();
}
}
/**
*
* when the algorithm was last run
*
*
* optional .google.protobuf.Timestamp lastRun = 4;
*/
public Builder setLastRun(com.google.protobuf.Timestamp value) {
if (lastRunBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
lastRun_ = value;
onChanged();
} else {
lastRunBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* when the algorithm was last run
*
*
* optional .google.protobuf.Timestamp lastRun = 4;
*/
public Builder setLastRun(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (lastRunBuilder_ == null) {
lastRun_ = builderForValue.build();
onChanged();
} else {
lastRunBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* when the algorithm was last run
*
*
* optional .google.protobuf.Timestamp lastRun = 4;
*/
public Builder mergeLastRun(com.google.protobuf.Timestamp value) {
if (lastRunBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
lastRun_ != null &&
lastRun_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
lastRun_ =
com.google.protobuf.Timestamp.newBuilder(lastRun_).mergeFrom(value).buildPartial();
} else {
lastRun_ = value;
}
onChanged();
} else {
lastRunBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* when the algorithm was last run
*
*
* optional .google.protobuf.Timestamp lastRun = 4;
*/
public Builder clearLastRun() {
if (lastRunBuilder_ == null) {
lastRun_ = null;
onChanged();
} else {
lastRunBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
*
* when the algorithm was last run
*
*
* optional .google.protobuf.Timestamp lastRun = 4;
*/
public com.google.protobuf.Timestamp.Builder getLastRunBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getLastRunFieldBuilder().getBuilder();
}
/**
*
* when the algorithm was last run
*
*
* optional .google.protobuf.Timestamp lastRun = 4;
*/
public com.google.protobuf.TimestampOrBuilder getLastRunOrBuilder() {
if (lastRunBuilder_ != null) {
return lastRunBuilder_.getMessageOrBuilder();
} else {
return lastRun_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : lastRun_;
}
}
/**
*
* when the algorithm was last run
*
*
* optional .google.protobuf.Timestamp lastRun = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getLastRunFieldBuilder() {
if (lastRunBuilder_ == null) {
lastRunBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getLastRun(),
getParentForChildren(),
isClean());
lastRun_ = null;
}
return lastRunBuilder_;
}
private int errorCount_ ;
/**
*
* how many times the algorithm ran with errors
*
*
* optional uint32 errorCount = 5;
* @return Whether the errorCount field is set.
*/
@java.lang.Override
public boolean hasErrorCount() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* how many times the algorithm ran with errors
*
*
* optional uint32 errorCount = 5;
* @return The errorCount.
*/
@java.lang.Override
public int getErrorCount() {
return errorCount_;
}
/**
*
* how many times the algorithm ran with errors
*
*
* optional uint32 errorCount = 5;
* @param value The errorCount to set.
* @return This builder for chaining.
*/
public Builder setErrorCount(int value) {
bitField0_ |= 0x00000010;
errorCount_ = value;
onChanged();
return this;
}
/**
*
* how many times the algorithm ran with errors
*
*
* optional uint32 errorCount = 5;
* @return This builder for chaining.
*/
public Builder clearErrorCount() {
bitField0_ = (bitField0_ & ~0x00000010);
errorCount_ = 0;
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
*
* if the algorithm produced an error,
* the fields below contain the error message and the time when the error was raised
*
*
* optional string errorMessage = 6;
* @return Whether the errorMessage field is set.
*/
public boolean hasErrorMessage() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* if the algorithm produced an error,
* the fields below contain the error message and the time when the error was raised
*
*
* optional string errorMessage = 6;
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
errorMessage_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* if the algorithm produced an error,
* the fields below contain the error message and the time when the error was raised
*
*
* optional string errorMessage = 6;
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* if the algorithm produced an error,
* the fields below contain the error message and the time when the error was raised
*
*
* optional string errorMessage = 6;
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
errorMessage_ = value;
onChanged();
return this;
}
/**
*
* if the algorithm produced an error,
* the fields below contain the error message and the time when the error was raised
*
*
* optional string errorMessage = 6;
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
bitField0_ = (bitField0_ & ~0x00000020);
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
*
* if the algorithm produced an error,
* the fields below contain the error message and the time when the error was raised
*
*
* optional string errorMessage = 6;
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
errorMessage_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp errorTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> errorTimeBuilder_;
/**
* optional .google.protobuf.Timestamp errorTime = 7;
* @return Whether the errorTime field is set.
*/
public boolean hasErrorTime() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .google.protobuf.Timestamp errorTime = 7;
* @return The errorTime.
*/
public com.google.protobuf.Timestamp getErrorTime() {
if (errorTimeBuilder_ == null) {
return errorTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_;
} else {
return errorTimeBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp errorTime = 7;
*/
public Builder setErrorTime(com.google.protobuf.Timestamp value) {
if (errorTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
errorTime_ = value;
onChanged();
} else {
errorTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .google.protobuf.Timestamp errorTime = 7;
*/
public Builder setErrorTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (errorTimeBuilder_ == null) {
errorTime_ = builderForValue.build();
onChanged();
} else {
errorTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .google.protobuf.Timestamp errorTime = 7;
*/
public Builder mergeErrorTime(com.google.protobuf.Timestamp value) {
if (errorTimeBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0) &&
errorTime_ != null &&
errorTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
errorTime_ =
com.google.protobuf.Timestamp.newBuilder(errorTime_).mergeFrom(value).buildPartial();
} else {
errorTime_ = value;
}
onChanged();
} else {
errorTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000040;
return this;
}
/**
* optional .google.protobuf.Timestamp errorTime = 7;
*/
public Builder clearErrorTime() {
if (errorTimeBuilder_ == null) {
errorTime_ = null;
onChanged();
} else {
errorTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
/**
* optional .google.protobuf.Timestamp errorTime = 7;
*/
public com.google.protobuf.Timestamp.Builder getErrorTimeBuilder() {
bitField0_ |= 0x00000040;
onChanged();
return getErrorTimeFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp errorTime = 7;
*/
public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder() {
if (errorTimeBuilder_ != null) {
return errorTimeBuilder_.getMessageOrBuilder();
} else {
return errorTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : errorTime_;
}
}
/**
* optional .google.protobuf.Timestamp errorTime = 7;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getErrorTimeFieldBuilder() {
if (errorTimeBuilder_ == null) {
errorTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getErrorTime(),
getParentForChildren(),
isClean());
errorTime_ = null;
}
return errorTimeBuilder_;
}
private long execTimeNs_ ;
/**
*
*total execution time in nanoseconds
*
*
* optional uint64 execTimeNs = 8;
* @return Whether the execTimeNs field is set.
*/
@java.lang.Override
public boolean hasExecTimeNs() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
*total execution time in nanoseconds
*
*
* optional uint64 execTimeNs = 8;
* @return The execTimeNs.
*/
@java.lang.Override
public long getExecTimeNs() {
return execTimeNs_;
}
/**
*
*total execution time in nanoseconds
*
*
* optional uint64 execTimeNs = 8;
* @param value The execTimeNs to set.
* @return This builder for chaining.
*/
public Builder setExecTimeNs(long value) {
bitField0_ |= 0x00000080;
execTimeNs_ = value;
onChanged();
return this;
}
/**
*
*total execution time in nanoseconds
*
*
* optional uint64 execTimeNs = 8;
* @return This builder for chaining.
*/
public Builder clearExecTimeNs() {
bitField0_ = (bitField0_ & ~0x00000080);
execTimeNs_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yamcs.protobuf.processing.AlgorithmStatus)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.processing.AlgorithmStatus)
private static final org.yamcs.protobuf.AlgorithmStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.AlgorithmStatus();
}
public static org.yamcs.protobuf.AlgorithmStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public AlgorithmStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new AlgorithmStatus(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.AlgorithmStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy