Class HttpRoute.RouteMatch
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.networkservices.v1.HttpRoute.RouteMatch
- All Implemented Interfaces:
HttpRoute.RouteMatchOrBuilder,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.RouteMatch
extends com.google.protobuf.GeneratedMessage
implements HttpRoute.RouteMatchOrBuilder
RouteMatch defines specifications used to match requests. If multiple match types are set, this RouteMatch will match if ALL type of matches are matched.Protobuf type
google.cloud.networkservices.v1.HttpRoute.RouteMatch- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRouteMatch defines specifications used to match requests.static 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 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.RouteMatchstatic final com.google.protobuf.Descriptors.DescriptorThe HTTP request path value should exactly match this value.com.google.protobuf.ByteStringThe HTTP request path value should exactly match this value.getHeaders(int index) Specifies a list of HTTP request headers to match against.intSpecifies a list of HTTP request headers to match against.Specifies a list of HTTP request headers to match against.getHeadersOrBuilder(int index) Specifies a list of HTTP request headers to match against.List<? extends HttpRoute.HeaderMatchOrBuilder>Specifies a list of HTTP request headers to match against.booleanSpecifies if prefix_match and full_path_match matches are case sensitive.com.google.protobuf.Parser<HttpRoute.RouteMatch>The HTTP request path value must begin with specified prefix_match.com.google.protobuf.ByteStringThe HTTP request path value must begin with specified prefix_match.getQueryParameters(int index) Specifies a list of query parameters to match against.intSpecifies a list of query parameters to match against.Specifies a list of query parameters to match against.getQueryParametersOrBuilder(int index) Specifies a list of query parameters to match against.List<? extends HttpRoute.QueryParameterMatchOrBuilder>Specifies a list of query parameters to match against.The HTTP request path value must satisfy the regular expression specified by regex_match after removing any query parameters and anchor supplied with the original URL.com.google.protobuf.ByteStringThe HTTP request path value must satisfy the regular expression specified by regex_match after removing any query parameters and anchor supplied with the original URL.intbooleanThe HTTP request path value should exactly match this value.inthashCode()booleanThe HTTP request path value must begin with specified prefix_match.booleanThe HTTP request path value must satisfy the regular expression specified by regex_match after removing any query parameters and anchor supplied with the original URL.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic HttpRoute.RouteMatch.Builderstatic HttpRoute.RouteMatch.BuildernewBuilder(HttpRoute.RouteMatch prototype) protected HttpRoute.RouteMatch.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static HttpRoute.RouteMatchparseDelimitedFrom(InputStream input) static HttpRoute.RouteMatchparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.RouteMatchparseFrom(byte[] data) static HttpRoute.RouteMatchparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.RouteMatchparseFrom(com.google.protobuf.ByteString data) static HttpRoute.RouteMatchparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.RouteMatchparseFrom(com.google.protobuf.CodedInputStream input) static HttpRoute.RouteMatchparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.RouteMatchparseFrom(InputStream input) static HttpRoute.RouteMatchparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HttpRoute.RouteMatchparseFrom(ByteBuffer data) static HttpRoute.RouteMatchparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<HttpRoute.RouteMatch>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
-
FULL_PATH_MATCH_FIELD_NUMBER
public static final int FULL_PATH_MATCH_FIELD_NUMBER- See Also:
-
PREFIX_MATCH_FIELD_NUMBER
public static final int PREFIX_MATCH_FIELD_NUMBER- See Also:
-
REGEX_MATCH_FIELD_NUMBER
public static final int REGEX_MATCH_FIELD_NUMBER- See Also:
-
IGNORE_CASE_FIELD_NUMBER
public static final int IGNORE_CASE_FIELD_NUMBER- See Also:
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER- See Also:
-
QUERY_PARAMETERS_FIELD_NUMBER
public static final int QUERY_PARAMETERS_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
-
getPathMatchCase
- Specified by:
getPathMatchCasein interfaceHttpRoute.RouteMatchOrBuilder
-
hasFullPathMatch
public boolean hasFullPathMatch()The HTTP request path value should exactly match this value. Only one of full_path_match, prefix_match, or regex_match should be used.
string full_path_match = 1;- Specified by:
hasFullPathMatchin interfaceHttpRoute.RouteMatchOrBuilder- Returns:
- Whether the fullPathMatch field is set.
-
getFullPathMatch
The HTTP request path value should exactly match this value. Only one of full_path_match, prefix_match, or regex_match should be used.
string full_path_match = 1;- Specified by:
getFullPathMatchin interfaceHttpRoute.RouteMatchOrBuilder- Returns:
- The fullPathMatch.
-
getFullPathMatchBytes
public com.google.protobuf.ByteString getFullPathMatchBytes()The HTTP request path value should exactly match this value. Only one of full_path_match, prefix_match, or regex_match should be used.
string full_path_match = 1;- Specified by:
getFullPathMatchBytesin interfaceHttpRoute.RouteMatchOrBuilder- Returns:
- The bytes for fullPathMatch.
-
hasPrefixMatch
public boolean hasPrefixMatch()The HTTP request path value must begin with specified prefix_match. prefix_match must begin with a /. Only one of full_path_match, prefix_match, or regex_match should be used.
string prefix_match = 2;- Specified by:
hasPrefixMatchin interfaceHttpRoute.RouteMatchOrBuilder- Returns:
- Whether the prefixMatch field is set.
-
getPrefixMatch
The HTTP request path value must begin with specified prefix_match. prefix_match must begin with a /. Only one of full_path_match, prefix_match, or regex_match should be used.
string prefix_match = 2;- Specified by:
getPrefixMatchin interfaceHttpRoute.RouteMatchOrBuilder- Returns:
- The prefixMatch.
-
getPrefixMatchBytes
public com.google.protobuf.ByteString getPrefixMatchBytes()The HTTP request path value must begin with specified prefix_match. prefix_match must begin with a /. Only one of full_path_match, prefix_match, or regex_match should be used.
string prefix_match = 2;- Specified by:
getPrefixMatchBytesin interfaceHttpRoute.RouteMatchOrBuilder- Returns:
- The bytes for prefixMatch.
-
hasRegexMatch
public boolean hasRegexMatch()The HTTP request path value must satisfy the regular expression specified by regex_match after removing any query parameters and anchor supplied with the original URL. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax Only one of full_path_match, prefix_match, or regex_match should be used.
string regex_match = 3;- Specified by:
hasRegexMatchin interfaceHttpRoute.RouteMatchOrBuilder- Returns:
- Whether the regexMatch field is set.
-
getRegexMatch
The HTTP request path value must satisfy the regular expression specified by regex_match after removing any query parameters and anchor supplied with the original URL. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax Only one of full_path_match, prefix_match, or regex_match should be used.
string regex_match = 3;- Specified by:
getRegexMatchin interfaceHttpRoute.RouteMatchOrBuilder- Returns:
- The regexMatch.
-
getRegexMatchBytes
public com.google.protobuf.ByteString getRegexMatchBytes()The HTTP request path value must satisfy the regular expression specified by regex_match after removing any query parameters and anchor supplied with the original URL. For regular expression grammar, please see https://github.com/google/re2/wiki/Syntax Only one of full_path_match, prefix_match, or regex_match should be used.
string regex_match = 3;- Specified by:
getRegexMatchBytesin interfaceHttpRoute.RouteMatchOrBuilder- Returns:
- The bytes for regexMatch.
-
getIgnoreCase
public boolean getIgnoreCase()Specifies if prefix_match and full_path_match matches are case sensitive. The default value is false.
bool ignore_case = 4;- Specified by:
getIgnoreCasein interfaceHttpRoute.RouteMatchOrBuilder- Returns:
- The ignoreCase.
-
getHeadersList
Specifies a list of HTTP request headers to match against. ALL of the supplied headers must be matched.
repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;- Specified by:
getHeadersListin interfaceHttpRoute.RouteMatchOrBuilder
-
getHeadersOrBuilderList
Specifies a list of HTTP request headers to match against. ALL of the supplied headers must be matched.
repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;- Specified by:
getHeadersOrBuilderListin interfaceHttpRoute.RouteMatchOrBuilder
-
getHeadersCount
public int getHeadersCount()Specifies a list of HTTP request headers to match against. ALL of the supplied headers must be matched.
repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;- Specified by:
getHeadersCountin interfaceHttpRoute.RouteMatchOrBuilder
-
getHeaders
Specifies a list of HTTP request headers to match against. ALL of the supplied headers must be matched.
repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;- Specified by:
getHeadersin interfaceHttpRoute.RouteMatchOrBuilder
-
getHeadersOrBuilder
Specifies a list of HTTP request headers to match against. ALL of the supplied headers must be matched.
repeated .google.cloud.networkservices.v1.HttpRoute.HeaderMatch headers = 5;- Specified by:
getHeadersOrBuilderin interfaceHttpRoute.RouteMatchOrBuilder
-
getQueryParametersList
Specifies a list of query parameters to match against. ALL of the query parameters must be matched.
repeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;- Specified by:
getQueryParametersListin interfaceHttpRoute.RouteMatchOrBuilder
-
getQueryParametersOrBuilderList
Specifies a list of query parameters to match against. ALL of the query parameters must be matched.
repeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;- Specified by:
getQueryParametersOrBuilderListin interfaceHttpRoute.RouteMatchOrBuilder
-
getQueryParametersCount
public int getQueryParametersCount()Specifies a list of query parameters to match against. ALL of the query parameters must be matched.
repeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;- Specified by:
getQueryParametersCountin interfaceHttpRoute.RouteMatchOrBuilder
-
getQueryParameters
Specifies a list of query parameters to match against. ALL of the query parameters must be matched.
repeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;- Specified by:
getQueryParametersin interfaceHttpRoute.RouteMatchOrBuilder
-
getQueryParametersOrBuilder
Specifies a list of query parameters to match against. ALL of the query parameters must be matched.
repeated .google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch query_parameters = 6;- Specified by:
getQueryParametersOrBuilderin interfaceHttpRoute.RouteMatchOrBuilder
-
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.RouteMatch parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.RouteMatch parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.RouteMatch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.RouteMatch 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.RouteMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRoute.RouteMatch 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.RouteMatch parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static HttpRoute.RouteMatch parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static HttpRoute.RouteMatch parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static HttpRoute.RouteMatch 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.RouteMatch.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
-