Class Db.ParameterValue.Builder

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

public static final class Db.ParameterValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Db.ParameterValue.Builder> 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
  • Method Details

    • 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<Db.ParameterValue.Builder>
    • clear

      public Db.ParameterValue.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<Db.ParameterValue.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<Db.ParameterValue.Builder>
    • getDefaultInstanceForType

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

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

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

      public Db.ParameterValue.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<Db.ParameterValue.Builder>
    • setField

      public Db.ParameterValue.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<Db.ParameterValue.Builder>
    • clearField

      public Db.ParameterValue.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<Db.ParameterValue.Builder>
    • clearOneof

      public Db.ParameterValue.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<Db.ParameterValue.Builder>
    • setRepeatedField

      public Db.ParameterValue.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<Db.ParameterValue.Builder>
    • addRepeatedField

      public Db.ParameterValue.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<Db.ParameterValue.Builder>
    • mergeFrom

      public Db.ParameterValue.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<Db.ParameterValue.Builder>
    • mergeFrom

      public Db.ParameterValue.Builder mergeFrom(Db.ParameterValue other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Db.ParameterValue.Builder>
    • mergeFrom

      public Db.ParameterValue.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<Db.ParameterValue.Builder>
      Throws:
      IOException
    • 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.
    • setName

      public Db.ParameterValue.Builder setName(String value)
      optional string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Db.ParameterValue.Builder clearName()
      optional string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Db.ParameterValue.Builder setNameBytes(com.google.protobuf.ByteString value)
      optional string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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.
    • setRawValue

      public Db.ParameterValue.Builder setRawValue(Yamcs.Value value)
      optional .yamcs.protobuf.Value rawValue = 2;
    • setRawValue

      public Db.ParameterValue.Builder setRawValue(Yamcs.Value.Builder builderForValue)
      optional .yamcs.protobuf.Value rawValue = 2;
    • mergeRawValue

      public Db.ParameterValue.Builder mergeRawValue(Yamcs.Value value)
      optional .yamcs.protobuf.Value rawValue = 2;
    • clearRawValue

      public Db.ParameterValue.Builder clearRawValue()
      optional .yamcs.protobuf.Value rawValue = 2;
    • getRawValueBuilder

      public Yamcs.Value.Builder getRawValueBuilder()
      optional .yamcs.protobuf.Value rawValue = 2;
    • 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.
    • setEngValue

      public Db.ParameterValue.Builder setEngValue(Yamcs.Value value)
      optional .yamcs.protobuf.Value engValue = 3;
    • setEngValue

      public Db.ParameterValue.Builder setEngValue(Yamcs.Value.Builder builderForValue)
      optional .yamcs.protobuf.Value engValue = 3;
    • mergeEngValue

      public Db.ParameterValue.Builder mergeEngValue(Yamcs.Value value)
      optional .yamcs.protobuf.Value engValue = 3;
    • clearEngValue

      public Db.ParameterValue.Builder clearEngValue()
      optional .yamcs.protobuf.Value engValue = 3;
    • getEngValueBuilder

      public Yamcs.Value.Builder getEngValueBuilder()
      optional .yamcs.protobuf.Value engValue = 3;
    • 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.
    • setAcquisitionTime

      public Db.ParameterValue.Builder setAcquisitionTime(long value)
      optional int64 acquisitionTime = 4;
      Parameters:
      value - The acquisitionTime to set.
      Returns:
      This builder for chaining.
    • clearAcquisitionTime

      public Db.ParameterValue.Builder clearAcquisitionTime()
      optional int64 acquisitionTime = 4;
      Returns:
      This builder for chaining.
    • 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.
    • setGenerationTime

      public Db.ParameterValue.Builder setGenerationTime(long value)
      optional int64 generationTime = 5;
      Parameters:
      value - The generationTime to set.
      Returns:
      This builder for chaining.
    • clearGenerationTime

      public Db.ParameterValue.Builder clearGenerationTime()
      optional int64 generationTime = 5;
      Returns:
      This builder for chaining.
    • 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.
    • setAcquisitionStatus

      public Db.ParameterValue.Builder setAcquisitionStatus(Pvalue.AcquisitionStatus value)
      optional .yamcs.protobuf.pvalue.AcquisitionStatus acquisitionStatus = 6;
      Parameters:
      value - The acquisitionStatus to set.
      Returns:
      This builder for chaining.
    • clearAcquisitionStatus

      public Db.ParameterValue.Builder clearAcquisitionStatus()
      optional .yamcs.protobuf.pvalue.AcquisitionStatus acquisitionStatus = 6;
      Returns:
      This builder for chaining.
    • 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.
    • setProcessingStatus

      public Db.ParameterValue.Builder setProcessingStatus(boolean value)
      optional bool processingStatus = 7;
      Parameters:
      value - The processingStatus to set.
      Returns:
      This builder for chaining.
    • clearProcessingStatus

      public Db.ParameterValue.Builder clearProcessingStatus()
      optional bool processingStatus = 7;
      Returns:
      This builder for chaining.
    • 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.
    • setMonitoringResult

      public Db.ParameterValue.Builder setMonitoringResult(Pvalue.MonitoringResult value)
      optional .yamcs.protobuf.pvalue.MonitoringResult monitoringResult = 8;
      Parameters:
      value - The monitoringResult to set.
      Returns:
      This builder for chaining.
    • clearMonitoringResult

      public Db.ParameterValue.Builder clearMonitoringResult()
      optional .yamcs.protobuf.pvalue.MonitoringResult monitoringResult = 8;
      Returns:
      This builder for chaining.
    • 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.
    • setRangeCondition

      public Db.ParameterValue.Builder setRangeCondition(Pvalue.RangeCondition value)
      optional .yamcs.protobuf.pvalue.RangeCondition rangeCondition = 9;
      Parameters:
      value - The rangeCondition to set.
      Returns:
      This builder for chaining.
    • clearRangeCondition

      public Db.ParameterValue.Builder clearRangeCondition()
      optional .yamcs.protobuf.pvalue.RangeCondition rangeCondition = 9;
      Returns:
      This builder for chaining.
    • getAlarmRangeList

      public List<Mdb.AlarmRange> getAlarmRangeList()
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
      Specified by:
      getAlarmRangeList 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
    • setAlarmRange

      public Db.ParameterValue.Builder setAlarmRange(int index, Mdb.AlarmRange value)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • setAlarmRange

      public Db.ParameterValue.Builder setAlarmRange(int index, Mdb.AlarmRange.Builder builderForValue)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • addAlarmRange

      public Db.ParameterValue.Builder addAlarmRange(Mdb.AlarmRange value)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • addAlarmRange

      public Db.ParameterValue.Builder addAlarmRange(int index, Mdb.AlarmRange value)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • addAlarmRange

      public Db.ParameterValue.Builder addAlarmRange(Mdb.AlarmRange.Builder builderForValue)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • addAlarmRange

      public Db.ParameterValue.Builder addAlarmRange(int index, Mdb.AlarmRange.Builder builderForValue)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • addAllAlarmRange

      public Db.ParameterValue.Builder addAllAlarmRange(Iterable<? extends Mdb.AlarmRange> values)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • clearAlarmRange

      public Db.ParameterValue.Builder clearAlarmRange()
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • removeAlarmRange

      public Db.ParameterValue.Builder removeAlarmRange(int index)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • getAlarmRangeBuilder

      public Mdb.AlarmRange.Builder getAlarmRangeBuilder(int index)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • getAlarmRangeOrBuilder

      public Mdb.AlarmRangeOrBuilder getAlarmRangeOrBuilder(int index)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
      Specified by:
      getAlarmRangeOrBuilder 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
    • addAlarmRangeBuilder

      public Mdb.AlarmRange.Builder addAlarmRangeBuilder()
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • addAlarmRangeBuilder

      public Mdb.AlarmRange.Builder addAlarmRangeBuilder(int index)
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • getAlarmRangeBuilderList

      public List<Mdb.AlarmRange.Builder> getAlarmRangeBuilderList()
       Context-dependent ranges
       
      repeated .yamcs.protobuf.mdb.AlarmRange alarmRange = 25;
    • 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.
    • setExpireMillis

      public Db.ParameterValue.Builder setExpireMillis(long value)
       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;
      Parameters:
      value - The expireMillis to set.
      Returns:
      This builder for chaining.
    • clearExpireMillis

      public Db.ParameterValue.Builder clearExpireMillis()
       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;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Db.ParameterValue.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<Db.ParameterValue.Builder>
    • mergeUnknownFields

      public final Db.ParameterValue.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<Db.ParameterValue.Builder>