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;
}