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

namespace Google\Cloud\Channel\V1;

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

/**
 * The definition of a report column. Specifies the data properties
 * in the corresponding position of the report rows.
 *
 * Generated from protobuf message <code>google.cloud.channel.v1.Column</code>
 */
class Column extends \Google\Protobuf\Internal\Message
{
    /**
     * The unique name of the column (for example, customer_domain,
     * channel_partner, customer_cost). You can use column IDs in
     * [RunReportJobRequest.filter][google.cloud.channel.v1.RunReportJobRequest.filter].
     * To see all reports and their columns, call
     * [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports].
     *
     * Generated from protobuf field <code>string column_id = 1;</code>
     */
    private $column_id = '';
    /**
     * The column's display name.
     *
     * Generated from protobuf field <code>string display_name = 2;</code>
     */
    private $display_name = '';
    /**
     * The type of the values for this column.
     *
     * Generated from protobuf field <code>.google.cloud.channel.v1.Column.DataType data_type = 3;</code>
     */
    private $data_type = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $column_id
     *           The unique name of the column (for example, customer_domain,
     *           channel_partner, customer_cost). You can use column IDs in
     *           [RunReportJobRequest.filter][google.cloud.channel.v1.RunReportJobRequest.filter].
     *           To see all reports and their columns, call
     *           [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports].
     *     @type string $display_name
     *           The column's display name.
     *     @type int $data_type
     *           The type of the values for this column.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Channel\V1\ReportsService::initOnce();
        parent::__construct($data);
    }

    /**
     * The unique name of the column (for example, customer_domain,
     * channel_partner, customer_cost). You can use column IDs in
     * [RunReportJobRequest.filter][google.cloud.channel.v1.RunReportJobRequest.filter].
     * To see all reports and their columns, call
     * [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports].
     *
     * Generated from protobuf field <code>string column_id = 1;</code>
     * @return string
     */
    public function getColumnId()
    {
        return $this->column_id;
    }

    /**
     * The unique name of the column (for example, customer_domain,
     * channel_partner, customer_cost). You can use column IDs in
     * [RunReportJobRequest.filter][google.cloud.channel.v1.RunReportJobRequest.filter].
     * To see all reports and their columns, call
     * [CloudChannelReportsService.ListReports][google.cloud.channel.v1.CloudChannelReportsService.ListReports].
     *
     * Generated from protobuf field <code>string column_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setColumnId($var)
    {
        GPBUtil::checkString($var, True);
        $this->column_id = $var;

        return $this;
    }

    /**
     * The column's display name.
     *
     * Generated from protobuf field <code>string display_name = 2;</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * The column's display name.
     *
     * Generated from protobuf field <code>string display_name = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * The type of the values for this column.
     *
     * Generated from protobuf field <code>.google.cloud.channel.v1.Column.DataType data_type = 3;</code>
     * @return int
     */
    public function getDataType()
    {
        return $this->data_type;
    }

    /**
     * The type of the values for this column.
     *
     * Generated from protobuf field <code>.google.cloud.channel.v1.Column.DataType data_type = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setDataType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Channel\V1\Column\DataType::class);
        $this->data_type = $var;

        return $this;
    }

}

