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

namespace Livekit;

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

/**
 * Generated from protobuf message <code>livekit.DialWhatsAppCallRequest</code>
 */
class DialWhatsAppCallRequest extends \Google\Protobuf\Internal\Message
{
    /**
     * Required - The phone number id of the business that is initiating the call
     *
     * Generated from protobuf field <code>string whatsapp_phone_number_id = 1;</code>
     */
    protected $whatsapp_phone_number_id = '';
    /**
     * Required - The number of the user that is supossed to receive the call
     *
     * Generated from protobuf field <code>string whatsapp_to_phone_number = 2 [(.logger.redact) = true];</code>
     */
    protected $whatsapp_to_phone_number = '';
    /**
     * Required - The API key of the business that is initiating the call
     *
     * Generated from protobuf field <code>string whatsapp_api_key = 3 [(.logger.redact) = true];</code>
     */
    protected $whatsapp_api_key = '';
    /**
     * Required - WhatsApp Cloud API version, eg: 23.0, 24.0, etc.
     *
     * Generated from protobuf field <code>string whatsapp_cloud_api_version = 12;</code>
     */
    protected $whatsapp_cloud_api_version = '';
    /**
     * Optional - An arbitrary string you can pass in that is useful for tracking and logging purposes.
     *
     * Generated from protobuf field <code>string whatsapp_biz_opaque_callback_data = 4;</code>
     */
    protected $whatsapp_biz_opaque_callback_data = '';
    /**
     * Optional - What LiveKit room should this participant be connected too
     *
     * Generated from protobuf field <code>string room_name = 5;</code>
     */
    protected $room_name = '';
    /**
     * Optional - Agents to dispatch the call to
     *
     * Generated from protobuf field <code>repeated .livekit.RoomAgentDispatch agents = 6;</code>
     */
    private $agents;
    /**
     * Optional - Identity of the participant in LiveKit room
     * This is used for logging purposes, so it is advised to not put PII in this field.
     *
     * Generated from protobuf field <code>string participant_identity = 7;</code>
     */
    protected $participant_identity = '';
    /**
     * Optional - Name of the participant in LiveKit room
     *
     * Generated from protobuf field <code>string participant_name = 8 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];</code>
     */
    protected $participant_name = '';
    /**
     * Optional - User-defined metadata. Will be attached to a created Participant in the room.
     *
     * Generated from protobuf field <code>string participant_metadata = 9 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];</code>
     */
    protected $participant_metadata = '';
    /**
     * Optional - User-defined attributes. Will be attached to a created Participant in the room.
     *
     * Generated from protobuf field <code>map<string, string> participant_attributes = 10 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];</code>
     */
    private $participant_attributes;
    /**
     * Optional - Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls.
     *
     * Generated from protobuf field <code>string destination_country = 11;</code>
     */
    protected $destination_country = '';

    /**
     * Constructor.
     *
     * @param array $data {
     *     Optional. Data for populating the Message object.
     *
     *     @type string $whatsapp_phone_number_id
     *           Required - The phone number id of the business that is initiating the call
     *     @type string $whatsapp_to_phone_number
     *           Required - The number of the user that is supossed to receive the call
     *     @type string $whatsapp_api_key
     *           Required - The API key of the business that is initiating the call
     *     @type string $whatsapp_cloud_api_version
     *           Required - WhatsApp Cloud API version, eg: 23.0, 24.0, etc.
     *     @type string $whatsapp_biz_opaque_callback_data
     *           Optional - An arbitrary string you can pass in that is useful for tracking and logging purposes.
     *     @type string $room_name
     *           Optional - What LiveKit room should this participant be connected too
     *     @type \Livekit\RoomAgentDispatch[] $agents
     *           Optional - Agents to dispatch the call to
     *     @type string $participant_identity
     *           Optional - Identity of the participant in LiveKit room
     *           This is used for logging purposes, so it is advised to not put PII in this field.
     *     @type string $participant_name
     *           Optional - Name of the participant in LiveKit room
     *     @type string $participant_metadata
     *           Optional - User-defined metadata. Will be attached to a created Participant in the room.
     *     @type array|\Google\Protobuf\Internal\MapField $participant_attributes
     *           Optional - User-defined attributes. Will be attached to a created Participant in the room.
     *     @type string $destination_country
     *           Optional - Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls.
     * }
     */
    public function __construct($data = NULL) {
        \GPBMetadata\LivekitConnectorWhatsapp::initOnce();
        parent::__construct($data);
    }

