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

// Original file comments:
//
// События пресетов
namespace Keyapis\Preset\V1;

/**
 * Сервис событий пресетов
 */
class EventServiceClient 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\Preset\V1\PostEventPresetInstallRequest $argument input argument
     * @param array $metadata metadata
     * @param array $options call options
     * @return \Grpc\UnaryCall
     */
    public function PostEventPresetInstall(\Keyapis\Preset\V1\PostEventPresetInstallRequest $argument,
      $metadata = [], $options = []) {
        return $this->_simpleRequest('/keyapis.preset.v1.EventService/PostEventPresetInstall',
        $argument,
        ['\Keyapis\Preset\V1\PostEventPresetInstallResponse', 'decode'],
        $metadata, $options);
    }

}
