eventTypes = $eventTypes; } /** * @return string[] */ public function getEventTypes() { return $this->eventTypes; } /** * Required. The desired format of the notification message payloads. * * Accepted values: PAYLOAD_FORMAT_UNSPECIFIED, NONE, JSON * * @param self::PAYLOAD_FORMAT_* $payloadFormat */ public function setPayloadFormat($payloadFormat) { $this->payloadFormat = $payloadFormat; } /** * @return self::PAYLOAD_FORMAT_* */ public function getPayloadFormat() { return $this->payloadFormat; } /** * Required. The `Topic.name` of the Pub/Sub topic to which to publish * notifications. Must be of the format: `projects/{project}/topics/{topic}`. * Not matching this format results in an INVALID_ARGUMENT error. * * @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(NotificationConfig::class, 'Google_Service_Storagetransfer_NotificationConfig');