# Google Analytics Data V1alpha Client - Class MetricType (0.24.0)

0.24.0 (latest) 0.23.3 0.22.3 0.21.1 0.20.1 0.19.0 0.18.0 0.17.1 0.16.4 0.14.0 0.13.0 0.12.0 0.11.2 0.10.1 0.9.5

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Analytics Data V1alpha Client class MetricType.

A metric's value type.

Protobuf type `google.analytics.data.v1alpha.MetricType`

## Namespace

Google \\ Analytics \\ Data \\ V1alpha

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### METRIC_TYPE_UNSPECIFIED

    Value: 0

Unspecified type.

Generated from protobuf enum `METRIC_TYPE_UNSPECIFIED = 0;`

### TYPE_INTEGER

    Value: 1

Integer type.

Generated from protobuf enum `TYPE_INTEGER = 1;`

### TYPE_FLOAT

    Value: 2

Floating point type.

Generated from protobuf enum `TYPE_FLOAT = 2;`

### TYPE_SECONDS

    Value: 4

A duration of seconds; a special floating point type.

Generated from protobuf enum `TYPE_SECONDS = 4;`

### TYPE_MILLISECONDS

    Value: 5

A duration in milliseconds; a special floating point type.

Generated from protobuf enum `TYPE_MILLISECONDS = 5;`

### TYPE_MINUTES

    Value: 6

A duration in minutes; a special floating point type.

Generated from protobuf enum `TYPE_MINUTES = 6;`

### TYPE_HOURS

    Value: 7

A duration in hours; a special floating point type.

Generated from protobuf enum `TYPE_HOURS = 7;`

### TYPE_STANDARD

    Value: 8

A custom metric of standard type; a special floating point type.

Generated from protobuf enum `TYPE_STANDARD = 8;`

### TYPE_CURRENCY

    Value: 9

An amount of money; a special floating point type.

Generated from protobuf enum `TYPE_CURRENCY = 9;`

### TYPE_FEET

    Value: 10

A length in feet; a special floating point type.

Generated from protobuf enum `TYPE_FEET = 10;`

### TYPE_MILES

    Value: 11

A length in miles; a special floating point type.

Generated from protobuf enum `TYPE_MILES = 11;`

### TYPE_METERS

    Value: 12

A length in meters; a special floating point type.

Generated from protobuf enum `TYPE_METERS = 12;`

### TYPE_KILOMETERS

    Value: 13

A length in kilometers; a special floating point type.

Generated from protobuf enum `TYPE_KILOMETERS = 13;`