<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/googleads/v22/services/smart_campaign_suggest_service.proto

namespace Google\Ads\GoogleAds\V22\Services\SmartCampaignSuggestionInfo;

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

/**
 * A context that describes a business.
 *
 * Generated from protobuf message <code>google.ads.googleads.v22.services.SmartCampaignSuggestionInfo.BusinessContext</code>
 */
class BusinessContext extends \Google\Protobuf\Internal\Message
{
    /**
     * Optional. The name of the business.
     *
     * Generated from protobuf field <code>string business_name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     */
    protected $business_name = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $business_name
     *           Optional. The name of the business.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V22\Services\SmartCampaignSuggestService::initOnce();
        parent::__construct($data);
    }

    /**
     * Optional. The name of the business.
     *
     * Generated from protobuf field <code>string business_name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @return string
     */
    public function getBusinessName()
    {
        return $this->business_name;
    }

    /**
     * Optional. The name of the business.
     *
     * Generated from protobuf field <code>string business_name = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     * @param string $var
     * @return $this
     */
    public function setBusinessName($var)
    {
        GPBUtil::checkString($var, True);
        $this->business_name = $var;

        return $this;
    }

}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BusinessContext::class, \Google\Ads\GoogleAds\V22\Services\SmartCampaignSuggestionInfo_BusinessContext::class);

