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

namespace Google\Cloud\Dialogflow\Cx\V3;

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

/**
 * The response message for
 * [Playbooks.ExportPlaybook][google.cloud.dialogflow.cx.v3.Playbooks.ExportPlaybook].
 *
 * Generated from protobuf message <code>google.cloud.dialogflow.cx.v3.ExportPlaybookResponse</code>
 */
class ExportPlaybookResponse extends \Google\Protobuf\Internal\Message
{
    protected $playbook;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $playbook_uri
     *           The URI to a file containing the exported playbook. This field is
     *           populated only if `playbook_uri` is specified in
     *           [ExportPlaybookRequest][google.cloud.dialogflow.cx.v3.ExportPlaybookRequest].
     *     @type string $playbook_content
     *           Uncompressed raw byte content for playbook.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Dialogflow\Cx\V3\Playbook::initOnce();
        parent::__construct($data);
    }

    /**
     * The URI to a file containing the exported playbook. This field is
     * populated only if `playbook_uri` is specified in
     * [ExportPlaybookRequest][google.cloud.dialogflow.cx.v3.ExportPlaybookRequest].
     *
     * Generated from protobuf field <code>string playbook_uri = 1;</code>
     * @return string
     */
    public function getPlaybookUri()
    {
        return $this->readOneof(1);
    }

    public function hasPlaybookUri()
    {
        return $this->hasOneof(1);
    }

    /**
     * The URI to a file containing the exported playbook. This field is
     * populated only if `playbook_uri` is specified in
     * [ExportPlaybookRequest][google.cloud.dialogflow.cx.v3.ExportPlaybookRequest].
     *
     * Generated from protobuf field <code>string playbook_uri = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setPlaybookUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * Uncompressed raw byte content for playbook.
     *
     * Generated from protobuf field <code>bytes playbook_content = 2;</code>
     * @return string
     */
    public function getPlaybookContent()
    {
        return $this->readOneof(2);
    }

    public function hasPlaybookContent()
    {
        return $this->hasOneof(2);
    }

    /**
     * Uncompressed raw byte content for playbook.
     *
     * Generated from protobuf field <code>bytes playbook_content = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setPlaybookContent($var)
    {
        GPBUtil::checkString($var, False);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getPlaybook()
    {
        return $this->whichOneof("playbook");
    }

}

