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

namespace Google\Cloud\Retail\V2;

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

/**
 * Aggregated response for UpdateGenerativeQuestionConfig method.
 *
 * Generated from protobuf message <code>google.cloud.retail.v2.BatchUpdateGenerativeQuestionConfigsResponse</code>
 */
class BatchUpdateGenerativeQuestionConfigsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The updates question configs.
     *
     * Generated from protobuf field <code>repeated .google.cloud.retail.v2.GenerativeQuestionConfig generative_question_configs = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $generative_question_configs;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Retail\V2\GenerativeQuestionConfig>|\Google\Protobuf\Internal\RepeatedField $generative_question_configs
     *           Optional. The updates question configs.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Retail\V2\GenerativeQuestionService::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The updates question configs.
     *
     * Generated from protobuf field <code>repeated .google.cloud.retail.v2.GenerativeQuestionConfig generative_question_configs = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getGenerativeQuestionConfigs()
    {
        return $this->generative_question_configs;
    }

    /**
     * Optional. The updates question configs.
     *
     * Generated from protobuf field <code>repeated .google.cloud.retail.v2.GenerativeQuestionConfig generative_question_configs = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param array<\Google\Cloud\Retail\V2\GenerativeQuestionConfig>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setGenerativeQuestionConfigs($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Retail\V2\GenerativeQuestionConfig::class);
        $this->generative_question_configs = $arr;

        return $this;
    }

}

