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

namespace Google\Cloud\DataLabeling\V1beta1;

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

/**
 * Request message for CreateAnnotationSpecSet.
 *
 * Generated from protobuf message <code>google.cloud.datalabeling.v1beta1.CreateAnnotationSpecSetRequest</code>
 */
class CreateAnnotationSpecSetRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. AnnotationSpecSet resource parent, format:
     * projects/{project_id}
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    private $parent = '';
    /**
     * Required. Annotation spec set to create. Annotation specs must be included.
     * Only one annotation spec will be accepted for annotation specs with same
     * display_name.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $annotation_spec_set = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           Required. AnnotationSpecSet resource parent, format:
     *           projects/{project_id}
     *     @type \Google\Cloud\DataLabeling\V1beta1\AnnotationSpecSet $annotation_spec_set
     *           Required. Annotation spec set to create. Annotation specs must be included.
     *           Only one annotation spec will be accepted for annotation specs with same
     *           display_name.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Datalabeling\V1Beta1\DataLabelingService::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. AnnotationSpecSet resource parent, format:
     * projects/{project_id}
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * Required. AnnotationSpecSet resource parent, format:
     * projects/{project_id}
     *
     * Generated from protobuf field <code>string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Required. Annotation spec set to create. Annotation specs must be included.
     * Only one annotation spec will be accepted for annotation specs with same
     * display_name.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\DataLabeling\V1beta1\AnnotationSpecSet|null
     */
    public function getAnnotationSpecSet()
    {
        return $this->annotation_spec_set;
    }

    public function hasAnnotationSpecSet()
    {
        return isset($this->annotation_spec_set);
    }

    public function clearAnnotationSpecSet()
    {
        unset($this->annotation_spec_set);
    }

    /**
     * Required. Annotation spec set to create. Annotation specs must be included.
     * Only one annotation spec will be accepted for annotation specs with same
     * display_name.
     *
     * Generated from protobuf field <code>.google.cloud.datalabeling.v1beta1.AnnotationSpecSet annotation_spec_set = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\DataLabeling\V1beta1\AnnotationSpecSet $var
     * @return $this
     */
    public function setAnnotationSpecSet($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\DataLabeling\V1beta1\AnnotationSpecSet::class);
        $this->annotation_spec_set = $var;

        return $this;
    }

}

