Class Db.ParameterValue

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
org.yamcs.yarch.protobuf.Db.ParameterValue
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable, Db.ParameterValueOrBuilder
Enclosing class:
Db

public static final class Db.ParameterValue extends com.google.protobuf.GeneratedMessageV3 implements Db.ParameterValueOrBuilder
this message has been copied in Yamcs 5 from pvalue.proto 
 and is used when storing parameter values in tables (ParameterValueColumnSerializer.java).
 if the name of the parameter is the same with the column name, it is not stored.
 For compatiblity with Yamcs 4, the protobuf field numbers are kept unchanged 
 
Protobuf type ParameterValue
See Also:
  • Field Details

    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • RAWVALUE_FIELD_NUMBER

      public static final int RAWVALUE_FIELD_NUMBER
      See Also:
    • ENGVALUE_FIELD_NUMBER

      public static final int ENGVALUE_FIELD_NUMBER
      See Also:
    • ACQUISITIONTIME_FIELD_NUMBER

      public static final int ACQUISITIONTIME_FIELD_NUMBER
      See Also:
    • GENERATIONTIME_FIELD_NUMBER

      public static final int GENERATIONTIME_FIELD_NUMBER
      See Also:
    • ACQUISITIONSTATUS_FIELD_NUMBER

      public static final int ACQUISITIONSTATUS_FIELD_NUMBER
      See Also:
    • PROCESSINGSTATUS_FIELD_NUMBER

      public static final int PROCESSINGSTATUS_FIELD_NUMBER
      See Also:
    • MONITORINGRESULT_FIELD_NUMBER

      public static final int MONITORINGRESULT_FIELD_NUMBER
      See Also:
    • RANGECONDITION_FIELD_NUMBER

      public static final int RANGECONDITION_FIELD_NUMBER
      See Also:
    • ALARMRANGE_FIELD_NUMBER

      public static final int ALARMRANGE_FIELD_NUMBER
      See Also:
    • EXPIREMILLIS_FIELD_NUMBER

      public static final int EXPIREMILLIS_FIELD_NUMBER
      See Also:
    • PARSER

      @Deprecated public static final com.google.protobuf.Parser<Db.ParameterValue> PARSER
      Deprecated.
  • Method Details

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      Overrides:
      newInstance in class com.google.protobuf.GeneratedMessageV3
    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • hasName

      public boolean hasName()
      optional string name = 1;
      Specified by:
      hasName in interface Db.ParameterValueOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
      optional string name = 1;
      Specified by:
      getName in interface Db.ParameterValueOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
      optional string name = 1;
      Specified by:
      getNameBytes in interface Db.ParameterValueOrBuilder
      Returns:
      The bytes for name.
    • hasRawValue

      public boolean hasRawValue()
      optional .yamcs.protobuf.Value rawValue = 2;
      Specified by:
      hasRawValue in interface Db.ParameterValueOrBuilder
      Returns:
      Whether the rawValue field is set.
    • getRawValue

      public Yamcs.Value getRawValue()
      optional .yamcs.protobuf.Value rawValue = 2;
      Specified by:
      getRawValue in interface Db.ParameterValueOrBuilder
      Returns:
      The rawValue.
    • getRawValueOrBuilder

      public Yamcs.ValueOrBuilder getRawValueOrBuilder()
      optional .yamcs.protobuf.Value rawValue = 2;
      Specified by:
      getRawValueOrBuilder in interface Db.ParameterValueOrBuilder
    • hasEngValue

      public boolean hasEngValue()
      optional .yamcs.protobuf.Value engValue = 3;
      Specified by:
      hasEngValue in interface Db.ParameterValueOrBuilder
      Returns:
      Whether the engValue field is set.
    • getEngValue

      public Yamcs.Value getEngValue()
      optional .yamcs.protobuf.Value engValue = 3;
      Specified by:
      getEngValue in interface Db.ParameterValueOrBuilder
      Returns:
      The engValue.
    • getEngValueOrBuilder

      public Yamcs.ValueOrBuilder getEngValueOrBuilder()
      optional .yamcs.protobuf.Value engValue = 3;
      Specified by:
      getEngValueOrBuilder in interface Db.ParameterValueOrBuilder
    • hasAcquisitionTime

      public boolean hasAcquisitionTime()
      optional int64 acquisitionTime = 4;
      Specified by:
      hasAcquisitionTime in interface Db.ParameterValueOrBuilder
      Returns:
      Whether the acquisitionTime field is set.
    • getAcquisitionTime

      public long getAcquisitionTime()
      optional int64 acquisitionTime = 4;
      Specified by:
      getAcquisitionTime in interface Db.ParameterValueOrBuilder
      Returns:
      The acquisitionTime.
    • hasGenerationTime

      public boolean hasGenerationTime()
      optional int64 generationTime = 5;
      Specified by:
      hasGenerationTime in interface Db.ParameterValueOrBuilder
      Returns:
      Whether the generationTime field is set.
    • getGenerationTime

      public long getGenerationTime()
      optional int64 generationTime = 5;
      Specified by:
      getGenerationTime in interface Db.ParameterValueOrBuilder
      Returns:
      The generationTime.
    • hasAcquisitionStatus

      public boolean hasAcquisitionStatus()
      optional .yamcs.protobuf.pvalue.AcquisitionStatus acquisitionStatus = 6;
      Specified by:
      hasAcquisitionStatus in interface Db.ParameterValueOrBuilder
      Returns:
      Whether the acquisitionStatus field is set.
    • getAcquisitionStatus

      public Pvalue.AcquisitionStatus getAcquisitionStatus()
      optional .yamcs.protobuf.pvalue.AcquisitionStatus acquisitionStatus = 6;
      Specified by:
      getAcquisitionStatus in interface Db.ParameterValueOrBuilder
      Returns:
      The acquisitionStatus.
    • hasProcessingStatus

      public boolean hasProcessingStatus()
      optional bool processingStatus = 7;
      Specified by:
      hasProcessingStatus in interface Db.ParameterValueOrBuilder
      Returns:
      Whether the processingStatus field is set.
    • getProcessingStatus

      public boolean getProcessingStatus()
      optional bool processingStatus = 7;
      Specified by:
      getProcessingStatus in interface Db.ParameterValueOrBuilder
      Returns:
      The processingStatus.
    • hasMonitoringResult

      public boolean hasMonitoringResult()
      optional .yamcs.protobuf.pvalue.MonitoringResult monitoringResult = 8;
      Specified by:
      hasMonitoringResult in interface Db.ParameterValueOrBuilder
      Returns:
      Whether the monitoringResult field is set.
    • getMonitoringResult

      public Pvalue.MonitoringResult getMonitoringResult()
      optional .yamcs.protobuf.pvalue.MonitoringResult monitoringResult = 8;
      Specified by:
      getMonitoringResult in interface Db.ParameterValueOrBuilder
      Returns:
      The monitoringResult.
    • hasRangeCondition

      public boolean hasRangeCondition()
      optional .yamcs.protobuf.pvalue.RangeCondition rangeCondition = 9;
      Specified by:
      hasRangeCondition in interface Db.ParameterValueOrBuilder
      Returns:
      Whether the rangeCondition field is set.
    • getRangeCondition

      public Pvalue.RangeCondition getRangeCondition()
      optional .yamcs.protobuf.pvalue.RangeCondition rangeCondition = 9;
      Specified by:
      getRangeCondition in interface Db.ParameterValueOrBuilder
      Returns:
      The rangeCondition.
    • getAlarmRangeList

      public List<Mdb.AlarmRange> getAlarmRangeList()
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
      Specified by:
      getAlarmRangeList in interface Db.ParameterValueOrBuilder
    • getAlarmRangeOrBuilderList

      public List<? extends Mdb.AlarmRangeOrBuilder> getAlarmRangeOrBuilderList()
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
      Specified by:
      getAlarmRangeOrBuilderList in interface Db.ParameterValueOrBuilder
    • getAlarmRangeCount

      public int getAlarmRangeCount()
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
      Specified by:
      getAlarmRangeCount in interface Db.ParameterValueOrBuilder
    • getAlarmRange

      public Mdb.AlarmRange getAlarmRange(int index)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
      Specified by:
      getAlarmRange in interface Db.ParameterValueOrBuilder
    • getAlarmRangeOrBuilder

      public Mdb.AlarmRangeOrBuilder getAlarmRangeOrBuilder(int index)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
      Specified by:
      getAlarmRangeOrBuilder in interface Db.ParameterValueOrBuilder
    • hasExpireMillis

      public boolean hasExpireMillis()
       How long (in milliseconds) this parameter value is valid
       Note that there is an option when subscribing to parameters to get
       updated when the parameter values expire. 
       
      optional int64 expireMillis = 26;
      Specified by:
      hasExpireMillis in interface Db.ParameterValueOrBuilder
      Returns:
      Whether the expireMillis field is set.
    • getExpireMillis

      public long getExpireMillis()
       How long (in milliseconds) this parameter value is valid
       Note that there is an option when subscribing to parameters to get
       updated when the parameter values expire. 
       
      optional int64 expireMillis = 26;
      Specified by:
      getExpireMillis in interface Db.ParameterValueOrBuilder
      Returns:
      The expireMillis.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Db.ParameterValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Db.ParameterValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Db.ParameterValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Db.ParameterValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Db.ParameterValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Db.ParameterValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Db.ParameterValue parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Db.ParameterValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Db.ParameterValue parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Db.ParameterValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Db.ParameterValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Db.ParameterValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Db.ParameterValue.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Db.ParameterValue.Builder newBuilder()
    • newBuilder

      public static Db.ParameterValue.Builder newBuilder(Db.ParameterValue prototype)
    • toBuilder

      public Db.ParameterValue.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Db.ParameterValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static Db.ParameterValue getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Db.ParameterValue> parser()
    • getParserForType

      public com.google.protobuf.Parser<Db.ParameterValue> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public Db.ParameterValue getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder