Class HttpRoute.QueryParameterMatch.Builder (0.2.0)

public static final class HttpRoute.QueryParameterMatch.Builder extends GeneratedMessageV3.Builder<HttpRoute.QueryParameterMatch.Builder> implements HttpRoute.QueryParameterMatchOrBuilder

Specifications to match a query parameter in the request.

Protobuf type google.cloud.networkservices.v1.HttpRoute.QueryParameterMatch

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public HttpRoute.QueryParameterMatch.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder
Overrides

build()

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

buildPartial()

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

clear()

public HttpRoute.QueryParameterMatch.Builder clear()
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder
Overrides

clearExactMatch()

public HttpRoute.QueryParameterMatch.Builder clearExactMatch()

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
HttpRoute.QueryParameterMatch.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public HttpRoute.QueryParameterMatch.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder
Overrides

clearMatchType()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public HttpRoute.QueryParameterMatch.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder
Overrides

clearPresentMatch()

public HttpRoute.QueryParameterMatch.Builder clearPresentMatch()

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
HttpRoute.QueryParameterMatch.Builder

This builder for chaining.

clearQueryParameter()

public HttpRoute.QueryParameterMatch.Builder clearQueryParameter()

The name of the query parameter to match.

string query_parameter = 1;

Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

This builder for chaining.

clearRegexMatch()

public HttpRoute.QueryParameterMatch.Builder clearRegexMatch()

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
HttpRoute.QueryParameterMatch.Builder

This builder for chaining.

clone()

public HttpRoute.QueryParameterMatch.Builder clone()
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder
Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HttpRoute.QueryParameterMatch other)

public HttpRoute.QueryParameterMatch.Builder mergeFrom(HttpRoute.QueryParameterMatch other)
Parameter
Name Description
other HttpRoute.QueryParameterMatch
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public HttpRoute.QueryParameterMatch.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public HttpRoute.QueryParameterMatch.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final HttpRoute.QueryParameterMatch.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder
Overrides

setExactMatch(String value)

public HttpRoute.QueryParameterMatch.Builder setExactMatch(String value)

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;

Parameter
Name Description
value String

The exactMatch to set.

Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

This builder for chaining.

setExactMatchBytes(ByteString value)

public HttpRoute.QueryParameterMatch.Builder setExactMatchBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for exactMatch to set.

Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public HttpRoute.QueryParameterMatch.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder
Overrides

setPresentMatch(boolean value)

public HttpRoute.QueryParameterMatch.Builder setPresentMatch(boolean value)

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;

Parameter
Name Description
value boolean

The presentMatch to set.

Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

This builder for chaining.

setQueryParameter(String value)

public HttpRoute.QueryParameterMatch.Builder setQueryParameter(String value)

The name of the query parameter to match.

string query_parameter = 1;

Parameter
Name Description
value String

The queryParameter to set.

Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

This builder for chaining.

setQueryParameterBytes(ByteString value)

public HttpRoute.QueryParameterMatch.Builder setQueryParameterBytes(ByteString value)

The name of the query parameter to match.

string query_parameter = 1;

Parameter
Name Description
value ByteString

The bytes for queryParameter to set.

Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

This builder for chaining.

setRegexMatch(String value)

public HttpRoute.QueryParameterMatch.Builder setRegexMatch(String value)

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;

Parameter
Name Description
value String

The regexMatch to set.

Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

This builder for chaining.

setRegexMatchBytes(ByteString value)

public HttpRoute.QueryParameterMatch.Builder setRegexMatchBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for regexMatch to set.

Returns
Type Description
HttpRoute.QueryParameterMatch.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public HttpRoute.QueryParameterMatch.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final HttpRoute.QueryParameterMatch.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
HttpRoute.QueryParameterMatch.Builder
Overrides