The ObjectAccessControl resource only has two modifiable fields: entity and role. This class allows application developers to setup a PATCH message, note that some of the possible PATCH messages may result in errors from the server, for example: while it is possible to express "change the value of the
entity field" with a PATCH request, the server rejects such changes.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-09 UTC."],[[["The latest version available is 2.37.0-rc, with numerous older versions available as far back as 2.11.0 for the `ObjectAccessControlPatchBuilder` class."],["This class, `ObjectAccessControlPatchBuilder`, is used to prepare patch messages for the `ObjectAccessControl` resource, which can be used to modify entity and role fields, though some modifications may be rejected by the server."],["The class includes functions such as `BuildPatch()`, `set_entity()`, `delete_entity()`, `set_role()`, and `delete_role()`, which allow for creating and modifying the patch."],["PATCH requests are used with this class and described more in the Google Cloud Storage JSON API documentation."]]],[]]