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

namespace Google\Ads\GoogleAds\V24\Resources;

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

/**
 * Offline conversion upload summary at customer level.
 *
 * Generated from protobuf message <code>google.ads.googleads.v24.resources.OfflineConversionUploadClientSummary</code>
 */
class OfflineConversionUploadClientSummary extends \Google\Protobuf\Internal\Message
{
    /**
     * Output only. The resource name of the offline conversion upload summary at
     * customer level. Offline conversion upload client summary resource names
     * have the form:
     * `customers/{customer_id}/offlineConversionUploadClientSummaries/{client}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     */
    protected $resource_name = '';
    /**
     * Output only. Client type of the upload event.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.OfflineEventUploadClientEnum.OfflineEventUploadClient client = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $client = 0;
    /**
     * Output only. Overall status for offline conversion client summary. Status
     * is generated from most recent calendar day with upload stats.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.OfflineConversionDiagnosticStatusEnum.OfflineConversionDiagnosticStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $status = 0;
    /**
     * Output only. Total count of uploaded events.
     *
     * Generated from protobuf field <code>int64 total_event_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $total_event_count = 0;
    /**
     * Output only. Total count of successful uploaded events.
     *
     * Generated from protobuf field <code>int64 successful_event_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $successful_event_count = 0;
    /**
     * Output only. Successful rate.
     *
     * Generated from protobuf field <code>double success_rate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $success_rate = 0.0;
    /**
     * Output only. Total count of pending uploaded events.
     *
     * Generated from protobuf field <code>int64 pending_event_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $pending_event_count = 0;
    /**
     * Output only. The ratio of total pending events to total events.
     *
     * Generated from protobuf field <code>double pending_rate = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $pending_rate = 0.0;
    /**
     * Output only. Date for the latest upload batch. The format is "yyyy-mm-dd
     * hh:mm:ss", and it's in the time zone of the Google Ads account.
     *
     * Generated from protobuf field <code>string last_upload_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    protected $last_upload_date_time = '';
    /**
     * Output only. Summary of history stats by last N days.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.resources.OfflineConversionSummary daily_summaries = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $daily_summaries;
    /**
     * Output only. Summary of history stats by last N jobs.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.resources.OfflineConversionSummary job_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $job_summaries;
    /**
     * Output only. Details for each error code. Alerts are generated from most
     * recent calendar day with upload stats.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.resources.OfflineConversionAlert alerts = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     */
    private $alerts;

    /**
     * Constructor.
     *
     * @param array $data {
     *                    Optional. Data for populating the Message object.
     *
     * @type string $resource_name
     *           Output only. The resource name of the offline conversion upload summary at
     *           customer level. Offline conversion upload client summary resource names
     *           have the form:
     *           `customers/{customer_id}/offlineConversionUploadClientSummaries/{client}`
     * @type int $client
     *           Output only. Client type of the upload event.
     * @type int $status
     *           Output only. Overall status for offline conversion client summary. Status
     *           is generated from most recent calendar day with upload stats.
     * @type int|string $total_event_count
     *           Output only. Total count of uploaded events.
     * @type int|string $successful_event_count
     *           Output only. Total count of successful uploaded events.
     * @type float $success_rate
     *           Output only. Successful rate.
     * @type int|string $pending_event_count
     *           Output only. Total count of pending uploaded events.
     * @type float $pending_rate
     *           Output only. The ratio of total pending events to total events.
     * @type string $last_upload_date_time
     *           Output only. Date for the latest upload batch. The format is "yyyy-mm-dd
     *           hh:mm:ss", and it's in the time zone of the Google Ads account.
     * @type \Google\Ads\GoogleAds\V24\Resources\OfflineConversionSummary[] $daily_summaries
     *           Output only. Summary of history stats by last N days.
     * @type \Google\Ads\GoogleAds\V24\Resources\OfflineConversionSummary[] $job_summaries
     *           Output only. Summary of history stats by last N jobs.
     * @type \Google\Ads\GoogleAds\V24\Resources\OfflineConversionAlert[] $alerts
     *           Output only. Details for each error code. Alerts are generated from most
     *           recent calendar day with upload stats.
     * }
     */
    public function __construct($data = null)
    {
        \GPBMetadata\Google\Ads\GoogleAds\V24\Resources\OfflineConversionUploadClientSummary::initOnce();
        parent::__construct($data);
    }

