Class TimeSeriesFilter.Builder (2.56.0)

public static final class TimeSeriesFilter.Builder extends GeneratedMessageV3.Builder<TimeSeriesFilter.Builder> implements TimeSeriesFilterOrBuilder

A filter that defines a subset of time series data that is displayed in a widget. Time series data is fetched using the ListTimeSeries method.

Protobuf type google.monitoring.dashboard.v1.TimeSeriesFilter

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimeSeriesFilter build()
Returns
Type Description
TimeSeriesFilter

buildPartial()

public TimeSeriesFilter buildPartial()
Returns
Type Description
TimeSeriesFilter

clear()

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

clearAggregation()

public TimeSeriesFilter.Builder clearAggregation()

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Returns
Type Description
TimeSeriesFilter.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearFilter()

public TimeSeriesFilter.Builder clearFilter()

Required. The monitoring filter that identifies the metric types, resources, and projects to query.

string filter = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimeSeriesFilter.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOutputFilter()

public TimeSeriesFilter.Builder clearOutputFilter()
Returns
Type Description
TimeSeriesFilter.Builder

clearPickTimeSeriesFilter()

public TimeSeriesFilter.Builder clearPickTimeSeriesFilter()

Ranking based time series filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4;

Returns
Type Description
TimeSeriesFilter.Builder

clearSecondaryAggregation()

public TimeSeriesFilter.Builder clearSecondaryAggregation()

Apply a second aggregation after aggregation is applied.

.google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3;

Returns
Type Description
TimeSeriesFilter.Builder

clearStatisticalTimeSeriesFilter() (deprecated)

public TimeSeriesFilter.Builder clearStatisticalTimeSeriesFilter()

Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.

.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true];

Returns
Type Description
TimeSeriesFilter.Builder

clone()

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

getAggregation()

public Aggregation getAggregation()

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Returns
Type Description
Aggregation

The aggregation.

getAggregationBuilder()

public Aggregation.Builder getAggregationBuilder()

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Returns
Type Description
Aggregation.Builder

getAggregationOrBuilder()

public AggregationOrBuilder getAggregationOrBuilder()

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Returns
Type Description
AggregationOrBuilder

getDefaultInstanceForType()

public TimeSeriesFilter getDefaultInstanceForType()
Returns
Type Description
TimeSeriesFilter

getDescriptorForType()

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

getFilter()

public String getFilter()

Required. The monitoring filter that identifies the metric types, resources, and projects to query.

string filter = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Required. The monitoring filter that identifies the metric types, resources, and projects to query.

string filter = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for filter.

getOutputFilterCase()

public TimeSeriesFilter.OutputFilterCase getOutputFilterCase()
Returns
Type Description
TimeSeriesFilter.OutputFilterCase

getPickTimeSeriesFilter()

public PickTimeSeriesFilter getPickTimeSeriesFilter()

Ranking based time series filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4;

Returns
Type Description
PickTimeSeriesFilter

The pickTimeSeriesFilter.

getPickTimeSeriesFilterBuilder()

public PickTimeSeriesFilter.Builder getPickTimeSeriesFilterBuilder()

Ranking based time series filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4;

Returns
Type Description
PickTimeSeriesFilter.Builder

getPickTimeSeriesFilterOrBuilder()

public PickTimeSeriesFilterOrBuilder getPickTimeSeriesFilterOrBuilder()

Ranking based time series filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4;

Returns
Type Description
PickTimeSeriesFilterOrBuilder

getSecondaryAggregation()

public Aggregation getSecondaryAggregation()

Apply a second aggregation after aggregation is applied.

.google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3;

Returns
Type Description
Aggregation

The secondaryAggregation.

getSecondaryAggregationBuilder()

public Aggregation.Builder getSecondaryAggregationBuilder()

Apply a second aggregation after aggregation is applied.

.google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3;

Returns
Type Description
Aggregation.Builder

getSecondaryAggregationOrBuilder()

public AggregationOrBuilder getSecondaryAggregationOrBuilder()

Apply a second aggregation after aggregation is applied.

.google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3;

Returns
Type Description
AggregationOrBuilder

getStatisticalTimeSeriesFilter() (deprecated)

public StatisticalTimeSeriesFilter getStatisticalTimeSeriesFilter()

Deprecated. google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=89

Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.

.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true];

Returns
Type Description
StatisticalTimeSeriesFilter

The statisticalTimeSeriesFilter.

getStatisticalTimeSeriesFilterBuilder() (deprecated)

public StatisticalTimeSeriesFilter.Builder getStatisticalTimeSeriesFilterBuilder()

Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.

.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true];

Returns
Type Description
StatisticalTimeSeriesFilter.Builder

getStatisticalTimeSeriesFilterOrBuilder() (deprecated)

public StatisticalTimeSeriesFilterOrBuilder getStatisticalTimeSeriesFilterOrBuilder()

Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.

.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true];

Returns
Type Description
StatisticalTimeSeriesFilterOrBuilder

hasAggregation()

public boolean hasAggregation()

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Returns
Type Description
boolean

Whether the aggregation field is set.

hasPickTimeSeriesFilter()

public boolean hasPickTimeSeriesFilter()

Ranking based time series filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4;

Returns
Type Description
boolean

Whether the pickTimeSeriesFilter field is set.

hasSecondaryAggregation()

public boolean hasSecondaryAggregation()

Apply a second aggregation after aggregation is applied.

.google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3;

Returns
Type Description
boolean

