From 450769da0e88d7d64da2f0a0541bf0c4747f7ee5 Mon Sep 17 00:00:00 2001 From: Bubka <858858+Bubka@users.noreply.github.com> Date: Wed, 6 Jul 2022 17:21:37 +0200 Subject: [PATCH] Update Protobuf classes --- app/Protobuf/GPBMetadata/GoogleAuth.php | 2 +- app/Protobuf/GoogleAuth.proto | 1 + .../GoogleAuth/Payload/OtpParameters.php | 26 +++++++++++++++++++ 3 files changed, 28 insertions(+), 1 deletion(-) diff --git a/app/Protobuf/GPBMetadata/GoogleAuth.php b/app/Protobuf/GPBMetadata/GoogleAuth.php index 3e8e817b..3657ecf6 100644 --- a/app/Protobuf/GPBMetadata/GoogleAuth.php +++ b/app/Protobuf/GPBMetadata/GoogleAuth.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile(hex2bin( - "0af5050a10476f6f676c65417574682e70726f746f12176170702e50726f746f6275662e476f6f676c654175746822bf050a075061796c6f616412460a0e6f74705f706172616d657465727318012003280b322e2e6170702e50726f746f6275662e476f6f676c65417574682e5061796c6f61642e4f7470506172616d6574657273120f0a0776657273696f6e18022001280512120a0a62617463685f73697a6518032001280512130a0b62617463685f696e64657818042001280512100a0862617463685f69641805200128051a82020a0d4f7470506172616d6574657273120e0a0673656372657418012001280c120c0a046e616d65180220012809120e0a06697373756572180320012809123d0a09616c676f726974686d18042001280e322a2e6170702e50726f746f6275662e476f6f676c65417574682e5061796c6f61642e416c676f726974686d123b0a0664696769747318052001280e322b2e6170702e50726f746f6275662e476f6f676c65417574682e5061796c6f61642e4469676974436f756e7412360a047479706518062001280e32282e6170702e50726f746f6275662e476f6f676c65417574682e5061796c6f61642e4f747054797065120f0a07636f756e74657218072001280322790a09416c676f726974686d12190a15414c474f524954484d5f554e535045434946494544100012120a0e414c474f524954484d5f53484131100112140a10414c474f524954484d5f534841323536100212140a10414c474f524954484d5f534841353132100312110a0d414c474f524954484d5f4d4435100422550a0a4469676974436f756e74121b0a1744494749545f434f554e545f554e535045434946494544100012130a0f44494749545f434f554e545f534958100112150a1144494749545f434f554e545f4549474854100222490a074f74705479706512180a144f54505f545950455f554e535045434946494544100012110a0d4f54505f545950455f484f5450100112110a0d4f54505f545950455f544f54501002620670726f746f33" + "0a85060a10476f6f676c65417574682e70726f746f12176170702e50726f746f6275662e476f6f676c654175746822cf050a075061796c6f616412460a0e6f74705f706172616d657465727318012003280b322e2e6170702e50726f746f6275662e476f6f676c65417574682e5061796c6f61642e4f7470506172616d6574657273120f0a0776657273696f6e18022001280512120a0a62617463685f73697a6518032001280512130a0b62617463685f696e64657818042001280512100a0862617463685f69641805200128051a92020a0d4f7470506172616d6574657273120e0a0673656372657418012001280c120c0a046e616d65180220012809120e0a06697373756572180320012809123d0a09616c676f726974686d18042001280e322a2e6170702e50726f746f6275662e476f6f676c65417574682e5061796c6f61642e416c676f726974686d123b0a0664696769747318052001280e322b2e6170702e50726f746f6275662e476f6f676c65417574682e5061796c6f61642e4469676974436f756e7412360a047479706518062001280e32282e6170702e50726f746f6275662e476f6f676c65417574682e5061796c6f61642e4f747054797065120f0a07636f756e746572180720012803120e0a06706572696f6418082001280322790a09416c676f726974686d12190a15414c474f524954484d5f554e535045434946494544100012120a0e414c474f524954484d5f53484131100112140a10414c474f524954484d5f534841323536100212140a10414c474f524954484d5f534841353132100312110a0d414c474f524954484d5f4d4435100422550a0a4469676974436f756e74121b0a1744494749545f434f554e545f554e535045434946494544100012130a0f44494749545f434f554e545f534958100112150a1144494749545f434f554e545f4549474854100222490a074f74705479706512180a144f54505f545950455f554e535045434946494544100012110a0d4f54505f545950455f484f5450100112110a0d4f54505f545950455f544f54501002620670726f746f33" ), true); static::$is_initialized = true; diff --git a/app/Protobuf/GoogleAuth.proto b/app/Protobuf/GoogleAuth.proto index c49d1675..8617ea36 100644 --- a/app/Protobuf/GoogleAuth.proto +++ b/app/Protobuf/GoogleAuth.proto @@ -28,6 +28,7 @@ message Payload { DigitCount digits = 5; OtpType type = 6; int64 counter = 7; + int64 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 42aa40ce..a63c075d 100644 --- a/app/Protobuf/GoogleAuth/Payload/OtpParameters.php +++ b/app/Protobuf/GoogleAuth/Payload/OtpParameters.php @@ -41,6 +41,10 @@ class OtpParameters extends \Google\Protobuf\Internal\Message * Generated from protobuf field int64 counter = 7; */ protected $counter = 0; + /** + * Generated from protobuf field int64 period = 8; + */ + protected $period = 0; /** * Constructor. @@ -216,6 +220,28 @@ public function setCounter($var) return $this; } + /** + * Generated from protobuf field int64 period = 8; + * @return int|string + */ + public function getPeriod() + { + return $this->period; + } + + /** + * Generated from protobuf field int64 period = 8; + * @param int|string $var + * @return $this + */ + public function setPeriod($var) + { + GPBUtil::checkInt64($var); + $this->period = $var; + + return $this; + } + } // Adding a class alias for backwards compatibility with the previous class name.