|
| 1 | +// GENERATED CODE -- DO NOT EDIT! |
| 2 | + |
| 3 | +// Original file comments: |
| 4 | +// *********************************************************************************** |
| 5 | +// Copyright (C) 2018-2023 E.R.P. Consultores y Asociados, C.A. * |
| 6 | +// Contributor(s): Edwin Betancourt [email protected] * |
| 7 | +// This program is free software: you can redistribute it and/or modify * |
| 8 | +// it under the terms of the GNU General Public License as published by * |
| 9 | +// the Free Software Foundation, either version 2 of the License, or * |
| 10 | +// (at your option) any later version. * |
| 11 | +// This program is distributed in the hope that it will be useful, * |
| 12 | +// but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 13 | +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 14 | +// GNU General Public License for more details. * |
| 15 | +// You should have received a copy of the GNU General Public License * |
| 16 | +// along with this program. If not, see <https://www.gnu.org/licenses/>. * |
| 17 | +// ********************************************************************************** |
| 18 | +'use strict'; |
| 19 | +var grpc = require('@grpc/grpc-js'); |
| 20 | +var proto_import_file_loader_pb = require('../proto/import_file_loader_pb.js'); |
| 21 | +var proto_base_data_type_pb = require('../proto/base_data_type_pb.js'); |
| 22 | +var proto_business_pb = require('../proto/business_pb.js'); |
| 23 | + |
| 24 | +function serialize_data_ListEntitiesResponse(arg) { |
| 25 | + if (!(arg instanceof proto_business_pb.ListEntitiesResponse)) { |
| 26 | + throw new Error('Expected argument of type data.ListEntitiesResponse'); |
| 27 | + } |
| 28 | + return Buffer.from(arg.serializeBinary()); |
| 29 | +} |
| 30 | + |
| 31 | +function deserialize_data_ListEntitiesResponse(buffer_arg) { |
| 32 | + return proto_business_pb.ListEntitiesResponse.deserializeBinary(new Uint8Array(buffer_arg)); |
| 33 | +} |
| 34 | + |
| 35 | +function serialize_data_ListLookupItemsResponse(arg) { |
| 36 | + if (!(arg instanceof proto_business_pb.ListLookupItemsResponse)) { |
| 37 | + throw new Error('Expected argument of type data.ListLookupItemsResponse'); |
| 38 | + } |
| 39 | + return Buffer.from(arg.serializeBinary()); |
| 40 | +} |
| 41 | + |
| 42 | +function deserialize_data_ListLookupItemsResponse(buffer_arg) { |
| 43 | + return proto_business_pb.ListLookupItemsResponse.deserializeBinary(new Uint8Array(buffer_arg)); |
| 44 | +} |
| 45 | + |
| 46 | +function serialize_import_file_loader_GetImportFromatRequest(arg) { |
| 47 | + if (!(arg instanceof proto_import_file_loader_pb.GetImportFromatRequest)) { |
| 48 | + throw new Error('Expected argument of type import_file_loader.GetImportFromatRequest'); |
| 49 | + } |
| 50 | + return Buffer.from(arg.serializeBinary()); |
| 51 | +} |
| 52 | + |
| 53 | +function deserialize_import_file_loader_GetImportFromatRequest(buffer_arg) { |
| 54 | + return proto_import_file_loader_pb.GetImportFromatRequest.deserializeBinary(new Uint8Array(buffer_arg)); |
| 55 | +} |
| 56 | + |
| 57 | +function serialize_import_file_loader_ImportFormat(arg) { |
| 58 | + if (!(arg instanceof proto_import_file_loader_pb.ImportFormat)) { |
| 59 | + throw new Error('Expected argument of type import_file_loader.ImportFormat'); |
| 60 | + } |
| 61 | + return Buffer.from(arg.serializeBinary()); |
| 62 | +} |
| 63 | + |
| 64 | +function deserialize_import_file_loader_ImportFormat(buffer_arg) { |
| 65 | + return proto_import_file_loader_pb.ImportFormat.deserializeBinary(new Uint8Array(buffer_arg)); |
| 66 | +} |
| 67 | + |
| 68 | +function serialize_import_file_loader_ListCharsetsRequest(arg) { |
| 69 | + if (!(arg instanceof proto_import_file_loader_pb.ListCharsetsRequest)) { |
| 70 | + throw new Error('Expected argument of type import_file_loader.ListCharsetsRequest'); |
| 71 | + } |
| 72 | + return Buffer.from(arg.serializeBinary()); |
| 73 | +} |
| 74 | + |
| 75 | +function deserialize_import_file_loader_ListCharsetsRequest(buffer_arg) { |
| 76 | + return proto_import_file_loader_pb.ListCharsetsRequest.deserializeBinary(new Uint8Array(buffer_arg)); |
| 77 | +} |
| 78 | + |
| 79 | +function serialize_import_file_loader_ListFilePreviewRequest(arg) { |
| 80 | + if (!(arg instanceof proto_import_file_loader_pb.ListFilePreviewRequest)) { |
| 81 | + throw new Error('Expected argument of type import_file_loader.ListFilePreviewRequest'); |
| 82 | + } |
| 83 | + return Buffer.from(arg.serializeBinary()); |
| 84 | +} |
| 85 | + |
| 86 | +function deserialize_import_file_loader_ListFilePreviewRequest(buffer_arg) { |
| 87 | + return proto_import_file_loader_pb.ListFilePreviewRequest.deserializeBinary(new Uint8Array(buffer_arg)); |
| 88 | +} |
| 89 | + |
| 90 | +function serialize_import_file_loader_ListImportFormatsRequest(arg) { |
| 91 | + if (!(arg instanceof proto_import_file_loader_pb.ListImportFormatsRequest)) { |
| 92 | + throw new Error('Expected argument of type import_file_loader.ListImportFormatsRequest'); |
| 93 | + } |
| 94 | + return Buffer.from(arg.serializeBinary()); |
| 95 | +} |
| 96 | + |
| 97 | +function deserialize_import_file_loader_ListImportFormatsRequest(buffer_arg) { |
| 98 | + return proto_import_file_loader_pb.ListImportFormatsRequest.deserializeBinary(new Uint8Array(buffer_arg)); |
| 99 | +} |
| 100 | + |
| 101 | +function serialize_import_file_loader_LoadImportFileRequest(arg) { |
| 102 | + if (!(arg instanceof proto_import_file_loader_pb.LoadImportFileRequest)) { |
| 103 | + throw new Error('Expected argument of type import_file_loader.LoadImportFileRequest'); |
| 104 | + } |
| 105 | + return Buffer.from(arg.serializeBinary()); |
| 106 | +} |
| 107 | + |
| 108 | +function deserialize_import_file_loader_LoadImportFileRequest(buffer_arg) { |
| 109 | + return proto_import_file_loader_pb.LoadImportFileRequest.deserializeBinary(new Uint8Array(buffer_arg)); |
| 110 | +} |
| 111 | + |
| 112 | +function serialize_import_file_loader_ProcessImportRequest(arg) { |
| 113 | + if (!(arg instanceof proto_import_file_loader_pb.ProcessImportRequest)) { |
| 114 | + throw new Error('Expected argument of type import_file_loader.ProcessImportRequest'); |
| 115 | + } |
| 116 | + return Buffer.from(arg.serializeBinary()); |
| 117 | +} |
| 118 | + |
| 119 | +function deserialize_import_file_loader_ProcessImportRequest(buffer_arg) { |
| 120 | + return proto_import_file_loader_pb.ProcessImportRequest.deserializeBinary(new Uint8Array(buffer_arg)); |
| 121 | +} |
| 122 | + |
| 123 | +function serialize_import_file_loader_ProcessImportResponse(arg) { |
| 124 | + if (!(arg instanceof proto_import_file_loader_pb.ProcessImportResponse)) { |
| 125 | + throw new Error('Expected argument of type import_file_loader.ProcessImportResponse'); |
| 126 | + } |
| 127 | + return Buffer.from(arg.serializeBinary()); |
| 128 | +} |
| 129 | + |
| 130 | +function deserialize_import_file_loader_ProcessImportResponse(buffer_arg) { |
| 131 | + return proto_import_file_loader_pb.ProcessImportResponse.deserializeBinary(new Uint8Array(buffer_arg)); |
| 132 | +} |
| 133 | + |
| 134 | +function serialize_import_file_loader_ResourceReference(arg) { |
| 135 | + if (!(arg instanceof proto_import_file_loader_pb.ResourceReference)) { |
| 136 | + throw new Error('Expected argument of type import_file_loader.ResourceReference'); |
| 137 | + } |
| 138 | + return Buffer.from(arg.serializeBinary()); |
| 139 | +} |
| 140 | + |
| 141 | +function deserialize_import_file_loader_ResourceReference(buffer_arg) { |
| 142 | + return proto_import_file_loader_pb.ResourceReference.deserializeBinary(new Uint8Array(buffer_arg)); |
| 143 | +} |
| 144 | + |
| 145 | + |
| 146 | +var ImportFileLoaderService = exports.ImportFileLoaderService = { |
| 147 | + listCharsets: { |
| 148 | + path: '/import_file_loader.ImportFileLoader/ListCharsets', |
| 149 | + requestStream: false, |
| 150 | + responseStream: false, |
| 151 | + requestType: proto_import_file_loader_pb.ListCharsetsRequest, |
| 152 | + responseType: proto_business_pb.ListLookupItemsResponse, |
| 153 | + requestSerialize: serialize_import_file_loader_ListCharsetsRequest, |
| 154 | + requestDeserialize: deserialize_import_file_loader_ListCharsetsRequest, |
| 155 | + responseSerialize: serialize_data_ListLookupItemsResponse, |
| 156 | + responseDeserialize: deserialize_data_ListLookupItemsResponse, |
| 157 | + }, |
| 158 | + listImportFormats: { |
| 159 | + path: '/import_file_loader.ImportFileLoader/ListImportFormats', |
| 160 | + requestStream: false, |
| 161 | + responseStream: false, |
| 162 | + requestType: proto_import_file_loader_pb.ListImportFormatsRequest, |
| 163 | + responseType: proto_business_pb.ListLookupItemsResponse, |
| 164 | + requestSerialize: serialize_import_file_loader_ListImportFormatsRequest, |
| 165 | + requestDeserialize: deserialize_import_file_loader_ListImportFormatsRequest, |
| 166 | + responseSerialize: serialize_data_ListLookupItemsResponse, |
| 167 | + responseDeserialize: deserialize_data_ListLookupItemsResponse, |
| 168 | + }, |
| 169 | + getImportFromat: { |
| 170 | + path: '/import_file_loader.ImportFileLoader/GetImportFromat', |
| 171 | + requestStream: false, |
| 172 | + responseStream: false, |
| 173 | + requestType: proto_import_file_loader_pb.GetImportFromatRequest, |
| 174 | + responseType: proto_import_file_loader_pb.ImportFormat, |
| 175 | + requestSerialize: serialize_import_file_loader_GetImportFromatRequest, |
| 176 | + requestDeserialize: deserialize_import_file_loader_GetImportFromatRequest, |
| 177 | + responseSerialize: serialize_import_file_loader_ImportFormat, |
| 178 | + responseDeserialize: deserialize_import_file_loader_ImportFormat, |
| 179 | + }, |
| 180 | + loadImportFile: { |
| 181 | + path: '/import_file_loader.ImportFileLoader/LoadImportFile', |
| 182 | + requestStream: true, |
| 183 | + responseStream: false, |
| 184 | + requestType: proto_import_file_loader_pb.LoadImportFileRequest, |
| 185 | + responseType: proto_import_file_loader_pb.ResourceReference, |
| 186 | + requestSerialize: serialize_import_file_loader_LoadImportFileRequest, |
| 187 | + requestDeserialize: deserialize_import_file_loader_LoadImportFileRequest, |
| 188 | + responseSerialize: serialize_import_file_loader_ResourceReference, |
| 189 | + responseDeserialize: deserialize_import_file_loader_ResourceReference, |
| 190 | + }, |
| 191 | + listFilePreview: { |
| 192 | + path: '/import_file_loader.ImportFileLoader/ListFilePreview', |
| 193 | + requestStream: false, |
| 194 | + responseStream: false, |
| 195 | + requestType: proto_import_file_loader_pb.ListFilePreviewRequest, |
| 196 | + responseType: proto_business_pb.ListEntitiesResponse, |
| 197 | + requestSerialize: serialize_import_file_loader_ListFilePreviewRequest, |
| 198 | + requestDeserialize: deserialize_import_file_loader_ListFilePreviewRequest, |
| 199 | + responseSerialize: serialize_data_ListEntitiesResponse, |
| 200 | + responseDeserialize: deserialize_data_ListEntitiesResponse, |
| 201 | + }, |
| 202 | + processImport: { |
| 203 | + path: '/import_file_loader.ImportFileLoader/ProcessImport', |
| 204 | + requestStream: false, |
| 205 | + responseStream: false, |
| 206 | + requestType: proto_import_file_loader_pb.ProcessImportRequest, |
| 207 | + responseType: proto_import_file_loader_pb.ProcessImportResponse, |
| 208 | + requestSerialize: serialize_import_file_loader_ProcessImportRequest, |
| 209 | + requestDeserialize: deserialize_import_file_loader_ProcessImportRequest, |
| 210 | + responseSerialize: serialize_import_file_loader_ProcessImportResponse, |
| 211 | + responseDeserialize: deserialize_import_file_loader_ProcessImportResponse, |
| 212 | + }, |
| 213 | +}; |
| 214 | + |
| 215 | +exports.ImportFileLoaderClient = grpc.makeGenericClientConstructor(ImportFileLoaderService); |
0 commit comments