ChaincodeEvent getEvent() { ChaincodeAction ca = getChaincodeAction(); ByteString eventsBytes = ca.getEvents(); if (eventsBytes == null || eventsBytes.isEmpty()) { return null; } return new ChaincodeEvent(eventsBytes); }
byte[] getResponseMessageBytes() { return getChaincodeAction().getResponse().getMessageBytes().toByteArray(); }
Chaincode.ChaincodeID getChaincodeID() { Chaincode.ChaincodeID ret = null; ChaincodeAction chaincodeAction = getChaincodeAction(); if (chaincodeAction.hasChaincodeId()) { ret = chaincodeAction.getChaincodeId(); } return ret; }
int getResponseStatus() { return getChaincodeAction().getResponse().getStatus(); }
ByteString getResponsePayload() { return getChaincodeAction().getResponse().getPayload(); }
String getResponseMessage() { return getChaincodeAction().getResponse().getMessage(); }
TxReadWriteSet getResults() { try { return TxReadWriteSet.parseFrom(getChaincodeAction().getResults()); } catch (InvalidProtocolBufferException e) { throw new InvalidProtocolBufferRuntimeException(e); } }
/** * ChaincodeActionResponsePayload is the result of the executing chaincode. * * @return the result of the executing chaincode. * @throws InvalidArgumentException */ public byte[] getChaincodeActionResponsePayload() throws InvalidArgumentException { if (isInvalid()) { throw new InvalidArgumentException("Proposal response is invalid."); } try { final ProposalResponsePayloadDeserializer proposalResponsePayloadDeserializer = getProposalResponsePayloadDeserializer(); ByteString ret = proposalResponsePayloadDeserializer.getExtension().getChaincodeAction().getResponse().getPayload(); if (null == ret) { return null; } return ret.toByteArray(); } catch (InvalidArgumentException e) { throw e; } catch (Exception e) { throw new InvalidArgumentException(e); } }
ChaincodeEvent getEvent() { ChaincodeAction ca = getChaincodeAction(); ByteString eventsBytes = ca.getEvents(); if (eventsBytes == null || eventsBytes.isEmpty()) { return null; } return new ChaincodeEvent(eventsBytes); }
Chaincode.ChaincodeID getChaincodeID() { Chaincode.ChaincodeID ret = null; ChaincodeAction chaincodeAction = getChaincodeAction(); if (chaincodeAction.hasChaincodeId()) { ret = chaincodeAction.getChaincodeId(); } return ret; }
byte[] getResponseMessageBytes() { return getChaincodeAction().getResponse().getMessageBytes().toByteArray(); }
int getResponseStatus() { return getChaincodeAction().getResponse().getStatus(); }
String getResponseMessage() { return getChaincodeAction().getResponse().getMessage(); }
ByteString getResponsePayload() { return getChaincodeAction().getResponse().getPayload(); }
int getResponseStatus() { return getChaincodeAction().getResponse().getStatus(); }
String getResponseMessage() { return getChaincodeAction().getResponse().getMessage(); }
TxReadWriteSet getResults() { try { return TxReadWriteSet.parseFrom(getChaincodeAction().getResults()); } catch (InvalidProtocolBufferException e) { throw new InvalidProtocolBufferRuntimeException(e); } }
TxReadWriteSet getResults() { try { return TxReadWriteSet.parseFrom(getChaincodeAction().getResults()); } catch (InvalidProtocolBufferException e) { throw new InvalidProtocolBufferRuntimeException(e); } }
ChaincodeEvent getEvent() { ChaincodeAction ca = getChaincodeAction(); ByteString eventsBytes = ca.getEvents(); if (eventsBytes == null || eventsBytes.isEmpty()) { return null; } return new ChaincodeEvent(eventsBytes); }
byte[] getResponseMessageBytes() { return getChaincodeAction().getResponse().getMessageBytes().toByteArray(); }