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

namespace Google\Ads\DataManager\V1\RequestStatusPerDestination;

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

/**
 * The status of the user data ingestion to the destination containing stats
 * related to the ingestion.
 *
 * Generated from protobuf message <code>google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus</code>
 */
class IngestUserDataStatus extends \Google\Protobuf\Internal\Message
{
    /**
     * The total count of audience members sent in the upload request for the
     * destination. Includes all audience members in the request, regardless of
     * whether they were successfully ingested or not.
     *
     * Generated from protobuf field <code>int64 record_count = 1;</code>
     */
    protected $record_count = 0;
    /**
     * The total count of user identifiers sent in the upload request for the
     * destination. Includes all user identifiers in the request, regardless of
     * whether they were successfully ingested or not.
     *
     * Generated from protobuf field <code>int64 user_identifier_count = 2;</code>
     */
    protected $user_identifier_count = 0;
    /**
     * The match rate range of the upload.
     *
     * Generated from protobuf field <code>.google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3;</code>
     */
    protected $upload_match_rate_range = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type int|string $record_count
     *           The total count of audience members sent in the upload request for the
     *           destination. Includes all audience members in the request, regardless of
     *           whether they were successfully ingested or not.
     *     @type int|string $user_identifier_count
     *           The total count of user identifiers sent in the upload request for the
     *           destination. Includes all user identifiers in the request, regardless of
     *           whether they were successfully ingested or not.
     *     @type int $upload_match_rate_range
     *           The match rate range of the upload.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Datamanager\V1\RequestStatusPerDestination::initOnce();
        parent::__construct($data);
    }

    /**
     * The total count of audience members sent in the upload request for the
     * destination. Includes all audience members in the request, regardless of
     * whether they were successfully ingested or not.
     *
     * Generated from protobuf field <code>int64 record_count = 1;</code>
     * @return int|string
     */
    public function getRecordCount()
    {
        return $this->record_count;
    }

    /**
     * The total count of audience members sent in the upload request for the
     * destination. Includes all audience members in the request, regardless of
     * whether they were successfully ingested or not.
     *
     * Generated from protobuf field <code>int64 record_count = 1;</code>
     * @param int|string $var
     * @return $this
     */
    public function setRecordCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->record_count = $var;

        return $this;
    }

    /**
     * The total count of user identifiers sent in the upload request for the
     * destination. Includes all user identifiers in the request, regardless of
     * whether they were successfully ingested or not.
     *
     * Generated from protobuf field <code>int64 user_identifier_count = 2;</code>
     * @return int|string
     */
    public function getUserIdentifierCount()
    {
        return $this->user_identifier_count;
    }

    /**
     * The total count of user identifiers sent in the upload request for the
     * destination. Includes all user identifiers in the request, regardless of
     * whether they were successfully ingested or not.
     *
     * Generated from protobuf field <code>int64 user_identifier_count = 2;</code>
     * @param int|string $var
     * @return $this
     */
    public function setUserIdentifierCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->user_identifier_count = $var;

        return $this;
    }

    /**
     * The match rate range of the upload.
     *
     * Generated from protobuf field <code>.google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3;</code>
     * @return int
     */
    public function getUploadMatchRateRange()
    {
        return $this->upload_match_rate_range;
    }

    /**
     * The match rate range of the upload.
     *
     * Generated from protobuf field <code>.google.ads.datamanager.v1.MatchRateRange upload_match_rate_range = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setUploadMatchRateRange($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\DataManager\V1\MatchRateRange::class);
        $this->upload_match_rate_range = $var;

        return $this;
    }

}

