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

namespace Google\Cloud\AuditManager\V1;

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

/**
 * The locations where the generated reports are saved.
 *
 * Generated from protobuf message <code>google.cloud.auditmanager.v1.DestinationDetails</code>
 */
class DestinationDetails extends \Google\Protobuf\Internal\Message
{
    protected $destination;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $gcs_bucket_uri
     *           The Cloud Storage bucket where the audit report is/will be uploaded.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Auditmanager\V1\Auditmanager::initOnce();
        parent::__construct($data);
    }

    /**
     * The Cloud Storage bucket where the audit report is/will be uploaded.
     *
     * Generated from protobuf field <code>string gcs_bucket_uri = 1;</code>
     * @return string
     */
    public function getGcsBucketUri()
    {
        return $this->readOneof(1);
    }

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

    /**
     * The Cloud Storage bucket where the audit report is/will be uploaded.
     *
     * Generated from protobuf field <code>string gcs_bucket_uri = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setGcsBucketUri($var)
    {
        GPBUtil::checkString($var, True);
        $this->writeOneof(1, $var);

        return $this;
    }

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

}

