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

namespace Google\Cloud\Datastream\V1;

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

/**
 * Response for manually initiating a backfill job for a specific stream object.
 *
 * Generated from protobuf message <code>google.cloud.datastream.v1.StartBackfillJobResponse</code>
 */
class StartBackfillJobResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The stream object resource a backfill job was started for.
     *
     * Generated from protobuf field <code>.google.cloud.datastream.v1.StreamObject object = 1;</code>
     */
    private $object = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Datastream\V1\StreamObject $object
     *           The stream object resource a backfill job was started for.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datastream\V1\Datastream::initOnce();
        parent::__construct($data);
    }

    /**
     * The stream object resource a backfill job was started for.
     *
     * Generated from protobuf field <code>.google.cloud.datastream.v1.StreamObject object = 1;</code>
     * @return \Google\Cloud\Datastream\V1\StreamObject|null
     */
    public function getObject()
    {
        return $this->object;
    }

    public function hasObject()
    {
        return isset($this->object);
    }

    public function clearObject()
    {
        unset($this->object);
    }

    /**
     * The stream object resource a backfill job was started for.
     *
     * Generated from protobuf field <code>.google.cloud.datastream.v1.StreamObject object = 1;</code>
     * @param \Google\Cloud\Datastream\V1\StreamObject $var
     * @return $this
     */
    public function setObject($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Datastream\V1\StreamObject::class);
        $this->object = $var;

        return $this;
    }

}

