Set the project used for billing in "requester pays" Buckets.
GCS Buckets can be configured to charge the requester of an operation for all charges, as opposed to the project that owns the Bucket. Use this parameter when accessing such Buckets to control which project is charged. Note that the caller must have the right permissions in the billed project or the operation would fail.
See Also
https://cloud.google.com/storage/docs/requester-pays for a detailed description of the requester pays features, which charges are incurred by the requester, and the exact permissions that you must have to make such a request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-09 UTC."],[[["The webpage provides documentation for the `UserProject` struct within the Google Cloud Storage C++ library, which is used to set the project for billing in \"requester pays\" buckets."],["The content includes links to various versions of the `UserProject` struct documentation, ranging from version 2.11.0 to 2.37.0-rc, with version 2.37.0-rc being the latest."],["The \"requester pays\" feature allows GCS bucket owners to charge requesters for all operations instead of the project owning the bucket, and the `UserProject` struct is utilized to specify which project is charged when accessing such buckets."],["The page includes information about the `well_known_parameter_name()` function, that returns the name of a parameter, in the `UserProject` struct, with a column explaining its type and description."],["A link is provided to the official Google Cloud Storage documentation for a more detailed description of the requester pays feature, the incurred charges, and the required permissions for making such requests."]]],[]]