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

namespace Google\Cloud\Dataplex\V1\Action;

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

/**
 * Action details for invalid or unsupported partitions detected by discovery.
 *
 * Generated from protobuf message <code>google.cloud.dataplex.v1.Action.InvalidDataPartition</code>
 */
class InvalidDataPartition extends \Google\Protobuf\Internal\Message
{
    /**
     * The issue type of InvalidDataPartition.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1;</code>
     */
    protected $expected_structure = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $expected_structure
     *           The issue type of InvalidDataPartition.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataplex\V1\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * The issue type of InvalidDataPartition.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1;</code>
     * @return int
     */
    public function getExpectedStructure()
    {
        return $this->expected_structure;
    }

    /**
     * The issue type of InvalidDataPartition.
     *
     * Generated from protobuf field <code>.google.cloud.dataplex.v1.Action.InvalidDataPartition.PartitionStructure expected_structure = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setExpectedStructure($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Dataplex\V1\Action\InvalidDataPartition\PartitionStructure::class);
        $this->expected_structure = $var;

        return $this;
    }

}


