Home | History | Annotate | Download | only in Testing
      1 <?php
      2 # Generated by the protocol buffer compiler.  DO NOT EDIT!
      3 # source: src/proto/grpc/testing/proxy-service.proto
      4 
      5 namespace Grpc\Testing;
      6 
      7 use Google\Protobuf\Internal\GPBType;
      8 use Google\Protobuf\Internal\RepeatedField;
      9 use Google\Protobuf\Internal\GPBUtil;
     10 
     11 /**
     12  * Generated from protobuf message <code>grpc.testing.ProxyStat</code>
     13  */
     14 class ProxyStat extends \Google\Protobuf\Internal\Message
     15 {
     16     /**
     17      * Generated from protobuf field <code>double latency = 1;</code>
     18      */
     19     private $latency = 0.0;
     20 
     21     public function __construct() {
     22         \GPBMetadata\Src\Proto\Grpc\Testing\ProxyService::initOnce();
     23         parent::__construct();
     24     }
     25 
     26     /**
     27      * Generated from protobuf field <code>double latency = 1;</code>
     28      * @return float
     29      */
     30     public function getLatency()
     31     {
     32         return $this->latency;
     33     }
     34 
     35     /**
     36      * Generated from protobuf field <code>double latency = 1;</code>
     37      * @param float $var
     38      * @return $this
     39      */
     40     public function setLatency($var)
     41     {
     42         GPBUtil::checkDouble($var);
     43         $this->latency = $var;
     44 
     45         return $this;
     46     }
     47 
     48 }
     49 
     50