Class WindowsBasedSli.MetricRange.Builder (3.50.0)

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

A MetricRange is used when each window is good when the value x of a single TimeSeries satisfies range.min <= x <= range.max. The provided TimeSeries must have ValueType = INT64 or ValueType = DOUBLE and MetricKind = GAUGE.

Protobuf type google.monitoring.v3.WindowsBasedSli.MetricRange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public WindowsBasedSli.MetricRange build()
Returns
Type Description
WindowsBasedSli.MetricRange

buildPartial()

public WindowsBasedSli.MetricRange buildPartial()
Returns
Type Description
WindowsBasedSli.MetricRange

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRange()

public WindowsBasedSli.MetricRange.Builder clearRange()

Range of values considered "good." For a one-sided range, set one bound to an infinite value.

.google.monitoring.v3.Range range = 4;

Returns
Type Description
WindowsBasedSli.MetricRange.Builder

clearTimeSeries()

public WindowsBasedSli.MetricRange.Builder clearTimeSeries()

A monitoring filter specifying the TimeSeries to use for evaluating window quality.

string time_series = 1;

Returns
Type Description
WindowsBasedSli.MetricRange.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public WindowsBasedSli.MetricRange getDefaultInstanceForType()
Returns
Type Description
WindowsBasedSli.MetricRange

getDescriptorForType()

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

getRange()

public Range getRange()

Range of values considered "good." For a one-sided range, set one bound to an infinite value.

.google.monitoring.v3.Range range = 4;

Returns
Type Description
Range

The range.

getRangeBuilder()

public Range.Builder getRangeBuilder()

Range of values considered "good." For a one-sided range, set one bound to an infinite value.

.google.monitoring.v3.Range range = 4;

Returns
Type Description
Range.Builder

getRangeOrBuilder()

public RangeOrBuilder getRangeOrBuilder()

Range of values considered "good." For a one-sided range, set one bound to an infinite value.

.google.monitoring.v3.Range range = 4;

Returns
Type Description
RangeOrBuilder

getTimeSeries()

public String getTimeSeries()

A monitoring filter specifying the TimeSeries to use for evaluating window quality.

string time_series = 1;

Returns
Type Description
String

The timeSeries.

getTimeSeriesBytes()

public ByteString getTimeSeriesBytes()

A monitoring filter specifying the TimeSeries to use for evaluating window quality.

string time_series = 1;

Returns
Type Description
ByteString

The bytes for timeSeries.

hasRange()

public boolean hasRange()

Range of values considered "good." For a one-sided range, set one bound to an infinite value.

.google.monitoring.v3.Range range = 4;

Returns
Type Description
boolean

Whether the range 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.MetricRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRange(Range value)

public WindowsBasedSli.MetricRange.Builder mergeRange(Range value)

Range of values considered "good." For a one-sided range, set one bound to an infinite value.

.google.monitoring.v3.Range range = 4;

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setRange(Range value)

public WindowsBasedSli.MetricRange.Builder setRange(Range value)

Range of values considered "good." For a one-sided range, set one bound to an infinite value.

.google.monitoring.v3.Range range = 4;

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

setRange(Range.Builder builderForValue)

public WindowsBasedSli.MetricRange.Builder setRange(Range.Builder builderForValue)

Range of values considered "good." For a one-sided range, set one bound to an infinite value.

.google.monitoring.v3.Range range = 4;

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

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

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

setTimeSeries(String value)

public WindowsBasedSli.MetricRange.Builder setTimeSeries(String value)

A monitoring filter specifying the TimeSeries to use for evaluating window quality.

string time_series = 1;

Parameter
Name Description
value String

The timeSeries to set.

Returns
Type Description
WindowsBasedSli.MetricRange.Builder

This builder for chaining.

setTimeSeriesBytes(ByteString value)

public WindowsBasedSli.MetricRange.Builder setTimeSeriesBytes(ByteString value)

A monitoring filter specifying the TimeSeries to use for evaluating window quality.

string time_series = 1;

Parameter
Name Description
value ByteString

The bytes for timeSeries to set.

Returns
Type Description
WindowsBasedSli.MetricRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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