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

io.envoyproxy.envoy.config.common.matcher.v3.Matcher Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: envoy/config/common/matcher/v3/matcher.proto

package io.envoyproxy.envoy.config.common.matcher.v3;

/**
 * 
 * A matcher, which may traverse a matching tree in order to result in a match action.
 * During matching, the tree will be traversed until a match is found, or if no match
 * is found the action specified by the most specific on_no_match will be evaluated.
 * As an on_no_match might result in another matching tree being evaluated, this process
 * might repeat several times until the final OnMatch (or no match) is decided.
 * .. note::
 *   Please use the syntactically equivalent :ref:`matching API <envoy_v3_api_msg_.xds.type.matcher.v3.Matcher>`
 * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher} */ public final class Matcher extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.common.matcher.v3.Matcher) MatcherOrBuilder { private static final long serialVersionUID = 0L; // Use Matcher.newBuilder() to construct. private Matcher(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Matcher() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Matcher(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Matcher( 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.common.matcher.v3.Matcher.MatcherList.Builder subBuilder = null; if (matcherTypeCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList) matcherType_).toBuilder(); } matcherType_ = input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList) matcherType_); matcherType_ = subBuilder.buildPartial(); } matcherTypeCase_ = 1; break; } case 18: { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.Builder subBuilder = null; if (matcherTypeCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree) matcherType_).toBuilder(); } matcherType_ = input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree) matcherType_); matcherType_ = subBuilder.buildPartial(); } matcherTypeCase_ = 2; break; } case 26: { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder subBuilder = null; if (onNoMatch_ != null) { subBuilder = onNoMatch_.toBuilder(); } onNoMatch_ = input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(onNoMatch_); onNoMatch_ = subBuilder.buildPartial(); } 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.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.Builder.class); } public interface OnMatchOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.common.matcher.v3.Matcher.OnMatch) com.google.protobuf.MessageOrBuilder { /** *
     * Nested matcher to evaluate.
     * If the nested matcher does not match and does not specify
     * on_no_match, then this matcher is considered not to have
     * matched, even if a predicate at this level or above returned
     * true.
     * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; * @return Whether the matcher field is set. */ boolean hasMatcher(); /** *
     * Nested matcher to evaluate.
     * If the nested matcher does not match and does not specify
     * on_no_match, then this matcher is considered not to have
     * matched, even if a predicate at this level or above returned
     * true.
     * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; * @return The matcher. */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher getMatcher(); /** *
     * Nested matcher to evaluate.
     * If the nested matcher does not match and does not specify
     * on_no_match, then this matcher is considered not to have
     * matched, even if a predicate at this level or above returned
     * true.
     * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; */ io.envoyproxy.envoy.config.common.matcher.v3.MatcherOrBuilder getMatcherOrBuilder(); /** *
     * Protocol-specific action to take.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; * @return Whether the action field is set. */ boolean hasAction(); /** *
     * Protocol-specific action to take.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; * @return The action. */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getAction(); /** *
     * Protocol-specific action to take.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getActionOrBuilder(); public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.OnMatchCase getOnMatchCase(); } /** *
   * What to do if a match is successful.
   * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.OnMatch} */ public static final class OnMatch extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.common.matcher.v3.Matcher.OnMatch) OnMatchOrBuilder { private static final long serialVersionUID = 0L; // Use OnMatch.newBuilder() to construct. private OnMatch(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private OnMatch() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new OnMatch(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private OnMatch( 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.common.matcher.v3.Matcher.Builder subBuilder = null; if (onMatchCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.config.common.matcher.v3.Matcher) onMatch_).toBuilder(); } onMatch_ = input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher) onMatch_); onMatch_ = subBuilder.buildPartial(); } onMatchCase_ = 1; break; } case 18: { io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder subBuilder = null; if (onMatchCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) onMatch_).toBuilder(); } onMatch_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) onMatch_); onMatch_ = subBuilder.buildPartial(); } onMatchCase_ = 2; 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.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_OnMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_OnMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder.class); } private int onMatchCase_ = 0; private java.lang.Object onMatch_; public enum OnMatchCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MATCHER(1), ACTION(2), ONMATCH_NOT_SET(0); private final int value; private OnMatchCase(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 OnMatchCase valueOf(int value) { return forNumber(value); } public static OnMatchCase forNumber(int value) { switch (value) { case 1: return MATCHER; case 2: return ACTION; case 0: return ONMATCH_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public OnMatchCase getOnMatchCase() { return OnMatchCase.forNumber( onMatchCase_); } public static final int MATCHER_FIELD_NUMBER = 1; /** *
     * Nested matcher to evaluate.
     * If the nested matcher does not match and does not specify
     * on_no_match, then this matcher is considered not to have
     * matched, even if a predicate at this level or above returned
     * true.
     * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; * @return Whether the matcher field is set. */ @java.lang.Override public boolean hasMatcher() { return onMatchCase_ == 1; } /** *
     * Nested matcher to evaluate.
     * If the nested matcher does not match and does not specify
     * on_no_match, then this matcher is considered not to have
     * matched, even if a predicate at this level or above returned
     * true.
     * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; * @return The matcher. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher getMatcher() { if (onMatchCase_ == 1) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher) onMatch_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.getDefaultInstance(); } /** *
     * Nested matcher to evaluate.
     * If the nested matcher does not match and does not specify
     * on_no_match, then this matcher is considered not to have
     * matched, even if a predicate at this level or above returned
     * true.
     * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.MatcherOrBuilder getMatcherOrBuilder() { if (onMatchCase_ == 1) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher) onMatch_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.getDefaultInstance(); } public static final int ACTION_FIELD_NUMBER = 2; /** *
     * Protocol-specific action to take.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return onMatchCase_ == 2; } /** *
     * Protocol-specific action to take.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; * @return The action. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getAction() { if (onMatchCase_ == 2) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) onMatch_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } /** *
     * Protocol-specific action to take.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getActionOrBuilder() { if (onMatchCase_ == 2) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) onMatch_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.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 (onMatchCase_ == 1) { output.writeMessage(1, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher) onMatch_); } if (onMatchCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) onMatch_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (onMatchCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher) onMatch_); } if (onMatchCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) onMatch_); } 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.common.matcher.v3.Matcher.OnMatch)) { return super.equals(obj); } io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch other = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch) obj; if (!getOnMatchCase().equals(other.getOnMatchCase())) return false; switch (onMatchCase_) { case 1: if (!getMatcher() .equals(other.getMatcher())) return false; break; case 2: if (!getAction() .equals(other.getAction())) 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 (onMatchCase_) { case 1: hash = (37 * hash) + MATCHER_FIELD_NUMBER; hash = (53 * hash) + getMatcher().hashCode(); break; case 2: hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch 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.common.matcher.v3.Matcher.OnMatch parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch 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.common.matcher.v3.Matcher.OnMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch 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.common.matcher.v3.Matcher.OnMatch parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch 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.common.matcher.v3.Matcher.OnMatch parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch 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.common.matcher.v3.Matcher.OnMatch 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; } /** *
     * What to do if a match is successful.
     * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.OnMatch} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.common.matcher.v3.Matcher.OnMatch) io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatchOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_OnMatch_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_OnMatch_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder.class); } // Construct using io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.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(); onMatchCase_ = 0; onMatch_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_OnMatch_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getDefaultInstanceForType() { return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch build() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch buildPartial() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch result = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch(this); if (onMatchCase_ == 1) { if (matcherBuilder_ == null) { result.onMatch_ = onMatch_; } else { result.onMatch_ = matcherBuilder_.build(); } } if (onMatchCase_ == 2) { if (actionBuilder_ == null) { result.onMatch_ = onMatch_; } else { result.onMatch_ = actionBuilder_.build(); } } result.onMatchCase_ = onMatchCase_; 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.common.matcher.v3.Matcher.OnMatch) { return mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch other) { if (other == io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.getDefaultInstance()) return this; switch (other.getOnMatchCase()) { case MATCHER: { mergeMatcher(other.getMatcher()); break; } case ACTION: { mergeAction(other.getAction()); break; } case ONMATCH_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.common.matcher.v3.Matcher.OnMatch parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int onMatchCase_ = 0; private java.lang.Object onMatch_; public OnMatchCase getOnMatchCase() { return OnMatchCase.forNumber( onMatchCase_); } public Builder clearOnMatch() { onMatchCase_ = 0; onMatch_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.Builder, io.envoyproxy.envoy.config.common.matcher.v3.MatcherOrBuilder> matcherBuilder_; /** *
       * Nested matcher to evaluate.
       * If the nested matcher does not match and does not specify
       * on_no_match, then this matcher is considered not to have
       * matched, even if a predicate at this level or above returned
       * true.
       * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; * @return Whether the matcher field is set. */ @java.lang.Override public boolean hasMatcher() { return onMatchCase_ == 1; } /** *
       * Nested matcher to evaluate.
       * If the nested matcher does not match and does not specify
       * on_no_match, then this matcher is considered not to have
       * matched, even if a predicate at this level or above returned
       * true.
       * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; * @return The matcher. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher getMatcher() { if (matcherBuilder_ == null) { if (onMatchCase_ == 1) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher) onMatch_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.getDefaultInstance(); } else { if (onMatchCase_ == 1) { return matcherBuilder_.getMessage(); } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.getDefaultInstance(); } } /** *
       * Nested matcher to evaluate.
       * If the nested matcher does not match and does not specify
       * on_no_match, then this matcher is considered not to have
       * matched, even if a predicate at this level or above returned
       * true.
       * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; */ public Builder setMatcher(io.envoyproxy.envoy.config.common.matcher.v3.Matcher value) { if (matcherBuilder_ == null) { if (value == null) { throw new NullPointerException(); } onMatch_ = value; onChanged(); } else { matcherBuilder_.setMessage(value); } onMatchCase_ = 1; return this; } /** *
       * Nested matcher to evaluate.
       * If the nested matcher does not match and does not specify
       * on_no_match, then this matcher is considered not to have
       * matched, even if a predicate at this level or above returned
       * true.
       * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; */ public Builder setMatcher( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.Builder builderForValue) { if (matcherBuilder_ == null) { onMatch_ = builderForValue.build(); onChanged(); } else { matcherBuilder_.setMessage(builderForValue.build()); } onMatchCase_ = 1; return this; } /** *
       * Nested matcher to evaluate.
       * If the nested matcher does not match and does not specify
       * on_no_match, then this matcher is considered not to have
       * matched, even if a predicate at this level or above returned
       * true.
       * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; */ public Builder mergeMatcher(io.envoyproxy.envoy.config.common.matcher.v3.Matcher value) { if (matcherBuilder_ == null) { if (onMatchCase_ == 1 && onMatch_ != io.envoyproxy.envoy.config.common.matcher.v3.Matcher.getDefaultInstance()) { onMatch_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.newBuilder((io.envoyproxy.envoy.config.common.matcher.v3.Matcher) onMatch_) .mergeFrom(value).buildPartial(); } else { onMatch_ = value; } onChanged(); } else { if (onMatchCase_ == 1) { matcherBuilder_.mergeFrom(value); } else { matcherBuilder_.setMessage(value); } } onMatchCase_ = 1; return this; } /** *
       * Nested matcher to evaluate.
       * If the nested matcher does not match and does not specify
       * on_no_match, then this matcher is considered not to have
       * matched, even if a predicate at this level or above returned
       * true.
       * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; */ public Builder clearMatcher() { if (matcherBuilder_ == null) { if (onMatchCase_ == 1) { onMatchCase_ = 0; onMatch_ = null; onChanged(); } } else { if (onMatchCase_ == 1) { onMatchCase_ = 0; onMatch_ = null; } matcherBuilder_.clear(); } return this; } /** *
       * Nested matcher to evaluate.
       * If the nested matcher does not match and does not specify
       * on_no_match, then this matcher is considered not to have
       * matched, even if a predicate at this level or above returned
       * true.
       * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.Builder getMatcherBuilder() { return getMatcherFieldBuilder().getBuilder(); } /** *
       * Nested matcher to evaluate.
       * If the nested matcher does not match and does not specify
       * on_no_match, then this matcher is considered not to have
       * matched, even if a predicate at this level or above returned
       * true.
       * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.MatcherOrBuilder getMatcherOrBuilder() { if ((onMatchCase_ == 1) && (matcherBuilder_ != null)) { return matcherBuilder_.getMessageOrBuilder(); } else { if (onMatchCase_ == 1) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher) onMatch_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.getDefaultInstance(); } } /** *
       * Nested matcher to evaluate.
       * If the nested matcher does not match and does not specify
       * on_no_match, then this matcher is considered not to have
       * matched, even if a predicate at this level or above returned
       * true.
       * 
* * .envoy.config.common.matcher.v3.Matcher matcher = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.Builder, io.envoyproxy.envoy.config.common.matcher.v3.MatcherOrBuilder> getMatcherFieldBuilder() { if (matcherBuilder_ == null) { if (!(onMatchCase_ == 1)) { onMatch_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.getDefaultInstance(); } matcherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.Builder, io.envoyproxy.envoy.config.common.matcher.v3.MatcherOrBuilder>( (io.envoyproxy.envoy.config.common.matcher.v3.Matcher) onMatch_, getParentForChildren(), isClean()); onMatch_ = null; } onMatchCase_ = 1; onChanged();; return matcherBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> actionBuilder_; /** *
       * Protocol-specific action to take.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return onMatchCase_ == 2; } /** *
       * Protocol-specific action to take.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; * @return The action. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getAction() { if (actionBuilder_ == null) { if (onMatchCase_ == 2) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) onMatch_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } else { if (onMatchCase_ == 2) { return actionBuilder_.getMessage(); } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } } /** *
       * Protocol-specific action to take.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; */ public Builder setAction(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (actionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } onMatch_ = value; onChanged(); } else { actionBuilder_.setMessage(value); } onMatchCase_ = 2; return this; } /** *
       * Protocol-specific action to take.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; */ public Builder setAction( io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder builderForValue) { if (actionBuilder_ == null) { onMatch_ = builderForValue.build(); onChanged(); } else { actionBuilder_.setMessage(builderForValue.build()); } onMatchCase_ = 2; return this; } /** *
       * Protocol-specific action to take.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; */ public Builder mergeAction(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (actionBuilder_ == null) { if (onMatchCase_ == 2 && onMatch_ != io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance()) { onMatch_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.newBuilder((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) onMatch_) .mergeFrom(value).buildPartial(); } else { onMatch_ = value; } onChanged(); } else { if (onMatchCase_ == 2) { actionBuilder_.mergeFrom(value); } else { actionBuilder_.setMessage(value); } } onMatchCase_ = 2; return this; } /** *
       * Protocol-specific action to take.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; */ public Builder clearAction() { if (actionBuilder_ == null) { if (onMatchCase_ == 2) { onMatchCase_ = 0; onMatch_ = null; onChanged(); } } else { if (onMatchCase_ == 2) { onMatchCase_ = 0; onMatch_ = null; } actionBuilder_.clear(); } return this; } /** *
       * Protocol-specific action to take.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder getActionBuilder() { return getActionFieldBuilder().getBuilder(); } /** *
       * Protocol-specific action to take.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getActionOrBuilder() { if ((onMatchCase_ == 2) && (actionBuilder_ != null)) { return actionBuilder_.getMessageOrBuilder(); } else { if (onMatchCase_ == 2) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) onMatch_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } } /** *
       * Protocol-specific action to take.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig action = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> getActionFieldBuilder() { if (actionBuilder_ == null) { if (!(onMatchCase_ == 2)) { onMatch_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder>( (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) onMatch_, getParentForChildren(), isClean()); onMatch_ = null; } onMatchCase_ = 2; onChanged();; return actionBuilder_; } @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.common.matcher.v3.Matcher.OnMatch) } // @@protoc_insertion_point(class_scope:envoy.config.common.matcher.v3.Matcher.OnMatch) private static final io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch(); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public OnMatch parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new OnMatch(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.common.matcher.v3.Matcher.OnMatch getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MatcherListOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.common.matcher.v3.Matcher.MatcherList) com.google.protobuf.MessageOrBuilder { /** *
     * A list of matchers. First match wins.
     * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ java.util.List getMatchersList(); /** *
     * A list of matchers. First match wins.
     * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher getMatchers(int index); /** *
     * A list of matchers. First match wins.
     * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ int getMatchersCount(); /** *
     * A list of matchers. First match wins.
     * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ java.util.List getMatchersOrBuilderList(); /** *
     * A list of matchers. First match wins.
     * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcherOrBuilder getMatchersOrBuilder( int index); } /** *
   * A linear list of field matchers.
   * The field matchers are evaluated in order, and the first match
   * wins.
   * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherList} */ public static final class MatcherList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.common.matcher.v3.Matcher.MatcherList) MatcherListOrBuilder { private static final long serialVersionUID = 0L; // Use MatcherList.newBuilder() to construct. private MatcherList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MatcherList() { matchers_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MatcherList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MatcherList( 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)) { matchers_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } matchers_.add( input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.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)) { matchers_ = java.util.Collections.unmodifiableList(matchers_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Builder.class); } public interface PredicateOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) com.google.protobuf.MessageOrBuilder { /** *
       * A single predicate to evaluate.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; * @return Whether the singlePredicate field is set. */ boolean hasSinglePredicate(); /** *
       * A single predicate to evaluate.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; * @return The singlePredicate. */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate getSinglePredicate(); /** *
       * A single predicate to evaluate.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicateOrBuilder getSinglePredicateOrBuilder(); /** *
       * A list of predicates to be OR-ed together.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; * @return Whether the orMatcher field is set. */ boolean hasOrMatcher(); /** *
       * A list of predicates to be OR-ed together.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; * @return The orMatcher. */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList getOrMatcher(); /** *
       * A list of predicates to be OR-ed together.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder getOrMatcherOrBuilder(); /** *
       * A list of predicates to be AND-ed together.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; * @return Whether the andMatcher field is set. */ boolean hasAndMatcher(); /** *
       * A list of predicates to be AND-ed together.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; * @return The andMatcher. */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList getAndMatcher(); /** *
       * A list of predicates to be AND-ed together.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder getAndMatcherOrBuilder(); /** *
       * The invert of a predicate
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; * @return Whether the notMatcher field is set. */ boolean hasNotMatcher(); /** *
       * The invert of a predicate
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; * @return The notMatcher. */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate getNotMatcher(); /** *
       * The invert of a predicate
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder getNotMatcherOrBuilder(); public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.MatchTypeCase getMatchTypeCase(); } /** *
     * Predicate to determine if a match is successful.
     * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate} */ public static final class Predicate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) PredicateOrBuilder { private static final long serialVersionUID = 0L; // Use Predicate.newBuilder() to construct. private Predicate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Predicate() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Predicate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Predicate( 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.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.Builder subBuilder = null; if (matchTypeCase_ == 1) { subBuilder = ((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) matchType_).toBuilder(); } matchType_ = input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) matchType_); matchType_ = subBuilder.buildPartial(); } matchTypeCase_ = 1; break; } case 18: { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder subBuilder = null; if (matchTypeCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_).toBuilder(); } matchType_ = input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_); matchType_ = subBuilder.buildPartial(); } matchTypeCase_ = 2; break; } case 26: { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder subBuilder = null; if (matchTypeCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_).toBuilder(); } matchType_ = input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_); matchType_ = subBuilder.buildPartial(); } matchTypeCase_ = 3; break; } case 34: { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder subBuilder = null; if (matchTypeCase_ == 4) { subBuilder = ((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) matchType_).toBuilder(); } matchType_ = input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) matchType_); matchType_ = subBuilder.buildPartial(); } matchTypeCase_ = 4; 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.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder.class); } public interface SinglePredicateOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) com.google.protobuf.MessageOrBuilder { /** *
         * Protocol-specific specification of input field to match on.
         * [#extension-category: envoy.matching.common_inputs]
         * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } * @return Whether the input field is set. */ boolean hasInput(); /** *
         * Protocol-specific specification of input field to match on.
         * [#extension-category: envoy.matching.common_inputs]
         * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } * @return The input. */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getInput(); /** *
         * Protocol-specific specification of input field to match on.
         * [#extension-category: envoy.matching.common_inputs]
         * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getInputOrBuilder(); /** *
         * Built-in string matcher.
         * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; * @return Whether the valueMatch field is set. */ boolean hasValueMatch(); /** *
         * Built-in string matcher.
         * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; * @return The valueMatch. */ io.envoyproxy.envoy.type.matcher.v3.StringMatcher getValueMatch(); /** *
         * Built-in string matcher.
         * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; */ io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder getValueMatchOrBuilder(); /** *
         * Extension for custom matching logic.
         * [#extension-category: envoy.matching.input_matchers]
         * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; * @return Whether the customMatch field is set. */ boolean hasCustomMatch(); /** *
         * Extension for custom matching logic.
         * [#extension-category: envoy.matching.input_matchers]
         * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; * @return The customMatch. */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getCustomMatch(); /** *
         * Extension for custom matching logic.
         * [#extension-category: envoy.matching.input_matchers]
         * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getCustomMatchOrBuilder(); public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.MatcherCase getMatcherCase(); } /** *
       * Predicate for a single input field.
       * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate} */ public static final class SinglePredicate extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) SinglePredicateOrBuilder { private static final long serialVersionUID = 0L; // Use SinglePredicate.newBuilder() to construct. private SinglePredicate(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SinglePredicate() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SinglePredicate(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private SinglePredicate( 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.core.v3.TypedExtensionConfig.Builder subBuilder = null; if (input_ != null) { subBuilder = input_.toBuilder(); } input_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(input_); input_ = subBuilder.buildPartial(); } break; } case 18: { io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder subBuilder = null; if (matcherCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.type.matcher.v3.StringMatcher) matcher_).toBuilder(); } matcher_ = input.readMessage(io.envoyproxy.envoy.type.matcher.v3.StringMatcher.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.type.matcher.v3.StringMatcher) matcher_); matcher_ = subBuilder.buildPartial(); } matcherCase_ = 2; break; } case 26: { io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder subBuilder = null; if (matcherCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) matcher_).toBuilder(); } matcher_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) matcher_); matcher_ = subBuilder.buildPartial(); } matcherCase_ = 3; 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.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_SinglePredicate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_SinglePredicate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.Builder.class); } private int matcherCase_ = 0; private java.lang.Object matcher_; public enum MatcherCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { VALUE_MATCH(2), CUSTOM_MATCH(3), MATCHER_NOT_SET(0); private final int value; private MatcherCase(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 MatcherCase valueOf(int value) { return forNumber(value); } public static MatcherCase forNumber(int value) { switch (value) { case 2: return VALUE_MATCH; case 3: return CUSTOM_MATCH; case 0: return MATCHER_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MatcherCase getMatcherCase() { return MatcherCase.forNumber( matcherCase_); } public static final int INPUT_FIELD_NUMBER = 1; private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig input_; /** *
         * Protocol-specific specification of input field to match on.
         * [#extension-category: envoy.matching.common_inputs]
         * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } * @return Whether the input field is set. */ @java.lang.Override public boolean hasInput() { return input_ != null; } /** *
         * Protocol-specific specification of input field to match on.
         * [#extension-category: envoy.matching.common_inputs]
         * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } * @return The input. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getInput() { return input_ == null ? io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance() : input_; } /** *
         * Protocol-specific specification of input field to match on.
         * [#extension-category: envoy.matching.common_inputs]
         * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getInputOrBuilder() { return getInput(); } public static final int VALUE_MATCH_FIELD_NUMBER = 2; /** *
         * Built-in string matcher.
         * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; * @return Whether the valueMatch field is set. */ @java.lang.Override public boolean hasValueMatch() { return matcherCase_ == 2; } /** *
         * Built-in string matcher.
         * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; * @return The valueMatch. */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.StringMatcher getValueMatch() { if (matcherCase_ == 2) { return (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) matcher_; } return io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance(); } /** *
         * Built-in string matcher.
         * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder getValueMatchOrBuilder() { if (matcherCase_ == 2) { return (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) matcher_; } return io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance(); } public static final int CUSTOM_MATCH_FIELD_NUMBER = 3; /** *
         * Extension for custom matching logic.
         * [#extension-category: envoy.matching.input_matchers]
         * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; * @return Whether the customMatch field is set. */ @java.lang.Override public boolean hasCustomMatch() { return matcherCase_ == 3; } /** *
         * Extension for custom matching logic.
         * [#extension-category: envoy.matching.input_matchers]
         * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; * @return The customMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getCustomMatch() { if (matcherCase_ == 3) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) matcher_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } /** *
         * Extension for custom matching logic.
         * [#extension-category: envoy.matching.input_matchers]
         * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getCustomMatchOrBuilder() { if (matcherCase_ == 3) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) matcher_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.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 (input_ != null) { output.writeMessage(1, getInput()); } if (matcherCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) matcher_); } if (matcherCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) matcher_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (input_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInput()); } if (matcherCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) matcher_); } if (matcherCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) matcher_); } 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.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate)) { return super.equals(obj); } io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate other = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) obj; if (hasInput() != other.hasInput()) return false; if (hasInput()) { if (!getInput() .equals(other.getInput())) return false; } if (!getMatcherCase().equals(other.getMatcherCase())) return false; switch (matcherCase_) { case 2: if (!getValueMatch() .equals(other.getValueMatch())) return false; break; case 3: if (!getCustomMatch() .equals(other.getCustomMatch())) 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(); if (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } switch (matcherCase_) { case 2: hash = (37 * hash) + VALUE_MATCH_FIELD_NUMBER; hash = (53 * hash) + getValueMatch().hashCode(); break; case 3: hash = (37 * hash) + CUSTOM_MATCH_FIELD_NUMBER; hash = (53 * hash) + getCustomMatch().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate 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.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate 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.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate 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.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate 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.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate 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.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate 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; } /** *
         * Predicate for a single input field.
         * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_SinglePredicate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_SinglePredicate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.Builder.class); } // Construct using io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.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(); if (inputBuilder_ == null) { input_ = null; } else { input_ = null; inputBuilder_ = null; } matcherCase_ = 0; matcher_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_SinglePredicate_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate getDefaultInstanceForType() { return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate build() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate buildPartial() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate result = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate(this); if (inputBuilder_ == null) { result.input_ = input_; } else { result.input_ = inputBuilder_.build(); } if (matcherCase_ == 2) { if (valueMatchBuilder_ == null) { result.matcher_ = matcher_; } else { result.matcher_ = valueMatchBuilder_.build(); } } if (matcherCase_ == 3) { if (customMatchBuilder_ == null) { result.matcher_ = matcher_; } else { result.matcher_ = customMatchBuilder_.build(); } } result.matcherCase_ = matcherCase_; 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.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) { return mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate other) { if (other == io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.getDefaultInstance()) return this; if (other.hasInput()) { mergeInput(other.getInput()); } switch (other.getMatcherCase()) { case VALUE_MATCH: { mergeValueMatch(other.getValueMatch()); break; } case CUSTOM_MATCH: { mergeCustomMatch(other.getCustomMatch()); break; } case MATCHER_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.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int matcherCase_ = 0; private java.lang.Object matcher_; public MatcherCase getMatcherCase() { return MatcherCase.forNumber( matcherCase_); } public Builder clearMatcher() { matcherCase_ = 0; matcher_ = null; onChanged(); return this; } private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig input_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> inputBuilder_; /** *
           * Protocol-specific specification of input field to match on.
           * [#extension-category: envoy.matching.common_inputs]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } * @return Whether the input field is set. */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; } /** *
           * Protocol-specific specification of input field to match on.
           * [#extension-category: envoy.matching.common_inputs]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } * @return The input. */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getInput() { if (inputBuilder_ == null) { return input_ == null ? io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** *
           * Protocol-specific specification of input field to match on.
           * [#extension-category: envoy.matching.common_inputs]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ public Builder setInput(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; onChanged(); } else { inputBuilder_.setMessage(value); } return this; } /** *
           * Protocol-specific specification of input field to match on.
           * [#extension-category: envoy.matching.common_inputs]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ public Builder setInput( io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); onChanged(); } else { inputBuilder_.setMessage(builderForValue.build()); } return this; } /** *
           * Protocol-specific specification of input field to match on.
           * [#extension-category: envoy.matching.common_inputs]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ public Builder mergeInput(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (inputBuilder_ == null) { if (input_ != null) { input_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.newBuilder(input_).mergeFrom(value).buildPartial(); } else { input_ = value; } onChanged(); } else { inputBuilder_.mergeFrom(value); } return this; } /** *
           * Protocol-specific specification of input field to match on.
           * [#extension-category: envoy.matching.common_inputs]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ public Builder clearInput() { if (inputBuilder_ == null) { input_ = null; onChanged(); } else { input_ = null; inputBuilder_ = null; } return this; } /** *
           * Protocol-specific specification of input field to match on.
           * [#extension-category: envoy.matching.common_inputs]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder getInputBuilder() { onChanged(); return getInputFieldBuilder().getBuilder(); } /** *
           * Protocol-specific specification of input field to match on.
           * [#extension-category: envoy.matching.common_inputs]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { return input_ == null ? io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance() : input_; } } /** *
           * Protocol-specific specification of input field to match on.
           * [#extension-category: envoy.matching.common_inputs]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder>( getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.StringMatcher, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder> valueMatchBuilder_; /** *
           * Built-in string matcher.
           * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; * @return Whether the valueMatch field is set. */ @java.lang.Override public boolean hasValueMatch() { return matcherCase_ == 2; } /** *
           * Built-in string matcher.
           * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; * @return The valueMatch. */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.StringMatcher getValueMatch() { if (valueMatchBuilder_ == null) { if (matcherCase_ == 2) { return (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) matcher_; } return io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance(); } else { if (matcherCase_ == 2) { return valueMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance(); } } /** *
           * Built-in string matcher.
           * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; */ public Builder setValueMatch(io.envoyproxy.envoy.type.matcher.v3.StringMatcher value) { if (valueMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } matcher_ = value; onChanged(); } else { valueMatchBuilder_.setMessage(value); } matcherCase_ = 2; return this; } /** *
           * Built-in string matcher.
           * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; */ public Builder setValueMatch( io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder builderForValue) { if (valueMatchBuilder_ == null) { matcher_ = builderForValue.build(); onChanged(); } else { valueMatchBuilder_.setMessage(builderForValue.build()); } matcherCase_ = 2; return this; } /** *
           * Built-in string matcher.
           * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; */ public Builder mergeValueMatch(io.envoyproxy.envoy.type.matcher.v3.StringMatcher value) { if (valueMatchBuilder_ == null) { if (matcherCase_ == 2 && matcher_ != io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance()) { matcher_ = io.envoyproxy.envoy.type.matcher.v3.StringMatcher.newBuilder((io.envoyproxy.envoy.type.matcher.v3.StringMatcher) matcher_) .mergeFrom(value).buildPartial(); } else { matcher_ = value; } onChanged(); } else { if (matcherCase_ == 2) { valueMatchBuilder_.mergeFrom(value); } else { valueMatchBuilder_.setMessage(value); } } matcherCase_ = 2; return this; } /** *
           * Built-in string matcher.
           * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; */ public Builder clearValueMatch() { if (valueMatchBuilder_ == null) { if (matcherCase_ == 2) { matcherCase_ = 0; matcher_ = null; onChanged(); } } else { if (matcherCase_ == 2) { matcherCase_ = 0; matcher_ = null; } valueMatchBuilder_.clear(); } return this; } /** *
           * Built-in string matcher.
           * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; */ public io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder getValueMatchBuilder() { return getValueMatchFieldBuilder().getBuilder(); } /** *
           * Built-in string matcher.
           * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; */ @java.lang.Override public io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder getValueMatchOrBuilder() { if ((matcherCase_ == 2) && (valueMatchBuilder_ != null)) { return valueMatchBuilder_.getMessageOrBuilder(); } else { if (matcherCase_ == 2) { return (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) matcher_; } return io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance(); } } /** *
           * Built-in string matcher.
           * 
* * .envoy.type.matcher.v3.StringMatcher value_match = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.StringMatcher, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder> getValueMatchFieldBuilder() { if (valueMatchBuilder_ == null) { if (!(matcherCase_ == 2)) { matcher_ = io.envoyproxy.envoy.type.matcher.v3.StringMatcher.getDefaultInstance(); } valueMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.type.matcher.v3.StringMatcher, io.envoyproxy.envoy.type.matcher.v3.StringMatcher.Builder, io.envoyproxy.envoy.type.matcher.v3.StringMatcherOrBuilder>( (io.envoyproxy.envoy.type.matcher.v3.StringMatcher) matcher_, getParentForChildren(), isClean()); matcher_ = null; } matcherCase_ = 2; onChanged();; return valueMatchBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> customMatchBuilder_; /** *
           * Extension for custom matching logic.
           * [#extension-category: envoy.matching.input_matchers]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; * @return Whether the customMatch field is set. */ @java.lang.Override public boolean hasCustomMatch() { return matcherCase_ == 3; } /** *
           * Extension for custom matching logic.
           * [#extension-category: envoy.matching.input_matchers]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; * @return The customMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getCustomMatch() { if (customMatchBuilder_ == null) { if (matcherCase_ == 3) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) matcher_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } else { if (matcherCase_ == 3) { return customMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } } /** *
           * Extension for custom matching logic.
           * [#extension-category: envoy.matching.input_matchers]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; */ public Builder setCustomMatch(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (customMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } matcher_ = value; onChanged(); } else { customMatchBuilder_.setMessage(value); } matcherCase_ = 3; return this; } /** *
           * Extension for custom matching logic.
           * [#extension-category: envoy.matching.input_matchers]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; */ public Builder setCustomMatch( io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder builderForValue) { if (customMatchBuilder_ == null) { matcher_ = builderForValue.build(); onChanged(); } else { customMatchBuilder_.setMessage(builderForValue.build()); } matcherCase_ = 3; return this; } /** *
           * Extension for custom matching logic.
           * [#extension-category: envoy.matching.input_matchers]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; */ public Builder mergeCustomMatch(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (customMatchBuilder_ == null) { if (matcherCase_ == 3 && matcher_ != io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance()) { matcher_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.newBuilder((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) matcher_) .mergeFrom(value).buildPartial(); } else { matcher_ = value; } onChanged(); } else { if (matcherCase_ == 3) { customMatchBuilder_.mergeFrom(value); } else { customMatchBuilder_.setMessage(value); } } matcherCase_ = 3; return this; } /** *
           * Extension for custom matching logic.
           * [#extension-category: envoy.matching.input_matchers]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; */ public Builder clearCustomMatch() { if (customMatchBuilder_ == null) { if (matcherCase_ == 3) { matcherCase_ = 0; matcher_ = null; onChanged(); } } else { if (matcherCase_ == 3) { matcherCase_ = 0; matcher_ = null; } customMatchBuilder_.clear(); } return this; } /** *
           * Extension for custom matching logic.
           * [#extension-category: envoy.matching.input_matchers]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder getCustomMatchBuilder() { return getCustomMatchFieldBuilder().getBuilder(); } /** *
           * Extension for custom matching logic.
           * [#extension-category: envoy.matching.input_matchers]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getCustomMatchOrBuilder() { if ((matcherCase_ == 3) && (customMatchBuilder_ != null)) { return customMatchBuilder_.getMessageOrBuilder(); } else { if (matcherCase_ == 3) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) matcher_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } } /** *
           * Extension for custom matching logic.
           * [#extension-category: envoy.matching.input_matchers]
           * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> getCustomMatchFieldBuilder() { if (customMatchBuilder_ == null) { if (!(matcherCase_ == 3)) { matcher_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } customMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder>( (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) matcher_, getParentForChildren(), isClean()); matcher_ = null; } matcherCase_ = 3; onChanged();; return customMatchBuilder_; } @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.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) } // @@protoc_insertion_point(class_scope:envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) private static final io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate(); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SinglePredicate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new SinglePredicate(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.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PredicateListOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) com.google.protobuf.MessageOrBuilder { /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ java.util.List getPredicateList(); /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate getPredicate(int index); /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ int getPredicateCount(); /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ java.util.List getPredicateOrBuilderList(); /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder getPredicateOrBuilder( int index); } /** *
       * A list of two or more matchers. Used to allow using a list within a oneof.
       * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList} */ public static final class PredicateList extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) PredicateListOrBuilder { private static final long serialVersionUID = 0L; // Use PredicateList.newBuilder() to construct. private PredicateList(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PredicateList() { predicate_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PredicateList(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private PredicateList( 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)) { predicate_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } predicate_.add( input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.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)) { predicate_ = java.util.Collections.unmodifiableList(predicate_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_PredicateList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_PredicateList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder.class); } public static final int PREDICATE_FIELD_NUMBER = 1; private java.util.List predicate_; /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getPredicateList() { return predicate_; } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getPredicateOrBuilderList() { return predicate_; } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ @java.lang.Override public int getPredicateCount() { return predicate_.size(); } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate getPredicate(int index) { return predicate_.get(index); } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder getPredicateOrBuilder( int index) { return predicate_.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 < predicate_.size(); i++) { output.writeMessage(1, predicate_.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 < predicate_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, predicate_.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.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList)) { return super.equals(obj); } io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList other = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) obj; if (!getPredicateList() .equals(other.getPredicateList())) 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 (getPredicateCount() > 0) { hash = (37 * hash) + PREDICATE_FIELD_NUMBER; hash = (53 * hash) + getPredicateList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList 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.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList 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.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList 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.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList 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.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList 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.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList 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 list of two or more matchers. Used to allow using a list within a oneof.
         * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_PredicateList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_PredicateList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder.class); } // Construct using io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPredicateFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (predicateBuilder_ == null) { predicate_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { predicateBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_PredicateList_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList getDefaultInstanceForType() { return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList build() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList buildPartial() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList result = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList(this); int from_bitField0_ = bitField0_; if (predicateBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { predicate_ = java.util.Collections.unmodifiableList(predicate_); bitField0_ = (bitField0_ & ~0x00000001); } result.predicate_ = predicate_; } else { result.predicate_ = predicateBuilder_.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.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) { return mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList other) { if (other == io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance()) return this; if (predicateBuilder_ == null) { if (!other.predicate_.isEmpty()) { if (predicate_.isEmpty()) { predicate_ = other.predicate_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePredicateIsMutable(); predicate_.addAll(other.predicate_); } onChanged(); } } else { if (!other.predicate_.isEmpty()) { if (predicateBuilder_.isEmpty()) { predicateBuilder_.dispose(); predicateBuilder_ = null; predicate_ = other.predicate_; bitField0_ = (bitField0_ & ~0x00000001); predicateBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPredicateFieldBuilder() : null; } else { predicateBuilder_.addAllMessages(other.predicate_); } } } 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.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List predicate_ = java.util.Collections.emptyList(); private void ensurePredicateIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { predicate_ = new java.util.ArrayList(predicate_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder> predicateBuilder_; /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public java.util.List getPredicateList() { if (predicateBuilder_ == null) { return java.util.Collections.unmodifiableList(predicate_); } else { return predicateBuilder_.getMessageList(); } } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public int getPredicateCount() { if (predicateBuilder_ == null) { return predicate_.size(); } else { return predicateBuilder_.getCount(); } } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate getPredicate(int index) { if (predicateBuilder_ == null) { return predicate_.get(index); } else { return predicateBuilder_.getMessage(index); } } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder setPredicate( int index, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate value) { if (predicateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePredicateIsMutable(); predicate_.set(index, value); onChanged(); } else { predicateBuilder_.setMessage(index, value); } return this; } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder setPredicate( int index, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder builderForValue) { if (predicateBuilder_ == null) { ensurePredicateIsMutable(); predicate_.set(index, builderForValue.build()); onChanged(); } else { predicateBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder addPredicate(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate value) { if (predicateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePredicateIsMutable(); predicate_.add(value); onChanged(); } else { predicateBuilder_.addMessage(value); } return this; } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder addPredicate( int index, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate value) { if (predicateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePredicateIsMutable(); predicate_.add(index, value); onChanged(); } else { predicateBuilder_.addMessage(index, value); } return this; } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder addPredicate( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder builderForValue) { if (predicateBuilder_ == null) { ensurePredicateIsMutable(); predicate_.add(builderForValue.build()); onChanged(); } else { predicateBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder addPredicate( int index, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder builderForValue) { if (predicateBuilder_ == null) { ensurePredicateIsMutable(); predicate_.add(index, builderForValue.build()); onChanged(); } else { predicateBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder addAllPredicate( java.lang.Iterable values) { if (predicateBuilder_ == null) { ensurePredicateIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, predicate_); onChanged(); } else { predicateBuilder_.addAllMessages(values); } return this; } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder clearPredicate() { if (predicateBuilder_ == null) { predicate_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { predicateBuilder_.clear(); } return this; } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder removePredicate(int index) { if (predicateBuilder_ == null) { ensurePredicateIsMutable(); predicate_.remove(index); onChanged(); } else { predicateBuilder_.remove(index); } return this; } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder getPredicateBuilder( int index) { return getPredicateFieldBuilder().getBuilder(index); } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder getPredicateOrBuilder( int index) { if (predicateBuilder_ == null) { return predicate_.get(index); } else { return predicateBuilder_.getMessageOrBuilder(index); } } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public java.util.List getPredicateOrBuilderList() { if (predicateBuilder_ != null) { return predicateBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(predicate_); } } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder addPredicateBuilder() { return getPredicateFieldBuilder().addBuilder( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance()); } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder addPredicateBuilder( int index) { return getPredicateFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance()); } /** * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public java.util.List getPredicateBuilderList() { return getPredicateFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder> getPredicateFieldBuilder() { if (predicateBuilder_ == null) { predicateBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder>( predicate_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); predicate_ = null; } return predicateBuilder_; } @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.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) } // @@protoc_insertion_point(class_scope:envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) private static final io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList(); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PredicateList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new PredicateList(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.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int matchTypeCase_ = 0; private java.lang.Object matchType_; public enum MatchTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { SINGLE_PREDICATE(1), OR_MATCHER(2), AND_MATCHER(3), NOT_MATCHER(4), MATCHTYPE_NOT_SET(0); private final int value; private MatchTypeCase(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 MatchTypeCase valueOf(int value) { return forNumber(value); } public static MatchTypeCase forNumber(int value) { switch (value) { case 1: return SINGLE_PREDICATE; case 2: return OR_MATCHER; case 3: return AND_MATCHER; case 4: return NOT_MATCHER; case 0: return MATCHTYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MatchTypeCase getMatchTypeCase() { return MatchTypeCase.forNumber( matchTypeCase_); } public static final int SINGLE_PREDICATE_FIELD_NUMBER = 1; /** *
       * A single predicate to evaluate.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; * @return Whether the singlePredicate field is set. */ @java.lang.Override public boolean hasSinglePredicate() { return matchTypeCase_ == 1; } /** *
       * A single predicate to evaluate.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; * @return The singlePredicate. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate getSinglePredicate() { if (matchTypeCase_ == 1) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.getDefaultInstance(); } /** *
       * A single predicate to evaluate.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicateOrBuilder getSinglePredicateOrBuilder() { if (matchTypeCase_ == 1) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.getDefaultInstance(); } public static final int OR_MATCHER_FIELD_NUMBER = 2; /** *
       * A list of predicates to be OR-ed together.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; * @return Whether the orMatcher field is set. */ @java.lang.Override public boolean hasOrMatcher() { return matchTypeCase_ == 2; } /** *
       * A list of predicates to be OR-ed together.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; * @return The orMatcher. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList getOrMatcher() { if (matchTypeCase_ == 2) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } /** *
       * A list of predicates to be OR-ed together.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder getOrMatcherOrBuilder() { if (matchTypeCase_ == 2) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } public static final int AND_MATCHER_FIELD_NUMBER = 3; /** *
       * A list of predicates to be AND-ed together.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; * @return Whether the andMatcher field is set. */ @java.lang.Override public boolean hasAndMatcher() { return matchTypeCase_ == 3; } /** *
       * A list of predicates to be AND-ed together.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; * @return The andMatcher. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList getAndMatcher() { if (matchTypeCase_ == 3) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } /** *
       * A list of predicates to be AND-ed together.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder getAndMatcherOrBuilder() { if (matchTypeCase_ == 3) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } public static final int NOT_MATCHER_FIELD_NUMBER = 4; /** *
       * The invert of a predicate
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; * @return Whether the notMatcher field is set. */ @java.lang.Override public boolean hasNotMatcher() { return matchTypeCase_ == 4; } /** *
       * The invert of a predicate
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; * @return The notMatcher. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate getNotMatcher() { if (matchTypeCase_ == 4) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance(); } /** *
       * The invert of a predicate
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder getNotMatcherOrBuilder() { if (matchTypeCase_ == 4) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.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 (matchTypeCase_ == 1) { output.writeMessage(1, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) matchType_); } if (matchTypeCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_); } if (matchTypeCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_); } if (matchTypeCase_ == 4) { output.writeMessage(4, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) matchType_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (matchTypeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) matchType_); } if (matchTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_); } if (matchTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_); } if (matchTypeCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) matchType_); } 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.common.matcher.v3.Matcher.MatcherList.Predicate)) { return super.equals(obj); } io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate other = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) obj; if (!getMatchTypeCase().equals(other.getMatchTypeCase())) return false; switch (matchTypeCase_) { case 1: if (!getSinglePredicate() .equals(other.getSinglePredicate())) return false; break; case 2: if (!getOrMatcher() .equals(other.getOrMatcher())) return false; break; case 3: if (!getAndMatcher() .equals(other.getAndMatcher())) return false; break; case 4: if (!getNotMatcher() .equals(other.getNotMatcher())) 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 (matchTypeCase_) { case 1: hash = (37 * hash) + SINGLE_PREDICATE_FIELD_NUMBER; hash = (53 * hash) + getSinglePredicate().hashCode(); break; case 2: hash = (37 * hash) + OR_MATCHER_FIELD_NUMBER; hash = (53 * hash) + getOrMatcher().hashCode(); break; case 3: hash = (37 * hash) + AND_MATCHER_FIELD_NUMBER; hash = (53 * hash) + getAndMatcher().hashCode(); break; case 4: hash = (37 * hash) + NOT_MATCHER_FIELD_NUMBER; hash = (53 * hash) + getNotMatcher().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate 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.common.matcher.v3.Matcher.MatcherList.Predicate parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate 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.common.matcher.v3.Matcher.MatcherList.Predicate parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate 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.common.matcher.v3.Matcher.MatcherList.Predicate parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate 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.common.matcher.v3.Matcher.MatcherList.Predicate parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate 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.common.matcher.v3.Matcher.MatcherList.Predicate 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; } /** *
       * Predicate to determine if a match is successful.
       * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder.class); } // Construct using io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.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(); matchTypeCase_ = 0; matchType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_Predicate_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate getDefaultInstanceForType() { return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate build() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate buildPartial() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate result = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate(this); if (matchTypeCase_ == 1) { if (singlePredicateBuilder_ == null) { result.matchType_ = matchType_; } else { result.matchType_ = singlePredicateBuilder_.build(); } } if (matchTypeCase_ == 2) { if (orMatcherBuilder_ == null) { result.matchType_ = matchType_; } else { result.matchType_ = orMatcherBuilder_.build(); } } if (matchTypeCase_ == 3) { if (andMatcherBuilder_ == null) { result.matchType_ = matchType_; } else { result.matchType_ = andMatcherBuilder_.build(); } } if (matchTypeCase_ == 4) { if (notMatcherBuilder_ == null) { result.matchType_ = matchType_; } else { result.matchType_ = notMatcherBuilder_.build(); } } result.matchTypeCase_ = matchTypeCase_; 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.common.matcher.v3.Matcher.MatcherList.Predicate) { return mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate other) { if (other == io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance()) return this; switch (other.getMatchTypeCase()) { case SINGLE_PREDICATE: { mergeSinglePredicate(other.getSinglePredicate()); break; } case OR_MATCHER: { mergeOrMatcher(other.getOrMatcher()); break; } case AND_MATCHER: { mergeAndMatcher(other.getAndMatcher()); break; } case NOT_MATCHER: { mergeNotMatcher(other.getNotMatcher()); break; } case MATCHTYPE_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.common.matcher.v3.Matcher.MatcherList.Predicate parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int matchTypeCase_ = 0; private java.lang.Object matchType_; public MatchTypeCase getMatchTypeCase() { return MatchTypeCase.forNumber( matchTypeCase_); } public Builder clearMatchType() { matchTypeCase_ = 0; matchType_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicateOrBuilder> singlePredicateBuilder_; /** *
         * A single predicate to evaluate.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; * @return Whether the singlePredicate field is set. */ @java.lang.Override public boolean hasSinglePredicate() { return matchTypeCase_ == 1; } /** *
         * A single predicate to evaluate.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; * @return The singlePredicate. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate getSinglePredicate() { if (singlePredicateBuilder_ == null) { if (matchTypeCase_ == 1) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.getDefaultInstance(); } else { if (matchTypeCase_ == 1) { return singlePredicateBuilder_.getMessage(); } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.getDefaultInstance(); } } /** *
         * A single predicate to evaluate.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; */ public Builder setSinglePredicate(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate value) { if (singlePredicateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } matchType_ = value; onChanged(); } else { singlePredicateBuilder_.setMessage(value); } matchTypeCase_ = 1; return this; } /** *
         * A single predicate to evaluate.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; */ public Builder setSinglePredicate( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.Builder builderForValue) { if (singlePredicateBuilder_ == null) { matchType_ = builderForValue.build(); onChanged(); } else { singlePredicateBuilder_.setMessage(builderForValue.build()); } matchTypeCase_ = 1; return this; } /** *
         * A single predicate to evaluate.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; */ public Builder mergeSinglePredicate(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate value) { if (singlePredicateBuilder_ == null) { if (matchTypeCase_ == 1 && matchType_ != io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.getDefaultInstance()) { matchType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.newBuilder((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) matchType_) .mergeFrom(value).buildPartial(); } else { matchType_ = value; } onChanged(); } else { if (matchTypeCase_ == 1) { singlePredicateBuilder_.mergeFrom(value); } else { singlePredicateBuilder_.setMessage(value); } } matchTypeCase_ = 1; return this; } /** *
         * A single predicate to evaluate.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; */ public Builder clearSinglePredicate() { if (singlePredicateBuilder_ == null) { if (matchTypeCase_ == 1) { matchTypeCase_ = 0; matchType_ = null; onChanged(); } } else { if (matchTypeCase_ == 1) { matchTypeCase_ = 0; matchType_ = null; } singlePredicateBuilder_.clear(); } return this; } /** *
         * A single predicate to evaluate.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.Builder getSinglePredicateBuilder() { return getSinglePredicateFieldBuilder().getBuilder(); } /** *
         * A single predicate to evaluate.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicateOrBuilder getSinglePredicateOrBuilder() { if ((matchTypeCase_ == 1) && (singlePredicateBuilder_ != null)) { return singlePredicateBuilder_.getMessageOrBuilder(); } else { if (matchTypeCase_ == 1) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.getDefaultInstance(); } } /** *
         * A single predicate to evaluate.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate single_predicate = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicateOrBuilder> getSinglePredicateFieldBuilder() { if (singlePredicateBuilder_ == null) { if (!(matchTypeCase_ == 1)) { matchType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.getDefaultInstance(); } singlePredicateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicateOrBuilder>( (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.SinglePredicate) matchType_, getParentForChildren(), isClean()); matchType_ = null; } matchTypeCase_ = 1; onChanged();; return singlePredicateBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder> orMatcherBuilder_; /** *
         * A list of predicates to be OR-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; * @return Whether the orMatcher field is set. */ @java.lang.Override public boolean hasOrMatcher() { return matchTypeCase_ == 2; } /** *
         * A list of predicates to be OR-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; * @return The orMatcher. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList getOrMatcher() { if (orMatcherBuilder_ == null) { if (matchTypeCase_ == 2) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } else { if (matchTypeCase_ == 2) { return orMatcherBuilder_.getMessage(); } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } } /** *
         * A list of predicates to be OR-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; */ public Builder setOrMatcher(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList value) { if (orMatcherBuilder_ == null) { if (value == null) { throw new NullPointerException(); } matchType_ = value; onChanged(); } else { orMatcherBuilder_.setMessage(value); } matchTypeCase_ = 2; return this; } /** *
         * A list of predicates to be OR-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; */ public Builder setOrMatcher( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder builderForValue) { if (orMatcherBuilder_ == null) { matchType_ = builderForValue.build(); onChanged(); } else { orMatcherBuilder_.setMessage(builderForValue.build()); } matchTypeCase_ = 2; return this; } /** *
         * A list of predicates to be OR-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; */ public Builder mergeOrMatcher(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList value) { if (orMatcherBuilder_ == null) { if (matchTypeCase_ == 2 && matchType_ != io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance()) { matchType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.newBuilder((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_) .mergeFrom(value).buildPartial(); } else { matchType_ = value; } onChanged(); } else { if (matchTypeCase_ == 2) { orMatcherBuilder_.mergeFrom(value); } else { orMatcherBuilder_.setMessage(value); } } matchTypeCase_ = 2; return this; } /** *
         * A list of predicates to be OR-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; */ public Builder clearOrMatcher() { if (orMatcherBuilder_ == null) { if (matchTypeCase_ == 2) { matchTypeCase_ = 0; matchType_ = null; onChanged(); } } else { if (matchTypeCase_ == 2) { matchTypeCase_ = 0; matchType_ = null; } orMatcherBuilder_.clear(); } return this; } /** *
         * A list of predicates to be OR-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder getOrMatcherBuilder() { return getOrMatcherFieldBuilder().getBuilder(); } /** *
         * A list of predicates to be OR-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder getOrMatcherOrBuilder() { if ((matchTypeCase_ == 2) && (orMatcherBuilder_ != null)) { return orMatcherBuilder_.getMessageOrBuilder(); } else { if (matchTypeCase_ == 2) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } } /** *
         * A list of predicates to be OR-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList or_matcher = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder> getOrMatcherFieldBuilder() { if (orMatcherBuilder_ == null) { if (!(matchTypeCase_ == 2)) { matchType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } orMatcherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder>( (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_, getParentForChildren(), isClean()); matchType_ = null; } matchTypeCase_ = 2; onChanged();; return orMatcherBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder> andMatcherBuilder_; /** *
         * A list of predicates to be AND-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; * @return Whether the andMatcher field is set. */ @java.lang.Override public boolean hasAndMatcher() { return matchTypeCase_ == 3; } /** *
         * A list of predicates to be AND-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; * @return The andMatcher. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList getAndMatcher() { if (andMatcherBuilder_ == null) { if (matchTypeCase_ == 3) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } else { if (matchTypeCase_ == 3) { return andMatcherBuilder_.getMessage(); } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } } /** *
         * A list of predicates to be AND-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; */ public Builder setAndMatcher(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList value) { if (andMatcherBuilder_ == null) { if (value == null) { throw new NullPointerException(); } matchType_ = value; onChanged(); } else { andMatcherBuilder_.setMessage(value); } matchTypeCase_ = 3; return this; } /** *
         * A list of predicates to be AND-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; */ public Builder setAndMatcher( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder builderForValue) { if (andMatcherBuilder_ == null) { matchType_ = builderForValue.build(); onChanged(); } else { andMatcherBuilder_.setMessage(builderForValue.build()); } matchTypeCase_ = 3; return this; } /** *
         * A list of predicates to be AND-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; */ public Builder mergeAndMatcher(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList value) { if (andMatcherBuilder_ == null) { if (matchTypeCase_ == 3 && matchType_ != io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance()) { matchType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.newBuilder((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_) .mergeFrom(value).buildPartial(); } else { matchType_ = value; } onChanged(); } else { if (matchTypeCase_ == 3) { andMatcherBuilder_.mergeFrom(value); } else { andMatcherBuilder_.setMessage(value); } } matchTypeCase_ = 3; return this; } /** *
         * A list of predicates to be AND-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; */ public Builder clearAndMatcher() { if (andMatcherBuilder_ == null) { if (matchTypeCase_ == 3) { matchTypeCase_ = 0; matchType_ = null; onChanged(); } } else { if (matchTypeCase_ == 3) { matchTypeCase_ = 0; matchType_ = null; } andMatcherBuilder_.clear(); } return this; } /** *
         * A list of predicates to be AND-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder getAndMatcherBuilder() { return getAndMatcherFieldBuilder().getBuilder(); } /** *
         * A list of predicates to be AND-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder getAndMatcherOrBuilder() { if ((matchTypeCase_ == 3) && (andMatcherBuilder_ != null)) { return andMatcherBuilder_.getMessageOrBuilder(); } else { if (matchTypeCase_ == 3) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } } /** *
         * A list of predicates to be AND-ed together.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList and_matcher = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder> getAndMatcherFieldBuilder() { if (andMatcherBuilder_ == null) { if (!(matchTypeCase_ == 3)) { matchType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.getDefaultInstance(); } andMatcherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateListOrBuilder>( (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.PredicateList) matchType_, getParentForChildren(), isClean()); matchType_ = null; } matchTypeCase_ = 3; onChanged();; return andMatcherBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder> notMatcherBuilder_; /** *
         * The invert of a predicate
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; * @return Whether the notMatcher field is set. */ @java.lang.Override public boolean hasNotMatcher() { return matchTypeCase_ == 4; } /** *
         * The invert of a predicate
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; * @return The notMatcher. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate getNotMatcher() { if (notMatcherBuilder_ == null) { if (matchTypeCase_ == 4) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance(); } else { if (matchTypeCase_ == 4) { return notMatcherBuilder_.getMessage(); } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance(); } } /** *
         * The invert of a predicate
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; */ public Builder setNotMatcher(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate value) { if (notMatcherBuilder_ == null) { if (value == null) { throw new NullPointerException(); } matchType_ = value; onChanged(); } else { notMatcherBuilder_.setMessage(value); } matchTypeCase_ = 4; return this; } /** *
         * The invert of a predicate
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; */ public Builder setNotMatcher( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder builderForValue) { if (notMatcherBuilder_ == null) { matchType_ = builderForValue.build(); onChanged(); } else { notMatcherBuilder_.setMessage(builderForValue.build()); } matchTypeCase_ = 4; return this; } /** *
         * The invert of a predicate
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; */ public Builder mergeNotMatcher(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate value) { if (notMatcherBuilder_ == null) { if (matchTypeCase_ == 4 && matchType_ != io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance()) { matchType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.newBuilder((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) matchType_) .mergeFrom(value).buildPartial(); } else { matchType_ = value; } onChanged(); } else { if (matchTypeCase_ == 4) { notMatcherBuilder_.mergeFrom(value); } else { notMatcherBuilder_.setMessage(value); } } matchTypeCase_ = 4; return this; } /** *
         * The invert of a predicate
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; */ public Builder clearNotMatcher() { if (notMatcherBuilder_ == null) { if (matchTypeCase_ == 4) { matchTypeCase_ = 0; matchType_ = null; onChanged(); } } else { if (matchTypeCase_ == 4) { matchTypeCase_ = 0; matchType_ = null; } notMatcherBuilder_.clear(); } return this; } /** *
         * The invert of a predicate
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder getNotMatcherBuilder() { return getNotMatcherFieldBuilder().getBuilder(); } /** *
         * The invert of a predicate
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder getNotMatcherOrBuilder() { if ((matchTypeCase_ == 4) && (notMatcherBuilder_ != null)) { return notMatcherBuilder_.getMessageOrBuilder(); } else { if (matchTypeCase_ == 4) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) matchType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance(); } } /** *
         * The invert of a predicate
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate not_matcher = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder> getNotMatcherFieldBuilder() { if (notMatcherBuilder_ == null) { if (!(matchTypeCase_ == 4)) { matchType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance(); } notMatcherBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder>( (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) matchType_, getParentForChildren(), isClean()); matchType_ = null; } matchTypeCase_ = 4; onChanged();; return notMatcherBuilder_; } @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.common.matcher.v3.Matcher.MatcherList.Predicate) } // @@protoc_insertion_point(class_scope:envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate) private static final io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate(); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Predicate parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Predicate(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.common.matcher.v3.Matcher.MatcherList.Predicate getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface FieldMatcherOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher) com.google.protobuf.MessageOrBuilder { /** *
       * Determines if the match succeeds.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } * @return Whether the predicate field is set. */ boolean hasPredicate(); /** *
       * Determines if the match succeeds.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } * @return The predicate. */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate getPredicate(); /** *
       * Determines if the match succeeds.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder getPredicateOrBuilder(); /** *
       * What to do if the match succeeds.
       * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } * @return Whether the onMatch field is set. */ boolean hasOnMatch(); /** *
       * What to do if the match succeeds.
       * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } * @return The onMatch. */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getOnMatch(); /** *
       * What to do if the match succeeds.
       * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatchOrBuilder getOnMatchOrBuilder(); } /** *
     * An individual matcher.
     * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher} */ public static final class FieldMatcher extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher) FieldMatcherOrBuilder { private static final long serialVersionUID = 0L; // Use FieldMatcher.newBuilder() to construct. private FieldMatcher(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private FieldMatcher() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new FieldMatcher(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private FieldMatcher( 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.common.matcher.v3.Matcher.MatcherList.Predicate.Builder subBuilder = null; if (predicate_ != null) { subBuilder = predicate_.toBuilder(); } predicate_ = input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(predicate_); predicate_ = subBuilder.buildPartial(); } break; } case 18: { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder subBuilder = null; if (onMatch_ != null) { subBuilder = onMatch_.toBuilder(); } onMatch_ = input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(onMatch_); onMatch_ = subBuilder.buildPartial(); } 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.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_FieldMatcher_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_FieldMatcher_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.Builder.class); } public static final int PREDICATE_FIELD_NUMBER = 1; private io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate_; /** *
       * Determines if the match succeeds.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } * @return Whether the predicate field is set. */ @java.lang.Override public boolean hasPredicate() { return predicate_ != null; } /** *
       * Determines if the match succeeds.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } * @return The predicate. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate getPredicate() { return predicate_ == null ? io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance() : predicate_; } /** *
       * Determines if the match succeeds.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder getPredicateOrBuilder() { return getPredicate(); } public static final int ON_MATCH_FIELD_NUMBER = 2; private io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch onMatch_; /** *
       * What to do if the match succeeds.
       * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } * @return Whether the onMatch field is set. */ @java.lang.Override public boolean hasOnMatch() { return onMatch_ != null; } /** *
       * What to do if the match succeeds.
       * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } * @return The onMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getOnMatch() { return onMatch_ == null ? io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.getDefaultInstance() : onMatch_; } /** *
       * What to do if the match succeeds.
       * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatchOrBuilder getOnMatchOrBuilder() { return getOnMatch(); } 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 (predicate_ != null) { output.writeMessage(1, getPredicate()); } if (onMatch_ != null) { output.writeMessage(2, getOnMatch()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (predicate_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPredicate()); } if (onMatch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getOnMatch()); } 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.common.matcher.v3.Matcher.MatcherList.FieldMatcher)) { return super.equals(obj); } io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher other = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher) obj; if (hasPredicate() != other.hasPredicate()) return false; if (hasPredicate()) { if (!getPredicate() .equals(other.getPredicate())) return false; } if (hasOnMatch() != other.hasOnMatch()) return false; if (hasOnMatch()) { if (!getOnMatch() .equals(other.getOnMatch())) 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 (hasPredicate()) { hash = (37 * hash) + PREDICATE_FIELD_NUMBER; hash = (53 * hash) + getPredicate().hashCode(); } if (hasOnMatch()) { hash = (37 * hash) + ON_MATCH_FIELD_NUMBER; hash = (53 * hash) + getOnMatch().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher 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.common.matcher.v3.Matcher.MatcherList.FieldMatcher parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher 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.common.matcher.v3.Matcher.MatcherList.FieldMatcher parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher 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.common.matcher.v3.Matcher.MatcherList.FieldMatcher parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher 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.common.matcher.v3.Matcher.MatcherList.FieldMatcher parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher 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.common.matcher.v3.Matcher.MatcherList.FieldMatcher 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; } /** *
       * An individual matcher.
       * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher) io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcherOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_FieldMatcher_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_FieldMatcher_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.Builder.class); } // Construct using io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.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(); if (predicateBuilder_ == null) { predicate_ = null; } else { predicate_ = null; predicateBuilder_ = null; } if (onMatchBuilder_ == null) { onMatch_ = null; } else { onMatch_ = null; onMatchBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_FieldMatcher_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher getDefaultInstanceForType() { return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher build() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher buildPartial() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher result = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher(this); if (predicateBuilder_ == null) { result.predicate_ = predicate_; } else { result.predicate_ = predicateBuilder_.build(); } if (onMatchBuilder_ == null) { result.onMatch_ = onMatch_; } else { result.onMatch_ = onMatchBuilder_.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.common.matcher.v3.Matcher.MatcherList.FieldMatcher) { return mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher other) { if (other == io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.getDefaultInstance()) return this; if (other.hasPredicate()) { mergePredicate(other.getPredicate()); } if (other.hasOnMatch()) { mergeOnMatch(other.getOnMatch()); } 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.common.matcher.v3.Matcher.MatcherList.FieldMatcher parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder> predicateBuilder_; /** *
         * Determines if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } * @return Whether the predicate field is set. */ public boolean hasPredicate() { return predicateBuilder_ != null || predicate_ != null; } /** *
         * Determines if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } * @return The predicate. */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate getPredicate() { if (predicateBuilder_ == null) { return predicate_ == null ? io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance() : predicate_; } else { return predicateBuilder_.getMessage(); } } /** *
         * Determines if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder setPredicate(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate value) { if (predicateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } predicate_ = value; onChanged(); } else { predicateBuilder_.setMessage(value); } return this; } /** *
         * Determines if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder setPredicate( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder builderForValue) { if (predicateBuilder_ == null) { predicate_ = builderForValue.build(); onChanged(); } else { predicateBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * Determines if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder mergePredicate(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate value) { if (predicateBuilder_ == null) { if (predicate_ != null) { predicate_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.newBuilder(predicate_).mergeFrom(value).buildPartial(); } else { predicate_ = value; } onChanged(); } else { predicateBuilder_.mergeFrom(value); } return this; } /** *
         * Determines if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public Builder clearPredicate() { if (predicateBuilder_ == null) { predicate_ = null; onChanged(); } else { predicate_ = null; predicateBuilder_ = null; } return this; } /** *
         * Determines if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder getPredicateBuilder() { onChanged(); return getPredicateFieldBuilder().getBuilder(); } /** *
         * Determines if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder getPredicateOrBuilder() { if (predicateBuilder_ != null) { return predicateBuilder_.getMessageOrBuilder(); } else { return predicate_ == null ? io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.getDefaultInstance() : predicate_; } } /** *
         * Determines if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate predicate = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder> getPredicateFieldBuilder() { if (predicateBuilder_ == null) { predicateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Predicate.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.PredicateOrBuilder>( getPredicate(), getParentForChildren(), isClean()); predicate_ = null; } return predicateBuilder_; } private io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch onMatch_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatchOrBuilder> onMatchBuilder_; /** *
         * What to do if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } * @return Whether the onMatch field is set. */ public boolean hasOnMatch() { return onMatchBuilder_ != null || onMatch_ != null; } /** *
         * What to do if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } * @return The onMatch. */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getOnMatch() { if (onMatchBuilder_ == null) { return onMatch_ == null ? io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.getDefaultInstance() : onMatch_; } else { return onMatchBuilder_.getMessage(); } } /** *
         * What to do if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } */ public Builder setOnMatch(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch value) { if (onMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } onMatch_ = value; onChanged(); } else { onMatchBuilder_.setMessage(value); } return this; } /** *
         * What to do if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } */ public Builder setOnMatch( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder builderForValue) { if (onMatchBuilder_ == null) { onMatch_ = builderForValue.build(); onChanged(); } else { onMatchBuilder_.setMessage(builderForValue.build()); } return this; } /** *
         * What to do if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } */ public Builder mergeOnMatch(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch value) { if (onMatchBuilder_ == null) { if (onMatch_ != null) { onMatch_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.newBuilder(onMatch_).mergeFrom(value).buildPartial(); } else { onMatch_ = value; } onChanged(); } else { onMatchBuilder_.mergeFrom(value); } return this; } /** *
         * What to do if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } */ public Builder clearOnMatch() { if (onMatchBuilder_ == null) { onMatch_ = null; onChanged(); } else { onMatch_ = null; onMatchBuilder_ = null; } return this; } /** *
         * What to do if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder getOnMatchBuilder() { onChanged(); return getOnMatchFieldBuilder().getBuilder(); } /** *
         * What to do if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatchOrBuilder getOnMatchOrBuilder() { if (onMatchBuilder_ != null) { return onMatchBuilder_.getMessageOrBuilder(); } else { return onMatch_ == null ? io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.getDefaultInstance() : onMatch_; } } /** *
         * What to do if the match succeeds.
         * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_match = 2 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatchOrBuilder> getOnMatchFieldBuilder() { if (onMatchBuilder_ == null) { onMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatchOrBuilder>( getOnMatch(), getParentForChildren(), isClean()); onMatch_ = null; } return onMatchBuilder_; } @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.common.matcher.v3.Matcher.MatcherList.FieldMatcher) } // @@protoc_insertion_point(class_scope:envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher) private static final io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher(); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public FieldMatcher parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new FieldMatcher(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.common.matcher.v3.Matcher.MatcherList.FieldMatcher getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public static final int MATCHERS_FIELD_NUMBER = 1; private java.util.List matchers_; /** *
     * A list of matchers. First match wins.
     * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getMatchersList() { return matchers_; } /** *
     * A list of matchers. First match wins.
     * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.List getMatchersOrBuilderList() { return matchers_; } /** *
     * A list of matchers. First match wins.
     * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ @java.lang.Override public int getMatchersCount() { return matchers_.size(); } /** *
     * A list of matchers. First match wins.
     * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher getMatchers(int index) { return matchers_.get(index); } /** *
     * A list of matchers. First match wins.
     * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcherOrBuilder getMatchersOrBuilder( int index) { return matchers_.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 < matchers_.size(); i++) { output.writeMessage(1, matchers_.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 < matchers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, matchers_.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.common.matcher.v3.Matcher.MatcherList)) { return super.equals(obj); } io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList other = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList) obj; if (!getMatchersList() .equals(other.getMatchersList())) 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 (getMatchersCount() > 0) { hash = (37 * hash) + MATCHERS_FIELD_NUMBER; hash = (53 * hash) + getMatchersList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList 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.common.matcher.v3.Matcher.MatcherList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList 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.common.matcher.v3.Matcher.MatcherList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList 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.common.matcher.v3.Matcher.MatcherList parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList 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.common.matcher.v3.Matcher.MatcherList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList 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.common.matcher.v3.Matcher.MatcherList 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 linear list of field matchers.
     * The field matchers are evaluated in order, and the first match
     * wins.
     * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherList} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.common.matcher.v3.Matcher.MatcherList) io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Builder.class); } // Construct using io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMatchersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (matchersBuilder_ == null) { matchers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { matchersBuilder_.clear(); } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherList_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList getDefaultInstanceForType() { return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList build() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList buildPartial() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList result = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList(this); int from_bitField0_ = bitField0_; if (matchersBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { matchers_ = java.util.Collections.unmodifiableList(matchers_); bitField0_ = (bitField0_ & ~0x00000001); } result.matchers_ = matchers_; } else { result.matchers_ = matchersBuilder_.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.common.matcher.v3.Matcher.MatcherList) { return mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList other) { if (other == io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.getDefaultInstance()) return this; if (matchersBuilder_ == null) { if (!other.matchers_.isEmpty()) { if (matchers_.isEmpty()) { matchers_ = other.matchers_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureMatchersIsMutable(); matchers_.addAll(other.matchers_); } onChanged(); } } else { if (!other.matchers_.isEmpty()) { if (matchersBuilder_.isEmpty()) { matchersBuilder_.dispose(); matchersBuilder_ = null; matchers_ = other.matchers_; bitField0_ = (bitField0_ & ~0x00000001); matchersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getMatchersFieldBuilder() : null; } else { matchersBuilder_.addAllMessages(other.matchers_); } } } 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.common.matcher.v3.Matcher.MatcherList parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List matchers_ = java.util.Collections.emptyList(); private void ensureMatchersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { matchers_ = new java.util.ArrayList(matchers_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcherOrBuilder> matchersBuilder_; /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public java.util.List getMatchersList() { if (matchersBuilder_ == null) { return java.util.Collections.unmodifiableList(matchers_); } else { return matchersBuilder_.getMessageList(); } } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public int getMatchersCount() { if (matchersBuilder_ == null) { return matchers_.size(); } else { return matchersBuilder_.getCount(); } } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher getMatchers(int index) { if (matchersBuilder_ == null) { return matchers_.get(index); } else { return matchersBuilder_.getMessage(index); } } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public Builder setMatchers( int index, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher value) { if (matchersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchersIsMutable(); matchers_.set(index, value); onChanged(); } else { matchersBuilder_.setMessage(index, value); } return this; } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public Builder setMatchers( int index, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.Builder builderForValue) { if (matchersBuilder_ == null) { ensureMatchersIsMutable(); matchers_.set(index, builderForValue.build()); onChanged(); } else { matchersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public Builder addMatchers(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher value) { if (matchersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchersIsMutable(); matchers_.add(value); onChanged(); } else { matchersBuilder_.addMessage(value); } return this; } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public Builder addMatchers( int index, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher value) { if (matchersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureMatchersIsMutable(); matchers_.add(index, value); onChanged(); } else { matchersBuilder_.addMessage(index, value); } return this; } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public Builder addMatchers( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.Builder builderForValue) { if (matchersBuilder_ == null) { ensureMatchersIsMutable(); matchers_.add(builderForValue.build()); onChanged(); } else { matchersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public Builder addMatchers( int index, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.Builder builderForValue) { if (matchersBuilder_ == null) { ensureMatchersIsMutable(); matchers_.add(index, builderForValue.build()); onChanged(); } else { matchersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public Builder addAllMatchers( java.lang.Iterable values) { if (matchersBuilder_ == null) { ensureMatchersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, matchers_); onChanged(); } else { matchersBuilder_.addAllMessages(values); } return this; } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public Builder clearMatchers() { if (matchersBuilder_ == null) { matchers_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { matchersBuilder_.clear(); } return this; } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public Builder removeMatchers(int index) { if (matchersBuilder_ == null) { ensureMatchersIsMutable(); matchers_.remove(index); onChanged(); } else { matchersBuilder_.remove(index); } return this; } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.Builder getMatchersBuilder( int index) { return getMatchersFieldBuilder().getBuilder(index); } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcherOrBuilder getMatchersOrBuilder( int index) { if (matchersBuilder_ == null) { return matchers_.get(index); } else { return matchersBuilder_.getMessageOrBuilder(index); } } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public java.util.List getMatchersOrBuilderList() { if (matchersBuilder_ != null) { return matchersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(matchers_); } } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.Builder addMatchersBuilder() { return getMatchersFieldBuilder().addBuilder( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.getDefaultInstance()); } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.Builder addMatchersBuilder( int index) { return getMatchersFieldBuilder().addBuilder( index, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.getDefaultInstance()); } /** *
       * A list of matchers. First match wins.
       * 
* * repeated .envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher matchers = 1 [(.validate.rules) = { ... } */ public java.util.List getMatchersBuilderList() { return getMatchersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcherOrBuilder> getMatchersFieldBuilder() { if (matchersBuilder_ == null) { matchersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcher.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.FieldMatcherOrBuilder>( matchers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); matchers_ = null; } return matchersBuilder_; } @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.common.matcher.v3.Matcher.MatcherList) } // @@protoc_insertion_point(class_scope:envoy.config.common.matcher.v3.Matcher.MatcherList) private static final io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList(); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MatcherList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MatcherList(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.common.matcher.v3.Matcher.MatcherList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MatcherTreeOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.common.matcher.v3.Matcher.MatcherTree) com.google.protobuf.MessageOrBuilder { /** *
     * Protocol-specific specification of input field to match on.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } * @return Whether the input field is set. */ boolean hasInput(); /** *
     * Protocol-specific specification of input field to match on.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } * @return The input. */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getInput(); /** *
     * Protocol-specific specification of input field to match on.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getInputOrBuilder(); /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; * @return Whether the exactMatchMap field is set. */ boolean hasExactMatchMap(); /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; * @return The exactMatchMap. */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap getExactMatchMap(); /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder getExactMatchMapOrBuilder(); /** *
     * Longest matching prefix wins.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; * @return Whether the prefixMatchMap field is set. */ boolean hasPrefixMatchMap(); /** *
     * Longest matching prefix wins.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; * @return The prefixMatchMap. */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap getPrefixMatchMap(); /** *
     * Longest matching prefix wins.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder getPrefixMatchMapOrBuilder(); /** *
     * Extension for custom matching logic.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; * @return Whether the customMatch field is set. */ boolean hasCustomMatch(); /** *
     * Extension for custom matching logic.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; * @return The customMatch. */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getCustomMatch(); /** *
     * Extension for custom matching logic.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; */ io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getCustomMatchOrBuilder(); public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.TreeTypeCase getTreeTypeCase(); } /** * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherTree} */ public static final class MatcherTree extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.common.matcher.v3.Matcher.MatcherTree) MatcherTreeOrBuilder { private static final long serialVersionUID = 0L; // Use MatcherTree.newBuilder() to construct. private MatcherTree(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MatcherTree() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MatcherTree(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MatcherTree( 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.core.v3.TypedExtensionConfig.Builder subBuilder = null; if (input_ != null) { subBuilder = input_.toBuilder(); } input_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(input_); input_ = subBuilder.buildPartial(); } break; } case 18: { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder subBuilder = null; if (treeTypeCase_ == 2) { subBuilder = ((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_).toBuilder(); } treeType_ = input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_); treeType_ = subBuilder.buildPartial(); } treeTypeCase_ = 2; break; } case 26: { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder subBuilder = null; if (treeTypeCase_ == 3) { subBuilder = ((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_).toBuilder(); } treeType_ = input.readMessage(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_); treeType_ = subBuilder.buildPartial(); } treeTypeCase_ = 3; break; } case 34: { io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder subBuilder = null; if (treeTypeCase_ == 4) { subBuilder = ((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) treeType_).toBuilder(); } treeType_ = input.readMessage(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) treeType_); treeType_ = subBuilder.buildPartial(); } treeTypeCase_ = 4; 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.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherTree_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherTree_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.Builder.class); } public interface MatchMapOrBuilder extends // @@protoc_insertion_point(interface_extends:envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) com.google.protobuf.MessageOrBuilder { /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ int getMapCount(); /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ boolean containsMap( java.lang.String key); /** * Use {@link #getMapMap()} instead. */ @java.lang.Deprecated java.util.Map getMap(); /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ java.util.Map getMapMap(); /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ /* nullable */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getMapOrDefault( java.lang.String key, /* nullable */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch defaultValue); /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getMapOrThrow( java.lang.String key); } /** *
     * A map of configured matchers. Used to allow using a map within a oneof.
     * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap} */ public static final class MatchMap extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) MatchMapOrBuilder { private static final long serialVersionUID = 0L; // Use MatchMap.newBuilder() to construct. private MatchMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MatchMap() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MatchMap(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private MatchMap( 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)) { map_ = com.google.protobuf.MapField.newMapField( MapDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry map__ = input.readMessage( MapDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); map_.getMutableMap().put( map__.getKey(), map__.getValue()); 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.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_descriptor; } @SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder.class); } public static final int MAP_FIELD_NUMBER = 1; private static final class MapDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_MapEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.MESSAGE, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.getDefaultInstance()); } private com.google.protobuf.MapField< java.lang.String, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch> map_; private com.google.protobuf.MapField internalGetMap() { if (map_ == null) { return com.google.protobuf.MapField.emptyMapField( MapDefaultEntryHolder.defaultEntry); } return map_; } public int getMapCount() { return internalGetMap().getMap().size(); } /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ @java.lang.Override public boolean containsMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMap().getMap().containsKey(key); } /** * Use {@link #getMapMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMap() { return getMapMap(); } /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.Map getMapMap() { return internalGetMap().getMap(); } /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getMapOrDefault( java.lang.String key, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getMapOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } 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 { com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMap(), MapDefaultEntryHolder.defaultEntry, 1); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (java.util.Map.Entry entry : internalGetMap().getMap().entrySet()) { com.google.protobuf.MapEntry map__ = MapDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, map__); } 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.common.matcher.v3.Matcher.MatcherTree.MatchMap)) { return super.equals(obj); } io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap other = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) obj; if (!internalGetMap().equals( other.internalGetMap())) 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 (!internalGetMap().getMap().isEmpty()) { hash = (37 * hash) + MAP_FIELD_NUMBER; hash = (53 * hash) + internalGetMap().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap 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.common.matcher.v3.Matcher.MatcherTree.MatchMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap 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.common.matcher.v3.Matcher.MatcherTree.MatchMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap 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.common.matcher.v3.Matcher.MatcherTree.MatchMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap 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.common.matcher.v3.Matcher.MatcherTree.MatchMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap 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.common.matcher.v3.Matcher.MatcherTree.MatchMap 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 map of configured matchers. Used to allow using a map within a oneof.
       * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 1: return internalGetMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 1: return internalGetMutableMap(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder.class); } // Construct using io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.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(); internalGetMutableMap().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherTree_MatchMap_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap getDefaultInstanceForType() { return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap build() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap buildPartial() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap result = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap(this); int from_bitField0_ = bitField0_; result.map_ = internalGetMap(); result.map_.makeImmutable(); 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.common.matcher.v3.Matcher.MatcherTree.MatchMap) { return mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap other) { if (other == io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance()) return this; internalGetMutableMap().mergeFrom( other.internalGetMap()); 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.common.matcher.v3.Matcher.MatcherTree.MatchMap parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.MapField< java.lang.String, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch> map_; private com.google.protobuf.MapField internalGetMap() { if (map_ == null) { return com.google.protobuf.MapField.emptyMapField( MapDefaultEntryHolder.defaultEntry); } return map_; } private com.google.protobuf.MapField internalGetMutableMap() { onChanged();; if (map_ == null) { map_ = com.google.protobuf.MapField.newMapField( MapDefaultEntryHolder.defaultEntry); } if (!map_.isMutable()) { map_ = map_.copy(); } return map_; } public int getMapCount() { return internalGetMap().getMap().size(); } /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ @java.lang.Override public boolean containsMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetMap().getMap().containsKey(key); } /** * Use {@link #getMapMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getMap() { return getMapMap(); } /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ @java.lang.Override public java.util.Map getMapMap() { return internalGetMap().getMap(); } /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getMapOrDefault( java.lang.String key, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getMapOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearMap() { internalGetMutableMap().getMutableMap() .clear(); return this; } /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ public Builder removeMap( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableMap().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableMap() { return internalGetMutableMap().getMutableMap(); } /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ public Builder putMap( java.lang.String key, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMap().getMutableMap() .put(key, value); return this; } /** * map<string, .envoy.config.common.matcher.v3.Matcher.OnMatch> map = 1 [(.validate.rules) = { ... } */ public Builder putAllMap( java.util.Map values) { internalGetMutableMap().getMutableMap() .putAll(values); return this; } @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.common.matcher.v3.Matcher.MatcherTree.MatchMap) } // @@protoc_insertion_point(class_scope:envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) private static final io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap(); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MatchMap parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MatchMap(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.common.matcher.v3.Matcher.MatcherTree.MatchMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int treeTypeCase_ = 0; private java.lang.Object treeType_; public enum TreeTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { EXACT_MATCH_MAP(2), PREFIX_MATCH_MAP(3), CUSTOM_MATCH(4), TREETYPE_NOT_SET(0); private final int value; private TreeTypeCase(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 TreeTypeCase valueOf(int value) { return forNumber(value); } public static TreeTypeCase forNumber(int value) { switch (value) { case 2: return EXACT_MATCH_MAP; case 3: return PREFIX_MATCH_MAP; case 4: return CUSTOM_MATCH; case 0: return TREETYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TreeTypeCase getTreeTypeCase() { return TreeTypeCase.forNumber( treeTypeCase_); } public static final int INPUT_FIELD_NUMBER = 1; private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig input_; /** *
     * Protocol-specific specification of input field to match on.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } * @return Whether the input field is set. */ @java.lang.Override public boolean hasInput() { return input_ != null; } /** *
     * Protocol-specific specification of input field to match on.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } * @return The input. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getInput() { return input_ == null ? io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance() : input_; } /** *
     * Protocol-specific specification of input field to match on.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getInputOrBuilder() { return getInput(); } public static final int EXACT_MATCH_MAP_FIELD_NUMBER = 2; /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; * @return Whether the exactMatchMap field is set. */ @java.lang.Override public boolean hasExactMatchMap() { return treeTypeCase_ == 2; } /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; * @return The exactMatchMap. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap getExactMatchMap() { if (treeTypeCase_ == 2) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder getExactMatchMapOrBuilder() { if (treeTypeCase_ == 2) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } public static final int PREFIX_MATCH_MAP_FIELD_NUMBER = 3; /** *
     * Longest matching prefix wins.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; * @return Whether the prefixMatchMap field is set. */ @java.lang.Override public boolean hasPrefixMatchMap() { return treeTypeCase_ == 3; } /** *
     * Longest matching prefix wins.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; * @return The prefixMatchMap. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap getPrefixMatchMap() { if (treeTypeCase_ == 3) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } /** *
     * Longest matching prefix wins.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder getPrefixMatchMapOrBuilder() { if (treeTypeCase_ == 3) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } public static final int CUSTOM_MATCH_FIELD_NUMBER = 4; /** *
     * Extension for custom matching logic.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; * @return Whether the customMatch field is set. */ @java.lang.Override public boolean hasCustomMatch() { return treeTypeCase_ == 4; } /** *
     * Extension for custom matching logic.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; * @return The customMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getCustomMatch() { if (treeTypeCase_ == 4) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) treeType_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } /** *
     * Extension for custom matching logic.
     * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getCustomMatchOrBuilder() { if (treeTypeCase_ == 4) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) treeType_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.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 (input_ != null) { output.writeMessage(1, getInput()); } if (treeTypeCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_); } if (treeTypeCase_ == 3) { output.writeMessage(3, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_); } if (treeTypeCase_ == 4) { output.writeMessage(4, (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) treeType_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (input_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getInput()); } if (treeTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_); } if (treeTypeCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_); } if (treeTypeCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) treeType_); } 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.common.matcher.v3.Matcher.MatcherTree)) { return super.equals(obj); } io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree other = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree) obj; if (hasInput() != other.hasInput()) return false; if (hasInput()) { if (!getInput() .equals(other.getInput())) return false; } if (!getTreeTypeCase().equals(other.getTreeTypeCase())) return false; switch (treeTypeCase_) { case 2: if (!getExactMatchMap() .equals(other.getExactMatchMap())) return false; break; case 3: if (!getPrefixMatchMap() .equals(other.getPrefixMatchMap())) return false; break; case 4: if (!getCustomMatch() .equals(other.getCustomMatch())) 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(); if (hasInput()) { hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); } switch (treeTypeCase_) { case 2: hash = (37 * hash) + EXACT_MATCH_MAP_FIELD_NUMBER; hash = (53 * hash) + getExactMatchMap().hashCode(); break; case 3: hash = (37 * hash) + PREFIX_MATCH_MAP_FIELD_NUMBER; hash = (53 * hash) + getPrefixMatchMap().hashCode(); break; case 4: hash = (37 * hash) + CUSTOM_MATCH_FIELD_NUMBER; hash = (53 * hash) + getCustomMatch().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree 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.common.matcher.v3.Matcher.MatcherTree parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree 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.common.matcher.v3.Matcher.MatcherTree parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree 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.common.matcher.v3.Matcher.MatcherTree parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree 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.common.matcher.v3.Matcher.MatcherTree parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree 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.common.matcher.v3.Matcher.MatcherTree 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; } /** * Protobuf type {@code envoy.config.common.matcher.v3.Matcher.MatcherTree} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.common.matcher.v3.Matcher.MatcherTree) io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTreeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherTree_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherTree_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.Builder.class); } // Construct using io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.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(); if (inputBuilder_ == null) { input_ = null; } else { input_ = null; inputBuilder_ = null; } treeTypeCase_ = 0; treeType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_MatcherTree_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree getDefaultInstanceForType() { return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree build() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree buildPartial() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree result = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree(this); if (inputBuilder_ == null) { result.input_ = input_; } else { result.input_ = inputBuilder_.build(); } if (treeTypeCase_ == 2) { if (exactMatchMapBuilder_ == null) { result.treeType_ = treeType_; } else { result.treeType_ = exactMatchMapBuilder_.build(); } } if (treeTypeCase_ == 3) { if (prefixMatchMapBuilder_ == null) { result.treeType_ = treeType_; } else { result.treeType_ = prefixMatchMapBuilder_.build(); } } if (treeTypeCase_ == 4) { if (customMatchBuilder_ == null) { result.treeType_ = treeType_; } else { result.treeType_ = customMatchBuilder_.build(); } } result.treeTypeCase_ = treeTypeCase_; 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.common.matcher.v3.Matcher.MatcherTree) { return mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree other) { if (other == io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.getDefaultInstance()) return this; if (other.hasInput()) { mergeInput(other.getInput()); } switch (other.getTreeTypeCase()) { case EXACT_MATCH_MAP: { mergeExactMatchMap(other.getExactMatchMap()); break; } case PREFIX_MATCH_MAP: { mergePrefixMatchMap(other.getPrefixMatchMap()); break; } case CUSTOM_MATCH: { mergeCustomMatch(other.getCustomMatch()); break; } case TREETYPE_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.common.matcher.v3.Matcher.MatcherTree parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int treeTypeCase_ = 0; private java.lang.Object treeType_; public TreeTypeCase getTreeTypeCase() { return TreeTypeCase.forNumber( treeTypeCase_); } public Builder clearTreeType() { treeTypeCase_ = 0; treeType_ = null; onChanged(); return this; } private io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig input_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> inputBuilder_; /** *
       * Protocol-specific specification of input field to match on.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } * @return Whether the input field is set. */ public boolean hasInput() { return inputBuilder_ != null || input_ != null; } /** *
       * Protocol-specific specification of input field to match on.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } * @return The input. */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getInput() { if (inputBuilder_ == null) { return input_ == null ? io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance() : input_; } else { return inputBuilder_.getMessage(); } } /** *
       * Protocol-specific specification of input field to match on.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ public Builder setInput(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (inputBuilder_ == null) { if (value == null) { throw new NullPointerException(); } input_ = value; onChanged(); } else { inputBuilder_.setMessage(value); } return this; } /** *
       * Protocol-specific specification of input field to match on.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ public Builder setInput( io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder builderForValue) { if (inputBuilder_ == null) { input_ = builderForValue.build(); onChanged(); } else { inputBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Protocol-specific specification of input field to match on.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ public Builder mergeInput(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (inputBuilder_ == null) { if (input_ != null) { input_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.newBuilder(input_).mergeFrom(value).buildPartial(); } else { input_ = value; } onChanged(); } else { inputBuilder_.mergeFrom(value); } return this; } /** *
       * Protocol-specific specification of input field to match on.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ public Builder clearInput() { if (inputBuilder_ == null) { input_ = null; onChanged(); } else { input_ = null; inputBuilder_ = null; } return this; } /** *
       * Protocol-specific specification of input field to match on.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder getInputBuilder() { onChanged(); return getInputFieldBuilder().getBuilder(); } /** *
       * Protocol-specific specification of input field to match on.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getInputOrBuilder() { if (inputBuilder_ != null) { return inputBuilder_.getMessageOrBuilder(); } else { return input_ == null ? io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance() : input_; } } /** *
       * Protocol-specific specification of input field to match on.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig input = 1 [(.validate.rules) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> getInputFieldBuilder() { if (inputBuilder_ == null) { inputBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder>( getInput(), getParentForChildren(), isClean()); input_ = null; } return inputBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder> exactMatchMapBuilder_; /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; * @return Whether the exactMatchMap field is set. */ @java.lang.Override public boolean hasExactMatchMap() { return treeTypeCase_ == 2; } /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; * @return The exactMatchMap. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap getExactMatchMap() { if (exactMatchMapBuilder_ == null) { if (treeTypeCase_ == 2) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } else { if (treeTypeCase_ == 2) { return exactMatchMapBuilder_.getMessage(); } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } } /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; */ public Builder setExactMatchMap(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap value) { if (exactMatchMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } treeType_ = value; onChanged(); } else { exactMatchMapBuilder_.setMessage(value); } treeTypeCase_ = 2; return this; } /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; */ public Builder setExactMatchMap( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder builderForValue) { if (exactMatchMapBuilder_ == null) { treeType_ = builderForValue.build(); onChanged(); } else { exactMatchMapBuilder_.setMessage(builderForValue.build()); } treeTypeCase_ = 2; return this; } /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; */ public Builder mergeExactMatchMap(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap value) { if (exactMatchMapBuilder_ == null) { if (treeTypeCase_ == 2 && treeType_ != io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance()) { treeType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.newBuilder((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_) .mergeFrom(value).buildPartial(); } else { treeType_ = value; } onChanged(); } else { if (treeTypeCase_ == 2) { exactMatchMapBuilder_.mergeFrom(value); } else { exactMatchMapBuilder_.setMessage(value); } } treeTypeCase_ = 2; return this; } /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; */ public Builder clearExactMatchMap() { if (exactMatchMapBuilder_ == null) { if (treeTypeCase_ == 2) { treeTypeCase_ = 0; treeType_ = null; onChanged(); } } else { if (treeTypeCase_ == 2) { treeTypeCase_ = 0; treeType_ = null; } exactMatchMapBuilder_.clear(); } return this; } /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder getExactMatchMapBuilder() { return getExactMatchMapFieldBuilder().getBuilder(); } /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder getExactMatchMapOrBuilder() { if ((treeTypeCase_ == 2) && (exactMatchMapBuilder_ != null)) { return exactMatchMapBuilder_.getMessageOrBuilder(); } else { if (treeTypeCase_ == 2) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } } /** * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap exact_match_map = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder> getExactMatchMapFieldBuilder() { if (exactMatchMapBuilder_ == null) { if (!(treeTypeCase_ == 2)) { treeType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } exactMatchMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder>( (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_, getParentForChildren(), isClean()); treeType_ = null; } treeTypeCase_ = 2; onChanged();; return exactMatchMapBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder> prefixMatchMapBuilder_; /** *
       * Longest matching prefix wins.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; * @return Whether the prefixMatchMap field is set. */ @java.lang.Override public boolean hasPrefixMatchMap() { return treeTypeCase_ == 3; } /** *
       * Longest matching prefix wins.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; * @return The prefixMatchMap. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap getPrefixMatchMap() { if (prefixMatchMapBuilder_ == null) { if (treeTypeCase_ == 3) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } else { if (treeTypeCase_ == 3) { return prefixMatchMapBuilder_.getMessage(); } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } } /** *
       * Longest matching prefix wins.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; */ public Builder setPrefixMatchMap(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap value) { if (prefixMatchMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } treeType_ = value; onChanged(); } else { prefixMatchMapBuilder_.setMessage(value); } treeTypeCase_ = 3; return this; } /** *
       * Longest matching prefix wins.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; */ public Builder setPrefixMatchMap( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder builderForValue) { if (prefixMatchMapBuilder_ == null) { treeType_ = builderForValue.build(); onChanged(); } else { prefixMatchMapBuilder_.setMessage(builderForValue.build()); } treeTypeCase_ = 3; return this; } /** *
       * Longest matching prefix wins.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; */ public Builder mergePrefixMatchMap(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap value) { if (prefixMatchMapBuilder_ == null) { if (treeTypeCase_ == 3 && treeType_ != io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance()) { treeType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.newBuilder((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_) .mergeFrom(value).buildPartial(); } else { treeType_ = value; } onChanged(); } else { if (treeTypeCase_ == 3) { prefixMatchMapBuilder_.mergeFrom(value); } else { prefixMatchMapBuilder_.setMessage(value); } } treeTypeCase_ = 3; return this; } /** *
       * Longest matching prefix wins.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; */ public Builder clearPrefixMatchMap() { if (prefixMatchMapBuilder_ == null) { if (treeTypeCase_ == 3) { treeTypeCase_ = 0; treeType_ = null; onChanged(); } } else { if (treeTypeCase_ == 3) { treeTypeCase_ = 0; treeType_ = null; } prefixMatchMapBuilder_.clear(); } return this; } /** *
       * Longest matching prefix wins.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder getPrefixMatchMapBuilder() { return getPrefixMatchMapFieldBuilder().getBuilder(); } /** *
       * Longest matching prefix wins.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder getPrefixMatchMapOrBuilder() { if ((treeTypeCase_ == 3) && (prefixMatchMapBuilder_ != null)) { return prefixMatchMapBuilder_.getMessageOrBuilder(); } else { if (treeTypeCase_ == 3) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } } /** *
       * Longest matching prefix wins.
       * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap prefix_match_map = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder> getPrefixMatchMapFieldBuilder() { if (prefixMatchMapBuilder_ == null) { if (!(treeTypeCase_ == 3)) { treeType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.getDefaultInstance(); } prefixMatchMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMapOrBuilder>( (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.MatchMap) treeType_, getParentForChildren(), isClean()); treeType_ = null; } treeTypeCase_ = 3; onChanged();; return prefixMatchMapBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> customMatchBuilder_; /** *
       * Extension for custom matching logic.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; * @return Whether the customMatch field is set. */ @java.lang.Override public boolean hasCustomMatch() { return treeTypeCase_ == 4; } /** *
       * Extension for custom matching logic.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; * @return The customMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig getCustomMatch() { if (customMatchBuilder_ == null) { if (treeTypeCase_ == 4) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) treeType_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } else { if (treeTypeCase_ == 4) { return customMatchBuilder_.getMessage(); } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } } /** *
       * Extension for custom matching logic.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; */ public Builder setCustomMatch(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (customMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } treeType_ = value; onChanged(); } else { customMatchBuilder_.setMessage(value); } treeTypeCase_ = 4; return this; } /** *
       * Extension for custom matching logic.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; */ public Builder setCustomMatch( io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder builderForValue) { if (customMatchBuilder_ == null) { treeType_ = builderForValue.build(); onChanged(); } else { customMatchBuilder_.setMessage(builderForValue.build()); } treeTypeCase_ = 4; return this; } /** *
       * Extension for custom matching logic.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; */ public Builder mergeCustomMatch(io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig value) { if (customMatchBuilder_ == null) { if (treeTypeCase_ == 4 && treeType_ != io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance()) { treeType_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.newBuilder((io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) treeType_) .mergeFrom(value).buildPartial(); } else { treeType_ = value; } onChanged(); } else { if (treeTypeCase_ == 4) { customMatchBuilder_.mergeFrom(value); } else { customMatchBuilder_.setMessage(value); } } treeTypeCase_ = 4; return this; } /** *
       * Extension for custom matching logic.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; */ public Builder clearCustomMatch() { if (customMatchBuilder_ == null) { if (treeTypeCase_ == 4) { treeTypeCase_ = 0; treeType_ = null; onChanged(); } } else { if (treeTypeCase_ == 4) { treeTypeCase_ = 0; treeType_ = null; } customMatchBuilder_.clear(); } return this; } /** *
       * Extension for custom matching logic.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; */ public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder getCustomMatchBuilder() { return getCustomMatchFieldBuilder().getBuilder(); } /** *
       * Extension for custom matching logic.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; */ @java.lang.Override public io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder getCustomMatchOrBuilder() { if ((treeTypeCase_ == 4) && (customMatchBuilder_ != null)) { return customMatchBuilder_.getMessageOrBuilder(); } else { if (treeTypeCase_ == 4) { return (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) treeType_; } return io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } } /** *
       * Extension for custom matching logic.
       * 
* * .envoy.config.core.v3.TypedExtensionConfig custom_match = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder> getCustomMatchFieldBuilder() { if (customMatchBuilder_ == null) { if (!(treeTypeCase_ == 4)) { treeType_ = io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.getDefaultInstance(); } customMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig.Builder, io.envoyproxy.envoy.config.core.v3.TypedExtensionConfigOrBuilder>( (io.envoyproxy.envoy.config.core.v3.TypedExtensionConfig) treeType_, getParentForChildren(), isClean()); treeType_ = null; } treeTypeCase_ = 4; onChanged();; return customMatchBuilder_; } @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.common.matcher.v3.Matcher.MatcherTree) } // @@protoc_insertion_point(class_scope:envoy.config.common.matcher.v3.Matcher.MatcherTree) private static final io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree(); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MatcherTree parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new MatcherTree(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.common.matcher.v3.Matcher.MatcherTree getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private int matcherTypeCase_ = 0; private java.lang.Object matcherType_; public enum MatcherTypeCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { MATCHER_LIST(1), MATCHER_TREE(2), MATCHERTYPE_NOT_SET(0); private final int value; private MatcherTypeCase(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 MatcherTypeCase valueOf(int value) { return forNumber(value); } public static MatcherTypeCase forNumber(int value) { switch (value) { case 1: return MATCHER_LIST; case 2: return MATCHER_TREE; case 0: return MATCHERTYPE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MatcherTypeCase getMatcherTypeCase() { return MatcherTypeCase.forNumber( matcherTypeCase_); } public static final int MATCHER_LIST_FIELD_NUMBER = 1; /** *
   * A linear list of matchers to evaluate.
   * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList matcher_list = 1; * @return Whether the matcherList field is set. */ @java.lang.Override public boolean hasMatcherList() { return matcherTypeCase_ == 1; } /** *
   * A linear list of matchers to evaluate.
   * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList matcher_list = 1; * @return The matcherList. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList getMatcherList() { if (matcherTypeCase_ == 1) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList) matcherType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.getDefaultInstance(); } /** *
   * A linear list of matchers to evaluate.
   * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList matcher_list = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherListOrBuilder getMatcherListOrBuilder() { if (matcherTypeCase_ == 1) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList) matcherType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.getDefaultInstance(); } public static final int MATCHER_TREE_FIELD_NUMBER = 2; /** *
   * A match tree to evaluate.
   * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree matcher_tree = 2; * @return Whether the matcherTree field is set. */ @java.lang.Override public boolean hasMatcherTree() { return matcherTypeCase_ == 2; } /** *
   * A match tree to evaluate.
   * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree matcher_tree = 2; * @return The matcherTree. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree getMatcherTree() { if (matcherTypeCase_ == 2) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree) matcherType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.getDefaultInstance(); } /** *
   * A match tree to evaluate.
   * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree matcher_tree = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTreeOrBuilder getMatcherTreeOrBuilder() { if (matcherTypeCase_ == 2) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree) matcherType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.getDefaultInstance(); } public static final int ON_NO_MATCH_FIELD_NUMBER = 3; private io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch onNoMatch_; /** *
   * Optional OnMatch to use if the matcher failed.
   * If specified, the OnMatch is used, and the matcher is considered
   * to have matched.
   * If not specified, the matcher is considered not to have matched.
   * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_no_match = 3; * @return Whether the onNoMatch field is set. */ @java.lang.Override public boolean hasOnNoMatch() { return onNoMatch_ != null; } /** *
   * Optional OnMatch to use if the matcher failed.
   * If specified, the OnMatch is used, and the matcher is considered
   * to have matched.
   * If not specified, the matcher is considered not to have matched.
   * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_no_match = 3; * @return The onNoMatch. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getOnNoMatch() { return onNoMatch_ == null ? io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.getDefaultInstance() : onNoMatch_; } /** *
   * Optional OnMatch to use if the matcher failed.
   * If specified, the OnMatch is used, and the matcher is considered
   * to have matched.
   * If not specified, the matcher is considered not to have matched.
   * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_no_match = 3; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatchOrBuilder getOnNoMatchOrBuilder() { return getOnNoMatch(); } 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 (matcherTypeCase_ == 1) { output.writeMessage(1, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList) matcherType_); } if (matcherTypeCase_ == 2) { output.writeMessage(2, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree) matcherType_); } if (onNoMatch_ != null) { output.writeMessage(3, getOnNoMatch()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (matcherTypeCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList) matcherType_); } if (matcherTypeCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree) matcherType_); } if (onNoMatch_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOnNoMatch()); } 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.common.matcher.v3.Matcher)) { return super.equals(obj); } io.envoyproxy.envoy.config.common.matcher.v3.Matcher other = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher) obj; if (hasOnNoMatch() != other.hasOnNoMatch()) return false; if (hasOnNoMatch()) { if (!getOnNoMatch() .equals(other.getOnNoMatch())) return false; } if (!getMatcherTypeCase().equals(other.getMatcherTypeCase())) return false; switch (matcherTypeCase_) { case 1: if (!getMatcherList() .equals(other.getMatcherList())) return false; break; case 2: if (!getMatcherTree() .equals(other.getMatcherTree())) 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(); if (hasOnNoMatch()) { hash = (37 * hash) + ON_NO_MATCH_FIELD_NUMBER; hash = (53 * hash) + getOnNoMatch().hashCode(); } switch (matcherTypeCase_) { case 1: hash = (37 * hash) + MATCHER_LIST_FIELD_NUMBER; hash = (53 * hash) + getMatcherList().hashCode(); break; case 2: hash = (37 * hash) + MATCHER_TREE_FIELD_NUMBER; hash = (53 * hash) + getMatcherTree().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher 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.common.matcher.v3.Matcher parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher 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.common.matcher.v3.Matcher parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher 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.common.matcher.v3.Matcher parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher 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.common.matcher.v3.Matcher parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher 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.common.matcher.v3.Matcher 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 matcher, which may traverse a matching tree in order to result in a match action.
   * During matching, the tree will be traversed until a match is found, or if no match
   * is found the action specified by the most specific on_no_match will be evaluated.
   * As an on_no_match might result in another matching tree being evaluated, this process
   * might repeat several times until the final OnMatch (or no match) is decided.
   * .. note::
   *   Please use the syntactically equivalent :ref:`matching API <envoy_v3_api_msg_.xds.type.matcher.v3.Matcher>`
   * 
* * Protobuf type {@code envoy.config.common.matcher.v3.Matcher} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:envoy.config.common.matcher.v3.Matcher) io.envoyproxy.envoy.config.common.matcher.v3.MatcherOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_fieldAccessorTable .ensureFieldAccessorsInitialized( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.class, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.Builder.class); } // Construct using io.envoyproxy.envoy.config.common.matcher.v3.Matcher.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(); if (onNoMatchBuilder_ == null) { onNoMatch_ = null; } else { onNoMatch_ = null; onNoMatchBuilder_ = null; } matcherTypeCase_ = 0; matcherType_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.envoyproxy.envoy.config.common.matcher.v3.MatcherProto.internal_static_envoy_config_common_matcher_v3_Matcher_descriptor; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher getDefaultInstanceForType() { return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.getDefaultInstance(); } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher build() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher buildPartial() { io.envoyproxy.envoy.config.common.matcher.v3.Matcher result = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher(this); if (matcherTypeCase_ == 1) { if (matcherListBuilder_ == null) { result.matcherType_ = matcherType_; } else { result.matcherType_ = matcherListBuilder_.build(); } } if (matcherTypeCase_ == 2) { if (matcherTreeBuilder_ == null) { result.matcherType_ = matcherType_; } else { result.matcherType_ = matcherTreeBuilder_.build(); } } if (onNoMatchBuilder_ == null) { result.onNoMatch_ = onNoMatch_; } else { result.onNoMatch_ = onNoMatchBuilder_.build(); } result.matcherTypeCase_ = matcherTypeCase_; 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.common.matcher.v3.Matcher) { return mergeFrom((io.envoyproxy.envoy.config.common.matcher.v3.Matcher)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.envoyproxy.envoy.config.common.matcher.v3.Matcher other) { if (other == io.envoyproxy.envoy.config.common.matcher.v3.Matcher.getDefaultInstance()) return this; if (other.hasOnNoMatch()) { mergeOnNoMatch(other.getOnNoMatch()); } switch (other.getMatcherTypeCase()) { case MATCHER_LIST: { mergeMatcherList(other.getMatcherList()); break; } case MATCHER_TREE: { mergeMatcherTree(other.getMatcherTree()); break; } case MATCHERTYPE_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.common.matcher.v3.Matcher parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.envoyproxy.envoy.config.common.matcher.v3.Matcher) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int matcherTypeCase_ = 0; private java.lang.Object matcherType_; public MatcherTypeCase getMatcherTypeCase() { return MatcherTypeCase.forNumber( matcherTypeCase_); } public Builder clearMatcherType() { matcherTypeCase_ = 0; matcherType_ = null; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherListOrBuilder> matcherListBuilder_; /** *
     * A linear list of matchers to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList matcher_list = 1; * @return Whether the matcherList field is set. */ @java.lang.Override public boolean hasMatcherList() { return matcherTypeCase_ == 1; } /** *
     * A linear list of matchers to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList matcher_list = 1; * @return The matcherList. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList getMatcherList() { if (matcherListBuilder_ == null) { if (matcherTypeCase_ == 1) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList) matcherType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.getDefaultInstance(); } else { if (matcherTypeCase_ == 1) { return matcherListBuilder_.getMessage(); } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.getDefaultInstance(); } } /** *
     * A linear list of matchers to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList matcher_list = 1; */ public Builder setMatcherList(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList value) { if (matcherListBuilder_ == null) { if (value == null) { throw new NullPointerException(); } matcherType_ = value; onChanged(); } else { matcherListBuilder_.setMessage(value); } matcherTypeCase_ = 1; return this; } /** *
     * A linear list of matchers to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList matcher_list = 1; */ public Builder setMatcherList( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Builder builderForValue) { if (matcherListBuilder_ == null) { matcherType_ = builderForValue.build(); onChanged(); } else { matcherListBuilder_.setMessage(builderForValue.build()); } matcherTypeCase_ = 1; return this; } /** *
     * A linear list of matchers to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList matcher_list = 1; */ public Builder mergeMatcherList(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList value) { if (matcherListBuilder_ == null) { if (matcherTypeCase_ == 1 && matcherType_ != io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.getDefaultInstance()) { matcherType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.newBuilder((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList) matcherType_) .mergeFrom(value).buildPartial(); } else { matcherType_ = value; } onChanged(); } else { if (matcherTypeCase_ == 1) { matcherListBuilder_.mergeFrom(value); } else { matcherListBuilder_.setMessage(value); } } matcherTypeCase_ = 1; return this; } /** *
     * A linear list of matchers to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList matcher_list = 1; */ public Builder clearMatcherList() { if (matcherListBuilder_ == null) { if (matcherTypeCase_ == 1) { matcherTypeCase_ = 0; matcherType_ = null; onChanged(); } } else { if (matcherTypeCase_ == 1) { matcherTypeCase_ = 0; matcherType_ = null; } matcherListBuilder_.clear(); } return this; } /** *
     * A linear list of matchers to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList matcher_list = 1; */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Builder getMatcherListBuilder() { return getMatcherListFieldBuilder().getBuilder(); } /** *
     * A linear list of matchers to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList matcher_list = 1; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherListOrBuilder getMatcherListOrBuilder() { if ((matcherTypeCase_ == 1) && (matcherListBuilder_ != null)) { return matcherListBuilder_.getMessageOrBuilder(); } else { if (matcherTypeCase_ == 1) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList) matcherType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.getDefaultInstance(); } } /** *
     * A linear list of matchers to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherList matcher_list = 1; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherListOrBuilder> getMatcherListFieldBuilder() { if (matcherListBuilder_ == null) { if (!(matcherTypeCase_ == 1)) { matcherType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.getDefaultInstance(); } matcherListBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherListOrBuilder>( (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherList) matcherType_, getParentForChildren(), isClean()); matcherType_ = null; } matcherTypeCase_ = 1; onChanged();; return matcherListBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTreeOrBuilder> matcherTreeBuilder_; /** *
     * A match tree to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree matcher_tree = 2; * @return Whether the matcherTree field is set. */ @java.lang.Override public boolean hasMatcherTree() { return matcherTypeCase_ == 2; } /** *
     * A match tree to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree matcher_tree = 2; * @return The matcherTree. */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree getMatcherTree() { if (matcherTreeBuilder_ == null) { if (matcherTypeCase_ == 2) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree) matcherType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.getDefaultInstance(); } else { if (matcherTypeCase_ == 2) { return matcherTreeBuilder_.getMessage(); } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.getDefaultInstance(); } } /** *
     * A match tree to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree matcher_tree = 2; */ public Builder setMatcherTree(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree value) { if (matcherTreeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } matcherType_ = value; onChanged(); } else { matcherTreeBuilder_.setMessage(value); } matcherTypeCase_ = 2; return this; } /** *
     * A match tree to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree matcher_tree = 2; */ public Builder setMatcherTree( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.Builder builderForValue) { if (matcherTreeBuilder_ == null) { matcherType_ = builderForValue.build(); onChanged(); } else { matcherTreeBuilder_.setMessage(builderForValue.build()); } matcherTypeCase_ = 2; return this; } /** *
     * A match tree to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree matcher_tree = 2; */ public Builder mergeMatcherTree(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree value) { if (matcherTreeBuilder_ == null) { if (matcherTypeCase_ == 2 && matcherType_ != io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.getDefaultInstance()) { matcherType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.newBuilder((io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree) matcherType_) .mergeFrom(value).buildPartial(); } else { matcherType_ = value; } onChanged(); } else { if (matcherTypeCase_ == 2) { matcherTreeBuilder_.mergeFrom(value); } else { matcherTreeBuilder_.setMessage(value); } } matcherTypeCase_ = 2; return this; } /** *
     * A match tree to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree matcher_tree = 2; */ public Builder clearMatcherTree() { if (matcherTreeBuilder_ == null) { if (matcherTypeCase_ == 2) { matcherTypeCase_ = 0; matcherType_ = null; onChanged(); } } else { if (matcherTypeCase_ == 2) { matcherTypeCase_ = 0; matcherType_ = null; } matcherTreeBuilder_.clear(); } return this; } /** *
     * A match tree to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree matcher_tree = 2; */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.Builder getMatcherTreeBuilder() { return getMatcherTreeFieldBuilder().getBuilder(); } /** *
     * A match tree to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree matcher_tree = 2; */ @java.lang.Override public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTreeOrBuilder getMatcherTreeOrBuilder() { if ((matcherTypeCase_ == 2) && (matcherTreeBuilder_ != null)) { return matcherTreeBuilder_.getMessageOrBuilder(); } else { if (matcherTypeCase_ == 2) { return (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree) matcherType_; } return io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.getDefaultInstance(); } } /** *
     * A match tree to evaluate.
     * 
* * .envoy.config.common.matcher.v3.Matcher.MatcherTree matcher_tree = 2; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTreeOrBuilder> getMatcherTreeFieldBuilder() { if (matcherTreeBuilder_ == null) { if (!(matcherTypeCase_ == 2)) { matcherType_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.getDefaultInstance(); } matcherTreeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTreeOrBuilder>( (io.envoyproxy.envoy.config.common.matcher.v3.Matcher.MatcherTree) matcherType_, getParentForChildren(), isClean()); matcherType_ = null; } matcherTypeCase_ = 2; onChanged();; return matcherTreeBuilder_; } private io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch onNoMatch_; private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatchOrBuilder> onNoMatchBuilder_; /** *
     * Optional OnMatch to use if the matcher failed.
     * If specified, the OnMatch is used, and the matcher is considered
     * to have matched.
     * If not specified, the matcher is considered not to have matched.
     * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_no_match = 3; * @return Whether the onNoMatch field is set. */ public boolean hasOnNoMatch() { return onNoMatchBuilder_ != null || onNoMatch_ != null; } /** *
     * Optional OnMatch to use if the matcher failed.
     * If specified, the OnMatch is used, and the matcher is considered
     * to have matched.
     * If not specified, the matcher is considered not to have matched.
     * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_no_match = 3; * @return The onNoMatch. */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch getOnNoMatch() { if (onNoMatchBuilder_ == null) { return onNoMatch_ == null ? io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.getDefaultInstance() : onNoMatch_; } else { return onNoMatchBuilder_.getMessage(); } } /** *
     * Optional OnMatch to use if the matcher failed.
     * If specified, the OnMatch is used, and the matcher is considered
     * to have matched.
     * If not specified, the matcher is considered not to have matched.
     * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_no_match = 3; */ public Builder setOnNoMatch(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch value) { if (onNoMatchBuilder_ == null) { if (value == null) { throw new NullPointerException(); } onNoMatch_ = value; onChanged(); } else { onNoMatchBuilder_.setMessage(value); } return this; } /** *
     * Optional OnMatch to use if the matcher failed.
     * If specified, the OnMatch is used, and the matcher is considered
     * to have matched.
     * If not specified, the matcher is considered not to have matched.
     * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_no_match = 3; */ public Builder setOnNoMatch( io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder builderForValue) { if (onNoMatchBuilder_ == null) { onNoMatch_ = builderForValue.build(); onChanged(); } else { onNoMatchBuilder_.setMessage(builderForValue.build()); } return this; } /** *
     * Optional OnMatch to use if the matcher failed.
     * If specified, the OnMatch is used, and the matcher is considered
     * to have matched.
     * If not specified, the matcher is considered not to have matched.
     * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_no_match = 3; */ public Builder mergeOnNoMatch(io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch value) { if (onNoMatchBuilder_ == null) { if (onNoMatch_ != null) { onNoMatch_ = io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.newBuilder(onNoMatch_).mergeFrom(value).buildPartial(); } else { onNoMatch_ = value; } onChanged(); } else { onNoMatchBuilder_.mergeFrom(value); } return this; } /** *
     * Optional OnMatch to use if the matcher failed.
     * If specified, the OnMatch is used, and the matcher is considered
     * to have matched.
     * If not specified, the matcher is considered not to have matched.
     * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_no_match = 3; */ public Builder clearOnNoMatch() { if (onNoMatchBuilder_ == null) { onNoMatch_ = null; onChanged(); } else { onNoMatch_ = null; onNoMatchBuilder_ = null; } return this; } /** *
     * Optional OnMatch to use if the matcher failed.
     * If specified, the OnMatch is used, and the matcher is considered
     * to have matched.
     * If not specified, the matcher is considered not to have matched.
     * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_no_match = 3; */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder getOnNoMatchBuilder() { onChanged(); return getOnNoMatchFieldBuilder().getBuilder(); } /** *
     * Optional OnMatch to use if the matcher failed.
     * If specified, the OnMatch is used, and the matcher is considered
     * to have matched.
     * If not specified, the matcher is considered not to have matched.
     * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_no_match = 3; */ public io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatchOrBuilder getOnNoMatchOrBuilder() { if (onNoMatchBuilder_ != null) { return onNoMatchBuilder_.getMessageOrBuilder(); } else { return onNoMatch_ == null ? io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.getDefaultInstance() : onNoMatch_; } } /** *
     * Optional OnMatch to use if the matcher failed.
     * If specified, the OnMatch is used, and the matcher is considered
     * to have matched.
     * If not specified, the matcher is considered not to have matched.
     * 
* * .envoy.config.common.matcher.v3.Matcher.OnMatch on_no_match = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatchOrBuilder> getOnNoMatchFieldBuilder() { if (onNoMatchBuilder_ == null) { onNoMatchBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatch.Builder, io.envoyproxy.envoy.config.common.matcher.v3.Matcher.OnMatchOrBuilder>( getOnNoMatch(), getParentForChildren(), isClean()); onNoMatch_ = null; } return onNoMatchBuilder_; } @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.common.matcher.v3.Matcher) } // @@protoc_insertion_point(class_scope:envoy.config.common.matcher.v3.Matcher) private static final io.envoyproxy.envoy.config.common.matcher.v3.Matcher DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.envoyproxy.envoy.config.common.matcher.v3.Matcher(); } public static io.envoyproxy.envoy.config.common.matcher.v3.Matcher getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Matcher parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Matcher(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.common.matcher.v3.Matcher getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy