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

namespace Google\Ads\AdManager\V1;

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

/**
 * Response object for `ListMobileDeviceSubmodelsRequest` containing matching
 * `MobileDeviceSubmodel` objects.
 *
 * Generated from protobuf message <code>google.ads.admanager.v1.ListMobileDeviceSubmodelsResponse</code>
 */
class ListMobileDeviceSubmodelsResponse extends \Google\Protobuf\Internal\Message
{
    /**
     * The `MobileDeviceSubmodel` objects from the specified network.
     *
     * Generated from protobuf field <code>repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1;</code>
     */
    private $mobile_device_submodels;
    /**
     * A token, which can be sent as `page_token` to retrieve the next page.
     * If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     */
    protected $next_page_token = '';
    /**
     * Total number of `MobileDeviceSubmodel` objects.
     * If a filter was included in the request, this reflects the total number
     * after the filtering is applied.
     * `total_size` won't be calculated in the response unless it has been
     * included in a response field mask. The response field mask can be provided
     * to the method by using the URL parameter `$fields` or `fields`, or by using
     * the HTTP/gRPC header `X-Goog-FieldMask`.
     * For more information, see
     * https://developers.google.com/ad-manager/api/beta/field-masks
     *
     * Generated from protobuf field <code>int32 total_size = 3;</code>
     */
    protected $total_size = 0;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type array<\Google\Ads\AdManager\V1\MobileDeviceSubmodel>|\Google\Protobuf\Internal\RepeatedField $mobile_device_submodels
     *           The `MobileDeviceSubmodel` objects from the specified network.
     *     @type string $next_page_token
     *           A token, which can be sent as `page_token` to retrieve the next page.
     *           If this field is omitted, there are no subsequent pages.
     *     @type int $total_size
     *           Total number of `MobileDeviceSubmodel` objects.
     *           If a filter was included in the request, this reflects the total number
     *           after the filtering is applied.
     *           `total_size` won't be calculated in the response unless it has been
     *           included in a response field mask. The response field mask can be provided
     *           to the method by using the URL parameter `$fields` or `fields`, or by using
     *           the HTTP/gRPC header `X-Goog-FieldMask`.
     *           For more information, see
     *           https://developers.google.com/ad-manager/api/beta/field-masks
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\Google\Ads\Admanager\V1\MobileDeviceSubmodelService::initOnce();
        parent::__construct($data);
    }

    /**
     * The `MobileDeviceSubmodel` objects from the specified network.
     *
     * Generated from protobuf field <code>repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1;</code>
     * @return \Google\Protobuf\Internal\RepeatedField
     */
    public function getMobileDeviceSubmodels()
    {
        return $this->mobile_device_submodels;
    }

    /**
     * The `MobileDeviceSubmodel` objects from the specified network.
     *
     * Generated from protobuf field <code>repeated .google.ads.admanager.v1.MobileDeviceSubmodel mobile_device_submodels = 1;</code>
     * @param array<\Google\Ads\AdManager\V1\MobileDeviceSubmodel>|\Google\Protobuf\Internal\RepeatedField $var
     * @return $this
     */
    public function setMobileDeviceSubmodels($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\MobileDeviceSubmodel::class);
        $this->mobile_device_submodels = $arr;

        return $this;
    }

    /**
     * A token, which can be sent as `page_token` to retrieve the next page.
     * If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @return string
     */
    public function getNextPageToken()
    {
        return $this->next_page_token;
    }

    /**
     * A token, which can be sent as `page_token` to retrieve the next page.
     * If this field is omitted, there are no subsequent pages.
     *
     * Generated from protobuf field <code>string next_page_token = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setNextPageToken($var)
    {
        GPBUtil::checkString($var, True);
        $this->next_page_token = $var;

        return $this;
    }

    /**
     * Total number of `MobileDeviceSubmodel` objects.
     * If a filter was included in the request, this reflects the total number
     * after the filtering is applied.
     * `total_size` won't be calculated in the response unless it has been
     * included in a response field mask. The response field mask can be provided
     * to the method by using the URL parameter `$fields` or `fields`, or by using
     * the HTTP/gRPC header `X-Goog-FieldMask`.
     * For more information, see
     * https://developers.google.com/ad-manager/api/beta/field-masks
     *
     * Generated from protobuf field <code>int32 total_size = 3;</code>
     * @return int
     */
    public function getTotalSize()
    {
        return $this->total_size;
    }

    /**
     * Total number of `MobileDeviceSubmodel` objects.
     * If a filter was included in the request, this reflects the total number
     * after the filtering is applied.
     * `total_size` won't be calculated in the response unless it has been
     * included in a response field mask. The response field mask can be provided
     * to the method by using the URL parameter `$fields` or `fields`, or by using
     * the HTTP/gRPC header `X-Goog-FieldMask`.
     * For more information, see
     * https://developers.google.com/ad-manager/api/beta/field-masks
     *
     * Generated from protobuf field <code>int32 total_size = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setTotalSize($var)
    {
        GPBUtil::checkInt32($var);
        $this->total_size = $var;

        return $this;
    }

}

