public final class HttpHeaderMatch extends com.google.protobuf.GeneratedMessageV3 implements HttpHeaderMatchOrBuilder
matchRule criteria for request header matches.Protobuf type
google.cloud.compute.v1.HttpHeaderMatch| Modifier and Type | Class and Description |
|---|---|
static class |
HttpHeaderMatch.Builder
matchRule criteria for request header matches.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
EXACT_MATCH_FIELD_NUMBER |
static int |
HEADER_NAME_FIELD_NUMBER |
static int |
INVERT_MATCH_FIELD_NUMBER |
static int |
PREFIX_MATCH_FIELD_NUMBER |
static int |
PRESENT_MATCH_FIELD_NUMBER |
static int |
RANGE_MATCH_FIELD_NUMBER |
static int |
REGEX_MATCH_FIELD_NUMBER |
static int |
SUFFIX_MATCH_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static HttpHeaderMatch |
getDefaultInstance() |
HttpHeaderMatch |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
com.google.protobuf.Parser<HttpHeaderMatch> |
getParserForType() |
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.
|
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.
|
int |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasExactMatch()
The value should exactly match contents of exactMatch.
|
int |
hashCode() |
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() |
static HttpHeaderMatch.Builder |
newBuilder() |
static HttpHeaderMatch.Builder |
newBuilder(HttpHeaderMatch prototype) |
HttpHeaderMatch.Builder |
newBuilderForType() |
protected HttpHeaderMatch.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static HttpHeaderMatch |
parseDelimitedFrom(InputStream input) |
static HttpHeaderMatch |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpHeaderMatch |
parseFrom(byte[] data) |
static HttpHeaderMatch |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpHeaderMatch |
parseFrom(ByteBuffer data) |
static HttpHeaderMatch |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpHeaderMatch |
parseFrom(com.google.protobuf.ByteString data) |
static HttpHeaderMatch |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpHeaderMatch |
parseFrom(com.google.protobuf.CodedInputStream input) |
static HttpHeaderMatch |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static HttpHeaderMatch |
parseFrom(InputStream input) |
static HttpHeaderMatch |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<HttpHeaderMatch> |
parser() |
HttpHeaderMatch.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int EXACT_MATCH_FIELD_NUMBER
public static final int HEADER_NAME_FIELD_NUMBER
public static final int INVERT_MATCH_FIELD_NUMBER
public static final int PREFIX_MATCH_FIELD_NUMBER
public static final int PRESENT_MATCH_FIELD_NUMBER
public static final int RANGE_MATCH_FIELD_NUMBER
public static final int REGEX_MATCH_FIELD_NUMBER
public static final int SUFFIX_MATCH_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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;hasExactMatch in interface HttpHeaderMatchOrBuilderpublic 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;getExactMatch in interface HttpHeaderMatchOrBuilderpublic 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;getExactMatchBytes in interface HttpHeaderMatchOrBuilderpublic 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;hasHeaderName in interface HttpHeaderMatchOrBuilderpublic 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;getHeaderName in interface HttpHeaderMatchOrBuilderpublic 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;getHeaderNameBytes in interface HttpHeaderMatchOrBuilderpublic 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;hasInvertMatch in interface HttpHeaderMatchOrBuilderpublic 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;getInvertMatch in interface HttpHeaderMatchOrBuilderpublic 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;hasPrefixMatch in interface HttpHeaderMatchOrBuilderpublic 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;getPrefixMatch in interface HttpHeaderMatchOrBuilderpublic 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;getPrefixMatchBytes in interface HttpHeaderMatchOrBuilderpublic 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;hasPresentMatch in interface HttpHeaderMatchOrBuilderpublic 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;getPresentMatch in interface HttpHeaderMatchOrBuilderpublic 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;hasRangeMatch in interface HttpHeaderMatchOrBuilderpublic 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;getRangeMatch in interface HttpHeaderMatchOrBuilderpublic 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;getRangeMatchOrBuilder in interface HttpHeaderMatchOrBuilderpublic 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;hasRegexMatch in interface HttpHeaderMatchOrBuilderpublic 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;getRegexMatch in interface HttpHeaderMatchOrBuilderpublic 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;getRegexMatchBytes in interface HttpHeaderMatchOrBuilderpublic 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;hasSuffixMatch in interface HttpHeaderMatchOrBuilderpublic 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;getSuffixMatch in interface HttpHeaderMatchOrBuilderpublic 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;getSuffixMatchBytes in interface HttpHeaderMatchOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static HttpHeaderMatch parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpHeaderMatch parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpHeaderMatch parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpHeaderMatch parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpHeaderMatch parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpHeaderMatch parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static HttpHeaderMatch parseFrom(InputStream input) throws IOException
IOExceptionpublic static HttpHeaderMatch parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HttpHeaderMatch parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static HttpHeaderMatch parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static HttpHeaderMatch parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static HttpHeaderMatch parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic HttpHeaderMatch.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static HttpHeaderMatch.Builder newBuilder()
public static HttpHeaderMatch.Builder newBuilder(HttpHeaderMatch prototype)
public HttpHeaderMatch.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected HttpHeaderMatch.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static HttpHeaderMatch getDefaultInstance()
public static com.google.protobuf.Parser<HttpHeaderMatch> parser()
public com.google.protobuf.Parser<HttpHeaderMatch> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public HttpHeaderMatch getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2023 Google LLC. All rights reserved.