<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/cloud/ces/v1/agent_service.proto

namespace Google\Cloud\Ces\V1;

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

/**
 * Response message for
 * [AgentService.ExportApp][google.cloud.ces.v1.AgentService.ExportApp].
 *
 * Generated from protobuf message <code>google.cloud.ces.v1.ExportAppResponse</code>
 */
class ExportAppResponse extends \Google\Protobuf\Internal\Message
{
    protected $app;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $app_content
     *           App folder compressed as a zip file.
     *     @type string $app_uri
     *           The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
     *           to which the app was exported.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Ces\V1\AgentService::initOnce();
        parent::__construct($data);
    }

    /**
     * App folder compressed as a zip file.
     *
     * Generated from protobuf field <code>bytes app_content = 1;</code>
     * @return string
     */
    public function getAppContent()
    {
        return $this->readOneof(1);
    }

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

    /**
     * App folder compressed as a zip file.
     *
     * Generated from protobuf field <code>bytes app_content = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setAppContent($var)
    {
        GPBUtil::checkString($var, False);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
     * to which the app was exported.
     *
     * Generated from protobuf field <code>string app_uri = 2;</code>
     * @return string
     */
    public function getAppUri()
    {
        return $this->readOneof(2);
    }

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

    /**
     * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
     * to which the app was exported.
     *
     * Generated from protobuf field <code>string app_uri = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setAppUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(2, $var);

        return $this;
    }

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

}

