Interface HttpRoute.HeaderMatchOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
HttpRoute.HeaderMatch,HttpRoute.HeaderMatch.Builder
- Enclosing class:
- HttpRoute
public static interface HttpRoute.HeaderMatchOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionThe value of the header should match exactly the content of exact_match.com.google.protobuf.ByteStringThe value of the header should match exactly the content of exact_match.The name of the HTTP header to match against.com.google.protobuf.ByteStringThe name of the HTTP header to match against.booleanIf specified, the match result will be inverted before checking.The value of the header must start with the contents of prefix_match.com.google.protobuf.ByteStringThe value of the header must start with the contents of prefix_match.booleanA header with header_name must exist.If specified, the rule will match if the request header value is within the range.If specified, the rule will match if the request header value is within the range.The value of the header must match the regular expression specified in regex_match.com.google.protobuf.ByteStringThe value of the header must match the regular expression specified in regex_match.The value of the header must end with the contents of suffix_match.com.google.protobuf.ByteStringThe value of the header must end with the contents of suffix_match.booleanThe value of the header should match exactly the content of exact_match.booleanThe value of the header must start with the contents of prefix_match.booleanA header with header_name must exist.booleanIf specified, the rule will match if the request header value is within the range.booleanThe value of the header must match the regular expression specified in regex_match.booleanThe value of the header must end with the contents of suffix_match.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasExactMatch
boolean hasExactMatch()The value of the header should match exactly the content of exact_match.
string exact_match = 2;- Returns:
- Whether the exactMatch field is set.
-
getExactMatch
String getExactMatch()The value of the header should match exactly the content of exact_match.
string exact_match = 2;- Returns:
- The exactMatch.
-
getExactMatchBytes
com.google.protobuf.ByteString getExactMatchBytes()The value of the header should match exactly the content of exact_match.
string exact_match = 2;- Returns:
- The bytes for exactMatch.
-
hasRegexMatch
boolean hasRegexMatch()The value of the header must match the regular expression specified in regex_match. For regular expression grammar, please see: https://github.com/google/re2/wiki/Syntax
string regex_match = 3;- Returns:
- Whether the regexMatch field is set.
-
getRegexMatch
String getRegexMatch()The value of the header must match the regular expression specified in regex_match. For regular expression grammar, please see: https://github.com/google/re2/wiki/Syntax
string regex_match = 3;- Returns:
- The regexMatch.
-
getRegexMatchBytes
com.google.protobuf.ByteString getRegexMatchBytes()The value of the header must match the regular expression specified in regex_match. For regular expression grammar, please see: https://github.com/google/re2/wiki/Syntax
string regex_match = 3;- Returns:
- The bytes for regexMatch.
-
hasPrefixMatch
boolean hasPrefixMatch()The value of the header must start with the contents of prefix_match.
string prefix_match = 4;- Returns:
- Whether the prefixMatch field is set.
-
getPrefixMatch
String getPrefixMatch()The value of the header must start with the contents of prefix_match.
string prefix_match = 4;- Returns:
- The prefixMatch.
-
getPrefixMatchBytes
com.google.protobuf.ByteString getPrefixMatchBytes()The value of the header must start with the contents of prefix_match.
string prefix_match = 4;- Returns:
- The bytes for prefixMatch.
-
hasPresentMatch
boolean hasPresentMatch()A header with header_name must exist. The match takes place whether or not the header has a value.
bool present_match = 5;- Returns:
- Whether the presentMatch field is set.
-
getPresentMatch
boolean getPresentMatch()A header with header_name must exist. The match takes place whether or not the header has a value.
bool present_match = 5;- Returns:
- The presentMatch.
-
hasSuffixMatch
boolean hasSuffixMatch()The value of the header must end with the contents of suffix_match.
string suffix_match = 6;- Returns:
- Whether the suffixMatch field is set.
-
getSuffixMatch
String getSuffixMatch()The value of the header must end with the contents of suffix_match.
string suffix_match = 6;- Returns:
- The suffixMatch.
-
getSuffixMatchBytes
com.google.protobuf.ByteString getSuffixMatchBytes()The value of the header must end with the contents of suffix_match.
string suffix_match = 6;- Returns:
- The bytes for suffixMatch.
-
hasRangeMatch
boolean hasRangeMatch()If specified, the rule will match if the request header value is within the range.
.google.cloud.networkservices.v1.HttpRoute.HeaderMatch.IntegerRange range_match = 7;- Returns:
- Whether the rangeMatch field is set.
-
getRangeMatch
HttpRoute.HeaderMatch.IntegerRange getRangeMatch()If specified, the rule will match if the request header value is within the range.
.google.cloud.networkservices.v1.HttpRoute.HeaderMatch.IntegerRange range_match = 7;- Returns:
- The rangeMatch.
-
getRangeMatchOrBuilder
HttpRoute.HeaderMatch.IntegerRangeOrBuilder getRangeMatchOrBuilder()If specified, the rule will match if the request header value is within the range.
.google.cloud.networkservices.v1.HttpRoute.HeaderMatch.IntegerRange range_match = 7; -
getHeader
String getHeader()The name of the HTTP header to match against.
string header = 1;- Returns:
- The header.
-
getHeaderBytes
com.google.protobuf.ByteString getHeaderBytes()The name of the HTTP header to match against.
string header = 1;- Returns:
- The bytes for header.
-
getInvertMatch
boolean getInvertMatch()If specified, the match result will be inverted before checking. Default value is set to false.
bool invert_match = 8;- Returns:
- The invertMatch.
-
getMatchTypeCase
HttpRoute.HeaderMatch.MatchTypeCase getMatchTypeCase()
-