Package com.google.cloud.compute.v1
Class HttpHeaderMatch.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HttpHeaderMatch.Builder>
com.google.cloud.compute.v1.HttpHeaderMatch.Builder
- All Implemented Interfaces:
HttpHeaderMatchOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HttpHeaderMatch
public static final class HttpHeaderMatch.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HttpHeaderMatch.Builder>
implements HttpHeaderMatchOrBuilder
matchRule criteria for request header matches.Protobuf type
google.cloud.compute.v1.HttpHeaderMatch-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The value should exactly match contents of exactMatch.The name of the HTTP header to match.If set to false, the headerMatch is considered a match if the preceding match criteria are met.The value of the header must start with the contents ofprefixMatch.A header with the contents of headerName must exist.The header value must be an integer and its value must be in the range specified in rangeMatch.The value of the header must match the regular expression specified inregexMatch.The value of the header must end with the contents ofsuffixMatch.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe value should exactly match contents of exactMatch.com.google.protobuf.ByteStringThe value should exactly match contents of exactMatch.The name of the HTTP header to match.com.google.protobuf.ByteStringThe name of the HTTP header to match.booleanIf set to false, the headerMatch is considered a match if the preceding match criteria are met.The value of the header must start with the contents ofprefixMatch.com.google.protobuf.ByteStringThe value of the header must start with the contents ofprefixMatch.booleanA header with the contents of headerName must exist.The header value must be an integer and its value must be in the range specified in rangeMatch.The header value must be an integer and its value must be in the range specified in rangeMatch.The header value must be an integer and its value must be in the range specified in rangeMatch.The value of the header must match the regular expression specified inregexMatch.com.google.protobuf.ByteStringThe value of the header must match the regular expression specified inregexMatch.The value of the header must end with the contents ofsuffixMatch.com.google.protobuf.ByteStringThe value of the header must end with the contents ofsuffixMatch.booleanThe value should exactly match contents of exactMatch.booleanThe name of the HTTP header to match.booleanIf set to false, the headerMatch is considered a match if the preceding match criteria are met.booleanThe value of the header must start with the contents ofprefixMatch.booleanA header with the contents of headerName must exist.booleanThe header value must be an integer and its value must be in the range specified in rangeMatch.booleanThe value of the header must match the regular expression specified inregexMatch.booleanThe value of the header must end with the contents ofsuffixMatch.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(HttpHeaderMatch other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRangeMatch(Int64RangeMatch value) The header value must be an integer and its value must be in the range specified in rangeMatch.setExactMatch(String value) The value should exactly match contents of exactMatch.setExactMatchBytes(com.google.protobuf.ByteString value) The value should exactly match contents of exactMatch.setHeaderName(String value) The name of the HTTP header to match.setHeaderNameBytes(com.google.protobuf.ByteString value) The name of the HTTP header to match.setInvertMatch(boolean value) If set to false, the headerMatch is considered a match if the preceding match criteria are met.setPrefixMatch(String value) The value of the header must start with the contents ofprefixMatch.setPrefixMatchBytes(com.google.protobuf.ByteString value) The value of the header must start with the contents ofprefixMatch.setPresentMatch(boolean value) A header with the contents of headerName must exist.setRangeMatch(Int64RangeMatch value) The header value must be an integer and its value must be in the range specified in rangeMatch.setRangeMatch(Int64RangeMatch.Builder builderForValue) The header value must be an integer and its value must be in the range specified in rangeMatch.setRegexMatch(String value) The value of the header must match the regular expression specified inregexMatch.setRegexMatchBytes(com.google.protobuf.ByteString value) The value of the header must match the regular expression specified inregexMatch.setSuffixMatch(String value) The value of the header must end with the contents ofsuffixMatch.setSuffixMatchBytes(com.google.protobuf.ByteString value) The value of the header must end with the contents ofsuffixMatch.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<HttpHeaderMatch.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HttpHeaderMatch.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HttpHeaderMatch.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpHeaderMatch.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HttpHeaderMatch.Builder>
-
mergeFrom
public HttpHeaderMatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HttpHeaderMatch.Builder>- Throws:
IOException
-
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;- Specified by:
hasExactMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- Whether the exactMatch field is set.
-
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;- Specified by:
getExactMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- The exactMatch.
-
getExactMatchBytes
public com.google.protobuf.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;- Specified by:
getExactMatchBytesin interfaceHttpHeaderMatchOrBuilder- Returns:
- The bytes for exactMatch.
-
setExactMatch
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;- Parameters:
value- The exactMatch to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setExactMatchBytes
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;- Parameters:
value- The bytes for exactMatch to set.- Returns:
- This builder for chaining.
-
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 a target gRPC proxy that has the 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;- Specified by:
hasHeaderNamein interfaceHttpHeaderMatchOrBuilder- Returns:
- Whether the headerName field is set.
-
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 a target gRPC proxy that has the 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;- Specified by:
getHeaderNamein interfaceHttpHeaderMatchOrBuilder- Returns:
- The headerName.
-
getHeaderNameBytes
public com.google.protobuf.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 a target gRPC proxy that has the 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;- Specified by:
getHeaderNameBytesin interfaceHttpHeaderMatchOrBuilder- Returns:
- The bytes for headerName.
-
setHeaderName
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 a target gRPC proxy that has the 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;- Parameters:
value- The headerName to set.- Returns:
- This builder for chaining.
-
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 a target gRPC proxy that has the 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;- Returns:
- This builder for chaining.
-
setHeaderNameBytes
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 a target gRPC proxy that has the 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;- Parameters:
value- The bytes for headerName to set.- Returns:
- This builder for chaining.
-
hasInvertMatch
public boolean hasInvertMatch()If set to false, the headerMatch is considered a match if the preceding match criteria are met. If set to true, the headerMatch is considered a match if the preceding match criteria are NOT met. The default setting is false.
optional bool invert_match = 501130268;- Specified by:
hasInvertMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- Whether the invertMatch field is set.
-
getInvertMatch
public boolean getInvertMatch()If set to false, the headerMatch is considered a match if the preceding match criteria are met. If set to true, the headerMatch is considered a match if the preceding match criteria are NOT met. The default setting is false.
optional bool invert_match = 501130268;- Specified by:
getInvertMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- The invertMatch.
-
setInvertMatch
If set to false, the headerMatch is considered a match if the preceding match criteria are met. If set to true, the headerMatch is considered a match if the preceding match criteria are NOT met. The default setting is false.
optional bool invert_match = 501130268;- Parameters:
value- The invertMatch to set.- Returns:
- This builder for chaining.
-
clearInvertMatch
If set to false, the headerMatch is considered a match if the preceding match criteria are met. If set to true, the headerMatch is considered a match if the preceding match criteria are NOT met. The default setting is false.
optional bool invert_match = 501130268;- Returns:
- This builder for chaining.
-
hasPrefixMatch
public boolean hasPrefixMatch()The value of the header must start with the contents ofprefixMatch. Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;- Specified by:
hasPrefixMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- Whether the prefixMatch field is set.
-
getPrefixMatch
The value of the header must start with the contents ofprefixMatch. Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;- Specified by:
getPrefixMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- The prefixMatch.
-
getPrefixMatchBytes
public com.google.protobuf.ByteString getPrefixMatchBytes()The value of the header must start with the contents ofprefixMatch. Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;- Specified by:
getPrefixMatchBytesin interfaceHttpHeaderMatchOrBuilder- Returns:
- The bytes for prefixMatch.
-
setPrefixMatch
The value of the header must start with the contents ofprefixMatch. Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;- Parameters:
value- The prefixMatch to set.- Returns:
- This builder for chaining.
-
clearPrefixMatch
The value of the header must start with the contents ofprefixMatch. Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;- Returns:
- This builder for chaining.
-
setPrefixMatchBytes
The value of the header must start with the contents ofprefixMatch. Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;- Parameters:
value- The bytes for prefixMatch to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
hasPresentMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- Whether the presentMatch field is set.
-
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;- Specified by:
getPresentMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- The presentMatch.
-
setPresentMatch
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;- Parameters:
value- The presentMatch to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;- Specified by:
hasRangeMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- Whether the rangeMatch field is set.
-
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;- Specified by:
getRangeMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- The rangeMatch.
-
setRangeMatch
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227; -
setRangeMatch
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227; -
mergeRangeMatch
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227; -
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227; -
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227; -
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;- Specified by:
getRangeMatchOrBuilderin interfaceHttpHeaderMatchOrBuilder
-
hasRegexMatch
public boolean hasRegexMatch()The value of the header must match the regular expression specified inregexMatch. For more information about regular expression syntax, see 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. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED.
optional string regex_match = 107387853;- Specified by:
hasRegexMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- Whether the regexMatch field is set.
-
getRegexMatch
The value of the header must match the regular expression specified inregexMatch. For more information about regular expression syntax, see 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. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED.
optional string regex_match = 107387853;- Specified by:
getRegexMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- The regexMatch.
-
getRegexMatchBytes
public com.google.protobuf.ByteString getRegexMatchBytes()The value of the header must match the regular expression specified inregexMatch. For more information about regular expression syntax, see 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. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED.
optional string regex_match = 107387853;- Specified by:
getRegexMatchBytesin interfaceHttpHeaderMatchOrBuilder- Returns:
- The bytes for regexMatch.
-
setRegexMatch
The value of the header must match the regular expression specified inregexMatch. For more information about regular expression syntax, see 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. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED.
optional string regex_match = 107387853;- Parameters:
value- The regexMatch to set.- Returns:
- This builder for chaining.
-
clearRegexMatch
The value of the header must match the regular expression specified inregexMatch. For more information about regular expression syntax, see 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. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED.
optional string regex_match = 107387853;- Returns:
- This builder for chaining.
-
setRegexMatchBytes
The value of the header must match the regular expression specified inregexMatch. For more information about regular expression syntax, see 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. Regular expressions can only be used when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED, EXTERNAL_MANAGED (regional scope) or INTERNAL_MANAGED.
optional string regex_match = 107387853;- Parameters:
value- The bytes for regexMatch to set.- Returns:
- This builder for chaining.
-
hasSuffixMatch
public boolean hasSuffixMatch()The value of the header must end with the contents ofsuffixMatch. Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;- Specified by:
hasSuffixMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- Whether the suffixMatch field is set.
-
getSuffixMatch
The value of the header must end with the contents ofsuffixMatch. Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;- Specified by:
getSuffixMatchin interfaceHttpHeaderMatchOrBuilder- Returns:
- The suffixMatch.
-
getSuffixMatchBytes
public com.google.protobuf.ByteString getSuffixMatchBytes()The value of the header must end with the contents ofsuffixMatch. Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;- Specified by:
getSuffixMatchBytesin interfaceHttpHeaderMatchOrBuilder- Returns:
- The bytes for suffixMatch.
-
setSuffixMatch
The value of the header must end with the contents ofsuffixMatch. Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;- Parameters:
value- The suffixMatch to set.- Returns:
- This builder for chaining.
-
clearSuffixMatch
The value of the header must end with the contents ofsuffixMatch. Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;- Returns:
- This builder for chaining.
-
setSuffixMatchBytes
The value of the header must end with the contents ofsuffixMatch. Only one of exactMatch, prefixMatch,suffixMatch, regexMatch,presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;- Parameters:
value- The bytes for suffixMatch to set.- Returns:
- This builder for chaining.
-