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

namespace Google\Cloud\PrivilegedAccessManager\V1\Grant\Timeline\Event;

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

/**
 * An event representing that the grant has been scheduled to be
 * activated later.
 *
 * Generated from protobuf message <code>google.cloud.privilegedaccessmanager.v1.Grant.Timeline.Event.Scheduled</code>
 */
class Scheduled extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The time at which the access is granted.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp scheduled_activation_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $scheduled_activation_time = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Timestamp $scheduled_activation_time
     *           Output only. The time at which the access is granted.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Privilegedaccessmanager\V1\Privilegedaccessmanager::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The time at which the access is granted.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp scheduled_activation_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getScheduledActivationTime()
    {
        return $this->scheduled_activation_time;
    }

    public function hasScheduledActivationTime()
    {
        return isset($this->scheduled_activation_time);
    }

    public function clearScheduledActivationTime()
    {
        unset($this->scheduled_activation_time);
    }

    /**
     * Output only. The time at which the access is granted.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp scheduled_activation_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setScheduledActivationTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->scheduled_activation_time = $var;

        return $this;
    }

}


