ChaincodeInvocationSpecDeserializer getChaincodeInvocationSpec() { ChaincodeInvocationSpecDeserializer ret = null; if (invocationSpecDeserializer != null) { ret = invocationSpecDeserializer.get(); } if (ret == null) { ret = new ChaincodeInvocationSpecDeserializer(getChaincodeProposalPayload().getInput()); invocationSpecDeserializer = new WeakReference<>(ret); } return ret; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); if (!internalGetTransientMap().getMap().isEmpty()) { hash = (37 * hash) + TRANSIENTMAP_FIELD_NUMBER; hash = (53 * hash) + internalGetTransientMap().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload other = (org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload) obj; boolean result = true; result = result && getInput() .equals(other.getInput()); result = result && internalGetTransientMap().equals( other.internalGetTransientMap()); return result; }
private void populateChaincodeInvocationSpec() { ChaincodeActionPayload chaincodeActionPayload = null; if(_chaincodeActionPayload != null) { chaincodeActionPayload = _chaincodeActionPayload.get(); } if(null == chaincodeActionPayload) { populateChaincodeActionPayload(); chaincodeActionPayload = _chaincodeActionPayload.get(); } ChaincodeInvocationSpec chaincodeInvocationSpec; try { ChaincodeProposalPayload chaincodeProposalPayload = ChaincodeProposalPayload .parseFrom(chaincodeActionPayload.getChaincodeProposalPayload()); chaincodeInvocationSpec = ChaincodeInvocationSpec.parseFrom(chaincodeProposalPayload.getInput()); } catch (Exception e) { throw new BlkchnException("Error creating object from ByteString", e); } _chaincodeInvocationSpec = new WeakReference<>(chaincodeInvocationSpec); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); if (!internalGetTransientMap().getMap().isEmpty()) { hash = (37 * hash) + TRANSIENTMAP_FIELD_NUMBER; hash = (53 * hash) + internalGetTransientMap().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
private void populateChaincodeInvocationSpec() { ChaincodeActionPayload chaincodeActionPayload = null; if(_chaincodeActionPayload != null) { chaincodeActionPayload = _chaincodeActionPayload.get(); } if(null == chaincodeActionPayload) { populateChaincodeActionPayload(); chaincodeActionPayload = _chaincodeActionPayload.get(); } ChaincodeInvocationSpec chaincodeInvocationSpec; try { ChaincodeProposalPayload chaincodeProposalPayload = ChaincodeProposalPayload .parseFrom(chaincodeActionPayload.getChaincodeProposalPayload()); chaincodeInvocationSpec = ChaincodeInvocationSpec.parseFrom(chaincodeProposalPayload.getInput()); } catch (Exception e) { throw new BlkchnException("Error creating object from ByteString", e); } _chaincodeInvocationSpec = new WeakReference<>(chaincodeInvocationSpec); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + INPUT_FIELD_NUMBER; hash = (53 * hash) + getInput().hashCode(); if (!internalGetTransientMap().getMap().isEmpty()) { hash = (37 * hash) + TRANSIENTMAP_FIELD_NUMBER; hash = (53 * hash) + internalGetTransientMap().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload other = (org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload) obj; boolean result = true; result = result && getInput() .equals(other.getInput()); result = result && internalGetTransientMap().equals( other.internalGetTransientMap()); return result; }
/** * <pre> * Input contains the arguments for this invocation. If this invocation * deploys a new chaincode, ESCC/VSCC are part of this field. * This is usually a marshaled ChaincodeInvocationSpec * </pre> * * <code>optional bytes input = 1;</code> */ public Builder clearInput() { input_ = getDefaultInstance().getInput(); onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload other = (org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload) obj; boolean result = true; result = result && getInput() .equals(other.getInput()); result = result && internalGetTransientMap().equals( other.internalGetTransientMap()); return result; }
/** * <pre> * Input contains the arguments for this invocation. If this invocation * deploys a new chaincode, ESCC/VSCC are part of this field. * This is usually a marshaled ChaincodeInvocationSpec * </pre> * * <code>optional bytes input = 1;</code> */ public Builder clearInput() { input_ = getDefaultInstance().getInput(); onChanged(); return this; }
ChaincodeInvocationSpecDeserializer getChaincodeInvocationSpec() { ChaincodeInvocationSpecDeserializer ret = null; if (invocationSpecDeserializer != null) { ret = invocationSpecDeserializer.get(); } if (ret == null) { ret = new ChaincodeInvocationSpecDeserializer(getChaincodeProposalPayload().getInput()); invocationSpecDeserializer = new WeakReference<>(ret); } return ret; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload.getDefaultInstance()) return this; if (other.getInput() != com.google.protobuf.ByteString.EMPTY) { setInput(other.getInput()); } internalGetMutableTransientMap().mergeFrom( other.internalGetTransientMap()); onChanged(); return this; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload.getDefaultInstance()) return this; if (other.getInput() != com.google.protobuf.ByteString.EMPTY) { setInput(other.getInput()); } internalGetMutableTransientMap().mergeFrom( other.internalGetTransientMap()); onChanged(); return this; }
ChaincodeInvocationSpecDeserializer getChaincodeInvocationSpec() { ChaincodeInvocationSpecDeserializer ret = null; if (invocationSpecDeserializer != null) { ret = invocationSpecDeserializer.get(); } if (ret == null) { ret = new ChaincodeInvocationSpecDeserializer(getChaincodeProposalPayload().getInput()); invocationSpecDeserializer = new WeakReference<>(ret); } return ret; }
/** * <pre> * Input contains the arguments for this invocation. If this invocation * deploys a new chaincode, ESCC/VSCC are part of this field. * This is usually a marshaled ChaincodeInvocationSpec * </pre> * * <code>optional bytes input = 1;</code> */ public Builder clearInput() { input_ = getDefaultInstance().getInput(); onChanged(); return this; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload.getDefaultInstance()) return this; if (other.getInput() != com.google.protobuf.ByteString.EMPTY) { setInput(other.getInput()); } internalGetMutableTransientMap().mergeFrom( other.internalGetTransientMap()); onChanged(); return this; }