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

namespace Google\Ads\GoogleAds\V25\Common;

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

/**
 * Additional information about the application/tool issuing the request. This
 * field is only used by
 * [ContentCreatorInsightsService][google.ads.googleads.v25.services.ContentCreatorInsightsService],
 * [AudienceInsightsService][google.ads.googleads.v25.services.AudienceInsightsService],
 * and [ReachPlanService][google.ads.googleads.v25.services.ReachPlanService]
 * APIs.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.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.v25.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\V25\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.v25.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.v25.enums.ApplicationInstanceEnum.ApplicationInstance application_instance = 2;</code>
     * @param int $var
     * @return $this
     */
    public function setApplicationInstance($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V25\Enums\ApplicationInstanceEnum\ApplicationInstance::class);
        $this->application_instance = $var;

        return $this;
    }

}

