Class HttpRoute.QueryParameterMatch (0.10.0)

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

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()
Returns
Type Description
HttpRoute.QueryParameterMatch

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static HttpRoute.QueryParameterMatch.Builder newBuilder()
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

newBuilder(HttpRoute.QueryParameterMatch prototype)

public static HttpRoute.QueryParameterMatch.Builder newBuilder(HttpRoute.QueryParameterMatch prototype)
Parameter
Name Description
prototype HttpRoute.QueryParameterMatch
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

parseDelimitedFrom(InputStream input)

public static HttpRoute.QueryParameterMatch parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpRoute.QueryParameterMatch
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.QueryParameterMatch parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.QueryParameterMatch
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static HttpRoute.QueryParameterMatch parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
HttpRoute.QueryParameterMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.QueryParameterMatch parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.QueryParameterMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static HttpRoute.QueryParameterMatch parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
HttpRoute.QueryParameterMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.QueryParameterMatch parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.QueryParameterMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static HttpRoute.QueryParameterMatch parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
HttpRoute.QueryParameterMatch
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.QueryParameterMatch parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.QueryParameterMatch
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static HttpRoute.QueryParameterMatch parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
HttpRoute.QueryParameterMatch
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.QueryParameterMatch parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.QueryParameterMatch
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static HttpRoute.QueryParameterMatch parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
HttpRoute.QueryParameterMatch
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static HttpRoute.QueryParameterMatch parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.QueryParameterMatch
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<HttpRoute.QueryParameterMatch> parser()
Returns
Type Description
Parser<QueryParameterMatch>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public HttpRoute.QueryParameterMatch getDefaultInstanceForType()
Returns
Type Description
HttpRoute.QueryParameterMatch

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()
Returns
Type Description
HttpRoute.QueryParameterMatch.MatchTypeCase

getParserForType()

public Parser<HttpRoute.QueryParameterMatch> getParserForType()
Returns
Type Description
Parser<QueryParameterMatch>
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()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public HttpRoute.QueryParameterMatch.Builder newBuilderForType()
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected HttpRoute.QueryParameterMatch.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public HttpRoute.QueryParameterMatch.Builder toBuilder()
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException