All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
// 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.
 * 
* * Protobuf type {@code envoy.service.tap.v2alpha.MatchPredicate} */ public final class MatchPredicate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.tap.v2alpha.MatchPredicate) MatchPredicateOrBuilder { private static final long serialVersionUID = 0L; // Use MatchPredicate.newBuilder() to construct. private MatchPredicate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MatchPredicate() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MatchPredicate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MatchPredicate( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.Builder subBuilder = null; if (ruleCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 1; break; } case 18: { io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.Builder subBuilder = null; if (ruleCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 2; break; } case 26: { io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder subBuilder = null; if (ruleCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 3; break; } case 32: { ruleCase_ = 4; rule_ = input.readBool(); break; } case 42: { io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder subBuilder = null; if (ruleCase_ == 5) { subBuilder = ((io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 5; break; } case 50: { io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder subBuilder = null; if (ruleCase_ == 6) { subBuilder = ((io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 6; break; } case 58: { io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder subBuilder = null; if (ruleCase_ == 7) { subBuilder = ((io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 7; break; } case 66: { io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder subBuilder = null; if (ruleCase_ == 8) { subBuilder = ((io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 8; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } 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); } public interface MatchSetOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.service.tap.v2alpha.MatchPredicate.MatchSet) com.google.protobuf.MessageOrBuilder { /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ java.util.List getRulesList(); /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate getRules(int index); /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ int getRulesCount(); /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ java.util.List getRulesOrBuilderList(); /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicateOrBuilder getRulesOrBuilder( int index); } /** *
   * A set of match configurations used for logical operations.
   * 
* * Protobuf type {@code envoy.service.tap.v2alpha.MatchPredicate.MatchSet} */ public static final class MatchSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.service.tap.v2alpha.MatchPredicate.MatchSet) MatchSetOrBuilder { private static final long serialVersionUID = 0L; // Use MatchSet.newBuilder() to construct. private MatchSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MatchSet() { rules_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MatchSet(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MatchSet( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { rules_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } rules_.add( input.readMessage(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.parser(), extensionRegistry)); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_MatchPredicate_MatchSet_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_MatchSet_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.class, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.Builder.class); } public static final int RULES_FIELD_NUMBER = 1; private java.util.List rules_; /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public java.util.List getRulesList() { return rules_; } /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public java.util.List getRulesOrBuilderList() { return rules_; } /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public int getRulesCount() { return rules_.size(); } /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate getRules(int index) { return rules_.get(index); } /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicateOrBuilder getRulesOrBuilder( int index) { return rules_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < rules_.size(); i++) { output.writeMessage(1, rules_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < rules_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, rules_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet)) { return super.equals(obj); } io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet other = (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) obj; if (!getRulesList() .equals(other.getRulesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getRulesCount() > 0) { hash = (37 * hash) + RULES_FIELD_NUMBER; hash = (53 * hash) + getRulesList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet 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.MatchSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet 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.MatchSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet 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.MatchSet 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.MatchSet 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.MatchSet 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.MatchSet 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.MatchSet 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.MatchSet 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.MatchSet 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; } /** *
     * A set of match configurations used for logical operations.
     * 
* * Protobuf type {@code envoy.service.tap.v2alpha.MatchPredicate.MatchSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.service.tap.v2alpha.MatchPredicate.MatchSet) io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.service.tap.v2alpha.CommonProto.internal_static_envoy_service_tap_v2alpha_MatchPredicate_MatchSet_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_MatchSet_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.class, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.Builder.class); } // Construct using io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getRulesFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { rulesBuilder_.clear(); } 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_MatchSet_descriptor; } @java.lang.Override public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet getDefaultInstanceForType() { return io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet build() { io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet buildPartial() { io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet result = new io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet(this); int from_bitField0_ = bitField0_; if (rulesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { rules_ = java.util.Collections.unmodifiableList(rules_); bitField0_ = (bitField0_ & ~0x00000001); } result.rules_ = rules_; } else { result.rules_ = rulesBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) { return mergeFrom((io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet other) { if (other == io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance()) return this; if (rulesBuilder_ == null) { if (!other.rules_.isEmpty()) { if (rules_.isEmpty()) { rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRulesIsMutable(); rules_.addAll(other.rules_); } onChanged(); } } else { if (!other.rules_.isEmpty()) { if (rulesBuilder_.isEmpty()) { rulesBuilder_.dispose(); rulesBuilder_ = null; rules_ = other.rules_; bitField0_ = (bitField0_ & ~0x00000001); rulesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRulesFieldBuilder() : null; } else { rulesBuilder_.addAllMessages(other.rules_); } } } 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.MatchSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List rules_ = java.util.Collections.emptyList(); private void ensureRulesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { rules_ = new java.util.ArrayList(rules_); bitField0_ |= 0x00000001; } } 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> rulesBuilder_; /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public java.util.List getRulesList() { if (rulesBuilder_ == null) { return java.util.Collections.unmodifiableList(rules_); } else { return rulesBuilder_.getMessageList(); } } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public int getRulesCount() { if (rulesBuilder_ == null) { return rules_.size(); } else { return rulesBuilder_.getCount(); } } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate getRules(int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessage(index); } } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder setRules( int index, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.set(index, value); onChanged(); } else { rulesBuilder_.setMessage(index, value); } return this; } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder setRules( int index, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.set(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder addRules(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(value); onChanged(); } else { rulesBuilder_.addMessage(value); } return this; } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder addRules( int index, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate value) { if (rulesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRulesIsMutable(); rules_.add(index, value); onChanged(); } else { rulesBuilder_.addMessage(index, value); } return this; } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder addRules( io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder addRules( int index, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder builderForValue) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.add(index, builderForValue.build()); onChanged(); } else { rulesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder addAllRules( java.lang.Iterable values) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rules_); onChanged(); } else { rulesBuilder_.addAllMessages(values); } return this; } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder clearRules() { if (rulesBuilder_ == null) { rules_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { rulesBuilder_.clear(); } return this; } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder removeRules(int index) { if (rulesBuilder_ == null) { ensureRulesIsMutable(); rules_.remove(index); onChanged(); } else { rulesBuilder_.remove(index); } return this; } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicateOrBuilder getRulesOrBuilder( int index) { if (rulesBuilder_ == null) { return rules_.get(index); } else { return rulesBuilder_.getMessageOrBuilder(index); } } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public java.util.List getRulesOrBuilderList() { if (rulesBuilder_ != null) { return rulesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rules_); } } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.getDefaultInstance()); } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.service.tap.v2alpha.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.getDefaultInstance()); } /** *
       * The list of rules that make up the set.
       * 
