<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: proApi.proto

namespace Rv\Data\NetworkAPI\Action;

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

/**
 * Generated from protobuf message <code>rv.data.NetworkAPI.Action.API_PrerollComplete</code>
 */
class API_PrerollComplete extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>uint64 id = 1;</code>
     */
    protected $id = 0;
    /**
     * Generated from protobuf field <code>bool failed = 2;</code>
     */
    protected $failed = false;
    /**
     * Generated from protobuf field <code>uint64 latency = 3;</code>
     */
    protected $latency = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $id
     *     @type bool $failed
     *     @type int|string $latency
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\ProApi::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>uint64 id = 1;</code>
     * @return int|string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Generated from protobuf field <code>uint64 id = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkUint64($var);
        $this->id = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>bool failed = 2;</code>
     * @return bool
     */
    public function getFailed()
    {
        return $this->failed;
    }

    /**
     * Generated from protobuf field <code>bool failed = 2;</code>
     * @param bool $var
     * @return $this
     */
    public function setFailed($var)
    {
        GPBUtil::checkBool($var);
        $this->failed = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>uint64 latency = 3;</code>
     * @return int|string
     */
    public function getLatency()
    {
        return $this->latency;
    }

    /**
     * Generated from protobuf field <code>uint64 latency = 3;</code>
     * @param int|string $var
     * @return $this
     */
    public function setLatency($var)
    {
        GPBUtil::checkUint64($var);
        $this->latency = $var;

        return $this;
    }

}

