LogDescriptor constructor

LogDescriptor({
  1. String? name,
  2. Iterable<LabelDescriptor>? labels,
  3. String? description,
  4. String? displayName,
})

Implementation

factory LogDescriptor({
  $core.String? name,
  $core.Iterable<$2.LabelDescriptor>? labels,
  $core.String? description,
  $core.String? displayName,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (labels != null) {
    _result.labels.addAll(labels);
  }
  if (description != null) {
    _result.description = description;
  }
  if (displayName != null) {
    _result.displayName = displayName;
  }
  return _result;
}