/** * @fileoverview gRPC-Web generated client stub for tee * @enhanceable * @public */ // Code generated by protoc-gen-grpc-web. DO NOT EDIT. // versions: // protoc-gen-grpc-web v1.5.0 // protoc v3.21.12 // source: tee/enclave_outcall.proto /* eslint-disable */ // @ts-nocheck import * as grpcWeb from 'grpc-web'; import * as common_result_pb from '../common/result_pb'; // proto import: "common/result.proto" import * as tee_enclave_outcall_pb from '../tee/enclave_outcall_pb'; // proto import: "tee/enclave_outcall.proto" export class EnclaveOutCallServerClient { client_: grpcWeb.AbstractClientBase; hostname_: string; credentials_: null | { [index: string]: string; }; options_: null | { [index: string]: any; }; constructor (hostname: string, credentials?: null | { [index: string]: string; }, options?: null | { [index: string]: any; }) { if (!options) options = {}; if (!credentials) credentials = {}; options['format'] = 'binary'; this.client_ = new grpcWeb.GrpcWebClientBase(options); this.hostname_ = hostname.replace(/\/+$/, ''); this.credentials_ = credentials; this.options_ = options; } methodDescriptorOutCallGet = new grpcWeb.MethodDescriptor( '/tee.EnclaveOutCallServer/OutCallGet', grpcWeb.MethodType.UNARY, tee_enclave_outcall_pb.OutCallGetRequest, common_result_pb.ContractResult, (request: tee_enclave_outcall_pb.OutCallGetRequest) => { return request.serializeBinary(); }, common_result_pb.ContractResult.deserializeBinary ); outCallGet( request: tee_enclave_outcall_pb.OutCallGetRequest, metadata?: grpcWeb.Metadata | null): Promise; outCallGet( request: tee_enclave_outcall_pb.OutCallGetRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: common_result_pb.ContractResult) => void): grpcWeb.ClientReadableStream; outCallGet( request: tee_enclave_outcall_pb.OutCallGetRequest, metadata?: grpcWeb.Metadata | null, callback?: (err: grpcWeb.RpcError, response: common_result_pb.ContractResult) => void) { if (callback !== undefined) { return this.client_.rpcCall( this.hostname_ + '/tee.EnclaveOutCallServer/OutCallGet', request, metadata || {}, this.methodDescriptorOutCallGet, callback); } return this.client_.unaryCall( this.hostname_ + '/tee.EnclaveOutCallServer/OutCallGet', request, metadata || {}, this.methodDescriptorOutCallGet); } methodDescriptorOutCallPut = new grpcWeb.MethodDescriptor( '/tee.EnclaveOutCallServer/OutCallPut', grpcWeb.MethodType.UNARY, tee_enclave_outcall_pb.OutCallPutRequest, common_result_pb.ContractResult, (request: tee_enclave_outcall_pb.OutCallPutRequest) => { return request.serializeBinary(); }, common_result_pb.ContractResult.deserializeBinary ); outCallPut( request: tee_enclave_outcall_pb.OutCallPutRequest, metadata?: grpcWeb.Metadata | null): Promise; outCallPut( request: tee_enclave_outcall_pb.OutCallPutRequest, metadata: grpcWeb.Metadata | null, callback: (err: grpcWeb.RpcError, response: common_result_pb.ContractResult) => void): grpcWeb.ClientReadableStream; outCallPut( request: tee_enclave_outcall_pb.OutCallPutRequest, metadata?: grpcWeb.Metadata | null, callback?: (err: grpcWeb.RpcError, response: common_result_pb.ContractResult) => void) { if (callback !== undefined) { return this.client_.rpcCall( this.hostname_ + '/tee.EnclaveOutCallServer/OutCallPut', request, metadata || {}, this.methodDescriptorOutCallPut, callback); } return this.client_.unaryCall( this.hostname_ + '/tee.EnclaveOutCallServer/OutCallPut', request, metadata || {}, this.methodDescriptorOutCallPut); } }