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

namespace Google\Cloud\DataLabeling\V1beta1;

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

/**
 * Metadata on AnnotatedDataset.
 *
 * Generated from protobuf message <code>google.cloud.datalabeling.v1beta1.AnnotatedDatasetMetadata</code>
 */
class AnnotatedDatasetMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * HumanAnnotationConfig used when requesting the human labeling task for this
     * AnnotatedDataset.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1;</code>
     */
    private $human_annotation_config = null;
    protected $annotation_request_config;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\DataLabeling\V1beta1\ImageClassificationConfig $image_classification_config
     *           Configuration for image classification task.
     *     @type \Google\Cloud\DataLabeling\V1beta1\BoundingPolyConfig $bounding_poly_config
     *           Configuration for image bounding box and bounding poly task.
     *     @type \Google\Cloud\DataLabeling\V1beta1\PolylineConfig $polyline_config
     *           Configuration for image polyline task.
     *     @type \Google\Cloud\DataLabeling\V1beta1\SegmentationConfig $segmentation_config
     *           Configuration for image segmentation task.
     *     @type \Google\Cloud\DataLabeling\V1beta1\VideoClassificationConfig $video_classification_config
     *           Configuration for video classification task.
     *     @type \Google\Cloud\DataLabeling\V1beta1\ObjectDetectionConfig $object_detection_config
     *           Configuration for video object detection task.
     *     @type \Google\Cloud\DataLabeling\V1beta1\ObjectTrackingConfig $object_tracking_config
     *           Configuration for video object tracking task.
     *     @type \Google\Cloud\DataLabeling\V1beta1\EventConfig $event_config
     *           Configuration for video event labeling task.
     *     @type \Google\Cloud\DataLabeling\V1beta1\TextClassificationConfig $text_classification_config
     *           Configuration for text classification task.
     *     @type \Google\Cloud\DataLabeling\V1beta1\TextEntityExtractionConfig $text_entity_extraction_config
     *           Configuration for text entity extraction task.
     *     @type \Google\Cloud\DataLabeling\V1beta1\HumanAnnotationConfig $human_annotation_config
     *           HumanAnnotationConfig used when requesting the human labeling task for this
     *           AnnotatedDataset.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datalabeling\V1Beta1\Dataset::initOnce();
        parent::__construct($data);
    }

    /**
     * Configuration for image classification task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2;</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\ImageClassificationConfig|null
     */
    public function getImageClassificationConfig()
    {
        return $this->readOneof(2);
    }

    public function hasImageClassificationConfig()
    {
        return $this->hasOneof(2);
    }

    /**
     * Configuration for image classification task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.ImageClassificationConfig image_classification_config = 2;</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\ImageClassificationConfig $var
     * @return $this
     */
    public function setImageClassificationConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\ImageClassificationConfig::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * Configuration for image bounding box and bounding poly task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3;</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\BoundingPolyConfig|null
     */
    public function getBoundingPolyConfig()
    {
        return $this->readOneof(3);
    }

    public function hasBoundingPolyConfig()
    {
        return $this->hasOneof(3);
    }

    /**
     * Configuration for image bounding box and bounding poly task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.BoundingPolyConfig bounding_poly_config = 3;</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\BoundingPolyConfig $var
     * @return $this
     */
    public function setBoundingPolyConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\BoundingPolyConfig::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * Configuration for image polyline task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4;</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\PolylineConfig|null
     */
    public function getPolylineConfig()
    {
        return $this->readOneof(4);
    }

    public function hasPolylineConfig()
    {
        return $this->hasOneof(4);
    }

    /**
     * Configuration for image polyline task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.PolylineConfig polyline_config = 4;</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\PolylineConfig $var
     * @return $this
     */
    public function setPolylineConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\PolylineConfig::class);
        $this->writeOneof(4, $var);

        return $this;
    }

    /**
     * Configuration for image segmentation task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5;</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\SegmentationConfig|null
     */
    public function getSegmentationConfig()
    {
        return $this->readOneof(5);
    }

    public function hasSegmentationConfig()
    {
        return $this->hasOneof(5);
    }

    /**
     * Configuration for image segmentation task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.SegmentationConfig segmentation_config = 5;</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\SegmentationConfig $var
     * @return $this
     */
    public function setSegmentationConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\SegmentationConfig::class);
        $this->writeOneof(5, $var);

        return $this;
    }

    /**
     * Configuration for video classification task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6;</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\VideoClassificationConfig|null
     */
    public function getVideoClassificationConfig()
    {
        return $this->readOneof(6);
    }

    public function hasVideoClassificationConfig()
    {
        return $this->hasOneof(6);
    }

    /**
     * Configuration for video classification task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.VideoClassificationConfig video_classification_config = 6;</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\VideoClassificationConfig $var
     * @return $this
     */
    public function setVideoClassificationConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\VideoClassificationConfig::class);
        $this->writeOneof(6, $var);

        return $this;
    }

    /**
     * Configuration for video object detection task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7;</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\ObjectDetectionConfig|null
     */
    public function getObjectDetectionConfig()
    {
        return $this->readOneof(7);
    }

    public function hasObjectDetectionConfig()
    {
        return $this->hasOneof(7);
    }

    /**
     * Configuration for video object detection task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.ObjectDetectionConfig object_detection_config = 7;</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\ObjectDetectionConfig $var
     * @return $this
     */
    public function setObjectDetectionConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\ObjectDetectionConfig::class);
        $this->writeOneof(7, $var);

        return $this;
    }

    /**
     * Configuration for video object tracking task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8;</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\ObjectTrackingConfig|null
     */
    public function getObjectTrackingConfig()
    {
        return $this->readOneof(8);
    }

    public function hasObjectTrackingConfig()
    {
        return $this->hasOneof(8);
    }

    /**
     * Configuration for video object tracking task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.ObjectTrackingConfig object_tracking_config = 8;</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\ObjectTrackingConfig $var
     * @return $this
     */
    public function setObjectTrackingConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\ObjectTrackingConfig::class);
        $this->writeOneof(8, $var);

        return $this;
    }

    /**
     * Configuration for video event labeling task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.EventConfig event_config = 9;</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\EventConfig|null
     */
    public function getEventConfig()
    {
        return $this->readOneof(9);
    }

    public function hasEventConfig()
    {
        return $this->hasOneof(9);
    }

    /**
     * Configuration for video event labeling task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.EventConfig event_config = 9;</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\EventConfig $var
     * @return $this
     */
    public function setEventConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\EventConfig::class);
        $this->writeOneof(9, $var);

        return $this;
    }

    /**
     * Configuration for text classification task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10;</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\TextClassificationConfig|null
     */
    public function getTextClassificationConfig()
    {
        return $this->readOneof(10);
    }

    public function hasTextClassificationConfig()
    {
        return $this->hasOneof(10);
    }

    /**
     * Configuration for text classification task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.TextClassificationConfig text_classification_config = 10;</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\TextClassificationConfig $var
     * @return $this
     */
    public function setTextClassificationConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\TextClassificationConfig::class);
        $this->writeOneof(10, $var);

        return $this;
    }

    /**
     * Configuration for text entity extraction task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11;</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\TextEntityExtractionConfig|null
     */
    public function getTextEntityExtractionConfig()
    {
        return $this->readOneof(11);
    }

    public function hasTextEntityExtractionConfig()
    {
        return $this->hasOneof(11);
    }

    /**
     * Configuration for text entity extraction task.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.TextEntityExtractionConfig text_entity_extraction_config = 11;</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\TextEntityExtractionConfig $var
     * @return $this
     */
    public function setTextEntityExtractionConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\TextEntityExtractionConfig::class);
        $this->writeOneof(11, $var);

        return $this;
    }

    /**
     * HumanAnnotationConfig used when requesting the human labeling task for this
     * AnnotatedDataset.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1;</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\HumanAnnotationConfig|null
     */
    public function getHumanAnnotationConfig()
    {
        return isset($this->human_annotation_config) ? $this->human_annotation_config : null;
    }

    public function hasHumanAnnotationConfig()
    {
        return isset($this->human_annotation_config);
    }

    public function clearHumanAnnotationConfig()
    {
        unset($this->human_annotation_config);
    }

    /**
     * HumanAnnotationConfig used when requesting the human labeling task for this
     * AnnotatedDataset.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.HumanAnnotationConfig human_annotation_config = 1;</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\HumanAnnotationConfig $var
     * @return $this
     */
    public function setHumanAnnotationConfig($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\HumanAnnotationConfig::class);
        $this->human_annotation_config = $var;

        return $this;
    }

    /**
     * @return string
     */
    public function getAnnotationRequestConfig()
    {
        return $this->whichOneof("annotation_request_config");
    }

}

