<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/dialogflow/v2/conversation_model.proto

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * The request message for
 * [ConversationModels.CreateConversationModel][google.cloud.dialogflow.v2.ConversationModels.CreateConversationModel]
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.CreateConversationModelRequest</code>
 */
class CreateConversationModelRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * The project to create conversation model for. Format:
     * `projects/<Project ID>`
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     */
    private $parent = '';
    /**
     * Required. The conversation model to create.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.ConversationModel conversation_model = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $conversation_model = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $parent
     *           The project to create conversation model for. Format:
     *           `projects/<Project ID>`
     *     @type \Google\Cloud\Dialogflow\V2\ConversationModel $conversation_model
     *           Required. The conversation model to create.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\ConversationModel::initOnce();
        parent::__construct($data);
    }

    /**
     * The project to create conversation model for. Format:
     * `projects/<Project ID>`
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     * @return string
     */
    public function getParent()
    {
        return $this->parent;
    }

    /**
     * The project to create conversation model for. Format:
     * `projects/<Project ID>`
     *
     * Generated from protobuf field <code>string parent = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setParent($var)
    {
        GPBUtil::checkString($var, True);
        $this->parent = $var;

        return $this;
    }

    /**
     * Required. The conversation model to create.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.ConversationModel conversation_model = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return \Google\Cloud\Dialogflow\V2\ConversationModel|null
     */
    public function getConversationModel()
    {
        return $this->conversation_model;
    }

    public function hasConversationModel()
    {
        return isset($this->conversation_model);
    }

    public function clearConversationModel()
    {
        unset($this->conversation_model);
    }

    /**
     * Required. The conversation model to create.
     *
     * Generated from protobuf field <code>.google.cloud.dialogflow.v2.ConversationModel conversation_model = 2 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param \Google\Cloud\Dialogflow\V2\ConversationModel $var
     * @return $this
     */
    public function setConversationModel($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\ConversationModel::class);
        $this->conversation_model = $var;

        return $this;
    }

}

