Package com.google.cloud.compute.v1
Class HttpRouteRuleMatch
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.compute.v1.HttpRouteRuleMatch
-
- All Implemented Interfaces:
HttpRouteRuleMatchOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class HttpRouteRuleMatch extends com.google.protobuf.GeneratedMessageV3 implements HttpRouteRuleMatchOrBuilder
HttpRouteRuleMatch specifies a set of criteria for matching requests to an HttpRouteRule. All specified criteria must be satisfied for a match to occur.
Protobuf typegoogle.cloud.compute.v1.HttpRouteRuleMatch
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HttpRouteRuleMatch.Builder
HttpRouteRuleMatch specifies a set of criteria for matching requests to an HttpRouteRule.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
FULL_PATH_MATCH_FIELD_NUMBER
static int
HEADER_MATCHES_FIELD_NUMBER
static int
IGNORE_CASE_FIELD_NUMBER
static int
METADATA_FILTERS_FIELD_NUMBER
static int
PATH_TEMPLATE_MATCH_FIELD_NUMBER
static int
PREFIX_MATCH_FIELD_NUMBER
static int
QUERY_PARAMETER_MATCHES_FIELD_NUMBER
static int
REGEX_MATCH_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static HttpRouteRuleMatch
getDefaultInstance()
HttpRouteRuleMatch
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getFullPathMatch()
For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL.com.google.protobuf.ByteString
getFullPathMatchBytes()
For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL.HttpHeaderMatch
getHeaderMatches(int index)
Specifies a list of header match criteria, all of which must match corresponding headers in the request.int
getHeaderMatchesCount()
Specifies a list of header match criteria, all of which must match corresponding headers in the request.List<HttpHeaderMatch>
getHeaderMatchesList()
Specifies a list of header match criteria, all of which must match corresponding headers in the request.HttpHeaderMatchOrBuilder
getHeaderMatchesOrBuilder(int index)
Specifies a list of header match criteria, all of which must match corresponding headers in the request.List<? extends HttpHeaderMatchOrBuilder>
getHeaderMatchesOrBuilderList()
Specifies a list of header match criteria, all of which must match corresponding headers in the request.boolean
getIgnoreCase()
Specifies that prefixMatch and fullPathMatch matches are case sensitive.MetadataFilter
getMetadataFilters(int index)
Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients.int
getMetadataFiltersCount()
Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients.List<MetadataFilter>
getMetadataFiltersList()
Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients.MetadataFilterOrBuilder
getMetadataFiltersOrBuilder(int index)
Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients.List<? extends MetadataFilterOrBuilder>
getMetadataFiltersOrBuilderList()
Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients.com.google.protobuf.Parser<HttpRouteRuleMatch>
getParserForType()
String
getPathTemplateMatch()
If specified, the route is a pattern match expression that must match the :path header once the query string is removed.com.google.protobuf.ByteString
getPathTemplateMatchBytes()
If specified, the route is a pattern match expression that must match the :path header once the query string is removed.String
getPrefixMatch()
For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch.com.google.protobuf.ByteString
getPrefixMatchBytes()
For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch.HttpQueryParameterMatch
getQueryParameterMatches(int index)
Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request.int
getQueryParameterMatchesCount()
Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request.List<HttpQueryParameterMatch>
getQueryParameterMatchesList()
Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request.HttpQueryParameterMatchOrBuilder
getQueryParameterMatchesOrBuilder(int index)
Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request.List<? extends HttpQueryParameterMatchOrBuilder>
getQueryParameterMatchesOrBuilderList()
Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request.String
getRegexMatch()
For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL.com.google.protobuf.ByteString
getRegexMatchBytes()
For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL.int
getSerializedSize()
boolean
hasFullPathMatch()
For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL.int
hashCode()
boolean
hasIgnoreCase()
Specifies that prefixMatch and fullPathMatch matches are case sensitive.boolean
hasPathTemplateMatch()
If specified, the route is a pattern match expression that must match the :path header once the query string is removed.boolean
hasPrefixMatch()
For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch.boolean
hasRegexMatch()
For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static HttpRouteRuleMatch.Builder
newBuilder()
static HttpRouteRuleMatch.Builder
newBuilder(HttpRouteRuleMatch prototype)
HttpRouteRuleMatch.Builder
newBuilderForType()
protected HttpRouteRuleMatch.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static HttpRouteRuleMatch
parseDelimitedFrom(InputStream input)
static HttpRouteRuleMatch
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRouteRuleMatch
parseFrom(byte[] data)
static HttpRouteRuleMatch
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRouteRuleMatch
parseFrom(com.google.protobuf.ByteString data)
static HttpRouteRuleMatch
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRouteRuleMatch
parseFrom(com.google.protobuf.CodedInputStream input)
static HttpRouteRuleMatch
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRouteRuleMatch
parseFrom(InputStream input)
static HttpRouteRuleMatch
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HttpRouteRuleMatch
parseFrom(ByteBuffer data)
static HttpRouteRuleMatch
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<HttpRouteRuleMatch>
parser()
HttpRouteRuleMatch.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
FULL_PATH_MATCH_FIELD_NUMBER
public static final int FULL_PATH_MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEADER_MATCHES_FIELD_NUMBER
public static final int HEADER_MATCHES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
IGNORE_CASE_FIELD_NUMBER
public static final int IGNORE_CASE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
METADATA_FILTERS_FIELD_NUMBER
public static final int METADATA_FILTERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PATH_TEMPLATE_MATCH_FIELD_NUMBER
public static final int PATH_TEMPLATE_MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PREFIX_MATCH_FIELD_NUMBER
public static final int PREFIX_MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
QUERY_PARAMETER_MATCHES_FIELD_NUMBER
public static final int QUERY_PARAMETER_MATCHES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REGEX_MATCH_FIELD_NUMBER
public static final int REGEX_MATCH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
hasFullPathMatch
public boolean hasFullPathMatch()
For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. fullPathMatch must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
optional string full_path_match = 214598875;
- Specified by:
hasFullPathMatch
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- Whether the fullPathMatch field is set.
-
getFullPathMatch
public String getFullPathMatch()
For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. fullPathMatch must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
optional string full_path_match = 214598875;
- Specified by:
getFullPathMatch
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- The fullPathMatch.
-
getFullPathMatchBytes
public com.google.protobuf.ByteString getFullPathMatchBytes()
For satisfying the matchRule condition, the path of the request must exactly match the value specified in fullPathMatch after removing any query parameters and anchor that may be part of the original URL. fullPathMatch must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
optional string full_path_match = 214598875;
- Specified by:
getFullPathMatchBytes
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- The bytes for fullPathMatch.
-
getHeaderMatchesList
public List<HttpHeaderMatch> getHeaderMatchesList()
Specifies a list of header match criteria, all of which must match corresponding headers in the request.
repeated .google.cloud.compute.v1.HttpHeaderMatch header_matches = 361903489;
- Specified by:
getHeaderMatchesList
in interfaceHttpRouteRuleMatchOrBuilder
-
getHeaderMatchesOrBuilderList
public List<? extends HttpHeaderMatchOrBuilder> getHeaderMatchesOrBuilderList()
Specifies a list of header match criteria, all of which must match corresponding headers in the request.
repeated .google.cloud.compute.v1.HttpHeaderMatch header_matches = 361903489;
- Specified by:
getHeaderMatchesOrBuilderList
in interfaceHttpRouteRuleMatchOrBuilder
-
getHeaderMatchesCount
public int getHeaderMatchesCount()
Specifies a list of header match criteria, all of which must match corresponding headers in the request.
repeated .google.cloud.compute.v1.HttpHeaderMatch header_matches = 361903489;
- Specified by:
getHeaderMatchesCount
in interfaceHttpRouteRuleMatchOrBuilder
-
getHeaderMatches
public HttpHeaderMatch getHeaderMatches(int index)
Specifies a list of header match criteria, all of which must match corresponding headers in the request.
repeated .google.cloud.compute.v1.HttpHeaderMatch header_matches = 361903489;
- Specified by:
getHeaderMatches
in interfaceHttpRouteRuleMatchOrBuilder
-
getHeaderMatchesOrBuilder
public HttpHeaderMatchOrBuilder getHeaderMatchesOrBuilder(int index)
Specifies a list of header match criteria, all of which must match corresponding headers in the request.
repeated .google.cloud.compute.v1.HttpHeaderMatch header_matches = 361903489;
- Specified by:
getHeaderMatchesOrBuilder
in interfaceHttpRouteRuleMatchOrBuilder
-
hasIgnoreCase
public boolean hasIgnoreCase()
Specifies that prefixMatch and fullPathMatch matches are case sensitive. The default value is false. ignoreCase must not be used with regexMatch. Not supported when the URL map is bound to a target gRPC proxy.
optional bool ignore_case = 464324989;
- Specified by:
hasIgnoreCase
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- Whether the ignoreCase field is set.
-
getIgnoreCase
public boolean getIgnoreCase()
Specifies that prefixMatch and fullPathMatch matches are case sensitive. The default value is false. ignoreCase must not be used with regexMatch. Not supported when the URL map is bound to a target gRPC proxy.
optional bool ignore_case = 464324989;
- Specified by:
getIgnoreCase
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- The ignoreCase.
-
getMetadataFiltersList
public List<MetadataFilter> getMetadataFiltersList()
Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present node metadata. When there is a match, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadata filters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here is applied after those specified in ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to. metadataFilters only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
repeated .google.cloud.compute.v1.MetadataFilter metadata_filters = 464725739;
- Specified by:
getMetadataFiltersList
in interfaceHttpRouteRuleMatchOrBuilder
-
getMetadataFiltersOrBuilderList
public List<? extends MetadataFilterOrBuilder> getMetadataFiltersOrBuilderList()
Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present node metadata. When there is a match, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadata filters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here is applied after those specified in ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to. metadataFilters only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
repeated .google.cloud.compute.v1.MetadataFilter metadata_filters = 464725739;
- Specified by:
getMetadataFiltersOrBuilderList
in interfaceHttpRouteRuleMatchOrBuilder
-
getMetadataFiltersCount
public int getMetadataFiltersCount()
Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present node metadata. When there is a match, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadata filters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here is applied after those specified in ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to. metadataFilters only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
repeated .google.cloud.compute.v1.MetadataFilter metadata_filters = 464725739;
- Specified by:
getMetadataFiltersCount
in interfaceHttpRouteRuleMatchOrBuilder
-
getMetadataFilters
public MetadataFilter getMetadataFilters(int index)
Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present node metadata. When there is a match, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadata filters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here is applied after those specified in ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to. metadataFilters only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
repeated .google.cloud.compute.v1.MetadataFilter metadata_filters = 464725739;
- Specified by:
getMetadataFilters
in interfaceHttpRouteRuleMatchOrBuilder
-
getMetadataFiltersOrBuilder
public MetadataFilterOrBuilder getMetadataFiltersOrBuilder(int index)
Opaque filter criteria used by the load balancer to restrict routing configuration to a limited set of xDS compliant clients. In their xDS requests to the load balancer, xDS clients present node metadata. When there is a match, the relevant routing configuration is made available to those proxies. For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels provided in the metadata. If multiple metadata filters are specified, all of them need to be satisfied in order to be considered a match. metadataFilters specified here is applied after those specified in ForwardingRule that refers to the UrlMap this HttpRouteRuleMatch belongs to. metadataFilters only applies to load balancers that have loadBalancingScheme set to INTERNAL_SELF_MANAGED. Not supported when the URL map is bound to a target gRPC proxy that has validateForProxyless field set to true.
repeated .google.cloud.compute.v1.MetadataFilter metadata_filters = 464725739;
- Specified by:
getMetadataFiltersOrBuilder
in interfaceHttpRouteRuleMatchOrBuilder
-
hasPathTemplateMatch
public boolean hasPathTemplateMatch()
If specified, the route is a pattern match expression that must match the :path header once the query string is removed. A pattern match allows you to match - The value must be between 1 and 1024 characters - The pattern must start with a leading slash ("/") - There may be no more than 5 operators in pattern Precisely one of prefix_match, full_path_match, regex_match or path_template_match must be set.
optional string path_template_match = 292348186;
- Specified by:
hasPathTemplateMatch
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- Whether the pathTemplateMatch field is set.
-
getPathTemplateMatch
public String getPathTemplateMatch()
If specified, the route is a pattern match expression that must match the :path header once the query string is removed. A pattern match allows you to match - The value must be between 1 and 1024 characters - The pattern must start with a leading slash ("/") - There may be no more than 5 operators in pattern Precisely one of prefix_match, full_path_match, regex_match or path_template_match must be set.
optional string path_template_match = 292348186;
- Specified by:
getPathTemplateMatch
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- The pathTemplateMatch.
-
getPathTemplateMatchBytes
public com.google.protobuf.ByteString getPathTemplateMatchBytes()
If specified, the route is a pattern match expression that must match the :path header once the query string is removed. A pattern match allows you to match - The value must be between 1 and 1024 characters - The pattern must start with a leading slash ("/") - There may be no more than 5 operators in pattern Precisely one of prefix_match, full_path_match, regex_match or path_template_match must be set.
optional string path_template_match = 292348186;
- Specified by:
getPathTemplateMatchBytes
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- The bytes for pathTemplateMatch.
-
hasPrefixMatch
public boolean hasPrefixMatch()
For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
optional string prefix_match = 257898968;
- Specified by:
hasPrefixMatch
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- Whether the prefixMatch field is set.
-
getPrefixMatch
public String getPrefixMatch()
For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
optional string prefix_match = 257898968;
- Specified by:
getPrefixMatch
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- The prefixMatch.
-
getPrefixMatchBytes
public com.google.protobuf.ByteString getPrefixMatchBytes()
For satisfying the matchRule condition, the request's path must begin with the specified prefixMatch. prefixMatch must begin with a /. The value must be from 1 to 1024 characters. Only one of prefixMatch, fullPathMatch or regexMatch must be specified.
optional string prefix_match = 257898968;
- Specified by:
getPrefixMatchBytes
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- The bytes for prefixMatch.
-
getQueryParameterMatchesList
public List<HttpQueryParameterMatch> getQueryParameterMatchesList()
Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Not supported when the URL map is bound to a target gRPC proxy.
repeated .google.cloud.compute.v1.HttpQueryParameterMatch query_parameter_matches = 286231270;
- Specified by:
getQueryParameterMatchesList
in interfaceHttpRouteRuleMatchOrBuilder
-
getQueryParameterMatchesOrBuilderList
public List<? extends HttpQueryParameterMatchOrBuilder> getQueryParameterMatchesOrBuilderList()
Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Not supported when the URL map is bound to a target gRPC proxy.
repeated .google.cloud.compute.v1.HttpQueryParameterMatch query_parameter_matches = 286231270;
- Specified by:
getQueryParameterMatchesOrBuilderList
in interfaceHttpRouteRuleMatchOrBuilder
-
getQueryParameterMatchesCount
public int getQueryParameterMatchesCount()
Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Not supported when the URL map is bound to a target gRPC proxy.
repeated .google.cloud.compute.v1.HttpQueryParameterMatch query_parameter_matches = 286231270;
- Specified by:
getQueryParameterMatchesCount
in interfaceHttpRouteRuleMatchOrBuilder
-
getQueryParameterMatches
public HttpQueryParameterMatch getQueryParameterMatches(int index)
Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Not supported when the URL map is bound to a target gRPC proxy.
repeated .google.cloud.compute.v1.HttpQueryParameterMatch query_parameter_matches = 286231270;
- Specified by:
getQueryParameterMatches
in interfaceHttpRouteRuleMatchOrBuilder
-
getQueryParameterMatchesOrBuilder
public HttpQueryParameterMatchOrBuilder getQueryParameterMatchesOrBuilder(int index)
Specifies a list of query parameter match criteria, all of which must match corresponding query parameters in the request. Not supported when the URL map is bound to a target gRPC proxy.
repeated .google.cloud.compute.v1.HttpQueryParameterMatch query_parameter_matches = 286231270;
- Specified by:
getQueryParameterMatchesOrBuilder
in interfaceHttpRouteRuleMatchOrBuilder
-
hasRegexMatch
public boolean hasRegexMatch()
For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For more information about regular expression syntax, see Syntax. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;
- Specified by:
hasRegexMatch
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- Whether the regexMatch field is set.
-
getRegexMatch
public String getRegexMatch()
For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For more information about regular expression syntax, see Syntax. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;
- Specified by:
getRegexMatch
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- The regexMatch.
-
getRegexMatchBytes
public com.google.protobuf.ByteString getRegexMatchBytes()
For satisfying the matchRule condition, the path of the request must satisfy the regular expression specified in regexMatch after removing any query parameters and anchor supplied with the original URL. For more information about regular expression syntax, see Syntax. Only one of prefixMatch, fullPathMatch or regexMatch must be specified. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;
- Specified by:
getRegexMatchBytes
in interfaceHttpRouteRuleMatchOrBuilder
- Returns:
- The bytes for regexMatch.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HttpRouteRuleMatch parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRouteRuleMatch parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRouteRuleMatch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRouteRuleMatch parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRouteRuleMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRouteRuleMatch parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HttpRouteRuleMatch parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpRouteRuleMatch parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HttpRouteRuleMatch parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HttpRouteRuleMatch parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpRouteRuleMatch parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HttpRouteRuleMatch parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public HttpRouteRuleMatch.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HttpRouteRuleMatch.Builder newBuilder()
-
newBuilder
public static HttpRouteRuleMatch.Builder newBuilder(HttpRouteRuleMatch prototype)
-
toBuilder
public HttpRouteRuleMatch.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HttpRouteRuleMatch.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static HttpRouteRuleMatch getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HttpRouteRuleMatch> parser()
-
getParserForType
public com.google.protobuf.Parser<HttpRouteRuleMatch> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HttpRouteRuleMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-