@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + eventType_; hash = (37 * hash) + CHAINID_FIELD_NUMBER; hash = (53 * hash) + getChainID().hashCode(); switch (regInfoCase_) { case 2: hash = (37 * hash) + CHAINCODE_REG_INFO_FIELD_NUMBER; hash = (53 * hash) + getChaincodeRegInfo().hashCode(); break; case 0: default: } 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.PeerEvents.Interest)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.Interest other = (org.hyperledger.fabric.protos.peer.PeerEvents.Interest) obj; boolean result = true; result = result && eventType_ == other.eventType_; result = result && getChainID() .equals(other.getChainID()); result = result && getRegInfoCase().equals( other.getRegInfoCase()); if (!result) return false; switch (regInfoCase_) { case 2: result = result && getChaincodeRegInfo() .equals(other.getChaincodeRegInfo()); break; case 0: default: } return result; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.Interest other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.Interest.getDefaultInstance()) return this; if (other.eventType_ != 0) { setEventTypeValue(other.getEventTypeValue()); } if (!other.getChainID().isEmpty()) { chainID_ = other.chainID_; onChanged(); } switch (other.getRegInfoCase()) { case CHAINCODE_REG_INFO: { mergeChaincodeRegInfo(other.getChaincodeRegInfo()); break; } case REGINFO_NOT_SET: { break; } } onChanged(); return this; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.hyperledger.fabric.protos.peer.PeerEvents.Interest)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.Interest other = (org.hyperledger.fabric.protos.peer.PeerEvents.Interest) obj; boolean result = true; result = result && eventType_ == other.eventType_; result = result && getChainID() .equals(other.getChainID()); result = result && getRegInfoCase().equals( other.getRegInfoCase()); if (!result) return false; switch (regInfoCase_) { case 2: result = result && getChaincodeRegInfo() .equals(other.getChaincodeRegInfo()); break; case 0: default: } 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.PeerEvents.Interest)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.PeerEvents.Interest other = (org.hyperledger.fabric.protos.peer.PeerEvents.Interest) obj; boolean result = true; result = result && eventType_ == other.eventType_; result = result && getChainID() .equals(other.getChainID()); result = result && getRegInfoCase().equals( other.getRegInfoCase()); if (!result) return false; switch (regInfoCase_) { case 2: result = result && getChaincodeRegInfo() .equals(other.getChaincodeRegInfo()); break; case 0: default: } return result; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + eventType_; hash = (37 * hash) + CHAINID_FIELD_NUMBER; hash = (53 * hash) + getChainID().hashCode(); switch (regInfoCase_) { case 2: hash = (37 * hash) + CHAINCODE_REG_INFO_FIELD_NUMBER; hash = (53 * hash) + getChaincodeRegInfo().hashCode(); break; case 0: default: } 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) + EVENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + eventType_; hash = (37 * hash) + CHAINID_FIELD_NUMBER; hash = (53 * hash) + getChainID().hashCode(); switch (regInfoCase_) { case 2: hash = (37 * hash) + CHAINCODE_REG_INFO_FIELD_NUMBER; hash = (53 * hash) + getChaincodeRegInfo().hashCode(); break; case 0: default: } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.Interest other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.Interest.getDefaultInstance()) return this; if (other.eventType_ != 0) { setEventTypeValue(other.getEventTypeValue()); } if (!other.getChainID().isEmpty()) { chainID_ = other.chainID_; onChanged(); } switch (other.getRegInfoCase()) { case CHAINCODE_REG_INFO: { mergeChaincodeRegInfo(other.getChaincodeRegInfo()); break; } case REGINFO_NOT_SET: { break; } } onChanged(); return this; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.PeerEvents.Interest other) { if (other == org.hyperledger.fabric.protos.peer.PeerEvents.Interest.getDefaultInstance()) return this; if (other.eventType_ != 0) { setEventTypeValue(other.getEventTypeValue()); } if (!other.getChainID().isEmpty()) { chainID_ = other.chainID_; onChanged(); } switch (other.getRegInfoCase()) { case CHAINCODE_REG_INFO: { mergeChaincodeRegInfo(other.getChaincodeRegInfo()); break; } case REGINFO_NOT_SET: { break; } } onChanged(); return this; }