<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# source: google/ads/datamanager/v1/user_list.proto

namespace Google\Ads\DataManager\V1;

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

/**
 * Additional information when `PSEUDONYMOUS_ID` is one of the
 * `upload_key_types`.
 *
 * Generated from protobuf message <code>google.ads.datamanager.v1.PseudonymousIdInfo</code>
 */
class PseudonymousIdInfo extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. Sync status of the user list.
     *
     * Generated from protobuf field <code>optional .google.ads.datamanager.v1.PseudonymousIdInfo.SyncStatus sync_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $sync_status = null;
    /**
     * Optional. Immutable. The number of billable records (e.g. uploaded or
     * matched).
     *
     * Generated from protobuf field <code>optional int64 billable_record_count = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];</code>
     */
    protected $billable_record_count = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int $sync_status
     *           Output only. Sync status of the user list.
     *     @type int|string $billable_record_count
     *           Optional. Immutable. The number of billable records (e.g. uploaded or
     *           matched).
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Datamanager\V1\UserList::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. Sync status of the user list.
     *
     * Generated from protobuf field <code>optional .google.ads.datamanager.v1.PseudonymousIdInfo.SyncStatus sync_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @return int
     */
    public function getSyncStatus()
    {
        return isset($this->sync_status) ? $this->sync_status : 0;
    }

    public function hasSyncStatus()
    {
        return isset($this->sync_status);
    }

    public function clearSyncStatus()
    {
        unset($this->sync_status);
    }

    /**
     * Output only. Sync status of the user list.
     *
     * Generated from protobuf field <code>optional .google.ads.datamanager.v1.PseudonymousIdInfo.SyncStatus sync_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     * @param int $var
     * @return $this
     */
    public function setSyncStatus($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\DataManager\V1\PseudonymousIdInfo\SyncStatus::class);
        $this->sync_status = $var;

        return $this;
    }

    /**
     * Optional. Immutable. The number of billable records (e.g. uploaded or
     * matched).
     *
     * Generated from protobuf field <code>optional int64 billable_record_count = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @return int|string
     */
    public function getBillableRecordCount()
    {
        return isset($this->billable_record_count) ? $this->billable_record_count : 0;
    }

    public function hasBillableRecordCount()
    {
        return isset($this->billable_record_count);
    }

    public function clearBillableRecordCount()
    {
        unset($this->billable_record_count);
    }

    /**
     * Optional. Immutable. The number of billable records (e.g. uploaded or
     * matched).
     *
     * Generated from protobuf field <code>optional int64 billable_record_count = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];</code>
     * @param int|string $var
     * @return $this
     */
    public function setBillableRecordCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->billable_record_count = $var;

        return $this;
    }

}

