<?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\GPBUtil;
use Google\Protobuf\RepeatedField;

/**
 * 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[] $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 RepeatedField<\Google\Cloud\DataCatalog\V1\SerializedTaxonomy>
     */
    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[] $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;
    }

}

