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

namespace Google\Cloud\Vision\V1;

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

/**
 * Config to control which ProductSet contains the Products to be deleted.
 *
 * Generated from protobuf message <code>google.cloud.vision.v1.ProductSetPurgeConfig</code>
 */
class ProductSetPurgeConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * The ProductSet that contains the Products to delete. If a Product is a
     * member of product_set_id in addition to other ProductSets, the Product will
     * still be deleted.
     *
     * Generated from protobuf field <code>string product_set_id = 1;</code>
     */
    protected $product_set_id = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $product_set_id
     *           The ProductSet that contains the Products to delete. If a Product is a
     *           member of product_set_id in addition to other ProductSets, the Product will
     *           still be deleted.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Vision\V1\ProductSearchService::initOnce();
        parent::__construct($data);
    }

    /**
     * The ProductSet that contains the Products to delete. If a Product is a
     * member of product_set_id in addition to other ProductSets, the Product will
     * still be deleted.
     *
     * Generated from protobuf field <code>string product_set_id = 1;</code>
     * @return string
     */
    public function getProductSetId()
    {
        return $this->product_set_id;
    }

    /**
     * The ProductSet that contains the Products to delete. If a Product is a
     * member of product_set_id in addition to other ProductSets, the Product will
     * still be deleted.
     *
     * Generated from protobuf field <code>string product_set_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setProductSetId($var)
    {
        GPBUtil::checkString($var, True);
        $this->product_set_id = $var;

        return $this;
    }

}