    /**
     * Required - The phone number id of the business that is initiating the call
     *
     * Generated from protobuf field <code>string whatsapp_phone_number_id = 1;</code>
     * @return string
     */
    public function getWhatsappPhoneNumberId()
    {
        return $this->whatsapp_phone_number_id;
    }

    /**
     * Required - The phone number id of the business that is initiating the call
     *
     * Generated from protobuf field <code>string whatsapp_phone_number_id = 1;</code>
     * @param string $var
     * @return $this
     */
    public function setWhatsappPhoneNumberId($var)
    {
        GPBUtil::checkString($var, True);
        $this->whatsapp_phone_number_id = $var;

        return $this;
    }

    /**
     * Required - The number of the user that is supossed to receive the call
     *
     * Generated from protobuf field <code>string whatsapp_to_phone_number = 2 [(.logger.redact) = true];</code>
     * @return string
     */
    public function getWhatsappToPhoneNumber()
    {
        return $this->whatsapp_to_phone_number;
    }

    /**
     * Required - The number of the user that is supossed to receive the call
     *
     * Generated from protobuf field <code>string whatsapp_to_phone_number = 2 [(.logger.redact) = true];</code>
     * @param string $var
     * @return $this
     */
    public function setWhatsappToPhoneNumber($var)
    {
        GPBUtil::checkString($var, True);
        $this->whatsapp_to_phone_number = $var;

        return $this;
    }

    /**
     * Required - The API key of the business that is initiating the call
     *
     * Generated from protobuf field <code>string whatsapp_api_key = 3 [(.logger.redact) = true];</code>
     * @return string
     */
    public function getWhatsappApiKey()
    {
        return $this->whatsapp_api_key;
    }

    /**
     * Required - The API key of the business that is initiating the call
     *
     * Generated from protobuf field <code>string whatsapp_api_key = 3 [(.logger.redact) = true];</code>
     * @param string $var
     * @return $this
     */
    public function setWhatsappApiKey($var)
    {
        GPBUtil::checkString($var, True);
        $this->whatsapp_api_key = $var;

        return $this;
    }

    /**
     * Required - WhatsApp Cloud API version, eg: 23.0, 24.0, etc.
     *
     * Generated from protobuf field <code>string whatsapp_cloud_api_version = 12;</code>
     * @return string
     */
    public function getWhatsappCloudApiVersion()
    {
        return $this->whatsapp_cloud_api_version;
    }

    /**
     * Required - WhatsApp Cloud API version, eg: 23.0, 24.0, etc.
     *
     * Generated from protobuf field <code>string whatsapp_cloud_api_version = 12;</code>
     * @param string $var
     * @return $this
     */
    public function setWhatsappCloudApiVersion($var)
    {
        GPBUtil::checkString($var, True);
        $this->whatsapp_cloud_api_version = $var;

        return $this;
    }

    /**
     * Optional - An arbitrary string you can pass in that is useful for tracking and logging purposes.
     *
     * Generated from protobuf field <code>string whatsapp_biz_opaque_callback_data = 4;</code>
     * @return string
     */
    public function getWhatsappBizOpaqueCallbackData()
    {
        return $this->whatsapp_biz_opaque_callback_data;
    }

    /**
     * Optional - An arbitrary string you can pass in that is useful for tracking and logging purposes.
     *
     * Generated from protobuf field <code>string whatsapp_biz_opaque_callback_data = 4;</code>
     * @param string $var
     * @return $this
     */
    public function setWhatsappBizOpaqueCallbackData($var)
    {
        GPBUtil::checkString($var, True);
        $this->whatsapp_biz_opaque_callback_data = $var;

        return $this;
    }

    /**
     * Optional - What LiveKit room should this participant be connected too
     *
     * Generated from protobuf field <code>string room_name = 5;</code>
     * @return string
     */
    public function getRoomName()
    {
        return $this->room_name;
    }

