
io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/api/v2/route/route.proto
package io.envoyproxy.envoy.api.v2.route;
/**
*
* Query parameter matching treats the query string of a request's :path header
* as an ampersand-separated list of keys and/or key=value elements.
*
*
* Protobuf type {@code envoy.api.v2.route.QueryParameterMatcher}
*/
public final class QueryParameterMatcher extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:envoy.api.v2.route.QueryParameterMatcher)
QueryParameterMatcherOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryParameterMatcher.newBuilder() to construct.
private QueryParameterMatcher(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryParameterMatcher() {
name_ = "";
value_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryParameterMatcher(
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;
default: {
if (!parseUnknownFieldProto3(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
java.lang.String s = input.readStringRequireUtf8();
name_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
value_ = s;
break;
}
case 34: {
com.google.protobuf.BoolValue.Builder subBuilder = null;
if (regex_ != null) {
subBuilder = regex_.toBuilder();
}
regex_ = input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(regex_);
regex_ = subBuilder.buildPartial();
}
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.route.RouteProto.internal_static_envoy_api_v2_route_QueryParameterMatcher_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.route.RouteProto.internal_static_envoy_api_v2_route_QueryParameterMatcher_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher.class, io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher.Builder.class);
}
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Specifies the name of a key that must be present in the requested
* *path*'s query string.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
}
}
/**
*
* Specifies the name of a key that must be present in the requested
* *path*'s query string.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 3;
private volatile java.lang.Object value_;
/**
*
* Specifies the value of the key. If the value is absent, a request
* that contains the key in its query string will match, whether the
* key appears with a value (e.g., "?debug=true") or not (e.g., "?debug")
*
*
* string value = 3;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
}
}
/**
*
* Specifies the value of the key. If the value is absent, a request
* that contains the key in its query string will match, whether the
* key appears with a value (e.g., "?debug=true") or not (e.g., "?debug")
*
*
* string value = 3;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REGEX_FIELD_NUMBER = 4;
private com.google.protobuf.BoolValue regex_;
/**
*
* Specifies whether the query parameter value is a regular expression.
* Defaults to false. The entire query parameter value (i.e., the part to
* the right of the equals sign in "key=value") must match the regex.
* E.g., the regex "\d+$" will match "123" but not "a123" or "123a".
*
*
* .google.protobuf.BoolValue regex = 4;
*/
public boolean hasRegex() {
return regex_ != null;
}
/**
*
* Specifies whether the query parameter value is a regular expression.
* Defaults to false. The entire query parameter value (i.e., the part to
* the right of the equals sign in "key=value") must match the regex.
* E.g., the regex "\d+$" will match "123" but not "a123" or "123a".
*
*
* .google.protobuf.BoolValue regex = 4;
*/
public com.google.protobuf.BoolValue getRegex() {
return regex_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : regex_;
}
/**
*
* Specifies whether the query parameter value is a regular expression.
* Defaults to false. The entire query parameter value (i.e., the part to
* the right of the equals sign in "key=value") must match the regex.
* E.g., the regex "\d+$" will match "123" but not "a123" or "123a".
*
*
* .google.protobuf.BoolValue regex = 4;
*/
public com.google.protobuf.BoolValueOrBuilder getRegexOrBuilder() {
return getRegex();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (!getValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, value_);
}
if (regex_ != null) {
output.writeMessage(4, getRegex());
}
unknownFields.writeTo(output);
}
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (!getValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, value_);
}
if (regex_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getRegex());
}
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.api.v2.route.QueryParameterMatcher)) {
return super.equals(obj);
}
io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher other = (io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher) obj;
boolean result = true;
result = result && getName()
.equals(other.getName());
result = result && getValue()
.equals(other.getValue());
result = result && (hasRegex() == other.hasRegex());
if (hasRegex()) {
result = result && getRegex()
.equals(other.getRegex());
}
result = result && unknownFields.equals(other.unknownFields);
return result;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
if (hasRegex()) {
hash = (37 * hash) + REGEX_FIELD_NUMBER;
hash = (53 * hash) + getRegex().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher 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.api.v2.route.QueryParameterMatcher parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher 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.api.v2.route.QueryParameterMatcher parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher 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.api.v2.route.QueryParameterMatcher parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher 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.api.v2.route.QueryParameterMatcher parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
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;
}
/**
*
* Query parameter matching treats the query string of a request's :path header
* as an ampersand-separated list of keys and/or key=value elements.
*
*
* Protobuf type {@code envoy.api.v2.route.QueryParameterMatcher}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.api.v2.route.QueryParameterMatcher)
io.envoyproxy.envoy.api.v2.route.QueryParameterMatcherOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.route.RouteProto.internal_static_envoy_api_v2_route_QueryParameterMatcher_descriptor;
}
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.api.v2.route.RouteProto.internal_static_envoy_api_v2_route_QueryParameterMatcher_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher.class, io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher.Builder.class);
}
// Construct using io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
public Builder clear() {
super.clear();
name_ = "";
value_ = "";
if (regexBuilder_ == null) {
regex_ = null;
} else {
regex_ = null;
regexBuilder_ = null;
}
return this;
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.api.v2.route.RouteProto.internal_static_envoy_api_v2_route_QueryParameterMatcher_descriptor;
}
public io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher getDefaultInstanceForType() {
return io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher.getDefaultInstance();
}
public io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher build() {
io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher buildPartial() {
io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher result = new io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher(this);
result.name_ = name_;
result.value_ = value_;
if (regexBuilder_ == null) {
result.regex_ = regex_;
} else {
result.regex_ = regexBuilder_.build();
}
onBuilt();
return result;
}
public Builder clone() {
return (Builder) super.clone();
}
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.setField(field, value);
}
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return (Builder) super.clearField(field);
}
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return (Builder) super.clearOneof(oneof);
}
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return (Builder) super.setRepeatedField(field, index, value);
}
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return (Builder) super.addRepeatedField(field, value);
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher) {
return mergeFrom((io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher other) {
if (other == io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher.getDefaultInstance()) return this;
if (!other.getName().isEmpty()) {
name_ = other.name_;
onChanged();
}
if (!other.getValue().isEmpty()) {
value_ = other.value_;
onChanged();
}
if (other.hasRegex()) {
mergeRegex(other.getRegex());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object name_ = "";
/**
*
* Specifies the name of a key that must be present in the requested
* *path*'s query string.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Specifies the name of a key that must be present in the requested
* *path*'s query string.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Specifies the name of a key that must be present in the requested
* *path*'s query string.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
name_ = value;
onChanged();
return this;
}
/**
*
* Specifies the name of a key that must be present in the requested
* *path*'s query string.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public Builder clearName() {
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Specifies the name of a key that must be present in the requested
* *path*'s query string.
*
*
* string name = 1 [(.validate.rules) = { ... }
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
name_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
*
* Specifies the value of the key. If the value is absent, a request
* that contains the key in its query string will match, whether the
* key appears with a value (e.g., "?debug=true") or not (e.g., "?debug")
*
*
* string value = 3;
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Specifies the value of the key. If the value is absent, a request
* that contains the key in its query string will match, whether the
* key appears with a value (e.g., "?debug=true") or not (e.g., "?debug")
*
*
* string value = 3;
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Specifies the value of the key. If the value is absent, a request
* that contains the key in its query string will match, whether the
* key appears with a value (e.g., "?debug=true") or not (e.g., "?debug")
*
*
* string value = 3;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
*
* Specifies the value of the key. If the value is absent, a request
* that contains the key in its query string will match, whether the
* key appears with a value (e.g., "?debug=true") or not (e.g., "?debug")
*
*
* string value = 3;
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
*
* Specifies the value of the key. If the value is absent, a request
* that contains the key in its query string will match, whether the
* key appears with a value (e.g., "?debug=true") or not (e.g., "?debug")
*
*
* string value = 3;
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = value;
onChanged();
return this;
}
private com.google.protobuf.BoolValue regex_ = null;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> regexBuilder_;
/**
*
* Specifies whether the query parameter value is a regular expression.
* Defaults to false. The entire query parameter value (i.e., the part to
* the right of the equals sign in "key=value") must match the regex.
* E.g., the regex "\d+$" will match "123" but not "a123" or "123a".
*
*
* .google.protobuf.BoolValue regex = 4;
*/
public boolean hasRegex() {
return regexBuilder_ != null || regex_ != null;
}
/**
*
* Specifies whether the query parameter value is a regular expression.
* Defaults to false. The entire query parameter value (i.e., the part to
* the right of the equals sign in "key=value") must match the regex.
* E.g., the regex "\d+$" will match "123" but not "a123" or "123a".
*
*
* .google.protobuf.BoolValue regex = 4;
*/
public com.google.protobuf.BoolValue getRegex() {
if (regexBuilder_ == null) {
return regex_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : regex_;
} else {
return regexBuilder_.getMessage();
}
}
/**
*
* Specifies whether the query parameter value is a regular expression.
* Defaults to false. The entire query parameter value (i.e., the part to
* the right of the equals sign in "key=value") must match the regex.
* E.g., the regex "\d+$" will match "123" but not "a123" or "123a".
*
*
* .google.protobuf.BoolValue regex = 4;
*/
public Builder setRegex(com.google.protobuf.BoolValue value) {
if (regexBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
regex_ = value;
onChanged();
} else {
regexBuilder_.setMessage(value);
}
return this;
}
/**
*
* Specifies whether the query parameter value is a regular expression.
* Defaults to false. The entire query parameter value (i.e., the part to
* the right of the equals sign in "key=value") must match the regex.
* E.g., the regex "\d+$" will match "123" but not "a123" or "123a".
*
*
* .google.protobuf.BoolValue regex = 4;
*/
public Builder setRegex(
com.google.protobuf.BoolValue.Builder builderForValue) {
if (regexBuilder_ == null) {
regex_ = builderForValue.build();
onChanged();
} else {
regexBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Specifies whether the query parameter value is a regular expression.
* Defaults to false. The entire query parameter value (i.e., the part to
* the right of the equals sign in "key=value") must match the regex.
* E.g., the regex "\d+$" will match "123" but not "a123" or "123a".
*
*
* .google.protobuf.BoolValue regex = 4;
*/
public Builder mergeRegex(com.google.protobuf.BoolValue value) {
if (regexBuilder_ == null) {
if (regex_ != null) {
regex_ =
com.google.protobuf.BoolValue.newBuilder(regex_).mergeFrom(value).buildPartial();
} else {
regex_ = value;
}
onChanged();
} else {
regexBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Specifies whether the query parameter value is a regular expression.
* Defaults to false. The entire query parameter value (i.e., the part to
* the right of the equals sign in "key=value") must match the regex.
* E.g., the regex "\d+$" will match "123" but not "a123" or "123a".
*
*
* .google.protobuf.BoolValue regex = 4;
*/
public Builder clearRegex() {
if (regexBuilder_ == null) {
regex_ = null;
onChanged();
} else {
regex_ = null;
regexBuilder_ = null;
}
return this;
}
/**
*
* Specifies whether the query parameter value is a regular expression.
* Defaults to false. The entire query parameter value (i.e., the part to
* the right of the equals sign in "key=value") must match the regex.
* E.g., the regex "\d+$" will match "123" but not "a123" or "123a".
*
*
* .google.protobuf.BoolValue regex = 4;
*/
public com.google.protobuf.BoolValue.Builder getRegexBuilder() {
onChanged();
return getRegexFieldBuilder().getBuilder();
}
/**
*
* Specifies whether the query parameter value is a regular expression.
* Defaults to false. The entire query parameter value (i.e., the part to
* the right of the equals sign in "key=value") must match the regex.
* E.g., the regex "\d+$" will match "123" but not "a123" or "123a".
*
*
* .google.protobuf.BoolValue regex = 4;
*/
public com.google.protobuf.BoolValueOrBuilder getRegexOrBuilder() {
if (regexBuilder_ != null) {
return regexBuilder_.getMessageOrBuilder();
} else {
return regex_ == null ?
com.google.protobuf.BoolValue.getDefaultInstance() : regex_;
}
}
/**
*
* Specifies whether the query parameter value is a regular expression.
* Defaults to false. The entire query parameter value (i.e., the part to
* the right of the equals sign in "key=value") must match the regex.
* E.g., the regex "\d+$" will match "123" but not "a123" or "123a".
*
*
* .google.protobuf.BoolValue regex = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>
getRegexFieldBuilder() {
if (regexBuilder_ == null) {
regexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>(
getRegex(),
getParentForChildren(),
isClean());
regex_ = null;
}
return regexBuilder_;
}
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFieldsProto3(unknownFields);
}
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:envoy.api.v2.route.QueryParameterMatcher)
}
// @@protoc_insertion_point(class_scope:envoy.api.v2.route.QueryParameterMatcher)
private static final io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher();
}
public static io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
public QueryParameterMatcher parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryParameterMatcher(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public io.envoyproxy.envoy.api.v2.route.QueryParameterMatcher getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy