<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/language/v1beta2/language_service.proto

namespace Google\Cloud\Language\V1beta2\ClassificationModelOptions;

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

/**
 * Options for the V2 model.
 *
 * Generated from protobuf message <code>google.cloud.language.v1beta2.ClassificationModelOptions.V2Model</code>
 */
class V2Model extends \Google\Protobuf\Internal\Message
{
    /**
     * The content categories used for classification.
     *
     * Generated from protobuf field <code>.google.cloud.language.v1beta2.ClassificationModelOptions.V2Model.ContentCategoriesVersion content_categories_version = 1;</code>
     */
    private $content_categories_version = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $content_categories_version
     *           The content categories used for classification.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Language\V1Beta2\LanguageService::initOnce();
        parent::__construct($data);
    }

    /**
     * The content categories used for classification.
     *
     * Generated from protobuf field <code>.google.cloud.language.v1beta2.ClassificationModelOptions.V2Model.ContentCategoriesVersion content_categories_version = 1;</code>
     * @return int
     */
    public function getContentCategoriesVersion()
    {
        return $this->content_categories_version;
    }

    /**
     * The content categories used for classification.
     *
     * Generated from protobuf field <code>.google.cloud.language.v1beta2.ClassificationModelOptions.V2Model.ContentCategoriesVersion content_categories_version = 1;</code>
     * @param int $var
     * @return $this
     */
    public function setContentCategoriesVersion($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\Language\V1beta2\ClassificationModelOptions\V2Model\ContentCategoriesVersion::class);
        $this->content_categories_version = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V2Model::class, \Google\Cloud\Language\V1beta2\ClassificationModelOptions_V2Model::class);

