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

namespace Google\Cloud\DataCatalog\V1;

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

/**
 * Response message for
 * [ExportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies].
 *
 * Generated from protobuf message <code>google.cloud.datacatalog.v1.ExportTaxonomiesResponse</code>
 */
class ExportTaxonomiesResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * List of taxonomies and policy tags as nested protocol buffers.
     *
     * Generated from protobuf field <code>repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1;</code>
     */
    private $taxonomies;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DataCatalog\V1\SerializedTaxonomy[]|\Google\Protobuf\Internal\RepeatedField $taxonomies
     *           List of taxonomies and policy tags as nested protocol buffers.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datacatalog\V1\Policytagmanagerserialization::initOnce();
        parent::__construct($data);
    }

    /**
     * List of taxonomies and policy tags as nested protocol buffers.
     *
     * Generated from protobuf field <code>repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getTaxonomies()
    {
        return $this->taxonomies;
    }

    /**
     * List of taxonomies and policy tags as nested protocol buffers.
     *
     * Generated from protobuf field <code>repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1;</code>
     * @param \Google\Cloud\DataCatalog\V1\SerializedTaxonomy[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setTaxonomies($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\DataCatalog\V1\SerializedTaxonomy::class);
        $this->taxonomies = $arr;

        return $this;
    }

}

