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

/**
 * Metadata for a
 * [ConversationDatasets.ImportConversationData][google.cloud.dialogflow.v2.ConversationDatasets.ImportConversationData]
 * operation.
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.v2.ImportConversationDataOperationMetadata</code>
 */
class ImportConversationDataOperationMetadata 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 = '';
    /**
     * Partial failures are failures that don't fail the whole long running
     * operation, e.g. single files that couldn't be read.
     *
     * Generated from protobuf field <code>repeated .google.rpc.Status partial_failures = 2;</code>
     */
    private $partial_failures;
    /**
     * Timestamp when import conversation data request was created. The time is
     * measured on server side.
     *
     * Generated from protobuf field <code>.google.protobuf.Timestamp create_time = 3;</code>
     */
    protected $create_time = null;

    /**
     * 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 array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $partial_failures
     *           Partial failures are failures that don't fail the whole long running
     *           operation, e.g. single files that couldn't be read.
     *     @type \Google\Protobuf\Timestamp $create_time
     *           Timestamp when import conversation data request was created. The time is
     *           measured on server side.
     * }
     */
    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;
    }

    /**
     * Partial failures are failures that don't fail the whole long running
     * operation, e.g. single files that couldn't be read.
     *
     * Generated from protobuf field <code>repeated .google.rpc.Status partial_failures = 2;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getPartialFailures()
    {
        return $this->partial_failures;
    }

    /**
     * Partial failures are failures that don't fail the whole long running
     * operation, e.g. single files that couldn't be read.
     *
     * Generated from protobuf field <code>repeated .google.rpc.Status partial_failures = 2;</code>
     * @param array<\Google\Rpc\Status>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setPartialFailures($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Rpc\Status::class);
        $this->partial_failures = $arr;

        return $this;
    }

    /**
     * Timestamp when import conversation data request was created. 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 import conversation data request was created. 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;
    }

}

