Class HistogramBucketSettings.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<HistogramBucketSettings.Builder>
com.google.protobuf.GeneratedMessage.Builder<HistogramBucketSettings.Builder>
io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettings.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,HistogramBucketSettingsOrBuilder
,Cloneable
- Enclosing class:
HistogramBucketSettings
public static final class HistogramBucketSettings.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HistogramBucketSettings.Builder>
implements HistogramBucketSettingsOrBuilder
Specifies a matcher for stats and the buckets that matching stats should use.Protobuf type
envoy.config.metrics.v3.HistogramBucketSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private com.google.protobuf.Internal.DoubleList
private StringMatcher
private com.google.protobuf.SingleFieldBuilder
<StringMatcher, StringMatcher.Builder, StringMatcherOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllBuckets
(Iterable<? extends Double> values) Each value is the upper bound of a bucket.addBuckets
(double value) Each value is the upper bound of a bucket.build()
private void
buildPartial0
(HistogramBucketSettings result) clear()
Each value is the upper bound of a bucket.The stats that this rule applies to.private void
private void
ensureBucketsIsMutable
(int capacity) double
getBuckets
(int index) Each value is the upper bound of a bucket.int
Each value is the upper bound of a bucket.Each value is the upper bound of a bucket.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getMatch()
The stats that this rule applies to.The stats that this rule applies to.The stats that this rule applies to.boolean
hasMatch()
The stats that this rule applies to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private com.google.protobuf.SingleFieldBuilder
<StringMatcher, StringMatcher.Builder, StringMatcherOrBuilder> The stats that this rule applies to.final boolean
private void
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(HistogramBucketSettings other) mergeMatch
(StringMatcher value) The stats that this rule applies to.setBuckets
(int index, double value) Each value is the upper bound of a bucket.setMatch
(StringMatcher value) The stats that this rule applies to.setMatch
(StringMatcher.Builder builderForValue) The stats that this rule applies to.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
match_
-
matchBuilder_
private com.google.protobuf.SingleFieldBuilder<StringMatcher,StringMatcher.Builder, matchBuilder_StringMatcherOrBuilder> -
buckets_
private com.google.protobuf.Internal.DoubleList buckets_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<HistogramBucketSettings.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<HistogramBucketSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<HistogramBucketSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HistogramBucketSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<HistogramBucketSettings.Builder>
-
mergeFrom
public HistogramBucketSettings.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HistogramBucketSettings.Builder>
- Throws:
IOException
-
hasMatch
public boolean hasMatch()The stats that this rule applies to. The match is applied to the original stat name before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
.envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
- Specified by:
hasMatch
in interfaceHistogramBucketSettingsOrBuilder
- Returns:
- Whether the match field is set.
-
getMatch
The stats that this rule applies to. The match is applied to the original stat name before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
.envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
- Specified by:
getMatch
in interfaceHistogramBucketSettingsOrBuilder
- Returns:
- The match.
-
setMatch
The stats that this rule applies to. The match is applied to the original stat name before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
.envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
-
setMatch
The stats that this rule applies to. The match is applied to the original stat name before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
.envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
-
mergeMatch
The stats that this rule applies to. The match is applied to the original stat name before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
.envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
-
clearMatch
The stats that this rule applies to. The match is applied to the original stat name before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
.envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
-
getMatchBuilder
The stats that this rule applies to. The match is applied to the original stat name before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
.envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
-
getMatchOrBuilder
The stats that this rule applies to. The match is applied to the original stat name before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
.envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
- Specified by:
getMatchOrBuilder
in interfaceHistogramBucketSettingsOrBuilder
-
internalGetMatchFieldBuilder
private com.google.protobuf.SingleFieldBuilder<StringMatcher,StringMatcher.Builder, internalGetMatchFieldBuilder()StringMatcherOrBuilder> The stats that this rule applies to. The match is applied to the original stat name before tag-extraction, for example ``cluster.exampleclustername.upstream_cx_length_ms``.
.envoy.type.matcher.v3.StringMatcher match = 1 [(.validate.rules) = { ... }
-
ensureBucketsIsMutable
private void ensureBucketsIsMutable() -
ensureBucketsIsMutable
private void ensureBucketsIsMutable(int capacity) -
getBucketsList
Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique. The order of the buckets does not matter.
repeated double buckets = 2 [(.validate.rules) = { ... }
- Specified by:
getBucketsList
in interfaceHistogramBucketSettingsOrBuilder
- Returns:
- A list containing the buckets.
-
getBucketsCount
public int getBucketsCount()Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique. The order of the buckets does not matter.
repeated double buckets = 2 [(.validate.rules) = { ... }
- Specified by:
getBucketsCount
in interfaceHistogramBucketSettingsOrBuilder
- Returns:
- The count of buckets.
-
getBuckets
public double getBuckets(int index) Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique. The order of the buckets does not matter.
repeated double buckets = 2 [(.validate.rules) = { ... }
- Specified by:
getBuckets
in interfaceHistogramBucketSettingsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The buckets at the given index.
-
setBuckets
Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique. The order of the buckets does not matter.
repeated double buckets = 2 [(.validate.rules) = { ... }
- Parameters:
index
- The index to set the value at.value
- The buckets to set.- Returns:
- This builder for chaining.
-
addBuckets
Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique. The order of the buckets does not matter.
repeated double buckets = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The buckets to add.- Returns:
- This builder for chaining.
-
addAllBuckets
Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique. The order of the buckets does not matter.
repeated double buckets = 2 [(.validate.rules) = { ... }
- Parameters:
values
- The buckets to add.- Returns:
- This builder for chaining.
-
clearBuckets
Each value is the upper bound of a bucket. Each bucket must be greater than 0 and unique. The order of the buckets does not matter.
repeated double buckets = 2 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-