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

namespace Google\Cloud\Dataform\V1beta1\RelationDescriptor;

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

/**
 * Describes a column.
 *
 * Generated from protobuf message <code>google.cloud.dataform.v1beta1.RelationDescriptor.ColumnDescriptor</code>
 */
class ColumnDescriptor extends \Google\Protobuf\Internal\Message
{
    /**
     * The identifier for the column. Each entry in `path` represents one level
     * of nesting.
     *
     * Generated from protobuf field <code>repeated string path = 1;</code>
     */
    private $path;
    /**
     * A textual description of the column.
     *
     * Generated from protobuf field <code>string description = 2;</code>
     */
    private $description = '';
    /**
     * A list of BigQuery policy tags that will be applied to the column.
     *
     * Generated from protobuf field <code>repeated string bigquery_policy_tags = 3;</code>
     */
    private $bigquery_policy_tags;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $path
     *           The identifier for the column. Each entry in `path` represents one level
     *           of nesting.
     *     @type string $description
     *           A textual description of the column.
     *     @type array<string>|\Google\Protobuf\Internal\RepeatedField $bigquery_policy_tags
     *           A list of BigQuery policy tags that will be applied to the column.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dataform\V1Beta1\Dataform::initOnce();
        parent::__construct($data);
    }

    /**
     * The identifier for the column. Each entry in `path` represents one level
     * of nesting.
     *
     * Generated from protobuf field <code>repeated string path = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPath()
    {
        return $this->path;
    }

    /**
     * The identifier for the column. Each entry in `path` represents one level
     * of nesting.
     *
     * Generated from protobuf field <code>repeated string path = 1;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPath($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->path = $arr;

        return $this;
    }

    /**
     * A textual description of the column.
     *
     * Generated from protobuf field <code>string description = 2;</code>
     * @return string
     */
    public function getDescription()
    {
        return $this->description;
    }

    /**
     * A textual description of the column.
     *
     * Generated from protobuf field <code>string description = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setDescription($var)
    {
        GPBUtil::checkString($var, True);
        $this->description = $var;

        return $this;
    }

    /**
     * A list of BigQuery policy tags that will be applied to the column.
     *
     * Generated from protobuf field <code>repeated string bigquery_policy_tags = 3;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getBigqueryPolicyTags()
    {
        return $this->bigquery_policy_tags;
    }

    /**
     * A list of BigQuery policy tags that will be applied to the column.
     *
     * Generated from protobuf field <code>repeated string bigquery_policy_tags = 3;</code>
     * @param array<string>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setBigqueryPolicyTags($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING);
        $this->bigquery_policy_tags = $arr;

        return $this;
    }

}


