lookupIndex method
Implementation
Future<LookupIndexResp> lookupIndex(LookupIndexRequest? req) async {
oprot.writeMessageBegin(
new TMessage("lookupIndex", TMessageType.CALL, nextSeqid()));
lookupIndex_args args = new lookupIndex_args();
args.req = req;
args.write(oprot);
oprot.writeMessageEnd();
await oprot.trans_.flush();
TMessage msg = iprot.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
TApplicationError error = TApplicationError.read(iprot);
iprot.readMessageEnd();
throw error;
}
lookupIndex_result result = new lookupIndex_result();
result.read(iprot);
iprot.readMessageEnd();
if (result.isSetSuccess()) {
return result.success!;
}
throw new TApplicationError(TApplicationErrorType.MISSING_RESULT,
"lookupIndex failed: unknown result");
}