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

namespace Google\Cloud\BackupDR\V1;

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

/**
 * Response message for restoring from a Backup.
 *
 * Generated from protobuf message <code>google.cloud.backupdr.v1.RestoreBackupResponse</code>
 */
class RestoreBackupResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Details of the target resource created/modified as part of restore.
     *
     * Generated from protobuf field <code>.google.cloud.backupdr.v1.TargetResource target_resource = 1;</code>
     */
    protected $target_resource = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\BackupDR\V1\TargetResource $target_resource
     *           Details of the target resource created/modified as part of restore.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Backupdr\V1\Backupvault::initOnce();
        parent::__construct($data);
    }

    /**
     * Details of the target resource created/modified as part of restore.
     *
     * Generated from protobuf field <code>.google.cloud.backupdr.v1.TargetResource target_resource = 1;</code>
     * @return \Google\Cloud\BackupDR\V1\TargetResource|null
     */
    public function getTargetResource()
    {
        return $this->target_resource;
    }

    public function hasTargetResource()
    {
        return isset($this->target_resource);
    }

    public function clearTargetResource()
    {
        unset($this->target_resource);
    }

    /**
     * Details of the target resource created/modified as part of restore.
     *
     * Generated from protobuf field <code>.google.cloud.backupdr.v1.TargetResource target_resource = 1;</code>
     * @param \Google\Cloud\BackupDR\V1\TargetResource $var
     * @return $this
     */
    public function setTargetResource($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\BackupDR\V1\TargetResource::class);
        $this->target_resource = $var;

        return $this;
    }

}

