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

namespace Google\Analytics\Admin\V1alpha;

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

/**
 * Settings values for Google Signals.  This is a singleton resource.
 *
 * Generated from protobuf message <code>google.analytics.admin.v1alpha.GoogleSignalsSettings</code>
 */
class GoogleSignalsSettings extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Resource name of this setting.
     * Format: properties/{property_id}/googleSignalsSettings
     * Example: "properties/1000/googleSignalsSettings"
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $name = '';
    /**
     * Status of this setting.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.GoogleSignalsState state = 3;</code>
     */
    private $state = 0;
    /**
     * Output only. Terms of Service acceptance.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $consent = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $name
     *           Output only. Resource name of this setting.
     *           Format: properties/{property_id}/googleSignalsSettings
     *           Example: "properties/1000/googleSignalsSettings"
     *     @type int $state
     *           Status of this setting.
     *     @type int $consent
     *           Output only. Terms of Service acceptance.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Analytics\Admin\V1Alpha\Resources::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Resource name of this setting.
     * Format: properties/{property_id}/googleSignalsSettings
     * Example: "properties/1000/googleSignalsSettings"
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return string
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Output only. Resource name of this setting.
     * Format: properties/{property_id}/googleSignalsSettings
     * Example: "properties/1000/googleSignalsSettings"
     *
     * Generated from protobuf field <code>string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param string $var
     * @return $this
     */
    public function setName($var)
    {
        GPBUtil::checkString($var, True);
        $this->name = $var;

        return $this;
    }

    /**
     * Status of this setting.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.GoogleSignalsState state = 3;</code>
     * @return int
     */
    public function getState()
    {
        return $this->state;
    }

    /**
     * Status of this setting.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.GoogleSignalsState state = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setState($var)
    {
        GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsState::class);
        $this->state = $var;

        return $this;
    }

    /**
     * Output only. Terms of Service acceptance.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getConsent()
    {
        return $this->consent;
    }

    /**
     * Output only. Terms of Service acceptance.
     *
     * Generated from protobuf field <code>.google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setConsent($var)
    {
        GPBUtil::checkEnum($var, \Google\Analytics\Admin\V1alpha\GoogleSignalsConsent::class);
        $this->consent = $var;

        return $this;
    }

}

