DescriptorProto constructor
DescriptorProto({
- String? name,
- Iterable<
FieldDescriptorProto> ? field, - Iterable<
DescriptorProto> ? nestedType, - Iterable<
EnumDescriptorProto> ? enumType, - Iterable<
DescriptorProto_ExtensionRange> ? extensionRange, - Iterable<
FieldDescriptorProto> ? extension, - MessageOptions? options,
- Iterable<
OneofDescriptorProto> ? oneofDecl, - Iterable<
DescriptorProto_ReservedRange> ? reservedRange, - Iterable<
String> ? reservedName,
Implementation
factory DescriptorProto({
$core.String? name,
$core.Iterable<FieldDescriptorProto>? field,
$core.Iterable<DescriptorProto>? nestedType,
$core.Iterable<EnumDescriptorProto>? enumType,
$core.Iterable<DescriptorProto_ExtensionRange>? extensionRange,
$core.Iterable<FieldDescriptorProto>? extension,
MessageOptions? options,
$core.Iterable<OneofDescriptorProto>? oneofDecl,
$core.Iterable<DescriptorProto_ReservedRange>? reservedRange,
$core.Iterable<$core.String>? reservedName,
}) {
final _result = create();
if (name != null) {
_result.name = name;
}
if (field != null) {
_result.field.addAll(field);
}
if (nestedType != null) {
_result.nestedType.addAll(nestedType);
}
if (enumType != null) {
_result.enumType.addAll(enumType);
}
if (extensionRange != null) {
_result.extensionRange.addAll(extensionRange);
}
if (extension != null) {
_result.extension.addAll(extension);
}
if (options != null) {
_result.options = options;
}
if (oneofDecl != null) {
_result.oneofDecl.addAll(oneofDecl);
}
if (reservedRange != null) {
_result.reservedRange.addAll(reservedRange);
}
if (reservedName != null) {
_result.reservedName.addAll(reservedName);
}
return _result;
}