public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < args_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(args_.get(i)); } size += dataSize; size += 1 * getArgsList().size(); } for (java.util.Map.Entry<java.lang.String, com.google.protobuf.ByteString> entry : internalGetDecorations().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.ByteString> decorations = DecorationsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, decorations); } memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } if (!internalGetDecorations().getMap().isEmpty()) { hash = (37 * hash) + DECORATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetDecorations().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.Chaincode.ChaincodeInput)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput) obj; boolean result = true; result = result && getArgsList() .equals(other.getArgsList()); result = result && internalGetDecorations().equals( other.internalGetDecorations()); return result; }
final ChaincodeStub stub = new ChaincodeStubImpl(message.getChannelId(), message.getTxid(), this, input.getArgsList(), message.getProposal());
final ChaincodeStub stub = new ChaincodeStubImpl(message.getChannelId(), message.getTxid(), this, input.getArgsList(), message.getProposal());
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < args_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(args_.get(i)); } size += dataSize; size += 1 * getArgsList().size(); } for (java.util.Map.Entry<java.lang.String, com.google.protobuf.ByteString> entry : internalGetDecorations().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.ByteString> decorations = DecorationsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, decorations); } memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < args_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(args_.get(i)); } size += dataSize; size += 1 * getArgsList().size(); } for (java.util.Map.Entry<java.lang.String, com.google.protobuf.ByteString> entry : internalGetDecorations().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.ByteString> decorations = DecorationsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, decorations); } memoizedSize = size; return size; }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < args_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(args_.get(i)); } size += dataSize; size += 1 * getArgsList().size(); } for (java.util.Map.Entry<java.lang.String, com.google.protobuf.ByteString> entry : internalGetDecorations().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.ByteString> decorations = DecorationsDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, decorations); } memoizedSize = size; return size; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } if (!internalGetDecorations().getMap().isEmpty()) { hash = (37 * hash) + DECORATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetDecorations().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } if (!internalGetDecorations().getMap().isEmpty()) { hash = (37 * hash) + DECORATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetDecorations().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); if (getArgsCount() > 0) { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgsList().hashCode(); } if (!internalGetDecorations().getMap().isEmpty()) { hash = (37 * hash) + DECORATIONS_FIELD_NUMBER; hash = (53 * hash) + internalGetDecorations().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.Chaincode.ChaincodeInput)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput) obj; boolean result = true; result = result && getArgsList() .equals(other.getArgsList()); result = result && internalGetDecorations().equals( other.internalGetDecorations()); return result; }
@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.ChaincodeInput)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput) obj; boolean result = true; result = result && getArgsList() .equals(other.getArgsList()); result = result && internalGetDecorations().equals( other.internalGetDecorations()); return result; }
@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.ChaincodeInput)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput other = (org.hyperledger.fabric.protos.peer.Chaincode.ChaincodeInput) obj; boolean result = true; result = result && getArgsList() .equals(other.getArgsList()); result = result && internalGetDecorations().equals( other.internalGetDecorations()); return result; }
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 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); }