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

namespace Google\Cloud\ModelArmor\V1beta\Template\TemplateMetadata;

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

/**
 * Metadata to enable multi language detection via template.
 *
 * Generated from protobuf message <code>google.cloud.modelarmor.v1beta.Template.TemplateMetadata.MultiLanguageDetection</code>
 */
class MultiLanguageDetection extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. If true, multi language detection will be enabled.
     *
     * Generated from protobuf field <code>bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $enable_multi_language_detection = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type bool $enable_multi_language_detection
     *           Required. If true, multi language detection will be enabled.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Modelarmor\V1Beta\Service::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. If true, multi language detection will be enabled.
     *
     * Generated from protobuf field <code>bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return bool
     */
    public function getEnableMultiLanguageDetection()
    {
        return $this->enable_multi_language_detection;
    }

    /**
     * Required. If true, multi language detection will be enabled.
     *
     * Generated from protobuf field <code>bool enable_multi_language_detection = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param bool $var
     * @return $this
     */
    public function setEnableMultiLanguageDetection($var)
    {
        GPBUtil::checkBool($var);
        $this->enable_multi_language_detection = $var;

        return $this;
    }

}


