FileDescriptorProto constructor
FileDescriptorProto({
- String? name,
- String? package,
- Iterable<
String> ? dependency, - Iterable<
DescriptorProto> ? messageType, - Iterable<
EnumDescriptorProto> ? enumType, - Iterable<
ServiceDescriptorProto> ? service, - Iterable<
FieldDescriptorProto> ? extension, - FileOptions? options,
- SourceCodeInfo? sourceCodeInfo,
- Iterable<
int> ? publicDependency, - Iterable<
int> ? weakDependency, - String? syntax,
- Edition? edition,
Implementation
factory FileDescriptorProto({
$core.String? name,
$core.String? package,
$core.Iterable<$core.String>? dependency,
$core.Iterable<DescriptorProto>? messageType,
$core.Iterable<EnumDescriptorProto>? enumType,
$core.Iterable<ServiceDescriptorProto>? service,
$core.Iterable<FieldDescriptorProto>? extension,
FileOptions? options,
SourceCodeInfo? sourceCodeInfo,
$core.Iterable<$core.int>? publicDependency,
$core.Iterable<$core.int>? weakDependency,
$core.String? syntax,
Edition? edition,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (package != null) {
$result.package = package;
}
if (dependency != null) {
$result.dependency.addAll(dependency);
}
if (messageType != null) {
$result.messageType.addAll(messageType);
}
if (enumType != null) {
$result.enumType.addAll(enumType);
}
if (service != null) {
$result.service.addAll(service);
}
if (extension != null) {
$result.extension.addAll(extension);
}
if (options != null) {
$result.options = options;
}
if (sourceCodeInfo != null) {
$result.sourceCodeInfo = sourceCodeInfo;
}
if (publicDependency != null) {
$result.publicDependency.addAll(publicDependency);
}
if (weakDependency != null) {
$result.weakDependency.addAll(weakDependency);
}
if (syntax != null) {
$result.syntax = syntax;
}
if (edition != null) {
$result.edition = edition;
}
return $result;
}