<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/beyondcorp/appconnectors/v1/app_connector_instance_config.proto

namespace Google\Cloud\BeyondCorp\AppConnectors\V1\NotificationConfig;

use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * The configuration for Pub/Sub messaging for the AppConnector.
 *
 * Generated from protobuf message <code>google.cloud.beyondcorp.appconnectors.v1.NotificationConfig.CloudPubSubNotificationConfig</code>
 */
class CloudPubSubNotificationConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The Pub/Sub subscription the AppConnector uses to receive notifications.
     *
     * Generated from protobuf field <code>string pubsub_subscription = 1;</code>
     */
    protected $pubsub_subscription = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $pubsub_subscription
     *           The Pub/Sub subscription the AppConnector uses to receive notifications.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Beyondcorp\Appconnectors\V1\AppConnectorInstanceConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * The Pub/Sub subscription the AppConnector uses to receive notifications.
     *
     * Generated from protobuf field <code>string pubsub_subscription = 1;</code>
     * @return string
     */
    public function getPubsubSubscription()
    {
        return $this->pubsub_subscription;
    }

    /**
     * The Pub/Sub subscription the AppConnector uses to receive notifications.
     *
     * Generated from protobuf field <code>string pubsub_subscription = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPubsubSubscription($var)
    {
        GPBUtil::checkString($var, True);
        $this->pubsub_subscription = $var;

        return $this;
    }

}


