<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/privacy/dlp/v2beta1/storage.proto

namespace Google\Cloud\Dlp\V2beta1;

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

/**
 * Message defining a list of words or phrases to search for in the data.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2beta1.CustomInfoType.Dictionary.WordList</code>
 */
class CustomInfoType_Dictionary_WordList extends \Google\Protobuf\Internal\Message
{
    /**
     * Words or phrases defining the dictionary. The dictionary must contain
     * at least one phrase and every phrase must contain at least 2 characters
     * that are letters or digits. [required]
     *
     * Generated from protobuf field <code>repeated string words = 1;</code>
     */
    private $words;

    public function __construct() {
        \GPBMetadata\Google\Privacy\Dlp\V2Beta1\Storage::initOnce();
        parent::__construct();
    }

    /**
     * Words or phrases defining the dictionary. The dictionary must contain
     * at least one phrase and every phrase must contain at least 2 characters
     * that are letters or digits. [required]
     *
     * Generated from protobuf field <code>repeated string words = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getWords()
    {
        return $this->words;
    }

    /**
     * Words or phrases defining the dictionary. The dictionary must contain
     * at least one phrase and every phrase must contain at least 2 characters
     * that are letters or digits. [required]
     *
     * Generated from protobuf field <code>repeated string words = 1;</code>
     * @param string[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setWords($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->words = $arr;

        return $this;
    }

}

