Class Matcher.OnMatch.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
com.github.xds.type.matcher.v3.Matcher.OnMatch.Builder
All Implemented Interfaces:
Matcher.OnMatchOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Matcher.OnMatch

public static final class Matcher.OnMatch.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder> implements Matcher.OnMatchOrBuilder
 What to do if a match is successful.
 
Protobuf type xds.type.matcher.v3.Matcher.OnMatch
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
    • clear

      public Matcher.OnMatch.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
    • getDefaultInstanceForType

      public Matcher.OnMatch getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Matcher.OnMatch build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Matcher.OnMatch buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public Matcher.OnMatch.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
    • setField

      public Matcher.OnMatch.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
    • clearField

      public Matcher.OnMatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
    • clearOneof

      public Matcher.OnMatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
    • setRepeatedField

      public Matcher.OnMatch.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
    • addRepeatedField

      public Matcher.OnMatch.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
    • mergeFrom

      public Matcher.OnMatch.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Matcher.OnMatch.Builder>
    • mergeFrom

      public Matcher.OnMatch.Builder mergeFrom(Matcher.OnMatch other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
    • mergeFrom

      public Matcher.OnMatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Matcher.OnMatch.Builder>
      Throws:
      IOException
    • getOnMatchCase

      public Matcher.OnMatch.OnMatchCase getOnMatchCase()
      Specified by:
      getOnMatchCase in interface Matcher.OnMatchOrBuilder
    • clearOnMatch

      public Matcher.OnMatch.Builder clearOnMatch()
    • hasMatcher

      public 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.
       
      .xds.type.matcher.v3.Matcher matcher = 1;
      Specified by:
      hasMatcher in interface Matcher.OnMatchOrBuilder
      Returns:
      Whether the matcher field is set.
    • getMatcher

      public 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.
       
      .xds.type.matcher.v3.Matcher matcher = 1;
      Specified by:
      getMatcher in interface Matcher.OnMatchOrBuilder
      Returns:
      The matcher.
    • setMatcher

      public Matcher.OnMatch.Builder setMatcher(Matcher value)
       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.
       
      .xds.type.matcher.v3.Matcher matcher = 1;
    • setMatcher

      public Matcher.OnMatch.Builder setMatcher(Matcher.Builder builderForValue)
       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.
       
      .xds.type.matcher.v3.Matcher matcher = 1;
    • mergeMatcher

      public Matcher.OnMatch.Builder mergeMatcher(Matcher value)
       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.
       
      .xds.type.matcher.v3.Matcher matcher = 1;
    • clearMatcher

      public Matcher.OnMatch.Builder clearMatcher()
       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.
       
      .xds.type.matcher.v3.Matcher matcher = 1;
    • getMatcherBuilder

      public Matcher.Builder getMatcherBuilder()
       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.
       
      .xds.type.matcher.v3.Matcher matcher = 1;
    • getMatcherOrBuilder

      public MatcherOrBuilder getMatcherOrBuilder()
       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.
       
      .xds.type.matcher.v3.Matcher matcher = 1;
      Specified by:
      getMatcherOrBuilder in interface Matcher.OnMatchOrBuilder
    • hasAction

      public boolean hasAction()
       Protocol-specific action to take.
       
      .xds.core.v3.TypedExtensionConfig action = 2;
      Specified by:
      hasAction in interface Matcher.OnMatchOrBuilder
      Returns:
      Whether the action field is set.
    • getAction

      public TypedExtensionConfig getAction()
       Protocol-specific action to take.
       
      .xds.core.v3.TypedExtensionConfig action = 2;
      Specified by:
      getAction in interface Matcher.OnMatchOrBuilder
      Returns:
      The action.
    • setAction

       Protocol-specific action to take.
       
      .xds.core.v3.TypedExtensionConfig action = 2;
    • setAction

      public Matcher.OnMatch.Builder setAction(TypedExtensionConfig.Builder builderForValue)
       Protocol-specific action to take.
       
      .xds.core.v3.TypedExtensionConfig action = 2;
    • mergeAction

      public Matcher.OnMatch.Builder mergeAction(TypedExtensionConfig value)
       Protocol-specific action to take.
       
      .xds.core.v3.TypedExtensionConfig action = 2;
    • clearAction

      public Matcher.OnMatch.Builder clearAction()
       Protocol-specific action to take.
       
      .xds.core.v3.TypedExtensionConfig action = 2;
    • getActionBuilder

      public TypedExtensionConfig.Builder getActionBuilder()
       Protocol-specific action to take.
       
      .xds.core.v3.TypedExtensionConfig action = 2;
    • getActionOrBuilder

      public TypedExtensionConfigOrBuilder getActionOrBuilder()
       Protocol-specific action to take.
       
      .xds.core.v3.TypedExtensionConfig action = 2;
      Specified by:
      getActionOrBuilder in interface Matcher.OnMatchOrBuilder
    • getKeepMatching

      public boolean getKeepMatching()
       If true and the Matcher matches, the action will be taken but the caller
       will behave as if the Matcher did not match. A subsequent matcher or
       on_no_match action will be used instead.
       This field is not supported in all contexts in which the matcher API is
       used. If this field is set in a context in which it's not supported,
       the resource will be rejected.
       
      bool keep_matching = 3;
      Specified by:
      getKeepMatching in interface Matcher.OnMatchOrBuilder
      Returns:
      The keepMatching.
    • setKeepMatching

      public Matcher.OnMatch.Builder setKeepMatching(boolean value)
       If true and the Matcher matches, the action will be taken but the caller
       will behave as if the Matcher did not match. A subsequent matcher or
       on_no_match action will be used instead.
       This field is not supported in all contexts in which the matcher API is
       used. If this field is set in a context in which it's not supported,
       the resource will be rejected.
       
      bool keep_matching = 3;
      Parameters:
      value - The keepMatching to set.
      Returns:
      This builder for chaining.
    • clearKeepMatching

      public Matcher.OnMatch.Builder clearKeepMatching()
       If true and the Matcher matches, the action will be taken but the caller
       will behave as if the Matcher did not match. A subsequent matcher or
       on_no_match action will be used instead.
       This field is not supported in all contexts in which the matcher API is
       used. If this field is set in a context in which it's not supported,
       the resource will be rejected.
       
      bool keep_matching = 3;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Matcher.OnMatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>
    • mergeUnknownFields

      public final Matcher.OnMatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Matcher.OnMatch.Builder>