<?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;

/**
 * Information regarding the discovered file extension.
 *
 * Generated from protobuf message <code>google.privacy.dlp.v2.FileExtensionInfo</code>
 */
class FileExtensionInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The file extension if set. (aka .pdf, .jpg, .txt)
     *
     * Generated from protobuf field <code>string file_extension = 1;</code>
     */
    private $file_extension = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $file_extension
     *           The file extension if set. (aka .pdf, .jpg, .txt)
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Privacy\Dlp\V2\Dlp::initOnce();
        parent::__construct($data);
    }

    /**
     * The file extension if set. (aka .pdf, .jpg, .txt)
     *
     * Generated from protobuf field <code>string file_extension = 1;</code>
     * @return string
     */
    public function getFileExtension()
    {
        return $this->file_extension;
    }

    /**
     * The file extension if set. (aka .pdf, .jpg, .txt)
     *
     * Generated from protobuf field <code>string file_extension = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setFileExtension($var)
    {
        GPBUtil::checkString($var, True);
        $this->file_extension = $var;

        return $this;
    }

}

