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

namespace Google\Cloud\Dlp\V2;

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

/**
 * Instructions regarding the table content being inspected.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.TableOptions</code>
 */
class TableOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * The columns that are the primary keys for table objects included in
     * ContentItem. A copy of this cell's value will stored alongside alongside
     * each finding so that the finding can be traced to the specific row it came
     * from. No more than 3 may be provided.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1;</code>
     */
    private $identifying_fields;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $identifying_fields
     *           The columns that are the primary keys for table objects included in
     *           ContentItem. A copy of this cell's value will stored alongside alongside
     *           each finding so that the finding can be traced to the specific row it came
     *           from. No more than 3 may be provided.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Storage::initOnce();
        parent::__construct($data);
    }

    /**
     * The columns that are the primary keys for table objects included in
     * ContentItem. A copy of this cell's value will stored alongside alongside
     * each finding so that the finding can be traced to the specific row it came
     * from. No more than 3 may be provided.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getIdentifyingFields()
    {
        return $this->identifying_fields;
    }

    /**
     * The columns that are the primary keys for table objects included in
     * ContentItem. A copy of this cell's value will stored alongside alongside
     * each finding so that the finding can be traced to the specific row it came
     * from. No more than 3 may be provided.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2.FieldId identifying_fields = 1;</code>
     * @param array<\Google\Cloud\Dlp\V2\FieldId>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setIdentifyingFields($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2\FieldId::class);
        $this->identifying_fields = $arr;

        return $this;
    }

}

