Class WindowsBasedSli.Builder (3.48.0)

public static final class WindowsBasedSli.Builder extends GeneratedMessageV3.Builder<WindowsBasedSli.Builder> implements WindowsBasedSliOrBuilder

A WindowsBasedSli defines good_service as the count of time windows for which the provided service was of good quality. Criteria for determining if service was good are embedded in the window_criterion.

Protobuf type google.monitoring.v3.WindowsBasedSli

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WindowsBasedSli build()
Returns
Type Description
WindowsBasedSli

buildPartial()

public WindowsBasedSli buildPartial()
Returns
Type Description
WindowsBasedSli

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearGoodBadMetricFilter()

public WindowsBasedSli.Builder clearGoodBadMetricFilter()

A monitoring filter specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.

string good_bad_metric_filter = 5;

Returns
Type Description
WindowsBasedSli.Builder

This builder for chaining.

clearGoodTotalRatioThreshold()

public WindowsBasedSli.Builder clearGoodTotalRatioThreshold()

A window is good if its performance is high enough.

.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2;

Returns
Type Description
WindowsBasedSli.Builder

clearMetricMeanInRange()

public WindowsBasedSli.Builder clearMetricMeanInRange()

A window is good if the metric's value is in a good range, averaged across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;

Returns
Type Description
WindowsBasedSli.Builder

clearMetricSumInRange()

public WindowsBasedSli.Builder clearMetricSumInRange()

A window is good if the metric's value is in a good range, summed across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;

Returns
Type Description
WindowsBasedSli.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWindowCriterion()

public WindowsBasedSli.Builder clearWindowCriterion()
Returns
Type Description
WindowsBasedSli.Builder

clearWindowPeriod()

public WindowsBasedSli.Builder clearWindowPeriod()

Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.

.google.protobuf.Duration window_period = 4;

Returns
Type Description
WindowsBasedSli.Builder

clone()

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

getDefaultInstanceForType()

public WindowsBasedSli getDefaultInstanceForType()
Returns
Type Description
WindowsBasedSli

getDescriptorForType()

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

getGoodBadMetricFilter()

public String getGoodBadMetricFilter()

A monitoring filter specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.

string good_bad_metric_filter = 5;

Returns
Type Description
String

The goodBadMetricFilter.

getGoodBadMetricFilterBytes()

public ByteString getGoodBadMetricFilterBytes()

A monitoring filter specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.

string good_bad_metric_filter = 5;

Returns
Type Description
ByteString

The bytes for goodBadMetricFilter.

getGoodTotalRatioThreshold()

public WindowsBasedSli.PerformanceThreshold getGoodTotalRatioThreshold()

A window is good if its performance is high enough.

.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2;

Returns
Type Description
WindowsBasedSli.PerformanceThreshold

The goodTotalRatioThreshold.

getGoodTotalRatioThresholdBuilder()

public WindowsBasedSli.PerformanceThreshold.Builder getGoodTotalRatioThresholdBuilder()

A window is good if its performance is high enough.

.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2;

Returns
Type Description
WindowsBasedSli.PerformanceThreshold.Builder

getGoodTotalRatioThresholdOrBuilder()

public WindowsBasedSli.PerformanceThresholdOrBuilder getGoodTotalRatioThresholdOrBuilder()

A window is good if its performance is high enough.

.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2;

Returns
Type Description
WindowsBasedSli.PerformanceThresholdOrBuilder

getMetricMeanInRange()

public WindowsBasedSli.MetricRange getMetricMeanInRange()

A window is good if the metric's value is in a good range, averaged across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;

Returns
Type Description
WindowsBasedSli.MetricRange

The metricMeanInRange.

getMetricMeanInRangeBuilder()

public WindowsBasedSli.MetricRange.Builder getMetricMeanInRangeBuilder()

A window is good if the metric's value is in a good range, averaged across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;

Returns
Type Description
WindowsBasedSli.MetricRange.Builder

getMetricMeanInRangeOrBuilder()

public WindowsBasedSli.MetricRangeOrBuilder getMetricMeanInRangeOrBuilder()

