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

io.envoyproxy.envoy.config.tap.v3.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/config/tap/v3/common.proto

package io.envoyproxy.envoy.config.tap.v3;

/**
 * 
 * Tap match configuration. This is a recursive structure which allows complex nested match
 * configurations to be built using various logical operators.
 * [#next-free-field: 11]
 * 
* * Protobuf type {@code envoy.config.tap.v3.MatchPredicate} */ public final class MatchPredicate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet.Builder subBuilder = null; if (ruleCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 1; break; } case 18: { io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.Builder subBuilder = null; if (ruleCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 2; break; } case 26: { io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder subBuilder = null; if (ruleCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.config.tap.v3.MatchPredicate) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.tap.v3.MatchPredicate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.tap.v3.MatchPredicate) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 3; break; } case 32: { rule_ = input.readBool(); ruleCase_ = 4; break; } case 42: { io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder subBuilder = null; if (ruleCase_ == 5) { subBuilder = ((io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 5; break; } case 50: { io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder subBuilder = null; if (ruleCase_ == 6) { subBuilder = ((io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 6; break; } case 58: { io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder subBuilder = null; if (ruleCase_ == 7) { subBuilder = ((io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 7; break; } case 66: { io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder subBuilder = null; if (ruleCase_ == 8) { subBuilder = ((io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 8; break; } case 74: { io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.Builder subBuilder = null; if (ruleCase_ == 9) { subBuilder = ((io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 9; break; } case 82: { io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.Builder subBuilder = null; if (ruleCase_ == 10) { subBuilder = ((io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_).toBuilder(); } rule_ = input.readMessage(io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_); rule_ = subBuilder.buildPartial(); } ruleCase_ = 10; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_MatchPredicate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_MatchPredicate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.tap.v3.MatchPredicate.class, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder.class); } public interface MatchSetOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.tap.v3.MatchPredicate.MatchSet) com.google.protobuf.MessageOrBuilder { /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ java.util.List getRulesList(); /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.tap.v3.MatchPredicate getRules(int index); /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ int getRulesCount(); /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ java.util.List getRulesOrBuilderList(); /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder getRulesOrBuilder( int index); } /** *
   * A set of match configurations used for logical operations.
   * 
* * Protobuf type {@code envoy.config.tap.v3.MatchPredicate.MatchSet} */ public static final class MatchSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.tap.v3.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.config.tap.v3.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 (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_MatchPredicate_MatchSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_MatchPredicate_MatchSet_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.class, io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getRulesList() { return rules_; } /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getRulesOrBuilderList() { return rules_; } /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ @java.lang.Override public int getRulesCount() { return rules_.size(); } /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate getRules(int index) { return rules_.get(index); } /** *
     * The list of rules that make up the set.
     * 
* * repeated .envoy.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet)) { return super.equals(obj); } io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet other = (io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.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.config.tap.v3.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.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.tap.v3.MatchPredicate.MatchSet) io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_MatchPredicate_MatchSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_MatchPredicate_MatchSet_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.class, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.Builder.class); } // Construct using io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_MatchPredicate_MatchSet_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet getDefaultInstanceForType() { return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet build() { io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet buildPartial() { io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet result = new io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet) { return mergeFrom((io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet other) { if (other == io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder> rulesBuilder_; /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.config.tap.v3.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.config.tap.v3.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.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder setRules( int index, io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder setRules( int index, io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder addRules(io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder addRules( int index, io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder addRules( io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public Builder addRules( int index, io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.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.config.tap.v3.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.config.tap.v3.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.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder getRulesBuilder( int index) { return getRulesFieldBuilder().getBuilder(index); } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.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.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder addRulesBuilder() { return getRulesFieldBuilder().addBuilder( io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance()); } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder addRulesBuilder( int index) { return getRulesFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance()); } /** *
       * The list of rules that make up the set.
       * 
* * repeated .envoy.config.tap.v3.MatchPredicate rules = 1 [(.validate.rules) = { ... } */ public java.util.List getRulesBuilderList() { return getRulesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.MatchPredicate, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder> getRulesFieldBuilder() { if (rulesBuilder_ == null) { rulesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.MatchPredicate, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder, io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet) } // @@protoc_insertion_point(class_scope:envoy.config.tap.v3.MatchPredicate.MatchSet) private static final io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet(); } public static io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int ruleCase_ = 0; private java.lang.Object rule_; public enum RuleCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { OR_MATCH(1), AND_MATCH(2), NOT_MATCH(3), ANY_MATCH(4), HTTP_REQUEST_HEADERS_MATCH(5), HTTP_REQUEST_TRAILERS_MATCH(6), HTTP_RESPONSE_HEADERS_MATCH(7), HTTP_RESPONSE_TRAILERS_MATCH(8), HTTP_REQUEST_GENERIC_BODY_MATCH(9), HTTP_RESPONSE_GENERIC_BODY_MATCH(10), RULE_NOT_SET(0); private final int value; private RuleCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static RuleCase valueOf(int value) { return forNumber(value); } public static RuleCase forNumber(int value) { switch (value) { case 1: return OR_MATCH; case 2: return AND_MATCH; case 3: return NOT_MATCH; case 4: return ANY_MATCH; case 5: return HTTP_REQUEST_HEADERS_MATCH; case 6: return HTTP_REQUEST_TRAILERS_MATCH; case 7: return HTTP_RESPONSE_HEADERS_MATCH; case 8: return HTTP_RESPONSE_TRAILERS_MATCH; case 9: return HTTP_REQUEST_GENERIC_BODY_MATCH; case 10: return HTTP_RESPONSE_GENERIC_BODY_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.config.tap.v3.MatchPredicate.MatchSet or_match = 1; * @return Whether the orMatch field is set. */ @java.lang.Override public boolean hasOrMatch() { return ruleCase_ == 1; } /** *
   * A set that describes a logical OR. If any member of the set matches, the match configuration
   * matches.
   * 
* * .envoy.config.tap.v3.MatchPredicate.MatchSet or_match = 1; * @return The orMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet getOrMatch() { if (ruleCase_ == 1) { return (io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_; } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance(); } /** *
   * A set that describes a logical OR. If any member of the set matches, the match configuration
   * matches.
   * 
* * .envoy.config.tap.v3.MatchPredicate.MatchSet or_match = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSetOrBuilder getOrMatchOrBuilder() { if (ruleCase_ == 1) { return (io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_; } return io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet and_match = 2; * @return Whether the andMatch field is set. */ @java.lang.Override public boolean hasAndMatch() { return ruleCase_ == 2; } /** *
   * A set that describes a logical AND. If all members of the set match, the match configuration
   * matches.
   * 
* * .envoy.config.tap.v3.MatchPredicate.MatchSet and_match = 2; * @return The andMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet getAndMatch() { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_; } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance(); } /** *
   * A set that describes a logical AND. If all members of the set match, the match configuration
   * matches.
   * 
* * .envoy.config.tap.v3.MatchPredicate.MatchSet and_match = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSetOrBuilder getAndMatchOrBuilder() { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_; } return io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate not_match = 3; * @return Whether the notMatch field is set. */ @java.lang.Override public boolean hasNotMatch() { return ruleCase_ == 3; } /** *
   * A negation match. The match configuration will match if the negated match condition matches.
   * 
* * .envoy.config.tap.v3.MatchPredicate not_match = 3; * @return The notMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate getNotMatch() { if (ruleCase_ == 3) { return (io.envoyproxy.envoy.config.tap.v3.MatchPredicate) rule_; } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance(); } /** *
   * A negation match. The match configuration will match if the negated match condition matches.
   * 
* * .envoy.config.tap.v3.MatchPredicate not_match = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder getNotMatchOrBuilder() { if (ruleCase_ == 3) { return (io.envoyproxy.envoy.config.tap.v3.MatchPredicate) rule_; } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance(); } public static final int ANY_MATCH_FIELD_NUMBER = 4; /** *
   * The match configuration will always match.
   * 
* * bool any_match = 4 [(.validate.rules) = { ... } * @return Whether the anyMatch field is set. */ @java.lang.Override public boolean hasAnyMatch() { return ruleCase_ == 4; } /** *
   * The match configuration will always match.
   * 
* * bool any_match = 4 [(.validate.rules) = { ... } * @return The anyMatch. */ @java.lang.Override public boolean getAnyMatch() { if (ruleCase_ == 4) { return (java.lang.Boolean) rule_; } return false; } public static final int HTTP_REQUEST_HEADERS_MATCH_FIELD_NUMBER = 5; /** *
   * HTTP request headers match configuration.
   * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_headers_match = 5; * @return Whether the httpRequestHeadersMatch field is set. */ @java.lang.Override public boolean hasHttpRequestHeadersMatch() { return ruleCase_ == 5; } /** *
   * HTTP request headers match configuration.
   * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_headers_match = 5; * @return The httpRequestHeadersMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch getHttpRequestHeadersMatch() { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } /** *
   * HTTP request headers match configuration.
   * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_headers_match = 5; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder getHttpRequestHeadersMatchOrBuilder() { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } public static final int HTTP_REQUEST_TRAILERS_MATCH_FIELD_NUMBER = 6; /** *
   * HTTP request trailers match configuration.
   * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_trailers_match = 6; * @return Whether the httpRequestTrailersMatch field is set. */ @java.lang.Override public boolean hasHttpRequestTrailersMatch() { return ruleCase_ == 6; } /** *
   * HTTP request trailers match configuration.
   * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_trailers_match = 6; * @return The httpRequestTrailersMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch getHttpRequestTrailersMatch() { if (ruleCase_ == 6) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } /** *
   * HTTP request trailers match configuration.
   * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_trailers_match = 6; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder getHttpRequestTrailersMatchOrBuilder() { if (ruleCase_ == 6) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } public static final int HTTP_RESPONSE_HEADERS_MATCH_FIELD_NUMBER = 7; /** *
   * HTTP response headers match configuration.
   * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_headers_match = 7; * @return Whether the httpResponseHeadersMatch field is set. */ @java.lang.Override public boolean hasHttpResponseHeadersMatch() { return ruleCase_ == 7; } /** *
   * HTTP response headers match configuration.
   * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_headers_match = 7; * @return The httpResponseHeadersMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch getHttpResponseHeadersMatch() { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } /** *
   * HTTP response headers match configuration.
   * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_headers_match = 7; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder getHttpResponseHeadersMatchOrBuilder() { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } public static final int HTTP_RESPONSE_TRAILERS_MATCH_FIELD_NUMBER = 8; /** *
   * HTTP response trailers match configuration.
   * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_trailers_match = 8; * @return Whether the httpResponseTrailersMatch field is set. */ @java.lang.Override public boolean hasHttpResponseTrailersMatch() { return ruleCase_ == 8; } /** *
   * HTTP response trailers match configuration.
   * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_trailers_match = 8; * @return The httpResponseTrailersMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch getHttpResponseTrailersMatch() { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } /** *
   * HTTP response trailers match configuration.
   * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_trailers_match = 8; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder getHttpResponseTrailersMatchOrBuilder() { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } public static final int HTTP_REQUEST_GENERIC_BODY_MATCH_FIELD_NUMBER = 9; /** *
   * HTTP request generic body match configuration.
   * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_request_generic_body_match = 9; * @return Whether the httpRequestGenericBodyMatch field is set. */ @java.lang.Override public boolean hasHttpRequestGenericBodyMatch() { return ruleCase_ == 9; } /** *
   * HTTP request generic body match configuration.
   * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_request_generic_body_match = 9; * @return The httpRequestGenericBodyMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch getHttpRequestGenericBodyMatch() { if (ruleCase_ == 9) { return (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance(); } /** *
   * HTTP request generic body match configuration.
   * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_request_generic_body_match = 9; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatchOrBuilder getHttpRequestGenericBodyMatchOrBuilder() { if (ruleCase_ == 9) { return (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance(); } public static final int HTTP_RESPONSE_GENERIC_BODY_MATCH_FIELD_NUMBER = 10; /** *
   * HTTP response generic body match configuration.
   * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_response_generic_body_match = 10; * @return Whether the httpResponseGenericBodyMatch field is set. */ @java.lang.Override public boolean hasHttpResponseGenericBodyMatch() { return ruleCase_ == 10; } /** *
   * HTTP response generic body match configuration.
   * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_response_generic_body_match = 10; * @return The httpResponseGenericBodyMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch getHttpResponseGenericBodyMatch() { if (ruleCase_ == 10) { return (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance(); } /** *
   * HTTP response generic body match configuration.
   * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_response_generic_body_match = 10; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatchOrBuilder getHttpResponseGenericBodyMatchOrBuilder() { if (ruleCase_ == 10) { return (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.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.config.tap.v3.MatchPredicate.MatchSet) rule_); } if (ruleCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_); } if (ruleCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.config.tap.v3.MatchPredicate) rule_); } if (ruleCase_ == 4) { output.writeBool( 4, (boolean)((java.lang.Boolean) rule_)); } if (ruleCase_ == 5) { output.writeMessage(5, (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_); } if (ruleCase_ == 6) { output.writeMessage(6, (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_); } if (ruleCase_ == 7) { output.writeMessage(7, (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_); } if (ruleCase_ == 8) { output.writeMessage(8, (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_); } if (ruleCase_ == 9) { output.writeMessage(9, (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_); } if (ruleCase_ == 10) { output.writeMessage(10, (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) 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.config.tap.v3.MatchPredicate.MatchSet) rule_); } if (ruleCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_); } if (ruleCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch) rule_); } if (ruleCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_); } if (ruleCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_); } if (ruleCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_); } if (ruleCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_); } if (ruleCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) 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.config.tap.v3.MatchPredicate)) { return super.equals(obj); } io.envoyproxy.envoy.config.tap.v3.MatchPredicate other = (io.envoyproxy.envoy.config.tap.v3.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 9: if (!getHttpRequestGenericBodyMatch() .equals(other.getHttpRequestGenericBodyMatch())) return false; break; case 10: if (!getHttpResponseGenericBodyMatch() .equals(other.getHttpResponseGenericBodyMatch())) 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 9: hash = (37 * hash) + HTTP_REQUEST_GENERIC_BODY_MATCH_FIELD_NUMBER; hash = (53 * hash) + getHttpRequestGenericBodyMatch().hashCode(); break; case 10: hash = (37 * hash) + HTTP_RESPONSE_GENERIC_BODY_MATCH_FIELD_NUMBER; hash = (53 * hash) + getHttpResponseGenericBodyMatch().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.tap.v3.MatchPredicate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.tap.v3.MatchPredicate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.tap.v3.MatchPredicate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
   * Tap match configuration. This is a recursive structure which allows complex nested match
   * configurations to be built using various logical operators.
   * [#next-free-field: 11]
   * 
* * Protobuf type {@code envoy.config.tap.v3.MatchPredicate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.tap.v3.MatchPredicate) io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_MatchPredicate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_MatchPredicate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.tap.v3.MatchPredicate.class, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder.class); } // Construct using io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.CommonProto.internal_static_envoy_config_tap_v3_MatchPredicate_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate getDefaultInstanceForType() { return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate build() { io.envoyproxy.envoy.config.tap.v3.MatchPredicate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate buildPartial() { io.envoyproxy.envoy.config.tap.v3.MatchPredicate result = new io.envoyproxy.envoy.config.tap.v3.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(); } } if (ruleCase_ == 9) { if (httpRequestGenericBodyMatchBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = httpRequestGenericBodyMatchBuilder_.build(); } } if (ruleCase_ == 10) { if (httpResponseGenericBodyMatchBuilder_ == null) { result.rule_ = rule_; } else { result.rule_ = httpResponseGenericBodyMatchBuilder_.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.config.tap.v3.MatchPredicate) { return mergeFrom((io.envoyproxy.envoy.config.tap.v3.MatchPredicate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.tap.v3.MatchPredicate other) { if (other == io.envoyproxy.envoy.config.tap.v3.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 HTTP_REQUEST_GENERIC_BODY_MATCH: { mergeHttpRequestGenericBodyMatch(other.getHttpRequestGenericBodyMatch()); break; } case HTTP_RESPONSE_GENERIC_BODY_MATCH: { mergeHttpResponseGenericBodyMatch(other.getHttpResponseGenericBodyMatch()); 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.config.tap.v3.MatchPredicate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSetOrBuilder> orMatchBuilder_; /** *
     * A set that describes a logical OR. If any member of the set matches, the match configuration
     * matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate.MatchSet or_match = 1; * @return Whether the orMatch field is set. */ @java.lang.Override public boolean hasOrMatch() { return ruleCase_ == 1; } /** *
     * A set that describes a logical OR. If any member of the set matches, the match configuration
     * matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate.MatchSet or_match = 1; * @return The orMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet getOrMatch() { if (orMatchBuilder_ == null) { if (ruleCase_ == 1) { return (io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_; } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance(); } else { if (ruleCase_ == 1) { return orMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance(); } } /** *
     * A set that describes a logical OR. If any member of the set matches, the match configuration
     * matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate.MatchSet or_match = 1; */ public Builder setOrMatch(io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet or_match = 1; */ public Builder setOrMatch( io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet or_match = 1; */ public Builder mergeOrMatch(io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet value) { if (orMatchBuilder_ == null) { if (ruleCase_ == 1 && rule_ != io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.newBuilder((io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 1) { orMatchBuilder_.mergeFrom(value); } 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.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet or_match = 1; */ public io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet or_match = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSetOrBuilder getOrMatchOrBuilder() { if ((ruleCase_ == 1) && (orMatchBuilder_ != null)) { return orMatchBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 1) { return (io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_; } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance(); } } /** *
     * A set that describes a logical OR. If any member of the set matches, the match configuration
     * matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate.MatchSet or_match = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSetOrBuilder> getOrMatchFieldBuilder() { if (orMatchBuilder_ == null) { if (!(ruleCase_ == 1)) { rule_ = io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance(); } orMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSetOrBuilder>( (io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 1; onChanged();; return orMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSetOrBuilder> andMatchBuilder_; /** *
     * A set that describes a logical AND. If all members of the set match, the match configuration
     * matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate.MatchSet and_match = 2; * @return Whether the andMatch field is set. */ @java.lang.Override public boolean hasAndMatch() { return ruleCase_ == 2; } /** *
     * A set that describes a logical AND. If all members of the set match, the match configuration
     * matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate.MatchSet and_match = 2; * @return The andMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet getAndMatch() { if (andMatchBuilder_ == null) { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_; } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance(); } else { if (ruleCase_ == 2) { return andMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance(); } } /** *
     * A set that describes a logical AND. If all members of the set match, the match configuration
     * matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate.MatchSet and_match = 2; */ public Builder setAndMatch(io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet and_match = 2; */ public Builder setAndMatch( io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet and_match = 2; */ public Builder mergeAndMatch(io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet value) { if (andMatchBuilder_ == null) { if (ruleCase_ == 2 && rule_ != io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.newBuilder((io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 2) { andMatchBuilder_.mergeFrom(value); } 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.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet and_match = 2; */ public io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate.MatchSet and_match = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSetOrBuilder getAndMatchOrBuilder() { if ((ruleCase_ == 2) && (andMatchBuilder_ != null)) { return andMatchBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 2) { return (io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_; } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance(); } } /** *
     * A set that describes a logical AND. If all members of the set match, the match configuration
     * matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate.MatchSet and_match = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSetOrBuilder> getAndMatchFieldBuilder() { if (andMatchBuilder_ == null) { if (!(ruleCase_ == 2)) { rule_ = io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.getDefaultInstance(); } andMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSetOrBuilder>( (io.envoyproxy.envoy.config.tap.v3.MatchPredicate.MatchSet) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 2; onChanged();; return andMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.MatchPredicate, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder> notMatchBuilder_; /** *
     * A negation match. The match configuration will match if the negated match condition matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate not_match = 3; * @return Whether the notMatch field is set. */ @java.lang.Override public boolean hasNotMatch() { return ruleCase_ == 3; } /** *
     * A negation match. The match configuration will match if the negated match condition matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate not_match = 3; * @return The notMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicate getNotMatch() { if (notMatchBuilder_ == null) { if (ruleCase_ == 3) { return (io.envoyproxy.envoy.config.tap.v3.MatchPredicate) rule_; } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance(); } else { if (ruleCase_ == 3) { return notMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance(); } } /** *
     * A negation match. The match configuration will match if the negated match condition matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate not_match = 3; */ public Builder setNotMatch(io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate not_match = 3; */ public Builder setNotMatch( io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate not_match = 3; */ public Builder mergeNotMatch(io.envoyproxy.envoy.config.tap.v3.MatchPredicate value) { if (notMatchBuilder_ == null) { if (ruleCase_ == 3 && rule_ != io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.tap.v3.MatchPredicate.newBuilder((io.envoyproxy.envoy.config.tap.v3.MatchPredicate) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 3) { notMatchBuilder_.mergeFrom(value); } else { notMatchBuilder_.setMessage(value); } } ruleCase_ = 3; return this; } /** *
     * A negation match. The match configuration will match if the negated match condition matches.
     * 
* * .envoy.config.tap.v3.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.config.tap.v3.MatchPredicate not_match = 3; */ public io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder getNotMatchBuilder() { return getNotMatchFieldBuilder().getBuilder(); } /** *
     * A negation match. The match configuration will match if the negated match condition matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate not_match = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder getNotMatchOrBuilder() { if ((ruleCase_ == 3) && (notMatchBuilder_ != null)) { return notMatchBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 3) { return (io.envoyproxy.envoy.config.tap.v3.MatchPredicate) rule_; } return io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance(); } } /** *
     * A negation match. The match configuration will match if the negated match condition matches.
     * 
* * .envoy.config.tap.v3.MatchPredicate not_match = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.MatchPredicate, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder> getNotMatchFieldBuilder() { if (notMatchBuilder_ == null) { if (!(ruleCase_ == 3)) { rule_ = io.envoyproxy.envoy.config.tap.v3.MatchPredicate.getDefaultInstance(); } notMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.MatchPredicate, io.envoyproxy.envoy.config.tap.v3.MatchPredicate.Builder, io.envoyproxy.envoy.config.tap.v3.MatchPredicateOrBuilder>( (io.envoyproxy.envoy.config.tap.v3.MatchPredicate) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 3; onChanged();; return notMatchBuilder_; } /** *
     * The match configuration will always match.
     * 
* * bool any_match = 4 [(.validate.rules) = { ... } * @return Whether the anyMatch field is set. */ public boolean hasAnyMatch() { return ruleCase_ == 4; } /** *
     * The match configuration will always match.
     * 
* * bool any_match = 4 [(.validate.rules) = { ... } * @return The anyMatch. */ 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) = { ... } * @param value The anyMatch to set. * @return This builder for chaining. */ public Builder setAnyMatch(boolean value) { ruleCase_ = 4; rule_ = value; onChanged(); return this; } /** *
     * The match configuration will always match.
     * 
* * bool any_match = 4 [(.validate.rules) = { ... } * @return This builder for chaining. */ public Builder clearAnyMatch() { if (ruleCase_ == 4) { ruleCase_ = 0; rule_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder> httpRequestHeadersMatchBuilder_; /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_headers_match = 5; * @return Whether the httpRequestHeadersMatch field is set. */ @java.lang.Override public boolean hasHttpRequestHeadersMatch() { return ruleCase_ == 5; } /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_headers_match = 5; * @return The httpRequestHeadersMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch getHttpRequestHeadersMatch() { if (httpRequestHeadersMatchBuilder_ == null) { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } else { if (ruleCase_ == 5) { return httpRequestHeadersMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } } /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_headers_match = 5; */ public Builder setHttpRequestHeadersMatch(io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch http_request_headers_match = 5; */ public Builder setHttpRequestHeadersMatch( io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch http_request_headers_match = 5; */ public Builder mergeHttpRequestHeadersMatch(io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch value) { if (httpRequestHeadersMatchBuilder_ == null) { if (ruleCase_ == 5 && rule_ != io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.newBuilder((io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 5) { httpRequestHeadersMatchBuilder_.mergeFrom(value); } else { httpRequestHeadersMatchBuilder_.setMessage(value); } } ruleCase_ = 5; return this; } /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch http_request_headers_match = 5; */ public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder getHttpRequestHeadersMatchBuilder() { return getHttpRequestHeadersMatchFieldBuilder().getBuilder(); } /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_headers_match = 5; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder getHttpRequestHeadersMatchOrBuilder() { if ((ruleCase_ == 5) && (httpRequestHeadersMatchBuilder_ != null)) { return httpRequestHeadersMatchBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 5) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } } /** *
     * HTTP request headers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_headers_match = 5; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder> getHttpRequestHeadersMatchFieldBuilder() { if (httpRequestHeadersMatchBuilder_ == null) { if (!(ruleCase_ == 5)) { rule_ = io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } httpRequestHeadersMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder>( (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 5; onChanged();; return httpRequestHeadersMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder> httpRequestTrailersMatchBuilder_; /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_trailers_match = 6; * @return Whether the httpRequestTrailersMatch field is set. */ @java.lang.Override public boolean hasHttpRequestTrailersMatch() { return ruleCase_ == 6; } /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_trailers_match = 6; * @return The httpRequestTrailersMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch getHttpRequestTrailersMatch() { if (httpRequestTrailersMatchBuilder_ == null) { if (ruleCase_ == 6) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } else { if (ruleCase_ == 6) { return httpRequestTrailersMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } } /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_trailers_match = 6; */ public Builder setHttpRequestTrailersMatch(io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch http_request_trailers_match = 6; */ public Builder setHttpRequestTrailersMatch( io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch http_request_trailers_match = 6; */ public Builder mergeHttpRequestTrailersMatch(io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch value) { if (httpRequestTrailersMatchBuilder_ == null) { if (ruleCase_ == 6 && rule_ != io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.newBuilder((io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 6) { httpRequestTrailersMatchBuilder_.mergeFrom(value); } else { httpRequestTrailersMatchBuilder_.setMessage(value); } } ruleCase_ = 6; return this; } /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch http_request_trailers_match = 6; */ public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder getHttpRequestTrailersMatchBuilder() { return getHttpRequestTrailersMatchFieldBuilder().getBuilder(); } /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_trailers_match = 6; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder getHttpRequestTrailersMatchOrBuilder() { if ((ruleCase_ == 6) && (httpRequestTrailersMatchBuilder_ != null)) { return httpRequestTrailersMatchBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 6) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } } /** *
     * HTTP request trailers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_request_trailers_match = 6; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder> getHttpRequestTrailersMatchFieldBuilder() { if (httpRequestTrailersMatchBuilder_ == null) { if (!(ruleCase_ == 6)) { rule_ = io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } httpRequestTrailersMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder>( (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 6; onChanged();; return httpRequestTrailersMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder> httpResponseHeadersMatchBuilder_; /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_headers_match = 7; * @return Whether the httpResponseHeadersMatch field is set. */ @java.lang.Override public boolean hasHttpResponseHeadersMatch() { return ruleCase_ == 7; } /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_headers_match = 7; * @return The httpResponseHeadersMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch getHttpResponseHeadersMatch() { if (httpResponseHeadersMatchBuilder_ == null) { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } else { if (ruleCase_ == 7) { return httpResponseHeadersMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } } /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_headers_match = 7; */ public Builder setHttpResponseHeadersMatch(io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch http_response_headers_match = 7; */ public Builder setHttpResponseHeadersMatch( io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch http_response_headers_match = 7; */ public Builder mergeHttpResponseHeadersMatch(io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch value) { if (httpResponseHeadersMatchBuilder_ == null) { if (ruleCase_ == 7 && rule_ != io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.newBuilder((io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 7) { httpResponseHeadersMatchBuilder_.mergeFrom(value); } else { httpResponseHeadersMatchBuilder_.setMessage(value); } } ruleCase_ = 7; return this; } /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch http_response_headers_match = 7; */ public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder getHttpResponseHeadersMatchBuilder() { return getHttpResponseHeadersMatchFieldBuilder().getBuilder(); } /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_headers_match = 7; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder getHttpResponseHeadersMatchOrBuilder() { if ((ruleCase_ == 7) && (httpResponseHeadersMatchBuilder_ != null)) { return httpResponseHeadersMatchBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 7) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } } /** *
     * HTTP response headers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_headers_match = 7; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder> getHttpResponseHeadersMatchFieldBuilder() { if (httpResponseHeadersMatchBuilder_ == null) { if (!(ruleCase_ == 7)) { rule_ = io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } httpResponseHeadersMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder>( (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 7; onChanged();; return httpResponseHeadersMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder> httpResponseTrailersMatchBuilder_; /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_trailers_match = 8; * @return Whether the httpResponseTrailersMatch field is set. */ @java.lang.Override public boolean hasHttpResponseTrailersMatch() { return ruleCase_ == 8; } /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_trailers_match = 8; * @return The httpResponseTrailersMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch getHttpResponseTrailersMatch() { if (httpResponseTrailersMatchBuilder_ == null) { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } else { if (ruleCase_ == 8) { return httpResponseTrailersMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } } /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_trailers_match = 8; */ public Builder setHttpResponseTrailersMatch(io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch http_response_trailers_match = 8; */ public Builder setHttpResponseTrailersMatch( io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch http_response_trailers_match = 8; */ public Builder mergeHttpResponseTrailersMatch(io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch value) { if (httpResponseTrailersMatchBuilder_ == null) { if (ruleCase_ == 8 && rule_ != io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.newBuilder((io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 8) { httpResponseTrailersMatchBuilder_.mergeFrom(value); } else { httpResponseTrailersMatchBuilder_.setMessage(value); } } ruleCase_ = 8; return this; } /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.config.tap.v3.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.config.tap.v3.HttpHeadersMatch http_response_trailers_match = 8; */ public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder getHttpResponseTrailersMatchBuilder() { return getHttpResponseTrailersMatchFieldBuilder().getBuilder(); } /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_trailers_match = 8; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder getHttpResponseTrailersMatchOrBuilder() { if ((ruleCase_ == 8) && (httpResponseTrailersMatchBuilder_ != null)) { return httpResponseTrailersMatchBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 8) { return (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } } /** *
     * HTTP response trailers match configuration.
     * 
* * .envoy.config.tap.v3.HttpHeadersMatch http_response_trailers_match = 8; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder> getHttpResponseTrailersMatchFieldBuilder() { if (httpResponseTrailersMatchBuilder_ == null) { if (!(ruleCase_ == 8)) { rule_ = io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.getDefaultInstance(); } httpResponseTrailersMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatchOrBuilder>( (io.envoyproxy.envoy.config.tap.v3.HttpHeadersMatch) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 8; onChanged();; return httpResponseTrailersMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch, io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatchOrBuilder> httpRequestGenericBodyMatchBuilder_; /** *
     * HTTP request generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_request_generic_body_match = 9; * @return Whether the httpRequestGenericBodyMatch field is set. */ @java.lang.Override public boolean hasHttpRequestGenericBodyMatch() { return ruleCase_ == 9; } /** *
     * HTTP request generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_request_generic_body_match = 9; * @return The httpRequestGenericBodyMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch getHttpRequestGenericBodyMatch() { if (httpRequestGenericBodyMatchBuilder_ == null) { if (ruleCase_ == 9) { return (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance(); } else { if (ruleCase_ == 9) { return httpRequestGenericBodyMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance(); } } /** *
     * HTTP request generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_request_generic_body_match = 9; */ public Builder setHttpRequestGenericBodyMatch(io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch value) { if (httpRequestGenericBodyMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { httpRequestGenericBodyMatchBuilder_.setMessage(value); } ruleCase_ = 9; return this; } /** *
     * HTTP request generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_request_generic_body_match = 9; */ public Builder setHttpRequestGenericBodyMatch( io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.Builder builderForValue) { if (httpRequestGenericBodyMatchBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { httpRequestGenericBodyMatchBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 9; return this; } /** *
     * HTTP request generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_request_generic_body_match = 9; */ public Builder mergeHttpRequestGenericBodyMatch(io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch value) { if (httpRequestGenericBodyMatchBuilder_ == null) { if (ruleCase_ == 9 && rule_ != io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.newBuilder((io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 9) { httpRequestGenericBodyMatchBuilder_.mergeFrom(value); } else { httpRequestGenericBodyMatchBuilder_.setMessage(value); } } ruleCase_ = 9; return this; } /** *
     * HTTP request generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_request_generic_body_match = 9; */ public Builder clearHttpRequestGenericBodyMatch() { if (httpRequestGenericBodyMatchBuilder_ == null) { if (ruleCase_ == 9) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 9) { ruleCase_ = 0; rule_ = null; } httpRequestGenericBodyMatchBuilder_.clear(); } return this; } /** *
     * HTTP request generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_request_generic_body_match = 9; */ public io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.Builder getHttpRequestGenericBodyMatchBuilder() { return getHttpRequestGenericBodyMatchFieldBuilder().getBuilder(); } /** *
     * HTTP request generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_request_generic_body_match = 9; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatchOrBuilder getHttpRequestGenericBodyMatchOrBuilder() { if ((ruleCase_ == 9) && (httpRequestGenericBodyMatchBuilder_ != null)) { return httpRequestGenericBodyMatchBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 9) { return (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance(); } } /** *
     * HTTP request generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_request_generic_body_match = 9; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch, io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatchOrBuilder> getHttpRequestGenericBodyMatchFieldBuilder() { if (httpRequestGenericBodyMatchBuilder_ == null) { if (!(ruleCase_ == 9)) { rule_ = io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance(); } httpRequestGenericBodyMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch, io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatchOrBuilder>( (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 9; onChanged();; return httpRequestGenericBodyMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch, io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatchOrBuilder> httpResponseGenericBodyMatchBuilder_; /** *
     * HTTP response generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_response_generic_body_match = 10; * @return Whether the httpResponseGenericBodyMatch field is set. */ @java.lang.Override public boolean hasHttpResponseGenericBodyMatch() { return ruleCase_ == 10; } /** *
     * HTTP response generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_response_generic_body_match = 10; * @return The httpResponseGenericBodyMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch getHttpResponseGenericBodyMatch() { if (httpResponseGenericBodyMatchBuilder_ == null) { if (ruleCase_ == 10) { return (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance(); } else { if (ruleCase_ == 10) { return httpResponseGenericBodyMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance(); } } /** *
     * HTTP response generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_response_generic_body_match = 10; */ public Builder setHttpResponseGenericBodyMatch(io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch value) { if (httpResponseGenericBodyMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rule_ = value; onChanged(); } else { httpResponseGenericBodyMatchBuilder_.setMessage(value); } ruleCase_ = 10; return this; } /** *
     * HTTP response generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_response_generic_body_match = 10; */ public Builder setHttpResponseGenericBodyMatch( io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.Builder builderForValue) { if (httpResponseGenericBodyMatchBuilder_ == null) { rule_ = builderForValue.build(); onChanged(); } else { httpResponseGenericBodyMatchBuilder_.setMessage(builderForValue.build()); } ruleCase_ = 10; return this; } /** *
     * HTTP response generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_response_generic_body_match = 10; */ public Builder mergeHttpResponseGenericBodyMatch(io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch value) { if (httpResponseGenericBodyMatchBuilder_ == null) { if (ruleCase_ == 10 && rule_ != io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance()) { rule_ = io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.newBuilder((io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_) .mergeFrom(value).buildPartial(); } else { rule_ = value; } onChanged(); } else { if (ruleCase_ == 10) { httpResponseGenericBodyMatchBuilder_.mergeFrom(value); } else { httpResponseGenericBodyMatchBuilder_.setMessage(value); } } ruleCase_ = 10; return this; } /** *
     * HTTP response generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_response_generic_body_match = 10; */ public Builder clearHttpResponseGenericBodyMatch() { if (httpResponseGenericBodyMatchBuilder_ == null) { if (ruleCase_ == 10) { ruleCase_ = 0; rule_ = null; onChanged(); } } else { if (ruleCase_ == 10) { ruleCase_ = 0; rule_ = null; } httpResponseGenericBodyMatchBuilder_.clear(); } return this; } /** *
     * HTTP response generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_response_generic_body_match = 10; */ public io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.Builder getHttpResponseGenericBodyMatchBuilder() { return getHttpResponseGenericBodyMatchFieldBuilder().getBuilder(); } /** *
     * HTTP response generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_response_generic_body_match = 10; */ @java.lang.Override public io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatchOrBuilder getHttpResponseGenericBodyMatchOrBuilder() { if ((ruleCase_ == 10) && (httpResponseGenericBodyMatchBuilder_ != null)) { return httpResponseGenericBodyMatchBuilder_.getMessageOrBuilder(); } else { if (ruleCase_ == 10) { return (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_; } return io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance(); } } /** *
     * HTTP response generic body match configuration.
     * 
* * .envoy.config.tap.v3.HttpGenericBodyMatch http_response_generic_body_match = 10; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch, io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatchOrBuilder> getHttpResponseGenericBodyMatchFieldBuilder() { if (httpResponseGenericBodyMatchBuilder_ == null) { if (!(ruleCase_ == 10)) { rule_ = io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.getDefaultInstance(); } httpResponseGenericBodyMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch, io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch.Builder, io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatchOrBuilder>( (io.envoyproxy.envoy.config.tap.v3.HttpGenericBodyMatch) rule_, getParentForChildren(), isClean()); rule_ = null; } ruleCase_ = 10; onChanged();; return httpResponseGenericBodyMatchBuilder_; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:envoy.config.tap.v3.MatchPredicate) } // @@protoc_insertion_point(class_scope:envoy.config.tap.v3.MatchPredicate) private static final io.envoyproxy.envoy.config.tap.v3.MatchPredicate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.tap.v3.MatchPredicate(); } public static io.envoyproxy.envoy.config.tap.v3.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.config.tap.v3.MatchPredicate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy