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