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

namespace Google\Ads\GoogleAds\V23\Services;

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

/**
 * The metadata associated with a product supported for benchmarks data.
 *
 * Generated from protobuf message <code>google.ads.googleads.v23.services.BenchmarksProductMetadata</code>
 */
class BenchmarksProductMetadata extends \Google\Protobuf\Internal\Message
{
    /**
     * The name of the product.
     *
     * Generated from protobuf field <code>string product_name = 1;</code>
     */
    protected $product_name = '';
    /**
     * The identifier of the product. The identifier can be used as inputs
     * for
     * [BenchmarksService.GenerateBenchmarksMetrics][google.ads.googleads.v23.services.BenchmarksService.GenerateBenchmarksMetrics].
     *
     * Generated from protobuf field <code>string product_code = 2;</code>
     */
    protected $product_code = '';
    /**
     * The marketing objective associated with the product. A marketing objective
     * is a broader classification of products.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.BenchmarksMarketingObjectiveEnum.BenchmarksMarketingObjective marketing_objective = 3;</code>
     */
    protected $marketing_objective = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $product_name
     *           The name of the product.
     *     @type string $product_code
     *           The identifier of the product. The identifier can be used as inputs
     *           for
     *           [BenchmarksService.GenerateBenchmarksMetrics][google.ads.googleads.v23.services.BenchmarksService.GenerateBenchmarksMetrics].
     *     @type int $marketing_objective
     *           The marketing objective associated with the product. A marketing objective
     *           is a broader classification of products.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V23\Services\BenchmarksService::initOnce();
        parent::__construct($data);
    }

    /**
     * The name of the product.
     *
     * Generated from protobuf field <code>string product_name = 1;</code>
     * @return string
     */
    public function getProductName()
    {
        return $this->product_name;
    }

    /**
     * The name of the product.
     *
     * Generated from protobuf field <code>string product_name = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setProductName($var)
    {
        GPBUtil::checkString($var, True);
        $this->product_name = $var;

        return $this;
    }

    /**
     * The identifier of the product. The identifier can be used as inputs
     * for
     * [BenchmarksService.GenerateBenchmarksMetrics][google.ads.googleads.v23.services.BenchmarksService.GenerateBenchmarksMetrics].
     *
     * Generated from protobuf field <code>string product_code = 2;</code>
     * @return string
     */
    public function getProductCode()
    {
        return $this->product_code;
    }

    /**
     * The identifier of the product. The identifier can be used as inputs
     * for
     * [BenchmarksService.GenerateBenchmarksMetrics][google.ads.googleads.v23.services.BenchmarksService.GenerateBenchmarksMetrics].
     *
     * Generated from protobuf field <code>string product_code = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setProductCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->product_code = $var;

        return $this;
    }

    /**
     * The marketing objective associated with the product. A marketing objective
     * is a broader classification of products.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.BenchmarksMarketingObjectiveEnum.BenchmarksMarketingObjective marketing_objective = 3;</code>
     * @return int
     */
    public function getMarketingObjective()
    {
        return $this->marketing_objective;
    }

    /**
     * The marketing objective associated with the product. A marketing objective
     * is a broader classification of products.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v23.enums.BenchmarksMarketingObjectiveEnum.BenchmarksMarketingObjective marketing_objective = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setMarketingObjective($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V23\Enums\BenchmarksMarketingObjectiveEnum\BenchmarksMarketingObjective::class);
        $this->marketing_objective = $var;

        return $this;
    }

}

