···146146// UpdateIndexStatusRequest is the request to the UpdateIndexStatus RPC.
147147message UpdateIndexStatusRequest {
148148 message Repository {
149149+ enum State {
150150+ STATE_UNSPECIFIED = 0;
151151+ STATE_SUCCESS = 1;
152152+ STATE_FAILURE = 2;
153153+ }
154154+149155 // repo_id is the Sourcegraph repository ID.
150156 uint32 repo_id = 1;
151157···154160155161 // index_time_unix is the unix timestamp for when the index was created.
156162 int64 index_time_unix = 3;
163163+164164+ // state describes the outcome of the most recent indexing attempt.
165165+ //
166166+ // Unspecified is treated as success by the server for backwards compatibility
167167+ // with older clients that only reported successful indexing.
168168+ State state = 4;
169169+170170+ // failure_message describes the most recent indexing failure when state is failure.
171171+ string failure_message = 5;
157172 }
158173159174 repeated Repository repositories = 1;