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

namespace Google\Cloud\Video\Stitcher\V1;

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

/**
 * Slate object
 *
 * Generated from protobuf message <code>google.cloud.video.stitcher.v1.Slate</code>
 */
class Slate extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The name of the slate, in the form of
     * `projects/{project_number}/locations/{location}/slates/{id}`.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $name = '';
    /**
     * The URI to fetch the source content for the slate. This URI must return an
     * MP4 video with at least one audio track.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     */
    private $uri = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Output only. The name of the slate, in the form of
     *           `projects/{project_number}/locations/{location}/slates/{id}`.
     *     @type string $uri
     *           The URI to fetch the source content for the slate. This URI must return an
     *           MP4 video with at least one audio track.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Video\Stitcher\V1\Slates::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The name of the slate, in the form of
     * `projects/{project_number}/locations/{location}/slates/{id}`.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Output only. The name of the slate, in the form of
     * `projects/{project_number}/locations/{location}/slates/{id}`.
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * The URI to fetch the source content for the slate. This URI must return an
     * MP4 video with at least one audio track.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     * @return string
     */
    public function getUri()
    {
        return $this->uri;
    }

    /**
     * The URI to fetch the source content for the slate. This URI must return an
     * MP4 video with at least one audio track.
     *
     * Generated from protobuf field <code>string uri = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->uri = $var;

        return $this;
    }

}

