[android-components](../../index.md) / [mozilla.components.service.glean.private](../index.md) / [QuantityMetricType](index.md) / [set](./set.md)

# set

`fun set(value: `[`Long`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-long/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/glean/src/main/java/mozilla/components/service/glean/private/QuantityMetricType.kt#L35)

Set a quantity value.

### Parameters

`value` - The value to set. Must be non-negative.