<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v11/common/keyword_plan_common.proto

namespace Google\Ads\GoogleAds\V11\Common;

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

/**
 * The concept for the keyword.
 *
 * Generated from protobuf message <code>google.ads.googleads.v11.common.KeywordConcept</code>
 */
class KeywordConcept extends \Google\Protobuf\Internal\Message
{
    /**
     * The concept name for the keyword in the concept_group.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     */
    protected $name = '';
    /**
     * The concept group of the concept details.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v11.common.ConceptGroup concept_group = 2;</code>
     */
    protected $concept_group = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           The concept name for the keyword in the concept_group.
     *     @type \Google\Ads\GoogleAds\V11\Common\ConceptGroup $concept_group
     *           The concept group of the concept details.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V11\Common\KeywordPlanCommon::initOnce();
        parent::__construct($data);
    }

    /**
     * The concept name for the keyword in the concept_group.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * The concept name for the keyword in the concept_group.
     *
     * Generated from protobuf field <code>string name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * The concept group of the concept details.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v11.common.ConceptGroup concept_group = 2;</code>
     * @return \Google\Ads\GoogleAds\V11\Common\ConceptGroup|null
     */
    public function getConceptGroup()
    {
        return $this->concept_group;
    }

    public function hasConceptGroup()
    {
        return isset($this->concept_group);
    }

    public function clearConceptGroup()
    {
        unset($this->concept_group);
    }

    /**
     * The concept group of the concept details.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v11.common.ConceptGroup concept_group = 2;</code>
     * @param \Google\Ads\GoogleAds\V11\Common\ConceptGroup $var
     * @return $this
     */
    public function setConceptGroup($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\GoogleAds\V11\Common\ConceptGroup::class);
        $this->concept_group = $var;

        return $this;
    }

}

