mirror of
https://github.com/Bubka/2FAuth.git
synced 2025-06-25 06:24:07 +02:00
Set uint64 and string for period and counter
This commit is contained in:
parent
24b626fb4f
commit
3a4d1876c8
Binary file not shown.
@ -38,11 +38,11 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
|
|||||||
*/
|
*/
|
||||||
protected $type = 0;
|
protected $type = 0;
|
||||||
/**
|
/**
|
||||||
* Generated from protobuf field <code>optional int32 counter = 7;</code>
|
* Generated from protobuf field <code>optional uint64 counter = 7;</code>
|
||||||
*/
|
*/
|
||||||
protected $counter = null;
|
protected $counter = null;
|
||||||
/**
|
/**
|
||||||
* Generated from protobuf field <code>optional .google.protobuf.Any period = 8;</code>
|
* Generated from protobuf field <code>optional string period = 8;</code>
|
||||||
*/
|
*/
|
||||||
protected $period = null;
|
protected $period = null;
|
||||||
|
|
||||||
@ -58,8 +58,8 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
|
|||||||
* @type int $algorithm
|
* @type int $algorithm
|
||||||
* @type int $digits
|
* @type int $digits
|
||||||
* @type int $type
|
* @type int $type
|
||||||
* @type int $counter
|
* @type int|string $counter
|
||||||
* @type \Google\Protobuf\Any $period
|
* @type string $period
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
public function __construct($data = NULL) {
|
public function __construct($data = NULL) {
|
||||||
@ -200,8 +200,8 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated from protobuf field <code>optional int32 counter = 7;</code>
|
* Generated from protobuf field <code>optional uint64 counter = 7;</code>
|
||||||
* @return int
|
* @return int|string
|
||||||
*/
|
*/
|
||||||
public function getCounter()
|
public function getCounter()
|
||||||
{
|
{
|
||||||
@ -219,25 +219,25 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated from protobuf field <code>optional int32 counter = 7;</code>
|
* Generated from protobuf field <code>optional uint64 counter = 7;</code>
|
||||||
* @param int $var
|
* @param int|string $var
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setCounter($var)
|
public function setCounter($var)
|
||||||
{
|
{
|
||||||
GPBUtil::checkInt32($var);
|
GPBUtil::checkUint64($var);
|
||||||
$this->counter = $var;
|
$this->counter = $var;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated from protobuf field <code>optional .google.protobuf.Any period = 8;</code>
|
* Generated from protobuf field <code>optional string period = 8;</code>
|
||||||
* @return \Google\Protobuf\Any|null
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getPeriod()
|
public function getPeriod()
|
||||||
{
|
{
|
||||||
return $this->period;
|
return isset($this->period) ? $this->period : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasPeriod()
|
public function hasPeriod()
|
||||||
@ -251,13 +251,13 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated from protobuf field <code>optional .google.protobuf.Any period = 8;</code>
|
* Generated from protobuf field <code>optional string period = 8;</code>
|
||||||
* @param \Google\Protobuf\Any $var
|
* @param string $var
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setPeriod($var)
|
public function setPeriod($var)
|
||||||
{
|
{
|
||||||
GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
|
GPBUtil::checkString($var, True);
|
||||||
$this->period = $var;
|
$this->period = $var;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Binary file not shown.
@ -1,6 +1,5 @@
|
|||||||
syntax = "proto3";
|
syntax = "proto3";
|
||||||
|
|
||||||
import "google/protobuf/any.proto";
|
|
||||||
|
|
||||||
package app.Protobuf.GoogleAuth;
|
package app.Protobuf.GoogleAuth;
|
||||||
option php_metadata_namespace = "App\\Protobuf\\GPBMetadata";
|
option php_metadata_namespace = "App\\Protobuf\\GPBMetadata";
|
||||||
@ -30,8 +29,8 @@ message Payload {
|
|||||||
Algorithm algorithm = 4;
|
Algorithm algorithm = 4;
|
||||||
DigitCount digits = 5;
|
DigitCount digits = 5;
|
||||||
OtpType type = 6;
|
OtpType type = 6;
|
||||||
optional int32 counter = 7;
|
optional uint64 counter = 7;
|
||||||
optional google.protobuf.Any period = 8;
|
optional string period = 8;
|
||||||
}
|
}
|
||||||
repeated OtpParameters otp_parameters = 1;
|
repeated OtpParameters otp_parameters = 1;
|
||||||
int32 version = 2;
|
int32 version = 2;
|
||||||
|
@ -38,11 +38,11 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
|
|||||||
*/
|
*/
|
||||||
protected $type = 0;
|
protected $type = 0;
|
||||||
/**
|
/**
|
||||||
* Generated from protobuf field <code>optional int32 counter = 7;</code>
|
* Generated from protobuf field <code>optional uint64 counter = 7;</code>
|
||||||
*/
|
*/
|
||||||
protected $counter = null;
|
protected $counter = null;
|
||||||
/**
|
/**
|
||||||
* Generated from protobuf field <code>optional .google.protobuf.Any period = 8;</code>
|
* Generated from protobuf field <code>optional string period = 8;</code>
|
||||||
*/
|
*/
|
||||||
protected $period = null;
|
protected $period = null;
|
||||||
|
|
||||||
@ -58,8 +58,8 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
|
|||||||
* @type int $algorithm
|
* @type int $algorithm
|
||||||
* @type int $digits
|
* @type int $digits
|
||||||
* @type int $type
|
* @type int $type
|
||||||
* @type int $counter
|
* @type int|string $counter
|
||||||
* @type \Google\Protobuf\Any $period
|
* @type string $period
|
||||||
* }
|
* }
|
||||||
*/
|
*/
|
||||||
public function __construct($data = NULL) {
|
public function __construct($data = NULL) {
|
||||||
@ -200,8 +200,8 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated from protobuf field <code>optional int32 counter = 7;</code>
|
* Generated from protobuf field <code>optional uint64 counter = 7;</code>
|
||||||
* @return int
|
* @return int|string
|
||||||
*/
|
*/
|
||||||
public function getCounter()
|
public function getCounter()
|
||||||
{
|
{
|
||||||
@ -219,25 +219,25 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated from protobuf field <code>optional int32 counter = 7;</code>
|
* Generated from protobuf field <code>optional uint64 counter = 7;</code>
|
||||||
* @param int $var
|
* @param int|string $var
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setCounter($var)
|
public function setCounter($var)
|
||||||
{
|
{
|
||||||
GPBUtil::checkInt32($var);
|
GPBUtil::checkUint64($var);
|
||||||
$this->counter = $var;
|
$this->counter = $var;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated from protobuf field <code>optional .google.protobuf.Any period = 8;</code>
|
* Generated from protobuf field <code>optional string period = 8;</code>
|
||||||
* @return \Google\Protobuf\Any|null
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function getPeriod()
|
public function getPeriod()
|
||||||
{
|
{
|
||||||
return $this->period;
|
return isset($this->period) ? $this->period : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasPeriod()
|
public function hasPeriod()
|
||||||
@ -251,13 +251,13 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generated from protobuf field <code>optional .google.protobuf.Any period = 8;</code>
|
* Generated from protobuf field <code>optional string period = 8;</code>
|
||||||
* @param \Google\Protobuf\Any $var
|
* @param string $var
|
||||||
* @return $this
|
* @return $this
|
||||||
*/
|
*/
|
||||||
public function setPeriod($var)
|
public function setPeriod($var)
|
||||||
{
|
{
|
||||||
GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
|
GPBUtil::checkString($var, True);
|
||||||
$this->period = $var;
|
$this->period = $var;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user