# Google Analytics Data V1beta API - Class Google::Analytics::Data::V1beta::DimensionMetadata (v0.4.3)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.4.3 (latest)](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-DimensionMetadata)
- [0.4.2](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/0.4.2/Google-Analytics-Data-V1beta-DimensionMetadata)
Reference documentation and code samples for the Google Analytics Data V1beta API class Google::Analytics::Data::V1beta::DimensionMetadata.

Explains a dimension.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #api_name

    def api_name() -> ::String

**Returns**

- (::String) --- This dimension's name. Useable in [Dimension](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-DimensionMetadata#Dimension)'s `name`. For example, `eventName`.

### #api_name=

    def api_name=(value) -> ::String

**Parameter**

- **value** (::String) --- This dimension's name. Useable in [Dimension](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-DimensionMetadata#Dimension)'s `name`. For example, `eventName`.
**Returns**

- (::String) --- This dimension's name. Useable in [Dimension](https://docs.cloud.google.com/ruby/docs/reference/google-analytics-data-v1beta/latest/Google-Analytics-Data-V1beta-DimensionMetadata#Dimension)'s `name`. For example, `eventName`.

### #category

    def category() -> ::String

**Returns**

- (::String) --- The display name of the category that this dimension belongs to. Similar dimensions and metrics are categorized together.

### #category=

    def category=(value) -> ::String

**Parameter**

- **value** (::String) --- The display name of the category that this dimension belongs to. Similar dimensions and metrics are categorized together.
**Returns**

- (::String) --- The display name of the category that this dimension belongs to. Similar dimensions and metrics are categorized together.

### #custom_definition

    def custom_definition() -> ::Boolean

**Returns**

- (::Boolean) --- True if the dimension is a custom dimension for this property.

### #custom_definition=

    def custom_definition=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- True if the dimension is a custom dimension for this property.
**Returns**

- (::Boolean) --- True if the dimension is a custom dimension for this property.

### #deprecated_api_names

    def deprecated_api_names() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- 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`.

### #deprecated_api_names=

    def deprecated_api_names=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- 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**

- (::Array\<::String\>) --- 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`.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Description of how this dimension is used and calculated.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Description of how this dimension is used and calculated.
**Returns**

- (::String) --- Description of how this dimension is used and calculated.

### #ui_name

    def ui_name() -> ::String

**Returns**

- (::String) --- This dimension's name within the Google Analytics user interface. For example, `Event name`.

### #ui_name=

    def ui_name=(value) -> ::String

**Parameter**

- **value** (::String) --- This dimension's name within the Google Analytics user interface. For example, `Event name`.
**Returns**

- (::String) --- This dimension's name within the Google Analytics user interface. For example, `Event name`.