Class TimeSeriesRatio.Builder (3.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TimeSeriesRatio build()
Returns
TypeDescription
TimeSeriesRatio

buildPartial()

public TimeSeriesRatio buildPartial()
Returns
TypeDescription
TimeSeriesRatio

clear()

public TimeSeriesRatio.Builder clear()
Returns
TypeDescription
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
TypeDescription
TimeSeriesRatio.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public TimeSeriesRatio.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
TimeSeriesRatio.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

public TimeSeriesRatio.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for badServiceFilter.

getDefaultInstanceForType()

public TimeSeriesRatio getDefaultInstanceForType()
Returns
TypeDescription
TimeSeriesRatio

getDescriptorForType()

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

The bytes for totalServiceFilter.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TimeSeriesRatio other)

public TimeSeriesRatio.Builder mergeFrom(TimeSeriesRatio other)
Parameter
NameDescription
otherTimeSeriesRatio
Returns
TypeDescription
TimeSeriesRatio.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TimeSeriesRatio.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TimeSeriesRatio.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TimeSeriesRatio.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The badServiceFilter to set.

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

The bytes for badServiceFilter to set.

Returns
TypeDescription
TimeSeriesRatio.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The goodServiceFilter to set.

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

The bytes for goodServiceFilter to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The totalServiceFilter to set.

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

The bytes for totalServiceFilter to set.

Returns
TypeDescription
TimeSeriesRatio.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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