3.8.0-rc 3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 2.48.0-rc 2.47.1 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.39.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.26.0 2.25.1 2.24.0 2.23.0 2.22.1 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.1 2.14.0 2.13.0 2.12.0 2.11.0 Wraps the objectAccessControl resource in Google Cloud Storage.
objectAccessControl describes the access to a bucket for a single entity, where the entity might be a user, group, or other role.

###### See Also

<https://cloud.google.com/storage/docs/json_api/v1/objectAccessControls> for an authoritative source of field definitions.

## Constructors

### ObjectAccessControl()

## Functions

### bucket() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string const &` |   |

### object() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string const &` |   |

### generation() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::int64_t` |   |

### domain() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string const &` |   |

### email() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string const &` |   |

### entity() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string const &` |   |

### entity_id() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string const &` |   |

### etag() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string const &` |   |

### id() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string const &` |   |

### kind() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string const &` |   |

### has_project_team() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### project_team() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ProjectTeam const &` |   |

### project_team_as_optional() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::optional< ProjectTeam > const &` |   |

### role() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string const &` |   |

### self_link() const

Accessors.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string const &` |   |

### set_entity(std::string)

Modifiers for mutable attributes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `std::string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### set_role(std::string)

Modifiers for mutable attributes.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `std::string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### set_bucket(std::string)

Testing modifiers.
The following attributes cannot be changed when updating, creating, or patching an [ObjectAccessControl](https://docs.cloud.google.com/cpp/docs/reference/storage/latest/classgoogle_1_1cloud_1_1storage_1_1ObjectAccessControl) resource.

However, it is useful to change them in tests, e.g., when mocking the results from the C++ client library.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `std::string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### set_object(std::string)

Testing modifiers.
The following attributes cannot be changed when updating, creating, or patching an [ObjectAccessControl](https://docs.cloud.google.com/cpp/docs/reference/storage/latest/classgoogle_1_1cloud_1_1storage_1_1ObjectAccessControl) resource.

However, it is useful to change them in tests, e.g., when mocking the results from the C++ client library.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `std::string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### set_generation(std::int64_t)

Testing modifiers.
The following attributes cannot be changed when updating, creating, or patching an [ObjectAccessControl](https://docs.cloud.google.com/cpp/docs/reference/storage/latest/classgoogle_1_1cloud_1_1storage_1_1ObjectAccessControl) resource.

However, it is useful to change them in tests, e.g., when mocking the results from the C++ client library.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `std::int64_t` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### set_domain(std::string)

Testing modifiers.
The following attributes cannot be changed when updating, creating, or patching an [ObjectAccessControl](https://docs.cloud.google.com/cpp/docs/reference/storage/latest/classgoogle_1_1cloud_1_1storage_1_1ObjectAccessControl) resource.

However, it is useful to change them in tests, e.g., when mocking the results from the C++ client library.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `std::string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### set_email(std::string)

Testing modifiers.
The following attributes cannot be changed when updating, creating, or patching an [ObjectAccessControl](https://docs.cloud.google.com/cpp/docs/reference/storage/latest/classgoogle_1_1cloud_1_1storage_1_1ObjectAccessControl) resource.

However, it is useful to change them in tests, e.g., when mocking the results from the C++ client library.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `std::string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### set_entity_id(std::string)

Testing modifiers.
The following attributes cannot be changed when updating, creating, or patching an [ObjectAccessControl](https://docs.cloud.google.com/cpp/docs/reference/storage/latest/classgoogle_1_1cloud_1_1storage_1_1ObjectAccessControl) resource.

However, it is useful to change them in tests, e.g., when mocking the results from the C++ client library.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `std::string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### set_etag(std::string)

Testing modifiers.
The following attributes cannot be changed when updating, creating, or patching an [ObjectAccessControl](https://docs.cloud.google.com/cpp/docs/reference/storage/latest/classgoogle_1_1cloud_1_1storage_1_1ObjectAccessControl) resource.

However, it is useful to change them in tests, e.g., when mocking the results from the C++ client library.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `std::string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### set_id(std::string)

Testing modifiers.
The following attributes cannot be changed when updating, creating, or patching an [ObjectAccessControl](https://docs.cloud.google.com/cpp/docs/reference/storage/latest/classgoogle_1_1cloud_1_1storage_1_1ObjectAccessControl) resource.

However, it is useful to change them in tests, e.g., when mocking the results from the C++ client library.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `std::string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### set_kind(std::string)

Testing modifiers.
The following attributes cannot be changed when updating, creating, or patching an [ObjectAccessControl](https://docs.cloud.google.com/cpp/docs/reference/storage/latest/classgoogle_1_1cloud_1_1storage_1_1ObjectAccessControl) resource.

However, it is useful to change them in tests, e.g., when mocking the results from the C++ client library.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `std::string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### set_project_team(ProjectTeam)

Testing modifiers.
The following attributes cannot be changed when updating, creating, or patching an [ObjectAccessControl](https://docs.cloud.google.com/cpp/docs/reference/storage/latest/classgoogle_1_1cloud_1_1storage_1_1ObjectAccessControl) resource.

However, it is useful to change them in tests, e.g., when mocking the results from the C++ client library.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `ProjectTeam` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### set_self_link(std::string)

Testing modifiers.
The following attributes cannot be changed when updating, creating, or patching an [ObjectAccessControl](https://docs.cloud.google.com/cpp/docs/reference/storage/latest/classgoogle_1_1cloud_1_1storage_1_1ObjectAccessControl) resource.

However, it is useful to change them in tests, e.g., when mocking the results from the C++ client library.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `v` | `std::string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ObjectAccessControl &` |   |

### static ROLE_OWNER()

Well-known values for the role() field..

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string` |   |

### static ROLE_READER()

Well-known values for the role() field..

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string` |   |

### static TEAM_EDITORS()

Well-known values for the project_team().team field..

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string` |   |

### static TEAM_OWNERS()

Well-known values for the project_team().team field..

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string` |   |

### static TEAM_VIEWERS()

Well-known values for the project_team().team field..

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `std::string` |   |