apiName = $apiName; } /** * @return string */ public function getApiName() { return $this->apiName; } /** * The display name of the category that this dimension belongs to. Similar * dimensions and metrics are categorized together. * * @param string $category */ public function setCategory($category) { $this->category = $category; } /** * @return string */ public function getCategory() { return $this->category; } /** * True if the dimension is custom to this property. This includes user, * event, & item scoped custom dimensions; to learn more about custom * dimensions, see https://support.google.com/analytics/answer/14240153. This * also include custom channel groups; to learn more about custom channel * groups, see https://support.google.com/analytics/answer/13051316. * * @param bool $customDefinition */ public function setCustomDefinition($customDefinition) { $this->customDefinition = $customDefinition; } /** * @return bool */ public function getCustomDefinition() { return $this->customDefinition; } /** * 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`. * * @param string[] $deprecatedApiNames */ public function setDeprecatedApiNames($deprecatedApiNames) { $this->deprecatedApiNames = $deprecatedApiNames; } /** * @return string[] */ public function getDeprecatedApiNames() { return $this->deprecatedApiNames; } /** * Description of how this dimension is used and calculated. * * @param string $description */ public function setDescription($description) { $this->description = $description; } /** * @return string */ public function getDescription() { return $this->description; } /** * This dimension's name within the Google Analytics user interface. For * example, `Event name`. * * @param string $uiName */ public function setUiName($uiName) { $this->uiName = $uiName; } /** * @return string */ public function getUiName() { return $this->uiName; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(DimensionMetadata::class, 'Google_Service_AnalyticsData_DimensionMetadata');