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

namespace Google\Cloud\Dataplex\V1\DiscoveryEvent;

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

/**
 * Details about the partition.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.DiscoveryEvent.PartitionDetails</code>
 */
class PartitionDetails extends \Google\Protobuf\Internal\Message
{
    /**
     * The name to the partition resource.
     * The name is the fully-qualified resource name.
     *
     * Generated from protobuf field <code>string partition = 1;</code>
     */
    private $partition = '';
    /**
     * The name to the containing entity resource.
     * The name is the fully-qualified resource name.
     *
     * Generated from protobuf field <code>string entity = 2;</code>
     */
    private $entity = '';
    /**
     * The type of the containing entity resource.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;</code>
     */
    private $type = 0;
    /**
     * The locations of the data items (e.g., a Cloud Storage objects) sampled
     * for metadata inference.
     *
     * Generated from protobuf field <code>repeated string sampled_data_locations = 4;</code>
     */
    private $sampled_data_locations;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $partition
     *           The name to the partition resource.
     *           The name is the fully-qualified resource name.
     *     @type string $entity
     *           The name to the containing entity resource.
     *           The name is the fully-qualified resource name.
     *     @type int $type
     *           The type of the containing entity resource.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $sampled_data_locations
     *           The locations of the data items (e.g., a Cloud Storage objects) sampled
     *           for metadata inference.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\Logs::initOnce();
        parent::__construct($data);
    }

    /**
     * The name to the partition resource.
     * The name is the fully-qualified resource name.
     *
     * Generated from protobuf field <code>string partition = 1;</code>
     * @return string
     */
    public function getPartition()
    {
        return $this->partition;
    }

    /**
     * The name to the partition resource.
     * The name is the fully-qualified resource name.
     *
     * Generated from protobuf field <code>string partition = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPartition($var)
    {
        GPBUtil::checkString($var, True);
        $this->partition = $var;

        return $this;
    }

    /**
     * The name to the containing entity resource.
     * The name is the fully-qualified resource name.
     *
     * Generated from protobuf field <code>string entity = 2;</code>
     * @return string
     */
    public function getEntity()
    {
        return $this->entity;
    }

    /**
     * The name to the containing entity resource.
     * The name is the fully-qualified resource name.
     *
     * Generated from protobuf field <code>string entity = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setEntity($var)
    {
        GPBUtil::checkString($var, True);
        $this->entity = $var;

        return $this;
    }

    /**
     * The type of the containing entity resource.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;</code>
     * @return int
     */
    public function getType()
    {
        return $this->type;
    }

    /**
     * The type of the containing entity resource.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.DiscoveryEvent.EntityType type = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\DiscoveryEvent\EntityType::class);
        $this->type = $var;

        return $this;
    }

    /**
     * The locations of the data items (e.g., a Cloud Storage objects) sampled
     * for metadata inference.
     *
     * Generated from protobuf field <code>repeated string sampled_data_locations = 4;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getSampledDataLocations()
    {
        return $this->sampled_data_locations;
    }

    /**
     * The locations of the data items (e.g., a Cloud Storage objects) sampled
     * for metadata inference.
     *
     * Generated from protobuf field <code>repeated string sampled_data_locations = 4;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setSampledDataLocations($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->sampled_data_locations = $arr;

        return $this;
    }

}


