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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.StorageConfig</code>
 */
class StorageConfig extends \Google\Protobuf\Internal\Message
{
    protected $provider;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Livekit\S3Upload $s3
     *     @type \Livekit\GCPUpload $gcp
     *     @type \Livekit\AzureBlobUpload $azure
     *     @type \Livekit\AliOSSUpload $aliOSS
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitEgress::initOnce();
        parent::__construct($data);
    }

    /**
     * Generated from protobuf field <code>.livekit.S3Upload s3 = 1;</code>
     * @return \Livekit\S3Upload|null
     */
    public function getS3()
    {
        return $this->readOneof(1);
    }

    public function hasS3()
    {
        return $this->hasOneof(1);
    }

    /**
     * Generated from protobuf field <code>.livekit.S3Upload s3 = 1;</code>
     * @param \Livekit\S3Upload $var
     * @return $this
     */
    public function setS3($var)
    {
        GPBUtil::checkMessage($var, \Livekit\S3Upload::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.GCPUpload gcp = 2;</code>
     * @return \Livekit\GCPUpload|null
     */
    public function getGcp()
    {
        return $this->readOneof(2);
    }

    public function hasGcp()
    {
        return $this->hasOneof(2);
    }

    /**
     * Generated from protobuf field <code>.livekit.GCPUpload gcp = 2;</code>
     * @param \Livekit\GCPUpload $var
     * @return $this
     */
    public function setGcp($var)
    {
        GPBUtil::checkMessage($var, \Livekit\GCPUpload::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.AzureBlobUpload azure = 3;</code>
     * @return \Livekit\AzureBlobUpload|null
     */
    public function getAzure()
    {
        return $this->readOneof(3);
    }

    public function hasAzure()
    {
        return $this->hasOneof(3);
    }

    /**
     * Generated from protobuf field <code>.livekit.AzureBlobUpload azure = 3;</code>
     * @param \Livekit\AzureBlobUpload $var
     * @return $this
     */
    public function setAzure($var)
    {
        GPBUtil::checkMessage($var, \Livekit\AzureBlobUpload::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Generated from protobuf field <code>.livekit.AliOSSUpload aliOSS = 4;</code>
     * @return \Livekit\AliOSSUpload|null
     */
    public function getAliOSS()
    {
        return $this->readOneof(4);
    }

    public function hasAliOSS()
    {
        return $this->hasOneof(4);
    }

    /**
     * Generated from protobuf field <code>.livekit.AliOSSUpload aliOSS = 4;</code>
     * @param \Livekit\AliOSSUpload $var
     * @return $this
     */
    public function setAliOSS($var)
    {
        GPBUtil::checkMessage($var, \Livekit\AliOSSUpload::class);
        $this->writeOneof(4, $var);

        return $this;
    }

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

}

