Reference documentation and code samples for the Google Analytics Data V1alpha Client class DimensionMetadata.
Explains a dimension.
Generated from protobuf message google.analytics.data.v1alpha.DimensionMetadata
Namespace
Google \ Analytics \ Data \ V1alphaMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ api_name |
string
This dimension's name. Useable in Dimension's |
↳ ui_name |
string
This dimension's name within the Google Analytics user interface. For example, |
↳ description |
string
Description of how this dimension is used and calculated. |
↳ deprecated_api_names |
string[]
Still usable but deprecated names for this dimension. If populated, this dimension is available by either |
↳ custom_definition |
bool
True if the dimension is a custom dimension for this property. |
getApiName
This dimension's name. Useable in Dimension's name
. For
example, eventName
.
Returns | |
---|---|
Type | Description |
string |
setApiName
This dimension's name. Useable in Dimension's name
. For
example, eventName
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getUiName
This dimension's name within the Google Analytics user interface. For
example, Event name
.
Returns | |
---|---|
Type | Description |
string |
setUiName
This dimension's name within the Google Analytics user interface. For
example, Event name
.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDescription
Description of how this dimension is used and calculated.
Returns | |
---|---|
Type | Description |
string |
setDescription
Description of how this dimension is used and calculated.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getDeprecatedApiNames
Still usable but deprecated names for this dimension. If populated, this
dimension is available by either apiName
or one of deprecatedApiNames
for a period of time. After the deprecation period, the dimension will be
available only by apiName
.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setDeprecatedApiNames
Still usable but deprecated names for this dimension. If populated, this
dimension is available by either apiName
or one of deprecatedApiNames
for a period of time. After the deprecation period, the dimension will be
available only by apiName
.
Parameter | |
---|---|
Name | Description |
var |
string[]
|
Returns | |
---|---|
Type | Description |
$this |
getCustomDefinition
True if the dimension is a custom dimension for this property.
Returns | |
---|---|
Type | Description |
bool |
setCustomDefinition
True if the dimension is a custom dimension for this property.
Parameter | |
---|---|
Name | Description |
var |
bool
|
Returns | |
---|---|
Type | Description |
$this |