Class 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 Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
      • clear

        public AlgorithmStatus.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
      • getDefaultInstanceForType

        public AlgorithmStatus getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public AlgorithmStatus build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public AlgorithmStatus buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public AlgorithmStatus.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
      • setField

        public AlgorithmStatus.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
      • clearField

        public AlgorithmStatus.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
      • clearOneof

        public AlgorithmStatus.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
      • addRepeatedField

        public AlgorithmStatus.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
      • mergeFrom

        public AlgorithmStatus.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<AlgorithmStatus.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface AlgorithmStatusOrBuilder
        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 interface AlgorithmStatusOrBuilder
        Returns:
        The active.
      • setActive

        public AlgorithmStatus.Builder setActive​(boolean value)
        true if the algorithm is active
         
        optional bool active = 1;
        Parameters:
        value - The active to set.
        Returns:
        This builder for chaining.
      • clearActive

        public AlgorithmStatus.Builder 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 interface AlgorithmStatusOrBuilder
        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 interface AlgorithmStatusOrBuilder
        Returns:
        The traceEnabled.
      • setTraceEnabled

        public AlgorithmStatus.Builder setTraceEnabled​(boolean value)
        true if the tracing has been enabled 
         
        optional bool traceEnabled = 2;
        Parameters:
        value - The traceEnabled to set.
        Returns:
        This builder for chaining.
      • clearTraceEnabled

        public AlgorithmStatus.Builder 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 interface AlgorithmStatusOrBuilder
        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 interface AlgorithmStatusOrBuilder
        Returns:
        The runCount.
      • setRunCount

        public AlgorithmStatus.Builder setRunCount​(int value)
         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

        public AlgorithmStatus.Builder 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 interface AlgorithmStatusOrBuilder
        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 interface AlgorithmStatusOrBuilder
        Returns:
        The lastRun.
      • setLastRun

        public AlgorithmStatus.Builder setLastRun​(com.google.protobuf.Timestamp value)
         when the algorithm was last run
         
        optional .google.protobuf.Timestamp lastRun = 4;
      • setLastRun

        public AlgorithmStatus.Builder setLastRun​(com.google.protobuf.Timestamp.Builder builderForValue)
         when the algorithm was last run
         
        optional .google.protobuf.Timestamp lastRun = 4;
      • mergeLastRun

        public AlgorithmStatus.Builder mergeLastRun​(com.google.protobuf.Timestamp value)
         when the algorithm was last run
         
        optional .google.protobuf.Timestamp lastRun = 4;
      • clearLastRun

        public AlgorithmStatus.Builder 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 interface AlgorithmStatusOrBuilder
      • hasErrorCount

        public boolean hasErrorCount()
         how many times the algorithm ran with errors
         
        optional uint32 errorCount = 5;
        Specified by:
        hasErrorCount in interface AlgorithmStatusOrBuilder
        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 interface AlgorithmStatusOrBuilder
        Returns:
        The errorCount.
      • setErrorCount

        public AlgorithmStatus.Builder setErrorCount​(int value)
         how many times the algorithm ran with errors
         
        optional uint32 errorCount = 5;
        Parameters:
        value - The errorCount to set.
        Returns:
        This builder for chaining.
      • clearErrorCount

        public AlgorithmStatus.Builder 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 interface AlgorithmStatusOrBuilder
        Returns:
        Whether the errorMessage field is set.
      • getErrorMessage

        public String 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 interface AlgorithmStatusOrBuilder
        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 interface AlgorithmStatusOrBuilder
        Returns:
        The bytes for errorMessage.
      • setErrorMessage

        public AlgorithmStatus.Builder setErrorMessage​(String value)
         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

        public AlgorithmStatus.Builder 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

        public AlgorithmStatus.Builder setErrorMessageBytes​(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 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 interface AlgorithmStatusOrBuilder
        Returns:
        Whether the errorTime field is set.
      • getErrorTime

        public com.google.protobuf.Timestamp getErrorTime()
        optional .google.protobuf.Timestamp errorTime = 7;
        Specified by:
        getErrorTime in interface AlgorithmStatusOrBuilder
        Returns:
        The errorTime.
      • setErrorTime

        public AlgorithmStatus.Builder setErrorTime​(com.google.protobuf.Timestamp value)
        optional .google.protobuf.Timestamp errorTime = 7;
      • setErrorTime

        public AlgorithmStatus.Builder setErrorTime​(com.google.protobuf.Timestamp.Builder builderForValue)
        optional .google.protobuf.Timestamp errorTime = 7;
      • mergeErrorTime

        public AlgorithmStatus.Builder mergeErrorTime​(com.google.protobuf.Timestamp value)
        optional .google.protobuf.Timestamp errorTime = 7;
      • clearErrorTime

        public AlgorithmStatus.Builder clearErrorTime()
        optional .google.protobuf.Timestamp errorTime = 7;
      • getErrorTimeBuilder

        public com.google.protobuf.Timestamp.Builder getErrorTimeBuilder()
        optional .google.protobuf.Timestamp errorTime = 7;
      • hasExecTimeNs

        public boolean hasExecTimeNs()
        total execution time in nanoseconds
         
        optional uint64 execTimeNs = 8;
        Specified by:
        hasExecTimeNs in interface AlgorithmStatusOrBuilder
        Returns:
        Whether the execTimeNs field is set.
      • getExecTimeNs

        public long getExecTimeNs()
        total execution time in nanoseconds
         
        optional uint64 execTimeNs = 8;
        Specified by:
        getExecTimeNs in interface AlgorithmStatusOrBuilder
        Returns:
        The execTimeNs.
      • setExecTimeNs

        public AlgorithmStatus.Builder setExecTimeNs​(long value)
        total execution time in nanoseconds
         
        optional uint64 execTimeNs = 8;
        Parameters:
        value - The execTimeNs to set.
        Returns:
        This builder for chaining.
      • clearExecTimeNs

        public AlgorithmStatus.Builder 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 interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>
      • mergeUnknownFields

        public final AlgorithmStatus.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AlgorithmStatus.Builder>