<?php
// GENERATED CODE -- DO NOT EDIT!

// Original file comments:
//
// Сервис реализует функционал управления операциями с устройствами
namespace Keyapis\Device\V1;

/**
 * Сервис устройств
 */
class CommandDeviceServiceClient extends \Grpc\BaseStub {

    /**
     * @param string $hostname hostname
     * @param array $opts channel options
     * @param \Grpc\Channel $channel (optional) re-use channel object
     */
    public function __construct($hostname, $opts, $channel = null) {
        parent::__construct($hostname, $opts, $channel);
    }

    /**
     * Метод отправки задания на открытие устройства.
     * Метод доступен для: admin, service
     * @param \Keyapis\Device\V1\PostCommandDeviceOpenRequest $argument input argument
     * @param array $metadata metadata
     * @param array $options call options
     * @return \Grpc\UnaryCall
     */
    public function PostCommandDeviceOpen(\Keyapis\Device\V1\PostCommandDeviceOpenRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/keyapis.device.v1.CommandDeviceService/PostCommandDeviceOpen',
        $argument,
        ['\Keyapis\Device\V1\PostCommandDeviceOpenResponse', 'decode'],
        $metadata, $options);
    }

}
