ServiceDescriptorProto constructor

ServiceDescriptorProto({
  1. String? name,
  2. Iterable<MethodDescriptorProto>? method,
  3. 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;
}