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

namespace Google\Cloud\Retail\V2\Rule;

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

/**
 * Prevents a term in the query from being used in search.
 * Example: Don't search for "shoddy".
 *
 * Generated from protobuf message <code>google.cloud.retail.v2.Rule.IgnoreAction</code>
 */
class IgnoreAction extends \Google\Protobuf\Internal\Message
{
    /**
     * Terms to ignore in the search query.
     *
     * Generated from protobuf field <code>repeated string ignore_terms = 1;</code>
     */
    private $ignore_terms;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $ignore_terms
     *           Terms to ignore in the search query.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Retail\V2\Common::initOnce();
        parent::__construct($data);
    }

    /**
     * Terms to ignore in the search query.
     *
     * Generated from protobuf field <code>repeated string ignore_terms = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIgnoreTerms()
    {
        return $this->ignore_terms;
    }

    /**
     * Terms to ignore in the search query.
     *
     * Generated from protobuf field <code>repeated string ignore_terms = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIgnoreTerms($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->ignore_terms = $arr;

        return $this;
    }

}