    /**
     * Optional - What LiveKit room should this participant be connected too
     *
     * Generated from protobuf field <code>string room_name = 5;</code>
     * @param string $var
     * @return $this
     */
    public function setRoomName($var)
    {
        GPBUtil::checkString($var, True);
        $this->room_name = $var;

        return $this;
    }

    /**
     * Optional - Agents to dispatch the call to
     *
     * Generated from protobuf field <code>repeated .livekit.RoomAgentDispatch agents = 6;</code>
     * @return RepeatedField<\Livekit\RoomAgentDispatch>
     */
    public function getAgents()
    {
        return $this->agents;
    }

    /**
     * Optional - Agents to dispatch the call to
     *
     * Generated from protobuf field <code>repeated .livekit.RoomAgentDispatch agents = 6;</code>
     * @param \Livekit\RoomAgentDispatch[] $var
     * @return $this
     */
    public function setAgents($var)
    {
        $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Livekit\RoomAgentDispatch::class);
        $this->agents = $arr;

        return $this;
    }

    /**
     * Optional - Identity of the participant in LiveKit room
     * This is used for logging purposes, so it is advised to not put PII in this field.
     *
     * Generated from protobuf field <code>string participant_identity = 7;</code>
     * @return string
     */
    public function getParticipantIdentity()
    {
        return $this->participant_identity;
    }

    /**
     * Optional - Identity of the participant in LiveKit room
     * This is used for logging purposes, so it is advised to not put PII in this field.
     *
     * Generated from protobuf field <code>string participant_identity = 7;</code>
     * @param string $var
     * @return $this
     */
    public function setParticipantIdentity($var)
    {
        GPBUtil::checkString($var, True);
        $this->participant_identity = $var;

        return $this;
    }

    /**
     * Optional - Name of the participant in LiveKit room
     *
     * Generated from protobuf field <code>string participant_name = 8 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];</code>
     * @return string
     */
    public function getParticipantName()
    {
        return $this->participant_name;
    }

    /**
     * Optional - Name of the participant in LiveKit room
     *
     * Generated from protobuf field <code>string participant_name = 8 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];</code>
     * @param string $var
     * @return $this
     */
    public function setParticipantName($var)
    {
        GPBUtil::checkString($var, True);
        $this->participant_name = $var;

        return $this;
    }

    /**
     * Optional - User-defined metadata. Will be attached to a created Participant in the room.
     *
     * Generated from protobuf field <code>string participant_metadata = 9 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];</code>
     * @return string
     */
    public function getParticipantMetadata()
    {
        return $this->participant_metadata;
    }

    /**
     * Optional - User-defined metadata. Will be attached to a created Participant in the room.
     *
     * Generated from protobuf field <code>string participant_metadata = 9 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];</code>
     * @param string $var
     * @return $this
     */
    public function setParticipantMetadata($var)
    {
        GPBUtil::checkString($var, True);
        $this->participant_metadata = $var;

        return $this;
    }

    /**
     * Optional - User-defined attributes. Will be attached to a created Participant in the room.
     *
     * Generated from protobuf field <code>map<string, string> participant_attributes = 10 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];</code>
     * @return \Google\Protobuf\Internal\MapField
     */
    public function getParticipantAttributes()
    {
        return $this->participant_attributes;
    }

    /**
     * Optional - User-defined attributes. Will be attached to a created Participant in the room.
     *
     * Generated from protobuf field <code>map<string, string> participant_attributes = 10 [(.logger.redact) = true, (.logger.redact_format) = "<redacted ({{ .Size }} bytes)>"];</code>
     * @param array|\Google\Protobuf\Internal\MapField $var
     * @return $this
     */
    public function setParticipantAttributes($var)
    {
        $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING);
        $this->participant_attributes = $arr;

        return $this;
    }

    /**
     * Optional - Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls.
     *
     * Generated from protobuf field <code>string destination_country = 11;</code>
     * @return string
     */
    public function getDestinationCountry()
    {
        return $this->destination_country;
    }

    /**
     * Optional - Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls.
     *
     * Generated from protobuf field <code>string destination_country = 11;</code>
     * @param string $var
     * @return $this
     */
    public function setDestinationCountry($var)
    {
        GPBUtil::checkString($var, True);
        $this->destination_country = $var;

        return $this;
    }

}

