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

namespace Google\Ads\GoogleAds\V25\Resources;

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

/**
 * AiMaxSearchTermAdCombinationView Resource.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.resources.AiMaxSearchTermAdCombinationView</code>
 */
class AiMaxSearchTermAdCombinationView extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The resource name of the AI Max Search Term Ad Combination
     * view AI Max Search Term Ad Combination view resource names have the form:
     * `customers/{customer_id}/aiMaxSearchTermAdCombinationViews/{ad_group_id}~{URL-base64_search_term}~{URL-base64_landing_page}~{URL-base64_headline}`
     *
     * 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. Ad group where the search term served.
     *
     * Generated from protobuf field <code>optional string ad_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     */
    protected $ad_group = null;
    /**
     * Output only. The search term that triggered the ad. This field is
     * read-only.
     *
     * Generated from protobuf field <code>optional string search_term = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $search_term = null;
    /**
     * Output only. The destination URL, which was dynamically generated. This
     * field is read-only.
     *
     * Generated from protobuf field <code>optional string landing_page = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $landing_page = null;
    /**
     * Output only. The concatenated string containing headline assets for the ad.
     * Up to three headline assets are concatenated, separated by " | ". This
     * field is read-only.
     *
     * Generated from protobuf field <code>optional string headline = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $headline = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $resource_name
     *           Output only. The resource name of the AI Max Search Term Ad Combination
     *           view AI Max Search Term Ad Combination view resource names have the form:
     *           `customers/{customer_id}/aiMaxSearchTermAdCombinationViews/{ad_group_id}~{URL-base64_search_term}~{URL-base64_landing_page}~{URL-base64_headline}`
     *     @type string $ad_group
     *           Output only. Ad group where the search term served.
     *     @type string $search_term
     *           Output only. The search term that triggered the ad. This field is
     *           read-only.
     *     @type string $landing_page
     *           Output only. The destination URL, which was dynamically generated. This
     *           field is read-only.
     *     @type string $headline
     *           Output only. The concatenated string containing headline assets for the ad.
     *           Up to three headline assets are concatenated, separated by " | ". This
     *           field is read-only.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Resources\AiMaxSearchTermAdCombinationView::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The resource name of the AI Max Search Term Ad Combination
     * view AI Max Search Term Ad Combination view resource names have the form:
     * `customers/{customer_id}/aiMaxSearchTermAdCombinationViews/{ad_group_id}~{URL-base64_search_term}~{URL-base64_landing_page}~{URL-base64_headline}`
     *
     * 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 AI Max Search Term Ad Combination
     * view AI Max Search Term Ad Combination view resource names have the form:
     * `customers/{customer_id}/aiMaxSearchTermAdCombinationViews/{ad_group_id}~{URL-base64_search_term}~{URL-base64_landing_page}~{URL-base64_headline}`
     *
     * 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. Ad group where the search term served.
     *
     * Generated from protobuf field <code>optional string ad_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getAdGroup()
    {
        return isset($this->ad_group) ? $this->ad_group : '';
    }

    public function hasAdGroup()
    {
        return isset($this->ad_group);
    }

    public function clearAdGroup()
    {
        unset($this->ad_group);
    }

    /**
     * Output only. Ad group where the search term served.
     *
     * Generated from protobuf field <code>optional string ad_group = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setAdGroup($var)
    {
        GPBUtil::checkString($var, True);
        $this->ad_group = $var;

        return $this;
    }

    /**
     * Output only. The search term that triggered the ad. This field is
     * read-only.
     *
     * Generated from protobuf field <code>optional string search_term = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getSearchTerm()
    {
        return isset($this->search_term) ? $this->search_term : '';
    }

    public function hasSearchTerm()
    {
        return isset($this->search_term);
    }

    public function clearSearchTerm()
    {
        unset($this->search_term);
    }

    /**
     * Output only. The search term that triggered the ad. This field is
     * read-only.
     *
     * Generated from protobuf field <code>optional string search_term = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setSearchTerm($var)
    {
        GPBUtil::checkString($var, True);
        $this->search_term = $var;

        return $this;
    }

    /**
     * Output only. The destination URL, which was dynamically generated. This
     * field is read-only.
     *
     * Generated from protobuf field <code>optional string landing_page = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getLandingPage()
    {
        return isset($this->landing_page) ? $this->landing_page : '';
    }

    public function hasLandingPage()
    {
        return isset($this->landing_page);
    }

    public function clearLandingPage()
    {
        unset($this->landing_page);
    }

    /**
     * Output only. The destination URL, which was dynamically generated. This
     * field is read-only.
     *
     * Generated from protobuf field <code>optional string landing_page = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setLandingPage($var)
    {
        GPBUtil::checkString($var, True);
        $this->landing_page = $var;

        return $this;
    }

    /**
     * Output only. The concatenated string containing headline assets for the ad.
     * Up to three headline assets are concatenated, separated by " | ". This
     * field is read-only.
     *
     * Generated from protobuf field <code>optional string headline = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getHeadline()
    {
        return isset($this->headline) ? $this->headline : '';
    }

    public function hasHeadline()
    {
        return isset($this->headline);
    }

    public function clearHeadline()
    {
        unset($this->headline);
    }

    /**
     * Output only. The concatenated string containing headline assets for the ad.
     * Up to three headline assets are concatenated, separated by " | ". This
     * field is read-only.
     *
     * Generated from protobuf field <code>optional string headline = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setHeadline($var)
    {
        GPBUtil::checkString($var, True);
        $this->headline = $var;

        return $this;
    }

}

