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

namespace Google\Cloud\RecommendationEngine\V1beta1;

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

/**
 * The inline source for the input config for ImportCatalogItems method.
 *
 * Generated from protobuf message <code>google.cloud.recommendationengine.v1beta1.CatalogInlineSource</code>
 */
class CatalogInlineSource extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. A list of catalog items to update/create. Recommended max of 10k
     * items.
     *
     * Generated from protobuf field <code>repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $catalog_items;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\RecommendationEngine\V1beta1\CatalogItem[]|\Google\Protobuf\Internal\RepeatedField $catalog_items
     *           Optional. A list of catalog items to update/create. Recommended max of 10k
     *           items.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Recommendationengine\V1Beta1\Import::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. A list of catalog items to update/create. Recommended max of 10k
     * items.
     *
     * Generated from protobuf field <code>repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getCatalogItems()
    {
        return $this->catalog_items;
    }

    /**
     * Optional. A list of catalog items to update/create. Recommended max of 10k
     * items.
     *
     * Generated from protobuf field <code>repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param \Google\Cloud\RecommendationEngine\V1beta1\CatalogItem[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setCatalogItems($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\RecommendationEngine\V1beta1\CatalogItem::class);
        $this->catalog_items = $arr;

        return $this;
    }

}

