Class HttpRouteRuleMatch.Builder (1.88.0)

public static final class HttpRouteRuleMatch.Builder extends GeneratedMessageV3.Builder<HttpRouteRuleMatch.Builder> 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 type google.cloud.compute.v1.HttpRouteRuleMatch

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllHeaderMatches(Iterable<? extends HttpHeaderMatch> values)

public HttpRouteRuleMatch.Builder addAllHeaderMatches(Iterable<? extends HttpHeaderMatch> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.HttpHeaderMatch>
Returns
Type Description
HttpRouteRuleMatch.Builder

addAllMetadataFilters(Iterable<? extends MetadataFilter> values)

public HttpRouteRuleMatch.Builder addAllMetadataFilters(Iterable<? extends MetadataFilter> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.MetadataFilter>
Returns
Type Description
HttpRouteRuleMatch.Builder

addAllQueryParameterMatches(Iterable<? extends HttpQueryParameterMatch> values)

public HttpRouteRuleMatch.Builder addAllQueryParameterMatches(Iterable<? extends HttpQueryParameterMatch> values)

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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.HttpQueryParameterMatch>
Returns
Type Description
HttpRouteRuleMatch.Builder

addHeaderMatches(HttpHeaderMatch value)

public HttpRouteRuleMatch.Builder addHeaderMatches(HttpHeaderMatch value)

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;

Parameter
Name Description
value HttpHeaderMatch
Returns
Type Description
HttpRouteRuleMatch.Builder

addHeaderMatches(HttpHeaderMatch.Builder builderForValue)

public HttpRouteRuleMatch.Builder addHeaderMatches(HttpHeaderMatch.Builder builderForValue)

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;

Parameter
Name Description
builderForValue HttpHeaderMatch.Builder
Returns
Type Description
HttpRouteRuleMatch.Builder

addHeaderMatches(int index, HttpHeaderMatch value)

public HttpRouteRuleMatch.Builder addHeaderMatches(int index, HttpHeaderMatch value)

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;

Parameters
Name Description
index int
value HttpHeaderMatch
Returns
Type Description
HttpRouteRuleMatch.Builder

addHeaderMatches(int index, HttpHeaderMatch.Builder builderForValue)

public HttpRouteRuleMatch.Builder addHeaderMatches(int index, HttpHeaderMatch.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue HttpHeaderMatch.Builder
Returns
Type Description
HttpRouteRuleMatch.Builder

addHeaderMatchesBuilder()

public HttpHeaderMatch.Builder addHeaderMatchesBuilder()

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;

Returns
Type Description
HttpHeaderMatch.Builder

addHeaderMatchesBuilder(int index)

public HttpHeaderMatch.Builder addHeaderMatchesBuilder(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;

Parameter
Name Description
index int
Returns
Type Description
HttpHeaderMatch.Builder

addMetadataFilters(MetadataFilter value)

public HttpRouteRuleMatch.Builder addMetadataFilters(MetadataFilter value)

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;

Parameter
Name Description
value MetadataFilter
Returns
Type Description
HttpRouteRuleMatch.Builder

addMetadataFilters(MetadataFilter.Builder builderForValue)

public HttpRouteRuleMatch.Builder addMetadataFilters(MetadataFilter.Builder builderForValue)

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;

Parameter
Name Description
builderForValue MetadataFilter.Builder
Returns
Type Description
HttpRouteRuleMatch.Builder

addMetadataFilters(int index, MetadataFilter value)

public HttpRouteRuleMatch.Builder addMetadataFilters(int index, MetadataFilter value)

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;

Parameters
Name Description
index int
value MetadataFilter
Returns
Type Description
HttpRouteRuleMatch.Builder

addMetadataFilters(int index, MetadataFilter.Builder builderForValue)

public HttpRouteRuleMatch.Builder addMetadataFilters(int index, MetadataFilter.Builder builderForValue)

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;

Parameters
Name Description
index int
builderForValue MetadataFilter.Builder
Returns
Type Description
HttpRouteRuleMatch.Builder

addMetadataFiltersBuilder()

public MetadataFilter.Builder addMetadataFiltersBuilder()

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;

Returns
Type Description
MetadataFilter.Builder

addMetadataFiltersBuilder(int index)

public MetadataFilter.Builder addMetadataFiltersBuilder(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;

Parameter
Name Description
index int
Returns
Type Description
MetadataFilter.Builder

addQueryParameterMatches(HttpQueryParameterMatch value)

public HttpRouteRuleMatch.Builder addQueryParameterMatches(HttpQueryParameterMatch value)

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;

Parameter
Name Description
value HttpQueryParameterMatch
Returns
Type Description
HttpRouteRuleMatch.Builder

addQueryParameterMatches(HttpQueryParameterMatch.Builder builderForValue)

public HttpRouteRuleMatch.Builder addQueryParameterMatches(HttpQueryParameterMatch.Builder builderForValue)

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;

Parameter
Name Description
builderForValue HttpQueryParameterMatch.Builder
Returns
Type Description
HttpRouteRuleMatch.Builder

addQueryParameterMatches(int index, HttpQueryParameterMatch value)

public HttpRouteRuleMatch.Builder addQueryParameterMatches(int index, HttpQueryParameterMatch value)

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;

Parameters
Name Description
index int
value HttpQueryParameterMatch
Returns
Type Description
HttpRouteRuleMatch.Builder

addQueryParameterMatches(int index, HttpQueryParameterMatch.Builder builderForValue)

public HttpRouteRuleMatch.Builder addQueryParameterMatches(int index, HttpQueryParameterMatch.Builder builderForValue)

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 b