x
This commit is contained in:
143
gen/web/printer/v1/pdf_invoice_grpc_web_pb.js
Normal file
143
gen/web/printer/v1/pdf_invoice_grpc_web_pb.js
Normal file
@@ -0,0 +1,143 @@
|
||||
/**
|
||||
* @fileoverview gRPC-Web generated client stub for printer.v1.invoice
|
||||
* @enhanceable
|
||||
* @public
|
||||
*/
|
||||
|
||||
// GENERATED CODE -- DO NOT EDIT!
|
||||
|
||||
|
||||
/* eslint-disable */
|
||||
// @ts-nocheck
|
||||
|
||||
|
||||
|
||||
const grpc = {};
|
||||
grpc.web = require('grpc-web');
|
||||
|
||||
|
||||
var google_type_money_pb = require('../../google/type/money_pb.js')
|
||||
|
||||
var google_type_datetime_pb = require('../../google/type/datetime_pb.js')
|
||||
|
||||
var google_api_annotations_pb = require('../../google/api/annotations_pb.js')
|
||||
const proto = {};
|
||||
proto.printer = {};
|
||||
proto.printer.v1 = {};
|
||||
proto.printer.v1.invoice = require('./pdf_invoice_pb.js');
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?grpc.web.ClientOptions} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.printer.v1.invoice.PrinterServiceClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options.format = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {string} hostname
|
||||
* @param {?Object} credentials
|
||||
* @param {?grpc.web.ClientOptions} options
|
||||
* @constructor
|
||||
* @struct
|
||||
* @final
|
||||
*/
|
||||
proto.printer.v1.invoice.PrinterServicePromiseClient =
|
||||
function(hostname, credentials, options) {
|
||||
if (!options) options = {};
|
||||
options.format = 'text';
|
||||
|
||||
/**
|
||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
||||
*/
|
||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
||||
|
||||
/**
|
||||
* @private @const {string} The hostname
|
||||
*/
|
||||
this.hostname_ = hostname;
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @const
|
||||
* @type {!grpc.web.MethodDescriptor<
|
||||
* !proto.printer.v1.invoice.Invoice,
|
||||
* !proto.printer.v1.invoice.DocumentResponse>}
|
||||
*/
|
||||
const methodDescriptor_PrinterService_InvoiceGen = new grpc.web.MethodDescriptor(
|
||||
'/printer.v1.invoice.PrinterService/InvoiceGen',
|
||||
grpc.web.MethodType.UNARY,
|
||||
proto.printer.v1.invoice.Invoice,
|
||||
proto.printer.v1.invoice.DocumentResponse,
|
||||
/**
|
||||
* @param {!proto.printer.v1.invoice.Invoice} request
|
||||
* @return {!Uint8Array}
|
||||
*/
|
||||
function(request) {
|
||||
return request.serializeBinary();
|
||||
},
|
||||
proto.printer.v1.invoice.DocumentResponse.deserializeBinary
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.printer.v1.invoice.Invoice} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>} metadata User defined
|
||||
* call metadata
|
||||
* @param {function(?grpc.web.RpcError, ?proto.printer.v1.invoice.DocumentResponse)}
|
||||
* callback The callback function(error, response)
|
||||
* @return {!grpc.web.ClientReadableStream<!proto.printer.v1.invoice.DocumentResponse>|undefined}
|
||||
* The XHR Node Readable Stream
|
||||
*/
|
||||
proto.printer.v1.invoice.PrinterServiceClient.prototype.invoiceGen =
|
||||
function(request, metadata, callback) {
|
||||
return this.client_.rpcCall(this.hostname_ +
|
||||
'/printer.v1.invoice.PrinterService/InvoiceGen',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_PrinterService_InvoiceGen,
|
||||
callback);
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.printer.v1.invoice.Invoice} request The
|
||||
* request proto
|
||||
* @param {?Object<string, string>=} metadata User defined
|
||||
* call metadata
|
||||
* @return {!Promise<!proto.printer.v1.invoice.DocumentResponse>}
|
||||
* Promise that resolves to the response
|
||||
*/
|
||||
proto.printer.v1.invoice.PrinterServicePromiseClient.prototype.invoiceGen =
|
||||
function(request, metadata) {
|
||||
return this.client_.unaryCall(this.hostname_ +
|
||||
'/printer.v1.invoice.PrinterService/InvoiceGen',
|
||||
request,
|
||||
metadata || {},
|
||||
methodDescriptor_PrinterService_InvoiceGen);
|
||||
};
|
||||
|
||||
|
||||
module.exports = proto.printer.v1.invoice;
|
||||
|
||||
Reference in New Issue
Block a user