EnumDescriptorProto constructor

EnumDescriptorProto({
  1. String? name,
  2. Iterable<EnumValueDescriptorProto>? value,
  3. EnumOptions? options,
  4. Iterable<EnumDescriptorProto_EnumReservedRange>? reservedRange,
  5. Iterable<String>? reservedName,
})

Implementation

factory EnumDescriptorProto({
  $core.String? name,
  $core.Iterable<EnumValueDescriptorProto>? value,
  EnumOptions? options,
  $core.Iterable<EnumDescriptorProto_EnumReservedRange>? reservedRange,
  $core.Iterable<$core.String>? reservedName,
}) {
  final _result = create();
  if (name != null) {
    _result.name = name;
  }
  if (value != null) {
    _result.value.addAll(value);
  }
  if (options != null) {
    _result.options = options;
  }
  if (reservedRange != null) {
    _result.reservedRange.addAll(reservedRange);
  }
  if (reservedName != null) {
    _result.reservedName.addAll(reservedName);
  }
  return _result;
}