public final class HttpQueryParameterMatch extends GeneratedMessageV3 implements HttpQueryParameterMatchOrBuilder
HttpRouteRuleMatch criteria for a request's query parameter.
Protobuf type google.cloud.compute.v1.HttpQueryParameterMatch
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
EXACT_MATCH_FIELD_NUMBER
public static final int EXACT_MATCH_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PRESENT_MATCH_FIELD_NUMBER
public static final int PRESENT_MATCH_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
REGEX_MATCH_FIELD_NUMBER
public static final int REGEX_MATCH_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static HttpQueryParameterMatch getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static HttpQueryParameterMatch.Builder newBuilder()
newBuilder(HttpQueryParameterMatch prototype)
public static HttpQueryParameterMatch.Builder newBuilder(HttpQueryParameterMatch prototype)
public static HttpQueryParameterMatch parseDelimitedFrom(InputStream input)
public static HttpQueryParameterMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static HttpQueryParameterMatch parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HttpQueryParameterMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static HttpQueryParameterMatch parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpQueryParameterMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpQueryParameterMatch parseFrom(CodedInputStream input)
public static HttpQueryParameterMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpQueryParameterMatch parseFrom(InputStream input)
public static HttpQueryParameterMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static HttpQueryParameterMatch parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HttpQueryParameterMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<HttpQueryParameterMatch> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public HttpQueryParameterMatch getDefaultInstanceForType()
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
getParserForType()
public Parser<HttpQueryParameterMatch> getParserForType()
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 more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used 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 more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used 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 |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
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 more information about regular expression syntax, see Syntax. Only one of presentMatch, exactMatch, or regexMatch must be set. Regular expressions can only be used 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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public HttpQueryParameterMatch.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HttpQueryParameterMatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public HttpQueryParameterMatch.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides