java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder>
io.envoyproxy.envoy.extensions.filters.network.generic_proxy.matcher.v3.RequestMatcher.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RequestMatcherOrBuilder, Cloneable
Enclosing class:
RequestMatcher

public static final class RequestMatcher.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RequestMatcher.Builder> implements RequestMatcherOrBuilder
 Custom matcher to match on the generic downstream request. This is used to match
 multiple fields of the downstream request and avoid complex combinations of
 HostMatchInput, PathMatchInput, MethodMatchInput and PropertyMatchInput.
 
Protobuf type envoy.extensions.filters.network.generic_proxy.matcher.v3.RequestMatcher
  • 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<RequestMatcher.Builder>
    • clear

      public RequestMatcher.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<RequestMatcher.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<RequestMatcher.Builder>
    • getDefaultInstanceForType

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

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

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

      public RequestMatcher.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<RequestMatcher.Builder>
    • setField

      public RequestMatcher.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<RequestMatcher.Builder>
    • clearField

      public RequestMatcher.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<RequestMatcher.Builder>
    • clearOneof

      public RequestMatcher.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<RequestMatcher.Builder>
    • setRepeatedField

      public RequestMatcher.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<RequestMatcher.Builder>
    • addRepeatedField

      public RequestMatcher.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<RequestMatcher.Builder>
    • mergeFrom

      public RequestMatcher.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<RequestMatcher.Builder>
    • mergeFrom

      public RequestMatcher.Builder mergeFrom(RequestMatcher other)
    • isInitialized

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

      public RequestMatcher.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<RequestMatcher.Builder>
      Throws:
      IOException
    • hasHost

      public boolean hasHost()
       Optional host pattern to match on. If not specified, any host will match.
       
      .envoy.type.matcher.v3.StringMatcher host = 1;
      Specified by:
      hasHost in interface RequestMatcherOrBuilder
      Returns:
      Whether the host field is set.
    • getHost

      public StringMatcher getHost()
       Optional host pattern to match on. If not specified, any host will match.
       
      .envoy.type.matcher.v3.StringMatcher host = 1;
      Specified by:
      getHost in interface RequestMatcherOrBuilder
      Returns:
      The host.
    • setHost

      public RequestMatcher.Builder setHost(StringMatcher value)
       Optional host pattern to match on. If not specified, any host will match.
       
      .envoy.type.matcher.v3.StringMatcher host = 1;
    • setHost

      public RequestMatcher.Builder setHost(StringMatcher.Builder builderForValue)
       Optional host pattern to match on. If not specified, any host will match.
       
      .envoy.type.matcher.v3.StringMatcher host = 1;
    • mergeHost

      public RequestMatcher.Builder mergeHost(StringMatcher value)
       Optional host pattern to match on. If not specified, any host will match.
       
      .envoy.type.matcher.v3.StringMatcher host = 1;
    • clearHost

      public RequestMatcher.Builder clearHost()
       Optional host pattern to match on. If not specified, any host will match.
       
      .envoy.type.matcher.v3.StringMatcher host = 1;
    • getHostBuilder

      public StringMatcher.Builder getHostBuilder()
       Optional host pattern to match on. If not specified, any host will match.
       
      .envoy.type.matcher.v3.StringMatcher host = 1;
    • getHostOrBuilder

      public StringMatcherOrBuilder getHostOrBuilder()
       Optional host pattern to match on. If not specified, any host will match.
       
      .envoy.type.matcher.v3.StringMatcher host = 1;
      Specified by:
      getHostOrBuilder in interface RequestMatcherOrBuilder
    • hasPath

      public boolean hasPath()
       Optional path pattern to match on. If not specified, any path will match.
       
      .envoy.type.matcher.v3.StringMatcher path = 2;
      Specified by:
      hasPath in interface RequestMatcherOrBuilder
      Returns:
      Whether the path field is set.
    • getPath

      public StringMatcher getPath()
       Optional path pattern to match on. If not specified, any path will match.
       
      .envoy.type.matcher.v3.StringMatcher path = 2;
      Specified by:
      getPath in interface RequestMatcherOrBuilder
      Returns:
      The path.
    • setPath

      public RequestMatcher.Builder setPath(StringMatcher value)
       Optional path pattern to match on. If not specified, any path will match.
       
      .envoy.type.matcher.v3.StringMatcher path = 2;
    • setPath

      public RequestMatcher.Builder setPath(StringMatcher.Builder builderForValue)
       Optional path pattern to match on. If not specified, any path will match.
       
      .envoy.type.matcher.v3.StringMatcher path = 2;
    • mergePath

      public RequestMatcher.Builder mergePath(StringMatcher value)
       Optional path pattern to match on. If not specified, any path will match.
       
      .envoy.type.matcher.v3.StringMatcher path = 2;
    • clearPath

      public RequestMatcher.Builder clearPath()
       Optional path pattern to match on. If not specified, any path will match.
       
      .envoy.type.matcher.v3.StringMatcher path = 2;
    • getPathBuilder

      public StringMatcher.Builder getPathBuilder()
       Optional path pattern to match on. If not specified, any path will match.
       
      .envoy.type.matcher.v3.StringMatcher path = 2;
    • getPathOrBuilder

      public StringMatcherOrBuilder getPathOrBuilder()
       Optional path pattern to match on. If not specified, any path will match.
       
      .envoy.type.matcher.v3.StringMatcher path = 2;
      Specified by:
      getPathOrBuilder in interface RequestMatcherOrBuilder
    • hasMethod

      public boolean hasMethod()
       Optional method pattern to match on. If not specified, any method will match.
       
      .envoy.type.matcher.v3.StringMatcher method = 3;
      Specified by:
      hasMethod in interface RequestMatcherOrBuilder
      Returns:
      Whether the method field is set.
    • getMethod

      public StringMatcher getMethod()
       Optional method pattern to match on. If not specified, any method will match.
       
      .envoy.type.matcher.v3.StringMatcher method = 3;
      Specified by:
      getMethod in interface RequestMatcherOrBuilder
      Returns:
      The method.
    • setMethod

      public RequestMatcher.Builder setMethod(StringMatcher value)
       Optional method pattern to match on. If not specified, any method will match.
       
      .envoy.type.matcher.v3.StringMatcher method = 3;
    • setMethod

      public RequestMatcher.Builder setMethod(StringMatcher.Builder builderForValue)
       Optional method pattern to match on. If not specified, any method will match.
       
      .envoy.type.matcher.v3.StringMatcher method = 3;
    • mergeMethod

      public RequestMatcher.Builder mergeMethod(StringMatcher value)
       Optional method pattern to match on. If not specified, any method will match.
       
      .envoy.type.matcher.v3.StringMatcher method = 3;
    • clearMethod

      public RequestMatcher.Builder clearMethod()
       Optional method pattern to match on. If not specified, any method will match.
       
      .envoy.type.matcher.v3.StringMatcher method = 3;
    • getMethodBuilder

      public StringMatcher.Builder getMethodBuilder()
       Optional method pattern to match on. If not specified, any method will match.
       
      .envoy.type.matcher.v3.StringMatcher method = 3;
    • getMethodOrBuilder

      public StringMatcherOrBuilder getMethodOrBuilder()
       Optional method pattern to match on. If not specified, any method will match.
       
      .envoy.type.matcher.v3.StringMatcher method = 3;
      Specified by:
      getMethodOrBuilder in interface RequestMatcherOrBuilder
    • getPropertiesList

      public List<KeyValueMatchEntry> getPropertiesList()
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
      Specified by:
      getPropertiesList in interface RequestMatcherOrBuilder
    • getPropertiesCount

      public int getPropertiesCount()
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
      Specified by:
      getPropertiesCount in interface RequestMatcherOrBuilder
    • getProperties

      public KeyValueMatchEntry getProperties(int index)
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
      Specified by:
      getProperties in interface RequestMatcherOrBuilder
    • setProperties

      public RequestMatcher.Builder setProperties(int index, KeyValueMatchEntry value)
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • setProperties

      public RequestMatcher.Builder setProperties(int index, KeyValueMatchEntry.Builder builderForValue)
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • addProperties

      public RequestMatcher.Builder addProperties(KeyValueMatchEntry value)
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • addProperties

      public RequestMatcher.Builder addProperties(int index, KeyValueMatchEntry value)
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • addProperties

      public RequestMatcher.Builder addProperties(KeyValueMatchEntry.Builder builderForValue)
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • addProperties

      public RequestMatcher.Builder addProperties(int index, KeyValueMatchEntry.Builder builderForValue)
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • addAllProperties

      public RequestMatcher.Builder addAllProperties(Iterable<? extends KeyValueMatchEntry> values)
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • clearProperties

      public RequestMatcher.Builder clearProperties()
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • removeProperties

      public RequestMatcher.Builder removeProperties(int index)
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • getPropertiesBuilder

      public KeyValueMatchEntry.Builder getPropertiesBuilder(int index)
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • getPropertiesOrBuilder

      public KeyValueMatchEntryOrBuilder getPropertiesOrBuilder(int index)
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
      Specified by:
      getPropertiesOrBuilder in interface RequestMatcherOrBuilder
    • getPropertiesOrBuilderList

      public List<? extends KeyValueMatchEntryOrBuilder> getPropertiesOrBuilderList()
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
      Specified by:
      getPropertiesOrBuilderList in interface RequestMatcherOrBuilder
    • addPropertiesBuilder

      public KeyValueMatchEntry.Builder addPropertiesBuilder()
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • addPropertiesBuilder

      public KeyValueMatchEntry.Builder addPropertiesBuilder(int index)
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • getPropertiesBuilderList

      public List<KeyValueMatchEntry.Builder> getPropertiesBuilderList()
       Optional arbitrary properties to match on. If not specified, any properties
       will match. The key is the property name and the value is the property value
       to match on.
       
      repeated .envoy.extensions.filters.network.generic_proxy.matcher.v3.KeyValueMatchEntry properties = 4;
    • setUnknownFields

      public final RequestMatcher.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<RequestMatcher.Builder>
    • mergeUnknownFields

      public final RequestMatcher.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<RequestMatcher.Builder>