<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/photos/types/media_item.proto

namespace Google\Photos\Types;

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

/**
 * Metadata that is specific to a video, for example, fps and processing status.
 * Some of these fields may be null or not included.
 *
 * Generated from protobuf message <code>google.photos.types.Video</code>
 */
class Video extends \Google\Protobuf\Internal\Message
{
    /**
     * Brand of the camera with which the video was taken.
     *
     * Generated from protobuf field <code>string camera_make = 1;</code>
     */
    protected $camera_make = '';
    /**
     * Model of the camera with which the video was taken.
     *
     * Generated from protobuf field <code>string camera_model = 2;</code>
     */
    protected $camera_model = '';
    /**
     * Frame rate of the video.
     *
     * Generated from protobuf field <code>double fps = 3;</code>
     */
    protected $fps = 0.0;
    /**
     * Processing status of the video.
     *
     * Generated from protobuf field <code>.google.photos.types.VideoProcessingStatus status = 4;</code>
     */
    protected $status = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $camera_make
     *           Brand of the camera with which the video was taken.
     *     @type string $camera_model
     *           Model of the camera with which the video was taken.
     *     @type float $fps
     *           Frame rate of the video.
     *     @type int $status
     *           Processing status of the video.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Photos\Types\MediaItem::initOnce();
        parent::__construct($data);
    }

    /**
     * Brand of the camera with which the video was taken.
     *
     * Generated from protobuf field <code>string camera_make = 1;</code>
     * @return string
     */
    public function getCameraMake()
    {
        return $this->camera_make;
    }

    /**
     * Brand of the camera with which the video was taken.
     *
     * Generated from protobuf field <code>string camera_make = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCameraMake($var)
    {
        GPBUtil::checkString($var, True);
        $this->camera_make = $var;

        return $this;
    }

    /**
     * Model of the camera with which the video was taken.
     *
     * Generated from protobuf field <code>string camera_model = 2;</code>
     * @return string
     */
    public function getCameraModel()
    {
        return $this->camera_model;
    }

    /**
     * Model of the camera with which the video was taken.
     *
     * Generated from protobuf field <code>string camera_model = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setCameraModel($var)
    {
        GPBUtil::checkString($var, True);
        $this->camera_model = $var;

        return $this;
    }

    /**
     * Frame rate of the video.
     *
     * Generated from protobuf field <code>double fps = 3;</code>
     * @return float
     */
    public function getFps()
    {
        return $this->fps;
    }

    /**
     * Frame rate of the video.
     *
     * Generated from protobuf field <code>double fps = 3;</code>
     * @param float $var
     * @return $this
     */
    public function setFps($var)
    {
        GPBUtil::checkDouble($var);
        $this->fps = $var;

        return $this;
    }

    /**
     * Processing status of the video.
     *
     * Generated from protobuf field <code>.google.photos.types.VideoProcessingStatus status = 4;</code>
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Processing status of the video.
     *
     * Generated from protobuf field <code>.google.photos.types.VideoProcessingStatus status = 4;</code>
     * @param int $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkEnum($var, \Google\Photos\Types\VideoProcessingStatus::class);
        $this->status = $var;

        return $this;
    }

}

