@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; }
ChaincodeActionDeserializer getExtension() { ChaincodeActionDeserializer ret = null; if (chaincodeAction != null) { ret = chaincodeAction.get(); } if (ret == null) { ret = new ChaincodeActionDeserializer(getProposalResponsePayload().getExtension()); chaincodeAction = new WeakReference<>(ret); } return ret; }
@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; }
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(
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); }
@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; }
/** * <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 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; }
@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; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.getDefaultInstance()) return this; if (other.getProposalHash() != com.google.protobuf.ByteString.EMPTY) { setProposalHash(other.getProposalHash()); } if (other.getExtension() != com.google.protobuf.ByteString.EMPTY) { setExtension(other.getExtension()); } onChanged(); return this; }
ChaincodeActionDeserializer getExtension() { ChaincodeActionDeserializer ret = null; if (chaincodeAction != null) { ret = chaincodeAction.get(); } if (ret == null) { ret = new ChaincodeActionDeserializer(getProposalResponsePayload().getExtension()); chaincodeAction = new WeakReference<>(ret); } return ret; }
ChaincodeActionDeserializer getExtension() { ChaincodeActionDeserializer ret = null; if (chaincodeAction != null) { ret = chaincodeAction.get(); } if (ret == null) { ret = new ChaincodeActionDeserializer(getProposalResponsePayload().getExtension()); chaincodeAction = new WeakReference<>(ret); } return ret; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.getDefaultInstance()) return this; if (other.getProposalHash() != com.google.protobuf.ByteString.EMPTY) { setProposalHash(other.getProposalHash()); } if (other.getExtension() != com.google.protobuf.ByteString.EMPTY) { setExtension(other.getExtension()); } onChanged(); return this; }
/** * <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(
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload other) { if (other == org.hyperledger.fabric.protos.peer.FabricProposalResponse.ProposalResponsePayload.getDefaultInstance()) return this; if (other.getProposalHash() != com.google.protobuf.ByteString.EMPTY) { setProposalHash(other.getProposalHash()); } if (other.getExtension() != com.google.protobuf.ByteString.EMPTY) { setExtension(other.getExtension()); } onChanged(); return this; }