<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/bigquery/migration/v2/migration_error_details.proto

namespace Google\Cloud\BigQuery\Migration\V2;

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

/**
 * Holds information about where the error is located.
 *
 * Generated from protobuf message <code>google.cloud.bigquery.migration.v2.ErrorLocation</code>
 */
class ErrorLocation extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. If applicable, denotes the line where the error occurred. A zero
     * value means that there is no line information.
     *
     * Generated from protobuf field <code>int32 line = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $line = 0;
    /**
     * Optional. If applicable, denotes the column where the error occurred. A
     * zero value means that there is no columns information.
     *
     * Generated from protobuf field <code>int32 column = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $column = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $line
     *           Optional. If applicable, denotes the line where the error occurred. A zero
     *           value means that there is no line information.
     *     @type int $column
     *           Optional. If applicable, denotes the column where the error occurred. A
     *           zero value means that there is no columns information.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Bigquery\Migration\V2\MigrationErrorDetails::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. If applicable, denotes the line where the error occurred. A zero
     * value means that there is no line information.
     *
     * Generated from protobuf field <code>int32 line = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getLine()
    {
        return $this->line;
    }

    /**
     * Optional. If applicable, denotes the line where the error occurred. A zero
     * value means that there is no line information.
     *
     * Generated from protobuf field <code>int32 line = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setLine($var)
    {
        GPBUtil::checkInt32($var);
        $this->line = $var;

        return $this;
    }

    /**
     * Optional. If applicable, denotes the column where the error occurred. A
     * zero value means that there is no columns information.
     *
     * Generated from protobuf field <code>int32 column = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getColumn()
    {
        return $this->column;
    }

    /**
     * Optional. If applicable, denotes the column where the error occurred. A
     * zero value means that there is no columns information.
     *
     * Generated from protobuf field <code>int32 column = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setColumn($var)
    {
        GPBUtil::checkInt32($var);
        $this->column = $var;

        return $this;
    }

}

