- 1.63.0 (latest)
- 1.62.0
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class HttpHeaderMatch.Builder extends GeneratedMessageV3.Builder<HttpHeaderMatch.Builder> implements HttpHeaderMatchOrBuilder
matchRule criteria for request header matches.
Protobuf type google.cloud.compute.v1.HttpHeaderMatch
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > HttpHeaderMatch.BuilderImplements
HttpHeaderMatchOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public HttpHeaderMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
HttpHeaderMatch.Builder |
build()
public HttpHeaderMatch build()
Type | Description |
HttpHeaderMatch |
buildPartial()
public HttpHeaderMatch buildPartial()
Type | Description |
HttpHeaderMatch |
clear()
public HttpHeaderMatch.Builder clear()
Type | Description |
HttpHeaderMatch.Builder |
clearExactMatch()
public HttpHeaderMatch.Builder clearExactMatch()
The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string exact_match = 457641093;
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public HttpHeaderMatch.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
HttpHeaderMatch.Builder |
clearHeaderName()
public HttpHeaderMatch.Builder clearHeaderName()
The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to target gRPC proxy that has validateForProxyless field set to true, only non-binary user-specified custom metadata and the content-type
header are supported. The following transport-level headers cannot be used in header matching rules: :authority
, :method
, :path
, :scheme
, user-agent
, accept-encoding
, content-encoding
, grpc-accept-encoding
, grpc-encoding
, grpc-previous-rpc-attempts
, grpc-tags-bin
, grpc-timeout
and `grpc-trace-bin.
optional string header_name = 110223613;
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
clearInvertMatch()
public HttpHeaderMatch.Builder clearInvertMatch()
If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. The default setting is false.
optional bool invert_match = 501130268;
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public HttpHeaderMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
HttpHeaderMatch.Builder |
clearPrefixMatch()
public HttpHeaderMatch.Builder clearPrefixMatch()
The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
clearPresentMatch()
public HttpHeaderMatch.Builder clearPresentMatch()
A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional bool present_match = 67435841;
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
clearRangeMatch()
public HttpHeaderMatch.Builder clearRangeMatch()
The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that rangeMatch is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
Type | Description |
HttpHeaderMatch.Builder |
clearRegexMatch()
public HttpHeaderMatch.Builder clearRegexMatch()
The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: github.com/google/re2/wiki/Syntax For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that regexMatch only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
clearSuffixMatch()
public HttpHeaderMatch.Builder clearSuffixMatch()
The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
clone()
public HttpHeaderMatch.Builder clone()
Type | Description |
HttpHeaderMatch.Builder |
getDefaultInstanceForType()
public HttpHeaderMatch getDefaultInstanceForType()
Type | Description |
HttpHeaderMatch |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getExactMatch()
public String getExactMatch()
The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string exact_match = 457641093;
Type | Description |
String | The exactMatch. |
getExactMatchBytes()
public ByteString getExactMatchBytes()
The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string exact_match = 457641093;
Type | Description |
ByteString | The bytes for exactMatch. |
getHeaderName()
public String getHeaderName()
The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to target gRPC proxy that has validateForProxyless field set to true, only non-binary user-specified custom metadata and the content-type
header are supported. The following transport-level headers cannot be used in header matching rules: :authority
, :method
, :path
, :scheme
, user-agent
, accept-encoding
, content-encoding
, grpc-accept-encoding
, grpc-encoding
, grpc-previous-rpc-attempts
, grpc-tags-bin
, grpc-timeout
and `grpc-trace-bin.
optional string header_name = 110223613;
Type | Description |
String | The headerName. |
getHeaderNameBytes()
public ByteString getHeaderNameBytes()
The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to target gRPC proxy that has validateForProxyless field set to true, only non-binary user-specified custom metadata and the content-type
header are supported. The following transport-level headers cannot be used in header matching rules: :authority
, :method
, :path
, :scheme
, user-agent
, accept-encoding
, content-encoding
, grpc-accept-encoding
, grpc-encoding
, grpc-previous-rpc-attempts
, grpc-tags-bin
, grpc-timeout
and `grpc-trace-bin.
optional string header_name = 110223613;
Type | Description |
ByteString | The bytes for headerName. |
getInvertMatch()
public boolean getInvertMatch()
If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. The default setting is false.
optional bool invert_match = 501130268;
Type | Description |
boolean | The invertMatch. |
getPrefixMatch()
public String getPrefixMatch()
The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;
Type | Description |
String | The prefixMatch. |
getPrefixMatchBytes()
public ByteString getPrefixMatchBytes()
The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;
Type | Description |
ByteString | The bytes for prefixMatch. |
getPresentMatch()
public boolean getPresentMatch()
A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional bool present_match = 67435841;
Type | Description |
boolean | The presentMatch. |
getRangeMatch()
public Int64RangeMatch getRangeMatch()
The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that rangeMatch is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
Type | Description |
Int64RangeMatch | The rangeMatch. |
getRangeMatchBuilder()
public Int64RangeMatch.Builder getRangeMatchBuilder()
The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that rangeMatch is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
Type | Description |
Int64RangeMatch.Builder |
getRangeMatchOrBuilder()
public Int64RangeMatchOrBuilder getRangeMatchOrBuilder()
The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that rangeMatch is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
Type | Description |
Int64RangeMatchOrBuilder |
getRegexMatch()
public String getRegexMatch()
The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: github.com/google/re2/wiki/Syntax For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that regexMatch only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;
Type | Description |
String | The regexMatch. |
getRegexMatchBytes()
public ByteString getRegexMatchBytes()
The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: github.com/google/re2/wiki/Syntax For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that regexMatch only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;
Type | Description |
ByteString | The bytes for regexMatch. |
getSuffixMatch()
public String getSuffixMatch()
The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;
Type | Description |
String | The suffixMatch. |
getSuffixMatchBytes()
public ByteString getSuffixMatchBytes()
The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;
Type | Description |
ByteString | The bytes for suffixMatch. |
hasExactMatch()
public boolean hasExactMatch()
The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string exact_match = 457641093;
Type | Description |
boolean | Whether the exactMatch field is set. |
hasHeaderName()
public boolean hasHeaderName()
The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to target gRPC proxy that has validateForProxyless field set to true, only non-binary user-specified custom metadata and the content-type
header are supported. The following transport-level headers cannot be used in header matching rules: :authority
, :method
, :path
, :scheme
, user-agent
, accept-encoding
, content-encoding
, grpc-accept-encoding
, grpc-encoding
, grpc-previous-rpc-attempts
, grpc-tags-bin
, grpc-timeout
and `grpc-trace-bin.
optional string header_name = 110223613;
Type | Description |
boolean | Whether the headerName field is set. |
hasInvertMatch()
public boolean hasInvertMatch()
If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. The default setting is false.
optional bool invert_match = 501130268;
Type | Description |
boolean | Whether the invertMatch field is set. |
hasPrefixMatch()
public boolean hasPrefixMatch()
The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;
Type | Description |
boolean | Whether the prefixMatch field is set. |
hasPresentMatch()
public boolean hasPresentMatch()
A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional bool present_match = 67435841;
Type | Description |
boolean | Whether the presentMatch field is set. |
hasRangeMatch()
public boolean hasRangeMatch()
The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that rangeMatch is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
Type | Description |
boolean | Whether the rangeMatch field is set. |
hasRegexMatch()
public boolean hasRegexMatch()
The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: github.com/google/re2/wiki/Syntax For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that regexMatch only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;
Type | Description |
boolean | Whether the regexMatch field is set. |
hasSuffixMatch()
public boolean hasSuffixMatch()
The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;
Type | Description |
boolean | Whether the suffixMatch field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(HttpHeaderMatch other)
public HttpHeaderMatch.Builder mergeFrom(HttpHeaderMatch other)
Name | Description |
other | HttpHeaderMatch |
Type | Description |
HttpHeaderMatch.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HttpHeaderMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
HttpHeaderMatch.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public HttpHeaderMatch.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
HttpHeaderMatch.Builder |
mergeRangeMatch(Int64RangeMatch value)
public HttpHeaderMatch.Builder mergeRangeMatch(Int64RangeMatch value)
The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that rangeMatch is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
Name | Description |
value | Int64RangeMatch |
Type | Description |
HttpHeaderMatch.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final HttpHeaderMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
HttpHeaderMatch.Builder |
setExactMatch(String value)
public HttpHeaderMatch.Builder setExactMatch(String value)
The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string exact_match = 457641093;
Name | Description |
value | String The exactMatch to set. |
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
setExactMatchBytes(ByteString value)
public HttpHeaderMatch.Builder setExactMatchBytes(ByteString value)
The value should exactly match contents of exactMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string exact_match = 457641093;
Name | Description |
value | ByteString The bytes for exactMatch to set. |
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public HttpHeaderMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
HttpHeaderMatch.Builder |
setHeaderName(String value)
public HttpHeaderMatch.Builder setHeaderName(String value)
The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to target gRPC proxy that has validateForProxyless field set to true, only non-binary user-specified custom metadata and the content-type
header are supported. The following transport-level headers cannot be used in header matching rules: :authority
, :method
, :path
, :scheme
, user-agent
, accept-encoding
, content-encoding
, grpc-accept-encoding
, grpc-encoding
, grpc-previous-rpc-attempts
, grpc-tags-bin
, grpc-timeout
and `grpc-trace-bin.
optional string header_name = 110223613;
Name | Description |
value | String The headerName to set. |
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
setHeaderNameBytes(ByteString value)
public HttpHeaderMatch.Builder setHeaderNameBytes(ByteString value)
The name of the HTTP header to match. For matching against the HTTP request's authority, use a headerMatch with the header name ":authority". For matching a request's method, use the headerName ":method". When the URL map is bound to target gRPC proxy that has validateForProxyless field set to true, only non-binary user-specified custom metadata and the content-type
header are supported. The following transport-level headers cannot be used in header matching rules: :authority
, :method
, :path
, :scheme
, user-agent
, accept-encoding
, content-encoding
, grpc-accept-encoding
, grpc-encoding
, grpc-previous-rpc-attempts
, grpc-tags-bin
, grpc-timeout
and `grpc-trace-bin.
optional string header_name = 110223613;
Name | Description |
value | ByteString The bytes for headerName to set. |
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
setInvertMatch(boolean value)
public HttpHeaderMatch.Builder setInvertMatch(boolean value)
If set to false, the headerMatch is considered a match if the match criteria above are met. If set to true, the headerMatch is considered a match if the match criteria above are NOT met. The default setting is false.
optional bool invert_match = 501130268;
Name | Description |
value | boolean The invertMatch to set. |
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
setPrefixMatch(String value)
public HttpHeaderMatch.Builder setPrefixMatch(String value)
The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;
Name | Description |
value | String The prefixMatch to set. |
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
setPrefixMatchBytes(ByteString value)
public HttpHeaderMatch.Builder setPrefixMatchBytes(ByteString value)
The value of the header must start with the contents of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;
Name | Description |
value | ByteString The bytes for prefixMatch to set. |
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
setPresentMatch(boolean value)
public HttpHeaderMatch.Builder setPresentMatch(boolean value)
A header with the contents of headerName must exist. The match takes place whether or not the request's header has a value. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional bool present_match = 67435841;
Name | Description |
value | boolean The presentMatch to set. |
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
setRangeMatch(Int64RangeMatch value)
public HttpHeaderMatch.Builder setRangeMatch(Int64RangeMatch value)
The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that rangeMatch is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
Name | Description |
value | Int64RangeMatch |
Type | Description |
HttpHeaderMatch.Builder |
setRangeMatch(Int64RangeMatch.Builder builderForValue)
public HttpHeaderMatch.Builder setRangeMatch(Int64RangeMatch.Builder builderForValue)
The header value must be an integer and its value must be in the range specified in rangeMatch. If the header does not contain an integer, number or is empty, the match fails. For example for a range [-5, 0] - -3 will match. - 0 will not match. - 0.25 will not match. - -3someString will not match. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that rangeMatch is not supported for Loadbalancers that have their loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
Name | Description |
builderForValue | Int64RangeMatch.Builder |
Type | Description |
HttpHeaderMatch.Builder |
setRegexMatch(String value)
public HttpHeaderMatch.Builder setRegexMatch(String value)
The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: github.com/google/re2/wiki/Syntax For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that regexMatch only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;
Name | Description |
value | String The regexMatch to set. |
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
setRegexMatchBytes(ByteString value)
public HttpHeaderMatch.Builder setRegexMatchBytes(ByteString value)
The value of the header must match the regular expression specified in regexMatch. For regular expression grammar, please see: github.com/google/re2/wiki/Syntax For matching against a port specified in the HTTP request, use a headerMatch with headerName set to PORT and a regular expression that satisfies the RFC2616 Host header's port specifier. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set. Note that regexMatch only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;
Name | Description |
value | ByteString The bytes for regexMatch to set. |
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public HttpHeaderMatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
HttpHeaderMatch.Builder |
setSuffixMatch(String value)
public HttpHeaderMatch.Builder setSuffixMatch(String value)
The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;
Name | Description |
value | String The suffixMatch to set. |
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
setSuffixMatchBytes(ByteString value)
public HttpHeaderMatch.Builder setSuffixMatchBytes(ByteString value)
The value of the header must end with the contents of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;
Name | Description |
value | ByteString The bytes for suffixMatch to set. |
Type | Description |
HttpHeaderMatch.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final HttpHeaderMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
HttpHeaderMatch.Builder |