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