Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/service/tap/v2alpha/common.proto
package io.envoyproxy.envoy.service.tap.v2alpha;
/**
*
* Tap match configuration. This is a recursive structure which allows complex nested match
* configurations to be built using various logical operators.
* [#next-free-field: 9]
*
*
* repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... }
*/
public java.util.List
getRulesBuilderList() {
return getRulesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicateOrBuilder>
getRulesFieldBuilder() {
if (rulesBuilder_ == null) {
rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicateOrBuilder>(
rules_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
rules_ = null;
}
return rulesBuilder_;
}
@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.service.tap.v2alpha.MatchPredicate.MatchSet)
}
// @@protoc_insertion_point(class_scope:envoy.service.tap.v2alpha.MatchPredicate.MatchSet)
private static final io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet();
}
public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MatchSet parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MatchSet(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.service.tap.v2alpha.MatchPredicate.MatchSet getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int ruleCase_ = 0;
private java.lang.Object rule_;
public enum RuleCase
implements com.google.protobuf.Internal.EnumLite,
com.google.protobuf.AbstractMessage.InternalOneOfEnum {
OR_MATCH(1),
AND_MATCH(2),
NOT_MATCH(3),
ANY_MATCH(4),
HTTP_REQUEST_HEADERS_MATCH(5),
HTTP_REQUEST_TRAILERS_MATCH(6),
HTTP_RESPONSE_HEADERS_MATCH(7),
HTTP_RESPONSE_TRAILERS_MATCH(8),
RULE_NOT_SET(0);
private final int value;
private RuleCase(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 RuleCase valueOf(int value) {
return forNumber(value);
}
public static RuleCase forNumber(int value) {
switch (value) {
case 1: return OR_MATCH;
case 2: return AND_MATCH;
case 3: return NOT_MATCH;
case 4: return ANY_MATCH;
case 5: return HTTP_REQUEST_HEADERS_MATCH;
case 6: return HTTP_REQUEST_TRAILERS_MATCH;
case 7: return HTTP_RESPONSE_HEADERS_MATCH;
case 8: return HTTP_RESPONSE_TRAILERS_MATCH;
case 0: return RULE_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
public RuleCase
getRuleCase() {
return RuleCase.forNumber(
ruleCase_);
}
public static final int OR_MATCH_FIELD_NUMBER = 1;
/**
*
* A set that describes a logical OR. If any member of the set matches, the match configuration
* matches.
*
*
* .envoy.service.tap.v2alpha.MatchPredicate.MatchSet or_match = 1;
* @return Whether the orMatch field is set.
*/
@java.lang.Override
public boolean hasOrMatch() {
return ruleCase_ == 1;
}
/**
*
* A set that describes a logical OR. If any member of the set matches, the match configuration
* matches.
*
*
* .envoy.service.tap.v2alpha.MatchPredicate.MatchSet or_match = 1;
* @return The orMatch.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet getOrMatch() {
if (ruleCase_ == 1) {
return (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance();
}
/**
*
* A set that describes a logical OR. If any member of the set matches, the match configuration
* matches.
*
*
* .envoy.service.tap.v2alpha.MatchPredicate.MatchSet or_match = 1;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSetOrBuilder getOrMatchOrBuilder() {
if (ruleCase_ == 1) {
return (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance();
}
public static final int AND_MATCH_FIELD_NUMBER = 2;
/**
*
* A set that describes a logical AND. If all members of the set match, the match configuration
* matches.
*
*
* .envoy.service.tap.v2alpha.MatchPredicate.MatchSet and_match = 2;
* @return Whether the andMatch field is set.
*/
@java.lang.Override
public boolean hasAndMatch() {
return ruleCase_ == 2;
}
/**
*
* A set that describes a logical AND. If all members of the set match, the match configuration
* matches.
*
*
* .envoy.service.tap.v2alpha.MatchPredicate.MatchSet and_match = 2;
* @return The andMatch.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet getAndMatch() {
if (ruleCase_ == 2) {
return (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance();
}
/**
*
* A set that describes a logical AND. If all members of the set match, the match configuration
* matches.
*
*
* .envoy.service.tap.v2alpha.MatchPredicate.MatchSet and_match = 2;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSetOrBuilder getAndMatchOrBuilder() {
if (ruleCase_ == 2) {
return (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance();
}
public static final int NOT_MATCH_FIELD_NUMBER = 3;
/**
*
* A negation match. The match configuration will match if the negated match condition matches.
*
*
* .envoy.service.tap.v2alpha.MatchPredicate not_match = 3;
* @return Whether the notMatch field is set.
*/
@java.lang.Override
public boolean hasNotMatch() {
return ruleCase_ == 3;
}
/**
*
* A negation match. The match configuration will match if the negated match condition matches.
*
*
* .envoy.service.tap.v2alpha.MatchPredicate not_match = 3;
* @return The notMatch.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate getNotMatch() {
if (ruleCase_ == 3) {
return (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.getDefaultInstance();
}
/**
*
* A negation match. The match configuration will match if the negated match condition matches.
*
*
* .envoy.service.tap.v2alpha.MatchPredicate not_match = 3;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicateOrBuilder getNotMatchOrBuilder() {
if (ruleCase_ == 3) {
return (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.getDefaultInstance();
}
public static final int ANY_MATCH_FIELD_NUMBER = 4;
/**
*
* The match configuration will always match.
*
*
* bool any_match = 4 [(.validate.rules) = { ... }
* @return Whether the anyMatch field is set.
*/
@java.lang.Override
public boolean hasAnyMatch() {
return ruleCase_ == 4;
}
/**
*
* The match configuration will always match.
*
*
* bool any_match = 4 [(.validate.rules) = { ... }
* @return The anyMatch.
*/
@java.lang.Override
public boolean getAnyMatch() {
if (ruleCase_ == 4) {
return (java.lang.Boolean) rule_;
}
return false;
}
public static final int HTTP_REQUEST_HEADERS_MATCH_FIELD_NUMBER = 5;
/**
*
* HTTP request headers match configuration.
*
*
* .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5;
* @return Whether the httpRequestHeadersMatch field is set.
*/
@java.lang.Override
public boolean hasHttpRequestHeadersMatch() {
return ruleCase_ == 5;
}
/**
*
* HTTP request headers match configuration.
*
*
* .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5;
* @return The httpRequestHeadersMatch.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch getHttpRequestHeadersMatch() {
if (ruleCase_ == 5) {
return (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance();
}
/**
*
* HTTP request headers match configuration.
*
*
* .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder getHttpRequestHeadersMatchOrBuilder() {
if (ruleCase_ == 5) {
return (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance();
}
public static final int HTTP_REQUEST_TRAILERS_MATCH_FIELD_NUMBER = 6;
/**
*
* HTTP request trailers match configuration.
*
*
* .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6;
* @return Whether the httpRequestTrailersMatch field is set.
*/
@java.lang.Override
public boolean hasHttpRequestTrailersMatch() {
return ruleCase_ == 6;
}
/**
*
* HTTP request trailers match configuration.
*
*
* .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6;
* @return The httpRequestTrailersMatch.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch getHttpRequestTrailersMatch() {
if (ruleCase_ == 6) {
return (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance();
}
/**
*
* HTTP request trailers match configuration.
*
*
* .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder getHttpRequestTrailersMatchOrBuilder() {
if (ruleCase_ == 6) {
return (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance();
}
public static final int HTTP_RESPONSE_HEADERS_MATCH_FIELD_NUMBER = 7;
/**
*
* HTTP response headers match configuration.
*
*
* .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7;
* @return Whether the httpResponseHeadersMatch field is set.
*/
@java.lang.Override
public boolean hasHttpResponseHeadersMatch() {
return ruleCase_ == 7;
}
/**
*
* HTTP response headers match configuration.
*
*
* .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7;
* @return The httpResponseHeadersMatch.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch getHttpResponseHeadersMatch() {
if (ruleCase_ == 7) {
return (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance();
}
/**
*
* HTTP response headers match configuration.
*
*
* .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder getHttpResponseHeadersMatchOrBuilder() {
if (ruleCase_ == 7) {
return (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance();
}
public static final int HTTP_RESPONSE_TRAILERS_MATCH_FIELD_NUMBER = 8;
/**
*
* HTTP response trailers match configuration.
*
*
* .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8;
* @return Whether the httpResponseTrailersMatch field is set.
*/
@java.lang.Override
public boolean hasHttpResponseTrailersMatch() {
return ruleCase_ == 8;
}
/**
*
* HTTP response trailers match configuration.
*
*
* .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8;
* @return The httpResponseTrailersMatch.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch getHttpResponseTrailersMatch() {
if (ruleCase_ == 8) {
return (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance();
}
/**
*
* HTTP response trailers match configuration.
*
*
* .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8;
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder getHttpResponseTrailersMatchOrBuilder() {
if (ruleCase_ == 8) {
return (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.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 (ruleCase_ == 1) {
output.writeMessage(1, (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_);
}
if (ruleCase_ == 2) {
output.writeMessage(2, (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_);
}
if (ruleCase_ == 3) {
output.writeMessage(3, (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate) rule_);
}
if (ruleCase_ == 4) {
output.writeBool(
4, (boolean)((java.lang.Boolean) rule_));
}
if (ruleCase_ == 5) {
output.writeMessage(5, (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_);
}
if (ruleCase_ == 6) {
output.writeMessage(6, (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_);
}
if (ruleCase_ == 7) {
output.writeMessage(7, (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_);
}
if (ruleCase_ == 8) {
output.writeMessage(8, (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (ruleCase_ == 1) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_);
}
if (ruleCase_ == 2) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_);
}
if (ruleCase_ == 3) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate) rule_);
}
if (ruleCase_ == 4) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(
4, (boolean)((java.lang.Boolean) rule_));
}
if (ruleCase_ == 5) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_);
}
if (ruleCase_ == 6) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_);
}
if (ruleCase_ == 7) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_);
}
if (ruleCase_ == 8) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_);
}
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.service.tap.v2alpha.MatchPredicate)) {
return super.equals(obj);
}
io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate other = (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate) obj;
if (!getRuleCase().equals(other.getRuleCase())) return false;
switch (ruleCase_) {
case 1:
if (!getOrMatch()
.equals(other.getOrMatch())) return false;
break;
case 2:
if (!getAndMatch()
.equals(other.getAndMatch())) return false;
break;
case 3:
if (!getNotMatch()
.equals(other.getNotMatch())) return false;
break;
case 4:
if (getAnyMatch()
!= other.getAnyMatch()) return false;
break;
case 5:
if (!getHttpRequestHeadersMatch()
.equals(other.getHttpRequestHeadersMatch())) return false;
break;
case 6:
if (!getHttpRequestTrailersMatch()
.equals(other.getHttpRequestTrailersMatch())) return false;
break;
case 7:
if (!getHttpResponseHeadersMatch()
.equals(other.getHttpResponseHeadersMatch())) return false;
break;
case 8:
if (!getHttpResponseTrailersMatch()
.equals(other.getHttpResponseTrailersMatch())) return false;
break;
case 0:
default:
}
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();
switch (ruleCase_) {
case 1:
hash = (37 * hash) + OR_MATCH_FIELD_NUMBER;
hash = (53 * hash) + getOrMatch().hashCode();
break;
case 2:
hash = (37 * hash) + AND_MATCH_FIELD_NUMBER;
hash = (53 * hash) + getAndMatch().hashCode();
break;
case 3:
hash = (37 * hash) + NOT_MATCH_FIELD_NUMBER;
hash = (53 * hash) + getNotMatch().hashCode();
break;
case 4:
hash = (37 * hash) + ANY_MATCH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAnyMatch());
break;
case 5:
hash = (37 * hash) + HTTP_REQUEST_HEADERS_MATCH_FIELD_NUMBER;
hash = (53 * hash) + getHttpRequestHeadersMatch().hashCode();
break;
case 6:
hash = (37 * hash) + HTTP_REQUEST_TRAILERS_MATCH_FIELD_NUMBER;
hash = (53 * hash) + getHttpRequestTrailersMatch().hashCode();
break;
case 7:
hash = (37 * hash) + HTTP_RESPONSE_HEADERS_MATCH_FIELD_NUMBER;
hash = (53 * hash) + getHttpResponseHeadersMatch().hashCode();
break;
case 8:
hash = (37 * hash) + HTTP_RESPONSE_TRAILERS_MATCH_FIELD_NUMBER;
hash = (53 * hash) + getHttpResponseTrailersMatch().hashCode();
break;
case 0:
default:
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate 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.service.tap.v2alpha.MatchPredicate parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate 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.service.tap.v2alpha.MatchPredicate parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate 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.service.tap.v2alpha.MatchPredicate parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate 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.service.tap.v2alpha.MatchPredicate parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate 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.service.tap.v2alpha.MatchPredicate 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;
}
/**
*
* Tap match configuration. This is a recursive structure which allows complex nested match
* configurations to be built using various logical operators.
* [#next-free-field: 9]
*
*
* Protobuf type {@code envoy.service.tap.v2alpha.MatchPredicate}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:envoy.service.tap.v2alpha.MatchPredicate)
io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicateOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_MatchPredicate_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_MatchPredicate_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.class, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder.class);
}
// Construct using io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
ruleCase_ = 0;
rule_ = null;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_MatchPredicate_descriptor;
}
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate getDefaultInstanceForType() {
return io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.getDefaultInstance();
}
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate build() {
io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate buildPartial() {
io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate result = new io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate(this);
if (ruleCase_ == 1) {
if (orMatchBuilder_ == null) {
result.rule_ = rule_;
} else {
result.rule_ = orMatchBuilder_.build();
}
}
if (ruleCase_ == 2) {
if (andMatchBuilder_ == null) {
result.rule_ = rule_;
} else {
result.rule_ = andMatchBuilder_.build();
}
}
if (ruleCase_ == 3) {
if (notMatchBuilder_ == null) {
result.rule_ = rule_;
} else {
result.rule_ = notMatchBuilder_.build();
}
}
if (ruleCase_ == 4) {
result.rule_ = rule_;
}
if (ruleCase_ == 5) {
if (httpRequestHeadersMatchBuilder_ == null) {
result.rule_ = rule_;
} else {
result.rule_ = httpRequestHeadersMatchBuilder_.build();
}
}
if (ruleCase_ == 6) {
if (httpRequestTrailersMatchBuilder_ == null) {
result.rule_ = rule_;
} else {
result.rule_ = httpRequestTrailersMatchBuilder_.build();
}
}
if (ruleCase_ == 7) {
if (httpResponseHeadersMatchBuilder_ == null) {
result.rule_ = rule_;
} else {
result.rule_ = httpResponseHeadersMatchBuilder_.build();
}
}
if (ruleCase_ == 8) {
if (httpResponseTrailersMatchBuilder_ == null) {
result.rule_ = rule_;
} else {
result.rule_ = httpResponseTrailersMatchBuilder_.build();
}
}
result.ruleCase_ = ruleCase_;
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.service.tap.v2alpha.MatchPredicate) {
return mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate other) {
if (other == io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.getDefaultInstance()) return this;
switch (other.getRuleCase()) {
case OR_MATCH: {
mergeOrMatch(other.getOrMatch());
break;
}
case AND_MATCH: {
mergeAndMatch(other.getAndMatch());
break;
}
case NOT_MATCH: {
mergeNotMatch(other.getNotMatch());
break;
}
case ANY_MATCH: {
setAnyMatch(other.getAnyMatch());
break;
}
case HTTP_REQUEST_HEADERS_MATCH: {
mergeHttpRequestHeadersMatch(other.getHttpRequestHeadersMatch());
break;
}
case HTTP_REQUEST_TRAILERS_MATCH: {
mergeHttpRequestTrailersMatch(other.getHttpRequestTrailersMatch());
break;
}
case HTTP_RESPONSE_HEADERS_MATCH: {
mergeHttpResponseHeadersMatch(other.getHttpResponseHeadersMatch());
break;
}
case HTTP_RESPONSE_TRAILERS_MATCH: {
mergeHttpResponseTrailersMatch(other.getHttpResponseTrailersMatch());
break;
}
case RULE_NOT_SET: {
break;
}
}
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.service.tap.v2alpha.MatchPredicate parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int ruleCase_ = 0;
private java.lang.Object rule_;
public RuleCase
getRuleCase() {
return RuleCase.forNumber(
ruleCase_);
}
public Builder clearRule() {
ruleCase_ = 0;
rule_ = null;
onChanged();
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.Builder, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSetOrBuilder> orMatchBuilder_;
/**
*
* A set that describes a logical OR. If any member of the set matches, the match configuration
* matches.
*
*
* .envoy.service.tap.v2alpha.MatchPredicate.MatchSet or_match = 1;
* @return Whether the orMatch field is set.
*/
@java.lang.Override
public boolean hasOrMatch() {
return ruleCase_ == 1;
}
/**
*
* A set that describes a logical OR. If any member of the set matches, the match configuration
* matches.
*
*
* .envoy.service.tap.v2alpha.MatchPredicate.MatchSet or_match = 1;
* @return The orMatch.
*/
@java.lang.Override
public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet getOrMatch() {
if (orMatchBuilder_ == null) {
if (ruleCase_ == 1) {
return (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_;
}
return io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance();
} else {
if (ruleCase_ == 1) {
return orMatchBuilder_.getMessage();
}
return io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance();
}
}
/**
*
* A set that describes a logical OR. If any member of the set matches, the match configuration
* matches.
*