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

namespace Google\Cloud\AIPlatform\V1\ExportFeatureValuesRequest;

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

/**
 * Describes exporting the latest Feature values of all entities of the
 * EntityType between [start_time, snapshot_time].
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.ExportFeatureValuesRequest.SnapshotExport</code>
 */
class SnapshotExport extends \Google\Protobuf\Internal\Message
{
    /**
     * Exports Feature values as of this timestamp. If not set,
     * retrieve values as of now. Timestamp, if present, must not have higher
     * than millisecond precision.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp snapshot_time = 1;</code>
     */
    private $snapshot_time = null;
    /**
     * Excludes Feature values with feature generation timestamp before this
     * timestamp. If not set, retrieve oldest values kept in Feature Store.
     * Timestamp, if present, must not have higher than millisecond precision.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 2;</code>
     */
    private $start_time = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Protobuf\Timestamp $snapshot_time
     *           Exports Feature values as of this timestamp. If not set,
     *           retrieve values as of now. Timestamp, if present, must not have higher
     *           than millisecond precision.
     *     @type \Google\Protobuf\Timestamp $start_time
     *           Excludes Feature values with feature generation timestamp before this
     *           timestamp. If not set, retrieve oldest values kept in Feature Store.
     *           Timestamp, if present, must not have higher than millisecond precision.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeaturestoreService::initOnce();
        parent::__construct($data);
    }

    /**
     * Exports Feature values as of this timestamp. If not set,
     * retrieve values as of now. Timestamp, if present, must not have higher
     * than millisecond precision.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp snapshot_time = 1;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getSnapshotTime()
    {
        return $this->snapshot_time;
    }

    public function hasSnapshotTime()
    {
        return isset($this->snapshot_time);
    }

    public function clearSnapshotTime()
    {
        unset($this->snapshot_time);
    }

    /**
     * Exports Feature values as of this timestamp. If not set,
     * retrieve values as of now. Timestamp, if present, must not have higher
     * than millisecond precision.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp snapshot_time = 1;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setSnapshotTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->snapshot_time = $var;

        return $this;
    }

    /**
     * Excludes Feature values with feature generation timestamp before this
     * timestamp. If not set, retrieve oldest values kept in Feature Store.
     * Timestamp, if present, must not have higher than millisecond precision.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 2;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getStartTime()
    {
        return $this->start_time;
    }

    public function hasStartTime()
    {
        return isset($this->start_time);
    }

    public function clearStartTime()
    {
        unset($this->start_time);
    }

    /**
     * Excludes Feature values with feature generation timestamp before this
     * timestamp. If not set, retrieve oldest values kept in Feature Store.
     * Timestamp, if present, must not have higher than millisecond precision.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp start_time = 2;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setStartTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->start_time = $var;

        return $this;
    }

}


