visuddhinanda 2 лет назад
Родитель
Сommit
502234af4f
2 измененных файлов с 8 добавлено и 8 удалено
  1. BIN
      grpc/GPBMetadata/Tulip.php
  2. 8 8
      grpc/Mint/Tulip/V1/SearchResponse/Item.php

BIN
grpc/GPBMetadata/Tulip.php


+ 8 - 8
grpc/Mint/Tulip/V1/SearchResponse/Item.php

@@ -14,9 +14,9 @@ use Google\Protobuf\Internal\GPBUtil;
 class Item extends \Google\Protobuf\Internal\Message
 {
     /**
-     * Generated from protobuf field <code>int32 rank = 1;</code>
+     * Generated from protobuf field <code>float rank = 1;</code>
      */
-    protected $rank = 0;
+    protected $rank = 0.0;
     /**
      * Generated from protobuf field <code>string highlight = 2;</code>
      */
@@ -40,7 +40,7 @@ class Item extends \Google\Protobuf\Internal\Message
      * @param array $data {
      *     Optional. Data for populating the Message object.
      *
-     *     @type int $rank
+     *     @type float $rank
      *     @type string $highlight
      *     @type int $book
      *     @type int $paragraph
@@ -53,8 +53,8 @@ class Item extends \Google\Protobuf\Internal\Message
     }
 
     /**
-     * Generated from protobuf field <code>int32 rank = 1;</code>
-     * @return int
+     * Generated from protobuf field <code>float rank = 1;</code>
+     * @return float
      */
     public function getRank()
     {
@@ -62,13 +62,13 @@ class Item extends \Google\Protobuf\Internal\Message
     }
 
     /**
-     * Generated from protobuf field <code>int32 rank = 1;</code>
-     * @param int $var
+     * Generated from protobuf field <code>float rank = 1;</code>
+     * @param float $var
      * @return $this
      */
     public function setRank($var)
     {
-        GPBUtil::checkInt32($var);
+        GPBUtil::checkFloat($var);
         $this->rank = $var;
 
         return $this;