<?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;

/**
 * Metadata for a
 * [ConversationModels.DeployConversationModel][google.cloud.dialogflow.v2.ConversationModels.DeployConversationModel]
 * operation.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.DeployConversationModelOperationMetadata</code>
 */
class DeployConversationModelOperationMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The resource name of the conversation model. Format:
     * `projects/<Project ID>/conversationModels/<Conversation Model Id>`
     *
     * Generated from protobuf field <code>string conversation_model = 1;</code>
     */
    protected $conversation_model = '';
    /**
     * Timestamp when request to deploy conversation model was submitted. The time
     * is measured on server side.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 3;</code>
     */
    protected $create_time = null;
    /**
     * The time when the operation finished.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp done_time = 4;</code>
     */
    protected $done_time = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $conversation_model
     *           The resource name of the conversation model. Format:
     *           `projects/<Project ID>/conversationModels/<Conversation Model Id>`
     *     @type \Google\Protobuf\Timestamp $create_time
     *           Timestamp when request to deploy conversation model was submitted. The time
     *           is measured on server side.
     *     @type \Google\Protobuf\Timestamp $done_time
     *           The time when the operation finished.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\ConversationModel::initOnce();
        parent::__construct($data);
    }

    /**
     * The resource name of the conversation model. Format:
     * `projects/<Project ID>/conversationModels/<Conversation Model Id>`
     *
     * Generated from protobuf field <code>string conversation_model = 1;</code>
     * @return string
     */
    public function getConversationModel()
    {
        return $this->conversation_model;
    }

    /**
     * The resource name of the conversation model. Format:
     * `projects/<Project ID>/conversationModels/<Conversation Model Id>`
     *
     * Generated from protobuf field <code>string conversation_model = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setConversationModel($var)
    {
        GPBUtil::checkString($var, True);
        $this->conversation_model = $var;

        return $this;
    }

    /**
     * Timestamp when request to deploy conversation model was submitted. The time
     * is measured on server side.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 3;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getCreateTime()
    {
        return $this->create_time;
    }

    public function hasCreateTime()
    {
        return isset($this->create_time);
    }

    public function clearCreateTime()
    {
        unset($this->create_time);
    }

    /**
     * Timestamp when request to deploy conversation model was submitted. The time
     * is measured on server side.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 3;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setCreateTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->create_time = $var;

        return $this;
    }

    /**
     * The time when the operation finished.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp done_time = 4;</code>
     * @return \Google\Protobuf\Timestamp|null
     */
    public function getDoneTime()
    {
        return $this->done_time;
    }

    public function hasDoneTime()
    {
        return isset($this->done_time);
    }

    public function clearDoneTime()
    {
        unset($this->done_time);
    }

    /**
     * The time when the operation finished.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp done_time = 4;</code>
     * @param \Google\Protobuf\Timestamp $var
     * @return $this
     */
    public function setDoneTime($var)
    {
        GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class);
        $this->done_time = $var;

        return $this;
    }

}

