Class HttpRoute.HeaderMatch
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkservices.v1.HttpRoute.HeaderMatch
- All Implemented Interfaces:
HttpRoute.HeaderMatchOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- HttpRoute
public static final class HttpRoute.HeaderMatch
extends com.google.protobuf.GeneratedMessage
implements HttpRoute.HeaderMatchOrBuilder
Specifies how to select a route rule based on HTTP request headers.Protobuf type
google.cloud.networkservices.v1.HttpRoute.HeaderMatch- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSpecifies how to select a route rule based on HTTP request headers.static final classRepresents an integer value range.static interfacestatic enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic HttpRoute.HeaderMatchstatic final com.google.protobuf.Descriptors.DescriptorThe 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.com.google.protobuf.Parser<HttpRoute.HeaderMatch>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.intThe 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.inthashCode()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.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(HttpRoute.HeaderMatch prototype) protected HttpRoute.HeaderMatch.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static HttpRoute.HeaderMatchparseDelimitedFrom(InputStream input) static HttpRoute.HeaderMatchparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.HeaderMatchparseFrom(byte[] data) static HttpRoute.HeaderMatchparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.HeaderMatchparseFrom(com.google.protobuf.ByteString data) static HttpRoute.HeaderMatchparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.HeaderMatchparseFrom(com.google.protobuf.CodedInputStream input) static HttpRoute.HeaderMatchparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.HeaderMatchparseFrom(InputStream input) static HttpRoute.HeaderMatchparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.HeaderMatchparseFrom(ByteBuffer data) static HttpRoute.HeaderMatchparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<HttpRoute.HeaderMatch>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
EXACT_MATCH_FIELD_NUMBER
public static final int EXACT_MATCH_FIELD_NUMBER- See Also:
-
REGEX_MATCH_FIELD_NUMBER
public static final int REGEX_MATCH_FIELD_NUMBER- See Also:
-
PREFIX_MATCH_FIELD_NUMBER
public static final int PREFIX_MATCH_FIELD_NUMBER- See Also:
-
PRESENT_MATCH_FIELD_NUMBER
public static final int PRESENT_MATCH_FIELD_NUMBER- See Also:
-
SUFFIX_MATCH_FIELD_NUMBER
public static final int SUFFIX_MATCH_FIELD_NUMBER- See Also:
-
RANGE_MATCH_FIELD_NUMBER
public static final int RANGE_MATCH_FIELD_NUMBER- See Also:
-
HEADER_FIELD_NUMBER
public static final int HEADER_FIELD_NUMBER- See Also:
-
INVERT_MATCH_FIELD_NUMBER
public static final int INVERT_MATCH_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getMatchTypeCase
- Specified by:
getMatchTypeCasein interfaceHttpRoute.HeaderMatchOrBuilder
-
hasExactMatch
public boolean hasExactMatch()The value of the header should match exactly the content of exact_match.
string exact_match = 2;- Specified by:
hasExactMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- Whether the exactMatch field is set.
-
getExactMatch
The value of the header should match exactly the content of exact_match.
string exact_match = 2;- Specified by:
getExactMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The exactMatch.
-
getExactMatchBytes
public com.google.protobuf.ByteString getExactMatchBytes()The value of the header should match exactly the content of exact_match.
string exact_match = 2;- Specified by:
getExactMatchBytesin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The bytes for exactMatch.
-
hasRegexMatch
public 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;- Specified by:
hasRegexMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- Whether the regexMatch field is set.
-
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;- Specified by:
getRegexMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The regexMatch.
-
getRegexMatchBytes
public 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;- Specified by:
getRegexMatchBytesin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The bytes for regexMatch.
-
hasPrefixMatch
public boolean hasPrefixMatch()The value of the header must start with the contents of prefix_match.
string prefix_match = 4;- Specified by:
hasPrefixMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- Whether the prefixMatch field is set.
-
getPrefixMatch
The value of the header must start with the contents of prefix_match.
string prefix_match = 4;- Specified by:
getPrefixMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The prefixMatch.
-
getPrefixMatchBytes
public com.google.protobuf.ByteString getPrefixMatchBytes()The value of the header must start with the contents of prefix_match.
string prefix_match = 4;- Specified by:
getPrefixMatchBytesin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The bytes for prefixMatch.
-
hasPresentMatch
public 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;- Specified by:
hasPresentMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- Whether the presentMatch field is set.
-
getPresentMatch
public 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;- Specified by:
getPresentMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The presentMatch.
-
hasSuffixMatch
public boolean hasSuffixMatch()The value of the header must end with the contents of suffix_match.
string suffix_match = 6;- Specified by:
hasSuffixMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- Whether the suffixMatch field is set.
-
getSuffixMatch
The value of the header must end with the contents of suffix_match.
string suffix_match = 6;- Specified by:
getSuffixMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The suffixMatch.
-
getSuffixMatchBytes
public com.google.protobuf.ByteString getSuffixMatchBytes()The value of the header must end with the contents of suffix_match.
string suffix_match = 6;- Specified by:
getSuffixMatchBytesin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The bytes for suffixMatch.
-
hasRangeMatch
public 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;- Specified by:
hasRangeMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- Whether the rangeMatch field is set.
-
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;- Specified by:
getRangeMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The rangeMatch.
-
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;- Specified by:
getRangeMatchOrBuilderin interfaceHttpRoute.HeaderMatchOrBuilder
-
getHeader
The name of the HTTP header to match against.
string header = 1;- Specified by:
getHeaderin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The header.
-
getHeaderBytes
public com.google.protobuf.ByteString getHeaderBytes()The name of the HTTP header to match against.
string header = 1;- Specified by:
getHeaderBytesin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The bytes for header.
-
getInvertMatch
public boolean getInvertMatch()If specified, the match result will be inverted before checking. Default value is set to false.
bool invert_match = 8;- Specified by:
getInvertMatchin interfaceHttpRoute.HeaderMatchOrBuilder- Returns:
- The invertMatch.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HttpRoute.HeaderMatch parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.HeaderMatch parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.HeaderMatch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.HeaderMatch parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.HeaderMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.HeaderMatch parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static HttpRoute.HeaderMatch parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static HttpRoute.HeaderMatch parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static HttpRoute.HeaderMatch parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static HttpRoute.HeaderMatch parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HttpRoute.HeaderMatch.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-