A window is good if the metric's value is in a good range, averaged across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;

Returns
Type Description
WindowsBasedSli.MetricRangeOrBuilder

getMetricSumInRange()

public WindowsBasedSli.MetricRange getMetricSumInRange()

A window is good if the metric's value is in a good range, summed across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;

Returns
Type Description
WindowsBasedSli.MetricRange

The metricSumInRange.

getMetricSumInRangeBuilder()

public WindowsBasedSli.MetricRange.Builder getMetricSumInRangeBuilder()

A window is good if the metric's value is in a good range, summed across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;

Returns
Type Description
WindowsBasedSli.MetricRange.Builder

getMetricSumInRangeOrBuilder()

public WindowsBasedSli.MetricRangeOrBuilder getMetricSumInRangeOrBuilder()

A window is good if the metric's value is in a good range, summed across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;

Returns
Type Description
WindowsBasedSli.MetricRangeOrBuilder

getWindowCriterionCase()

public WindowsBasedSli.WindowCriterionCase getWindowCriterionCase()
Returns
Type Description
WindowsBasedSli.WindowCriterionCase

getWindowPeriod()

public Duration getWindowPeriod()

Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.

.google.protobuf.Duration window_period = 4;

Returns
Type Description
Duration

The windowPeriod.

getWindowPeriodBuilder()

public Duration.Builder getWindowPeriodBuilder()

Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.

.google.protobuf.Duration window_period = 4;

Returns
Type Description
Builder

getWindowPeriodOrBuilder()

public DurationOrBuilder getWindowPeriodOrBuilder()

Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.

.google.protobuf.Duration window_period = 4;

Returns
Type Description
DurationOrBuilder

hasGoodBadMetricFilter()

public boolean hasGoodBadMetricFilter()

A monitoring filter specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.

string good_bad_metric_filter = 5;

Returns
Type Description
boolean

Whether the goodBadMetricFilter field is set.

hasGoodTotalRatioThreshold()

public boolean hasGoodTotalRatioThreshold()

A window is good if its performance is high enough.

.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2;

Returns
Type Description
boolean

Whether the goodTotalRatioThreshold field is set.

hasMetricMeanInRange()

public boolean hasMetricMeanInRange()

A window is good if the metric's value is in a good range, averaged across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;

Returns
Type Description
boolean

Whether the metricMeanInRange field is set.

hasMetricSumInRange()

public boolean hasMetricSumInRange()

A window is good if the metric's value is in a good range, summed across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;

Returns
Type Description
boolean

Whether the metricSumInRange field is set.

hasWindowPeriod()

public boolean hasWindowPeriod()

Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.

.google.protobuf.Duration window_period = 4;

Returns
Type Description
boolean

Whether the windowPeriod field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WindowsBasedSli other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeGoodTotalRatioThreshold(WindowsBasedSli.PerformanceThreshold value)

public WindowsBasedSli.Builder mergeGoodTotalRatioThreshold(WindowsBasedSli.PerformanceThreshold value)

A window is good if its performance is high enough.

.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2;

Parameter
Name Description
value WindowsBasedSli.PerformanceThreshold
Returns
Type Description
WindowsBasedSli.Builder

mergeMetricMeanInRange(WindowsBasedSli.MetricRange value)

public WindowsBasedSli.Builder mergeMetricMeanInRange(WindowsBasedSli.MetricRange value)

A window is good if the metric's value is in a good range, averaged across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;

Parameter
Name Description
value WindowsBasedSli.MetricRange
Returns
Type Description
WindowsBasedSli.Builder

mergeMetricSumInRange(WindowsBasedSli.MetricRange value)

public WindowsBasedSli.Builder mergeMetricSumInRange(WindowsBasedSli.MetricRange value)

A window is good if the metric's value is in a good range, summed across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;

Parameter
Name Description
value WindowsBasedSli.MetricRange
Returns
Type Description
WindowsBasedSli.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeWindowPeriod(Duration value)

public WindowsBasedSli.Builder mergeWindowPeriod(Duration value)

Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.

.google.protobuf.Duration window_period = 4;

