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

namespace Google\Cloud\Dialogflow\V2;

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

/**
 * Response used for
 * [ConversationDatasets.ImportConversationData][google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData]
 * long running operation.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.ImportConversationDataOperationResponse</code>
 */
class ImportConversationDataOperationResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The resource name of the imported conversation dataset. Format:
     * `projects/<Project ID>/locations/<Location
     * ID>/conversationDatasets/<Conversation Dataset Id>`
     *
     * Generated from protobuf field <code>string conversation_dataset = 1 [(.google.api.resource_reference) = {</code>
     */
    protected $conversation_dataset = '';
    /**
     * Number of conversations imported successfully.
     *
     * Generated from protobuf field <code>int32 import_count = 3;</code>
     */
    protected $import_count = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $conversation_dataset
     *           The resource name of the imported conversation dataset. Format:
     *           `projects/<Project ID>/locations/<Location
     *           ID>/conversationDatasets/<Conversation Dataset Id>`
     *     @type int $import_count
     *           Number of conversations imported successfully.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\V2\ConversationDataset::initOnce();
        parent::__construct($data);
    }

    /**
     * The resource name of the imported conversation dataset. Format:
     * `projects/<Project ID>/locations/<Location
     * ID>/conversationDatasets/<Conversation Dataset Id>`
     *
     * Generated from protobuf field <code>string conversation_dataset = 1 [(.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getConversationDataset()
    {
        return $this->conversation_dataset;
    }

    /**
     * The resource name of the imported conversation dataset. Format:
     * `projects/<Project ID>/locations/<Location
     * ID>/conversationDatasets/<Conversation Dataset Id>`
     *
     * Generated from protobuf field <code>string conversation_dataset = 1 [(.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setConversationDataset($var)
    {
        GPBUtil::checkString($var, True);
        $this->conversation_dataset = $var;

        return $this;
    }

    /**
     * Number of conversations imported successfully.
     *
     * Generated from protobuf field <code>int32 import_count = 3;</code>
     * @return int
     */
    public function getImportCount()
    {
        return $this->import_count;
    }

    /**
     * Number of conversations imported successfully.
     *
     * Generated from protobuf field <code>int32 import_count = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setImportCount($var)
    {
        GPBUtil::checkInt32($var);
        $this->import_count = $var;

        return $this;
    }

}

