Class SpectrumDProto.AggregatedFFTBlock.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<SpectrumDProto.AggregatedFFTBlock.Builder>
de.serosystems.proto.v3.grx.spectrumd.SpectrumDProto.AggregatedFFTBlock.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, SpectrumDProto.AggregatedFFTBlockOrBuilder, Cloneable
Enclosing class:
SpectrumDProto.AggregatedFFTBlock

public static final class SpectrumDProto.AggregatedFFTBlock.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SpectrumDProto.AggregatedFFTBlock.Builder> implements SpectrumDProto.AggregatedFFTBlockOrBuilder

 Aggregated (avg/peak) FFT block, basically one line of a waterfall plot.
 Has observation duration (aggregation_factor * fft_size / sample_rate).
 Response of GetAggregatedFFTBlock() call.
 
Protobuf type serosystems.proto.v3.grx.spectrumd.AggregatedFFTBlock
  • 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<SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SpectrumDProto.AggregatedFFTBlock buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<SpectrumDProto.AggregatedFFTBlock.Builder>
    • setField

      public SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.Builder>
    • clearField

      public SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.Builder>
    • clearOneof

      public SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.Builder>
    • setRepeatedField

      public SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.Builder>
    • addRepeatedField

      public SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.Builder>
    • mergeFrom

      public SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.Builder>
    • mergeFrom

    • isInitialized

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

      public SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.Builder>
      Throws:
      IOException
    • getBinsAvgList

      public List<Float> getBinsAvgList()
      
       Averaged FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is averaged over
        a duration of (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to (center_frequency - 0.5 * sample_rate),
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to (fft_size).
       
      repeated float bins_avg = 1;
      Specified by:
      getBinsAvgList in interface SpectrumDProto.AggregatedFFTBlockOrBuilder
      Returns:
      A list containing the binsAvg.
    • getBinsAvgCount

      public int getBinsAvgCount()
      
       Averaged FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is averaged over
        a duration of (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to (center_frequency - 0.5 * sample_rate),
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to (fft_size).
       
      repeated float bins_avg = 1;
      Specified by:
      getBinsAvgCount in interface SpectrumDProto.AggregatedFFTBlockOrBuilder
      Returns:
      The count of binsAvg.
    • getBinsAvg

      public float getBinsAvg(int index)
      
       Averaged FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is averaged over
        a duration of (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to (center_frequency - 0.5 * sample_rate),
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to (fft_size).
       
      repeated float bins_avg = 1;
      Specified by:
      getBinsAvg in interface SpectrumDProto.AggregatedFFTBlockOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The binsAvg at the given index.
    • setBinsAvg

      public SpectrumDProto.AggregatedFFTBlock.Builder setBinsAvg(int index, float value)
      
       Averaged FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is averaged over
        a duration of (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to (center_frequency - 0.5 * sample_rate),
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to (fft_size).
       
      repeated float bins_avg = 1;
      Parameters:
      index - The index to set the value at.
      value - The binsAvg to set.
      Returns:
      This builder for chaining.
    • addBinsAvg

      public SpectrumDProto.AggregatedFFTBlock.Builder addBinsAvg(float value)
      
       Averaged FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is averaged over
        a duration of (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to (center_frequency - 0.5 * sample_rate),
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to (fft_size).
       
      repeated float bins_avg = 1;
      Parameters:
      value - The binsAvg to add.
      Returns:
      This builder for chaining.
    • addAllBinsAvg

      public SpectrumDProto.AggregatedFFTBlock.Builder addAllBinsAvg(Iterable<? extends Float> values)
      
       Averaged FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is averaged over
        a duration of (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to (center_frequency - 0.5 * sample_rate),
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to (fft_size).
       
      repeated float bins_avg = 1;
      Parameters:
      values - The binsAvg to add.
      Returns:
      This builder for chaining.
    • clearBinsAvg

      
       Averaged FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is averaged over
        a duration of (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to (center_frequency - 0.5 * sample_rate),
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to (fft_size).
       
      repeated float bins_avg = 1;
      Returns:
      This builder for chaining.
    • getBinsPeakList

      public List<Float> getBinsPeakList()
      
       Aggregated (peak=max) FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is the maximum
        observed over a duration of
        (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to center_frequency - 0.5 * sample_rate,
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to fft_size.
      
       Important note: intermediate peak results are highly compressed (using a
        logarithmic representation), thus you will almost certainly note
        "steps" in the data. Small values might be smaller than the average
        values or they might even be -inf, due to a low resolution for low
        values.
        In such cases, the average value represents a "better" peak.
        This should not be an issue for strong signals, though.
       
      repeated float bins_peak = 2;
      Specified by:
      getBinsPeakList in interface SpectrumDProto.AggregatedFFTBlockOrBuilder
      Returns:
      A list containing the binsPeak.
    • getBinsPeakCount

      public int getBinsPeakCount()
      
       Aggregated (peak=max) FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is the maximum
        observed over a duration of
        (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to center_frequency - 0.5 * sample_rate,
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to fft_size.
      
       Important note: intermediate peak results are highly compressed (using a
        logarithmic representation), thus you will almost certainly note
        "steps" in the data. Small values might be smaller than the average
        values or they might even be -inf, due to a low resolution for low
        values.
        In such cases, the average value represents a "better" peak.
        This should not be an issue for strong signals, though.
       
      repeated float bins_peak = 2;
      Specified by:
      getBinsPeakCount in interface SpectrumDProto.AggregatedFFTBlockOrBuilder
      Returns:
      The count of binsPeak.
    • getBinsPeak

      public float getBinsPeak(int index)
      
       Aggregated (peak=max) FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is the maximum
        observed over a duration of
        (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to center_frequency - 0.5 * sample_rate,
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to fft_size.
      
       Important note: intermediate peak results are highly compressed (using a
        logarithmic representation), thus you will almost certainly note
        "steps" in the data. Small values might be smaller than the average
        values or they might even be -inf, due to a low resolution for low
        values.
        In such cases, the average value represents a "better" peak.
        This should not be an issue for strong signals, though.
       
      repeated float bins_peak = 2;
      Specified by:
      getBinsPeak in interface SpectrumDProto.AggregatedFFTBlockOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The binsPeak at the given index.
    • setBinsPeak

      public SpectrumDProto.AggregatedFFTBlock.Builder setBinsPeak(int index, float value)
      
       Aggregated (peak=max) FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is the maximum
        observed over a duration of
        (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to center_frequency - 0.5 * sample_rate,
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to fft_size.
      
       Important note: intermediate peak results are highly compressed (using a
        logarithmic representation), thus you will almost certainly note
        "steps" in the data. Small values might be smaller than the average
        values or they might even be -inf, due to a low resolution for low
        values.
        In such cases, the average value represents a "better" peak.
        This should not be an issue for strong signals, though.
       
      repeated float bins_peak = 2;
      Parameters:
      index - The index to set the value at.
      value - The binsPeak to set.
      Returns:
      This builder for chaining.
    • addBinsPeak

      public SpectrumDProto.AggregatedFFTBlock.Builder addBinsPeak(float value)
      
       Aggregated (peak=max) FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is the maximum
        observed over a duration of
        (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to center_frequency - 0.5 * sample_rate,
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to fft_size.
      
       Important note: intermediate peak results are highly compressed (using a
        logarithmic representation), thus you will almost certainly note
        "steps" in the data. Small values might be smaller than the average
        values or they might even be -inf, due to a low resolution for low
        values.
        In such cases, the average value represents a "better" peak.
        This should not be an issue for strong signals, though.
       
      repeated float bins_peak = 2;
      Parameters:
      value - The binsPeak to add.
      Returns:
      This builder for chaining.
    • addAllBinsPeak

      public SpectrumDProto.AggregatedFFTBlock.Builder addAllBinsPeak(Iterable<? extends Float> values)
      
       Aggregated (peak=max) FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is the maximum
        observed over a duration of
        (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to center_frequency - 0.5 * sample_rate,
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to fft_size.
      
       Important note: intermediate peak results are highly compressed (using a
        logarithmic representation), thus you will almost certainly note
        "steps" in the data. Small values might be smaller than the average
        values or they might even be -inf, due to a low resolution for low
        values.
        In such cases, the average value represents a "better" peak.
        This should not be an issue for strong signals, though.
       
      repeated float bins_peak = 2;
      Parameters:
      values - The binsPeak to add.
      Returns:
      This builder for chaining.
    • clearBinsPeak

      
       Aggregated (peak=max) FFT bins [dBm].
       Each bin has bandwidth (sample_rate / fft_size) and is the maximum
        observed over a duration of
        (aggregation_factor * fft_size / sample_rate).
       The FFT bins are centered around center_frequency, i.e.
        first element corresponds to center_frequency - 0.5 * sample_rate,
        last element corresponds to
         (center_frequency + (0.5 - 1/fft_size) * sample_rate),
        and the center frequency is found at index (fft_size/2).
       The number of FFT bins is fixed to fft_size.
      
       Important note: intermediate peak results are highly compressed (using a
        logarithmic representation), thus you will almost certainly note
        "steps" in the data. Small values might be smaller than the average
        values or they might even be -inf, due to a low resolution for low
        values.
        In such cases, the average value represents a "better" peak.
        This should not be an issue for strong signals, though.
       
      repeated float bins_peak = 2;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.Builder>
    • mergeUnknownFields

      public final SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.Builder>