@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; }
ChaincodeProposalPayload getChaincodeProposalPayload() { ChaincodeProposalPayload ret = null; if (chaincodeProposalPayload != null) { ret = chaincodeProposalPayload.get(); } if (ret == null) { try { ret = ChaincodeProposalPayload.parseFrom(byteString); } catch (InvalidProtocolBufferException e) { throw new InvalidProtocolBufferRuntimeException(e); } chaincodeProposalPayload = new WeakReference<>(ret); } return ret; }
/** * Use {@link #getTransientMapMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, com.google.protobuf.ByteString> getTransientMap() { return getTransientMapMap(); } /**
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
FabricProposal.ChaincodeProposalPayload.Builder chaincodeProposalPayloadNoTransBuilder = FabricProposal.ChaincodeProposalPayload.newBuilder(); chaincodeProposalPayloadNoTransBuilder.mergeFrom(chaincodeProposal.getPayload()); chaincodeProposalPayloadNoTransBuilder.clearTransientMap(); chaincodeActionPayloadBuilder.setChaincodeProposalPayload(chaincodeProposalPayloadNoTransBuilder.build().toByteString());
FabricProposal.ChaincodeProposalPayload.Builder chaincodeProposalPayloadNoTransBuilder = FabricProposal.ChaincodeProposalPayload.newBuilder(); chaincodeProposalPayloadNoTransBuilder.mergeFrom(chaincodeProposal.getPayload()); chaincodeProposalPayloadNoTransBuilder.clearTransientMap(); chaincodeActionPayloadBuilder.setChaincodeProposalPayload(chaincodeProposalPayloadNoTransBuilder.build().toByteString());
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
ChaincodeProposalPayload payload = ChaincodeProposalPayload.newBuilder() .setInput(chaincodeInvocationSpec.toByteString()) .putAllTransientMap(bsm) .setPayload(payload.toByteString()) .build();
ChaincodeProposalPayload payload = ChaincodeProposalPayload.newBuilder() .setInput(chaincodeInvocationSpec.toByteString()) .putAllTransientMap(bsm) .setPayload(payload.toByteString()) .build();
/** * <pre> * TransientMap contains data (e.g. cryptographic material) that might be used * to implement some form of application-level confidentiality. The contents * of this field are supposed to always be omitted from the transaction and * excluded from the ledger. * </pre> * * <code>map<string, bytes> TransientMap = 2;</code> */ public com.google.protobuf.ByteString getTransientMapOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.protobuf.ByteString> map = internalGetTransientMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!input_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, input_); } for (java.util.Map.Entry<java.lang.String, com.google.protobuf.ByteString> entry : internalGetTransientMap().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.ByteString> transientMap = TransientMapDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, transientMap); } memoizedSize = size; return size; }
/** * <pre> * TransientMap contains data (e.g. cryptographic material) that might be used * to implement some form of application-level confidentiality. The contents * of this field are supposed to always be omitted from the transaction and * excluded from the ledger. * </pre> * * <code>map<string, bytes> TransientMap = 2;</code> */ public com.google.protobuf.ByteString getTransientMapOrThrow( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.protobuf.ByteString> map = internalGetTransientMap().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!input_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(1, input_); } for (java.util.Map.Entry<java.lang.String, com.google.protobuf.ByteString> entry : internalGetTransientMap().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, com.google.protobuf.ByteString> transientMap = TransientMapDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, transientMap); } memoizedSize = size; return size; }
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); }
/** * <pre> * TransientMap contains data (e.g. cryptographic material) that might be used * to implement some form of application-level confidentiality. The contents * of this field are supposed to always be omitted from the transaction and * excluded from the ledger. * </pre> * * <code>map<string, bytes> TransientMap = 2;</code> */ public com.google.protobuf.ByteString getTransientMapOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.protobuf.ByteString> map = internalGetTransientMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
/** * <pre> * TransientMap contains data (e.g. cryptographic material) that might be used * to implement some form of application-level confidentiality. The contents * of this field are supposed to always be omitted from the transaction and * excluded from the ledger. * </pre> * * <code>map<string, bytes> TransientMap = 2;</code> */ public com.google.protobuf.ByteString getTransientMapOrDefault( java.lang.String key, com.google.protobuf.ByteString defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, com.google.protobuf.ByteString> map = internalGetTransientMap().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
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; }
@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; }