Whether the secondaryAggregation field is set.

hasStatisticalTimeSeriesFilter() (deprecated)

public boolean hasStatisticalTimeSeriesFilter()

Deprecated. google.monitoring.dashboard.v1.TimeSeriesFilter.statistical_time_series_filter is deprecated. See google/monitoring/dashboard/v1/metrics.proto;l=89

Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.

.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true];

Returns
Type Description
boolean

Whether the statisticalTimeSeriesFilter field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAggregation(Aggregation value)

public TimeSeriesFilter.Builder mergeAggregation(Aggregation value)

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Parameter
Name Description
value Aggregation
Returns
Type Description
TimeSeriesFilter.Builder

mergeFrom(TimeSeriesFilter other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergePickTimeSeriesFilter(PickTimeSeriesFilter value)

public TimeSeriesFilter.Builder mergePickTimeSeriesFilter(PickTimeSeriesFilter value)

Ranking based time series filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4;

Parameter
Name Description
value PickTimeSeriesFilter
Returns
Type Description
TimeSeriesFilter.Builder

mergeSecondaryAggregation(Aggregation value)

public TimeSeriesFilter.Builder mergeSecondaryAggregation(Aggregation value)

Apply a second aggregation after aggregation is applied.

.google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3;

Parameter
Name Description
value Aggregation
Returns
Type Description
TimeSeriesFilter.Builder

mergeStatisticalTimeSeriesFilter(StatisticalTimeSeriesFilter value) (deprecated)

public TimeSeriesFilter.Builder mergeStatisticalTimeSeriesFilter(StatisticalTimeSeriesFilter value)

Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.

.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true];

Parameter
Name Description
value StatisticalTimeSeriesFilter
Returns
Type Description
TimeSeriesFilter.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAggregation(Aggregation value)

public TimeSeriesFilter.Builder setAggregation(Aggregation value)

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Parameter
Name Description
value Aggregation
Returns
Type Description
TimeSeriesFilter.Builder

setAggregation(Aggregation.Builder builderForValue)

public TimeSeriesFilter.Builder setAggregation(Aggregation.Builder builderForValue)

By default, the raw time series data is returned. Use this field to combine multiple time series for different views of the data.

.google.monitoring.dashboard.v1.Aggregation aggregation = 2;

Parameter
Name Description
builderForValue Aggregation.Builder
Returns
Type Description
TimeSeriesFilter.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilter(String value)

public TimeSeriesFilter.Builder setFilter(String value)

Required. The monitoring filter that identifies the metric types, resources, and projects to query.

string filter = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The filter to set.

Returns
Type Description
TimeSeriesFilter.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public TimeSeriesFilter.Builder setFilterBytes(ByteString value)

Required. The monitoring filter that identifies the metric types, resources, and projects to query.

string filter = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for filter to set.

Returns
Type Description
TimeSeriesFilter.Builder

This builder for chaining.

setPickTimeSeriesFilter(PickTimeSeriesFilter value)

public TimeSeriesFilter.Builder setPickTimeSeriesFilter(PickTimeSeriesFilter value)

Ranking based time series filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4;

Parameter
Name Description
value PickTimeSeriesFilter
Returns
Type Description
TimeSeriesFilter.Builder

setPickTimeSeriesFilter(PickTimeSeriesFilter.Builder builderForValue)

public TimeSeriesFilter.Builder setPickTimeSeriesFilter(PickTimeSeriesFilter.Builder builderForValue)

Ranking based time series filter.

.google.monitoring.dashboard.v1.PickTimeSeriesFilter pick_time_series_filter = 4;

Parameter
Name Description
builderForValue PickTimeSeriesFilter.Builder
Returns
Type Description
TimeSeriesFilter.Builder

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

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

setSecondaryAggregation(Aggregation value)

public TimeSeriesFilter.Builder setSecondaryAggregation(Aggregation value)

Apply a second aggregation after aggregation is applied.

.google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3;

Parameter
Name Description
value Aggregation
Returns
Type Description
TimeSeriesFilter.Builder

setSecondaryAggregation(Aggregation.Builder builderForValue)

public TimeSeriesFilter.Builder setSecondaryAggregation(Aggregation.Builder builderForValue)

Apply a second aggregation after aggregation is applied.

.google.monitoring.dashboard.v1.Aggregation secondary_aggregation = 3;

Parameter
Name Description
builderForValue Aggregation.Builder
Returns
Type Description
TimeSeriesFilter.Builder

setStatisticalTimeSeriesFilter(StatisticalTimeSeriesFilter value) (deprecated)

public TimeSeriesFilter.Builder setStatisticalTimeSeriesFilter(StatisticalTimeSeriesFilter value)

Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.

.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true];

Parameter
Name Description
value StatisticalTimeSeriesFilter
Returns
Type Description
TimeSeriesFilter.Builder

setStatisticalTimeSeriesFilter(StatisticalTimeSeriesFilter.Builder builderForValue) (deprecated)

public TimeSeriesFilter.Builder setStatisticalTimeSeriesFilter(StatisticalTimeSeriesFilter.Builder builderForValue)

Statistics based time series filter. Note: This field is deprecated and completely ignored by the API.

.google.monitoring.dashboard.v1.StatisticalTimeSeriesFilter statistical_time_series_filter = 5 [deprecated = true];

Parameter
Name Description
builderForValue StatisticalTimeSeriesFilter.Builder
Returns
Type Description
TimeSeriesFilter.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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