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

namespace Google\Ads\GoogleAds\V22\Common;

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

/**
 * Additional information about the application/tool issuing the request. This
 * field is only used by [ContentCreatorInsightsService],
 * [AudienceInsightsService], and [ReachPlanService] APIs.
 *
 * Generated from protobuf message <code>google.ads.googleads.v22.common.AdditionalApplicationInfo</code>
 */
class AdditionalApplicationInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * The unique identifier of the agency proprietary application. This
     * identifier is generated by Google. Reach out to your Google representative
     * to request an application_id for each new application being integrated.
     *
     * Generated from protobuf field <code>string application_id = 1;</code>
     */
    protected $application_id = '';
    /**
     * The instance type of the application sending the request.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v22.enums.ApplicationInstanceEnum.ApplicationInstance application_instance = 2;</code>
     */
    protected $application_instance = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $application_id
     *           The unique identifier of the agency proprietary application. This
     *           identifier is generated by Google. Reach out to your Google representative
     *           to request an application_id for each new application being integrated.
     *     @type int $application_instance
     *           The instance type of the application sending the request.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V22\Common\AdditionalApplicationInfo::initOnce();
        parent::__construct($data);
    }

    /**
     * The unique identifier of the agency proprietary application. This
     * identifier is generated by Google. Reach out to your Google representative
     * to request an application_id for each new application being integrated.
     *
     * Generated from protobuf field <code>string application_id = 1;</code>
     * @return string
     */
    public function getApplicationId()
    {
        return $this->application_id;
    }

    /**
     * The unique identifier of the agency proprietary application. This
     * identifier is generated by Google. Reach out to your Google representative
     * to request an application_id for each new application being integrated.
     *
     * Generated from protobuf field <code>string application_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setApplicationId($var)
    {
        GPBUtil::checkString($var, True);
        $this->application_id = $var;

        return $this;
    }

    /**
     * The instance type of the application sending the request.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v22.enums.ApplicationInstanceEnum.ApplicationInstance application_instance = 2;</code>
     * @return int
     */
    public function getApplicationInstance()
    {
        return $this->application_instance;
    }

    /**
     * The instance type of the application sending the request.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v22.enums.ApplicationInstanceEnum.ApplicationInstance application_instance = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setApplicationInstance($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V22\Enums\ApplicationInstanceEnum\ApplicationInstance::class);
        $this->application_instance = $var;

        return $this;
    }

}

