<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/datalabeling/v1beta1/human_annotation_config.proto

namespace Google\Cloud\DataLabeling\V1beta1\VideoClassificationConfig;

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

/**
 * Annotation spec set with the setting of allowing multi labels or not.
 *
 * Generated from protobuf message <code>google.cloud.datalabeling.v1beta1.VideoClassificationConfig.AnnotationSpecSetConfig</code>
 */
class AnnotationSpecSetConfig extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Annotation spec set resource name.
     *
     * Generated from protobuf field <code>string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $annotation_spec_set = '';
    /**
     * Optional. If allow_multi_label is true, contributors are able to
     * choose multiple labels from one annotation spec set.
     *
     * Generated from protobuf field <code>bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $allow_multi_label = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $annotation_spec_set
     *           Required. Annotation spec set resource name.
     *     @type bool $allow_multi_label
     *           Optional. If allow_multi_label is true, contributors are able to
     *           choose multiple labels from one annotation spec set.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datalabeling\V1Beta1\HumanAnnotationConfig::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Annotation spec set resource name.
     *
     * Generated from protobuf field <code>string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getAnnotationSpecSet()
    {
        return $this->annotation_spec_set;
    }

    /**
     * Required. Annotation spec set resource name.
     *
     * Generated from protobuf field <code>string annotation_spec_set = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setAnnotationSpecSet($var)
    {
        GPBUtil::checkString($var, True);
        $this->annotation_spec_set = $var;

        return $this;
    }

    /**
     * Optional. If allow_multi_label is true, contributors are able to
     * choose multiple labels from one annotation spec set.
     *
     * Generated from protobuf field <code>bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return bool
     */
    public function getAllowMultiLabel()
    {
        return $this->allow_multi_label;
    }

    /**
     * Optional. If allow_multi_label is true, contributors are able to
     * choose multiple labels from one annotation spec set.
     *
     * Generated from protobuf field <code>bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param bool $var
     * @return $this
     */
    public function setAllowMultiLabel($var)
    {
        GPBUtil::checkBool($var);
        $this->allow_multi_label = $var;

        return $this;
    }

}


