ServiceDescriptorProto constructor
ServiceDescriptorProto({
- String? name,
- Iterable<
MethodDescriptorProto> ? method, - ServiceOptions? options,
Implementation
factory ServiceDescriptorProto({
$core.String? name,
$core.Iterable<MethodDescriptorProto>? method,
ServiceOptions? options,
}) {
final $result = create();
if (name != null) {
$result.name = name;
}
if (method != null) {
$result.method.addAll(method);
}
if (options != null) {
$result.options = options;
}
return $result;
}