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

namespace PhpWA\Protocol\Proto;

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

/**
 * Generated from protobuf message <code>proto.MediaNotifyMessage</code>
 */
class MediaNotifyMessage extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>optional string expressPathUrl = 1;</code>
     */
    protected $expressPathUrl = null;
    /**
     * Generated from protobuf field <code>optional bytes fileEncSha256 = 2;</code>
     */
    protected $fileEncSha256 = null;
    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 3;</code>
     */
    protected $fileLength = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $expressPathUrl
     *     @type string $fileEncSha256
     *     @type int|string $fileLength
     * }
     */
    public function __construct($data = NULL) {
        \PhpWA\Protocol\Proto\Metadata\WAProto::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>optional string expressPathUrl = 1;</code>
     * @return string
     */
    public function getExpressPathUrl()
    {
        return isset($this->expressPathUrl) ? $this->expressPathUrl : '';
    }

    public function hasExpressPathUrl()
    {
        return isset($this->expressPathUrl);
    }

    public function clearExpressPathUrl()
    {
        unset($this->expressPathUrl);
    }

    /**
     * Generated from protobuf field <code>optional string expressPathUrl = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setExpressPathUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->expressPathUrl = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional bytes fileEncSha256 = 2;</code>
     * @return string
     */
    public function getFileEncSha256()
    {
        return isset($this->fileEncSha256) ? $this->fileEncSha256 : '';
    }

    public function hasFileEncSha256()
    {
        return isset($this->fileEncSha256);
    }

    public function clearFileEncSha256()
    {
        unset($this->fileEncSha256);
    }

    /**
     * Generated from protobuf field <code>optional bytes fileEncSha256 = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setFileEncSha256($var)
    {
        GPBUtil::checkString($var, False);
        $this->fileEncSha256 = $var;

        return $this;
    }

    /**
     * Generated from protobuf field <code>optional uint64 fileLength = 3;</code>
     * @return int|string
     */
    public function getFileLength()
    {
        return isset($this->fileLength) ? $this->fileLength : 0;
    }

    public function hasFileLength()
    {
        return isset($this->fileLength);
    }

    public function clearFileLength()
    {
        unset($this->fileLength);
    }

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

        return $this;
    }

}

