Class DistributionCut.Builder (3.52.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DistributionCut build()
Returns
Type Description
DistributionCut

buildPartial()

public DistributionCut buildPartial()
Returns
Type Description
DistributionCut

clear()

public DistributionCut.Builder clear()
Returns
Type Description
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
Type Description
DistributionCut.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public DistributionCut.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
DistributionCut.Builder

clone()

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

getDefaultInstanceForType()

public DistributionCut getDefaultInstanceForType()
Returns
Type Description
DistributionCut

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
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 = 5;

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DistributionCut.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value Range
Returns
Type Description
DistributionCut.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DistributionCut.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value String

The distributionFilter to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for distributionFilter to set.

Returns
Type Description
DistributionCut.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public DistributionCut.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value Range
Returns
Type Description
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
Name Description
builderForValue Range.Builder
Returns
Type Description
DistributionCut.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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