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

namespace Google\Cloud\Video\Stitcher\V1\Slate;

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

/**
 * GamSlate object has Google Ad Manager (GAM) related properties for the
 * slate.
 *
 * Generated from protobuf message <code>google.cloud.video.stitcher.v1.Slate.GamSlate</code>
 */
class GamSlate extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. Ad Manager network code to associate with the live config.
     *
     * Generated from protobuf field <code>string network_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    private $network_code = '';
    /**
     * Output only. The identifier generated for the slate by GAM.
     *
     * Generated from protobuf field <code>int64 gam_slate_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $gam_slate_id = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $network_code
     *           Required. Ad Manager network code to associate with the live config.
     *     @type int|string $gam_slate_id
     *           Output only. The identifier generated for the slate by GAM.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Cloud\Video\Stitcher\V1\Slates::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. Ad Manager network code to associate with the live config.
     *
     * Generated from protobuf field <code>string network_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getNetworkCode()
    {
        return $this->network_code;
    }

    /**
     * Required. Ad Manager network code to associate with the live config.
     *
     * Generated from protobuf field <code>string network_code = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setNetworkCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->network_code = $var;

        return $this;
    }

    /**
     * Output only. The identifier generated for the slate by GAM.
     *
     * Generated from protobuf field <code>int64 gam_slate_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int|string
     */
    public function getGamSlateId()
    {
        return $this->gam_slate_id;
    }

    /**
     * Output only. The identifier generated for the slate by GAM.
     *
     * Generated from protobuf field <code>int64 gam_slate_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int|string $var
     * @return $this
     */
    public function setGamSlateId($var)
    {
        GPBUtil::checkInt64($var);
        $this->gam_slate_id = $var;

        return $this;
    }

}


