Class DistributionCut.Builder (3.31.0)

public static final class DistributionCut.Builder extends GeneratedMessageV3.Builder<DistributionCut.Builder> implements DistributionCutOrBuilder

A DistributionCut defines a TimeSeries and thresholds used for measuring good service and total service. The TimeSeries must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE. The computed good_service will be the estimated count of values in the Distribution that fall within the specified min and max.

Protobuf type google.monitoring.v3.DistributionCut

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DistributionCut build()
Returns
TypeDescription
DistributionCut

buildPartial()

public DistributionCut buildPartial()
Returns
TypeDescription
DistributionCut

clear()

public DistributionCut.Builder clear()
Returns
TypeDescription
DistributionCut.Builder
Overrides

clearDistributionFilter()

public DistributionCut.Builder clearDistributionFilter()

A monitoring filter specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.

string distribution_filter = 4;

Returns
TypeDescription
DistributionCut.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public DistributionCut.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DistributionCut.Builder
Overrides

clearRange()

public DistributionCut.Builder clearRange()

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

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

Returns
TypeDescription
DistributionCut.Builder

clone()

public DistributionCut.Builder clone()
Returns
TypeDescription
DistributionCut.Builder
Overrides

getDefaultInstanceForType()

public DistributionCut getDefaultInstanceForType()
Returns
TypeDescription
DistributionCut

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDistributionFilter()

public String getDistributionFilter()

A monitoring filter specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.

string distribution_filter = 4;

Returns
TypeDescription
String

The distributionFilter.

getDistributionFilterBytes()

public ByteString getDistributionFilterBytes()

A monitoring filter specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.

string distribution_filter = 4;

Returns
TypeDescription
ByteString

The bytes for distributionFilter.

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 = 5;

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 = 5;

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 = 5;

Returns
TypeDescription
RangeOrBuilder

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 = 5;

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(DistributionCut other)

public DistributionCut.Builder mergeFrom(DistributionCut other)
Parameter
NameDescription
otherDistributionCut
Returns
TypeDescription
DistributionCut.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRange(Range value)

public DistributionCut.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 = 5;

Parameter
NameDescription
valueRange
Returns
TypeDescription
DistributionCut.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDistributionFilter(String value)

public DistributionCut.Builder setDistributionFilter(String value)

A monitoring filter specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.

string distribution_filter = 4;

Parameter
NameDescription
valueString

The distributionFilter to set.

Returns
TypeDescription
DistributionCut.Builder

This builder for chaining.

setDistributionFilterBytes(ByteString value)

public DistributionCut.Builder setDistributionFilterBytes(ByteString value)

A monitoring filter specifying a TimeSeries aggregating values. Must have ValueType = DISTRIBUTION and MetricKind = DELTA or MetricKind = CUMULATIVE.

string distribution_filter = 4;

Parameter
NameDescription
valueByteString

The bytes for distributionFilter to set.

Returns
TypeDescription
DistributionCut.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setRange(Range value)

public DistributionCut.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 = 5;

Parameter
NameDescription
valueRange
Returns
TypeDescription
DistributionCut.Builder

setRange(Range.Builder builderForValue)

public DistributionCut.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 = 5;

Parameter
NameDescription
builderForValueRange.Builder
Returns
TypeDescription
DistributionCut.Builder

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

public DistributionCut.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DistributionCut.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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