* 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.
* 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) {
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;
+ }
+
}