app.Protobuf.GoogleAuth.Payload.OtpParameters */ class OtpParameters extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field bytes secret = 1; */ protected $secret = ''; /** * Generated from protobuf field string name = 2; */ protected $name = ''; /** * Generated from protobuf field string issuer = 3; */ protected $issuer = ''; /** * Generated from protobuf field .app.Protobuf.GoogleAuth.Payload.Algorithm algorithm = 4; */ protected $algorithm = 0; /** * Generated from protobuf field .app.Protobuf.GoogleAuth.Payload.DigitCount digits = 5; */ protected $digits = 0; /** * Generated from protobuf field .app.Protobuf.GoogleAuth.Payload.OtpType type = 6; */ protected $type = 0; /** * Generated from protobuf field int64 counter = 7; */ protected $counter = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $secret * @type string $name * @type string $issuer * @type int $algorithm * @type int $digits * @type int $type * @type int|string $counter * } */ public function __construct($data = NULL) { \App\Protobuf\GPBMetadata\GoogleAuth::initOnce(); parent::__construct($data); } /** * Generated from protobuf field bytes secret = 1; * @return string */ public function getSecret() { return $this->secret; } /** * Generated from protobuf field bytes secret = 1; * @param string $var * @return $this */ public function setSecret($var) { GPBUtil::checkString($var, False); $this->secret = $var; return $this; } /** * Generated from protobuf field string name = 2; * @return string */ public function getName() { return $this->name; } /** * Generated from protobuf field string name = 2; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Generated from protobuf field string issuer = 3; * @return string */ public function getIssuer() { return $this->issuer; } /** * Generated from protobuf field string issuer = 3; * @param string $var * @return $this */ public function setIssuer($var) { GPBUtil::checkString($var, True); $this->issuer = $var; return $this; } /** * Generated from protobuf field .app.Protobuf.GoogleAuth.Payload.Algorithm algorithm = 4; * @return int */ public function getAlgorithm() { return $this->algorithm; } /** * Generated from protobuf field .app.Protobuf.GoogleAuth.Payload.Algorithm algorithm = 4; * @param int $var * @return $this */ public function setAlgorithm($var) { GPBUtil::checkEnum($var, \App\Protobuf\GoogleAuth\Payload_Algorithm::class); $this->algorithm = $var; return $this; } /** * Generated from protobuf field .app.Protobuf.GoogleAuth.Payload.DigitCount digits = 5; * @return int */ public function getDigits() { return $this->digits; } /** * Generated from protobuf field .app.Protobuf.GoogleAuth.Payload.DigitCount digits = 5; * @param int $var * @return $this */ public function setDigits($var) { GPBUtil::checkEnum($var, \App\Protobuf\GoogleAuth\Payload_DigitCount::class); $this->digits = $var; return $this; } /** * Generated from protobuf field .app.Protobuf.GoogleAuth.Payload.OtpType type = 6; * @return int */ public function getType() { return $this->type; } /** * Generated from protobuf field .app.Protobuf.GoogleAuth.Payload.OtpType type = 6; * @param int $var * @return $this */ public function setType($var) { GPBUtil::checkEnum($var, \App\Protobuf\GoogleAuth\Payload_OtpType::class); $this->type = $var; return $this; } /** * Generated from protobuf field int64 counter = 7; * @return int|string */ public function getCounter() { return $this->counter; } /** * Generated from protobuf field int64 counter = 7; * @param int|string $var * @return $this */ public function setCounter($var) { GPBUtil::checkInt64($var); $this->counter = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(OtpParameters::class, \App\Protobuf\GoogleAuth\Payload_OtpParameters::class);