Get desktop application:
View/edit binary Protocol Buffers messages
Implicitly includes any of the above methods that are not listed in the backend service.
(no methods)
Older notetypes did not store their original stock kind, so we allow the UI to pass in an override to use when missing, or for tests.
Used as request type in: NotetypesService.ChangeNotetype
Used as field type in:
-1 is used to represent null, as nullable repeated fields are unwieldy in protobuf
Used as request type in: NotetypesService.AddNotetype, NotetypesService.UpdateNotetype
Used as response type in: NotetypesService.GetNotetype
Used in:
This is now stored separately; retrieve with DefaultsForAdding()
Only set on notetypes created with Anki 2.1.62+.
the id in the source collection for imported notetypes (Anki 23.10)
Used in:
Used in:
Used in:
Used in:
Used in:
used for merging notetypes on import (Anki 23.10)
Can be used to uniquely identify required fields.
Used in:
,Used in:
used for merging notetypes on import (Anki 23.10)
Used as request type in: media.MediaService.ExtractStaticMediaFiles, notes.NotesService.DefaultDeckForNotetype, notes.NotesService.NewNote, NotetypesService.GetClozeFieldOrds, NotetypesService.GetFieldNames, NotetypesService.GetNotetype, NotetypesService.GetNotetypeLegacy, NotetypesService.RemoveNotetype
Used as response type in: notes.NotesService.GetSingleNotetypeOfNotes, NotetypesService.AddOrUpdateNotetype, NotetypesService.GetNotetypeIdByName
Used as field type in:
Used in:
Used in:
Used in:
,This is decoupled from Kind to allow us to evolve notetypes over time (eg an older notetype might require different JS), and allow us to store a type even for notetypes that we don't add by default. Code should not assume that the entries here are always +1 from Kind.
Used in: