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

namespace Google\Ads\AdManager\V1;

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

/**
 * A `LiveStreamEvent` encapsulates all the information necessary to enable DAI
 * (Dynamic Ad Insertion) into a live video stream.
 * This includes information such as the start and expected end time of the
 * `LiveStreamEvent`, the URL of the actual content for Ad Manager to pull and
 * insert ads into, as well as the metadata necessary to generate ad requests
 * during the live stream.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.LiveStreamEvent</code>
 */
class LiveStreamEvent extends \Google\Protobuf\Internal\Message
{
    /**
     * Identifier. The resource name of the `LiveStreamEvent`.
     * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     */
    protected $name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Identifier. The resource name of the `LiveStreamEvent`.
     *           Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}`
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\LiveStreamEventMessages::initOnce();
        parent::__construct($data);
    }

    /**
     * Identifier. The resource name of the `LiveStreamEvent`.
     * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Identifier. The resource name of the `LiveStreamEvent`.
     * Format: `networks/{network_code}/liveStreamEvents/{live_stream_event_id}`
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = IDENTIFIER];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

}

