<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dataform/v1beta1/dataform.proto

namespace Google\Cloud\Dataform\V1beta1\QueryTeamFolderContentsResponse;

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

/**
 * Represents a single content entry.
 *
 * Generated from protobuf message <code>google.cloud.dataform.v1beta1.QueryTeamFolderContentsResponse.TeamFolderContentsEntry</code>
 */
class TeamFolderContentsEntry extends \Google\Protobuf\Internal\Message
{
    protected $entry;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Dataform\V1beta1\Folder $folder
     *           A subfolder.
     *     @type \Google\Cloud\Dataform\V1beta1\Repository $repository
     *           A repository.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
        parent::__construct($data);
    }

    /**
     * A subfolder.
     *
     * Generated from protobuf field <code>.google.cloud.dataform.v1beta1.Folder folder = 1;</code>
     * @return \Google\Cloud\Dataform\V1beta1\Folder|null
     */
    public function getFolder()
    {
        return $this->readOneof(1);
    }

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

    /**
     * A subfolder.
     *
     * Generated from protobuf field <code>.google.cloud.dataform.v1beta1.Folder folder = 1;</code>
     * @param \Google\Cloud\Dataform\V1beta1\Folder $var
     * @return $this
     */
    public function setFolder($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Folder::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * A repository.
     *
     * Generated from protobuf field <code>.google.cloud.dataform.v1beta1.Repository repository = 2;</code>
     * @return \Google\Cloud\Dataform\V1beta1\Repository|null
     */
    public function getRepository()
    {
        return $this->readOneof(2);
    }

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

    /**
     * A repository.
     *
     * Generated from protobuf field <code>.google.cloud.dataform.v1beta1.Repository repository = 2;</code>
     * @param \Google\Cloud\Dataform\V1beta1\Repository $var
     * @return $this
     */
    public function setRepository($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dataform\V1beta1\Repository::class);
        $this->writeOneof(2, $var);

        return $this;
    }

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

}

