public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (auth_ == null) { auth_ = new global::Kronos.Core.Messages.Auth(); } input.ReadMessage(auth_); break; } case 16: { type_ = (global::Kronos.Core.Messages.RequestType)input.ReadEnum(); break; } case 26: { if (insertRequest_ == null) { insertRequest_ = new global::Kronos.Core.Messages.InsertRequest(); } input.ReadMessage(insertRequest_); break; } case 34: { if (getRequest_ == null) { getRequest_ = new global::Kronos.Core.Messages.GetRequest(); } input.ReadMessage(getRequest_); break; } case 42: { if (deleteRequest_ == null) { deleteRequest_ = new global::Kronos.Core.Messages.DeleteRequest(); } input.ReadMessage(deleteRequest_); break; } case 50: { if (containsRequest_ == null) { containsRequest_ = new global::Kronos.Core.Messages.ContainsRequest(); } input.ReadMessage(containsRequest_); break; } case 58: { if (countRequest_ == null) { countRequest_ = new global::Kronos.Core.Messages.CountRequest(); } input.ReadMessage(countRequest_); break; } case 66: { if (clearRequest_ == null) { clearRequest_ = new global::Kronos.Core.Messages.ClearRequest(); } input.ReadMessage(clearRequest_); break; } } } }
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); } }