<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v21/resources/group_content_suitability_placement_view.proto

namespace Google\Ads\GoogleAds\V21\Resources;

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

/**
 * A group content suitability placement view.
 *
 * Generated from protobuf message <code>google.ads.googleads.v21.resources.GroupContentSuitabilityPlacementView</code>
 */
class GroupContentSuitabilityPlacementView extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The resource name of the group content suitability placement
     * view. Group content suitability placement view resource names have the
     * form:
     * `customers/{customer_id}/groupContentSuitabilityPlacementViews/{placement_fingerprint}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     */
    protected $resource_name = '';
    /**
     * Output only. The display name is URL for websites, YouTube video name for
     * YouTube videos, and translated mobile app name for mobile apps.
     *
     * Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $display_name = '';
    /**
     * Output only. The automatic placement string at group level, for example.
     * website url, mobile application id, or a YouTube video id.
     *
     * Generated from protobuf field <code>string placement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $placement = '';
    /**
     * Output only. Represents the type of the placement, for example, Website,
     * YouTubeVideo and MobileApplication.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.enums.PlacementTypeEnum.PlacementType placement_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $placement_type = 0;
    /**
     * Output only. URL of the placement, for example, website, link to the mobile
     * application in app store, or a YouTube video URL.
     *
     * Generated from protobuf field <code>string target_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $target_url = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $resource_name
     *           Output only. The resource name of the group content suitability placement
     *           view. Group content suitability placement view resource names have the
     *           form:
     *           `customers/{customer_id}/groupContentSuitabilityPlacementViews/{placement_fingerprint}`
     *     @type string $display_name
     *           Output only. The display name is URL for websites, YouTube video name for
     *           YouTube videos, and translated mobile app name for mobile apps.
     *     @type string $placement
     *           Output only. The automatic placement string at group level, for example.
     *           website url, mobile application id, or a YouTube video id.
     *     @type int $placement_type
     *           Output only. Represents the type of the placement, for example, Website,
     *           YouTubeVideo and MobileApplication.
     *     @type string $target_url
     *           Output only. URL of the placement, for example, website, link to the mobile
     *           application in app store, or a YouTube video URL.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V21\Resources\GroupContentSuitabilityPlacementView::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The resource name of the group content suitability placement
     * view. Group content suitability placement view resource names have the
     * form:
     * `customers/{customer_id}/groupContentSuitabilityPlacementViews/{placement_fingerprint}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getResourceName()
    {
        return $this->resource_name;
    }

    /**
     * Output only. The resource name of the group content suitability placement
     * view. Group content suitability placement view resource names have the
     * form:
     * `customers/{customer_id}/groupContentSuitabilityPlacementViews/{placement_fingerprint}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setResourceName($var)
    {
        GPBUtil::checkString($var, True);
        $this->resource_name = $var;

        return $this;
    }

    /**
     * Output only. The display name is URL for websites, YouTube video name for
     * YouTube videos, and translated mobile app name for mobile apps.
     *
     * Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getDisplayName()
    {
        return $this->display_name;
    }

    /**
     * Output only. The display name is URL for websites, YouTube video name for
     * YouTube videos, and translated mobile app name for mobile apps.
     *
     * Generated from protobuf field <code>string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setDisplayName($var)
    {
        GPBUtil::checkString($var, True);
        $this->display_name = $var;

        return $this;
    }

    /**
     * Output only. The automatic placement string at group level, for example.
     * website url, mobile application id, or a YouTube video id.
     *
     * Generated from protobuf field <code>string placement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getPlacement()
    {
        return $this->placement;
    }

    /**
     * Output only. The automatic placement string at group level, for example.
     * website url, mobile application id, or a YouTube video id.
     *
     * Generated from protobuf field <code>string placement = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setPlacement($var)
    {
        GPBUtil::checkString($var, True);
        $this->placement = $var;

        return $this;
    }

    /**
     * Output only. Represents the type of the placement, for example, Website,
     * YouTubeVideo and MobileApplication.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.enums.PlacementTypeEnum.PlacementType placement_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getPlacementType()
    {
        return $this->placement_type;
    }

    /**
     * Output only. Represents the type of the placement, for example, Website,
     * YouTubeVideo and MobileApplication.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v21.enums.PlacementTypeEnum.PlacementType placement_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setPlacementType($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V21\Enums\PlacementTypeEnum\PlacementType::class);
        $this->placement_type = $var;

        return $this;
    }

    /**
     * Output only. URL of the placement, for example, website, link to the mobile
     * application in app store, or a YouTube video URL.
     *
     * Generated from protobuf field <code>string target_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getTargetUrl()
    {
        return $this->target_url;
    }

    /**
     * Output only. URL of the placement, for example, website, link to the mobile
     * application in app store, or a YouTube video URL.
     *
     * Generated from protobuf field <code>string target_url = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setTargetUrl($var)
    {
        GPBUtil::checkString($var, True);
        $this->target_url = $var;

        return $this;
    }

}

