app.Protobuf.GoogleAuth.Payload
*/
class Payload extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field repeated .app.Protobuf.GoogleAuth.Payload.OtpParameters otp_parameters = 1;
*/
private $otp_parameters;
/**
* Generated from protobuf field int32 version = 2;
*/
protected $version = 0;
/**
* Generated from protobuf field int32 batch_size = 3;
*/
protected $batch_size = 0;
/**
* Generated from protobuf field int32 batch_index = 4;
*/
protected $batch_index = 0;
/**
* Generated from protobuf field int32 batch_id = 5;
*/
protected $batch_id = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \App\Protobuf\GoogleAuth\Payload\OtpParameters[]|\Google\Protobuf\Internal\RepeatedField $otp_parameters
* @type int $version
* @type int $batch_size
* @type int $batch_index
* @type int $batch_id
* }
*/
public function __construct($data = NULL) {
\App\Protobuf\GPBMetadata\GoogleAuth::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field repeated .app.Protobuf.GoogleAuth.Payload.OtpParameters otp_parameters = 1;
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getOtpParameters()
{
return $this->otp_parameters;
}
/**
* Generated from protobuf field repeated .app.Protobuf.GoogleAuth.Payload.OtpParameters otp_parameters = 1;
* @param \App\Protobuf\GoogleAuth\Payload\OtpParameters[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setOtpParameters($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \App\Protobuf\GoogleAuth\Payload\OtpParameters::class);
$this->otp_parameters = $arr;
return $this;
}
/**
* Generated from protobuf field int32 version = 2;
* @return int
*/
public function getVersion()
{
return $this->version;
}
/**
* Generated from protobuf field int32 version = 2;
* @param int $var
* @return $this
*/
public function setVersion($var)
{
GPBUtil::checkInt32($var);
$this->version = $var;
return $this;
}
/**
* Generated from protobuf field int32 batch_size = 3;
* @return int
*/
public function getBatchSize()
{
return $this->batch_size;
}
/**
* Generated from protobuf field int32 batch_size = 3;
* @param int $var
* @return $this
*/
public function setBatchSize($var)
{
GPBUtil::checkInt32($var);
$this->batch_size = $var;
return $this;
}
/**
* Generated from protobuf field int32 batch_index = 4;
* @return int
*/
public function getBatchIndex()
{
return $this->batch_index;
}
/**
* Generated from protobuf field int32 batch_index = 4;
* @param int $var
* @return $this
*/
public function setBatchIndex($var)
{
GPBUtil::checkInt32($var);
$this->batch_index = $var;
return $this;
}
/**
* Generated from protobuf field int32 batch_id = 5;
* @return int
*/
public function getBatchId()
{
return $this->batch_id;
}
/**
* Generated from protobuf field int32 batch_id = 5;
* @param int $var
* @return $this
*/
public function setBatchId($var)
{
GPBUtil::checkInt32($var);
$this->batch_id = $var;
return $this;
}
}