Reference documentation and code samples for the Google Cloud Network Services V1beta1 Client class StringMatch.
Specifies matching logic for string values.
Generated from protobuf message google.cloud.networkservices.v1beta1.ExtensionBinding.MatchCondition.StringMatch
Namespace
Google \ Cloud \ NetworkServices \ V1beta1 \ ExtensionBinding \ MatchConditionMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ exact |
string
Optional. The input string must match exactly the string specified here. Examples: * * |
↳ prefix |
string
Optional. The input string must have the prefix specified here. Note: empty prefix is not allowed. Examples: * * |
↳ suffix |
string
Optional. The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * * |
↳ contains |
string
Optional. The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead. Examples: * * |
↳ ignore_case |
bool
Optional. If true, indicates the exact/prefix/suffix/contains matching should be case insensitive. For example, the matcher |
getExact
Optional. The input string must match exactly the string specified here.
Examples:
abconly matches the valueabc.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasExact
setExact
Optional. The input string must match exactly the string specified here.
Examples:
abconly matches the valueabc.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getPrefix
Optional. The input string must have the prefix specified here.
Note: empty prefix is not allowed. Examples:
abcmatches the valueabc.xyz
| Returns | |
|---|---|
| Type | Description |
string |
|
hasPrefix
setPrefix
Optional. The input string must have the prefix specified here.
Note: empty prefix is not allowed. Examples:
abcmatches the valueabc.xyz
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSuffix
Optional. The input string must have the suffix specified here.
Note: empty prefix is not allowed, please use regex instead. Examples:
abcmatches the valuexyz.abc
| Returns | |
|---|---|
| Type | Description |
string |
|
hasSuffix
setSuffix
Optional. The input string must have the suffix specified here.
Note: empty prefix is not allowed, please use regex instead. Examples:
abcmatches the valuexyz.abc
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getContains
Optional. The input string must have the substring specified here.
Note: empty contains match is not allowed, please use regex instead. Examples:
abcmatches the valuexyz.abc.def
| Returns | |
|---|---|
| Type | Description |
string |
|
hasContains
setContains
Optional. The input string must have the substring specified here.
Note: empty contains match is not allowed, please use regex instead. Examples:
abcmatches the valuexyz.abc.def
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getIgnoreCase
Optional. If true, indicates the exact/prefix/suffix/contains matching
should be case insensitive. For example, the matcher data will
match both input string Data and data if set to true.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setIgnoreCase
Optional. If true, indicates the exact/prefix/suffix/contains matching
should be case insensitive. For example, the matcher data will
match both input string Data and data if set to true.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMatchPattern
| Returns | |
|---|---|
| Type | Description |
string |
|