Class PickTimeSeriesFilter.Builder (2.47.0)

public static final class PickTimeSeriesFilter.Builder extends GeneratedMessageV3.Builder<PickTimeSeriesFilter.Builder> implements PickTimeSeriesFilterOrBuilder

Describes a ranking-based time series filter. Each input time series is ranked with an aligner. The filter will allow up to num_time_series time series to pass through it, selecting them based on the relative ranking.

For example, if ranking_method is METHOD_MEAN,direction is BOTTOM, and num_time_series is 3, then the 3 times series with the lowest mean values will pass through the filter.

Protobuf type google.monitoring.dashboard.v1.PickTimeSeriesFilter

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PickTimeSeriesFilter.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PickTimeSeriesFilter.Builder
Overrides

build()

public PickTimeSeriesFilter build()
Returns
Type Description
PickTimeSeriesFilter

buildPartial()

public PickTimeSeriesFilter buildPartial()
Returns
Type Description
PickTimeSeriesFilter

clear()

public PickTimeSeriesFilter.Builder clear()
Returns
Type Description
PickTimeSeriesFilter.Builder
Overrides

clearDirection()

public PickTimeSeriesFilter.Builder clearDirection()

How to use the ranking to select time series that pass through the filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3;

Returns
Type Description
PickTimeSeriesFilter.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PickTimeSeriesFilter.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PickTimeSeriesFilter.Builder
Overrides

clearInterval()

public PickTimeSeriesFilter.Builder clearInterval()

Select the top N streams/time series within this time interval

.google.type.Interval interval = 4;

Returns
Type Description
PickTimeSeriesFilter.Builder

clearNumTimeSeries()

public PickTimeSeriesFilter.Builder clearNumTimeSeries()

How many time series to allow to pass through the filter.

int32 num_time_series = 2;

Returns
Type Description
PickTimeSeriesFilter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PickTimeSeriesFilter.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PickTimeSeriesFilter.Builder
Overrides

clearRankingMethod()

public PickTimeSeriesFilter.Builder clearRankingMethod()

ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1;

Returns
Type Description
PickTimeSeriesFilter.Builder

This builder for chaining.

clone()

public PickTimeSeriesFilter.Builder clone()
Returns
Type Description
PickTimeSeriesFilter.Builder
Overrides

getDefaultInstanceForType()

public PickTimeSeriesFilter getDefaultInstanceForType()
Returns
Type Description
PickTimeSeriesFilter

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDirection()

public PickTimeSeriesFilter.Direction getDirection()

How to use the ranking to select time series that pass through the filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3;

Returns
Type Description
PickTimeSeriesFilter.Direction

The direction.

getDirectionValue()

public int getDirectionValue()

How to use the ranking to select time series that pass through the filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3;

Returns
Type Description
int

The enum numeric value on the wire for direction.

getInterval()

public Interval getInterval()

Select the top N streams/time series within this time interval

.google.type.Interval interval = 4;

Returns
Type Description
com.google.type.Interval

The interval.

getIntervalBuilder()

public Interval.Builder getIntervalBuilder()

Select the top N streams/time series within this time interval

.google.type.Interval interval = 4;

Returns
Type Description
com.google.type.Interval.Builder

getIntervalOrBuilder()

public IntervalOrBuilder getIntervalOrBuilder()

Select the top N streams/time series within this time interval

.google.type.Interval interval = 4;

Returns
Type Description
com.google.type.IntervalOrBuilder

getNumTimeSeries()

public int getNumTimeSeries()

How many time series to allow to pass through the filter.

int32 num_time_series = 2;

Returns
Type Description
int

The numTimeSeries.

getRankingMethod()

public PickTimeSeriesFilter.Method getRankingMethod()

ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1;

Returns
Type Description
PickTimeSeriesFilter.Method

The rankingMethod.

getRankingMethodValue()

public int getRankingMethodValue()

ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1;

Returns
Type Description
int

The enum numeric value on the wire for rankingMethod.

hasInterval()

public boolean hasInterval()

Select the top N streams/time series within this time interval

.google.type.Interval interval = 4;

Returns
Type Description
boolean

Whether the interval field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PickTimeSeriesFilter other)

public PickTimeSeriesFilter.Builder mergeFrom(PickTimeSeriesFilter other)
Parameter
Name Description
other PickTimeSeriesFilter
Returns
Type Description
PickTimeSeriesFilter.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PickTimeSeriesFilter.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PickTimeSeriesFilter.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PickTimeSeriesFilter.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PickTimeSeriesFilter.Builder
Overrides

mergeInterval(Interval value)

public PickTimeSeriesFilter.Builder mergeInterval(Interval value)

Select the top N streams/time series within this time interval

.google.type.Interval interval = 4;

Parameter
Name Description
value com.google.type.Interval
Returns
Type Description
PickTimeSeriesFilter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PickTimeSeriesFilter.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PickTimeSeriesFilter.Builder
Overrides

setDirection(PickTimeSeriesFilter.Direction value)

public PickTimeSeriesFilter.Builder setDirection(PickTimeSeriesFilter.Direction value)

How to use the ranking to select time series that pass through the filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3;

Parameter
Name Description
value PickTimeSeriesFilter.Direction

The direction to set.

Returns
Type Description
PickTimeSeriesFilter.Builder

This builder for chaining.

setDirectionValue(int value)

public PickTimeSeriesFilter.Builder setDirectionValue(int value)

How to use the ranking to select time series that pass through the filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Direction direction = 3;

Parameter
Name Description
value int

The enum numeric value on the wire for direction to set.

Returns
Type Description
PickTimeSeriesFilter.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PickTimeSeriesFilter.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PickTimeSeriesFilter.Builder
Overrides

setInterval(Interval value)

public PickTimeSeriesFilter.Builder setInterval(Interval value)

Select the top N streams/time series within this time interval

.google.type.Interval interval = 4;

Parameter
Name Description
value com.google.type.Interval
Returns
Type Description
PickTimeSeriesFilter.Builder

setInterval(Interval.Builder builderForValue)

public PickTimeSeriesFilter.Builder setInterval(Interval.Builder builderForValue)

Select the top N streams/time series within this time interval

.google.type.Interval interval = 4;

Parameter
Name Description
builderForValue com.google.type.Interval.Builder
Returns
Type Description
PickTimeSeriesFilter.Builder

setNumTimeSeries(int value)

public PickTimeSeriesFilter.Builder setNumTimeSeries(int value)

How many time series to allow to pass through the filter.

int32 num_time_series = 2;

Parameter
Name Description
value int

The numTimeSeries to set.

Returns
Type Description
PickTimeSeriesFilter.Builder

This builder for chaining.

setRankingMethod(PickTimeSeriesFilter.Method value)

public PickTimeSeriesFilter.Builder setRankingMethod(PickTimeSeriesFilter.Method value)

ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1;

Parameter
Name Description
value PickTimeSeriesFilter.Method

The rankingMethod to set.

Returns
Type Description
PickTimeSeriesFilter.Builder

This builder for chaining.

setRankingMethodValue(int value)

public PickTimeSeriesFilter.Builder setRankingMethodValue(int value)

ranking_method is applied to each time series independently to produce the value which will be used to compare the time series to other time series.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter.Method ranking_method = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for rankingMethod to set.

Returns
Type Description
PickTimeSeriesFilter.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PickTimeSeriesFilter.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PickTimeSeriesFilter.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PickTimeSeriesFilter.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PickTimeSeriesFilter.Builder
Overrides