public static final class DistributionCut.Builder extends com.google.protobuf.GeneratedMessage.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| Modifier and Type | Method and Description |
|---|---|
DistributionCut |
build() |
DistributionCut |
buildPartial() |
DistributionCut.Builder |
clear() |
DistributionCut.Builder |
clearDistributionFilter()
A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
specifying a `TimeSeries` aggregating values.
|
DistributionCut.Builder |
clearRange()
Range of values considered "good."
|
DistributionCut |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDistributionFilter()
A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
specifying a `TimeSeries` aggregating values.
|
com.google.protobuf.ByteString |
getDistributionFilterBytes()
A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
specifying a `TimeSeries` aggregating values.
|
Range |
getRange()
Range of values considered "good."
|
Range.Builder |
getRangeBuilder()
Range of values considered "good."
|
RangeOrBuilder |
getRangeOrBuilder()
Range of values considered "good."
|
boolean |
hasRange()
Range of values considered "good."
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DistributionCut.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DistributionCut.Builder |
mergeFrom(DistributionCut other) |
DistributionCut.Builder |
mergeFrom(com.google.protobuf.Message other) |
DistributionCut.Builder |
mergeRange(Range value)
Range of values considered "good."
|
DistributionCut.Builder |
setDistributionFilter(String value)
A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
specifying a `TimeSeries` aggregating values.
|
DistributionCut.Builder |
setDistributionFilterBytes(com.google.protobuf.ByteString value)
A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
specifying a `TimeSeries` aggregating values.
|
DistributionCut.Builder |
setRange(Range.Builder builderForValue)
Range of values considered "good."
|
DistributionCut.Builder |
setRange(Range value)
Range of values considered "good."
|
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<DistributionCut.Builder>public DistributionCut.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<DistributionCut.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<DistributionCut.Builder>public DistributionCut getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DistributionCut build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DistributionCut buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DistributionCut.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DistributionCut.Builder>public DistributionCut.Builder mergeFrom(DistributionCut other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<DistributionCut.Builder>public DistributionCut.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DistributionCut.Builder>IOExceptionpublic String getDistributionFilter()
A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` aggregating values. Must have `ValueType = DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.
string distribution_filter = 4;getDistributionFilter in interface DistributionCutOrBuilderpublic com.google.protobuf.ByteString getDistributionFilterBytes()
A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` aggregating values. Must have `ValueType = DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.
string distribution_filter = 4;getDistributionFilterBytes in interface DistributionCutOrBuilderpublic DistributionCut.Builder setDistributionFilter(String value)
A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` aggregating values. Must have `ValueType = DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.
string distribution_filter = 4;value - The distributionFilter to set.public DistributionCut.Builder clearDistributionFilter()
A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` aggregating values. Must have `ValueType = DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.
string distribution_filter = 4;public DistributionCut.Builder setDistributionFilterBytes(com.google.protobuf.ByteString value)
A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters) specifying a `TimeSeries` aggregating values. Must have `ValueType = DISTRIBUTION` and `MetricKind = DELTA` or `MetricKind = CUMULATIVE`.
string distribution_filter = 4;value - The bytes for distributionFilter to set.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;hasRange in interface DistributionCutOrBuilderpublic 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;getRange in interface DistributionCutOrBuilderpublic 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;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;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;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;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;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;getRangeOrBuilder in interface DistributionCutOrBuilderCopyright © 2026 Google LLC. All rights reserved.