Class HttpQueryParameterMatch.Builder (1.56.0)

public static final class HttpQueryParameterMatch.Builder extends GeneratedMessageV3.Builder<HttpQueryParameterMatch.Builder> implements HttpQueryParameterMatchOrBuilder

HttpRouteRuleMatch criteria for a request's query parameter.

Protobuf type google.cloud.compute.v1.HttpQueryParameterMatch

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public HttpQueryParameterMatch build()
Returns
Type Description
HttpQueryParameterMatch

buildPartial()

public HttpQueryParameterMatch buildPartial()
Returns
Type Description
HttpQueryParameterMatch

clear()

public HttpQueryParameterMatch.Builder clear()
Returns
Type Description
HttpQueryParameterMatch.Builder
Overrides

clearExactMatch()

public HttpQueryParameterMatch.Builder clearExactMatch()

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
HttpQueryParameterMatch.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public HttpQueryParameterMatch.Builder clearName()

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
HttpQueryParameterMatch.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPresentMatch()

public HttpQueryParameterMatch.Builder clearPresentMatch()

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
HttpQueryParameterMatch.Builder

This builder for chaining.

clearRegexMatch()

public HttpQueryParameterMatch.Builder clearRegexMatch()

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
HttpQueryParameterMatch.Builder

This builder for chaining.

clone()

public HttpQueryParameterMatch.Builder clone()
Returns
Type Description
HttpQueryParameterMatch.Builder
Overrides

getDefaultInstanceForType()

public HttpQueryParameterMatch getDefaultInstanceForType()
Returns
Type Description
HttpQueryParameterMatch

getDescriptorForType()

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

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()

public String 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.

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.

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()

public boolean 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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(HttpQueryParameterMatch other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExactMatch(String value)

public HttpQueryParameterMatch.Builder setExactMatch(String value)

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;

Parameter
Name Description
value String

The exactMatch to set.

Returns
Type Description
HttpQueryParameterMatch.Builder

This builder for chaining.

setExactMatchBytes(ByteString value)

public HttpQueryParameterMatch.Builder setExactMatchBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for exactMatch to set.

Returns
Type Description
HttpQueryParameterMatch.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public HttpQueryParameterMatch.Builder setName(String value)

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;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
HttpQueryParameterMatch.Builder

This builder for chaining.

setNameBytes(ByteString value)

public HttpQueryParameterMatch.Builder setNameBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
HttpQueryParameterMatch.Builder

This builder for chaining.

setPresentMatch(boolean value)

public HttpQueryParameterMatch.Builder setPresentMatch(boolean value)

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;

Parameter
Name Description
value boolean

The presentMatch to set.

Returns
Type Description
HttpQueryParameterMatch.Builder

This builder for chaining.

setRegexMatch(String value)

public HttpQueryParameterMatch.Builder setRegexMatch(String value)

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;

Parameter
Name Description
value String

The regexMatch to set.

Returns
Type Description
HttpQueryParameterMatch.Builder

This builder for chaining.

setRegexMatchBytes(ByteString value)

public HttpQueryParameterMatch.Builder setRegexMatchBytes(ByteString value)

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;

Parameter
Name Description
value ByteString

The bytes for regexMatch to set.

Returns
Type Description
HttpQueryParameterMatch.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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