Class GrpcRouteMetadataMatchMethod

    • Method Detail

      • exact

        public final String exact()

        The value sent by the client must match the specified value exactly.

        Returns:
        The value sent by the client must match the specified value exactly.
      • prefix

        public final String prefix()

        The value sent by the client must begin with the specified characters.

        Returns:
        The value sent by the client must begin with the specified characters.
      • range

        public final MatchRange range()

        An object that represents the range of values to match on.

        Returns:
        An object that represents the range of values to match on.
      • regex

        public final String regex()

        The value sent by the client must include the specified characters.

        Returns:
        The value sent by the client must include the specified characters.
      • suffix

        public final String suffix()

        The value sent by the client must end with the specified characters.

        Returns:
        The value sent by the client must end with the specified characters.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromExact

        public static GrpcRouteMetadataMatchMethod fromExact​(String exact)
        Create an instance of this class with exact() initialized to the given value.

        The value sent by the client must match the specified value exactly.

        Parameters:
        exact - The value sent by the client must match the specified value exactly.
      • fromPrefix

        public static GrpcRouteMetadataMatchMethod fromPrefix​(String prefix)
        Create an instance of this class with prefix() initialized to the given value.

        The value sent by the client must begin with the specified characters.

        Parameters:
        prefix - The value sent by the client must begin with the specified characters.
      • fromRange

        public static GrpcRouteMetadataMatchMethod fromRange​(MatchRange range)
        Create an instance of this class with range() initialized to the given value.

        An object that represents the range of values to match on.

        Parameters:
        range - An object that represents the range of values to match on.
      • fromRange

        public static GrpcRouteMetadataMatchMethod fromRange​(Consumer<MatchRange.Builder> range)
        Create an instance of this class with range() initialized to the given value.

        An object that represents the range of values to match on.

        Parameters:
        range - An object that represents the range of values to match on.
      • fromRegex

        public static GrpcRouteMetadataMatchMethod fromRegex​(String regex)
        Create an instance of this class with regex() initialized to the given value.

        The value sent by the client must include the specified characters.

        Parameters:
        regex - The value sent by the client must include the specified characters.
      • fromSuffix

        public static GrpcRouteMetadataMatchMethod fromSuffix​(String suffix)
        Create an instance of this class with suffix() initialized to the given value.

        The value sent by the client must end with the specified characters.

        Parameters:
        suffix - The value sent by the client must end with the specified characters.