<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/marketingplatform/admin/v1alpha/marketingplatform_admin.proto

namespace Google\Ads\MarketingPlatform\Admin\V1alpha;

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

/**
 * Request message for SetPropertyServiceLevel RPC.
 *
 * Generated from protobuf message <code>google.marketingplatform.admin.v1alpha.SetPropertyServiceLevelRequest</code>
 */
class SetPropertyServiceLevelRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required. The parent AnalyticsAccountLink scope where this property is in.
     * Format:
     * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id}
     *
     * Generated from protobuf field <code>string analytics_account_link = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $analytics_account_link = '';
    /**
     * Required. The Analytics property to change the ServiceLevel setting. This
     * field is the name of the Google Analytics Admin API property resource.
     * Format: analyticsadmin.googleapis.com/properties/{property_id}
     *
     * Generated from protobuf field <code>string analytics_property = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     */
    protected $analytics_property = '';
    /**
     * Required. The service level to set for this property.
     *
     * Generated from protobuf field <code>.google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     */
    protected $service_level = 0;

    /**
     * @param string $analyticsAccountLink Required. The parent AnalyticsAccountLink scope where this property is in.
     *                                     Format:
     *                                     organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id}
     *
     * @return \Google\Ads\MarketingPlatform\Admin\V1alpha\SetPropertyServiceLevelRequest
     *
     * @experimental
     */
    public static function build(string $analyticsAccountLink): self
    {
        return (new self())
            ->setAnalyticsAccountLink($analyticsAccountLink);
    }

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $analytics_account_link
     *           Required. The parent AnalyticsAccountLink scope where this property is in.
     *           Format:
     *           organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id}
     *     @type string $analytics_property
     *           Required. The Analytics property to change the ServiceLevel setting. This
     *           field is the name of the Google Analytics Admin API property resource.
     *           Format: analyticsadmin.googleapis.com/properties/{property_id}
     *     @type int $service_level
     *           Required. The service level to set for this property.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Marketingplatform\Admin\V1Alpha\MarketingplatformAdmin::initOnce();
        parent::__construct($data);
    }

    /**
     * Required. The parent AnalyticsAccountLink scope where this property is in.
     * Format:
     * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id}
     *
     * Generated from protobuf field <code>string analytics_account_link = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return string
     */
    public function getAnalyticsAccountLink()
    {
        return $this->analytics_account_link;
    }

    /**
     * Required. The parent AnalyticsAccountLink scope where this property is in.
     * Format:
     * organizations/{org_id}/analyticsAccountLinks/{analytics_account_link_id}
     *
     * Generated from protobuf field <code>string analytics_account_link = 1 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param string $var
     * @return $this
     */
    public function setAnalyticsAccountLink($var)
    {
        GPBUtil::checkString($var, True);
        $this->analytics_account_link = $var;

        return $this;
    }

    /**
     * Required. The Analytics property to change the ServiceLevel setting. This
     * field is the name of the Google Analytics Admin API property resource.
     * Format: analyticsadmin.googleapis.com/properties/{property_id}
     *
     * Generated from protobuf field <code>string analytics_property = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @return string
     */
    public function getAnalyticsProperty()
    {
        return $this->analytics_property;
    }

    /**
     * Required. The Analytics property to change the ServiceLevel setting. This
     * field is the name of the Google Analytics Admin API property resource.
     * Format: analyticsadmin.googleapis.com/properties/{property_id}
     *
     * Generated from protobuf field <code>string analytics_property = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {</code>
     * @param string $var
     * @return $this
     */
    public function setAnalyticsProperty($var)
    {
        GPBUtil::checkString($var, True);
        $this->analytics_property = $var;

        return $this;
    }

    /**
     * Required. The service level to set for this property.
     *
     * Generated from protobuf field <code>.google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @return int
     */
    public function getServiceLevel()
    {
        return $this->service_level;
    }

    /**
     * Required. The service level to set for this property.
     *
     * Generated from protobuf field <code>.google.marketingplatform.admin.v1alpha.AnalyticsServiceLevel service_level = 3 [(.google.api.field_behavior) = REQUIRED];</code>
     * @param int $var
     * @return $this
     */
    public function setServiceLevel($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\MarketingPlatform\Admin\V1alpha\AnalyticsServiceLevel::class);
        $this->service_level = $var;

        return $this;
    }

}

