public static final class HttpRoute.QueryParameterMatch extends GeneratedMessageV3 implements HttpRoute.QueryParameterMatchOrBuilder
Specifications to match a query parameter in the request.
Protobuf type google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
EXACT_MATCH_FIELD_NUMBER
public static final int EXACT_MATCH_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PRESENT_MATCH_FIELD_NUMBER
public static final int PRESENT_MATCH_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
QUERY_PARAMETER_FIELD_NUMBER
public static final int QUERY_PARAMETER_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 HttpRoute.QueryParameterMatch getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static HttpRoute.QueryParameterMatch.Builder newBuilder()
newBuilder(HttpRoute.QueryParameterMatch prototype)
public static HttpRoute.QueryParameterMatch.Builder newBuilder(HttpRoute.QueryParameterMatch prototype)
public static HttpRoute.QueryParameterMatch parseDelimitedFrom(InputStream input)
public static HttpRoute.QueryParameterMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static HttpRoute.QueryParameterMatch parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.QueryParameterMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static HttpRoute.QueryParameterMatch parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.QueryParameterMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.QueryParameterMatch parseFrom(CodedInputStream input)
public static HttpRoute.QueryParameterMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.QueryParameterMatch parseFrom(InputStream input)
public static HttpRoute.QueryParameterMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static HttpRoute.QueryParameterMatch parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static HttpRoute.QueryParameterMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<HttpRoute.QueryParameterMatch> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public HttpRoute.QueryParameterMatch getDefaultInstanceForType()
getExactMatch()
public String getExactMatch()
The value of the query parameter must exactly match the contents of
exact_match.
Only one of exact_match, regex_match, or present_match must be set.
string exact_match = 2;
Returns |
Type |
Description |
String |
The exactMatch.
|
getExactMatchBytes()
public ByteString getExactMatchBytes()
The value of the query parameter must exactly match the contents of
exact_match.
Only one of exact_match, regex_match, or present_match must be set.
string exact_match = 2;
Returns |
Type |
Description |
ByteString |
The bytes for exactMatch.
|
getMatchTypeCase()
public HttpRoute.QueryParameterMatch.MatchTypeCase getMatchTypeCase()
getParserForType()
public Parser<HttpRoute.QueryParameterMatch> getParserForType()
Overrides
getPresentMatch()
public boolean getPresentMatch()
Specifies that the QueryParameterMatcher matches if request contains
query parameter, irrespective of whether the parameter has a value or
not.
Only one of exact_match, regex_match, or present_match must be set.
bool present_match = 4;
Returns |
Type |
Description |
boolean |
The presentMatch.
|
getQueryParameter()
public String getQueryParameter()
The name of the query parameter to match.
string query_parameter = 1;
Returns |
Type |
Description |
String |
The queryParameter.
|
getQueryParameterBytes()
public ByteString getQueryParameterBytes()
The name of the query parameter to match.
string query_parameter = 1;
Returns |
Type |
Description |
ByteString |
The bytes for queryParameter.
|
getRegexMatch()
public String getRegexMatch()
The value of the query parameter must match the regular expression
specified by regex_match. For regular expression grammar, please see
https://github.com/google/re2/wiki/Syntax
Only one of exact_match, regex_match, or present_match must be set.
string regex_match = 3;
Returns |
Type |
Description |
String |
The regexMatch.
|
getRegexMatchBytes()
public ByteString getRegexMatchBytes()
The value of the query parameter must match the regular expression
specified by regex_match. For regular expression grammar, please see
https://github.com/google/re2/wiki/Syntax
Only one of exact_match, regex_match, or present_match must be set.
string regex_match = 3;
Returns |
Type |
Description |
ByteString |
The bytes for regexMatch.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hasExactMatch()
public boolean hasExactMatch()
The value of the query parameter must exactly match the contents of
exact_match.
Only one of exact_match, regex_match, or present_match must be set.
string exact_match = 2;
Returns |
Type |
Description |
boolean |
Whether the exactMatch field is set.
|
hasPresentMatch()
public boolean hasPresentMatch()
Specifies that the QueryParameterMatcher matches if request contains
query parameter, irrespective of whether the parameter has a value or
not.
Only one of exact_match, regex_match, or present_match must be set.
bool present_match = 4;
Returns |
Type |
Description |
boolean |
Whether the presentMatch field is set.
|
hasRegexMatch()
public boolean hasRegexMatch()
The value of the query parameter must match the regular expression
specified by regex_match. For regular expression grammar, please see
https://github.com/google/re2/wiki/Syntax
Only one of exact_match, regex_match, or present_match must be set.
string regex_match = 3;
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 HttpRoute.QueryParameterMatch.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected HttpRoute.QueryParameterMatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public HttpRoute.QueryParameterMatch.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides