Class TimeSeriesRatio.Builder (3.55.0)

public static final class TimeSeriesRatio.Builder extends GeneratedMessageV3.Builder<TimeSeriesRatio.Builder> implements TimeSeriesRatioOrBuilder

A TimeSeriesRatio specifies two TimeSeries to use for computing the good_service / total_service ratio. The specified TimeSeries must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE. The TimeSeriesRatio must specify exactly two of good, bad, and total, and the relationship good_service + bad_service = total_service will be assumed.

Protobuf type google.monitoring.v3.TimeSeriesRatio

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimeSeriesRatio build()
Returns
Type Description
TimeSeriesRatio

buildPartial()

public TimeSeriesRatio buildPartial()
Returns
Type Description
TimeSeriesRatio

clear()

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

clearBadServiceFilter()

public TimeSeriesRatio.Builder clearBadServiceFilter()

A monitoring filter specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string bad_service_filter = 5;

Returns
Type Description
TimeSeriesRatio.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearGoodServiceFilter()

public TimeSeriesRatio.Builder clearGoodServiceFilter()

A monitoring filter specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string good_service_filter = 4;

Returns
Type Description
TimeSeriesRatio.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalServiceFilter()

public TimeSeriesRatio.Builder clearTotalServiceFilter()

A monitoring filter specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string total_service_filter = 6;

Returns
Type Description
TimeSeriesRatio.Builder

This builder for chaining.

clone()

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

getBadServiceFilter()

public String getBadServiceFilter()

A monitoring filter specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string bad_service_filter = 5;

Returns
Type Description
String

The badServiceFilter.

getBadServiceFilterBytes()

public ByteString getBadServiceFilterBytes()

A monitoring filter specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string bad_service_filter = 5;

Returns
Type Description
ByteString

The bytes for badServiceFilter.

getDefaultInstanceForType()

public TimeSeriesRatio getDefaultInstanceForType()
Returns
Type Description
TimeSeriesRatio

getDescriptorForType()

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

getGoodServiceFilter()

public String getGoodServiceFilter()

A monitoring filter specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string good_service_filter = 4;

Returns
Type Description
String

The goodServiceFilter.

getGoodServiceFilterBytes()

public ByteString getGoodServiceFilterBytes()

A monitoring filter specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string good_service_filter = 4;

Returns
Type Description
ByteString

The bytes for goodServiceFilter.

getTotalServiceFilter()

public String getTotalServiceFilter()

A monitoring filter specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string total_service_filter = 6;

Returns
Type Description
String

The totalServiceFilter.

getTotalServiceFilterBytes()

public ByteString getTotalServiceFilterBytes()

A monitoring filter specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string total_service_filter = 6;

Returns
Type Description
ByteString

The bytes for totalServiceFilter.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TimeSeriesRatio other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBadServiceFilter(String value)

public TimeSeriesRatio.Builder setBadServiceFilter(String value)

A monitoring filter specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string bad_service_filter = 5;

Parameter
Name Description
value String

The badServiceFilter to set.

Returns
Type Description
TimeSeriesRatio.Builder

This builder for chaining.

setBadServiceFilterBytes(ByteString value)

public TimeSeriesRatio.Builder setBadServiceFilterBytes(ByteString value)

A monitoring filter specifying a TimeSeries quantifying bad service, either demanded service that was not provided or demanded service that was of inadequate quality. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string bad_service_filter = 5;

Parameter
Name Description
value ByteString

The bytes for badServiceFilter to set.

Returns
Type Description
TimeSeriesRatio.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setGoodServiceFilter(String value)

public TimeSeriesRatio.Builder setGoodServiceFilter(String value)

A monitoring filter specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string good_service_filter = 4;

Parameter
Name Description
value String

The goodServiceFilter to set.

Returns
Type Description
TimeSeriesRatio.Builder

This builder for chaining.

setGoodServiceFilterBytes(ByteString value)

public TimeSeriesRatio.Builder setGoodServiceFilterBytes(ByteString value)

A monitoring filter specifying a TimeSeries quantifying good service provided. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string good_service_filter = 4;

Parameter
Name Description
value ByteString

The bytes for goodServiceFilter to set.

Returns
Type Description
TimeSeriesRatio.Builder

This builder for chaining.

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

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

setTotalServiceFilter(String value)

public TimeSeriesRatio.Builder setTotalServiceFilter(String value)

A monitoring filter specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string total_service_filter = 6;

Parameter
Name Description
value String

The totalServiceFilter to set.

Returns
Type Description
TimeSeriesRatio.Builder

This builder for chaining.

setTotalServiceFilterBytes(ByteString value)

public TimeSeriesRatio.Builder setTotalServiceFilterBytes(ByteString value)

A monitoring filter specifying a TimeSeries quantifying total demanded service. Must have ValueType = DOUBLE or ValueType = INT64 and must have MetricKind = DELTA or MetricKind = CUMULATIVE.

string total_service_filter = 6;

Parameter
Name Description
value ByteString

The bytes for totalServiceFilter to set.

Returns
Type Description
TimeSeriesRatio.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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