mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-09 10:28:32 +00:00
62 lines
2.2 KiB
JavaScript
62 lines
2.2 KiB
JavaScript
// GENERATED CODE -- DO NOT EDIT!
|
|
|
|
// Original file comments:
|
|
// This file is part of arduino-cli.
|
|
//
|
|
// Copyright 2020 ARDUINO SA (http://www.arduino.cc/)
|
|
//
|
|
// This software is released under the GNU General Public License version 3,
|
|
// which covers the main part of arduino-cli.
|
|
// The terms of this license can be found at:
|
|
// https://www.gnu.org/licenses/gpl-3.0.en.html
|
|
//
|
|
// You can be released from the requirements of the above licenses by purchasing
|
|
// a commercial license. Buying such a license is mandatory if you want to
|
|
// modify or otherwise use the software for commercial activities involving the
|
|
// Arduino software without disclosing the source code of your own applications.
|
|
// To purchase a commercial license, send an email to license@arduino.cc.
|
|
//
|
|
'use strict';
|
|
var grpc = require('@grpc/grpc-js');
|
|
var debug_debug_pb = require('../debug/debug_pb.js');
|
|
|
|
function serialize_cc_arduino_cli_debug_DebugReq(arg) {
|
|
if (!(arg instanceof debug_debug_pb.DebugReq)) {
|
|
throw new Error('Expected argument of type cc.arduino.cli.debug.DebugReq');
|
|
}
|
|
return Buffer.from(arg.serializeBinary());
|
|
}
|
|
|
|
function deserialize_cc_arduino_cli_debug_DebugReq(buffer_arg) {
|
|
return debug_debug_pb.DebugReq.deserializeBinary(new Uint8Array(buffer_arg));
|
|
}
|
|
|
|
function serialize_cc_arduino_cli_debug_DebugResp(arg) {
|
|
if (!(arg instanceof debug_debug_pb.DebugResp)) {
|
|
throw new Error('Expected argument of type cc.arduino.cli.debug.DebugResp');
|
|
}
|
|
return Buffer.from(arg.serializeBinary());
|
|
}
|
|
|
|
function deserialize_cc_arduino_cli_debug_DebugResp(buffer_arg) {
|
|
return debug_debug_pb.DebugResp.deserializeBinary(new Uint8Array(buffer_arg));
|
|
}
|
|
|
|
|
|
// Service that abstract a debug Session usage
|
|
var DebugService = exports.DebugService = {
|
|
debug: {
|
|
path: '/cc.arduino.cli.debug.Debug/Debug',
|
|
requestStream: true,
|
|
responseStream: true,
|
|
requestType: debug_debug_pb.DebugReq,
|
|
responseType: debug_debug_pb.DebugResp,
|
|
requestSerialize: serialize_cc_arduino_cli_debug_DebugReq,
|
|
requestDeserialize: deserialize_cc_arduino_cli_debug_DebugReq,
|
|
responseSerialize: serialize_cc_arduino_cli_debug_DebugResp,
|
|
responseDeserialize: deserialize_cc_arduino_cli_debug_DebugResp,
|
|
},
|
|
};
|
|
|
|
exports.DebugClient = grpc.makeGenericClientConstructor(DebugService);
|