Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/metrics/v3/stats.proto
package io.envoyproxy.envoy.config.metrics.v3;
/**
*
* Statistics configuration such as tagging.
*
*
* Protobuf type {@code envoy.config.metrics.v3.StatsConfig}
*/
public final class StatsConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.metrics.v3.StatsConfig)
StatsConfigOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatsConfig.newBuilder() to construct.
private StatsConfig(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatsConfig() {
statsTags_ = java.util.Collections.emptyList();
histogramBucketSettings_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StatsConfig();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StatsConfig(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
statsTags_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
statsTags_.add(
input.readMessage(io.envoyproxy.envoy.config.metrics.v3.TagSpecifier.parser(), extensionRegistry));
break;
}
case 18: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (useAllDefaultTags_ != null) {
subBuilder = useAllDefaultTags_.toBuilder();
}
useAllDefaultTags_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(useAllDefaultTags_);
useAllDefaultTags_ = subBuilder.buildPartial();
}
break;
}
case 26: {
io.envoyproxy.envoy.config.metrics.v3.StatsMatcher.Builder subBuilder = null;
if (statsMatcher_ != null) {
subBuilder = statsMatcher_.toBuilder();
}
statsMatcher_ = input.readMessage(io.envoyproxy.envoy.config.metrics.v3.StatsMatcher.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(statsMatcher_);
statsMatcher_ = subBuilder.buildPartial();
}
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
histogramBucketSettings_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
histogramBucketSettings_.add(
input.readMessage(io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettings.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
statsTags_ = java.util.Collections.unmodifiableList(statsTags_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
histogramBucketSettings_ = java.util.Collections.unmodifiableList(histogramBucketSettings_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.metrics.v3.StatsProto.internal_static_envoy_config_metrics_v3_StatsConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.metrics.v3.StatsProto.internal_static_envoy_config_metrics_v3_StatsConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.metrics.v3.StatsConfig.class, io.envoyproxy.envoy.config.metrics.v3.StatsConfig.Builder.class);
}
public static final int STATS_TAGS_FIELD_NUMBER = 1;
private java.util.List statsTags_;
/**
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
*
* repeated .envoy.config.metrics.v3.TagSpecifier stats_tags = 1;
*/
@java.lang.Override
public int getStatsTagsCount() {
return statsTags_.size();
}
/**
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
*
* repeated .envoy.config.metrics.v3.TagSpecifier stats_tags = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.metrics.v3.TagSpecifierOrBuilder getStatsTagsOrBuilder(
int index) {
return statsTags_.get(index);
}
public static final int USE_ALL_DEFAULT_TAGS_FIELD_NUMBER = 2;
private com.google.protobuf.BoolValue useAllDefaultTags_;
/**
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_v3_api_field_config.metrics.v3.StatsConfig.stats_tags>`. They will be processed before
* the custom tags.
* .. note::
* If any default tags are specified twice, the config will be considered
* invalid.
* See :repo:`well_known_names.h <source/common/config/well_known_names.h>` for a list of the
* default tags in Envoy.
* If not provided, the value is assumed to be true.
*
*
* .google.protobuf.BoolValue use_all_default_tags = 2;
* @return Whether the useAllDefaultTags field is set.
*/
@java.lang.Override
public boolean hasUseAllDefaultTags() {
return useAllDefaultTags_ != null;
}
/**
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_v3_api_field_config.metrics.v3.StatsConfig.stats_tags>`. They will be processed before
* the custom tags.
* .. note::
* If any default tags are specified twice, the config will be considered
* invalid.
* See :repo:`well_known_names.h <source/common/config/well_known_names.h>` for a list of the
* default tags in Envoy.
* If not provided, the value is assumed to be true.
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_v3_api_field_config.metrics.v3.StatsConfig.stats_tags>`. They will be processed before
* the custom tags.
* .. note::
* If any default tags are specified twice, the config will be considered
* invalid.
* See :repo:`well_known_names.h <source/common/config/well_known_names.h>` for a list of the
* default tags in Envoy.
* If not provided, the value is assumed to be true.
*
*
* .google.protobuf.BoolValue use_all_default_tags = 2;
*/
@java.lang.Override
public com.google.protobuf.BoolValueOrBuilder getUseAllDefaultTagsOrBuilder() {
return getUseAllDefaultTags();
}
public static final int STATS_MATCHER_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.config.metrics.v3.StatsMatcher statsMatcher_;
/**
*
* Inclusion/exclusion matcher for stat name creation. If not provided, all stats are instantiated
* as normal. Preventing the instantiation of certain families of stats can improve memory
* performance for Envoys running especially large configs.
* .. warning::
* Excluding stats may affect Envoy's behavior in undocumented ways. See
* `issue #8771 <https://github.com/envoyproxy/envoy/issues/8771>`_ for more information.
* If any unexpected behavior changes are observed, please open a new issue immediately.
*
*
* .envoy.config.metrics.v3.StatsMatcher stats_matcher = 3;
* @return Whether the statsMatcher field is set.
*/
@java.lang.Override
public boolean hasStatsMatcher() {
return statsMatcher_ != null;
}
/**
*
* Inclusion/exclusion matcher for stat name creation. If not provided, all stats are instantiated
* as normal. Preventing the instantiation of certain families of stats can improve memory
* performance for Envoys running especially large configs.
* .. warning::
* Excluding stats may affect Envoy's behavior in undocumented ways. See
* `issue #8771 <https://github.com/envoyproxy/envoy/issues/8771>`_ for more information.
* If any unexpected behavior changes are observed, please open a new issue immediately.
*
* Inclusion/exclusion matcher for stat name creation. If not provided, all stats are instantiated
* as normal. Preventing the instantiation of certain families of stats can improve memory
* performance for Envoys running especially large configs.
* .. warning::
* Excluding stats may affect Envoy's behavior in undocumented ways. See
* `issue #8771 <https://github.com/envoyproxy/envoy/issues/8771>`_ for more information.
* If any unexpected behavior changes are observed, please open a new issue immediately.
*
*
* .envoy.config.metrics.v3.StatsMatcher stats_matcher = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.metrics.v3.StatsMatcherOrBuilder getStatsMatcherOrBuilder() {
return getStatsMatcher();
}
public static final int HISTOGRAM_BUCKET_SETTINGS_FIELD_NUMBER = 4;
private java.util.List histogramBucketSettings_;
/**
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
*
* repeated .envoy.config.metrics.v3.HistogramBucketSettings histogram_bucket_settings = 4;
*/
@java.lang.Override
public int getHistogramBucketSettingsCount() {
return histogramBucketSettings_.size();
}
/**
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
*
* repeated .envoy.config.metrics.v3.HistogramBucketSettings histogram_bucket_settings = 4;
*/
@java.lang.Override
public io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettingsOrBuilder getHistogramBucketSettingsOrBuilder(
int index) {
return histogramBucketSettings_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < statsTags_.size(); i++) {
output.writeMessage(1, statsTags_.get(i));
}
if (useAllDefaultTags_ != null) {
output.writeMessage(2, getUseAllDefaultTags());
}
if (statsMatcher_ != null) {
output.writeMessage(3, getStatsMatcher());
}
for (int i = 0; i < histogramBucketSettings_.size(); i++) {
output.writeMessage(4, histogramBucketSettings_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < statsTags_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, statsTags_.get(i));
}
if (useAllDefaultTags_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getUseAllDefaultTags());
}
if (statsMatcher_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getStatsMatcher());
}
for (int i = 0; i < histogramBucketSettings_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, histogramBucketSettings_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof io.envoyproxy.envoy.config.metrics.v3.StatsConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.metrics.v3.StatsConfig other = (io.envoyproxy.envoy.config.metrics.v3.StatsConfig) obj;
if (!getStatsTagsList()
.equals(other.getStatsTagsList())) return false;
if (hasUseAllDefaultTags() != other.hasUseAllDefaultTags()) return false;
if (hasUseAllDefaultTags()) {
if (!getUseAllDefaultTags()
.equals(other.getUseAllDefaultTags())) return false;
}
if (hasStatsMatcher() != other.hasStatsMatcher()) return false;
if (hasStatsMatcher()) {
if (!getStatsMatcher()
.equals(other.getStatsMatcher())) return false;
}
if (!getHistogramBucketSettingsList()
.equals(other.getHistogramBucketSettingsList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (getStatsTagsCount() > 0) {
hash = (37 * hash) + STATS_TAGS_FIELD_NUMBER;
hash = (53 * hash) + getStatsTagsList().hashCode();
}
if (hasUseAllDefaultTags()) {
hash = (37 * hash) + USE_ALL_DEFAULT_TAGS_FIELD_NUMBER;
hash = (53 * hash) + getUseAllDefaultTags().hashCode();
}
if (hasStatsMatcher()) {
hash = (37 * hash) + STATS_MATCHER_FIELD_NUMBER;
hash = (53 * hash) + getStatsMatcher().hashCode();
}
if (getHistogramBucketSettingsCount() > 0) {
hash = (37 * hash) + HISTOGRAM_BUCKET_SETTINGS_FIELD_NUMBER;
hash = (53 * hash) + getHistogramBucketSettingsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.config.metrics.v3.StatsConfig prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
*
* repeated .envoy.config.metrics.v3.TagSpecifier stats_tags = 1;
*/
public int getStatsTagsCount() {
if (statsTagsBuilder_ == null) {
return statsTags_.size();
} else {
return statsTagsBuilder_.getCount();
}
}
/**
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
*
* repeated .envoy.config.metrics.v3.TagSpecifier stats_tags = 1;
*/
public Builder setStatsTags(
int index, io.envoyproxy.envoy.config.metrics.v3.TagSpecifier value) {
if (statsTagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatsTagsIsMutable();
statsTags_.set(index, value);
onChanged();
} else {
statsTagsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
*
* repeated .envoy.config.metrics.v3.TagSpecifier stats_tags = 1;
*/
public Builder addStatsTags(io.envoyproxy.envoy.config.metrics.v3.TagSpecifier value) {
if (statsTagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatsTagsIsMutable();
statsTags_.add(value);
onChanged();
} else {
statsTagsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
*
* repeated .envoy.config.metrics.v3.TagSpecifier stats_tags = 1;
*/
public Builder addStatsTags(
int index, io.envoyproxy.envoy.config.metrics.v3.TagSpecifier value) {
if (statsTagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatsTagsIsMutable();
statsTags_.add(index, value);
onChanged();
} else {
statsTagsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
*
* repeated .envoy.config.metrics.v3.TagSpecifier stats_tags = 1;
*/
public io.envoyproxy.envoy.config.metrics.v3.TagSpecifier.Builder getStatsTagsBuilder(
int index) {
return getStatsTagsFieldBuilder().getBuilder(index);
}
/**
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
*
* repeated .envoy.config.metrics.v3.TagSpecifier stats_tags = 1;
*/
public io.envoyproxy.envoy.config.metrics.v3.TagSpecifierOrBuilder getStatsTagsOrBuilder(
int index) {
if (statsTagsBuilder_ == null) {
return statsTags_.get(index); } else {
return statsTagsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Each stat name is independently processed through these tag specifiers. When a tag is
* matched, the first capture group is not immediately removed from the name, so later
* :ref:`TagSpecifiers <envoy_v3_api_msg_config.metrics.v3.TagSpecifier>` can also match that
* same portion of the match. After all tag matching is complete, a tag-extracted version of
* the name is produced and is used in stats sinks that represent tags, such as Prometheus.
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_v3_api_field_config.metrics.v3.StatsConfig.stats_tags>`. They will be processed before
* the custom tags.
* .. note::
* If any default tags are specified twice, the config will be considered
* invalid.
* See :repo:`well_known_names.h <source/common/config/well_known_names.h>` for a list of the
* default tags in Envoy.
* If not provided, the value is assumed to be true.
*
*
* .google.protobuf.BoolValue use_all_default_tags = 2;
* @return Whether the useAllDefaultTags field is set.
*/
public boolean hasUseAllDefaultTags() {
return useAllDefaultTagsBuilder_ != null || useAllDefaultTags_ != null;
}
/**
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_v3_api_field_config.metrics.v3.StatsConfig.stats_tags>`. They will be processed before
* the custom tags.
* .. note::
* If any default tags are specified twice, the config will be considered
* invalid.
* See :repo:`well_known_names.h <source/common/config/well_known_names.h>` for a list of the
* default tags in Envoy.
* If not provided, the value is assumed to be true.
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_v3_api_field_config.metrics.v3.StatsConfig.stats_tags>`. They will be processed before
* the custom tags.
* .. note::
* If any default tags are specified twice, the config will be considered
* invalid.
* See :repo:`well_known_names.h <source/common/config/well_known_names.h>` for a list of the
* default tags in Envoy.
* If not provided, the value is assumed to be true.
*
*
* .google.protobuf.BoolValue use_all_default_tags = 2;
*/
public Builder setUseAllDefaultTags(com.google.protobuf.BoolValue value) {
if (useAllDefaultTagsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
useAllDefaultTags_ = value;
onChanged();
} else {
useAllDefaultTagsBuilder_.setMessage(value);
}
return this;
}
/**
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_v3_api_field_config.metrics.v3.StatsConfig.stats_tags>`. They will be processed before
* the custom tags.
* .. note::
* If any default tags are specified twice, the config will be considered
* invalid.
* See :repo:`well_known_names.h <source/common/config/well_known_names.h>` for a list of the
* default tags in Envoy.
* If not provided, the value is assumed to be true.
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_v3_api_field_config.metrics.v3.StatsConfig.stats_tags>`. They will be processed before
* the custom tags.
* .. note::
* If any default tags are specified twice, the config will be considered
* invalid.
* See :repo:`well_known_names.h <source/common/config/well_known_names.h>` for a list of the
* default tags in Envoy.
* If not provided, the value is assumed to be true.
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_v3_api_field_config.metrics.v3.StatsConfig.stats_tags>`. They will be processed before
* the custom tags.
* .. note::
* If any default tags are specified twice, the config will be considered
* invalid.
* See :repo:`well_known_names.h <source/common/config/well_known_names.h>` for a list of the
* default tags in Envoy.
* If not provided, the value is assumed to be true.
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_v3_api_field_config.metrics.v3.StatsConfig.stats_tags>`. They will be processed before
* the custom tags.
* .. note::
* If any default tags are specified twice, the config will be considered
* invalid.
* See :repo:`well_known_names.h <source/common/config/well_known_names.h>` for a list of the
* default tags in Envoy.
* If not provided, the value is assumed to be true.
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_v3_api_field_config.metrics.v3.StatsConfig.stats_tags>`. They will be processed before
* the custom tags.
* .. note::
* If any default tags are specified twice, the config will be considered
* invalid.
* See :repo:`well_known_names.h <source/common/config/well_known_names.h>` for a list of the
* default tags in Envoy.
* If not provided, the value is assumed to be true.
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_v3_api_field_config.metrics.v3.StatsConfig.stats_tags>`. They will be processed before
* the custom tags.
* .. note::
* If any default tags are specified twice, the config will be considered
* invalid.
* See :repo:`well_known_names.h <source/common/config/well_known_names.h>` for a list of the
* default tags in Envoy.
* If not provided, the value is assumed to be true.
*
* Inclusion/exclusion matcher for stat name creation. If not provided, all stats are instantiated
* as normal. Preventing the instantiation of certain families of stats can improve memory
* performance for Envoys running especially large configs.
* .. warning::
* Excluding stats may affect Envoy's behavior in undocumented ways. See
* `issue #8771 <https://github.com/envoyproxy/envoy/issues/8771>`_ for more information.
* If any unexpected behavior changes are observed, please open a new issue immediately.
*
*
* .envoy.config.metrics.v3.StatsMatcher stats_matcher = 3;
* @return Whether the statsMatcher field is set.
*/
public boolean hasStatsMatcher() {
return statsMatcherBuilder_ != null || statsMatcher_ != null;
}
/**
*
* Inclusion/exclusion matcher for stat name creation. If not provided, all stats are instantiated
* as normal. Preventing the instantiation of certain families of stats can improve memory
* performance for Envoys running especially large configs.
* .. warning::
* Excluding stats may affect Envoy's behavior in undocumented ways. See
* `issue #8771 <https://github.com/envoyproxy/envoy/issues/8771>`_ for more information.
* If any unexpected behavior changes are observed, please open a new issue immediately.
*
* Inclusion/exclusion matcher for stat name creation. If not provided, all stats are instantiated
* as normal. Preventing the instantiation of certain families of stats can improve memory
* performance for Envoys running especially large configs.
* .. warning::
* Excluding stats may affect Envoy's behavior in undocumented ways. See
* `issue #8771 <https://github.com/envoyproxy/envoy/issues/8771>`_ for more information.
* If any unexpected behavior changes are observed, please open a new issue immediately.
*
*
* .envoy.config.metrics.v3.StatsMatcher stats_matcher = 3;
*/
public Builder setStatsMatcher(io.envoyproxy.envoy.config.metrics.v3.StatsMatcher value) {
if (statsMatcherBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statsMatcher_ = value;
onChanged();
} else {
statsMatcherBuilder_.setMessage(value);
}
return this;
}
/**
*
* Inclusion/exclusion matcher for stat name creation. If not provided, all stats are instantiated
* as normal. Preventing the instantiation of certain families of stats can improve memory
* performance for Envoys running especially large configs.
* .. warning::
* Excluding stats may affect Envoy's behavior in undocumented ways. See
* `issue #8771 <https://github.com/envoyproxy/envoy/issues/8771>`_ for more information.
* If any unexpected behavior changes are observed, please open a new issue immediately.
*
* Inclusion/exclusion matcher for stat name creation. If not provided, all stats are instantiated
* as normal. Preventing the instantiation of certain families of stats can improve memory
* performance for Envoys running especially large configs.
* .. warning::
* Excluding stats may affect Envoy's behavior in undocumented ways. See
* `issue #8771 <https://github.com/envoyproxy/envoy/issues/8771>`_ for more information.
* If any unexpected behavior changes are observed, please open a new issue immediately.
*
* Inclusion/exclusion matcher for stat name creation. If not provided, all stats are instantiated
* as normal. Preventing the instantiation of certain families of stats can improve memory
* performance for Envoys running especially large configs.
* .. warning::
* Excluding stats may affect Envoy's behavior in undocumented ways. See
* `issue #8771 <https://github.com/envoyproxy/envoy/issues/8771>`_ for more information.
* If any unexpected behavior changes are observed, please open a new issue immediately.
*
* Inclusion/exclusion matcher for stat name creation. If not provided, all stats are instantiated
* as normal. Preventing the instantiation of certain families of stats can improve memory
* performance for Envoys running especially large configs.
* .. warning::
* Excluding stats may affect Envoy's behavior in undocumented ways. See
* `issue #8771 <https://github.com/envoyproxy/envoy/issues/8771>`_ for more information.
* If any unexpected behavior changes are observed, please open a new issue immediately.
*
* Inclusion/exclusion matcher for stat name creation. If not provided, all stats are instantiated
* as normal. Preventing the instantiation of certain families of stats can improve memory
* performance for Envoys running especially large configs.
* .. warning::
* Excluding stats may affect Envoy's behavior in undocumented ways. See
* `issue #8771 <https://github.com/envoyproxy/envoy/issues/8771>`_ for more information.
* If any unexpected behavior changes are observed, please open a new issue immediately.
*
* Inclusion/exclusion matcher for stat name creation. If not provided, all stats are instantiated
* as normal. Preventing the instantiation of certain families of stats can improve memory
* performance for Envoys running especially large configs.
* .. warning::
* Excluding stats may affect Envoy's behavior in undocumented ways. See
* `issue #8771 <https://github.com/envoyproxy/envoy/issues/8771>`_ for more information.
* If any unexpected behavior changes are observed, please open a new issue immediately.
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
*
* repeated .envoy.config.metrics.v3.HistogramBucketSettings histogram_bucket_settings = 4;
*/
public int getHistogramBucketSettingsCount() {
if (histogramBucketSettingsBuilder_ == null) {
return histogramBucketSettings_.size();
} else {
return histogramBucketSettingsBuilder_.getCount();
}
}
/**
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
*
* repeated .envoy.config.metrics.v3.HistogramBucketSettings histogram_bucket_settings = 4;
*/
public Builder setHistogramBucketSettings(
int index, io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettings value) {
if (histogramBucketSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHistogramBucketSettingsIsMutable();
histogramBucketSettings_.set(index, value);
onChanged();
} else {
histogramBucketSettingsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
*
* repeated .envoy.config.metrics.v3.HistogramBucketSettings histogram_bucket_settings = 4;
*/
public Builder addHistogramBucketSettings(io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettings value) {
if (histogramBucketSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHistogramBucketSettingsIsMutable();
histogramBucketSettings_.add(value);
onChanged();
} else {
histogramBucketSettingsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
*
* repeated .envoy.config.metrics.v3.HistogramBucketSettings histogram_bucket_settings = 4;
*/
public Builder addHistogramBucketSettings(
int index, io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettings value) {
if (histogramBucketSettingsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHistogramBucketSettingsIsMutable();
histogramBucketSettings_.add(index, value);
onChanged();
} else {
histogramBucketSettingsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
*
* repeated .envoy.config.metrics.v3.HistogramBucketSettings histogram_bucket_settings = 4;
*/
public io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettings.Builder getHistogramBucketSettingsBuilder(
int index) {
return getHistogramBucketSettingsFieldBuilder().getBuilder(index);
}
/**
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
*
* repeated .envoy.config.metrics.v3.HistogramBucketSettings histogram_bucket_settings = 4;
*/
public io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettingsOrBuilder getHistogramBucketSettingsOrBuilder(
int index) {
if (histogramBucketSettingsBuilder_ == null) {
return histogramBucketSettings_.get(index); } else {
return histogramBucketSettingsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
* Defines rules for setting the histogram buckets. Rules are evaluated in order, and the first
* match is applied. If no match is found (or if no rules are set), the following default buckets
* are used:
* .. code-block:: json
* [
* 0.5,
* 1,
* 5,
* 10,
* 25,
* 50,
* 100,
* 250,
* 500,
* 1000,
* 2500,
* 5000,
* 10000,
* 30000,
* 60000,
* 300000,
* 600000,
* 1800000,
* 3600000
* ]
*
*
* repeated .envoy.config.metrics.v3.HistogramBucketSettings histogram_bucket_settings = 4;
*/
public java.util.List
getHistogramBucketSettingsBuilderList() {
return getHistogramBucketSettingsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettings, io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettings.Builder, io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettingsOrBuilder>
getHistogramBucketSettingsFieldBuilder() {
if (histogramBucketSettingsBuilder_ == null) {
histogramBucketSettingsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettings, io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettings.Builder, io.envoyproxy.envoy.config.metrics.v3.HistogramBucketSettingsOrBuilder>(
histogramBucketSettings_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
histogramBucketSettings_ = null;
}
return histogramBucketSettingsBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.config.metrics.v3.StatsConfig)
}
// @@protoc_insertion_point(class_scope:envoy.config.metrics.v3.StatsConfig)
private static final io.envoyproxy.envoy.config.metrics.v3.StatsConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.metrics.v3.StatsConfig();
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsConfig getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatsConfig parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StatsConfig(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public io.envoyproxy.envoy.config.metrics.v3.StatsConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}