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

namespace Google\Cloud\VMMigration\V1;

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

/**
 * ReplicatingStep contains specific step details.
 *
 * Generated from protobuf message <code>google.cloud.vmmigration.v1.ReplicatingStep</code>
 */
class ReplicatingStep extends \Google\Protobuf\Internal\Message
{
    /**
     * Total bytes to be handled in the step.
     *
     * Generated from protobuf field <code>int64 total_bytes = 1;</code>
     */
    private $total_bytes = 0;
    /**
     * Replicated bytes in the step.
     *
     * Generated from protobuf field <code>int64 replicated_bytes = 2;</code>
     */
    private $replicated_bytes = 0;
    /**
     * The source disks replication rate for the last 2 minutes in bytes per
     * second.
     *
     * Generated from protobuf field <code>int64 last_two_minutes_average_bytes_per_second = 3;</code>
     */
    private $last_two_minutes_average_bytes_per_second = 0;
    /**
     * The source disks replication rate for the last 30 minutes in bytes per
     * second.
     *
     * Generated from protobuf field <code>int64 last_thirty_minutes_average_bytes_per_second = 4;</code>
     */
    private $last_thirty_minutes_average_bytes_per_second = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $total_bytes
     *           Total bytes to be handled in the step.
     *     @type int|string $replicated_bytes
     *           Replicated bytes in the step.
     *     @type int|string $last_two_minutes_average_bytes_per_second
     *           The source disks replication rate for the last 2 minutes in bytes per
     *           second.
     *     @type int|string $last_thirty_minutes_average_bytes_per_second
     *           The source disks replication rate for the last 30 minutes in bytes per
     *           second.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Vmmigration\V1\Vmmigration::initOnce();
        parent::__construct($data);
    }

    /**
     * Total bytes to be handled in the step.
     *
     * Generated from protobuf field <code>int64 total_bytes = 1;</code>
     * @return int|string
     */
    public function getTotalBytes()
    {
        return $this->total_bytes;
    }

    /**
     * Total bytes to be handled in the step.
     *
     * Generated from protobuf field <code>int64 total_bytes = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setTotalBytes($var)
    {
        GPBUtil::checkInt64($var);
        $this->total_bytes = $var;

        return $this;
    }

    /**
     * Replicated bytes in the step.
     *
     * Generated from protobuf field <code>int64 replicated_bytes = 2;</code>
     * @return int|string
     */
    public function getReplicatedBytes()
    {
        return $this->replicated_bytes;
    }

    /**
     * Replicated bytes in the step.
     *
     * Generated from protobuf field <code>int64 replicated_bytes = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setReplicatedBytes($var)
    {
        GPBUtil::checkInt64($var);
        $this->replicated_bytes = $var;

        return $this;
    }

    /**
     * The source disks replication rate for the last 2 minutes in bytes per
     * second.
     *
     * Generated from protobuf field <code>int64 last_two_minutes_average_bytes_per_second = 3;</code>
     * @return int|string
     */
    public function getLastTwoMinutesAverageBytesPerSecond()
    {
        return $this->last_two_minutes_average_bytes_per_second;
    }

    /**
     * The source disks replication rate for the last 2 minutes in bytes per
     * second.
     *
     * Generated from protobuf field <code>int64 last_two_minutes_average_bytes_per_second = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setLastTwoMinutesAverageBytesPerSecond($var)
    {
        GPBUtil::checkInt64($var);
        $this->last_two_minutes_average_bytes_per_second = $var;

        return $this;
    }

    /**
     * The source disks replication rate for the last 30 minutes in bytes per
     * second.
     *
     * Generated from protobuf field <code>int64 last_thirty_minutes_average_bytes_per_second = 4;</code>
     * @return int|string
     */
    public function getLastThirtyMinutesAverageBytesPerSecond()
    {
        return $this->last_thirty_minutes_average_bytes_per_second;
    }

    /**
     * The source disks replication rate for the last 30 minutes in bytes per
     * second.
     *
     * Generated from protobuf field <code>int64 last_thirty_minutes_average_bytes_per_second = 4;</code>
     * @param int|string $var
     * @return $this
     */
    public function setLastThirtyMinutesAverageBytesPerSecond($var)
    {
        GPBUtil::checkInt64($var);
        $this->last_thirty_minutes_average_bytes_per_second = $var;

        return $this;
    }

}

