Package org.yamcs.protobuf
Class AlgorithmStatus.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
org.yamcs.protobuf.AlgorithmStatus.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
,AlgorithmStatusOrBuilder
- Enclosing class:
- AlgorithmStatus
public static final class AlgorithmStatus.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
implements AlgorithmStatusOrBuilder
Protobuf type
yamcs.protobuf.processing.AlgorithmStatus
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
true if the algorithm is activehow many times the algorithm ran with errorsif the algorithm produced an error, the fields below contain the error message and the time when the error was raisedoptional .google.protobuf.Timestamp errorTime = 7;
total execution time in nanosecondsclearField
(com.google.protobuf.Descriptors.FieldDescriptor field) when the algorithm was last runclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) how many times the algorithm ran (successfully or with error)true if the tracing has been enabledclone()
boolean
true if the algorithm is activestatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
int
how many times the algorithm ran with errorsif the algorithm produced an error, the fields below contain the error message and the time when the error was raisedcom.google.protobuf.ByteString
if the algorithm produced an error, the fields below contain the error message and the time when the error was raisedcom.google.protobuf.Timestamp
optional .google.protobuf.Timestamp errorTime = 7;
com.google.protobuf.Timestamp.Builder
optional .google.protobuf.Timestamp errorTime = 7;
com.google.protobuf.TimestampOrBuilder
optional .google.protobuf.Timestamp errorTime = 7;
long
total execution time in nanosecondscom.google.protobuf.Timestamp
when the algorithm was last runcom.google.protobuf.Timestamp.Builder
when the algorithm was last runcom.google.protobuf.TimestampOrBuilder
when the algorithm was last runint
how many times the algorithm ran (successfully or with error)boolean
true if the tracing has been enabledboolean
true if the algorithm is activeboolean
how many times the algorithm ran with errorsboolean
if the algorithm produced an error, the fields below contain the error message and the time when the error was raisedboolean
optional .google.protobuf.Timestamp errorTime = 7;
boolean
total execution time in nanosecondsboolean
when the algorithm was last runboolean
how many times the algorithm ran (successfully or with error)boolean
true if the tracing has been enabledprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeErrorTime
(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp errorTime = 7;
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(AlgorithmStatus other) mergeLastRun
(com.google.protobuf.Timestamp value) when the algorithm was last runfinal AlgorithmStatus.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setActive
(boolean value) true if the algorithm is activesetErrorCount
(int value) how many times the algorithm ran with errorssetErrorMessage
(String value) if the algorithm produced an error, the fields below contain the error message and the time when the error was raisedsetErrorMessageBytes
(com.google.protobuf.ByteString value) if the algorithm produced an error, the fields below contain the error message and the time when the error was raisedsetErrorTime
(com.google.protobuf.Timestamp value) optional .google.protobuf.Timestamp errorTime = 7;
setErrorTime
(com.google.protobuf.Timestamp.Builder builderForValue) optional .google.protobuf.Timestamp errorTime = 7;
setExecTimeNs
(long value) total execution time in nanosecondssetLastRun
(com.google.protobuf.Timestamp value) when the algorithm was last runsetLastRun
(com.google.protobuf.Timestamp.Builder builderForValue) when the algorithm was last runsetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setRunCount
(int value) how many times the algorithm ran (successfully or with error)setTraceEnabled
(boolean value) true if the tracing has been enabledfinal AlgorithmStatus.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
-
setField
public AlgorithmStatus.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
-
clearField
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
-
clearOneof
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
-
setRepeatedField
public AlgorithmStatus.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
-
addRepeatedField
public AlgorithmStatus.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AlgorithmStatus.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
-
mergeFrom
public AlgorithmStatus.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AlgorithmStatus.Builder>
- Throws:
IOException
-
hasActive
public boolean hasActive()true if the algorithm is active
optional bool active = 1;
- Specified by:
hasActive
in interfaceAlgorithmStatusOrBuilder
- Returns:
- Whether the active field is set.
-
getActive
public boolean getActive()true if the algorithm is active
optional bool active = 1;
- Specified by:
getActive
in interfaceAlgorithmStatusOrBuilder
- Returns:
- The active.
-
setActive
true if the algorithm is active
optional bool active = 1;
- Parameters:
value
- The active to set.- Returns:
- This builder for chaining.
-
clearActive
true if the algorithm is active
optional bool active = 1;
- Returns:
- This builder for chaining.
-
hasTraceEnabled
public boolean hasTraceEnabled()true if the tracing has been enabled
optional bool traceEnabled = 2;
- Specified by:
hasTraceEnabled
in interfaceAlgorithmStatusOrBuilder
- Returns:
- Whether the traceEnabled field is set.
-
getTraceEnabled
public boolean getTraceEnabled()true if the tracing has been enabled
optional bool traceEnabled = 2;
- Specified by:
getTraceEnabled
in interfaceAlgorithmStatusOrBuilder
- Returns:
- The traceEnabled.
-
setTraceEnabled
true if the tracing has been enabled
optional bool traceEnabled = 2;
- Parameters:
value
- The traceEnabled to set.- Returns:
- This builder for chaining.
-
clearTraceEnabled
true if the tracing has been enabled
optional bool traceEnabled = 2;
- Returns:
- This builder for chaining.
-
hasRunCount
public boolean hasRunCount()how many times the algorithm ran (successfully or with error)
optional uint32 runCount = 3;
- Specified by:
hasRunCount
in interfaceAlgorithmStatusOrBuilder
- Returns:
- Whether the runCount field is set.
-
getRunCount
public int getRunCount()how many times the algorithm ran (successfully or with error)
optional uint32 runCount = 3;
- Specified by:
getRunCount
in interfaceAlgorithmStatusOrBuilder
- Returns:
- The runCount.
-
setRunCount
how many times the algorithm ran (successfully or with error)
optional uint32 runCount = 3;
- Parameters:
value
- The runCount to set.- Returns:
- This builder for chaining.
-
clearRunCount
how many times the algorithm ran (successfully or with error)
optional uint32 runCount = 3;
- Returns:
- This builder for chaining.
-
hasLastRun
public boolean hasLastRun()when the algorithm was last run
optional .google.protobuf.Timestamp lastRun = 4;
- Specified by:
hasLastRun
in interfaceAlgorithmStatusOrBuilder
- Returns:
- Whether the lastRun field is set.
-
getLastRun
public com.google.protobuf.Timestamp getLastRun()when the algorithm was last run
optional .google.protobuf.Timestamp lastRun = 4;
- Specified by:
getLastRun
in interfaceAlgorithmStatusOrBuilder
- Returns:
- The lastRun.
-
setLastRun
when the algorithm was last run
optional .google.protobuf.Timestamp lastRun = 4;
-
setLastRun
when the algorithm was last run
optional .google.protobuf.Timestamp lastRun = 4;
-
mergeLastRun
when the algorithm was last run
optional .google.protobuf.Timestamp lastRun = 4;
-
clearLastRun
when the algorithm was last run
optional .google.protobuf.Timestamp lastRun = 4;
-
getLastRunBuilder
public com.google.protobuf.Timestamp.Builder getLastRunBuilder()when the algorithm was last run
optional .google.protobuf.Timestamp lastRun = 4;
-
getLastRunOrBuilder
public com.google.protobuf.TimestampOrBuilder getLastRunOrBuilder()when the algorithm was last run
optional .google.protobuf.Timestamp lastRun = 4;
- Specified by:
getLastRunOrBuilder
in interfaceAlgorithmStatusOrBuilder
-
hasErrorCount
public boolean hasErrorCount()how many times the algorithm ran with errors
optional uint32 errorCount = 5;
- Specified by:
hasErrorCount
in interfaceAlgorithmStatusOrBuilder
- Returns:
- Whether the errorCount field is set.
-
getErrorCount
public int getErrorCount()how many times the algorithm ran with errors
optional uint32 errorCount = 5;
- Specified by:
getErrorCount
in interfaceAlgorithmStatusOrBuilder
- Returns:
- The errorCount.
-
setErrorCount
how many times the algorithm ran with errors
optional uint32 errorCount = 5;
- Parameters:
value
- The errorCount to set.- Returns:
- This builder for chaining.
-
clearErrorCount
how many times the algorithm ran with errors
optional uint32 errorCount = 5;
- Returns:
- This builder for chaining.
-
hasErrorMessage
public boolean hasErrorMessage()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;
- Specified by:
hasErrorMessage
in interfaceAlgorithmStatusOrBuilder
- Returns:
- Whether the errorMessage field is set.
-
getErrorMessage
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;
- Specified by:
getErrorMessage
in interfaceAlgorithmStatusOrBuilder
- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()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;
- Specified by:
getErrorMessageBytes
in interfaceAlgorithmStatusOrBuilder
- Returns:
- The bytes for errorMessage.
-
setErrorMessage
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;
- Parameters:
value
- The errorMessage to set.- Returns:
- This builder for chaining.
-
clearErrorMessage
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;
- Returns:
- This builder for chaining.
-
setErrorMessageBytes
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;
- Parameters:
value
- The bytes for errorMessage to set.- Returns:
- This builder for chaining.
-
hasErrorTime
public boolean hasErrorTime()optional .google.protobuf.Timestamp errorTime = 7;
- Specified by:
hasErrorTime
in interfaceAlgorithmStatusOrBuilder
- Returns:
- Whether the errorTime field is set.
-
getErrorTime
public com.google.protobuf.Timestamp getErrorTime()optional .google.protobuf.Timestamp errorTime = 7;
- Specified by:
getErrorTime
in interfaceAlgorithmStatusOrBuilder
- Returns:
- The errorTime.
-
setErrorTime
optional .google.protobuf.Timestamp errorTime = 7;
-
setErrorTime
optional .google.protobuf.Timestamp errorTime = 7;
-
mergeErrorTime
optional .google.protobuf.Timestamp errorTime = 7;
-
clearErrorTime
optional .google.protobuf.Timestamp errorTime = 7;
-
getErrorTimeBuilder
public com.google.protobuf.Timestamp.Builder getErrorTimeBuilder()optional .google.protobuf.Timestamp errorTime = 7;
-
getErrorTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getErrorTimeOrBuilder()optional .google.protobuf.Timestamp errorTime = 7;
- Specified by:
getErrorTimeOrBuilder
in interfaceAlgorithmStatusOrBuilder
-
hasExecTimeNs
public boolean hasExecTimeNs()total execution time in nanoseconds
optional uint64 execTimeNs = 8;
- Specified by:
hasExecTimeNs
in interfaceAlgorithmStatusOrBuilder
- Returns:
- Whether the execTimeNs field is set.
-
getExecTimeNs
public long getExecTimeNs()total execution time in nanoseconds
optional uint64 execTimeNs = 8;
- Specified by:
getExecTimeNs
in interfaceAlgorithmStatusOrBuilder
- Returns:
- The execTimeNs.
-
setExecTimeNs
total execution time in nanoseconds
optional uint64 execTimeNs = 8;
- Parameters:
value
- The execTimeNs to set.- Returns:
- This builder for chaining.
-
clearExecTimeNs
total execution time in nanoseconds
optional uint64 execTimeNs = 8;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final AlgorithmStatus.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
-
mergeUnknownFields
public final AlgorithmStatus.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
-