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

namespace Google\Ads\GoogleAds\V25\Resources;

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

/**
 * The identifiers of a Third Party App Analytics Link.
 *
 * Generated from protobuf message <code>google.ads.googleads.v25.resources.ThirdPartyAppAnalyticsLinkIdentifier</code>
 */
class ThirdPartyAppAnalyticsLinkIdentifier extends \Google\Protobuf\Internal\Message
{
    /**
     * Immutable. The ID of the app analytics provider.
     * This field should not be empty when creating a new third
     * party app analytics link. It is unable to be modified after the creation of
     * the link.
     *
     * Generated from protobuf field <code>optional int64 app_analytics_provider_id = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $app_analytics_provider_id = null;
    /**
     * Immutable. A string that uniquely identifies a mobile application from
     * which the data was collected to the Google Ads API. For iOS, the ID string
     * is the 9 digit string that appears at the end of an App Store URL (for
     * example, "422689480" for "Gmail" whose App Store link is
     * https://apps.apple.com/us/app/gmail-email-by-google/id422689480). For
     * Android, the ID string is the application's package name (for example,
     * "com.google.android.gm" for "Gmail" given Google Play link
     * https://play.google.com/store/apps/details?id=com.google.android.gm)
     * This field should not be empty when creating a new third
     * party app analytics link. It is unable to be modified after the creation of
     * the link.
     *
     * Generated from protobuf field <code>optional string app_id = 5 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $app_id = null;
    /**
     * Immutable. The vendor of the app.
     * This field should not be empty when creating a new third
     * party app analytics link. It is unable to be modified after the creation of
     * the link.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.MobileAppVendorEnum.MobileAppVendor app_vendor = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $app_vendor = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $app_analytics_provider_id
     *           Immutable. The ID of the app analytics provider.
     *           This field should not be empty when creating a new third
     *           party app analytics link. It is unable to be modified after the creation of
     *           the link.
     *     @type string $app_id
     *           Immutable. A string that uniquely identifies a mobile application from
     *           which the data was collected to the Google Ads API. For iOS, the ID string
     *           is the 9 digit string that appears at the end of an App Store URL (for
     *           example, "422689480" for "Gmail" whose App Store link is
     *           https://apps.apple.com/us/app/gmail-email-by-google/id422689480). For
     *           Android, the ID string is the application's package name (for example,
     *           "com.google.android.gm" for "Gmail" given Google Play link
     *           https://play.google.com/store/apps/details?id=com.google.android.gm)
     *           This field should not be empty when creating a new third
     *           party app analytics link. It is unable to be modified after the creation of
     *           the link.
     *     @type int $app_vendor
     *           Immutable. The vendor of the app.
     *           This field should not be empty when creating a new third
     *           party app analytics link. It is unable to be modified after the creation of
     *           the link.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\GoogleAds\V25\Resources\AccountLink::initOnce();
        parent::__construct($data);
    }

    /**
     * Immutable. The ID of the app analytics provider.
     * This field should not be empty when creating a new third
     * party app analytics link. It is unable to be modified after the creation of
     * the link.
     *
     * Generated from protobuf field <code>optional int64 app_analytics_provider_id = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return int|string
     */
    public function getAppAnalyticsProviderId()
    {
        return isset($this->app_analytics_provider_id) ? $this->app_analytics_provider_id : 0;
    }

    public function hasAppAnalyticsProviderId()
    {
        return isset($this->app_analytics_provider_id);
    }

    public function clearAppAnalyticsProviderId()
    {
        unset($this->app_analytics_provider_id);
    }

    /**
     * Immutable. The ID of the app analytics provider.
     * This field should not be empty when creating a new third
     * party app analytics link. It is unable to be modified after the creation of
     * the link.
     *
     * Generated from protobuf field <code>optional int64 app_analytics_provider_id = 4 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param int|string $var
     * @return $this
     */
    public function setAppAnalyticsProviderId($var)
    {
        GPBUtil::checkInt64($var);
        $this->app_analytics_provider_id = $var;

        return $this;
    }

    /**
     * Immutable. A string that uniquely identifies a mobile application from
     * which the data was collected to the Google Ads API. For iOS, the ID string
     * is the 9 digit string that appears at the end of an App Store URL (for
     * example, "422689480" for "Gmail" whose App Store link is
     * https://apps.apple.com/us/app/gmail-email-by-google/id422689480). For
     * Android, the ID string is the application's package name (for example,
     * "com.google.android.gm" for "Gmail" given Google Play link
     * https://play.google.com/store/apps/details?id=com.google.android.gm)
     * This field should not be empty when creating a new third
     * party app analytics link. It is unable to be modified after the creation of
     * the link.
     *
     * Generated from protobuf field <code>optional string app_id = 5 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return string
     */
    public function getAppId()
    {
        return isset($this->app_id) ? $this->app_id : '';
    }

    public function hasAppId()
    {
        return isset($this->app_id);
    }

    public function clearAppId()
    {
        unset($this->app_id);
    }

    /**
     * Immutable. A string that uniquely identifies a mobile application from
     * which the data was collected to the Google Ads API. For iOS, the ID string
     * is the 9 digit string that appears at the end of an App Store URL (for
     * example, "422689480" for "Gmail" whose App Store link is
     * https://apps.apple.com/us/app/gmail-email-by-google/id422689480). For
     * Android, the ID string is the application's package name (for example,
     * "com.google.android.gm" for "Gmail" given Google Play link
     * https://play.google.com/store/apps/details?id=com.google.android.gm)
     * This field should not be empty when creating a new third
     * party app analytics link. It is unable to be modified after the creation of
     * the link.
     *
     * Generated from protobuf field <code>optional string app_id = 5 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param string $var
     * @return $this
     */
    public function setAppId($var)
    {
        GPBUtil::checkString($var, True);
        $this->app_id = $var;

        return $this;
    }

    /**
     * Immutable. The vendor of the app.
     * This field should not be empty when creating a new third
     * party app analytics link. It is unable to be modified after the creation of
     * the link.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.MobileAppVendorEnum.MobileAppVendor app_vendor = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @return int
     */
    public function getAppVendor()
    {
        return $this->app_vendor;
    }

    /**
     * Immutable. The vendor of the app.
     * This field should not be empty when creating a new third
     * party app analytics link. It is unable to be modified after the creation of
     * the link.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v25.enums.MobileAppVendorEnum.MobileAppVendor app_vendor = 3 [(.google.api.field_behavior) = IMMUTABLE];</code>
     * @param int $var
     * @return $this
     */
    public function setAppVendor($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V25\Enums\MobileAppVendorEnum\MobileAppVendor::class);
        $this->app_vendor = $var;

        return $this;
    }

}

