@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload) obj; boolean result = true; result = result && getProposalHash() .equals(other.getProposalHash()); result = result && getExtension() .equals(other.getExtension()); return result; }
ProposalResponsePayload getProposalResponsePayload() { ProposalResponsePayload ret = null; if (proposalResponsePayload != null) { ret = proposalResponsePayload.get(); } if (ret == null) { try { ret = ProposalResponsePayload.parseFrom(byteString); } catch (InvalidProtocolBufferException e) { throw new InvalidProtocolBufferRuntimeException(e); } proposalResponsePayload = 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) + PROPOSAL_HASH_FIELD_NUMBER; hash = (53 * hash) + getProposalHash().hashCode(); hash = (37 * hash) + EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getExtension().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
e).setUnfinishedMessage(this); } finally { makeExtensionsImmutable();
/** * <pre> * Hash of the proposal that triggered this response. The hash is used to * link a response with its proposal, both for bookeeping purposes on an * asynchronous system and for security reasons (accountability, * non-repudiation). The hash usually covers the entire Proposal message * (byte-by-byte). However this implies that the hash can only be verified * if the entire proposal message is available when ProposalResponsePayload is * included in a transaction or stored in the ledger. For confidentiality * reasons, with chaincodes it might be undesirable to store the proposal * payload in the ledger. If the type is CHAINCODE, this is handled by * separating the proposal's header and * the payload: the header is always hashed in its entirety whereas the * payload can either be hashed fully, or only its hash may be hashed, or * nothing from the payload can be hashed. The PayloadVisibility field in the * Header's extension controls to which extent the proposal payload is * "visible" in the sense that was just explained. * </pre> * * <code>optional bytes proposal_hash = 1;</code> */ public Builder clearProposalHash() { proposalHash_ = getDefaultInstance().getProposalHash(); onChanged(); return this; }
/** * <pre> * Hash of the proposal that triggered this response. The hash is used to * link a response with its proposal, both for bookeeping purposes on an * asynchronous system and for security reasons (accountability, * non-repudiation). The hash usually covers the entire Proposal message * (byte-by-byte). However this implies that the hash can only be verified * if the entire proposal message is available when ProposalResponsePayload is * included in a transaction or stored in the ledger. For confidentiality * reasons, with chaincodes it might be undesirable to store the proposal * payload in the ledger. If the type is CHAINCODE, this is handled by * separating the proposal's header and * the payload: the header is always hashed in its entirety whereas the * payload can either be hashed fully, or only its hash may be hashed, or * nothing from the payload can be hashed. The PayloadVisibility field in the * Header's extension controls to which extent the proposal payload is * "visible" in the sense that was just explained. * </pre> * * <code>optional bytes proposal_hash = 1;</code> */ public Builder clearProposalHash() { proposalHash_ = getDefaultInstance().getProposalHash(); onChanged(); return this; }
private void populateChaincodeAction() { ChaincodeActionPayload chaincodeActionPayload = null; if(_chaincodeActionPayload != null) { chaincodeActionPayload = _chaincodeActionPayload.get(); } if(null == chaincodeActionPayload) { populateChaincodeActionPayload(); chaincodeActionPayload = _chaincodeActionPayload.get(); } ChaincodeEndorsedAction chaincodeEndorsedAction = chaincodeActionPayload.getAction(); ChaincodeAction chaincodeAction; try { ProposalResponsePayload proposalResponsePayload = ProposalResponsePayload.parseFrom(chaincodeEndorsedAction.getProposalResponsePayload()); chaincodeAction = ChaincodeAction.parseFrom(proposalResponsePayload.getExtension()); } catch (InvalidProtocolBufferException e) { throw new BlkchnException("Error creating object from ByteString", e); } _chaincodeAction = new WeakReference<>(chaincodeAction); }
private void populateChaincodeAction() { ChaincodeActionPayload chaincodeActionPayload = null; if(_chaincodeActionPayload != null) { chaincodeActionPayload = _chaincodeActionPayload.get(); } if(null == chaincodeActionPayload) { populateChaincodeActionPayload(); chaincodeActionPayload = _chaincodeActionPayload.get(); } ChaincodeEndorsedAction chaincodeEndorsedAction = chaincodeActionPayload.getAction(); ChaincodeAction chaincodeAction; try { ProposalResponsePayload proposalResponsePayload = ProposalResponsePayload.parseFrom(chaincodeEndorsedAction.getProposalResponsePayload()); chaincodeAction = ChaincodeAction.parseFrom(proposalResponsePayload.getExtension()); } catch (InvalidProtocolBufferException e) { throw new BlkchnException("Error creating object from ByteString", e); } _chaincodeAction = new WeakReference<>(chaincodeAction); }
/** * <pre> * Extension should be unmarshaled to a type-specific message. The type of * the extension in any proposal response depends on the type of the proposal * that the client selected when the proposal was initially sent out. In * particular, this information is stored in the type field of a Header. For * chaincode, it's a ChaincodeAction message * </pre> * * <code>optional bytes extension = 2;</code> */ public Builder clearExtension() { extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * Extension should be unmarshaled to a type-specific message. The type of * the extension in any proposal response depends on the type of the proposal * that the client selected when the proposal was initially sent out. In * particular, this information is stored in the type field of a Header. For * chaincode, it's a ChaincodeAction message * </pre> * * <code>optional bytes extension = 2;</code> */ public Builder clearExtension() { extension_ = getDefaultInstance().getExtension(); onChanged(); return this; } public final Builder setUnknownFields(
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload) obj; boolean result = true; result = result && getProposalHash() .equals(other.getProposalHash()); result = result && getExtension() .equals(other.getExtension()); 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.FabricProposalResponse.ProposalResponsePayload)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other = (org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload) obj; boolean result = true; result = result && getProposalHash() .equals(other.getProposalHash()); result = result && getExtension() .equals(other.getExtension()); return result; }
ProposalResponsePayload getProposalResponsePayload() { ProposalResponsePayload ret = null; if (proposalResponsePayload != null) { ret = proposalResponsePayload.get(); } if (ret == null) { try { ret = ProposalResponsePayload.parseFrom(byteString); } catch (InvalidProtocolBufferException e) { throw new InvalidProtocolBufferRuntimeException(e); } proposalResponsePayload = new WeakReference<>(ret); } return ret; }
ProposalResponsePayload getProposalResponsePayload() { ProposalResponsePayload ret = null; if (proposalResponsePayload != null) { ret = proposalResponsePayload.get(); } if (ret == null) { try { ret = ProposalResponsePayload.parseFrom(byteString); } catch (InvalidProtocolBufferException e) { throw new InvalidProtocolBufferRuntimeException(e); } proposalResponsePayload = new WeakReference<>(ret); } return ret; }
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.getDefaultInstance(); }
public org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload getDefaultInstanceForType() { return org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.getDefaultInstance(); }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + PROPOSAL_HASH_FIELD_NUMBER; hash = (53 * hash) + getProposalHash().hashCode(); hash = (37 * hash) + EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getExtension().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }