public override int GetHashCode() { int hash = 1; if (Exception.Length != 0) { hash ^= Exception.GetHashCode(); } if (insertResponse_ != null) { hash ^= InsertResponse.GetHashCode(); } if (getRespone_ != null) { hash ^= GetRespone.GetHashCode(); } if (deleteResponse_ != null) { hash ^= DeleteResponse.GetHashCode(); } if (containsResponse_ != null) { hash ^= ContainsResponse.GetHashCode(); } if (countResponse_ != null) { hash ^= CountResponse.GetHashCode(); } if (clearResponse_ != null) { hash ^= ClearResponse.GetHashCode(); } return(hash); }
public void MergeFrom(Response other) { if (other == null) { return; } if (other.Exception.Length != 0) { Exception = other.Exception; } if (other.insertResponse_ != null) { if (insertResponse_ == null) { insertResponse_ = new global::Kronos.Core.Messages.InsertResponse(); } InsertResponse.MergeFrom(other.InsertResponse); } if (other.getRespone_ != null) { if (getRespone_ == null) { getRespone_ = new global::Kronos.Core.Messages.GetResponse(); } GetRespone.MergeFrom(other.GetRespone); } if (other.deleteResponse_ != null) { if (deleteResponse_ == null) { deleteResponse_ = new global::Kronos.Core.Messages.DeleteResponse(); } DeleteResponse.MergeFrom(other.DeleteResponse); } if (other.containsResponse_ != null) { if (containsResponse_ == null) { containsResponse_ = new global::Kronos.Core.Messages.ContainsResponse(); } ContainsResponse.MergeFrom(other.ContainsResponse); } if (other.countResponse_ != null) { if (countResponse_ == null) { countResponse_ = new global::Kronos.Core.Messages.CountResponse(); } CountResponse.MergeFrom(other.CountResponse); } if (other.clearResponse_ != null) { if (clearResponse_ == null) { clearResponse_ = new global::Kronos.Core.Messages.ClearResponse(); } ClearResponse.MergeFrom(other.ClearResponse); } }