<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: site/api_file_download.proto

namespace Zaly\Proto\Site;

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

/**
 * Generated from protobuf message <code>site.ApiFileDownloadResponse</code>
 */
class ApiFileDownloadResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Generated from protobuf field <code>string contentType = 3;</code>
     */
    private $contentType = '';
    protected $ret;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $file
     *     @type string $fileBase64
     *     @type string $contentType
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Site\ApiFileDownload::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>bytes file = 1;</code>
     * @return string
     */
    public function getFile()
    {
        return $this->readOneof(1);
    }

    /**
     * Generated from protobuf field <code>bytes file = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setFile($var)
    {
        GPBUtil::checkString($var, False);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>string fileBase64 = 2;</code>
     * @return string
     */
    public function getFileBase64()
    {
        return $this->readOneof(2);
    }

    /**
     * Generated from protobuf field <code>string fileBase64 = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setFileBase64($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>string contentType = 3;</code>
     * @return string
     */
    public function getContentType()
    {
        return $this->contentType;
    }

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

        return $this;
    }

    /**
     * @return string
     */
    public function getRet()
    {
        return $this->whichOneof("ret");
    }

}

