@@ -46,6 +46,7 @@ service ArduinoCore {
4646 // Update libraries index
4747 rpc UpdateLibrariesIndex (UpdateLibrariesIndexReq ) returns (stream UpdateLibrariesIndexResp ) {}
4848
49+ // Get the version of Arduino CLI in use.
4950 rpc Version (VersionReq ) returns (VersionResp ) {}
5051
5152 // BOARD COMMANDS
@@ -92,47 +93,69 @@ service ArduinoCore {
9293}
9394
9495message InitReq {
96+ // Start a Arduino Core Service instance that will provide only Library
97+ // Manager functionality.
9598 bool library_manager_only = 2 ;
9699}
97100
98101message InitResp {
102+ // An Arduino Core Service instance.
99103 Instance instance = 1 ;
104+ // Error messages related to any problems encountered while parsing the
105+ // platforms index files.
100106 repeated string platforms_index_errors = 2 ;
107+ // Error message if a problem was encountered while parsing the libraries
108+ // index file.
101109 string libraries_index_error = 3 ;
110+ // Progress of the downloads of platforms and libraries index files.
102111 DownloadProgress download_progress = 4 ;
112+ // Describes the current stage of the initialization.
103113 TaskProgress task_progress = 5 ;
104114}
105115
106- message DestroyReq { Instance instance = 1 ; }
116+ message DestroyReq {
117+ // The Arduino Core Service instance to destroy.
118+ Instance instance = 1 ;
119+ }
107120message DestroyResp {}
108121
109122message RescanReq {
123+ // Arduino Core Service instance from the Init response.
110124 Instance instance = 1 ;
111125}
112126
113127message RescanResp {
128+ // Error messages related to any problems encountered while parsing the
129+ // platforms index file.
114130 repeated string platforms_index_errors = 1 ;
131+ // Error message if a problem was encountered while parsing the libraries
132+ // index file.
115133 string libraries_index_error = 2 ;
116134}
117135
118136message UpdateIndexReq {
137+ // Arduino Core Service instance from the Init response.
119138 Instance instance = 1 ;
120139}
121140
122141message UpdateIndexResp {
142+ // Progress of the platforms index download.
123143 DownloadProgress download_progress = 1 ;
124144}
125145
126146message UpdateLibrariesIndexReq {
147+ // Arduino Core Service instance from the Init response.
127148 Instance instance = 1 ;
128149}
129150
130151message UpdateLibrariesIndexResp {
152+ // Progress of the libraries index download.
131153 DownloadProgress download_progress = 1 ;
132154}
133155
134156message VersionReq {}
135157
136158message VersionResp {
159+ // The version of Arduino CLI in use.
137160 string version = 1 ;
138161}
0 commit comments