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

namespace Google\Ads\GoogleAds\V24\Resources\Recommendation;

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

/**
 * The Merchant Center account details.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.Recommendation.MerchantInfo</code>
 */
class MerchantInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The Merchant Center account ID.
     *
     * Generated from protobuf field <code>int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $id = 0;
    /**
     * Output only. The name of the Merchant Center account.
     *
     * Generated from protobuf field <code>string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $name = '';
    /**
     * Output only. Whether the Merchant Center account is a Multi-Client
     * account (MCA).
     *
     * Generated from protobuf field <code>bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $multi_client = false;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type int|string $id
     *           Output only. The Merchant Center account ID.
     * @type string $name
     *           Output only. The name of the Merchant Center account.
     * @type bool $multi_client
     *           Output only. Whether the Merchant Center account is a Multi-Client
     *           account (MCA).
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\Recommendation::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The Merchant Center account ID.
     *
     * Generated from protobuf field <code>int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return int|string
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Output only. The Merchant Center account ID.
     *
     * Generated from protobuf field <code>int64 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  int|string $var
     * @return $this
     */
    public function setId($var)
    {
        GPBUtil::checkInt64($var);
        $this->id = $var;

        return $this;
    }

    /**
     * Output only. The name of the Merchant Center account.
     *
     * Generated from protobuf field <code>string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Output only. The name of the Merchant Center account.
     *
     * Generated from protobuf field <code>string name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, true);
        $this->name = $var;

        return $this;
    }

    /**
     * Output only. Whether the Merchant Center account is a Multi-Client
     * account (MCA).
     *
     * Generated from protobuf field <code>bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return bool
     */
    public function getMultiClient()
    {
        return $this->multi_client;
    }

    /**
     * Output only. Whether the Merchant Center account is a Multi-Client
     * account (MCA).
     *
     * Generated from protobuf field <code>bool multi_client = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  bool $var
     * @return $this
     */
    public function setMultiClient($var)
    {
        GPBUtil::checkBool($var);
        $this->multi_client = $var;

        return $this;
    }

}

