Imported Upstream version 1.36.0
[platform/upstream/grpc.git] / src / php / tests / interop / Grpc / Testing / ClientConfigureRequest.php
index bb2b1ca..f3c8ecf 100644 (file)
@@ -27,6 +27,13 @@ class ClientConfigureRequest extends \Google\Protobuf\Internal\Message
      * Generated from protobuf field <code>repeated .grpc.testing.ClientConfigureRequest.Metadata metadata = 2;</code>
      */
     private $metadata;
+    /**
+     * The deadline to use, in seconds, for all RPCs.  If unset or zero, the
+     * client will use the default from the command-line.
+     *
+     * Generated from protobuf field <code>int32 timeout_sec = 3;</code>
+     */
+    protected $timeout_sec = 0;
 
     /**
      * Constructor.
@@ -38,6 +45,9 @@ class ClientConfigureRequest extends \Google\Protobuf\Internal\Message
      *           The types of RPCs the client sends.
      *     @type \Grpc\Testing\ClientConfigureRequest\Metadata[]|\Google\Protobuf\Internal\RepeatedField $metadata
      *           The collection of custom metadata to be attached to RPCs sent by the client.
+     *     @type int $timeout_sec
+     *           The deadline to use, in seconds, for all RPCs.  If unset or zero, the
+     *           client will use the default from the command-line.
      * }
      */
     public function __construct($data = NULL) {
@@ -97,5 +107,33 @@ class ClientConfigureRequest extends \Google\Protobuf\Internal\Message
         return $this;
     }
 
+    /**
+     * The deadline to use, in seconds, for all RPCs.  If unset or zero, the
+     * client will use the default from the command-line.
+     *
+     * Generated from protobuf field <code>int32 timeout_sec = 3;</code>
+     * @return int
+     */
+    public function getTimeoutSec()
+    {
+        return $this->timeout_sec;
+    }
+
+    /**
+     * The deadline to use, in seconds, for all RPCs.  If unset or zero, the
+     * client will use the default from the command-line.
+     *
+     * Generated from protobuf field <code>int32 timeout_sec = 3;</code>
+     * @param int $var
+     * @return $this
+     */
+    public function setTimeoutSec($var)
+    {
+        GPBUtil::checkInt32($var);
+        $this->timeout_sec = $var;
+
+        return $this;
+    }
+
 }