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 intprivate com.google.protobuf.Internal.DoubleListprivate StringMatcherprivate 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 voidbuildPartial0(HistogramBucketSettings result) clear()Each value is the upper bound of a bucket.The stats that this rule applies to.private voidprivate voidensureBucketsIsMutable(int capacity) doublegetBuckets(int index) Each value is the upper bound of a bucket.intEach value is the upper bound of a bucket.Each value is the upper bound of a bucket.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMatch()The stats that this rule applies to.The stats that this rule applies to.The stats that this rule applies to.booleanhasMatch()The stats that this rule applies to.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<StringMatcher, StringMatcher.Builder, StringMatcherOrBuilder> The stats that this rule applies to.final booleanprivate voidmergeFrom(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HistogramBucketSettings.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HistogramBucketSettings.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HistogramBucketSettings.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HistogramBucketSettings.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasMatchin 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:
getMatchin 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:
getMatchOrBuilderin 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:
getBucketsListin 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:
getBucketsCountin 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:
getBucketsin 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.
-