io.envoyproxy.envoy.config.metrics.v3.StatsMatcher Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/config/metrics/v3/stats.proto
// Protobuf Java Version: 3.25.5
package io.envoyproxy.envoy.config.metrics.v3;
/**
*
* Configuration for disabling stat instantiation.
*
*
* Protobuf type {@code envoy.config.metrics.v3.StatsMatcher}
*/
public final class StatsMatcher extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.config.metrics.v3.StatsMatcher)
StatsMatcherOrBuilder {
private static final long serialVersionUID = 0L;
// Use StatsMatcher.newBuilder() to construct.
private StatsMatcher(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private StatsMatcher() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new StatsMatcher();
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.metrics.v3.StatsProto.internal_static_envoy_config_metrics_v3_StatsMatcher_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_StatsMatcher_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.metrics.v3.StatsMatcher.class, io.envoyproxy.envoy.config.metrics.v3.StatsMatcher.Builder.class);
}
private int statsMatcherCase_ = 0;
@SuppressWarnings("serial")
private java.lang.Object statsMatcher_;
public enum StatsMatcherCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
REJECT_ALL(1),
EXCLUSION_LIST(2),
INCLUSION_LIST(3),
STATSMATCHER_NOT_SET(0);
private final int value;
private StatsMatcherCase(int value) {
this.value = value;
}
/**
* @param value The number of the enum to look for.
* @return The enum associated with the given number.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static StatsMatcherCase valueOf(int value) {
return forNumber(value);
}
public static StatsMatcherCase forNumber(int value) {
switch (value) {
case 1: return REJECT_ALL;
case 2: return EXCLUSION_LIST;
case 3: return INCLUSION_LIST;
case 0: return STATSMATCHER_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public StatsMatcherCase
getStatsMatcherCase() {
return StatsMatcherCase.forNumber(
statsMatcherCase_);
}
public static final int REJECT_ALL_FIELD_NUMBER = 1;
/**
*
* If ``reject_all`` is true, then all stats are disabled. If ``reject_all`` is false, then all
* stats are enabled.
*
*
* bool reject_all = 1;
* @return Whether the rejectAll field is set.
*/
@java.lang.Override
public boolean hasRejectAll() {
return statsMatcherCase_ == 1;
}
/**
*
* If ``reject_all`` is true, then all stats are disabled. If ``reject_all`` is false, then all
* stats are enabled.
*
*
* bool reject_all = 1;
* @return The rejectAll.
*/
@java.lang.Override
public boolean getRejectAll() {
if (statsMatcherCase_ == 1) {
return (java.lang.Boolean) statsMatcher_;
}
return false;
}
public static final int EXCLUSION_LIST_FIELD_NUMBER = 2;
/**
*
* Exclusive match. All stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher exclusion_list = 2;
* @return Whether the exclusionList field is set.
*/
@java.lang.Override
public boolean hasExclusionList() {
return statsMatcherCase_ == 2;
}
/**
*
* Exclusive match. All stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher exclusion_list = 2;
* @return The exclusionList.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher getExclusionList() {
if (statsMatcherCase_ == 2) {
return (io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_;
}
return io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance();
}
/**
*
* Exclusive match. All stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher exclusion_list = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.ListStringMatcherOrBuilder getExclusionListOrBuilder() {
if (statsMatcherCase_ == 2) {
return (io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_;
}
return io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance();
}
public static final int INCLUSION_LIST_FIELD_NUMBER = 3;
/**
*
* Inclusive match. No stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher inclusion_list = 3;
* @return Whether the inclusionList field is set.
*/
@java.lang.Override
public boolean hasInclusionList() {
return statsMatcherCase_ == 3;
}
/**
*
* Inclusive match. No stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher inclusion_list = 3;
* @return The inclusionList.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher getInclusionList() {
if (statsMatcherCase_ == 3) {
return (io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_;
}
return io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance();
}
/**
*
* Inclusive match. No stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher inclusion_list = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.ListStringMatcherOrBuilder getInclusionListOrBuilder() {
if (statsMatcherCase_ == 3) {
return (io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_;
}
return io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance();
}
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 {
if (statsMatcherCase_ == 1) {
output.writeBool(
1, (boolean)((java.lang.Boolean) statsMatcher_));
}
if (statsMatcherCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_);
}
if (statsMatcherCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (statsMatcherCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
1, (boolean)((java.lang.Boolean) statsMatcher_));
}
if (statsMatcherCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_);
}
if (statsMatcherCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_);
}
size += getUnknownFields().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.StatsMatcher)) {
return super.equals(obj);
}
io.envoyproxy.envoy.config.metrics.v3.StatsMatcher other = (io.envoyproxy.envoy.config.metrics.v3.StatsMatcher) obj;
if (!getStatsMatcherCase().equals(other.getStatsMatcherCase())) return false;
switch (statsMatcherCase_) {
case 1:
if (getRejectAll()
!= other.getRejectAll()) return false;
break;
case 2:
if (!getExclusionList()
.equals(other.getExclusionList())) return false;
break;
case 3:
if (!getInclusionList()
.equals(other.getInclusionList())) return false;
break;
case 0:
default:
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
switch (statsMatcherCase_) {
case 1:
hash = (37 * hash) + REJECT_ALL_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRejectAll());
break;
case 2:
hash = (37 * hash) + EXCLUSION_LIST_FIELD_NUMBER;
hash = (53 * hash) + getExclusionList().hashCode();
break;
case 3:
hash = (37 * hash) + INCLUSION_LIST_FIELD_NUMBER;
hash = (53 * hash) + getInclusionList().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsMatcher parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsMatcher 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.StatsMatcher parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsMatcher 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.StatsMatcher parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsMatcher 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.StatsMatcher 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.StatsMatcher 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.StatsMatcher 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.StatsMatcher 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.StatsMatcher 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.StatsMatcher 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.StatsMatcher 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;
}
/**
*
* Configuration for disabling stat instantiation.
*
*
* Protobuf type {@code envoy.config.metrics.v3.StatsMatcher}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.config.metrics.v3.StatsMatcher)
io.envoyproxy.envoy.config.metrics.v3.StatsMatcherOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.config.metrics.v3.StatsProto.internal_static_envoy_config_metrics_v3_StatsMatcher_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_StatsMatcher_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.config.metrics.v3.StatsMatcher.class, io.envoyproxy.envoy.config.metrics.v3.StatsMatcher.Builder.class);
}
// Construct using io.envoyproxy.envoy.config.metrics.v3.StatsMatcher.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (exclusionListBuilder_ != null) {
exclusionListBuilder_.clear();
}
if (inclusionListBuilder_ != null) {
inclusionListBuilder_.clear();
}
statsMatcherCase_ = 0;
statsMatcher_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.config.metrics.v3.StatsProto.internal_static_envoy_config_metrics_v3_StatsMatcher_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.config.metrics.v3.StatsMatcher getDefaultInstanceForType() {
return io.envoyproxy.envoy.config.metrics.v3.StatsMatcher.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.config.metrics.v3.StatsMatcher build() {
io.envoyproxy.envoy.config.metrics.v3.StatsMatcher result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.config.metrics.v3.StatsMatcher buildPartial() {
io.envoyproxy.envoy.config.metrics.v3.StatsMatcher result = new io.envoyproxy.envoy.config.metrics.v3.StatsMatcher(this);
if (bitField0_ != 0) { buildPartial0(result); }
buildPartialOneofs(result);
onBuilt();
return result;
}
private void buildPartial0(io.envoyproxy.envoy.config.metrics.v3.StatsMatcher result) {
int from_bitField0_ = bitField0_;
}
private void buildPartialOneofs(io.envoyproxy.envoy.config.metrics.v3.StatsMatcher result) {
result.statsMatcherCase_ = statsMatcherCase_;
result.statsMatcher_ = this.statsMatcher_;
if (statsMatcherCase_ == 2 &&
exclusionListBuilder_ != null) {
result.statsMatcher_ = exclusionListBuilder_.build();
}
if (statsMatcherCase_ == 3 &&
inclusionListBuilder_ != null) {
result.statsMatcher_ = inclusionListBuilder_.build();
}
}
@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.v3.StatsMatcher) {
return mergeFrom((io.envoyproxy.envoy.config.metrics.v3.StatsMatcher)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.config.metrics.v3.StatsMatcher other) {
if (other == io.envoyproxy.envoy.config.metrics.v3.StatsMatcher.getDefaultInstance()) return this;
switch (other.getStatsMatcherCase()) {
case REJECT_ALL: {
setRejectAll(other.getRejectAll());
break;
}
case EXCLUSION_LIST: {
mergeExclusionList(other.getExclusionList());
break;
}
case INCLUSION_LIST: {
mergeInclusionList(other.getInclusionList());
break;
}
case STATSMATCHER_NOT_SET: {
break;
}
}
this.mergeUnknownFields(other.getUnknownFields());
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 {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
statsMatcher_ = input.readBool();
statsMatcherCase_ = 1;
break;
} // case 8
case 18: {
input.readMessage(
getExclusionListFieldBuilder().getBuilder(),
extensionRegistry);
statsMatcherCase_ = 2;
break;
} // case 18
case 26: {
input.readMessage(
getInclusionListFieldBuilder().getBuilder(),
extensionRegistry);
statsMatcherCase_ = 3;
break;
} // case 26
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int statsMatcherCase_ = 0;
private java.lang.Object statsMatcher_;
public StatsMatcherCase
getStatsMatcherCase() {
return StatsMatcherCase.forNumber(
statsMatcherCase_);
}
public Builder clearStatsMatcher() {
statsMatcherCase_ = 0;
statsMatcher_ = null;
onChanged();
return this;
}
private int bitField0_;
/**
*
* If ``reject_all`` is true, then all stats are disabled. If ``reject_all`` is false, then all
* stats are enabled.
*
*
* bool reject_all = 1;
* @return Whether the rejectAll field is set.
*/
public boolean hasRejectAll() {
return statsMatcherCase_ == 1;
}
/**
*
* If ``reject_all`` is true, then all stats are disabled. If ``reject_all`` is false, then all
* stats are enabled.
*
*
* bool reject_all = 1;
* @return The rejectAll.
*/
public boolean getRejectAll() {
if (statsMatcherCase_ == 1) {
return (java.lang.Boolean) statsMatcher_;
}
return false;
}
/**
*
* If ``reject_all`` is true, then all stats are disabled. If ``reject_all`` is false, then all
* stats are enabled.
*
*
* bool reject_all = 1;
* @param value The rejectAll to set.
* @return This builder for chaining.
*/
public Builder setRejectAll(boolean value) {
statsMatcherCase_ = 1;
statsMatcher_ = value;
onChanged();
return this;
}
/**
*
* If ``reject_all`` is true, then all stats are disabled. If ``reject_all`` is false, then all
* stats are enabled.
*
*
* bool reject_all = 1;
* @return This builder for chaining.
*/
public Builder clearRejectAll() {
if (statsMatcherCase_ == 1) {
statsMatcherCase_ = 0;
statsMatcher_ = null;
onChanged();
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher, io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.ListStringMatcherOrBuilder> exclusionListBuilder_;
/**
*
* Exclusive match. All stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher exclusion_list = 2;
* @return Whether the exclusionList field is set.
*/
@java.lang.Override
public boolean hasExclusionList() {
return statsMatcherCase_ == 2;
}
/**
*
* Exclusive match. All stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher exclusion_list = 2;
* @return The exclusionList.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher getExclusionList() {
if (exclusionListBuilder_ == null) {
if (statsMatcherCase_ == 2) {
return (io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_;
}
return io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance();
} else {
if (statsMatcherCase_ == 2) {
return exclusionListBuilder_.getMessage();
}
return io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance();
}
}
/**
*
* Exclusive match. All stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher exclusion_list = 2;
*/
public Builder setExclusionList(io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher value) {
if (exclusionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statsMatcher_ = value;
onChanged();
} else {
exclusionListBuilder_.setMessage(value);
}
statsMatcherCase_ = 2;
return this;
}
/**
*
* Exclusive match. All stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher exclusion_list = 2;
*/
public Builder setExclusionList(
io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.Builder builderForValue) {
if (exclusionListBuilder_ == null) {
statsMatcher_ = builderForValue.build();
onChanged();
} else {
exclusionListBuilder_.setMessage(builderForValue.build());
}
statsMatcherCase_ = 2;
return this;
}
/**
*
* Exclusive match. All stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher exclusion_list = 2;
*/
public Builder mergeExclusionList(io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher value) {
if (exclusionListBuilder_ == null) {
if (statsMatcherCase_ == 2 &&
statsMatcher_ != io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance()) {
statsMatcher_ = io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.newBuilder((io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_)
.mergeFrom(value).buildPartial();
} else {
statsMatcher_ = value;
}
onChanged();
} else {
if (statsMatcherCase_ == 2) {
exclusionListBuilder_.mergeFrom(value);
} else {
exclusionListBuilder_.setMessage(value);
}
}
statsMatcherCase_ = 2;
return this;
}
/**
*
* Exclusive match. All stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher exclusion_list = 2;
*/
public Builder clearExclusionList() {
if (exclusionListBuilder_ == null) {
if (statsMatcherCase_ == 2) {
statsMatcherCase_ = 0;
statsMatcher_ = null;
onChanged();
}
} else {
if (statsMatcherCase_ == 2) {
statsMatcherCase_ = 0;
statsMatcher_ = null;
}
exclusionListBuilder_.clear();
}
return this;
}
/**
*
* Exclusive match. All stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher exclusion_list = 2;
*/
public io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.Builder getExclusionListBuilder() {
return getExclusionListFieldBuilder().getBuilder();
}
/**
*
* Exclusive match. All stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher exclusion_list = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.ListStringMatcherOrBuilder getExclusionListOrBuilder() {
if ((statsMatcherCase_ == 2) && (exclusionListBuilder_ != null)) {
return exclusionListBuilder_.getMessageOrBuilder();
} else {
if (statsMatcherCase_ == 2) {
return (io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_;
}
return io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance();
}
}
/**
*
* Exclusive match. All stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher exclusion_list = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher, io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.ListStringMatcherOrBuilder>
getExclusionListFieldBuilder() {
if (exclusionListBuilder_ == null) {
if (!(statsMatcherCase_ == 2)) {
statsMatcher_ = io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance();
}
exclusionListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher, io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.ListStringMatcherOrBuilder>(
(io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_,
getParentForChildren(),
isClean());
statsMatcher_ = null;
}
statsMatcherCase_ = 2;
onChanged();
return exclusionListBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher, io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.ListStringMatcherOrBuilder> inclusionListBuilder_;
/**
*
* Inclusive match. No stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher inclusion_list = 3;
* @return Whether the inclusionList field is set.
*/
@java.lang.Override
public boolean hasInclusionList() {
return statsMatcherCase_ == 3;
}
/**
*
* Inclusive match. No stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher inclusion_list = 3;
* @return The inclusionList.
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher getInclusionList() {
if (inclusionListBuilder_ == null) {
if (statsMatcherCase_ == 3) {
return (io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_;
}
return io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance();
} else {
if (statsMatcherCase_ == 3) {
return inclusionListBuilder_.getMessage();
}
return io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance();
}
}
/**
*
* Inclusive match. No stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher inclusion_list = 3;
*/
public Builder setInclusionList(io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher value) {
if (inclusionListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statsMatcher_ = value;
onChanged();
} else {
inclusionListBuilder_.setMessage(value);
}
statsMatcherCase_ = 3;
return this;
}
/**
*
* Inclusive match. No stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher inclusion_list = 3;
*/
public Builder setInclusionList(
io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.Builder builderForValue) {
if (inclusionListBuilder_ == null) {
statsMatcher_ = builderForValue.build();
onChanged();
} else {
inclusionListBuilder_.setMessage(builderForValue.build());
}
statsMatcherCase_ = 3;
return this;
}
/**
*
* Inclusive match. No stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher inclusion_list = 3;
*/
public Builder mergeInclusionList(io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher value) {
if (inclusionListBuilder_ == null) {
if (statsMatcherCase_ == 3 &&
statsMatcher_ != io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance()) {
statsMatcher_ = io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.newBuilder((io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_)
.mergeFrom(value).buildPartial();
} else {
statsMatcher_ = value;
}
onChanged();
} else {
if (statsMatcherCase_ == 3) {
inclusionListBuilder_.mergeFrom(value);
} else {
inclusionListBuilder_.setMessage(value);
}
}
statsMatcherCase_ = 3;
return this;
}
/**
*
* Inclusive match. No stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher inclusion_list = 3;
*/
public Builder clearInclusionList() {
if (inclusionListBuilder_ == null) {
if (statsMatcherCase_ == 3) {
statsMatcherCase_ = 0;
statsMatcher_ = null;
onChanged();
}
} else {
if (statsMatcherCase_ == 3) {
statsMatcherCase_ = 0;
statsMatcher_ = null;
}
inclusionListBuilder_.clear();
}
return this;
}
/**
*
* Inclusive match. No stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher inclusion_list = 3;
*/
public io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.Builder getInclusionListBuilder() {
return getInclusionListFieldBuilder().getBuilder();
}
/**
*
* Inclusive match. No stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher inclusion_list = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.type.matcher.v3.ListStringMatcherOrBuilder getInclusionListOrBuilder() {
if ((statsMatcherCase_ == 3) && (inclusionListBuilder_ != null)) {
return inclusionListBuilder_.getMessageOrBuilder();
} else {
if (statsMatcherCase_ == 3) {
return (io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_;
}
return io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance();
}
}
/**
*
* Inclusive match. No stats are enabled except for those matching one of the supplied
* StringMatcher protos.
*
*
* .envoy.type.matcher.v3.ListStringMatcher inclusion_list = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher, io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.ListStringMatcherOrBuilder>
getInclusionListFieldBuilder() {
if (inclusionListBuilder_ == null) {
if (!(statsMatcherCase_ == 3)) {
statsMatcher_ = io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.getDefaultInstance();
}
inclusionListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher, io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.ListStringMatcherOrBuilder>(
(io.envoyproxy.envoy.type.matcher.v3.ListStringMatcher) statsMatcher_,
getParentForChildren(),
isClean());
statsMatcher_ = null;
}
statsMatcherCase_ = 3;
onChanged();
return inclusionListBuilder_;
}
@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.StatsMatcher)
}
// @@protoc_insertion_point(class_scope:envoy.config.metrics.v3.StatsMatcher)
private static final io.envoyproxy.envoy.config.metrics.v3.StatsMatcher DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.metrics.v3.StatsMatcher();
}
public static io.envoyproxy.envoy.config.metrics.v3.StatsMatcher getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public StatsMatcher parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
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.StatsMatcher getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy