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

namespace Google\Cloud\BackupDR\V1;

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

/**
 * Point in time recovery settings of the backup configuration resource.
 *
 * Generated from protobuf message <code>google.cloud.backupdr.v1.PitrSettings</code>
 */
class PitrSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Number of days to retain the backup.
     *
     * Generated from protobuf field <code>int32 retention_days = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $retention_days = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $retention_days
     *           Output only. Number of days to retain the backup.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Backupdr\V1\ProtectionSummary::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Number of days to retain the backup.
     *
     * Generated from protobuf field <code>int32 retention_days = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getRetentionDays()
    {
        return $this->retention_days;
    }

    /**
     * Output only. Number of days to retain the backup.
     *
     * Generated from protobuf field <code>int32 retention_days = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setRetentionDays($var)
    {
        GPBUtil::checkInt32($var);
        $this->retention_days = $var;

        return $this;
    }

}

