Generated from protobuf message google.chat.v1.Space.AccessSettings
Namespace
Google \ Apps \ Chat \ V1 \ Space
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ access_state
int
Output only. Indicates the access state of the space.
↳ audience
string
Optional. The resource name of the target audience who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see Make a space discoverable to a target audience. Format: audiences/{audience} To use the default target audience for the Google Workspace organization, set to audiences/default. Reading the target audience supports: - User authentication - App authentication with administrator approval with the chat.app.spaces scope. This field is not populated when using the chat.bot scope with app authentication. Setting the target audience requires user authentication.
getAccessState
Output only. Indicates the access state of the space.
Returns
Type
Description
int
setAccessState
Output only. Indicates the access state of the space.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getAudience
Optional. The resource name of the target
audience who can discover
the space, join the space, and preview the messages in the space. If
unset, only users or Google Groups who have been individually invited or
added to the space can access it. For details, see Make a space
discoverable to a target
audience.
Format: audiences/{audience}
To use the default target audience for the Google Workspace organization,
set to audiences/default.
Reading the target audience supports:
Optional. The resource name of the target
audience who can discover
the space, join the space, and preview the messages in the space. If
unset, only users or Google Groups who have been individually invited or
added to the space can access it. For details, see Make a space
discoverable to a target
audience.
Format: audiences/{audience}
To use the default target audience for the Google Workspace organization,
set to audiences/default.
Reading the target audience supports:
[[["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-09-04 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class AccessSettings (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Chat.V1.Space.AccessSettings)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Chat.V1.Space.AccessSettings)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Chat.V1.Space.AccessSettings)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Chat.V1.Space.AccessSettings)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Chat.V1.Space.AccessSettings)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Chat.V1.Space.AccessSettings)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Chat.V1.Space.AccessSettings)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Chat.V1.Space.AccessSettings)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Chat.V1.Space.AccessSettings)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Chat.V1.Space.AccessSettings)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Chat.V1.Space.AccessSettings)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Chat.V1.Space.AccessSettings) \nReference documentation and code samples for the Google Apps Chat V1 Client class AccessSettings.\n\nRepresents the [access\nsetting](https://support.google.com/chat/answer/11971020) of the space.\n\nGenerated from protobuf message `google.chat.v1.Space.AccessSettings`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Chat \\\\ V1 \\\\ Space\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAccessState\n\nOutput only. Indicates the access state of the space.\n\n### setAccessState\n\nOutput only. Indicates the access state of the space.\n\n### getAudience\n\nOptional. The resource name of the [target\naudience](https://support.google.com/a/answer/9934697) who can discover\nthe space, join the space, and preview the messages in the space. If\nunset, only users or Google Groups who have been individually invited or\nadded to the space can access it. For details, see [Make a space\ndiscoverable to a target\naudience](https://developers.google.com/workspace/chat/space-target-audience).\n\nFormat: `audiences/{audience}`\nTo use the default target audience for the Google Workspace organization,\nset to `audiences/default`.\nReading the target audience supports:\n\n- [User\n authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)\n- [App\n authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator\n approval](https://support.google.com/a?p=chat-app-auth) with the `chat.app.spaces` scope. This field is not populated when using the `chat.bot` scope with [app\n authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). Setting the target audience requires [user\n authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).\n\n### setAudience\n\nOptional. The resource name of the [target\naudience](https://support.google.com/a/answer/9934697) who can discover\nthe space, join the space, and preview the messages in the space. If\nunset, only users or Google Groups who have been individually invited or\nadded to the space can access it. For details, see [Make a space\ndiscoverable to a target\naudience](https://developers.google.com/workspace/chat/space-target-audience).\n\nFormat: `audiences/{audience}`\nTo use the default target audience for the Google Workspace organization,\nset to `audiences/default`.\nReading the target audience supports:\n\n- [User\n authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)\n- [App\n authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator\n approval](https://support.google.com/a?p=chat-app-auth) with the `chat.app.spaces` scope. This field is not populated when using the `chat.bot` scope with [app\n authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). Setting the target audience requires [user\n authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)."]]