attributes = $attributes; } /** * @return string[] */ public function getAttributes() { return $this->attributes; } /** * The message payload for PubsubMessage. Pubsub message must contain either * non-empty data, or at least one attribute. * * @param string $data */ public function setData($data) { $this->data = $data; } /** * @return string */ public function getData() { return $this->data; } /** * Required. The name of the Cloud Pub/Sub topic to which messages will be * published when a job is delivered. The topic name must be in the same * format as required by Pub/Sub's [PublishRequest.name](https://cloud.google. * com/pubsub/docs/reference/rpc/google.pubsub.v1#publishrequest), for example * `projects/PROJECT_ID/topics/TOPIC_ID`. The topic must be in the same * project as the Cloud Scheduler job. * * @param string $topicName */ public function setTopicName($topicName) { $this->topicName = $topicName; } /** * @return string */ public function getTopicName() { return $this->topicName; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PubsubTarget::class, 'Google_Service_CloudScheduler_PubsubTarget');