Google Analytics Admin V1alpha Client - Class StringFilter (0.18.1)

Reference documentation and code samples for the Google Analytics Admin V1alpha Client class StringFilter.

A filter for a string-type dimension that matches a particular pattern.

Generated from protobuf message google.analytics.admin.v1alpha.ExpandedDataSetFilter.StringFilter

Namespace

Google \ Analytics \ Admin \ V1alpha \ ExpandedDataSetFilter

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ match_type int

Required. The match type for the string filter.

↳ value string

Required. The string value to be matched against.

↳ case_sensitive bool

Optional. If true, the match is case-sensitive. If false, the match is case-insensitive. Must be true when match_type is EXACT. Must be false when match_type is CONTAINS.

getMatchType

Required. The match type for the string filter.

Returns
TypeDescription
int

setMatchType

Required. The match type for the string filter.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getValue

Required. The string value to be matched against.

Returns
TypeDescription
string

setValue

Required. The string value to be matched against.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCaseSensitive

Optional. If true, the match is case-sensitive. If false, the match is case-insensitive.

Must be true when match_type is EXACT. Must be false when match_type is CONTAINS.

Returns
TypeDescription
bool

setCaseSensitive

Optional. If true, the match is case-sensitive. If false, the match is case-insensitive.

Must be true when match_type is EXACT. Must be false when match_type is CONTAINS.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this