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 Summary
Modifier and TypeMethodDescriptionaddAllBinsAvg
(Iterable<? extends Float> values) Averaged FFT bins [dBm].addAllBinsPeak
(Iterable<? extends Float> values) Aggregated (peak=max) FFT bins [dBm].addBinsAvg
(float value) Averaged FFT bins [dBm].addBinsPeak
(float value) Aggregated (peak=max) FFT bins [dBm].addRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Averaged FFT bins [dBm].Aggregated (peak=max) FFT bins [dBm].clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()
float
getBinsAvg
(int index) Averaged FFT bins [dBm].int
Averaged FFT bins [dBm].Averaged FFT bins [dBm].float
getBinsPeak
(int index) Aggregated (peak=max) FFT bins [dBm].int
Aggregated (peak=max) FFT bins [dBm].Aggregated (peak=max) FFT bins [dBm].static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setBinsAvg
(int index, float value) Averaged FFT bins [dBm].setBinsPeak
(int index, float value) Aggregated (peak=max) FFT bins [dBm].setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, 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.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
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<SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.Builder>
-
setField
public SpectrumDProto.AggregatedFFTBlock.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<SpectrumDProto.AggregatedFFTBlock.Builder>
-
clearField
public SpectrumDProto.AggregatedFFTBlock.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpectrumDProto.AggregatedFFTBlock.Builder>
-
clearOneof
public SpectrumDProto.AggregatedFFTBlock.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpectrumDProto.AggregatedFFTBlock.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SpectrumDProto.AggregatedFFTBlock.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SpectrumDProto.AggregatedFFTBlock.Builder>
- Throws:
IOException
-
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 interfaceSpectrumDProto.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 interfaceSpectrumDProto.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 interfaceSpectrumDProto.AggregatedFFTBlockOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The binsAvg at the given index.
-
setBinsAvg
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
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
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
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 interfaceSpectrumDProto.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 interfaceSpectrumDProto.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 interfaceSpectrumDProto.AggregatedFFTBlockOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The binsPeak at the given index.
-
setBinsPeak
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
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
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpectrumDProto.AggregatedFFTBlock.Builder>
-
mergeUnknownFields
public final SpectrumDProto.AggregatedFFTBlock.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpectrumDProto.AggregatedFFTBlock.Builder>
-