public override int GetHashCode() { int hash = 1; if (auth_ != null) { hash ^= Auth.GetHashCode(); } if (Type != 0) { hash ^= Type.GetHashCode(); } if (insertRequest_ != null) { hash ^= InsertRequest.GetHashCode(); } if (getRequest_ != null) { hash ^= GetRequest.GetHashCode(); } if (deleteRequest_ != null) { hash ^= DeleteRequest.GetHashCode(); } if (containsRequest_ != null) { hash ^= ContainsRequest.GetHashCode(); } if (countRequest_ != null) { hash ^= CountRequest.GetHashCode(); } if (clearRequest_ != null) { hash ^= ClearRequest.GetHashCode(); } return(hash); }
public void MergeFrom(Request other) { if (other == null) { return; } if (other.auth_ != null) { if (auth_ == null) { auth_ = new global::Kronos.Core.Messages.Auth(); } Auth.MergeFrom(other.Auth); } if (other.Type != 0) { Type = other.Type; } if (other.insertRequest_ != null) { if (insertRequest_ == null) { insertRequest_ = new global::Kronos.Core.Messages.InsertRequest(); } InsertRequest.MergeFrom(other.InsertRequest); } if (other.getRequest_ != null) { if (getRequest_ == null) { getRequest_ = new global::Kronos.Core.Messages.GetRequest(); } GetRequest.MergeFrom(other.GetRequest); } if (other.deleteRequest_ != null) { if (deleteRequest_ == null) { deleteRequest_ = new global::Kronos.Core.Messages.DeleteRequest(); } DeleteRequest.MergeFrom(other.DeleteRequest); } if (other.containsRequest_ != null) { if (containsRequest_ == null) { containsRequest_ = new global::Kronos.Core.Messages.ContainsRequest(); } ContainsRequest.MergeFrom(other.ContainsRequest); } if (other.countRequest_ != null) { if (countRequest_ == null) { countRequest_ = new global::Kronos.Core.Messages.CountRequest(); } CountRequest.MergeFrom(other.CountRequest); } if (other.clearRequest_ != null) { if (clearRequest_ == null) { clearRequest_ = new global::Kronos.Core.Messages.ClearRequest(); } ClearRequest.MergeFrom(other.ClearRequest); } }