<?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>
     */
    private $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>
     */
    private $total_slot = 0;

    /**
     * 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.
     * }
     */
    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;
    }

}


