<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/dataflow/v1beta3/streaming.proto

namespace Google\Cloud\Dataflow\V1beta3;

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

/**
 * Identifies the location of a custom souce.
 *
 * Generated from protobuf message <code>google.dataflow.v1beta3.CustomSourceLocation</code>
 */
class CustomSourceLocation extends \Google\Protobuf\Internal\Message
{
    /**
     * Whether this source is stateful.
     *
     * Generated from protobuf field <code>bool stateful = 1;</code>
     */
    private $stateful = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $stateful
     *           Whether this source is stateful.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Dataflow\V1Beta3\Streaming::initOnce();
        parent::__construct($data);
    }

    /**
     * Whether this source is stateful.
     *
     * Generated from protobuf field <code>bool stateful = 1;</code>
     * @return bool
     */
    public function getStateful()
    {
        return $this->stateful;
    }

    /**
     * Whether this source is stateful.
     *
     * Generated from protobuf field <code>bool stateful = 1;</code>
     * @param bool $var
     * @return $this
     */
    public function setStateful($var)
    {
        GPBUtil::checkBool($var);
        $this->stateful = $var;

        return $this;
    }

}

