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

namespace Google\Cloud\BigQuery\DataTransfer\V1;

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

/**
 * A response to indicate whether data transfer service is enabled
 * for the project.
 *
 * Generated from protobuf message <code>google.cloud.bigquery.datatransfer.v1.IsDataTransferServiceEnabledResponse</code>
 */
class IsDataTransferServiceEnabledResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Indicates whether the data transfer service is enabled for the project.
     *
     * Generated from protobuf field <code>bool enabled = 1;</code>
     */
    private $enabled = false;
    /**
     * A string that contains additional information about why the service is
     * deemed not enabled. This is only available when `enable` is false.
     *
     * Generated from protobuf field <code>string reason = 2;</code>
     */
    private $reason = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $enabled
     *           Indicates whether the data transfer service is enabled for the project.
     *     @type string $reason
     *           A string that contains additional information about why the service is
     *           deemed not enabled. This is only available when `enable` is false.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Bigquery\Datatransfer\V1\Datatransfer::initOnce();
        parent::__construct($data);
    }

    /**
     * Indicates whether the data transfer service is enabled for the project.
     *
     * Generated from protobuf field <code>bool enabled = 1;</code>
     * @return bool
     */
    public function getEnabled()
    {
        return $this->enabled;
    }

    /**
     * Indicates whether the data transfer service is enabled for the project.
     *
     * Generated from protobuf field <code>bool enabled = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setEnabled($var)
    {
        GPBUtil::checkBool($var);
        $this->enabled = $var;

        return $this;
    }

    /**
     * A string that contains additional information about why the service is
     * deemed not enabled. This is only available when `enable` is false.
     *
     * Generated from protobuf field <code>string reason = 2;</code>
     * @return string
     */
    public function getReason()
    {
        return $this->reason;
    }

    /**
     * A string that contains additional information about why the service is
     * deemed not enabled. This is only available when `enable` is false.
     *
     * Generated from protobuf field <code>string reason = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setReason($var)
    {
        GPBUtil::checkString($var, True);
        $this->reason = $var;

        return $this;
    }

}

