public final class HttpQueryParameterMatch extends GeneratedMessageV3 implements HttpQueryParameterMatchOrBuilder
HttpRouteRuleMatch criteria for a request's query parameter.
Protobuf type google.cloud.compute.v1.HttpQueryParameterMatch
Fields
EXACT_MATCH_FIELD_NUMBER
public static final int EXACT_MATCH_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
PRESENT_MATCH_FIELD_NUMBER
public static final int PRESENT_MATCH_FIELD_NUMBER
Field Value
REGEX_MATCH_FIELD_NUMBER
public static final int REGEX_MATCH_FIELD_NUMBER
Field Value
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstance()
public static HttpQueryParameterMatch getDefaultInstance()
Returns
getDefaultInstanceForType()
public HttpQueryParameterMatch getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getExactMatch()
public String getExactMatch()
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch or regexMatch must be set.
optional string exact_match = 457641093;
Returns
Type | Description |
String | The exactMatch.
|
getExactMatchBytes()
public ByteString getExactMatchBytes()
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch or regexMatch must be set.
optional string exact_match = 457641093;
Returns
Type | Description |
ByteString | The bytes for exactMatch.
|
getName()
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
optional string name = 3373707;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
optional string name = 3373707;
Returns
getParserForType()
public Parser<HttpQueryParameterMatch> getParserForType()
Returns
Overrides
getPresentMatch()
public boolean getPresentMatch()
Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch or regexMatch must be set.
optional bool present_match = 67435841;
Returns
Type | Description |
boolean | The presentMatch.
|
getRegexMatch()
public String getRegexMatch()
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see github.com/google/re2/wiki/Syntax Only one of presentMatch, exactMatch or regexMatch must be set. Note that regexMatch only applies when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;
Returns
Type | Description |
String | The regexMatch.
|
getRegexMatchBytes()
public ByteString getRegexMatchBytes()
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see github.com/google/re2/wiki/Syntax Only one of presentMatch, exactMatch or regexMatch must be set. Note that regexMatch only applies when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;
Returns
Type | Description |
ByteString | The bytes for regexMatch.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasExactMatch()
public boolean hasExactMatch()
The queryParameterMatch matches if the value of the parameter exactly matches the contents of exactMatch. Only one of presentMatch, exactMatch or regexMatch must be set.
optional string exact_match = 457641093;
Returns
Type | Description |
boolean | Whether the exactMatch field is set.
|
hasName()
The name of the query parameter to match. The query parameter must exist in the request, in the absence of which the request match fails.
optional string name = 3373707;
Returns
Type | Description |
boolean | Whether the name field is set.
|
hasPresentMatch()
public boolean hasPresentMatch()
Specifies that the queryParameterMatch matches if the request contains the query parameter, irrespective of whether the parameter has a value or not. Only one of presentMatch, exactMatch or regexMatch must be set.
optional bool present_match = 67435841;
Returns
Type | Description |
boolean | Whether the presentMatch field is set.
|
hasRegexMatch()
public boolean hasRegexMatch()
The queryParameterMatch matches if the value of the parameter matches the regular expression specified by regexMatch. For the regular expression grammar, please see github.com/google/re2/wiki/Syntax Only one of presentMatch, exactMatch or regexMatch must be set. Note that regexMatch only applies when the loadBalancingScheme is set to INTERNAL_SELF_MANAGED.
optional string regex_match = 107387853;
Returns
Type | Description |
boolean | Whether the regexMatch field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilder()
public static HttpQueryParameterMatch.Builder newBuilder()
Returns
newBuilder(HttpQueryParameterMatch prototype)
public static HttpQueryParameterMatch.Builder newBuilder(HttpQueryParameterMatch prototype)
Parameter
Returns
newBuilderForType()
public HttpQueryParameterMatch.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HttpQueryParameterMatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public static HttpQueryParameterMatch parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static HttpQueryParameterMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static HttpQueryParameterMatch parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HttpQueryParameterMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static HttpQueryParameterMatch parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpQueryParameterMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpQueryParameterMatch parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static HttpQueryParameterMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static HttpQueryParameterMatch parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static HttpQueryParameterMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static HttpQueryParameterMatch parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HttpQueryParameterMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<HttpQueryParameterMatch> parser()
Returns
toBuilder()
public HttpQueryParameterMatch.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions