<?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;

/**
 * Options defining a data set within Google Cloud Datastore.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2beta1.DatastoreOptions</code>
 */
class DatastoreOptions extends \Google\Protobuf\Internal\Message
{
    /**
     * A partition ID identifies a grouping of entities. The grouping is always
     * by project and namespace, however the namespace ID may be empty.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;</code>
     */
    private $partition_id = null;
    /**
     * The kind to process.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.KindExpression kind = 2;</code>
     */
    private $kind = null;
    /**
     * Properties to scan. If none are specified, all properties will be scanned
     * by default.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.Projection projection = 3;</code>
     */
    private $projection;

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

    /**
     * A partition ID identifies a grouping of entities. The grouping is always
     * by project and namespace, however the namespace ID may be empty.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;</code>
     * @return \Google\Cloud\Dlp\V2beta1\PartitionId
     */
    public function getPartitionId()
    {
        return $this->partition_id;
    }

    /**
     * A partition ID identifies a grouping of entities. The grouping is always
     * by project and namespace, however the namespace ID may be empty.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.PartitionId partition_id = 1;</code>
     * @param \Google\Cloud\Dlp\V2beta1\PartitionId $var
     * @return $this
     */
    public function setPartitionId($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\PartitionId::class);
        $this->partition_id = $var;

        return $this;
    }

    /**
     * The kind to process.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.KindExpression kind = 2;</code>
     * @return \Google\Cloud\Dlp\V2beta1\KindExpression
     */
    public function getKind()
    {
        return $this->kind;
    }

    /**
     * The kind to process.
     *
     * Generated from protobuf field <code>.google.privacy.dlp.v2beta1.KindExpression kind = 2;</code>
     * @param \Google\Cloud\Dlp\V2beta1\KindExpression $var
     * @return $this
     */
    public function setKind($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dlp\V2beta1\KindExpression::class);
        $this->kind = $var;

        return $this;
    }

    /**
     * Properties to scan. If none are specified, all properties will be scanned
     * by default.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.Projection projection = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getProjection()
    {
        return $this->projection;
    }

    /**
     * Properties to scan. If none are specified, all properties will be scanned
     * by default.
     *
     * Generated from protobuf field <code>repeated .google.privacy.dlp.v2beta1.Projection projection = 3;</code>
     * @param \Google\Cloud\Dlp\V2beta1\Projection[]|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setProjection($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dlp\V2beta1\Projection::class);
        $this->projection = $arr;

        return $this;
    }

}

