<?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;

/**
 * Request for GetGenerativeQuestionsFeatureConfig method.
 *
 * Generated from protobuf message <code>google.cloud.retail.v2.GetGenerativeQuestionsFeatureConfigRequest</code>
 */
class GetGenerativeQuestionsFeatureConfigRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Resource name of the parent catalog.
     * Format: projects/{project}/locations/{location}/catalogs/{catalog}
     *
     * Generated from protobuf field <code>string catalog = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $catalog = '';

    /**
     * @param string $catalog Required. Resource name of the parent catalog.
     *                        Format: projects/{project}/locations/{location}/catalogs/{catalog}
     *                        Please see {@see GenerativeQuestionServiceClient::catalogName()} for help formatting this field.
     *
     * @return \Google\Cloud\Retail\V2\GetGenerativeQuestionsFeatureConfigRequest
     *
     * @experimental
     */
    public static function build(string $catalog): self
    {
        return (new self())
            ->setCatalog($catalog);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $catalog
     *           Required. Resource name of the parent catalog.
     *           Format: projects/{project}/locations/{location}/catalogs/{catalog}
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Retail\V2\GenerativeQuestionService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Resource name of the parent catalog.
     * Format: projects/{project}/locations/{location}/catalogs/{catalog}
     *
     * Generated from protobuf field <code>string catalog = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getCatalog()
    {
        return $this->catalog;
    }

    /**
     * Required. Resource name of the parent catalog.
     * Format: projects/{project}/locations/{location}/catalogs/{catalog}
     *
     * Generated from protobuf field <code>string catalog = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setCatalog($var)
    {
        GPBUtil::checkString($var, True);
        $this->catalog = $var;

        return $this;
    }

}

