Equity Incentive Plans - Summary of Stock-Based Compensation Expense (Detail) - USD ($) $ in Millions |
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Sep. 30, 2023 |
Sep. 30, 2022 |
Sep. 30, 2023 |
Sep. 30, 2022 |
|
| Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] | ||||
| Stock-based compensation expense | $ 465 | $ 362 | $ 1,328 | $ 1,141 |
| Cost of revenues | ||||
| Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] | ||||
| Stock-based compensation expense | 181 | 150 | 554 | 424 |
| Research and development | ||||
| Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] | ||||
| Stock-based compensation expense | 189 | 124 | 491 | 389 |
| Selling, general and administrative | ||||
| Employee Service Share Based Compensation Allocation Of Recognized Period Costs [Line Items] | ||||
| Stock-based compensation expense | $ 95 | $ 88 | $ 283 | $ 328 |