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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<HttpHeaderMatch.Builder> implements HttpHeaderMatchOrBuilder
matchRule criteria for request header matches.
Protobuf typegoogle.cloud.compute.v1.HttpHeaderMatch
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpHeaderMatch.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
HttpHeaderMatch
build()
HttpHeaderMatch
buildPartial()
HttpHeaderMatch.Builder
clear()
HttpHeaderMatch.Builder
clearExactMatch()
The value should exactly match contents of exactMatch.HttpHeaderMatch.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
HttpHeaderMatch.Builder
clearHeaderName()
The name of the HTTP header to match.HttpHeaderMatch.Builder
clearInvertMatch()
If set to false, the headerMatch is considered a match if the preceding match criteria are met.HttpHeaderMatch.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
HttpHeaderMatch.Builder
clearPrefixMatch()
The value of the header must start with the contents of prefixMatch.HttpHeaderMatch.Builder
clearPresentMatch()
A header with the contents of headerName must exist.HttpHeaderMatch.Builder
clearRangeMatch()
The header value must be an integer and its value must be in the range specified in rangeMatch.HttpHeaderMatch.Builder
clearRegexMatch()
The value of the header must match the regular expression specified in regexMatch.HttpHeaderMatch.Builder
clearSuffixMatch()
The value of the header must end with the contents of suffixMatch.HttpHeaderMatch.Builder
clone()
HttpHeaderMatch
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getExactMatch()
The value should exactly match contents of exactMatch.com.google.protobuf.ByteString
getExactMatchBytes()
The value should exactly match contents of exactMatch.String
getHeaderName()
The name of the HTTP header to match.com.google.protobuf.ByteString
getHeaderNameBytes()
The name of the HTTP header to match.boolean
getInvertMatch()
If set to false, the headerMatch is considered a match if the preceding match criteria are met.String
getPrefixMatch()
The value of the header must start with the contents of prefixMatch.com.google.protobuf.ByteString
getPrefixMatchBytes()
The value of the header must start with the contents of prefixMatch.boolean
getPresentMatch()
A header with the contents of headerName must exist.Int64RangeMatch
getRangeMatch()
The header value must be an integer and its value must be in the range specified in rangeMatch.Int64RangeMatch.Builder
getRangeMatchBuilder()
The header value must be an integer and its value must be in the range specified in rangeMatch.Int64RangeMatchOrBuilder
getRangeMatchOrBuilder()
The header value must be an integer and its value must be in the range specified in rangeMatch.String
getRegexMatch()
The value of the header must match the regular expression specified in regexMatch.com.google.protobuf.ByteString
getRegexMatchBytes()
The value of the header must match the regular expression specified in regexMatch.String
getSuffixMatch()
The value of the header must end with the contents of suffixMatch.com.google.protobuf.ByteString
getSuffixMatchBytes()
The value of the header must end with the contents of suffixMatch.boolean
hasExactMatch()
The value should exactly match contents of exactMatch.boolean
hasHeaderName()
The name of the HTTP header to match.boolean
hasInvertMatch()
If set to false, the headerMatch is considered a match if the preceding match criteria are met.boolean
hasPrefixMatch()
The value of the header must start with the contents of prefixMatch.boolean
hasPresentMatch()
A header with the contents of headerName must exist.boolean
hasRangeMatch()
The header value must be an integer and its value must be in the range specified in rangeMatch.boolean
hasRegexMatch()
The value of the header must match the regular expression specified in regexMatch.boolean
hasSuffixMatch()
The value of the header must end with the contents of suffixMatch.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
HttpHeaderMatch.Builder
mergeFrom(HttpHeaderMatch other)
HttpHeaderMatch.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
HttpHeaderMatch.Builder
mergeFrom(com.google.protobuf.Message other)
HttpHeaderMatch.Builder
mergeRangeMatch(Int64RangeMatch value)
The header value must be an integer and its value must be in the range specified in rangeMatch.HttpHeaderMatch.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
HttpHeaderMatch.Builder
setExactMatch(String value)
The value should exactly match contents of exactMatch.HttpHeaderMatch.Builder
setExactMatchBytes(com.google.protobuf.ByteString value)
The value should exactly match contents of exactMatch.HttpHeaderMatch.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
HttpHeaderMatch.Builder
setHeaderName(String value)
The name of the HTTP header to match.HttpHeaderMatch.Builder
setHeaderNameBytes(com.google.protobuf.ByteString value)
The name of the HTTP header to match.HttpHeaderMatch.Builder
setInvertMatch(boolean value)
If set to false, the headerMatch is considered a match if the preceding match criteria are met.HttpHeaderMatch.Builder
setPrefixMatch(String value)
The value of the header must start with the contents of prefixMatch.HttpHeaderMatch.Builder
setPrefixMatchBytes(com.google.protobuf.ByteString value)
The value of the header must start with the contents of prefixMatch.HttpHeaderMatch.Builder
setPresentMatch(boolean value)
A header with the contents of headerName must exist.HttpHeaderMatch.Builder
setRangeMatch(Int64RangeMatch value)
The header value must be an integer and its value must be in the range specified in rangeMatch.HttpHeaderMatch.Builder
setRangeMatch(Int64RangeMatch.Builder builderForValue)
The header value must be an integer and its value must be in the range specified in rangeMatch.HttpHeaderMatch.Builder
setRegexMatch(String value)
The value of the header must match the regular expression specified in regexMatch.HttpHeaderMatch.Builder
setRegexMatchBytes(com.google.protobuf.ByteString value)
The value of the header must match the regular expression specified in regexMatch.HttpHeaderMatch.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
HttpHeaderMatch.Builder
setSuffixMatch(String value)
The value of the header must end with the contents of suffixMatch.HttpHeaderMatch.Builder
setSuffixMatchBytes(com.google.protobuf.ByteString value)
The value of the header must end with the contents of suffixMatch.HttpHeaderMatch.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<HttpHeaderMatch.Builder>
-
clear
public HttpHeaderMatch.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpHeaderMatch.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpHeaderMatch.Builder>
-
getDefaultInstanceForType
public HttpHeaderMatch getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public HttpHeaderMatch build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public HttpHeaderMatch buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public HttpHeaderMatch.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpHeaderMatch.Builder>
-
setField
public HttpHeaderMatch.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpHeaderMatch.Builder>
-
clearField
public HttpHeaderMatch.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpHeaderMatch.Builder>
-
clearOneof
public HttpHeaderMatch.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpHeaderMatch.Builder>
-
setRepeatedField
public HttpHeaderMatch.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpHeaderMatch.Builder>
-
addRepeatedField
public HttpHeaderMatch.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpHeaderMatch.Builder>
-
mergeFrom
public HttpHeaderMatch.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<HttpHeaderMatch.Builder>
-
mergeFrom
public HttpHeaderMatch.Builder mergeFrom(HttpHeaderMatch other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpHeaderMatch.Builder>
-
mergeFrom
public HttpHeaderMatch.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasExactMatch
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- Whether the exactMatch field is set.
-
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;
- Specified by:
getExactMatch
in 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:
getExactMatchBytes
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- The bytes for exactMatch.
-
setExactMatch
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;
- Parameters:
value
- The exactMatch to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setExactMatchBytes
public HttpHeaderMatch.Builder setExactMatchBytes(com.google.protobuf.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;
- 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:
hasHeaderName
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- Whether the headerName field is set.
-
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 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:
getHeaderName
in 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:
getHeaderNameBytes
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- The bytes for headerName.
-
setHeaderName
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 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
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 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
public HttpHeaderMatch.Builder setHeaderNameBytes(com.google.protobuf.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 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:
hasInvertMatch
in 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:
getInvertMatch
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- The invertMatch.
-
setInvertMatch
public HttpHeaderMatch.Builder setInvertMatch(boolean value)
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
public HttpHeaderMatch.Builder 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 of prefixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string prefix_match = 257898968;
- Specified by:
hasPrefixMatch
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- Whether the prefixMatch field is set.
-
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;
- Specified by:
getPrefixMatch
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- The prefixMatch.
-
getPrefixMatchBytes
public com.google.protobuf.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;
- Specified by:
getPrefixMatchBytes
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- The bytes for prefixMatch.
-
setPrefixMatch
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;
- Parameters:
value
- The prefixMatch to set.- Returns:
- This builder for chaining.
-
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;
- Returns:
- This builder for chaining.
-
setPrefixMatchBytes
public HttpHeaderMatch.Builder setPrefixMatchBytes(com.google.protobuf.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;
- 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:
hasPresentMatch
in 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:
getPresentMatch
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- The presentMatch.
-
setPresentMatch
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;
- Parameters:
value
- The presentMatch to set.- Returns:
- 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;
- 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:
hasRangeMatch
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- Whether the rangeMatch field is set.
-
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
- Specified by:
getRangeMatch
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- The rangeMatch.
-
setRangeMatch
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
-
setRangeMatch
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
-
mergeRangeMatch
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
-
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
-
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
-
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. rangeMatch is not supported for load balancers that have loadBalancingScheme set to EXTERNAL.
optional .google.cloud.compute.v1.Int64RangeMatch range_match = 97244227;
- Specified by:
getRangeMatchOrBuilder
in interfaceHttpHeaderMatchOrBuilder
-
hasRegexMatch
public boolean hasRegexMatch()
The value of the header must match the regular expression specified in regexMatch. 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.
optional string regex_match = 107387853;
- Specified by:
hasRegexMatch
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- Whether the regexMatch field is set.
-
getRegexMatch
public String getRegexMatch()
The value of the header must match the regular expression specified in regexMatch. 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.
optional string regex_match = 107387853;
- Specified by:
getRegexMatch
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- The regexMatch.
-
getRegexMatchBytes
public com.google.protobuf.ByteString getRegexMatchBytes()
The value of the header must match the regular expression specified in regexMatch. 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.
optional string regex_match = 107387853;
- Specified by:
getRegexMatchBytes
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- The bytes for regexMatch.
-
setRegexMatch
public HttpHeaderMatch.Builder setRegexMatch(String value)
The value of the header must match the regular expression specified in regexMatch. 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.
optional string regex_match = 107387853;
- Parameters:
value
- The regexMatch to set.- Returns:
- This builder for chaining.
-
clearRegexMatch
public HttpHeaderMatch.Builder clearRegexMatch()
The value of the header must match the regular expression specified in regexMatch. 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.
optional string regex_match = 107387853;
- Returns:
- This builder for chaining.
-
setRegexMatchBytes
public HttpHeaderMatch.Builder setRegexMatchBytes(com.google.protobuf.ByteString value)
The value of the header must match the regular expression specified in regexMatch. 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.
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 of suffixMatch. Only one of exactMatch, prefixMatch, suffixMatch, regexMatch, presentMatch or rangeMatch must be set.
optional string suffix_match = 426488663;
- Specified by:
hasSuffixMatch
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- Whether the suffixMatch field is set.
-
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;
- Specified by:
getSuffixMatch
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- The suffixMatch.
-
getSuffixMatchBytes
public com.google.protobuf.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;
- Specified by:
getSuffixMatchBytes
in interfaceHttpHeaderMatchOrBuilder
- Returns:
- The bytes for suffixMatch.
-
setSuffixMatch
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;
- Parameters:
value
- The suffixMatch to set.- Returns:
- 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;
- Returns:
- This builder for chaining.
-
setSuffixMatchBytes
public HttpHeaderMatch.Builder setSuffixMatchBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for suffixMatch to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final HttpHeaderMatch.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpHeaderMatch.Builder>
-
mergeUnknownFields
public final HttpHeaderMatch.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<HttpHeaderMatch.Builder>
-
-