Income Taxes - Summary of Activity Related to Gross Unrecognized Tax Benefits (Details) - USD ($) $ in Millions |
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2022 |
Dec. 31, 2021 |
Dec. 31, 2020 |
|
| Reconciliation of Unrecognized Tax Benefits, Excluding Amounts Pertaining to Examined Tax Returns [Roll Forward] | |||
| Beginning Balance | $ 5,158 | $ 3,837 | $ 3,377 |
| Increases related to prior year tax positions | 253 | 529 | 372 |
| Decreases related to prior year tax positions | (437) | (263) | (557) |
| Decreases related to settlement with tax authorities | (140) | (329) | (45) |
| Increases related to current year tax positions | 2,221 | 1,384 | 690 |
| Ending Balance | $ 7,055 | $ 5,158 | $ 3,837 |