Parameter
Name Description
value Duration
Returns
Type Description
WindowsBasedSli.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setGoodBadMetricFilter(String value)

public WindowsBasedSli.Builder setGoodBadMetricFilter(String value)

A monitoring filter specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.

string good_bad_metric_filter = 5;

Parameter
Name Description
value String

The goodBadMetricFilter to set.

Returns
Type Description
WindowsBasedSli.Builder

This builder for chaining.

setGoodBadMetricFilterBytes(ByteString value)

public WindowsBasedSli.Builder setGoodBadMetricFilterBytes(ByteString value)

A monitoring filter specifying a TimeSeries with ValueType = BOOL. The window is good if any true values appear in the window.

string good_bad_metric_filter = 5;

Parameter
Name Description
value ByteString

The bytes for goodBadMetricFilter to set.

Returns
Type Description
WindowsBasedSli.Builder

This builder for chaining.

setGoodTotalRatioThreshold(WindowsBasedSli.PerformanceThreshold value)

public WindowsBasedSli.Builder setGoodTotalRatioThreshold(WindowsBasedSli.PerformanceThreshold value)

A window is good if its performance is high enough.

.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2;

Parameter
Name Description
value WindowsBasedSli.PerformanceThreshold
Returns
Type Description
WindowsBasedSli.Builder

setGoodTotalRatioThreshold(WindowsBasedSli.PerformanceThreshold.Builder builderForValue)

public WindowsBasedSli.Builder setGoodTotalRatioThreshold(WindowsBasedSli.PerformanceThreshold.Builder builderForValue)

A window is good if its performance is high enough.

.google.monitoring.v3.WindowsBasedSli.PerformanceThreshold good_total_ratio_threshold = 2;

Parameter
Name Description
builderForValue WindowsBasedSli.PerformanceThreshold.Builder
Returns
Type Description
WindowsBasedSli.Builder

setMetricMeanInRange(WindowsBasedSli.MetricRange value)

public WindowsBasedSli.Builder setMetricMeanInRange(WindowsBasedSli.MetricRange value)

A window is good if the metric's value is in a good range, averaged across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;

Parameter
Name Description
value WindowsBasedSli.MetricRange
Returns
Type Description
WindowsBasedSli.Builder

setMetricMeanInRange(WindowsBasedSli.MetricRange.Builder builderForValue)

public WindowsBasedSli.Builder setMetricMeanInRange(WindowsBasedSli.MetricRange.Builder builderForValue)

A window is good if the metric's value is in a good range, averaged across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_mean_in_range = 6;

Parameter
Name Description
builderForValue WindowsBasedSli.MetricRange.Builder
Returns
Type Description
WindowsBasedSli.Builder

setMetricSumInRange(WindowsBasedSli.MetricRange value)

public WindowsBasedSli.Builder setMetricSumInRange(WindowsBasedSli.MetricRange value)

A window is good if the metric's value is in a good range, summed across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;

Parameter
Name Description
value WindowsBasedSli.MetricRange
Returns
Type Description
WindowsBasedSli.Builder

setMetricSumInRange(WindowsBasedSli.MetricRange.Builder builderForValue)

public WindowsBasedSli.Builder setMetricSumInRange(WindowsBasedSli.MetricRange.Builder builderForValue)

A window is good if the metric's value is in a good range, summed across returned streams.

.google.monitoring.v3.WindowsBasedSli.MetricRange metric_sum_in_range = 7;

Parameter
Name Description
builderForValue WindowsBasedSli.MetricRange.Builder
Returns
Type Description
WindowsBasedSli.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWindowPeriod(Duration value)

public WindowsBasedSli.Builder setWindowPeriod(Duration value)

Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.

.google.protobuf.Duration window_period = 4;

Parameter
Name Description
value Duration
Returns
Type Description
WindowsBasedSli.Builder

setWindowPeriod(Duration.Builder builderForValue)

public WindowsBasedSli.Builder setWindowPeriod(Duration.Builder builderForValue)

Duration over which window quality is evaluated. Must be an integer fraction of a day and at least 60s.

.google.protobuf.Duration window_period = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
WindowsBasedSli.Builder