    /**
     * Output only. The resource name of the offline conversion upload summary at
     * customer level. Offline conversion upload client summary resource names
     * have the form:
     * `customers/{customer_id}/offlineConversionUploadClientSummaries/{client}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     *
     * @return string
     */
    public function getResourceName()
    {
        return $this->resource_name;
    }

    /**
     * Output only. The resource name of the offline conversion upload summary at
     * customer level. Offline conversion upload client summary resource names
     * have the form:
     * `customers/{customer_id}/offlineConversionUploadClientSummaries/{client}`
     *
     * Generated from protobuf field <code>string resource_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = {</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setResourceName($var)
    {
        GPBUtil::checkString($var, true);
        $this->resource_name = $var;

        return $this;
    }

    /**
     * Output only. Client type of the upload event.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.OfflineEventUploadClientEnum.OfflineEventUploadClient client = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return int
     */
    public function getClient()
    {
        return $this->client;
    }

    /**
     * Output only. Client type of the upload event.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.OfflineEventUploadClientEnum.OfflineEventUploadClient client = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setClient($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V24\Enums\OfflineEventUploadClientEnum\OfflineEventUploadClient::class);
        $this->client = $var;

        return $this;
    }

    /**
     * Output only. Overall status for offline conversion client summary. Status
     * is generated from most recent calendar day with upload stats.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.OfflineConversionDiagnosticStatusEnum.OfflineConversionDiagnosticStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return int
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Output only. Overall status for offline conversion client summary. Status
     * is generated from most recent calendar day with upload stats.
     *
     * Generated from protobuf field <code>.google.ads.googleads.v24.enums.OfflineConversionDiagnosticStatusEnum.OfflineConversionDiagnosticStatus status = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  int $var
     * @return $this
     */
    public function setStatus($var)
    {
        GPBUtil::checkEnum($var, \Google\Ads\GoogleAds\V24\Enums\OfflineConversionDiagnosticStatusEnum\OfflineConversionDiagnosticStatus::class);
        $this->status = $var;

        return $this;
    }

    /**
     * Output only. Total count of uploaded events.
     *
     * Generated from protobuf field <code>int64 total_event_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return int|string
     */
    public function getTotalEventCount()
    {
        return $this->total_event_count;
    }

    /**
     * Output only. Total count of uploaded events.
     *
     * Generated from protobuf field <code>int64 total_event_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  int|string $var
     * @return $this
     */
    public function setTotalEventCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->total_event_count = $var;

