| 2113 | } |
| 2114 | |
| 2115 | TOperationState::type ClientRequestState::TOperationState() const { |
| 2116 | switch (exec_state()) { |
| 2117 | case ExecState::INITIALIZED: return TOperationState::INITIALIZED_STATE; |
| 2118 | case ExecState::PENDING: return TOperationState::PENDING_STATE; |
| 2119 | case ExecState::RUNNING: return TOperationState::RUNNING_STATE; |
| 2120 | case ExecState::FINISHED: return TOperationState::FINISHED_STATE; |
| 2121 | case ExecState::ERROR: return TOperationState::ERROR_STATE; |
| 2122 | default: { |
| 2123 | DCHECK(false) << "Add explicit translation for all used ExecState values"; |
| 2124 | return TOperationState::ERROR_STATE; |
| 2125 | } |
| 2126 | } |
| 2127 | } |
| 2128 | |
| 2129 | beeswax::QueryState::type ClientRequestState::BeeswaxQueryState() const { |
| 2130 | switch (exec_state()) { |