@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptorForType().hashCode(); hash = (37 * hash) + STARTKEY_FIELD_NUMBER; hash = (53 * hash) + getStartKey().hashCode(); hash = (37 * hash) + ENDKEY_FIELD_NUMBER; hash = (53 * hash) + getEndKey().hashCode(); hash = (37 * hash) + COLLECTION_FIELD_NUMBER; hash = (53 * hash) + getCollection().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.ChaincodeShim.GetStateByRange)) { return super.equals(obj); } org.hyperledger.fabric.protos.peer.ChaincodeShim.GetStateByRange other = (org.hyperledger.fabric.protos.peer.ChaincodeShim.GetStateByRange) obj; boolean result = true; result = result && getStartKey() .equals(other.getStartKey()); result = result && getEndKey() .equals(other.getEndKey()); result = result && getCollection() .equals(other.getCollection()); return result; }
public Builder mergeFrom(org.hyperledger.fabric.protos.peer.ChaincodeShim.GetStateByRange other) { if (other == org.hyperledger.fabric.protos.peer.ChaincodeShim.GetStateByRange.getDefaultInstance()) return this; if (!other.getStartKey().isEmpty()) { startKey_ = other.startKey_; onChanged(); } if (!other.getEndKey().isEmpty()) { endKey_ = other.endKey_; onChanged(); } if (!other.getCollection().isEmpty()) { collection_ = other.collection_; onChanged(); } onChanged(); return this; }
/** * <code>optional string collection = 3;</code> */ public Builder clearCollection() { collection_ = getDefaultInstance().getCollection(); onChanged(); return this; } /**