Class WindowsBasedSli.MetricRange.Builder (3.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WindowsBasedSli.MetricRange.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WindowsBasedSli.MetricRange.Builder
Overrides

build()

public WindowsBasedSli.MetricRange build()
Returns
TypeDescription
WindowsBasedSli.MetricRange

buildPartial()

public WindowsBasedSli.MetricRange buildPartial()
Returns
TypeDescription
WindowsBasedSli.MetricRange

clear()

public WindowsBasedSli.MetricRange.Builder clear()
Returns
TypeDescription
WindowsBasedSli.MetricRange.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public WindowsBasedSli.MetricRange.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
WindowsBasedSli.MetricRange.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public WindowsBasedSli.MetricRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
WindowsBasedSli.MetricRange.Builder

This builder for chaining.

clone()

public WindowsBasedSli.MetricRange.Builder clone()
Returns
TypeDescription
WindowsBasedSli.MetricRange.Builder
Overrides

getDefaultInstanceForType()

public WindowsBasedSli.MetricRange getDefaultInstanceForType()
Returns
TypeDescription
WindowsBasedSli.MetricRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RangeOrBuilder

getTimeSeries()

public String getTimeSeries()

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

string time_series = 1;

Returns
TypeDescription
String

The timeSeries.

getTimeSeriesBytes()

public ByteString getTimeSeriesBytes()

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

string time_series = 1;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the range field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(WindowsBasedSli.MetricRange other)

public WindowsBasedSli.MetricRange.Builder mergeFrom(WindowsBasedSli.MetricRange other)
Parameter
NameDescription
otherWindowsBasedSli.MetricRange
Returns
TypeDescription
WindowsBasedSli.MetricRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WindowsBasedSli.MetricRange.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WindowsBasedSli.MetricRange.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public WindowsBasedSli.MetricRange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueRange
Returns
TypeDescription
WindowsBasedSli.MetricRange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WindowsBasedSli.MetricRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WindowsBasedSli.MetricRange.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public WindowsBasedSli.MetricRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueRange
Returns
TypeDescription
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
NameDescription
builderForValueRange.Builder
Returns
TypeDescription
WindowsBasedSli.MetricRange.Builder

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

public WindowsBasedSli.MetricRange.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The timeSeries to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for timeSeries to set.

Returns
TypeDescription
WindowsBasedSli.MetricRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final WindowsBasedSli.MetricRange.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WindowsBasedSli.MetricRange.Builder
Overrides