        return $this;
    }

    /**
     * Output only. Total count of successful uploaded events.
     *
     * Generated from protobuf field <code>int64 successful_event_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return int|string
     */
    public function getSuccessfulEventCount()
    {
        return $this->successful_event_count;
    }

    /**
     * Output only. Total count of successful uploaded events.
     *
     * Generated from protobuf field <code>int64 successful_event_count = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  int|string $var
     * @return $this
     */
    public function setSuccessfulEventCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->successful_event_count = $var;

        return $this;
    }

    /**
     * Output only. Successful rate.
     *
     * Generated from protobuf field <code>double success_rate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return float
     */
    public function getSuccessRate()
    {
        return $this->success_rate;
    }

    /**
     * Output only. Successful rate.
     *
     * Generated from protobuf field <code>double success_rate = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  float $var
     * @return $this
     */
    public function setSuccessRate($var)
    {
        GPBUtil::checkDouble($var);
        $this->success_rate = $var;

        return $this;
    }

    /**
     * Output only. Total count of pending uploaded events.
     *
     * Generated from protobuf field <code>int64 pending_event_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return int|string
     */
    public function getPendingEventCount()
    {
        return $this->pending_event_count;
    }

    /**
     * Output only. Total count of pending uploaded events.
     *
     * Generated from protobuf field <code>int64 pending_event_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  int|string $var
     * @return $this
     */
    public function setPendingEventCount($var)
    {
        GPBUtil::checkInt64($var);
        $this->pending_event_count = $var;

        return $this;
    }

    /**
     * Output only. The ratio of total pending events to total events.
     *
     * Generated from protobuf field <code>double pending_rate = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return float
     */
    public function getPendingRate()
    {
        return $this->pending_rate;
    }

    /**
     * Output only. The ratio of total pending events to total events.
     *
     * Generated from protobuf field <code>double pending_rate = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  float $var
     * @return $this
     */
    public function setPendingRate($var)
    {
        GPBUtil::checkDouble($var);
        $this->pending_rate = $var;

        return $this;
    }

    /**
     * Output only. Date for the latest upload batch. The format is "yyyy-mm-dd
     * hh:mm:ss", and it's in the time zone of the Google Ads account.
     *
     * Generated from protobuf field <code>string last_upload_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return string
     */
    public function getLastUploadDateTime()
    {
        return $this->last_upload_date_time;
    }

    /**
     * Output only. Date for the latest upload batch. The format is "yyyy-mm-dd
     * hh:mm:ss", and it's in the time zone of the Google Ads account.
     *
     * Generated from protobuf field <code>string last_upload_date_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  string $var
     * @return $this
     */
    public function setLastUploadDateTime($var)
    {
        GPBUtil::checkString($var, true);
        $this->last_upload_date_time = $var;

        return $this;
    }

    /**
     * Output only. Summary of history stats by last N days.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.resources.OfflineConversionSummary daily_summaries = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Resources\OfflineConversionSummary>
     */
    public function getDailySummaries()
    {
        return $this->daily_summaries;
    }

    /**
     * Output only. Summary of history stats by last N days.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.resources.OfflineConversionSummary daily_summaries = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Resources\OfflineConversionSummary[] $var
     * @return $this
     */
    public function setDailySummaries($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Resources\OfflineConversionSummary::class);
        $this->daily_summaries = $arr;

        return $this;
    }

    /**
     * Output only. Summary of history stats by last N jobs.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.resources.OfflineConversionSummary job_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Resources\OfflineConversionSummary>
     */
    public function getJobSummaries()
    {
        return $this->job_summaries;
    }

    /**
     * Output only. Summary of history stats by last N jobs.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.resources.OfflineConversionSummary job_summaries = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Resources\OfflineConversionSummary[] $var
     * @return $this
     */
    public function setJobSummaries($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Resources\OfflineConversionSummary::class);
        $this->job_summaries = $arr;

        return $this;
    }

    /**
     * Output only. Details for each error code. Alerts are generated from most
     * recent calendar day with upload stats.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.resources.OfflineConversionAlert alerts = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @return RepeatedField<\Google\Ads\GoogleAds\V24\Resources\OfflineConversionAlert>
     */
    public function getAlerts()
    {
        return $this->alerts;
    }

    /**
     * Output only. Details for each error code. Alerts are generated from most
     * recent calendar day with upload stats.
     *
     * Generated from protobuf field <code>repeated .google.ads.googleads.v24.resources.OfflineConversionAlert alerts = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>
     *
     * @param  \Google\Ads\GoogleAds\V24\Resources\OfflineConversionAlert[] $var
     * @return $this
     */
    public function setAlerts($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\GoogleAds\V24\Resources\OfflineConversionAlert::class);
        $this->alerts = $arr;

        return $this;
    }

}

