accessState = $accessState; } /** * @return self::ACCESS_STATE_* */ public function getAccessState() { return $this->accessState; } /** * Optional. The resource name of the [target * audience](https://support.google.com/a/answer/9934697) 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](https://developers.google.com/workspace/chat/space-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](https://developers.google.com/workspace/chat/authenticate- * authorize-chat-user) - [App * authentication](https://developers.google.com/workspace/chat/authenticate- * authorize-chat-app) with [administrator * 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 * authentication](https://developers.google.com/workspace/chat/authenticate- * authorize-chat-app). Setting the target audience requires [user * authentication](https://developers.google.com/workspace/chat/authenticate- * authorize-chat-user). * * @param string $audience */ public function setAudience($audience) { $this->audience = $audience; } /** * @return string */ public function getAudience() { return $this->audience; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(AccessSettings::class, 'Google_Service_HangoutsChat_AccessSettings');