<?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\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;

/**
 * The status of the ingest audience members request.
 *
 * Generated from protobuf message <code>google.ads.datamanager.v1.RequestStatusPerDestination.IngestAudienceMembersStatus</code>
 */
class IngestAudienceMembersStatus extends \Google\Protobuf\Internal\Message
{
    protected $status;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type \Google\Ads\DataManager\V1\RequestStatusPerDestination\IngestUserDataStatus $user_data_ingestion_status
     *           The status of the user data ingestion to the destination.
     *     @type \Google\Ads\DataManager\V1\RequestStatusPerDestination\IngestMobileDataStatus $mobile_data_ingestion_status
     *           The status of the mobile data ingestion to the destination.
     *     @type \Google\Ads\DataManager\V1\RequestStatusPerDestination\IngestPairDataStatus $pair_data_ingestion_status
     *           The status of the pair data ingestion to the destination.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Datamanager\V1\RequestStatusPerDestination::initOnce();
        parent::__construct($data);
    }

    /**
     * The status of the user data ingestion to the destination.
     *
     * Generated from protobuf field <code>.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus user_data_ingestion_status = 1;</code>
     * @return \Google\Ads\DataManager\V1\RequestStatusPerDestination\IngestUserDataStatus|null
     */
    public function getUserDataIngestionStatus()
    {
        return $this->readOneof(1);
    }

    public function hasUserDataIngestionStatus()
    {
        return $this->hasOneof(1);
    }

    /**
     * The status of the user data ingestion to the destination.
     *
     * Generated from protobuf field <code>.google.ads.datamanager.v1.RequestStatusPerDestination.IngestUserDataStatus user_data_ingestion_status = 1;</code>
     * @param \Google\Ads\DataManager\V1\RequestStatusPerDestination\IngestUserDataStatus $var
     * @return $this
     */
    public function setUserDataIngestionStatus($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\DataManager\V1\RequestStatusPerDestination\IngestUserDataStatus::class);
        $this->writeOneof(1, $var);

        return $this;
    }

    /**
     * The status of the mobile data ingestion to the destination.
     *
     * Generated from protobuf field <code>.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus mobile_data_ingestion_status = 2;</code>
     * @return \Google\Ads\DataManager\V1\RequestStatusPerDestination\IngestMobileDataStatus|null
     */
    public function getMobileDataIngestionStatus()
    {
        return $this->readOneof(2);
    }

    public function hasMobileDataIngestionStatus()
    {
        return $this->hasOneof(2);
    }

    /**
     * The status of the mobile data ingestion to the destination.
     *
     * Generated from protobuf field <code>.google.ads.datamanager.v1.RequestStatusPerDestination.IngestMobileDataStatus mobile_data_ingestion_status = 2;</code>
     * @param \Google\Ads\DataManager\V1\RequestStatusPerDestination\IngestMobileDataStatus $var
     * @return $this
     */
    public function setMobileDataIngestionStatus($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\DataManager\V1\RequestStatusPerDestination\IngestMobileDataStatus::class);
        $this->writeOneof(2, $var);

        return $this;
    }

    /**
     * The status of the pair data ingestion to the destination.
     *
     * Generated from protobuf field <code>.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus pair_data_ingestion_status = 3;</code>
     * @return \Google\Ads\DataManager\V1\RequestStatusPerDestination\IngestPairDataStatus|null
     */
    public function getPairDataIngestionStatus()
    {
        return $this->readOneof(3);
    }

    public function hasPairDataIngestionStatus()
    {
        return $this->hasOneof(3);
    }

    /**
     * The status of the pair data ingestion to the destination.
     *
     * Generated from protobuf field <code>.google.ads.datamanager.v1.RequestStatusPerDestination.IngestPairDataStatus pair_data_ingestion_status = 3;</code>
     * @param \Google\Ads\DataManager\V1\RequestStatusPerDestination\IngestPairDataStatus $var
     * @return $this
     */
    public function setPairDataIngestionStatus($var)
    {
        GPBUtil::checkMessage($var, \Google\Ads\DataManager\V1\RequestStatusPerDestination\IngestPairDataStatus::class);
        $this->writeOneof(3, $var);

        return $this;
    }

    /**
     * @return string
     */
    public function getStatus()
    {
        return $this->whichOneof("status");
    }

}