* * 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 { 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; } /** * @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; */ 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; */ 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; */ 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; */ 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; */ 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; */ 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; */ 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; */ 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; */ 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) = { ... } */ 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; */ public boolean hasHttpRequestHeadersMatch() { return ruleCase_ == 5; } /** *
   * HTTP request headers match configuration.
   * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5; */ 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; */ 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; */ public boolean hasHttpRequestTrailersMatch() { return ruleCase_ == 6; } /** *
   * HTTP request trailers match configuration.
   * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6; */ 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; */ 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; */ public boolean hasHttpResponseHeadersMatch() { return ruleCase_ == 7; } /** *
   * HTTP response headers match configuration.
   * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7; */ 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; */ 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; */ public boolean hasHttpResponseTrailersMatch() { return ruleCase_ == 8; } /** *
   * HTTP response trailers match configuration.
   * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8; */ 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; */ 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.
   * 
* * 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; */ 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; */ 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.
     * 
* * .envoy.service.tap.v2alpha.MatchPredicate.MatchSet or_match = 1; */ public Builder setOrMatch(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet value) { if (orMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { orMatchBuilder_.setMessage(value); } ruleCase_ = 1; return this; } /** *
     * 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; */ public Builder setOrMatch( io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.Builder builderForValue) { if (orMatchBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { orMatchBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 1; return this; } /** *
     * 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; */ public Builder mergeOrMatch(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet value) { if (orMatchBuilder_ == null) { if (ruleCase_ == 1 && rule_ != io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.newBuilder((io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 1) { orMatchBuilder_.mergeFrom(value); } orMatchBuilder_.setMessage(value); } ruleCase_ = 1; return this; } /** *
     * 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; */ public Builder clearOrMatch() { if (orMatchBuilder_ == null) { if (ruleCase_ == 1) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 1) { ruleCase_ = 0; rule_ = null; } orMatchBuilder_.clear(); } return this; } /** *
     * 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; */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.Builder getOrMatchBuilder() { return getOrMatchFieldBuilder().getBuilder(); } /** *
     * 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; */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSetOrBuilder getOrMatchOrBuilder() { if ((ruleCase_ == 1) && (orMatchBuilder_ != null)) { return orMatchBuilder_.getMessageOrBuilder(); } else { 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; */ 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> getOrMatchFieldBuilder() { if (orMatchBuilder_ == null) { if (!(ruleCase_ == 1)) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance(); } orMatchBuilder_ = new 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>( (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 1; onChanged();; return orMatchBuilder_; } 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> andMatchBuilder_; /** *
     * 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; */ 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; */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet getAndMatch() { if (andMatchBuilder_ == null) { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_; } return io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance(); } else { if (ruleCase_ == 2) { return andMatchBuilder_.getMessage(); } 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; */ public Builder setAndMatch(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet value) { if (andMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { andMatchBuilder_.setMessage(value); } ruleCase_ = 2; return this; } /** *
     * 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; */ public Builder setAndMatch( io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.Builder builderForValue) { if (andMatchBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { andMatchBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 2; return this; } /** *
     * 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; */ public Builder mergeAndMatch(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet value) { if (andMatchBuilder_ == null) { if (ruleCase_ == 2 && rule_ != io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.newBuilder((io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 2) { andMatchBuilder_.mergeFrom(value); } andMatchBuilder_.setMessage(value); } ruleCase_ = 2; return this; } /** *
     * 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; */ public Builder clearAndMatch() { if (andMatchBuilder_ == null) { if (ruleCase_ == 2) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 2) { ruleCase_ = 0; rule_ = null; } andMatchBuilder_.clear(); } return this; } /** *
     * 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; */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.Builder getAndMatchBuilder() { return getAndMatchFieldBuilder().getBuilder(); } /** *
     * 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; */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSetOrBuilder getAndMatchOrBuilder() { if ((ruleCase_ == 2) && (andMatchBuilder_ != null)) { return andMatchBuilder_.getMessageOrBuilder(); } else { 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; */ 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> getAndMatchFieldBuilder() { if (andMatchBuilder_ == null) { if (!(ruleCase_ == 2)) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet.getDefaultInstance(); } andMatchBuilder_ = new 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>( (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.MatchSet) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 2; onChanged();; return andMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicateOrBuilder> notMatchBuilder_; /** *
     * A negation match. The match configuration will match if the negated match condition matches.
     * 
* * .envoy.service.tap.v2alpha.MatchPredicate not_match = 3; */ 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; */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate getNotMatch() { if (notMatchBuilder_ == null) { if (ruleCase_ == 3) { return (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate) rule_; } return io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.getDefaultInstance(); } else { if (ruleCase_ == 3) { return notMatchBuilder_.getMessage(); } 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; */ public Builder setNotMatch(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate value) { if (notMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { notMatchBuilder_.setMessage(value); } ruleCase_ = 3; return this; } /** *
     * A negation match. The match configuration will match if the negated match condition matches.
     * 
* * .envoy.service.tap.v2alpha.MatchPredicate not_match = 3; */ public Builder setNotMatch( io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder builderForValue) { if (notMatchBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { notMatchBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 3; return this; } /** *
     * A negation match. The match configuration will match if the negated match condition matches.
     * 
* * .envoy.service.tap.v2alpha.MatchPredicate not_match = 3; */ public Builder mergeNotMatch(io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate value) { if (notMatchBuilder_ == null) { if (ruleCase_ == 3 && rule_ != io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.newBuilder((io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 3) { notMatchBuilder_.mergeFrom(value); } notMatchBuilder_.setMessage(value); } ruleCase_ = 3; return this; } /** *
     * A negation match. The match configuration will match if the negated match condition matches.
     * 
* * .envoy.service.tap.v2alpha.MatchPredicate not_match = 3; */ public Builder clearNotMatch() { if (notMatchBuilder_ == null) { if (ruleCase_ == 3) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 3) { ruleCase_ = 0; rule_ = null; } notMatchBuilder_.clear(); } return this; } /** *
     * A negation match. The match configuration will match if the negated match condition matches.
     * 
* * .envoy.service.tap.v2alpha.MatchPredicate not_match = 3; */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder getNotMatchBuilder() { return getNotMatchFieldBuilder().getBuilder(); } /** *
     * A negation match. The match configuration will match if the negated match condition matches.
     * 
* * .envoy.service.tap.v2alpha.MatchPredicate not_match = 3; */ public io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicateOrBuilder getNotMatchOrBuilder() { if ((ruleCase_ == 3) && (notMatchBuilder_ != null)) { return notMatchBuilder_.getMessageOrBuilder(); } else { 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; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicateOrBuilder> getNotMatchFieldBuilder() { if (notMatchBuilder_ == null) { if (!(ruleCase_ == 3)) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.getDefaultInstance(); } notMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate.Builder, io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicateOrBuilder>( (io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 3; onChanged();; return notMatchBuilder_; } /** *
     * The match configuration will always match.
     * 
* * bool any_match = 4 [(.validate.rules) = { ... } */ public boolean getAnyMatch() { if (ruleCase_ == 4) { return (java.lang.Boolean) rule_; } return false; } /** *
     * The match configuration will always match.
     * 
* * bool any_match = 4 [(.validate.rules) = { ... } */ public Builder setAnyMatch(boolean value) { ruleCase_ = 4; rule_ = value; onChanged(); return this; } /** *
     * The match configuration will always match.
     * 
* * bool any_match = 4 [(.validate.rules) = { ... } */ public Builder clearAnyMatch() { if (ruleCase_ == 4) { ruleCase_ = 0; rule_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder> httpRequestHeadersMatchBuilder_; /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5; */ public boolean hasHttpRequestHeadersMatch() { return ruleCase_ == 5; } /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5; */ public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch getHttpRequestHeadersMatch() { if (httpRequestHeadersMatchBuilder_ == null) { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance(); } else { if (ruleCase_ == 5) { return httpRequestHeadersMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance(); } } /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5; */ public Builder setHttpRequestHeadersMatch(io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch value) { if (httpRequestHeadersMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { httpRequestHeadersMatchBuilder_.setMessage(value); } ruleCase_ = 5; return this; } /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5; */ public Builder setHttpRequestHeadersMatch( io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder builderForValue) { if (httpRequestHeadersMatchBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { httpRequestHeadersMatchBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 5; return this; } /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5; */ public Builder mergeHttpRequestHeadersMatch(io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch value) { if (httpRequestHeadersMatchBuilder_ == null) { if (ruleCase_ == 5 && rule_ != io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.newBuilder((io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 5) { httpRequestHeadersMatchBuilder_.mergeFrom(value); } httpRequestHeadersMatchBuilder_.setMessage(value); } ruleCase_ = 5; return this; } /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5; */ public Builder clearHttpRequestHeadersMatch() { if (httpRequestHeadersMatchBuilder_ == null) { if (ruleCase_ == 5) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 5) { ruleCase_ = 0; rule_ = null; } httpRequestHeadersMatchBuilder_.clear(); } return this; } /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5; */ public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder getHttpRequestHeadersMatchBuilder() { return getHttpRequestHeadersMatchFieldBuilder().getBuilder(); } /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_headers_match = 5; */ public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder getHttpRequestHeadersMatchOrBuilder() { if ((ruleCase_ == 5) && (httpRequestHeadersMatchBuilder_ != null)) { return httpRequestHeadersMatchBuilder_.getMessageOrBuilder(); } else { 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; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder> getHttpRequestHeadersMatchFieldBuilder() { if (httpRequestHeadersMatchBuilder_ == null) { if (!(ruleCase_ == 5)) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance(); } httpRequestHeadersMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder>( (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 5; onChanged();; return httpRequestHeadersMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder> httpRequestTrailersMatchBuilder_; /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6; */ public boolean hasHttpRequestTrailersMatch() { return ruleCase_ == 6; } /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6; */ public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch getHttpRequestTrailersMatch() { if (httpRequestTrailersMatchBuilder_ == null) { if (ruleCase_ == 6) { return (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance(); } else { if (ruleCase_ == 6) { return httpRequestTrailersMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance(); } } /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6; */ public Builder setHttpRequestTrailersMatch(io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch value) { if (httpRequestTrailersMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { httpRequestTrailersMatchBuilder_.setMessage(value); } ruleCase_ = 6; return this; } /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6; */ public Builder setHttpRequestTrailersMatch( io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder builderForValue) { if (httpRequestTrailersMatchBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { httpRequestTrailersMatchBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 6; return this; } /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6; */ public Builder mergeHttpRequestTrailersMatch(io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch value) { if (httpRequestTrailersMatchBuilder_ == null) { if (ruleCase_ == 6 && rule_ != io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.newBuilder((io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 6) { httpRequestTrailersMatchBuilder_.mergeFrom(value); } httpRequestTrailersMatchBuilder_.setMessage(value); } ruleCase_ = 6; return this; } /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6; */ public Builder clearHttpRequestTrailersMatch() { if (httpRequestTrailersMatchBuilder_ == null) { if (ruleCase_ == 6) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 6) { ruleCase_ = 0; rule_ = null; } httpRequestTrailersMatchBuilder_.clear(); } return this; } /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6; */ public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder getHttpRequestTrailersMatchBuilder() { return getHttpRequestTrailersMatchFieldBuilder().getBuilder(); } /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_request_trailers_match = 6; */ public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder getHttpRequestTrailersMatchOrBuilder() { if ((ruleCase_ == 6) && (httpRequestTrailersMatchBuilder_ != null)) { return httpRequestTrailersMatchBuilder_.getMessageOrBuilder(); } else { 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; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder> getHttpRequestTrailersMatchFieldBuilder() { if (httpRequestTrailersMatchBuilder_ == null) { if (!(ruleCase_ == 6)) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance(); } httpRequestTrailersMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder>( (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 6; onChanged();; return httpRequestTrailersMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder> httpResponseHeadersMatchBuilder_; /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7; */ public boolean hasHttpResponseHeadersMatch() { return ruleCase_ == 7; } /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7; */ public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch getHttpResponseHeadersMatch() { if (httpResponseHeadersMatchBuilder_ == null) { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance(); } else { if (ruleCase_ == 7) { return httpResponseHeadersMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance(); } } /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7; */ public Builder setHttpResponseHeadersMatch(io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch value) { if (httpResponseHeadersMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { httpResponseHeadersMatchBuilder_.setMessage(value); } ruleCase_ = 7; return this; } /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7; */ public Builder setHttpResponseHeadersMatch( io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder builderForValue) { if (httpResponseHeadersMatchBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { httpResponseHeadersMatchBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 7; return this; } /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7; */ public Builder mergeHttpResponseHeadersMatch(io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch value) { if (httpResponseHeadersMatchBuilder_ == null) { if (ruleCase_ == 7 && rule_ != io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.newBuilder((io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 7) { httpResponseHeadersMatchBuilder_.mergeFrom(value); } httpResponseHeadersMatchBuilder_.setMessage(value); } ruleCase_ = 7; return this; } /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7; */ public Builder clearHttpResponseHeadersMatch() { if (httpResponseHeadersMatchBuilder_ == null) { if (ruleCase_ == 7) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 7) { ruleCase_ = 0; rule_ = null; } httpResponseHeadersMatchBuilder_.clear(); } return this; } /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7; */ public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder getHttpResponseHeadersMatchBuilder() { return getHttpResponseHeadersMatchFieldBuilder().getBuilder(); } /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_headers_match = 7; */ public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder getHttpResponseHeadersMatchOrBuilder() { if ((ruleCase_ == 7) && (httpResponseHeadersMatchBuilder_ != null)) { return httpResponseHeadersMatchBuilder_.getMessageOrBuilder(); } else { 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; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder> getHttpResponseHeadersMatchFieldBuilder() { if (httpResponseHeadersMatchBuilder_ == null) { if (!(ruleCase_ == 7)) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance(); } httpResponseHeadersMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder>( (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 7; onChanged();; return httpResponseHeadersMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder> httpResponseTrailersMatchBuilder_; /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8; */ public boolean hasHttpResponseTrailersMatch() { return ruleCase_ == 8; } /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8; */ public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch getHttpResponseTrailersMatch() { if (httpResponseTrailersMatchBuilder_ == null) { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance(); } else { if (ruleCase_ == 8) { return httpResponseTrailersMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance(); } } /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8; */ public Builder setHttpResponseTrailersMatch(io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch value) { if (httpResponseTrailersMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { httpResponseTrailersMatchBuilder_.setMessage(value); } ruleCase_ = 8; return this; } /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8; */ public Builder setHttpResponseTrailersMatch( io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder builderForValue) { if (httpResponseTrailersMatchBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { httpResponseTrailersMatchBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 8; return this; } /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8; */ public Builder mergeHttpResponseTrailersMatch(io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch value) { if (httpResponseTrailersMatchBuilder_ == null) { if (ruleCase_ == 8 && rule_ != io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.newBuilder((io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 8) { httpResponseTrailersMatchBuilder_.mergeFrom(value); } httpResponseTrailersMatchBuilder_.setMessage(value); } ruleCase_ = 8; return this; } /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8; */ public Builder clearHttpResponseTrailersMatch() { if (httpResponseTrailersMatchBuilder_ == null) { if (ruleCase_ == 8) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 8) { ruleCase_ = 0; rule_ = null; } httpResponseTrailersMatchBuilder_.clear(); } return this; } /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8; */ public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder getHttpResponseTrailersMatchBuilder() { return getHttpResponseTrailersMatchFieldBuilder().getBuilder(); } /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.service.tap.v2alpha.HttpHeadersMatch http_response_trailers_match = 8; */ public io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder getHttpResponseTrailersMatchOrBuilder() { if ((ruleCase_ == 8) && (httpResponseTrailersMatchBuilder_ != null)) { return httpResponseTrailersMatchBuilder_.getMessageOrBuilder(); } else { 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; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder> getHttpResponseTrailersMatchFieldBuilder() { if (httpResponseTrailersMatchBuilder_ == null) { if (!(ruleCase_ == 8)) { rule_ = io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.getDefaultInstance(); } httpResponseTrailersMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch.Builder, io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatchOrBuilder>( (io.envoyproxy.envoy.service.tap.v2alpha.HttpHeadersMatch) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 8; onChanged();; return httpResponseTrailersMatchBuilder_; } @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) } // @@protoc_insertion_point(class_scope:envoy.service.tap.v2alpha.MatchPredicate) private static final io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate(); } public static io.envoyproxy.envoy.service.tap.v2alpha.MatchPredicate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MatchPredicate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MatchPredicate(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 getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy