<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/privacy/dlp/v2/dlp.proto

namespace Google\Cloud\Dlp\V2;

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

/**
 * Location of a finding within a document.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.DocumentLocation</code>
 */
class DocumentLocation extends \Google\Protobuf\Internal\Message
{
    /**
     * Offset of the line, from the beginning of the file, where the finding
     * is located.
     *
     * Generated from protobuf field <code>int64 file_offset = 1;</code>
     */
    private $file_offset = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $file_offset
     *           Offset of the line, from the beginning of the file, where the finding
     *           is located.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * Offset of the line, from the beginning of the file, where the finding
     * is located.
     *
     * Generated from protobuf field <code>int64 file_offset = 1;</code>
     * @return int|string
     */
    public function getFileOffset()
    {
        return $this->file_offset;
    }

    /**
     * Offset of the line, from the beginning of the file, where the finding
     * is located.
     *
     * Generated from protobuf field <code>int64 file_offset = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setFileOffset($var)
    {
        GPBUtil::checkInt64($var);
        $this->file_offset = $var;

        return $this;
    }

}

