def _handle_register_response(self, response):
if response.status.status != common_pb2.StatusCode.Value("<STR_LIT:OK>"):<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>Log.info("<STR_LIT>")<EOL>self.is_registered = True<EOL>if response.HasField("<STR_LIT>"):<EOL><INDENT>Log.info("<STR_LIT>")<EOL>self._handle_assignment_message(response.pplan)<EOL><DEDENT>else:<EOL><INDENT>Log.debug("<STR_LIT>")<EOL><DEDENT>
Called when a register response (RegisterInstanceResponse) arrives