Interface HttpHeaderMatchOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    HttpHeaderMatch, HttpHeaderMatch.Builder

    public interface HttpHeaderMatchOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getExactMatch()
      The value should exactly match contents of exactMatch.
      com.google.protobuf.ByteString getExactMatchBytes()
      The value should exactly match contents of exactMatch.
      String getHeaderName()
      The name of the HTTP header to match.
      com.google.protobuf.ByteString getHeaderNameBytes()
      The name of the HTTP header to match.
      boolean getInvertMatch()
      If set to false, the headerMatch is considered a match if the preceding match criteria are met.
      String getPrefixMatch()
      The value of the header must start with the contents of prefixMatch.
      com.google.protobuf.ByteString getPrefixMatchBytes()
      The value of the header must start with the contents of prefixMatch.
      boolean getPresentMatch()
      A header with the contents of headerName must exist.
      Int64RangeMatch getRangeMatch()
      The header value must be an integer and its value must be in the range specified in rangeMatch.
      Int64RangeMatchOrBuilder getRangeMatchOrBuilder()
      The header value must be an integer and its value must be in the range specified in rangeMatch.
      String getRegexMatch()
      The value of the header must match the regular expression specified in regexMatch.
      com.google.protobuf.ByteString getRegexMatchBytes()
      The value of the header must match the regular expression specified in regexMatch.
      String getSuffixMatch()
      The value of the header must end with the contents of suffixMatch.
      com.google.protobuf.ByteString getSuffixMatchBytes()
      The value of the header must end with the contents of suffixMatch.
      boolean hasExactMatch()
      The value should exactly match contents of exactMatch.
      boolean hasHeaderName()
      The name of the HTTP header to match.
      boolean hasInvertMatch()
      If set to false, the headerMatch is considered a match if the preceding match criteria are met.
      boolean hasPrefixMatch()
      The value of the header must start with the contents of prefixMatch.
      boolean hasPresentMatch()
      A header with the contents of headerName must exist.
      boolean hasRangeMatch()
      The header value must be an integer and its value must be in the range specified in rangeMatch.
      boolean hasRegexMatch()
      The value of the header must match the regular expression specified in regexMatch.
      boolean hasSuffixMatch()
      The value of the header must end with the contents of suffixMatch.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • hasExactMatch

        boolean hasExactMatch()
         The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
         
        optional string exact_match = 457641093;
        Returns:
        Whether the exactMatch field is set.
      • getExactMatch

        String getExactMatch()
         The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
         
        optional string exact_match = 457641093;
        Returns:
        The exactMatch.
      • getExactMatchBytes

        com.google.protobuf.ByteString getExactMatchBytes()
         The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
         
        optional string exact_match = 457641093;
        Returns:
        The bytes for exactMatch.
      • hasHeaderName

        boolean hasHeaderName()
         The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true, only non-binary user-specified custom metadata and the `content-type` header are supported. The following transport-level headers cannot be used in header matching rules: `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content-encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`, `grpc-timeout` and `grpc-trace-bin`.
         
        optional string header_name = 110223613;
        Returns:
        Whether the headerName field is set.
      • getHeaderName

        String getHeaderName()
         The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true, only non-binary user-specified custom metadata and the `content-type` header are supported. The following transport-level headers cannot be used in header matching rules: `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content-encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`, `grpc-timeout` and `grpc-trace-bin`.
         
        optional string header_name = 110223613;
        Returns:
        The headerName.
      • getHeaderNameBytes

        com.google.protobuf.ByteString getHeaderNameBytes()
         The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to a target gRPC proxy that has the validateForProxyless field set to true, only non-binary user-specified custom metadata and the `content-type` header are supported. The following transport-level headers cannot be used in header matching rules: `:authority`, `:method`, `:path`, `:scheme`, `user-agent`, `accept-encoding`, `content-encoding`, `grpc-accept-encoding`, `grpc-encoding`, `grpc-previous-rpc-attempts`, `grpc-tags-bin`, `grpc-timeout` and `grpc-trace-bin`.
         
        optional string header_name = 110223613;
        Returns:
        The bytes for headerName.
      • hasInvertMatch

        boolean hasInvertMatch()
         If set to false, the headerMatch is considered a match if the preceding match criteria are met. If set to true, the headerMatch is considered a match if the preceding match criteria are NOT met. The default setting is false.
         
        optional bool invert_match = 501130268;
        Returns:
        Whether the invertMatch field is set.
      • getInvertMatch

        boolean getInvertMatch()
         If set to false, the headerMatch is considered a match if the preceding match criteria are met. If set to true, the headerMatch is considered a match if the preceding match criteria are NOT met. The default setting is false.
         
        optional bool invert_match = 501130268;
        Returns:
        The invertMatch.
      • hasPrefixMatch

        boolean hasPrefixMatch()
         The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
         
        optional string prefix_match = 257898968;
        Returns:
        Whether the prefixMatch field is set.
      • getPrefixMatch

        String getPrefixMatch()
         The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
         
        optional string prefix_match = 257898968;
        Returns:
        The prefixMatch.
      • getPrefixMatchBytes

        com.google.protobuf.ByteString getPrefixMatchBytes()
         The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
         
        optional string prefix_match = 257898968;
        Returns:
        The bytes for prefixMatch.
      • hasPresentMatch

        boolean hasPresentMatch()
         A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
         
        optional bool present_match = 67435841;
        Returns:
        Whether the presentMatch field is set.
      • getPresentMatch

        boolean getPresentMatch()
         A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
         
        optional bool present_match = 67435841;
        Returns:
        The presentMatch.
      • hasRangeMatch

        boolean hasRangeMatch()
         The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
         
        optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
        Returns:
        Whether the rangeMatch field is set.
      • getRangeMatch

        Int64RangeMatch getRangeMatch()
         The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
         
        optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
        Returns:
        The rangeMatch.
      • getRangeMatchOrBuilder

        Int64RangeMatchOrBuilder getRangeMatchOrBuilder()
         The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
         
        optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
      • hasRegexMatch

        boolean hasRegexMatch()
         The value of the header must match the regular expression specified in regexMatch. For more information about regular expression syntax, see Syntax. For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
         
        optional string regex_match = 107387853;
        Returns:
        Whether the regexMatch field is set.
      • getRegexMatch

        String getRegexMatch()
         The value of the header must match the regular expression specified in regexMatch. For more information about regular expression syntax, see Syntax. For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
         
        optional string regex_match = 107387853;
        Returns:
        The regexMatch.
      • getRegexMatchBytes

        com.google.protobuf.ByteString getRegexMatchBytes()
         The value of the header must match the regular expression specified in regexMatch. For more information about regular expression syntax, see Syntax. For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
         
        optional string regex_match = 107387853;
        Returns:
        The bytes for regexMatch.
      • hasSuffixMatch

        boolean hasSuffixMatch()
         The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
         
        optional string suffix_match = 426488663;
        Returns:
        Whether the suffixMatch field is set.
      • getSuffixMatch

        String getSuffixMatch()
         The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
         
        optional string suffix_match = 426488663;
        Returns:
        The suffixMatch.
      • getSuffixMatchBytes

        com.google.protobuf.ByteString getSuffixMatchBytes()
         The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
         
        optional string suffix_match = 426488663;
        Returns:
        The bytes for suffixMatch.