name = $name; } /** * @return string */ public function getName() { return $this->name; } /** * The types of notifications that will be sent to the Pub/Sub topic. To stop * receiving notifications entirely, use * NotificationSettings.UpdateNotificationSetting with an empty * notification_types or set the pubsub_topic to an empty string. * * @param string[] $notificationTypes */ public function setNotificationTypes($notificationTypes) { $this->notificationTypes = $notificationTypes; } /** * @return string[] */ public function getNotificationTypes() { return $this->notificationTypes; } /** * Optional. The Google Pub/Sub topic that will receive notifications when * locations managed by this account are updated. If unset, no notifications * will be posted. The account mybusiness-api- * pubsub@system.gserviceaccount.com must have at least Publish permissions on * the Pub/Sub topic. * * @param string $pubsubTopic */ public function setPubsubTopic($pubsubTopic) { $this->pubsubTopic = $pubsubTopic; } /** * @return string */ public function getPubsubTopic() { return $this->pubsubTopic; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(NotificationSetting::class, 'Google_Service_MyBusinessNotificationSettings_NotificationSetting');