public void MergeFrom(AddUserReply other) { if (other == null) { return; } if (other.Success != false) { Success = other.Success; } if (other.Code.Length != 0) { Code = other.Code; } if (other.Message.Length != 0) { Message = other.Message; } if (other.data_ != null) { if (data_ == null) { data_ = new global::Example.AddUserReply.Types.ReplyData(); } Data.MergeFrom(other.Data); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { Success = input.ReadBool(); break; } case 18: { Code = input.ReadString(); break; } case 26: { Message = input.ReadString(); break; } case 34: { if (data_ == null) { data_ = new global::Example.AddUserReply.Types.ReplyData(); } input.ReadMessage(data_); break; } } } }