io.envoyproxy.envoy.config.metrics.v2.StatsConfig Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/metrics/v2/stats.proto
package io.envoyproxy.envoy.config.metrics.v2;
/**
*
* Statistics configuration such as tagging.
*
*
* Protobuf type {@code envoy.config.metrics.v2.StatsConfig}
*/
public final class StatsConfig extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.metrics.v2.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();
}
@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.v2.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.v2.StatsMatcher.Builder subBuilder = null;
if (statsMatcher_ != null) {
subBuilder = statsMatcher_.toBuilder();
}
statsMatcher_ = input.readMessage(io.envoyproxy.envoy.config.metrics.v2.StatsMatcher.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(statsMatcher_);
statsMatcher_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.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_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.metrics.v2.StatsProto.internal_static_envoy_config_metrics_v2_StatsConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.metrics.v2.StatsProto.internal_static_envoy_config_metrics_v2_StatsConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.metrics.v2.StatsConfig.class, io.envoyproxy.envoy.config.metrics.v2.StatsConfig.Builder.class);
}
public static final int STATS_TAGS_FIELD_NUMBER = 1;
private java.util.List statsTags_;
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public java.util.List getStatsTagsList() {
return statsTags_;
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public java.util.List extends io.envoyproxy.envoy.config.metrics.v2.TagSpecifierOrBuilder>
getStatsTagsOrBuilderList() {
return statsTags_;
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public int getStatsTagsCount() {
return statsTags_.size();
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public io.envoyproxy.envoy.config.metrics.v2.TagSpecifier getStatsTags(int index) {
return statsTags_.get(index);
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public io.envoyproxy.envoy.config.metrics.v2.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_api_field_config.metrics.v2.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 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_api_field_config.metrics.v2.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 com.google.protobuf.BoolValue getUseAllDefaultTags() {
return useAllDefaultTags_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : useAllDefaultTags_;
}
/**
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_api_field_config.metrics.v2.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 com.google.protobuf.BoolValueOrBuilder getUseAllDefaultTagsOrBuilder() {
return getUseAllDefaultTags();
}
public static final int STATS_MATCHER_FIELD_NUMBER = 3;
private io.envoyproxy.envoy.config.metrics.v2.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.
*
*
* .envoy.config.metrics.v2.StatsMatcher stats_matcher = 3;
*/
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.
*
*
* .envoy.config.metrics.v2.StatsMatcher stats_matcher = 3;
*/
public io.envoyproxy.envoy.config.metrics.v2.StatsMatcher getStatsMatcher() {
return statsMatcher_ == null ? io.envoyproxy.envoy.config.metrics.v2.StatsMatcher.getDefaultInstance() : 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.
*
*
* .envoy.config.metrics.v2.StatsMatcher stats_matcher = 3;
*/
public io.envoyproxy.envoy.config.metrics.v2.StatsMatcherOrBuilder getStatsMatcherOrBuilder() {
return getStatsMatcher();
}
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());
}
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());
}
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.v2.StatsConfig)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.metrics.v2.StatsConfig other = (io.envoyproxy.envoy.config.metrics.v2.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 (!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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.metrics.v2.StatsConfig parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.metrics.v2.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.v2.StatsConfig parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.metrics.v2.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.v2.StatsConfig parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.metrics.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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;
}
/**
*
* Statistics configuration such as tagging.
*
*
* Protobuf type {@code envoy.config.metrics.v2.StatsConfig}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.metrics.v2.StatsConfig)
io.envoyproxy.envoy.config.metrics.v2.StatsConfigOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.metrics.v2.StatsProto.internal_static_envoy_config_metrics_v2_StatsConfig_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.config.metrics.v2.StatsProto.internal_static_envoy_config_metrics_v2_StatsConfig_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.metrics.v2.StatsConfig.class, io.envoyproxy.envoy.config.metrics.v2.StatsConfig.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.metrics.v2.StatsConfig.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStatsTagsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (statsTagsBuilder_ == null) {
statsTags_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
statsTagsBuilder_.clear();
}
if (useAllDefaultTagsBuilder_ == null) {
useAllDefaultTags_ = null;
} else {
useAllDefaultTags_ = null;
useAllDefaultTagsBuilder_ = null;
}
if (statsMatcherBuilder_ == null) {
statsMatcher_ = null;
} else {
statsMatcher_ = null;
statsMatcherBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.metrics.v2.StatsProto.internal_static_envoy_config_metrics_v2_StatsConfig_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.metrics.v2.StatsConfig getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.metrics.v2.StatsConfig.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.metrics.v2.StatsConfig build() {
io.envoyproxy.envoy.config.metrics.v2.StatsConfig result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.metrics.v2.StatsConfig buildPartial() {
io.envoyproxy.envoy.config.metrics.v2.StatsConfig result = new io.envoyproxy.envoy.config.metrics.v2.StatsConfig(this);
int from_bitField0_ = bitField0_;
if (statsTagsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
statsTags_ = java.util.Collections.unmodifiableList(statsTags_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.statsTags_ = statsTags_;
} else {
result.statsTags_ = statsTagsBuilder_.build();
}
if (useAllDefaultTagsBuilder_ == null) {
result.useAllDefaultTags_ = useAllDefaultTags_;
} else {
result.useAllDefaultTags_ = useAllDefaultTagsBuilder_.build();
}
if (statsMatcherBuilder_ == null) {
result.statsMatcher_ = statsMatcher_;
} else {
result.statsMatcher_ = statsMatcherBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.config.metrics.v2.StatsConfig) {
return mergeFrom((io.envoyproxy.envoy.config.metrics.v2.StatsConfig)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.metrics.v2.StatsConfig other) {
if (other == io.envoyproxy.envoy.config.metrics.v2.StatsConfig.getDefaultInstance()) return this;
if (statsTagsBuilder_ == null) {
if (!other.statsTags_.isEmpty()) {
if (statsTags_.isEmpty()) {
statsTags_ = other.statsTags_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStatsTagsIsMutable();
statsTags_.addAll(other.statsTags_);
}
onChanged();
}
} else {
if (!other.statsTags_.isEmpty()) {
if (statsTagsBuilder_.isEmpty()) {
statsTagsBuilder_.dispose();
statsTagsBuilder_ = null;
statsTags_ = other.statsTags_;
bitField0_ = (bitField0_ & ~0x00000001);
statsTagsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStatsTagsFieldBuilder() : null;
} else {
statsTagsBuilder_.addAllMessages(other.statsTags_);
}
}
}
if (other.hasUseAllDefaultTags()) {
mergeUseAllDefaultTags(other.getUseAllDefaultTags());
}
if (other.hasStatsMatcher()) {
mergeStatsMatcher(other.getStatsMatcher());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.config.metrics.v2.StatsConfig parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.config.metrics.v2.StatsConfig) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List statsTags_ =
java.util.Collections.emptyList();
private void ensureStatsTagsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
statsTags_ = new java.util.ArrayList(statsTags_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.metrics.v2.TagSpecifier, io.envoyproxy.envoy.config.metrics.v2.TagSpecifier.Builder, io.envoyproxy.envoy.config.metrics.v2.TagSpecifierOrBuilder> statsTagsBuilder_;
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public java.util.List getStatsTagsList() {
if (statsTagsBuilder_ == null) {
return java.util.Collections.unmodifiableList(statsTags_);
} else {
return statsTagsBuilder_.getMessageList();
}
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public int getStatsTagsCount() {
if (statsTagsBuilder_ == null) {
return statsTags_.size();
} else {
return statsTagsBuilder_.getCount();
}
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public io.envoyproxy.envoy.config.metrics.v2.TagSpecifier getStatsTags(int index) {
if (statsTagsBuilder_ == null) {
return statsTags_.get(index);
} else {
return statsTagsBuilder_.getMessage(index);
}
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public Builder setStatsTags(
int index, io.envoyproxy.envoy.config.metrics.v2.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 iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public Builder setStatsTags(
int index, io.envoyproxy.envoy.config.metrics.v2.TagSpecifier.Builder builderForValue) {
if (statsTagsBuilder_ == null) {
ensureStatsTagsIsMutable();
statsTags_.set(index, builderForValue.build());
onChanged();
} else {
statsTagsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public Builder addStatsTags(io.envoyproxy.envoy.config.metrics.v2.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 iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public Builder addStatsTags(
int index, io.envoyproxy.envoy.config.metrics.v2.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 iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public Builder addStatsTags(
io.envoyproxy.envoy.config.metrics.v2.TagSpecifier.Builder builderForValue) {
if (statsTagsBuilder_ == null) {
ensureStatsTagsIsMutable();
statsTags_.add(builderForValue.build());
onChanged();
} else {
statsTagsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public Builder addStatsTags(
int index, io.envoyproxy.envoy.config.metrics.v2.TagSpecifier.Builder builderForValue) {
if (statsTagsBuilder_ == null) {
ensureStatsTagsIsMutable();
statsTags_.add(index, builderForValue.build());
onChanged();
} else {
statsTagsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public Builder addAllStatsTags(
java.lang.Iterable extends io.envoyproxy.envoy.config.metrics.v2.TagSpecifier> values) {
if (statsTagsBuilder_ == null) {
ensureStatsTagsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, statsTags_);
onChanged();
} else {
statsTagsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public Builder clearStatsTags() {
if (statsTagsBuilder_ == null) {
statsTags_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
statsTagsBuilder_.clear();
}
return this;
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public Builder removeStatsTags(int index) {
if (statsTagsBuilder_ == null) {
ensureStatsTagsIsMutable();
statsTags_.remove(index);
onChanged();
} else {
statsTagsBuilder_.remove(index);
}
return this;
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public io.envoyproxy.envoy.config.metrics.v2.TagSpecifier.Builder getStatsTagsBuilder(
int index) {
return getStatsTagsFieldBuilder().getBuilder(index);
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public io.envoyproxy.envoy.config.metrics.v2.TagSpecifierOrBuilder getStatsTagsOrBuilder(
int index) {
if (statsTagsBuilder_ == null) {
return statsTags_.get(index); } else {
return statsTagsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public java.util.List extends io.envoyproxy.envoy.config.metrics.v2.TagSpecifierOrBuilder>
getStatsTagsOrBuilderList() {
if (statsTagsBuilder_ != null) {
return statsTagsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(statsTags_);
}
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public io.envoyproxy.envoy.config.metrics.v2.TagSpecifier.Builder addStatsTagsBuilder() {
return getStatsTagsFieldBuilder().addBuilder(
io.envoyproxy.envoy.config.metrics.v2.TagSpecifier.getDefaultInstance());
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public io.envoyproxy.envoy.config.metrics.v2.TagSpecifier.Builder addStatsTagsBuilder(
int index) {
return getStatsTagsFieldBuilder().addBuilder(
index, io.envoyproxy.envoy.config.metrics.v2.TagSpecifier.getDefaultInstance());
}
/**
*
* Each stat name is iteratively processed through these tag specifiers.
* When a tag is matched, the first capture group is removed from the name so
* later :ref:`TagSpecifiers <envoy_api_msg_config.metrics.v2.TagSpecifier>` cannot match that
* same portion of the match.
*
*
* repeated .envoy.config.metrics.v2.TagSpecifier stats_tags = 1;
*/
public java.util.List
getStatsTagsBuilderList() {
return getStatsTagsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.metrics.v2.TagSpecifier, io.envoyproxy.envoy.config.metrics.v2.TagSpecifier.Builder, io.envoyproxy.envoy.config.metrics.v2.TagSpecifierOrBuilder>
getStatsTagsFieldBuilder() {
if (statsTagsBuilder_ == null) {
statsTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.config.metrics.v2.TagSpecifier, io.envoyproxy.envoy.config.metrics.v2.TagSpecifier.Builder, io.envoyproxy.envoy.config.metrics.v2.TagSpecifierOrBuilder>(
statsTags_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
statsTags_ = null;
}
return statsTagsBuilder_;
}
private com.google.protobuf.BoolValue useAllDefaultTags_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> useAllDefaultTagsBuilder_;
/**
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_api_field_config.metrics.v2.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 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_api_field_config.metrics.v2.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 com.google.protobuf.BoolValue getUseAllDefaultTags() {
if (useAllDefaultTagsBuilder_ == null) {
return useAllDefaultTags_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : useAllDefaultTags_;
} else {
return useAllDefaultTagsBuilder_.getMessage();
}
}
/**
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_api_field_config.metrics.v2.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_api_field_config.metrics.v2.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.Builder builderForValue) {
if (useAllDefaultTagsBuilder_ == null) {
useAllDefaultTags_ = builderForValue.build();
onChanged();
} else {
useAllDefaultTagsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_api_field_config.metrics.v2.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 mergeUseAllDefaultTags(com.google.protobuf.BoolValue value) {
if (useAllDefaultTagsBuilder_ == null) {
if (useAllDefaultTags_ != null) {
useAllDefaultTags_ =
com.google.protobuf.BoolValue.newBuilder(useAllDefaultTags_).mergeFrom(value).buildPartial();
} else {
useAllDefaultTags_ = value;
}
onChanged();
} else {
useAllDefaultTagsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_api_field_config.metrics.v2.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 clearUseAllDefaultTags() {
if (useAllDefaultTagsBuilder_ == null) {
useAllDefaultTags_ = null;
onChanged();
} else {
useAllDefaultTags_ = null;
useAllDefaultTagsBuilder_ = null;
}
return this;
}
/**
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_api_field_config.metrics.v2.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 com.google.protobuf.BoolValue.Builder getUseAllDefaultTagsBuilder() {
onChanged();
return getUseAllDefaultTagsFieldBuilder().getBuilder();
}
/**
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_api_field_config.metrics.v2.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 com.google.protobuf.BoolValueOrBuilder getUseAllDefaultTagsOrBuilder() {
if (useAllDefaultTagsBuilder_ != null) {
return useAllDefaultTagsBuilder_.getMessageOrBuilder();
} else {
return useAllDefaultTags_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : useAllDefaultTags_;
}
}
/**
*
* Use all default tag regexes specified in Envoy. These can be combined with
* custom tags specified in :ref:`stats_tags
* <envoy_api_field_config.metrics.v2.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;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getUseAllDefaultTagsFieldBuilder() {
if (useAllDefaultTagsBuilder_ == null) {
useAllDefaultTagsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getUseAllDefaultTags(),
getParentForChildren(),
isClean());
useAllDefaultTags_ = null;
}
return useAllDefaultTagsBuilder_;
}
private io.envoyproxy.envoy.config.metrics.v2.StatsMatcher statsMatcher_;
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.metrics.v2.StatsMatcher, io.envoyproxy.envoy.config.metrics.v2.StatsMatcher.Builder, io.envoyproxy.envoy.config.metrics.v2.StatsMatcherOrBuilder> statsMatcherBuilder_;
/**
*
* 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.
*
*
* .envoy.config.metrics.v2.StatsMatcher stats_matcher = 3;
*/
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.
*
*
* .envoy.config.metrics.v2.StatsMatcher stats_matcher = 3;
*/
public io.envoyproxy.envoy.config.metrics.v2.StatsMatcher getStatsMatcher() {
if (statsMatcherBuilder_ == null) {
return statsMatcher_ == null ? io.envoyproxy.envoy.config.metrics.v2.StatsMatcher.getDefaultInstance() : statsMatcher_;
} else {
return statsMatcherBuilder_.getMessage();
}
}
/**
*
* 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.
*
*
* .envoy.config.metrics.v2.StatsMatcher stats_matcher = 3;
*/
public Builder setStatsMatcher(io.envoyproxy.envoy.config.metrics.v2.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.
*
*
* .envoy.config.metrics.v2.StatsMatcher stats_matcher = 3;
*/
public Builder setStatsMatcher(
io.envoyproxy.envoy.config.metrics.v2.StatsMatcher.Builder builderForValue) {
if (statsMatcherBuilder_ == null) {
statsMatcher_ = builderForValue.build();
onChanged();
} else {
statsMatcherBuilder_.setMessage(builderForValue.build());
}
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.
*
*
* .envoy.config.metrics.v2.StatsMatcher stats_matcher = 3;
*/
public Builder mergeStatsMatcher(io.envoyproxy.envoy.config.metrics.v2.StatsMatcher value) {
if (statsMatcherBuilder_ == null) {
if (statsMatcher_ != null) {
statsMatcher_ =
io.envoyproxy.envoy.config.metrics.v2.StatsMatcher.newBuilder(statsMatcher_).mergeFrom(value).buildPartial();
} else {
statsMatcher_ = value;
}
onChanged();
} else {
statsMatcherBuilder_.mergeFrom(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.
*
*
* .envoy.config.metrics.v2.StatsMatcher stats_matcher = 3;
*/
public Builder clearStatsMatcher() {
if (statsMatcherBuilder_ == null) {
statsMatcher_ = null;
onChanged();
} else {
statsMatcher_ = null;
statsMatcherBuilder_ = null;
}
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.
*
*
* .envoy.config.metrics.v2.StatsMatcher stats_matcher = 3;
*/
public io.envoyproxy.envoy.config.metrics.v2.StatsMatcher.Builder getStatsMatcherBuilder() {
onChanged();
return getStatsMatcherFieldBuilder().getBuilder();
}
/**
*
* 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.
*
*
* .envoy.config.metrics.v2.StatsMatcher stats_matcher = 3;
*/
public io.envoyproxy.envoy.config.metrics.v2.StatsMatcherOrBuilder getStatsMatcherOrBuilder() {
if (statsMatcherBuilder_ != null) {
return statsMatcherBuilder_.getMessageOrBuilder();
} else {
return statsMatcher_ == null ?
io.envoyproxy.envoy.config.metrics.v2.StatsMatcher.getDefaultInstance() : 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.
*
*
* .envoy.config.metrics.v2.StatsMatcher stats_matcher = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.metrics.v2.StatsMatcher, io.envoyproxy.envoy.config.metrics.v2.StatsMatcher.Builder, io.envoyproxy.envoy.config.metrics.v2.StatsMatcherOrBuilder>
getStatsMatcherFieldBuilder() {
if (statsMatcherBuilder_ == null) {
statsMatcherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.config.metrics.v2.StatsMatcher, io.envoyproxy.envoy.config.metrics.v2.StatsMatcher.Builder, io.envoyproxy.envoy.config.metrics.v2.StatsMatcherOrBuilder>(
getStatsMatcher(),
getParentForChildren(),
isClean());
statsMatcher_ = null;
}
return statsMatcherBuilder_;
}
@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.v2.StatsConfig)
}
// @@protoc_insertion_point(class_scope:envoy.config.metrics.v2.StatsConfig)
private static final io.envoyproxy.envoy.config.metrics.v2.StatsConfig DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.metrics.v2.StatsConfig();
}
public static io.envoyproxy.envoy.config.metrics.v2.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.v2.StatsConfig getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}