You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/idl_codegen.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ Defined as `google.protobuf.ServiceOptions` extensions:
85
85
6.`api_member_name`
86
86
Override delegate member name in `ServiceImpl` (default: `api_`).
87
87
7.`base_services`
88
-
Parent services to inherit from. You can specify a same-package short name (for example `Print`) or a fully-qualified name (for example `arduino.idl.Print` or `.arduino.idl.Print`).
88
+
Parent services to inherit from. You can specify a same-package short name (for example `Print`) or a fully-qualified name (for example `arduino.idl.Print` or `.arduino.idl.Print`). Generated `Service` class declarations inherit all ancestor `Ifc` classes (direct and indirect) in lineage order.
89
89
90
90
## Recommended Mapping
91
91
@@ -109,6 +109,7 @@ The generator intentionally fails when configuration is inconsistent:
109
109
3.`generate_api_class = true` rejects methods with `emit_api = true` and `source_virtual = false`
110
110
4.`generate_service_impl_class = true` with `generate_api_class = true` requires all `Service` methods to be callable on generated `Api`
111
111
5. Cyclic `base_services` references are rejected
112
+
6. If `base_services` is set and `generate_service_class = true`, each ancestor service must also set `generate_ifc_class = true`
0 commit comments