public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeSpec_ != null) { output.writeMessage(1, getChaincodeSpec()); } }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } memoizedSize = size; return size; }
ChaincodeInputDeserializer getChaincodeInput() { ChaincodeInputDeserializer ret = null; if (chaincodeInputDeserializer != null) { ret = chaincodeInputDeserializer.get(); } if (ret == null) { ret = new ChaincodeInputDeserializer(getChaincodeInvocationSpec().getChaincodeSpec().getInput()); chaincodeInputDeserializer = new WeakReference<>(ret); } return ret; } }
ChaincodeInputDeserializer getChaincodeInput() { ChaincodeInputDeserializer ret = null; if (chaincodeInputDeserializer != null) { ret = chaincodeInputDeserializer.get(); } if (ret == null) { ret = new ChaincodeInputDeserializer(getChaincodeInvocationSpec().getChaincodeSpec().getInput()); chaincodeInputDeserializer = new WeakReference<>(ret); } return ret; } }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec.getDefaultInstance()) return this; if (other.hasChaincodeSpec()) { mergeChaincodeSpec(other.getChaincodeSpec()); } onChanged(); return this; }
/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpecOrBuilder getChaincodeSpecOrBuilder() { return getChaincodeSpec(); }
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (chaincodeSpec_ != null) { output.writeMessage(1, getChaincodeSpec()); } if (!getIdGenerationAlgBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, idGenerationAlg_); } }
public String getChaincodeType() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getType().name(); }
public Array getChaincodeArgs() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } ChaincodeInput chaincodeInput = _chaincodeInvocationSpec.get().getChaincodeSpec().getInput(); Object[] args = chaincodeInput.getArgsList().stream().map(arg -> arg.toStringUtf8().replaceAll("[^\\p{Print}]", "??")).toArray(); return new FabricArray(args); }
public String getChaincodePath() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getChaincodeId().getPath(); }
public String getChaincodeVersion() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getChaincodeId().getVersion(); }
public Array getChaincodeArgs() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } ChaincodeInput chaincodeInput = _chaincodeInvocationSpec.get().getChaincodeSpec().getInput(); Object[] args = chaincodeInput.getArgsList().stream().map(arg -> arg.toStringUtf8().replaceAll("[^\\p{Print}]", "??")).toArray(); return new FabricArray(args); }
public String getChaincodeType() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getType().name(); }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec.getDefaultInstance()) return this; if (other.hasChaincodeSpec()) { mergeChaincodeSpec(other.getChaincodeSpec()); } if (!other.getIdGenerationAlg().isEmpty()) { idGenerationAlg_ = other.idGenerationAlg_; onChanged(); } onChanged(); return this; }
public String getChaincodeName() { if(_chaincodeInvocationSpec == null || _chaincodeInvocationSpec.get() == null) { populateChaincodeInvocationSpec(); } return _chaincodeInvocationSpec.get().getChaincodeSpec().getChaincodeId().getName(); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (chaincodeSpec_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getChaincodeSpec()); } memoizedSize = size; return size; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec) obj; boolean result = true; result = result && (hasChaincodeSpec() == other.hasChaincodeSpec()); if (hasChaincodeSpec()) { result = result && getChaincodeSpec() .equals(other.getChaincodeSpec()); } return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (hasChaincodeSpec()) { hash = (37 * hash) + CHAINCODE_SPEC_FIELD_NUMBER; hash = (53 * hash) + getChaincodeSpec().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec other) { if (other == org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInvocationSpec.getDefaultInstance()) return this; if (other.hasChaincodeSpec()) { mergeChaincodeSpec(other.getChaincodeSpec()); } onChanged(); return this; }
/** * <code>optional .protos.ChaincodeSpec chaincode_spec = 1;</code> */ public org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeSpecOrBuilder getChaincodeSpecOrBuilder() { return getChaincodeSpec(); }