<?php
# Generated by the protocol buffer compiler.  DO NOT EDIT!
# NO CHECKED-IN PROTOBUF GENCODE
# source: livekit_phone_number.proto

namespace Livekit;

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

/**
 * SearchPhoneNumbersRequest - Request to search available phone numbers
 *
 * Generated from protobuf message <code>livekit.SearchPhoneNumbersRequest</code>
 */
class SearchPhoneNumbersRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Filter by country code (e.g., "US", "CA")
     *
     * Generated from protobuf field <code>string country_code = 1;</code>
     */
    protected $country_code = '';
    /**
     * Filter by area code (e.g., "415")
     *
     * Generated from protobuf field <code>optional string area_code = 2;</code>
     */
    protected $area_code = null;
    /**
     * Maximum number of results (default: 50)
     *
     * Generated from protobuf field <code>optional int32 limit = 3;</code>
     */
    protected $limit = null;
    /**
     * Token for pagination (empty for first page)
     *
     * Generated from protobuf field <code>optional .livekit.TokenPagination page_token = 4;</code>
     */
    protected $page_token = null;

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $country_code
     *           Filter by country code (e.g., "US", "CA")
     *     @type string $area_code
     *           Filter by area code (e.g., "415")
     *     @type int $limit
     *           Maximum number of results (default: 50)
     *     @type \Livekit\TokenPagination $page_token
     *           Token for pagination (empty for first page)
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitPhoneNumber::initOnce();
        parent::__construct($data);
    }

    /**
     * Filter by country code (e.g., "US", "CA")
     *
     * Generated from protobuf field <code>string country_code = 1;</code>
     * @return string
     */
    public function getCountryCode()
    {
        return $this->country_code;
    }

    /**
     * Filter by country code (e.g., "US", "CA")
     *
     * Generated from protobuf field <code>string country_code = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setCountryCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->country_code = $var;

        return $this;
    }

    /**
     * Filter by area code (e.g., "415")
     *
     * Generated from protobuf field <code>optional string area_code = 2;</code>
     * @return string
     */
    public function getAreaCode()
    {
        return isset($this->area_code) ? $this->area_code : '';
    }

    public function hasAreaCode()
    {
        return isset($this->area_code);
    }

    public function clearAreaCode()
    {
        unset($this->area_code);
    }

    /**
     * Filter by area code (e.g., "415")
     *
     * Generated from protobuf field <code>optional string area_code = 2;</code>
     * @param string $var
     * @return $this
     */
    public function setAreaCode($var)
    {
        GPBUtil::checkString($var, True);
        $this->area_code = $var;

        return $this;
    }

    /**
     * Maximum number of results (default: 50)
     *
     * Generated from protobuf field <code>optional int32 limit = 3;</code>
     * @return int
     */
    public function getLimit()
    {
        return isset($this->limit) ? $this->limit : 0;
    }

    public function hasLimit()
    {
        return isset($this->limit);
    }

    public function clearLimit()
    {
        unset($this->limit);
    }

    /**
     * Maximum number of results (default: 50)
     *
     * Generated from protobuf field <code>optional int32 limit = 3;</code>
     * @param int $var
     * @return $this
     */
    public function setLimit($var)
    {
        GPBUtil::checkInt32($var);
        $this->limit = $var;

        return $this;
    }

    /**
     * Token for pagination (empty for first page)
     *
     * Generated from protobuf field <code>optional .livekit.TokenPagination page_token = 4;</code>
     * @return \Livekit\TokenPagination|null
     */
    public function getPageToken()
    {
        return $this->page_token;
    }

    public function hasPageToken()
    {
        return isset($this->page_token);
    }

    public function clearPageToken()
    {
        unset($this->page_token);
    }

    /**
     * Token for pagination (empty for first page)
     *
     * Generated from protobuf field <code>optional .livekit.TokenPagination page_token = 4;</code>
     * @param \Livekit\TokenPagination $var
     * @return $this
     */
    public function setPageToken($var)
    {
        GPBUtil::checkMessage($var, \Livekit\TokenPagination::class);
        $this->page_token = $var;

        return $this;
    }

}

