EnumDescriptorProto constructor
EnumDescriptorProto({
- String? name,
- Iterable<
EnumValueDescriptorProto> ? value, - EnumOptions? options,
- Iterable<
EnumDescriptorProto_EnumReservedRange> ? reservedRange, - 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;
}