diff --git a/App/Protobuf/GPBMetadata/GoogleAuth.php b/App/Protobuf/GPBMetadata/GoogleAuth.php
index 48120d6d..51af3b21 100644
Binary files a/App/Protobuf/GPBMetadata/GoogleAuth.php and b/App/Protobuf/GPBMetadata/GoogleAuth.php differ
diff --git a/App/Protobuf/GoogleAuth/Payload/OtpParameters.php b/App/Protobuf/GoogleAuth/Payload/OtpParameters.php
index c111c123..2cc3f8a8 100644
--- a/App/Protobuf/GoogleAuth/Payload/OtpParameters.php
+++ b/App/Protobuf/GoogleAuth/Payload/OtpParameters.php
@@ -38,11 +38,11 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
*/
protected $type = 0;
/**
- * Generated from protobuf field optional int32 counter = 7;
+ * Generated from protobuf field optional uint64 counter = 7;
*/
protected $counter = null;
/**
- * Generated from protobuf field optional .google.protobuf.Any period = 8;
+ * Generated from protobuf field optional string period = 8;
*/
protected $period = null;
@@ -58,8 +58,8 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
* @type int $algorithm
* @type int $digits
* @type int $type
- * @type int $counter
- * @type \Google\Protobuf\Any $period
+ * @type int|string $counter
+ * @type string $period
* }
*/
public function __construct($data = NULL) {
@@ -200,8 +200,8 @@ public function setType($var)
}
/**
- * Generated from protobuf field optional int32 counter = 7;
- * @return int
+ * Generated from protobuf field optional uint64 counter = 7;
+ * @return int|string
*/
public function getCounter()
{
@@ -219,25 +219,25 @@ public function clearCounter()
}
/**
- * Generated from protobuf field optional int32 counter = 7;
- * @param int $var
+ * Generated from protobuf field optional uint64 counter = 7;
+ * @param int|string $var
* @return $this
*/
public function setCounter($var)
{
- GPBUtil::checkInt32($var);
+ GPBUtil::checkUint64($var);
$this->counter = $var;
return $this;
}
/**
- * Generated from protobuf field optional .google.protobuf.Any period = 8;
- * @return \Google\Protobuf\Any|null
+ * Generated from protobuf field optional string period = 8;
+ * @return string
*/
public function getPeriod()
{
- return $this->period;
+ return isset($this->period) ? $this->period : '';
}
public function hasPeriod()
@@ -251,13 +251,13 @@ public function clearPeriod()
}
/**
- * Generated from protobuf field optional .google.protobuf.Any period = 8;
- * @param \Google\Protobuf\Any $var
+ * Generated from protobuf field optional string period = 8;
+ * @param string $var
* @return $this
*/
public function setPeriod($var)
{
- GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
+ GPBUtil::checkString($var, True);
$this->period = $var;
return $this;
diff --git a/app/Protobuf/GPBMetadata/GoogleAuth.php b/app/Protobuf/GPBMetadata/GoogleAuth.php
index 48120d6d..51af3b21 100644
Binary files a/app/Protobuf/GPBMetadata/GoogleAuth.php and b/app/Protobuf/GPBMetadata/GoogleAuth.php differ
diff --git a/app/Protobuf/GoogleAuth.proto b/app/Protobuf/GoogleAuth.proto
index 952fd3c8..d338060c 100644
--- a/app/Protobuf/GoogleAuth.proto
+++ b/app/Protobuf/GoogleAuth.proto
@@ -1,6 +1,5 @@
syntax = "proto3";
-import "google/protobuf/any.proto";
package app.Protobuf.GoogleAuth;
option php_metadata_namespace = "App\\Protobuf\\GPBMetadata";
@@ -30,8 +29,8 @@ message Payload {
Algorithm algorithm = 4;
DigitCount digits = 5;
OtpType type = 6;
- optional int32 counter = 7;
- optional google.protobuf.Any period = 8;
+ optional uint64 counter = 7;
+ optional string period = 8;
}
repeated OtpParameters otp_parameters = 1;
int32 version = 2;
diff --git a/app/Protobuf/GoogleAuth/Payload/OtpParameters.php b/app/Protobuf/GoogleAuth/Payload/OtpParameters.php
index c111c123..2cc3f8a8 100644
--- a/app/Protobuf/GoogleAuth/Payload/OtpParameters.php
+++ b/app/Protobuf/GoogleAuth/Payload/OtpParameters.php
@@ -38,11 +38,11 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
*/
protected $type = 0;
/**
- * Generated from protobuf field optional int32 counter = 7;
+ * Generated from protobuf field optional uint64 counter = 7;
*/
protected $counter = null;
/**
- * Generated from protobuf field optional .google.protobuf.Any period = 8;
+ * Generated from protobuf field optional string period = 8;
*/
protected $period = null;
@@ -58,8 +58,8 @@ class OtpParameters extends \Google\Protobuf\Internal\Message
* @type int $algorithm
* @type int $digits
* @type int $type
- * @type int $counter
- * @type \Google\Protobuf\Any $period
+ * @type int|string $counter
+ * @type string $period
* }
*/
public function __construct($data = NULL) {
@@ -200,8 +200,8 @@ public function setType($var)
}
/**
- * Generated from protobuf field optional int32 counter = 7;
- * @return int
+ * Generated from protobuf field optional uint64 counter = 7;
+ * @return int|string
*/
public function getCounter()
{
@@ -219,25 +219,25 @@ public function clearCounter()
}
/**
- * Generated from protobuf field optional int32 counter = 7;
- * @param int $var
+ * Generated from protobuf field optional uint64 counter = 7;
+ * @param int|string $var
* @return $this
*/
public function setCounter($var)
{
- GPBUtil::checkInt32($var);
+ GPBUtil::checkUint64($var);
$this->counter = $var;
return $this;
}
/**
- * Generated from protobuf field optional .google.protobuf.Any period = 8;
- * @return \Google\Protobuf\Any|null
+ * Generated from protobuf field optional string period = 8;
+ * @return string
*/
public function getPeriod()
{
- return $this->period;
+ return isset($this->period) ? $this->period : '';
}
public function hasPeriod()
@@ -251,13 +251,13 @@ public function clearPeriod()
}
/**
- * Generated from protobuf field optional .google.protobuf.Any period = 8;
- * @param \Google\Protobuf\Any $var
+ * Generated from protobuf field optional string period = 8;
+ * @param string $var
* @return $this
*/
public function setPeriod($var)
{
- GPBUtil::checkMessage($var, \Google\Protobuf\Any::class);
+ GPBUtil::checkString($var, True);
$this->period = $var;
return $this;