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

namespace Google\Cloud\AIPlatform\V1\FeatureViewSync;

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

/**
 * Summary from the Sync job. For continuous syncs, the summary is updated
 * periodically. For batch syncs, it gets updated on completion of the sync.
 *
 * Generated from protobuf message <code>google.cloud.aiplatform.v1.FeatureViewSync.SyncSummary</code>
 */
class SyncSummary extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Total number of rows synced.
     *
     * Generated from protobuf field <code>int64 row_synced = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $row_synced = 0;
    /**
     * Output only. BigQuery slot milliseconds consumed for the sync job.
     *
     * Generated from protobuf field <code>int64 total_slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $total_slot = 0;
    /**
     * Lower bound of the system time watermark for the sync job. This is only
     * set for continuously syncing feature views.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp system_watermark_time = 5;</code>
     */
    protected $system_watermark_time = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $row_synced
     *           Output only. Total number of rows synced.
     *     @type int|string $total_slot
     *           Output only. BigQuery slot milliseconds consumed for the sync job.
     *     @type \Google\Protobuf\Timestamp $system_watermark_time
     *           Lower bound of the system time watermark for the sync job. This is only
     *           set for continuously syncing feature views.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Aiplatform\V1\FeatureViewSync::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Total number of rows synced.
     *
     * Generated from protobuf field <code>int64 row_synced = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getRowSynced()
    {
        return $this->row_synced;
    }

    /**
     * Output only. Total number of rows synced.
     *
     * Generated from protobuf field <code>int64 row_synced = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setRowSynced($var)
    {
        GPBUtil::checkInt64($var);
        $this->row_synced = $var;

        return $this;
    }

    /**
     * Output only. BigQuery slot milliseconds consumed for the sync job.
     *
     * Generated from protobuf field <code>int64 total_slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getTotalSlot()
    {
        return $this->total_slot;
    }

    /**
     * Output only. BigQuery slot milliseconds consumed for the sync job.
     *
     * Generated from protobuf field <code>int64 total_slot = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setTotalSlot($var)
    {
        GPBUtil::checkInt64($var);
        $this->total_slot = $var;

        return $this;
    }

    /**
     * Lower bound of the system time watermark for the sync job. This is only
     * set for continuously syncing feature views.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp system_watermark_time = 5;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getSystemWatermarkTime()
    {
        return $this->system_watermark_time;
    }

    public function hasSystemWatermarkTime()
    {
        return isset($this->system_watermark_time);
    }

    public function clearSystemWatermarkTime()
    {
        unset($this->system_watermark_time);
    }

    /**
     * Lower bound of the system time watermark for the sync job. This is only
     * set for continuously syncing feature views.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp system_watermark_time = 5;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setSystemWatermarkTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->system_watermark_time = $var;

        return $this;
    }

}


