NumberDataPoint constructor

NumberDataPoint({
  1. Int64? startTimeUnixNano,
  2. Int64? timeUnixNano,
  3. double? asDouble,
  4. Iterable<Exemplar>? exemplars,
  5. Int64? asInt,
  6. Iterable<KeyValue>? attributes,
  7. int? flags,
})

Implementation

factory NumberDataPoint({
  $fixnum.Int64? startTimeUnixNano,
  $fixnum.Int64? timeUnixNano,
  $core.double? asDouble,
  $core.Iterable<Exemplar>? exemplars,
  $fixnum.Int64? asInt,
  $core.Iterable<$3.KeyValue>? attributes,
  $core.int? flags,
}) {
  final $result = create();
  if (startTimeUnixNano != null) {
    $result.startTimeUnixNano = startTimeUnixNano;
  }
  if (timeUnixNano != null) {
    $result.timeUnixNano = timeUnixNano;
  }
  if (asDouble != null) {
    $result.asDouble = asDouble;
  }
  if (exemplars != null) {
    $result.exemplars.addAll(exemplars);
  }
  if (asInt != null) {
    $result.asInt = asInt;
  }
  if (attributes != null) {
    $result.attributes.addAll(attributes);
  }
  if (flags != null) {
    $result.flags = flags;
  }
  return $result;
}