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

namespace Google\Cloud\Asset\V1;

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

/**
 * Output result of export assets.
 *
 * Generated from protobuf message <code>google.cloud.asset.v1.OutputResult</code>
 */
class OutputResult extends \Google\Protobuf\Internal\Message
{
    protected $result;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Cloud\Asset\V1\GcsOutputResult $gcs_result
     *           Export result on Cloud Storage.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Asset\V1\AssetService::initOnce();
        parent::__construct($data);
    }

    /**
     * Export result on Cloud Storage.
     *
     * Generated from protobuf field <code>.google.cloud.asset.v1.GcsOutputResult gcs_result = 1;</code>
     * @return \Google\Cloud\Asset\V1\GcsOutputResult|null
     */
    public function getGcsResult()
    {
        return $this->readOneof(1);
    }

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

    /**
     * Export result on Cloud Storage.
     *
     * Generated from protobuf field <code>.google.cloud.asset.v1.GcsOutputResult gcs_result = 1;</code>
     * @param \Google\Cloud\Asset\V1\GcsOutputResult $var
     * @return $this
     */
    public function setGcsResult($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Asset\V1\GcsOutputResult::class);
        $this->writeOneof(1, $var);

        return $this;
    }

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

}

