chaincodeProposalPayloadNoTransBuilder.mergeFrom(chaincodeProposal.getPayload()); chaincodeProposalPayloadNoTransBuilder.clearTransientMap(); chaincodeActionPayloadBuilder.setChaincodeProposalPayload(chaincodeProposalPayloadNoTransBuilder.build().toByteString());
/** * <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 Builder putTransientMap( java.lang.String key, com.google.protobuf.ByteString value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } getMutableTransientMap().put(key, value); return this; } /**
/** * Use {@link #getTransientMapMap()} instead. */ @java.lang.Deprecated public java.util.Map<java.lang.String, com.google.protobuf.ByteString> getTransientMap() { return getTransientMapMap(); } /**
chaincodeProposalPayloadNoTransBuilder.mergeFrom(chaincodeProposal.getPayload()); chaincodeProposalPayloadNoTransBuilder.clearTransientMap(); chaincodeActionPayloadBuilder.setChaincodeProposalPayload(chaincodeProposalPayloadNoTransBuilder.build().toByteString());
chaincodeProposalPayloadNoTransBuilder.mergeFrom(chaincodeProposal.getPayload()); chaincodeProposalPayloadNoTransBuilder.clearTransientMap(); chaincodeActionPayloadBuilder.setChaincodeProposalPayload(chaincodeProposalPayloadNoTransBuilder.build().toByteString());
.setInput(chaincodeInvocationSpec.toByteString()) .putAllTransientMap(bsm) .build();
.setInput(chaincodeInvocationSpec.toByteString()) .putAllTransientMap(bsm) .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); }
/** * <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 Builder putTransientMap( java.lang.String key, com.google.protobuf.ByteString value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } getMutableTransientMap().put(key, value); return this; } /**
/** * <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 Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.hyperledger.fabric.protos.peer.FabricProposal.ChaincodeProposalPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_;
/** * <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 Builder putTransientMap( java.lang.String key, com.google.protobuf.ByteString value) { if (key == null) { throw new java.lang.NullPointerException(); } if (value == null) { throw new java.lang.NullPointerException(); } getMutableTransientMap().put(key, value); return this; } /**
/** * <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 Builder removeTransientMap( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } getMutableTransientMap().remove(key); return this; } /**
/** * <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 Builder removeTransientMap( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } getMutableTransientMap().remove(key); return this; } /**
/** * <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 boolean containsTransientMap( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetTransientMap().getMap().containsKey(key); } /**
/** * <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 Builder putAllTransientMap( java.util.Map<java.lang.String, com.google.protobuf.ByteString> values) { getMutableTransientMap().putAll(values); return this; } public final Builder setUnknownFields(
/** * <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 boolean containsTransientMap( java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetTransientMap().getMap().containsKey(key); } /**