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

namespace Google\Cloud\DataLabeling\V1beta1;

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

/**
 * Config for image classification human labeling task.
 *
 * Generated from protobuf message <code>google.cloud.datalabeling.v1beta1.ImageClassificationConfig</code>
 */
class ImageClassificationConfig 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>
     */
    private $annotation_spec_set = '';
    /**
     * Optional. If allow_multi_label is true, contributors are able to choose
     * multiple labels for one image.
     *
     * Generated from protobuf field <code>bool allow_multi_label = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $allow_multi_label = false;
    /**
     * Optional. The type of how to aggregate answers.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    private $answer_aggregation_type = 0;

    /**
     * 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 for one image.
     *     @type int $answer_aggregation_type
     *           Optional. The type of how to aggregate answers.
     * }
     */
    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 for one image.
     *
     * 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 for one image.
     *
     * 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;
    }

    /**
     * Optional. The type of how to aggregate answers.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return int
     */
    public function getAnswerAggregationType()
    {
        return $this->answer_aggregation_type;
    }

    /**
     * Optional. The type of how to aggregate answers.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.StringAggregationType answer_aggregation_type = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param int $var
     * @return $this
     */
    public function setAnswerAggregationType($var)
    {
        GPBUtil::checkEnum($var, \Google\Cloud\DataLabeling\V1beta1\StringAggregationType::class);
        $this->answer_aggregation_type = $var;

        return $this;
    }

}

