visuddhinanda 2 лет назад
Родитель
Сommit
36d359b997

+ 1 - 1
rpc/protocols/tulip.proto

@@ -18,7 +18,7 @@ message SearchRequest {
 
 message SearchResponse {
   message Item {
-    double rank = 1;
+    float rank = 1;
     string highlight = 2;
     int32 book = 3;
     int32 paragraph = 4;

BIN
rpc/tulip/tulip/GPBMetadata/Tulip.php


+ 4 - 4
rpc/tulip/tulip/Mint/Tulip/V1/SearchResponse/Item.php

@@ -14,7 +14,7 @@ use Google\Protobuf\Internal\GPBUtil;
 class Item extends \Google\Protobuf\Internal\Message
 {
     /**
-     * Generated from protobuf field <code>double rank = 1;</code>
+     * Generated from protobuf field <code>float rank = 1;</code>
      */
     protected $rank = 0.0;
     /**
@@ -53,7 +53,7 @@ class Item extends \Google\Protobuf\Internal\Message
     }
 
     /**
-     * Generated from protobuf field <code>double rank = 1;</code>
+     * 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>double rank = 1;</code>
+     * Generated from protobuf field <code>float rank = 1;</code>
      * @param float $var
      * @return $this
      */
     public function setRank($var)
     {
-        GPBUtil::checkDouble($var);
+        GPBUtil::checkFloat($var);
         $this->rank = $var;
 
         return $this;