Class RouteMatch.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RouteMatchOrBuilder, Cloneable
    Enclosing class:
    RouteMatch

    public static final class RouteMatch.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RouteMatch.Builder>
    implements RouteMatchOrBuilder
    Protobuf type envoy.config.filter.network.thrift_proxy.v2alpha1.RouteMatch
    • Method Detail

      • 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<RouteMatch.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public RouteMatch.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<RouteMatch.Builder>
      • isInitialized

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

        public RouteMatch.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<RouteMatch.Builder>
        Throws:
        IOException
      • hasMethodName

        public boolean hasMethodName()
         If specified, the route must exactly match the request method name. As a special case, an
         empty string matches any request method name.
         
        string method_name = 1;
        Specified by:
        hasMethodName in interface RouteMatchOrBuilder
        Returns:
        Whether the methodName field is set.
      • getMethodName

        public String getMethodName()
         If specified, the route must exactly match the request method name. As a special case, an
         empty string matches any request method name.
         
        string method_name = 1;
        Specified by:
        getMethodName in interface RouteMatchOrBuilder
        Returns:
        The methodName.
      • getMethodNameBytes

        public com.google.protobuf.ByteString getMethodNameBytes()
         If specified, the route must exactly match the request method name. As a special case, an
         empty string matches any request method name.
         
        string method_name = 1;
        Specified by:
        getMethodNameBytes in interface RouteMatchOrBuilder
        Returns:
        The bytes for methodName.
      • setMethodName

        public RouteMatch.Builder setMethodName​(String value)
         If specified, the route must exactly match the request method name. As a special case, an
         empty string matches any request method name.
         
        string method_name = 1;
        Parameters:
        value - The methodName to set.
        Returns:
        This builder for chaining.
      • clearMethodName

        public RouteMatch.Builder clearMethodName()
         If specified, the route must exactly match the request method name. As a special case, an
         empty string matches any request method name.
         
        string method_name = 1;
        Returns:
        This builder for chaining.
      • setMethodNameBytes

        public RouteMatch.Builder setMethodNameBytes​(com.google.protobuf.ByteString value)
         If specified, the route must exactly match the request method name. As a special case, an
         empty string matches any request method name.
         
        string method_name = 1;
        Parameters:
        value - The bytes for methodName to set.
        Returns:
        This builder for chaining.
      • hasServiceName

        public boolean hasServiceName()
         If specified, the route must have the service name as the request method name prefix. As a
         special case, an empty string matches any service name. Only relevant when service
         multiplexing.
         
        string service_name = 2;
        Specified by:
        hasServiceName in interface RouteMatchOrBuilder
        Returns:
        Whether the serviceName field is set.
      • getServiceName

        public String getServiceName()
         If specified, the route must have the service name as the request method name prefix. As a
         special case, an empty string matches any service name. Only relevant when service
         multiplexing.
         
        string service_name = 2;
        Specified by:
        getServiceName in interface RouteMatchOrBuilder
        Returns:
        The serviceName.
      • getServiceNameBytes

        public com.google.protobuf.ByteString getServiceNameBytes()
         If specified, the route must have the service name as the request method name prefix. As a
         special case, an empty string matches any service name. Only relevant when service
         multiplexing.
         
        string service_name = 2;
        Specified by:
        getServiceNameBytes in interface RouteMatchOrBuilder
        Returns:
        The bytes for serviceName.
      • setServiceName

        public RouteMatch.Builder setServiceName​(String value)
         If specified, the route must have the service name as the request method name prefix. As a
         special case, an empty string matches any service name. Only relevant when service
         multiplexing.
         
        string service_name = 2;
        Parameters:
        value - The serviceName to set.
        Returns:
        This builder for chaining.
      • clearServiceName

        public RouteMatch.Builder clearServiceName()
         If specified, the route must have the service name as the request method name prefix. As a
         special case, an empty string matches any service name. Only relevant when service
         multiplexing.
         
        string service_name = 2;
        Returns:
        This builder for chaining.
      • setServiceNameBytes

        public RouteMatch.Builder setServiceNameBytes​(com.google.protobuf.ByteString value)
         If specified, the route must have the service name as the request method name prefix. As a
         special case, an empty string matches any service name. Only relevant when service
         multiplexing.
         
        string service_name = 2;
        Parameters:
        value - The bytes for serviceName to set.
        Returns:
        This builder for chaining.
      • getInvert

        public boolean getInvert()
         Inverts whatever matching is done in the :ref:`method_name
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteMatch.method_name>` or
         :ref:`service_name
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteMatch.service_name>` fields.
         Cannot be combined with wildcard matching as that would result in routes never being matched.
         .. note::
           This does not invert matching done as part of the :ref:`headers field
           <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteMatch.headers>` field. To
           invert header matching, see :ref:`invert_match
           <envoy_api_field_route.HeaderMatcher.invert_match>`.
         
        bool invert = 3;
        Specified by:
        getInvert in interface RouteMatchOrBuilder
        Returns:
        The invert.
      • setInvert

        public RouteMatch.Builder setInvert​(boolean value)
         Inverts whatever matching is done in the :ref:`method_name
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteMatch.method_name>` or
         :ref:`service_name
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteMatch.service_name>` fields.
         Cannot be combined with wildcard matching as that would result in routes never being matched.
         .. note::
           This does not invert matching done as part of the :ref:`headers field
           <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteMatch.headers>` field. To
           invert header matching, see :ref:`invert_match
           <envoy_api_field_route.HeaderMatcher.invert_match>`.
         
        bool invert = 3;
        Parameters:
        value - The invert to set.
        Returns:
        This builder for chaining.
      • clearInvert

        public RouteMatch.Builder clearInvert()
         Inverts whatever matching is done in the :ref:`method_name
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteMatch.method_name>` or
         :ref:`service_name
         <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteMatch.service_name>` fields.
         Cannot be combined with wildcard matching as that would result in routes never being matched.
         .. note::
           This does not invert matching done as part of the :ref:`headers field
           <envoy_api_field_config.filter.network.thrift_proxy.v2alpha1.RouteMatch.headers>` field. To
           invert header matching, see :ref:`invert_match
           <envoy_api_field_route.HeaderMatcher.invert_match>`.
         
        bool invert = 3;
        Returns:
        This builder for chaining.
      • getHeadersList

        public List<HeaderMatcher> getHeadersList()
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
        Specified by:
        getHeadersList in interface RouteMatchOrBuilder
      • getHeadersCount

        public int getHeadersCount()
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
        Specified by:
        getHeadersCount in interface RouteMatchOrBuilder
      • getHeaders

        public HeaderMatcher getHeaders​(int index)
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
        Specified by:
        getHeaders in interface RouteMatchOrBuilder
      • setHeaders

        public RouteMatch.Builder setHeaders​(int index,
                                             HeaderMatcher value)
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • setHeaders

        public RouteMatch.Builder setHeaders​(int index,
                                             HeaderMatcher.Builder builderForValue)
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • addHeaders

        public RouteMatch.Builder addHeaders​(HeaderMatcher value)
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • addHeaders

        public RouteMatch.Builder addHeaders​(int index,
                                             HeaderMatcher value)
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • addHeaders

        public RouteMatch.Builder addHeaders​(HeaderMatcher.Builder builderForValue)
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • addHeaders

        public RouteMatch.Builder addHeaders​(int index,
                                             HeaderMatcher.Builder builderForValue)
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • addAllHeaders

        public RouteMatch.Builder addAllHeaders​(Iterable<? extends HeaderMatcher> values)
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • clearHeaders

        public RouteMatch.Builder clearHeaders()
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • removeHeaders

        public RouteMatch.Builder removeHeaders​(int index)
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • getHeadersBuilder

        public HeaderMatcher.Builder getHeadersBuilder​(int index)
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • getHeadersOrBuilder

        public HeaderMatcherOrBuilder getHeadersOrBuilder​(int index)
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
        Specified by:
        getHeadersOrBuilder in interface RouteMatchOrBuilder
      • getHeadersOrBuilderList

        public List<? extends HeaderMatcherOrBuilder> getHeadersOrBuilderList()
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
        Specified by:
        getHeadersOrBuilderList in interface RouteMatchOrBuilder
      • addHeadersBuilder

        public HeaderMatcher.Builder addHeadersBuilder()
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • addHeadersBuilder

        public HeaderMatcher.Builder addHeadersBuilder​(int index)
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • getHeadersBuilderList

        public List<HeaderMatcher.Builder> getHeadersBuilderList()
         Specifies a set of headers that the route should match on. The router will check the request’s
         headers against all the specified headers in the route config. A match will happen if all the
         headers in the route are present in the request with the same values (or based on presence if
         the value field is not in the config). Note that this only applies for Thrift transports and/or
         protocols that support headers.
         
        repeated .envoy.api.v2.route.HeaderMatcher headers = 4;
      • setUnknownFields

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

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